/* Home only: "Pinecrest 3D Freestanding Turntable Studio" for "How we work".
   Borderless Apple Keynote typography on the left paired with 7 freestanding, thick
   chamfered-bevel Three.js 3D portrait plaques revolving around an open circular 3D
   turntable (open rounded tops, crisp gaps between plaques) over a low satin-slate plinth. */

.field-runway{
 position:relative;z-index:8;
 background:radial-gradient(64% 58% at 68% 48%,#0e1f4d 0%,#060e23 76%);
 color:#fff;
 font-family:"Archivo Pinecrest",Archivo,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

@media (min-width:761px) and (prefers-reduced-motion:no-preference){
 .field-runway{
  height:790vh;
 }
 .field-sticky{
  position:sticky;
  top:calc(var(--header) - var(--hdr-cut,28px));
  height:calc(100svh - var(--header) + var(--hdr-cut,28px));
  overflow:hidden;
  display:flex;flex-direction:column;justify-content:space-between;
  cursor:grab;
  touch-action:pan-y;
 }
 .field-sticky.is-dragging{cursor:grabbing;user-select:none;-webkit-user-select:none}
 .field-sticky.is-dragging *{user-select:none;-webkit-user-select:none}
}

.field-webgl{
 position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;display:block;
}

/* Keep semantic DOM cards accessible on desktop & active on mobile */
.field-3d-active .field-cards-stage,
.field-3d-active .field-footer{
 position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);
 clip-path:inset(50%);white-space:nowrap;pointer-events:none;
}

/* Minimal top architectural bar */
.field-toolbar{
 position:relative;z-index:10;
 display:flex;align-items:center;justify-content:space-between;gap:20px;
 padding:clamp(16px,2.2vh,26px) var(--gutter) 6px;
 pointer-events:auto;
}
.field-heading-wrap{
 display:flex;align-items:baseline;gap:14px;min-width:0;
}
.field-toolbar h2{
 margin:0;color:rgba(255,255,255,.92);font-size:clamp(18px,1.55vw,23px);font-weight:600;
 letter-spacing:-.025em;line-height:1.1;
}
.field-3d-active .field-active-name,
.field-3d-active .field-dots{
 display:none;
}
.field-controls{
 display:flex;align-items:center;gap:12px;
}
.field-controls button[data-field-step]{
 display:grid;place-items:center;width:36px;height:36px;border-radius:50%;
 border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.04);
 color:#fff;font-size:16px;line-height:1;cursor:pointer;
 transition:background .22s ease,border-color .22s ease,color .22s ease,opacity .22s ease;
}
.field-controls button[data-field-step]:hover:not(:disabled){
 background:#ffffff;border-color:#ffffff;color:#081234;
}
.field-controls button[data-field-step]:disabled{opacity:.24;cursor:default}
.field-count{
 font-size:12.5px;font-weight:600;min-width:48px;text-align:center;
 color:rgba(205,222,250,.68);font-variant-numeric:tabular-nums;letter-spacing:.04em;
}

/* ====== MAIN STAGE: BORDERLESS LEFT EDITORIAL + RIGHT FREESTANDING 3D TURNTABLE ====== */
.turn-stage{
 position:relative;z-index:6;flex:1;min-height:0;
 display:flex;flex-direction:column;justify-content:space-between;
 padding:0 var(--gutter) clamp(16px,2.2vh,26px);
 pointer-events:none;
}

.turn-main{
 position:relative;flex:1;min-height:0;
 display:flex;align-items:center;
}

.turn-editorial{
 position:relative;z-index:8;
 width:min(492px,37vw);
 pointer-events:auto;
 cursor:default;
}

.turn-kicker{
 display:flex;align-items:center;gap:8px;
 margin-bottom:clamp(14px,2vh,20px);
}
.turn-kicker-num{
 font-size:12.5px;font-weight:800;letter-spacing:.06em;
 color:#4cccf4;font-variant-numeric:tabular-nums;
}
.turn-kicker-sep,.turn-kicker-total{
 font-size:11.5px;font-weight:600;color:rgba(200,218,248,.46);
 font-variant-numeric:tabular-nums;
}
.turn-kicker-dash{
 width:22px;height:1px;margin:0 4px;background:rgba(76,204,244,.45);
}
.turn-kicker-name{
 font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
 color:rgba(225,238,255,.88);
}

.turn-slides{
 position:relative;display:grid;
}
.turn-slide{
 grid-area:1 / 1;
 pointer-events:none;
}
.turn-slide.is-current{
 pointer-events:auto;
}

