/* Team page sections, injected into the Framer-rendered shell.
   The header, cursor dot, background gradient, footer and all page motion
   come from Framer itself; this file only styles the roster underneath. */

:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }

#sdw-roster {
  --page: #ddeef8;
  --band: #ecf7ff;
  --ink: #0a0a0a;
  --navy: #053a64;
  --teal: #08546f;
  --blue: #007fe4;
  --muted: #cde0e9;
  --head: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  color: var(--navy);
  padding-bottom: 24px;
}

/* Everything on the home route except its hero is hidden on this page. */
.sdw-team-page section[data-framer-name]:not([data-framer-name="Hero Section"]) {
  display: none !important;
}

#sdw-roster .cta {
  margin: 0 0 72px;
  padding: 56px 32px;
  border-radius: 22px;
  background: var(--band);
  border: 1px solid var(--muted);
  text-align: center;
}

#sdw-roster .cta h2 {
  margin: 0 0 10px;
  font-family: var(--head);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.96px;
  color: var(--navy);
}

#sdw-roster .cta p { margin: 0 auto 26px; max-width: 52ch; font-size: 16px; line-height: 1.4; }

#sdw-roster .cta a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.16px;
  text-decoration: none;
  transition: background-color 300ms var(--ease-out), transform 200ms var(--ease-out);
}

#sdw-roster .cta a:hover { background: var(--navy); }
#sdw-roster .cta a:active { transform: scale(.98); }

/* ---- sections ----
   Measured from the Framer team page: a 1120px column inside 160px gutters,
   a rule above each header, the title in a 400px right column, and five
   portrait cards at 186 x 309 with 40px gutters. */

.t-wrap { width: min(100% - 80px, 1120px); margin-inline: auto; }

.t-sec { padding: 64px 0 0; }

.t-head {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
  border-top: 1px solid var(--muted);
  padding: 16px 0 48px;
}

.t-head h2 {
  margin: 0;
  grid-column: 2;
  font-family: var(--head);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.96px;
  color: var(--navy);
  text-wrap: balance;
}

.t-head .t-note {
  grid-column: 2;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--navy);
  opacity: .8;
  text-wrap: pretty;
}

/* ---- people ---- */

/* Four across, and a short last row centres under them. */
.t-grid {
  list-style: none;
  margin: 0;
  padding: 0 18px 64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: flex-start;
}

/* A section with one or two people reads better aligned left. */
.t-grid.few { justify-content: flex-start; }

.t-person {
  min-width: 0;
  flex: 0 0 calc((100% - 120px) / 4);
  max-width: calc((100% - 120px) / 4);
}

.t-face {
  aspect-ratio: 186 / 309;
  border-radius: 8px;
  overflow: hidden;
  background: #cfe6f7;
  display: grid;
  place-items: center;
  transition: transform 500ms var(--ease-out);
}

.t-face img { width: 100%; height: 100%; object-fit: cover; display: block; }

.t-face.slot { border: 1px dashed var(--muted); background: var(--band); }

.t-face.slot span {
  font-family: var(--head);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: .45;
}

@media (hover: hover) and (pointer: fine) {
  .t-person:hover .t-face { transform: translateY(-4px); }
}

.t-name {
  margin: 16px 0 0;
  font-family: var(--head);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -.4px;
  color: #031f25;
}

.t-name.empty { color: var(--navy); opacity: .5; }

.t-role {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--navy);
}

/* ---- bio disclosure ---- */

.t-toggle {
  appearance: none;
  margin: 12px 0 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  color: var(--navy);
  opacity: .72;
  cursor: pointer;
  transition: opacity 300ms var(--ease-out), transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .t-toggle:hover { opacity: 1; }
}

.t-toggle:active { transform: translateY(1px); }
.t-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.t-chev { transition: transform 500ms var(--ease-out); flex: none; }
.t-toggle[aria-expanded="true"] .t-chev { transform: rotate(180deg); }

.bio-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms var(--ease-out), opacity 300ms var(--ease-out);
  opacity: 0;
}

.bio-wrap[hidden] { display: none; }
.bio-wrap.open { grid-template-rows: 1fr; opacity: 1; }
.bio-inner { overflow: hidden; min-height: 0; }

.t-meta {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--navy);
  opacity: .85;
  text-wrap: pretty;
}

.t-meta .lbl { opacity: .7; }

.t-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.t-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--muted);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  line-height: 1.3;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 300ms var(--ease-out), color 300ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  a.t-chip:hover { border-color: var(--blue); color: var(--blue); }
}

a.t-chip:active { transform: translateY(1px); }
.t-chip.empty { opacity: .5; }

/* ---- team photo placeholder ---- */

.t-photo {
  margin: 0 18px 64px;
  aspect-ratio: 16 / 6;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--muted);
  background: var(--band);
}

.t-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.t-photo span {
  font-family: var(--head);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: .45;
}

/* ---- scroll reveal ---- */

.reveal { opacity: 0; transform: translateY(32px); }

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

/* ---- responsive ---- */

@media (max-width: 1199.98px) {
  .t-grid { gap: 32px; }
  .t-person { flex-basis: calc((100% - 64px) / 3); max-width: calc((100% - 64px) / 3); }
  .t-head { grid-template-columns: 1fr 320px; }
  .t-head h2 { font-size: 28px; }
}

@media (max-width: 809.98px) {
  .t-wrap { width: calc(100% - 40px); }
  .t-head { grid-template-columns: 1fr; gap: 12px; padding-bottom: 32px; }
  .t-head h2, .t-head .t-note { grid-column: 1; }
  .t-head h2 { font-size: 24px; }
  .t-grid { gap: 24px; padding: 0 0 48px; justify-content: flex-start; }
  .t-person { flex-basis: calc((100% - 24px) / 2); max-width: calc((100% - 24px) / 2); }
  .t-photo { margin: 0 0 48px; aspect-ratio: 4 / 3; }
}

@media (max-width: 359.98px) {
  .t-person { flex-basis: 100%; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .t-face, .t-chev, .bio-wrap, .t-toggle { transition: none; }
  .t-person:hover .t-face { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal.in { transition: opacity 200ms linear; }
}

/* The fixed header must not cover an anchored section. */
#sdw-roster .t-sec { scroll-margin-top: 104px; }
@media (max-width: 809.98px) { #sdw-roster .t-sec { scroll-margin-top: 80px; } }

/* The hero carries a fourth stat row here. Tightening the column keeps it
   within the height the template reserves, so nothing is clipped on a short
   window. */
.sdw-team-page [data-framer-name="Stats Container"] { gap: 20px !important; }
.sdw-team-page [data-framer-name^="Stats "] { gap: 12px !important; }
