/* ============================================================
   Section-specific layouts
   ============================================================ */

/* ---------- 1 · Opener ---------- */
.s-open { justify-content: center; }
.s-open .verbs {
  list-style: none; margin: clamp(10px, 2vh, 26px) 0 0;
  display: flex; flex-direction: column;
  gap: clamp(2px, 0.6vh, 8px);
}
.s-open .vrow {
  display: flex; align-items: center;
  gap: clamp(16px, 2vw, 34px);
}
.s-open .vshape {
  flex: none; display: block;
  width: clamp(34px, 5vh, 62px); height: clamp(34px, 5vh, 62px);
}
.s-open .vshape svg { display: block; width: 100%; height: 100%; }
.s-open .vtext {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(40px, 6.6vh, 86px);
  line-height: 0.98;
  color: var(--fg);
}
.s-open .vrow.is-make .vtext { color: var(--accent); }
.s-open .vrow.is-make em { font-style: italic; font-weight: 700; }
.s-open .vtext em { font-style: normal; }
.s-open .footline {
  position: absolute;
  left: var(--pad); right: var(--pad);
  bottom: clamp(54px, 8vh, 96px);
  display: flex; justify-content: flex-start; align-items: center;
  gap: clamp(18px, 2.4vw, 34px); color: var(--muted);
  font-size: clamp(12px, 1.2vw, 15px); letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.s-open .footline .foot-tag { line-height: 0; padding-left: clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--line); }
.s-open .footline .foot-tag .brand-tag { height: clamp(22px, 2.6vw, 34px); opacity: 0.92; }

/* ---------- 2 · Thesis ---------- */
.s-thesis { justify-content: center; gap: clamp(30px, 5vh, 64px); }
.flow {
  display: flex; align-items: stretch; gap: clamp(10px, 1.6vw, 26px);
  flex-wrap: wrap;
}
.flow .step {
  flex: 1 1 0; min-width: 150px;
  border: 1.5px solid var(--line);
  padding: clamp(16px, 2vw, 30px);
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  transition: border-color 400ms;
}
.flow .step .si { color: var(--accent); font-weight: 700; font-size: clamp(12px,1.1vw,15px); letter-spacing: 0.16em; }
.flow .step .sn {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(26px, 3.6vw, 58px); line-height: 0.92;
}
.flow .step .sd { color: var(--muted); font-size: clamp(12px, 1vw, 15px); line-height: 1.4; }
.flow .step::after {
  content: ''; position: absolute; inset: 0;
  background: var(--accent); opacity: 0; transition: opacity 400ms;
  mix-blend-mode: normal; z-index: -1;
}
.flow .arrow { align-self: center; color: var(--muted-2); font-size: 24px; flex: none; }
@media (max-width: 700px) {
  .flow { flex-direction: column; }
  .flow .step { aspect-ratio: auto; min-height: 86px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; }
  .flow .arrow { transform: rotate(90deg); }
}
.s-thesis .claim {
  font-size: clamp(42px, 6.9vw, 114px);
  max-width: 20ch;
}
.s-thesis .thesis-sub {
  color: var(--muted); max-width: 50ch; text-wrap: pretty;
  font-size: clamp(24px, 2.55vw, 39px); line-height: 1.45;
}