.turn-headline{
 margin:0 0 clamp(16px,2vh,22px);
 font-size:clamp(32px,3.2vw,49px);
 line-height:1.05;font-weight:700;letter-spacing:-.04em;
 color:#ffffff;
}
.turn-line-mask{
 display:block;overflow:hidden;padding-bottom:.07em;margin-bottom:-.05em;
}
.turn-line{
 display:block;
 transform:translate3d(0,115%,0);opacity:0;
 transition:
  transform .66s cubic-bezier(.16,1,.3,1) calc(var(--li,0) * 60ms),
  opacity .42s ease calc(var(--li,0) * 60ms);
 will-change:transform,opacity;
}
.turn-line.is-accent{color:#52cef5}
.turn-slide.is-above .turn-line{
 transform:translate3d(0,-115%,0);opacity:0;transition-delay:0ms;
}
.turn-slide.is-below .turn-line{
 transform:translate3d(0,115%,0);opacity:0;transition-delay:0ms;
}
.turn-slide.is-current .turn-line{
 transform:translate3d(0,0,0);opacity:1;
}

.turn-copy{
 margin:0;
 max-width:48ch;
 font-size:clamp(15.5px,1.12vw,17.4px);line-height:1.62;letter-spacing:-.006em;
 color:rgba(206,222,249,.86);
 opacity:0;transform:translate3d(0,14px,0);
 transition:transform .56s cubic-bezier(.16,1,.3,1) .09s,opacity .4s ease .09s;
}
.turn-slide.is-above .turn-copy{
 transform:translate3d(0,-10px,0);opacity:0;transition-delay:0ms;transition-duration:.24s;
}
.turn-slide.is-below .turn-copy{
 transform:translate3d(0,14px,0);opacity:0;transition-delay:0ms;transition-duration:.24s;
}
.turn-slide.is-current .turn-copy{
 opacity:1;transform:translate3d(0,0,0);
}

.turn-specs{
 display:flex;flex-wrap:wrap;gap:8px;
 opacity:0;transform:translate3d(0,12px,0);
 transition:transform .54s cubic-bezier(.16,1,.3,1) .14s,opacity .38s ease .14s;
}
.turn-slide.is-above .turn-specs,
.turn-slide.is-below .turn-specs{
 opacity:0;transition-delay:0ms;transition-duration:.22s;
}
.turn-slide.is-current .turn-specs{
 opacity:1;transform:translate3d(0,0,0);
}
.turn-spec{
 font-size:11.5px;font-weight:600;
 padding:6px 13px;border-radius:999px;
 background:rgba(255,255,255,.04);
 border:1px solid rgba(255,255,255,.15);
 color:rgba(230,242,255,.92);
}

/* Whisper-subtle interaction cue tucked bottom-right */
.turn-hint{
 position:absolute;right:0;bottom:8px;z-index:8;
 display:inline-flex;align-items:center;gap:8px;
 font-size:11.5px;font-weight:500;letter-spacing:.03em;
 color:rgba(190,214,248,.52);
 pointer-events:none;
}
.turn-hint-dot{
 width:6px;height:6px;border-radius:50%;background:#4cccf4;
}

/* ====== MINIMAL 7-CHAPTER PROGRESS DOCK (BOTTOM) ====== */
.turn-dock{
 position:relative;z-index:10;
 display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:14px;
 pointer-events:auto;
}
.turn-tab{
 appearance:none;border:0;background:none;padding:6px 0 0;margin:0;
 text-align:left;cursor:pointer;color:inherit;
}
.turn-tab-bar{
 display:block;height:2px;border-radius:2px;
 background:rgba(255,255,255,.12);overflow:hidden;margin-bottom:9px;
}
.turn-tab-bar > span{
 display:block;width:100%;height:100%;
 background:#4cccf4;border-radius:2px;
 transform:scaleX(0);transform-origin:left center;
 transition:transform .28s cubic-bezier(.16,1,.3,1);
}
.turn-tab-meta{
 display:flex;align-items:baseline;gap:7px;min-width:0;
 font-size:12px;font-weight:500;letter-spacing:-.01em;
 color:rgba(198,216,246,.42);
 transition:color .22s ease;
}
.turn-tab:hover .turn-tab-meta{color:rgba(225,238,255,.84)}
.turn-tab.is-active .turn-tab-meta{color:#ffffff;font-weight:600}
.turn-tab-num{
 font-size:11px;font-weight:700;font-variant-numeric:tabular-nums;opacity:.75;
}
.turn-tab.is-active .turn-tab-num{color:#4cccf4;opacity:1}
.turn-tab-name{
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* Use the same approved alpha outlines in the native photo cards. */
.field-portraits .team-cutout[data-cutout-src]{
 -webkit-mask-image:var(--rail-cutout);mask-image:var(--rail-cutout);
 -webkit-mask-size:contain;mask-size:contain;
 -webkit-mask-position:center bottom;mask-position:center bottom;
 -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
}

/* ====== MOBILE & REDUCED MOTION CLEAN FALLBACK ====== */
@media (max-width:760px),(prefers-reduced-motion:reduce){
 .field-runway{height:auto;padding:48px 0 56px}
 .field-sticky{position:static;height:auto;overflow:visible;cursor:default}
 .field-webgl,.turn-stage{display:none!important}
 .field-toolbar{padding:0 var(--gutter) 22px}
 .field-controls{display:none}
 .field-cards-stage,
 .field-3d-active .field-cards-stage{
  position:static;width:auto;height:auto;overflow:visible;clip:auto;clip-path:none;
  white-space:normal;pointer-events:auto;
  display:grid;gap:20px;padding:0 var(--gutter);
 }
 .field-card{
  border-radius:22px;overflow:hidden;
  display:grid;gap:18px;padding:24px 22px 0;
 }
 .field-card.white-card{background:#ffffff;color:#081434}
 .field-card.cyan-card{background:linear-gradient(155deg,#6ecceb 0%,#3faad6 100%);color:#071433}
 .field-card .section-kicker{
  display:flex;justify-content:space-between;font-size:11.5px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;opacity:.68;margin-bottom:10px;
 }
 .field-card h2{margin:0 0 12px;font-size:26px;line-height:1.08;letter-spacing:-.03em}
 .field-card p{margin:0;font-size:14.5px;line-height:1.58;opacity:.84}
 .field-portraits{
  display:flex;align-items:flex-end;justify-content:center;height:210px;
 }
 .field-portraits .team-cutout{
  height:96%;width:auto;max-width:56%;object-fit:contain;object-position:bottom;
 }
 /* Reset legacy negative margins for pairs that need separate portrait columns. */
 .field-portraits-separated .team-cutout{
  margin-left:0;max-width:50%;flex:0 1 50%;min-width:0;
 }
 .field-card.white-card .team-cutout{mix-blend-mode:multiply}
 .field-footer{display:none}
}
