
/* ============================================================
   TRUE DETECTIVE case study — rebuilt from the Figma/Design-canvas
   layout. Scoped to body.td so nothing here touches the other
   project pages that share project.css. Dark #1A2223 page, moss
   (#8FA574) eyebrow tags, teal (#9DBCBF) secondary copy, hairline
   dividers. Sizes are the 1440 canvas values, expressed as clamp()s
   so the layout scales down instead of breaking.
   ============================================================ */
body.td{
  background:var(--td-bg);
  color:#fff;
}
.td .project-open-media{aspect-ratio:2880/1372;}
/* phone crop from the Mobile page in the Figma file: a 390x246 window onto
   the TV shot, image enlarged to 581x279 and nudged left/up */
@media (max-width:600px){
  .td .project-open-media{aspect-ratio:390/246;}
  .td .project-open-media img{
    position:absolute;
    width:149%;height:113.4%;
    left:-24.4%;top:-6.9%;
    max-width:none;
  }
}

/* a hero image that is not the 2880x1372 TV shot: shown whole, no phone crop
   (used by the Five Guys case study) */
.td .project-open-media--plain{aspect-ratio:1616/909;}
@media (max-width:600px){
  .td .project-open-media--plain{aspect-ratio:1616/909;}
  .td .project-open-media--plain img{position:static;width:100%;height:100%;left:auto;top:auto;max-width:100%;}
}
/* case studies without a title video: the inset holds only the back link */
.td .td-media-inset--back{margin-top:clamp(calc(24 * var(--u)),3vw,calc(44 * var(--u)));margin-bottom:clamp(calc(40 * var(--u)),5vw,calc(72 * var(--u)));}
.td-final-copy{max-width:calc(540 * var(--u));margin-top:clamp(calc(28 * var(--u)),4vw,calc(57 * var(--u)));}

/* ---- title + facts band ---- */
.td-band{
  background:var(--color-bg-deep);
  padding:clamp(calc(18 * var(--u)),1.5vw,calc(22 * var(--u))) var(--gutter) clamp(calc(36 * var(--u)),3.9vw,calc(56 * var(--u)));
  position:relative;
  overflow:hidden;
}
.td-band-rule{border:0;border-top:1px solid var(--color-line);margin:0 0 clamp(calc(20 * var(--u)),2.4vw,calc(34 * var(--u)));}
.td-band-inner{position:relative;z-index:1;max-width:var(--content);margin:0 auto;}
.td-title{
  margin:0 0 clamp(calc(14 * var(--u)),2vw,calc(28 * var(--u)));
  font-size:clamp(calc(34 * var(--u)),5.83vw,calc(84 * var(--u)));
  font-weight:var(--fw-medium);
  text-transform:uppercase;
  line-height:normal;
}
.td-facts{
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr;
  gap:calc(24 * var(--u)) calc(32 * var(--u));
}
.td-fact h3{
  margin:0 0 calc(9 * var(--u));
  font-size:var(--fs-subheading);
  font-weight:var(--fw-bold);
  line-height:normal;
  color:#fff;
}
.td-fact p{
  margin:0;
  max-width:calc(230 * var(--u));
  font-size:var(--fs-lede);
  font-weight:var(--fw-light);
  line-height:normal;
  color:rgba(255,255,255,.88);
}

/* ---- video ---- */
.td-media-inset{
  margin:clamp(calc(40 * var(--u)),7.5vw,calc(108 * var(--u))) auto clamp(calc(64 * var(--u)),9vw,calc(130 * var(--u)));
}
.td-back{
  display:inline-block;
  margin:0 0 calc(20 * var(--u));
  font-size:calc(15 * var(--u));
  font-weight:var(--fw-medium);
  opacity:.6;
  transition:opacity .2s ease;
}
.td-back:hover{opacity:1;}
.td .td-media-inset{max-width:var(--content);padding:0 var(--gutter);}

/* ---- shared section bits ---- */
.td-section{padding:0 var(--gutter);}
.td-inner{max-width:var(--content);margin:0 auto;}
.td-h2{
  margin:0;
  font-size:var(--fs-title-md);
  font-weight:var(--fw-medium);
  line-height:normal;
}
.td-eyebrow{
  margin:0 0 calc(14 * var(--u));
  font-size:var(--fs-body);
  font-weight:var(--fw-medium);
  text-transform:uppercase;
  letter-spacing:.14em;
  line-height:normal;
  color:var(--td-moss);
}
.td-h3{
  margin:0 0 clamp(calc(14 * var(--u)),2.1vw,calc(30 * var(--u)));
  font-size:clamp(calc(24 * var(--u)),2.22vw,calc(32 * var(--u)));
  font-weight:var(--fw-medium);
  line-height:normal;
}
.td-h3--caps{text-transform:uppercase;}
.td-body{
  margin:0;
  font-size:var(--fs-lede);
  font-weight:var(--fw-light);
  line-height:1.3;
}
.td-body--lg{font-size:clamp(calc(18 * var(--u)),1.67vw,calc(24 * var(--u)));line-height:1.2;}
.td-teal{color:var(--td-teal);}
.td-rule{border:0;border-top:1px solid var(--td-line);margin:0;}
.td-shot{
  position:relative;
  overflow:hidden;
  background:#000;
  box-shadow:0 0 0 1px rgba(255,255,255,.12);
}
.td-shot img{display:block;width:100%;height:100%;object-fit:cover;}