/* ---------- 3 · Showreel (full-bleed cinematic) ---------- */
.s-reel { padding: 0; gap: 0; overflow: hidden; background: #000; }
.reel-frame { position: absolute; inset: 0; background: #000; overflow: hidden; cursor: none; }
.reel-frame.placeholder-only { cursor: default; }
.reel-frame.is-playing { cursor: pointer; }
.reel-frame.iframe-mode.is-started { cursor: auto; }

.reel-thumb, .reel-player {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border: 0; display: block; background: #000;
}
.reel-thumb { z-index: 1; opacity: 1; transition: opacity 560ms var(--ease); pointer-events: none; }
.reel-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2; pointer-events: none;
  opacity: 1; transition: opacity 600ms var(--ease);
}
.reel-poster.is-ready { opacity: 0; }
.reel-player { z-index: 2; opacity: 0; transition: opacity 560ms var(--ease); }
.reel-frame.is-started .reel-player { opacity: 1; }
.reel-frame.is-started .reel-thumb { opacity: 0; }

.reel-frame .ph {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: end start;
  padding: clamp(24px, 6vw, 112px) clamp(20px, 6vw, 112px) clamp(96px, 16vh, 200px);
  background:
    radial-gradient(120% 120% at 50% 35%, rgba(255,59,29,0.12), transparent 60%),
    repeating-linear-gradient(45deg, #0e0d0c 0 22px, #100f0d 22px 44px);
}
.reel-frame .ph-label { font-size: clamp(13px, 1.4vw, 18px); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* legibility scrim — fades with the title while playing */
.reel-scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(11,10,9,0.88) 0%, rgba(11,10,9,0.34) 32%, rgba(11,10,9,0) 58%),
    linear-gradient(90deg, rgba(11,10,9,0.55) 0%, rgba(11,10,9,0) 46%);
  transition: opacity var(--fade) var(--ease);
}

/* overlaid title block */
.reel-text {
  position: absolute; z-index: 4;
  left: clamp(20px, 6vw, 112px); right: clamp(20px, 6vw, 112px);
  bottom: clamp(40px, 9vh, 104px);
  display: flex; flex-direction: column; gap: clamp(12px, 1.8vh, 22px);
  pointer-events: none;
  transition: opacity var(--fade) var(--ease), transform var(--fade) var(--ease);
}
.reel-text .eyebrow { color: rgba(243, 238, 228, 0.82); }
.s-reel .rtitle {
  font-size: clamp(44px, 9.5vw, 168px); line-height: 0.84; color: #fff;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.4);
}
.reel-prompt {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(13px, 1.3vw, 17px); letter-spacing: 0.04em;
  color: rgba(243, 238, 228, 0.78);
}
.reel-prompt .pdot { color: var(--accent); font-size: 0.82em; }
.reel-prompt b { color: #fff; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.reel-prompt .ix { color: rgba(243, 238, 228, 0.5); letter-spacing: 0.1em; }

/* fade text + scrim + ticks away while the reel plays */
.reel-frame.is-playing .reel-scrim { opacity: 0; }
.reel-frame.is-playing .reel-text { opacity: 0; transform: translateY(12px); }
.reel-frame.is-playing .ct { opacity: 0; }

/* Generic iframe embeds (FrameRate etc.) don't post play events we can read,
   so reveal the live player the moment the reel is started — otherwise the
   scrim + title sit on top of FrameRate's own poster/play button and it looks
   like nothing plays. */
.reel-frame.iframe-mode.is-started .reel-scrim { opacity: 0; }
.reel-frame.iframe-mode.is-started .reel-text { opacity: 0; transform: translateY(12px); }
.reel-frame.iframe-mode.is-started .ct { opacity: 0; }

/* custom "Play Reel" cursor following the pointer */
.reel-cursor {
  position: absolute; top: 0; left: 0; z-index: 6;
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 11px 22px 11px 12px; border-radius: 100px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(14px, 1.4vw, 19px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.5);
  pointer-events: none; opacity: 0;
  transition: opacity 180ms var(--ease);
}
.reel-cursor.show { opacity: 1; }
.reel-cursor .rc-ic { width: 1.7em; height: 1.7em; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.reel-cursor .rc-ic svg { width: 42%; height: 42%; fill: var(--accent); margin-left: 8%; }

/* play-zone hover → circular button; prev/next stay as the pill above */
.reel-cursor.is-circle {
  flex-direction: column; gap: 4px; padding: 0; border-radius: 50%;
  width: clamp(122px, 13vw, 156px); height: clamp(122px, 13vw, 156px);
  justify-content: center; text-align: center;
  font-size: clamp(12px, 1.2vw, 16px); line-height: 1.1;
}
.reel-cursor.is-circle .rc-ic { background: transparent; width: 2.3em; height: 2.3em; }
.reel-cursor.is-circle .rc-ic svg { width: 58%; height: 58%; fill: #fff; margin-left: 10%; }

/* close / back-to-title control while a reel is mounted */
.reel-close {
  position: absolute; top: clamp(56px, 9vh, 88px); right: clamp(16px, 3vw, 40px); z-index: 80;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(243, 238, 228, 0.4); background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background 220ms, border-color 220ms, transform 320ms var(--ease);
}
.reel-close:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.reel-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.4; fill: none; }

/* corner framing ticks */
.reel-frame .ct { position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent); z-index: 5; pointer-events: none; transition: opacity var(--fade) var(--ease); }
.reel-frame .ct.a { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.reel-frame .ct.b { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.reel-frame .ct.c { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.reel-frame .ct.d { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- 4 · Capabilities ---------- */
.s-caps { justify-content: center; }
.s-caps .caps-head { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 1.4vh, 16px); margin-bottom: clamp(14px, 2.4vh, 30px); }
.s-caps .caps-head h2 { font-size: clamp(34px, 5vw, 76px); white-space: nowrap; }
.caps-grid { border-top: 1px solid var(--line); }
.cap-row {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(36px, 6vw, 110px);
  border-bottom: 1px solid var(--line);
}
.cap {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px);
  padding: clamp(10px, 1.9vh, 22px) 0;
  min-width: 0; color: var(--fg);
}
.cap .cnum { font-family: var(--font-body); font-size: clamp(11px, 0.9vw, 14px); font-weight: 600; color: var(--muted-2); flex: none; align-self: flex-start; padding-top: 0.5em; width: 2.4ch; }
.cap .cname {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(19px, 2.6vw, 44px); line-height: 1.04; flex: 1 1 auto; min-width: 0;
  text-wrap: balance;
}
.cap image-slot {
  flex: none; display: block;
  width: clamp(112px, 12vw, 184px); height: clamp(64px, 6.6vw, 104px);
  border-radius: 4px; overflow: hidden;
}
.cap .cap-clip {
  flex: none; display: block;
  width: clamp(112px, 12vw, 184px); height: clamp(64px, 6.6vw, 104px);
  border-radius: 4px; object-fit: cover; background: #000;
}

/* ---------- 7b · Process ---------- */
.s-process { justify-content: center; gap: clamp(40px, 12vh, 200px); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 56px); align-items: start; }
.pstep { display: flex; flex-direction: column; }
.pstep .pnum { font-family: var(--font-body); font-size: clamp(13px, 1.1vw, 17px); color: var(--muted-2); font-weight: 500; margin-bottom: clamp(14px, 2.2vh, 26px); }
.pstep .ptitle {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(24px, 2.9vw, 52px); line-height: 1.04; color: var(--fg);
  margin: 0 0 clamp(16px, 2.6vh, 30px); text-wrap: balance;
}
.pstep .pdesc { color: var(--muted); font-size: clamp(13px, 1.15vw, 18px); line-height: 1.5; max-width: 30ch; text-wrap: pretty; }
@media (max-width: 860px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vh, 44px) clamp(24px, 4vw, 40px); }
}

/* ---------- 7 · Clients & Services ---------- */
.s-clients { justify-content: center; gap: clamp(16px, 2.4vh, 40px); }
.s-clients .clients-head { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 1.5vh, 18px); }
.s-clients .clients-claim {
  font-size: clamp(30px, 4.4vw, 78px); line-height: 1.04; max-width: 21ch; text-wrap: balance;
}
.clients-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 130px); }
.clients-cols .ccol-label {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: clamp(12px, 1vw, 15px); color: var(--muted-2);
  margin-bottom: clamp(14px, 2.2vh, 26px);
}
.clients-cols .clist { display: flex; flex-direction: column; gap: clamp(3px, 0.55vh, 8px); }
.clients-cols .clist li { font-family: var(--font-body); font-size: clamp(14px, 1.4vw, 21px); color: var(--fg); line-height: 1.22; }
.s-clients .clients-cols .ccol:first-child .clist { columns: 2; column-gap: clamp(24px, 3vw, 64px); }
.s-clients .clients-cols .ccol:first-child .clist li { break-inside: avoid; }
.clients-cols-single { grid-template-columns: 1fr; }
.s-clients .clients-cols-single .ccol .clist { columns: 3; column-gap: clamp(36px, 6vw, 120px); }

