/* =========================================================
   THE CRISIS ROOM — TEAM
   ========================================================= */

:root {
  --tcr-navy: #000717;
  --tcr-red: #7E0106;
  --tcr-white: #FFFFFF;
  --tcr-cream: #F7E0B8;
  --tcr-muted: rgba(255, 255, 255, 0.62);
}


/* =========================================================
   RESET
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tcr-navy);
  color: var(--tcr-white);
  font-family: "Manrope", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: transparent;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: 46px;
  height: auto;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.2vw, 34px);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.navigation a {
  opacity: 0.72;
  transition:
    opacity 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.navigation a:hover {
  opacity: 1;
  color: var(--tcr-cream);
  transform: translateY(-2px);
}

.navigation a.active {
  opacity: 1;
  color: var(--tcr-cream);
}


/* =========================================================
   MENU BUTTON
   ========================================================= */

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid rgba(247, 224, 184, 0.25);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-button span {
  width: 18px;
  height: 1px;
  background: var(--tcr-cream);
}


/* =========================================================
   HERO
   ========================================================= */

.team-hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 6vw 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid rgba(247, 224, 184, 0.18);
}

.team-hero::before {
  content: "TEAM";
  position: absolute;
  right: -25px;
  bottom: -65px;
  font-family:
    Impact,
    Haettenschweiler,
    "Arial Narrow Bold",
    sans-serif;
  font-size: clamp(180px, 28vw, 430px);
  line-height: 0.7;
  color: rgba(247, 224, 184, 0.025);
  pointer-events: none;
  user-select: none;
}

.team-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 13vw;
  width: 1px;
  height: 100%;
  background: rgba(247, 224, 184, 0.08);
  pointer-events: none;
}

.team-hero-label {
  position: relative;
  z-index: 2;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--tcr-red);
}

.team-hero h1 {
  position: relative;
  z-index: 2;
  max-width: 1050px;
  margin-top: 80px;
  font-family:
    Impact,
    Haettenschweiler,
    "Arial Narrow Bold",
    sans-serif;
  font-size: clamp(72px, 11vw, 175px);
  line-height: 0.76;
  font-weight: 400;
  letter-spacing: -0.045em;
  color: var(--tcr-cream);
}

.team-hero h1::first-line {
  color: var(--tcr-white);
}

.team-hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  padding-top: 80px;
}

.team-hero-bottom p {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.team-hero-index {
  padding-bottom: 4px;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(247, 224, 184, 0.4);
}


/* =========================================================
   CORE TEAM
   ========================================================= */

.core-team {
  position: relative;
  padding: 145px 6vw 160px;
}

.section-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 100px;
}

.section-heading > div {
  flex: 1;
}

.section-number {
  position: absolute;
  top: -5px;
  right: 0;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--tcr-red);
}

.section-label {
  display: block;
  margin-bottom: 22px;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(247, 224, 184, 0.42);
}

.section-heading h2 {
  font-family:
    Impact,
    Haettenschweiler,
    "Arial Narrow Bold",
    sans-serif;
  font-size: clamp(70px, 10vw, 150px);
  line-height: 0.75;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--tcr-cream);
}


/* =========================================================
   ROSTER
   ========================================================= */

.team-roster {
  border-top: 1px solid rgba(247, 224, 184, 0.22);
}


/* =========================================================
   MEMBER
   ========================================================= */

.team-member {
  position: relative;
  min-height: 420px;
  padding: 55px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 70px;
  align-items: center;
  border-bottom: 1px solid rgba(247, 224, 184, 0.14);
}

.member-info {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 25px;
}

.member-number {
  padding-top: 8px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--tcr-red);
}

.member-details {
  position: relative;
  z-index: 2;
}

.member-details h3 {
  margin-bottom: 13px;
  font-family:
    Impact,
    Haettenschweiler,
    "Arial Narrow Bold",
    sans-serif;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--tcr-cream);
  transition:
    color 0.3s ease,
    transform 0.4s ease;
}

.member-role {
  display: inline-block;
  margin-bottom: 22px;
  padding: 7px 9px;
  background: var(--tcr-red);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--tcr-white);
}

.member-details p {
  max-width: 540px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.56);
}


/* =========================================================
   PHOTO
   ========================================================= */

.member-photo {
  position: relative;
  width: 280px;
  height: 400px;
  overflow: hidden;
  background: #111522;
  transform: rotate(0deg);
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.55s ease,
    height 0.55s ease;
}

.member-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(247, 224, 184, 0.18);
  pointer-events: none;
}