/* ---- overview ---- */
.td-overview{padding-bottom:clamp(calc(64 * var(--u)),8vw,calc(115 * var(--u)));}
.td-hook{
  margin:clamp(calc(32 * var(--u)),4.4vw,calc(64 * var(--u))) 0 0;
  max-width:calc(1100 * var(--u));
  font-size:clamp(calc(26 * var(--u)),3.06vw,calc(44 * var(--u)));
  font-weight:var(--fw-light);
  line-height:1.15;
  color:var(--td-teal);
}
.td-rule--top{margin:0 0 clamp(calc(24 * var(--u)),3vw,calc(43 * var(--u)));}
.td-cols--overview{margin-top:clamp(calc(16 * var(--u)),2vw,calc(28 * var(--u)));}
.td-cols{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:calc(48 * var(--u)) clamp(calc(40 * var(--u)),7vw,calc(100 * var(--u)));
}
.td-cols > div{max-width:calc(540 * var(--u));}

/* ---- design process ---- */
.td-process{padding-bottom:clamp(calc(64 * var(--u)),8vw,calc(115 * var(--u)));}
.td-process .td-h2{margin-bottom:clamp(calc(40 * var(--u)),7.7vw,calc(110 * var(--u)));}
.td-row{
  display:grid;
  align-items:start;
  gap:calc(24 * var(--u)) clamp(calc(24 * var(--u)),2.6vw,calc(38 * var(--u)));
  margin-bottom:clamp(calc(56 * var(--u)),9.7vw,calc(140 * var(--u)));
}
.td-row--text-left{grid-template-columns:minmax(0,551fr) minmax(0,802fr);}
.td-row--img-left{grid-template-columns:minmax(0,802fr) minmax(0,551fr);}
.td-row--img-left .td-shot{order:-1;}
.td-row:last-child{margin-bottom:0;}
.td-row .td-body--lg + .td-body--lg{margin-top:calc(20 * var(--u));}