/* logo wall */
.logo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.8vh, 30px) clamp(28px, 4.5vw, 80px);
  align-items: center;
}
.logo-cell {
  display: grid; place-items: center;
  min-height: clamp(58px, 8.5vh, 104px);
}
.logo-cell img {
  max-width: 100%; max-height: clamp(54px, 7.2vh, 88px);
  width: auto; height: auto; object-fit: contain;
  opacity: 0.92;
}
[data-theme="dark"] .logo-cell img { filter: invert(1) brightness(1.7); }
@media (max-width: 820px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .clients-cols { grid-template-columns: 1fr; gap: clamp(28px, 5vh, 48px); }
}

/* ---------- 5 / 7 · Statement ---------- */
.s-statement { justify-content: center; }
.s-statement .big {
  font-size: clamp(42px, 9vw, 168px);
  max-width: 16ch;
}
.s-statement.center { align-items: flex-start; }

/* ---------- 6 · Team ---------- */
.s-team { padding-top: clamp(36px, 4.6vh, 60px); gap: clamp(10px, 1.5vh, 22px); }
.s-team .team-head { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(6px, 0.9vh, 12px); }
.s-team .team-head h2 { font-size: clamp(28px, 4vw, 60px); }
.s-team .team-lede { max-width: 72ch; color: var(--muted); font-size: clamp(12px, 1.05vw, 16px); line-height: 1.4; text-wrap: pretty; }
.team-grid {
  flex: 0 1 auto; min-height: 0; align-content: start;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 26px);
}
.member { display: flex; flex-direction: column; min-height: 0; }
.member image-slot {
  width: 100%; height: auto; aspect-ratio: 4/5; display: block;
  margin-bottom: 14px;
  background: var(--bg-2);
  flex: 0 0 auto;
}
.member .m-photo {
  width: 100%; aspect-ratio: 4/5; display: block;
  margin-bottom: 10px;
  object-fit: cover; background: var(--bg-2);
  flex: 0 0 auto;
}
.member .m-name { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(18px, 1.6vw, 24px); line-height: 1; }