.member-photo::after {
  content: attr(data-number);
  position: absolute;
  right: 15px;
  bottom: 10px;
  z-index: 3;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--tcr-white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(20%) contrast(1.02);
  transform: scale(1);
  transition:
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.5s ease;
}


/* =========================================================
   ROSTER HOVER
   ========================================================= */

.team-member:hover .member-photo {
  transform: rotate(-1.2deg) scale(1.025);
}

.team-member:hover .member-photo img {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(1.04);
}

.team-member:hover .member-photo::after {
  opacity: 1;
}

.team-member:hover .member-details h3 {
  color: var(--tcr-white);
  transform: translateX(5px);
}

.team-member:hover .member-number {
  color: var(--tcr-cream);
}


/* =========================================================
   INDIVIDUAL ROTATION
   ========================================================= */

.team-member:nth-child(2n) .member-photo {
  transform: rotate(1deg);
}

.team-member:nth-child(2n):hover .member-photo {
  transform: rotate(0deg) scale(1.025);
}

.team-member:nth-child(3n) .member-photo {
  transform: rotate(-0.5deg);
}

.team-member:nth-child(3n):hover .member-photo {
  transform: rotate(-1.2deg) scale(1.025);
}


/* =========================================================
   ORGANIZATION
   ========================================================= */

.team-structure {
  position: relative;
  padding: 145px 6vw 160px;
  background: var(--tcr-cream);
  color: var(--tcr-navy);
  overflow: hidden;
}

.team-structure::before {
  content: "TCR";
  position: absolute;
  top: -45px;
  right: 2vw;
  font-family:
    Impact,
    Haettenschweiler,
    "Arial Narrow Bold",
    sans-serif;
  font-size: 260px;
  line-height: 1;
  color: rgba(0, 7, 23, 0.045);
}

.team-structure .section-label {
  color: rgba(0, 7, 23, 0.45);
}

.team-structure .section-heading h2 {
  color: var(--tcr-navy);
}

.team-structure .section-number {
  color: var(--tcr-red);
}

.team-intro {
  max-width: 650px;
  margin: -20px 0 100px;
  margin-left: 15%;
}

.team-intro p {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(0, 7, 23, 0.68);
}


/* =========================================================
   DEPARTMENTS
   ========================================================= */

.department {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 30px;
  padding: 65px 0;
  border-top: 1px solid rgba(0, 7, 23, 0.18);
  transition: padding 0.4s ease;
}

.department:last-child {
  border-bottom: 1px solid rgba(0, 7, 23, 0.18);
}

.department:hover {
  padding-left: 18px;
}

.department-number {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--tcr-red);
}

.department-content {
  max-width: 900px;
}

.department-label {
  display: block;
  margin-bottom: 18px;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(0, 7, 23, 0.45);
}

.department-content h3 {
  margin-bottom: 24px;
  font-family:
    Impact,
    Haettenschweiler,
    "Arial Narrow Bold",
    sans-serif;
  font-size: clamp(55px, 7vw, 105px);
  line-height: 0.78;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--tcr-navy);
  transition: transform 0.4s ease;
}

.department:hover .department-content h3 {
  transform: translateX(6px);
}

.department-content p {
  max-width: 650px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0, 7, 23, 0.62);
}


/* =========================================================
   CLOSING
   ========================================================= */

.team-closing {
  display: none;
}


/* =========================================================
   FOOTER
   ========================================================= */

.tcr-footer {
  position: relative;
  padding: 80px 6vw 25px;
  background: var(--tcr-navy);
  color: var(--tcr-white);
  border-top: 1px solid rgba(247, 224, 184, 0.18);
}

.footer-main {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 80px;
}

.footer-identity {
  max-width: 360px;
}

.footer-logo {
  font-family:
    Impact,
    Haettenschweiler,
    "Arial Narrow Bold",
    sans-serif;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 0.9;
  color: var(--tcr-cream);
  opacity: 0.85;
  font-weight: 400;
  margin-bottom: 22px;
}