/* ---- key takeaways ---- */
.td-takeaways{padding-bottom:clamp(calc(64 * var(--u)),8vw,calc(115 * var(--u)));}
.td-takeaways .td-h2{margin:0 auto clamp(calc(28 * var(--u)),4vw,calc(57 * var(--u)));max-width:var(--canvas);padding:0 var(--gutter);}
.td-takeaways-rule{max-width:calc(var(--canvas) - 2*var(--gutter));margin-left:auto;margin-right:auto;}
.td-phones{width:100%;aspect-ratio:2880/854;margin:0;background:#fff;}
.td-takeaways .td-inner{max-width:var(--canvas);padding:0 var(--gutter);}
.td-outputs{
  display:grid;
  grid-template-columns:minmax(0,576fr) minmax(0,696fr);
  gap:calc(32 * var(--u)) clamp(calc(40 * var(--u)),8.3vw,calc(120 * var(--u)));
  align-items:start;
  margin-top:clamp(calc(40 * var(--u)),5.5vw,calc(80 * var(--u)));
  padding-top:clamp(calc(28 * var(--u)),5vw,calc(80 * var(--u)));
}
.td-crops{aspect-ratio:1249/784;}
.td-label-row{
  display:flex;
  margin:calc(12 * var(--u)) 0 0;
  position:relative;
  height:calc(19 * var(--u));
  font-size:var(--fs-body);
  font-weight:var(--fw-medium);
  text-transform:uppercase;
  letter-spacing:.14em;
  line-height:normal;
  color:var(--td-moss);
}
.td-label-row span:nth-child(2){position:absolute;left:40.6%;}
.td-label-row--solo{margin:calc(14 * var(--u)) 0 0;}
.td-outputs .td-body + .td-body{margin-top:clamp(calc(18 * var(--u)),2.4vw,calc(34 * var(--u)));}
.td-final{
  aspect-ratio:2785/1204;
  margin-top:clamp(calc(40 * var(--u)),5.5vw,calc(80 * var(--u)));
}

/* ---- what I learned ---- */
.td-learned{padding-bottom:clamp(calc(64 * var(--u)),8vw,calc(115 * var(--u)));}
.td-learned .td-h2{margin-bottom:clamp(calc(32 * var(--u)),6vw,calc(86 * var(--u)));}
.td-learned .td-h3{font-weight:var(--fw-bold);color:#fff;margin-bottom:calc(12 * var(--u));}

/* ---- next project / footer sit on the same dark page ---- */
.td .project-next{background:var(--td-band);}

@media (max-width:900px){
  .td-facts{grid-template-columns:1fr 1fr;}
  .td-cols{grid-template-columns:1fr;}
  .td-row--text-left,.td-row--img-left{grid-template-columns:1fr;}
  .td-row--img-left .td-shot{order:0;}
  .td-outputs{grid-template-columns:1fr;}
}


/* ============================================================
   FOOTER — the homepage's "Get in touch" footer, ported 1:1
   (aurora layers, letter blur, rail-link hover field, entrance)
   ============================================================ */





























/* aura layers below replace the old flat blue radial-gradient —
   reusing the exact hero aurora so the two dark sections match. */



/* same icons + hover field as the hero rail (.rail-link), laid out in a
   row: calc(40 * var(--u)) hit areas on a calc(59 * var(--u)) pitch like the frame */
/* entrance — the hero wordmark's own keyframes (the heroAdam, heroGalante and
   heroSub sets) reused as-is, so the footer rises calc(172 * var(--u)), fades up and un-blurs
   from calc(100 * var(--u)) at exactly the hero's speed and cadence. The -.23s delay
   just skips the hero timeline's idle lead-in so it starts the moment the
   footer is in view (see the "footer reveal" script at the bottom). */









/* ============================================================
/* beat project.css's older footer rules (same specificity otherwise) */
body.td .footer::before{content:none;}
body.td .footer{min-height:calc(326 * var(--u));}
body.td .footer-inner{margin:0 auto;padding:clamp(calc(40 * var(--u)),5.21vw,calc(75 * var(--u))) calc(25 * var(--u)) 0;}
body.td .footer h2{margin:0;font-size:var(--fs-title-lg);font-weight:var(--fw-bold);letter-spacing:0;line-height:1.05;}
body.td .footer-copy{margin:clamp(calc(28 * var(--u)),3.4vw,calc(49 * var(--u))) 0 0;padding-bottom:clamp(calc(20 * var(--u)),2.4vw,calc(35 * var(--u)));text-align:center;font-size:var(--fs-caption);font-weight:var(--fw-light);line-height:normal;}
@media (max-width:900px){
  body.td .footer-inner{padding:calc(36 * var(--u)) calc(16 * var(--u)) 0;}
  body.td .footer-icons{margin-left:0;}
  .aura-layer-1{filter:blur(calc(85 * var(--u)));}
  .aura-layer-2{filter:blur(calc(75 * var(--u)));}
  .aura-layer-3{filter:blur(calc(70 * var(--u)));}
  .aura-layer-4{filter:blur(calc(175 * var(--u)));}
  .aura-layer-5{filter:blur(calc(80 * var(--u)));}
  .aura-layer-6{filter:blur(calc(138 * var(--u)));}
}
@media (prefers-reduced-motion:reduce){
  .aura-layer-1,.aura-layer-2,.aura-layer-3,.aura-layer-4,.aura-layer-5,.aura-layer-6{animation:none;}
}

/* Five Guys: hooks inside later sections */
.td-hook--process{margin:0 0 clamp(calc(40 * var(--u)),7.7vw,calc(110 * var(--u)));}
.td-hook--learned{margin:calc(clamp(calc(32 * var(--u)),6vw,calc(86 * var(--u))) * -.4) 0 clamp(calc(32 * var(--u)),6vw,calc(86 * var(--u)));}
.td-final-copy .td-hook{margin:0 0 clamp(calc(16 * var(--u)),2vw,calc(28 * var(--u)));}
.td-process .td-h2 + .td-hook--process{margin-top:calc(clamp(calc(40 * var(--u)),7.7vw,calc(110 * var(--u))) * -.62);}

/* True Detective: the title-sequence video opens the page full-bleed (16:9,
   uncropped); the TV still sits in the inset below the facts band */
.td .project-open-media--video{aspect-ratio:16/9;background:#000;}
.td .project-open-media--video video{display:block;width:100%;height:100%;object-fit:cover;}
@media (max-width:600px){.td .project-open-media--video{aspect-ratio:16/9;}}
.td-title-still{position:relative;width:100%;aspect-ratio:2880/1372;overflow:hidden;background:#000;}
.td-title-still img{display:block;width:100%;height:100%;object-fit:cover;}

/* TV still: full-bleed, edge to edge at every screen width, natural ratio */
.td-title-still{width:100%;aspect-ratio:auto;background:none;margin:0;}
.td-title-still img{display:block;width:100%;height:auto;object-fit:initial;}
.td .td-media-inset:not(.td-media-inset--back){padding-bottom:clamp(calc(20 * var(--u)),2.5vw,calc(36 * var(--u)));}

/* Five Guys kiosk: the animation sits under "Back to Works", inset like the other media */
.td-kiosk-video{margin-bottom:clamp(calc(40 * var(--u)),5vw,calc(72 * var(--u)));}
.td-kiosk-video video{display:block;width:100%;height:auto;aspect-ratio:1920/1200;background:#000;}