/* Global Specialists card (replaces a photo) */
.member .spec-card {
  position: relative;
  width: 100%; aspect-ratio: 4/5; margin-bottom: 14px;
  background: var(--accent);
  display: grid; place-items: center;
  overflow: hidden;
}
.member .spec-card .spec-icon {
  width: clamp(40px, 4vw, 64px); height: auto; display: block;
}
.member .spec-card .spec-arrow {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.16);
  display: grid; place-items: center;
}
.member .spec-card .spec-arrow svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.member .m-role { color: var(--accent); font-size: clamp(11px, 1vw, 13px); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 8px; }
.member .m-bio { color: var(--muted); font-size: clamp(10px, 0.85vw, 12px); line-height: 1.38; margin-top: 7px; }
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 16px; overflow-y: auto; }
  .member image-slot { height: auto; aspect-ratio: 1/1; }
}
@media (max-width: 480px) {
  .s-team { padding-bottom: 84px; }
  .team-grid { gap: 14px; }
  .member .m-bio { display: none; }
}

/* ---------- 8 · CTA ---------- */
.s-cta { justify-content: center; }
.s-cta .big { font-size: clamp(46px, 10vw, 190px); max-width: 14ch; }
.s-cta .actions { display: flex; gap: 16px 28px; flex-wrap: wrap; align-items: center; }
.cta-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(20px, 2.4vw, 34px); color: var(--fg); text-decoration: none;
  border-bottom: 2px solid transparent; transition: border-color 220ms, color 220ms;
  padding-bottom: 4px;
}
.cta-link:hover { color: var(--accent); border-color: var(--accent); }
.cta-link .arr { color: var(--accent); }
.s-cta .meta { color: var(--muted); font-size: clamp(12px, 1.2vw, 15px); letter-spacing: 0.04em; display: flex; gap: 28px; flex-wrap: wrap; }
.s-cta .cta-signoff { display: flex; flex-direction: column; gap: clamp(12px, 1.6vh, 18px); align-items: flex-start; margin-top: clamp(8px, 2vh, 22px); }
.s-cta .cta-signoff .cta-logo { height: clamp(20px, 2.2vw, 30px); }
.s-cta .cta-signoff .cta-tag { height: clamp(26px, 3.2vw, 44px); }