.footer-description {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-column > span {
  margin-bottom: 12px;
  color: var(--tcr-red);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.footer-column a,
.footer-location {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, sans-serif;
  font-size: 11px;
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer-column a:hover {
  color: var(--tcr-cream);
  transform: translateX(5px);
}

.footer-location {
  margin-top: 8px;
  color: rgba(247, 224, 184, 0.45);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 224, 184, 0.12);
  color: rgba(247, 224, 184, 0.35);
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-bottom a {
  color: rgba(247, 224, 184, 0.35);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--tcr-cream);
}

.footer-bottom span:last-child {
  text-align: right;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .site-header {
    padding: 0 30px;
  }

  .team-member {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 40px;
  }

  .member-photo {
    width: 240px;
    height: 340px;
  }

  .member-info {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .footer-main {
    grid-template-columns: 1.8fr 1fr 1fr;
  }

  .footer-column:last-child {
    display: none;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

  /* NAV */

  .site-header {
    height: 70px;
    padding: 0 22px;
    background: var(--tcr-navy);
  }

  .logo img {
    width: 42px;
  }

  .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--tcr-cream);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .menu-button.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .navigation {
    display: none;
  }

  .navigation.mobile-open {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 25px 22px 30px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--tcr-navy);
    border-top: 1px solid rgba(247, 224, 184, 0.15);
    border-bottom: 1px solid rgba(247, 224, 184, 0.15);
    z-index: 99;
  }

  .navigation.mobile-open a {
    display: block;
    width: 100%;
    padding: 15px 0;
    font-family: "DM Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--tcr-white);
    text-decoration: none;
    opacity: 0.9;
  }

  .navigation.mobile-open a.active {
    color: var(--tcr-cream);
    opacity: 1;
  }


  /* HERO */

  .team-hero {
    min-height: 90vh;
    padding: 120px 6vw 50px;
  }

  .team-hero::before {
    right: -15px;
    bottom: -15px;
    font-size: 45vw;
  }

  .team-hero::after {
    display: none;
  }

  .team-hero h1 {
    margin-top: 65px;
    font-size: clamp(60px, 17vw, 105px);
    line-height: 0.78;
  }

  .team-hero-bottom {
    display: block;
    padding-top: 65px;
  }

  .team-hero-bottom p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.7;
  }

  .team-hero-index {
    display: block;
    margin-top: 28px;
    font-size: 8px;
  }


  /* CORE */

  .core-team {
    padding: 100px 6vw 110px;
  }

  .section-heading {
    margin-bottom: 65px;
  }

  .section-heading h2 {
    font-size: clamp(60px, 17vw, 105px);
  }

  .section-label {
    margin-bottom: 18px;
  }


  /* MEMBERS */

  .team-member {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    min-height: 0;
    padding: 45px 0;
  }

  .team-member:hover {
    padding-left: 0;
  }

  .member-info {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 12px;
  }

  .member-details h3 {
    font-size: clamp(38px, 11vw, 65px);
    line-height: 0.82;
  }

  .member-role {
    margin-top: 4px;
    margin-bottom: 20px;
    font-size: 8px;
  }

  .member-details p {
    font-size: 12px;
    line-height: 1.75;
  }

  .member-photo,
  .team-member:nth-child(2n) .member-photo,
  .team-member:nth-child(3n) .member-photo {
    width: 100%;
    height: 300px;
    transform: rotate(0deg);
  }

  .team-member:hover .member-photo,
  .team-member:nth-child(2n):hover .member-photo,
  .team-member:nth-child(3n):hover .member-photo {
    transform: scale(1.01);
  }


  /* STRUCTURE */

  .team-structure {
    padding: 100px 6vw 110px;
  }

  .team-structure::before {
    font-size: 180px;
    top: -15px;
  }

  .team-intro {
    margin: -5px 0 65px;
  }

  .team-intro p {
    font-size: 16px;
    line-height: 1.7;
  }

  .department {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 15px;
    padding: 45px 0;
  }

  .department:hover {
    padding-left: 0;
  }

  .department-content h3 {
    font-size: clamp(48px, 14vw, 80px);
  }

  .department-content p {
    font-size: 12px;
    line-height: 1.75;
  }


  /* FOOTER */

  .tcr-footer {
    padding: 65px 6vw 25px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 50px 28px;
    padding-bottom: 60px;
  }

  .footer-identity {
    grid-column: 1 / -1;
  }

  .footer-logo {
    font-size: clamp(44px, 12vw, 65px);
    margin-bottom: 20px;
  }

  .footer-description {
    max-width: 340px;
    font-size: 14px;
    line-height: 1.65;
  }

  .footer-column {
    gap: 14px;
  }

  .footer-column > span {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .footer-column a,
  .footer-location {
    font-size: 13px;
    line-height: 1.4;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 22px;
    font-size: 9px;
    line-height: 1.5;
  }

  .footer-bottom span:last-child {
    text-align: left;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  .team-hero {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .team-hero h1 {
    font-size: clamp(55px, 16vw, 82px);
  }

  .member-photo,
  .team-member:nth-child(2n) .member-photo,
  .team-member:nth-child(3n) .member-photo {
    height: 240px;
  }

  .footer-description {
    font-size: 13px;
  }

  .footer-column a,
  .footer-location {
    font-size: 12px;
  }

}