/* =========================================================
   TRANSCENDENT ENTERPRISE — v3 "THE ASCENT"
   Page loads at the bottom; scrolling UP is the journey.
   At the peak the flight banks WEST (horizontal).
   Type system extracted from coffeeand.tv (vw-scaled
   extrabold, tight tracking) · white type over media,
   no solid section backgrounds · NYC grit accents.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,800;1,900&display=swap');

:root {
  --ink: #ffffff;
  --ink-dim: rgba(255,255,255,.75);
  --muted: rgba(255,255,255,.55);
  --line: rgba(255,255,255,.2);
  --base: #0b0d12;

  --te-blue: #1E6DB6;
  --te-blue-light: #7fb3e8;
  --te-blue-deep: #14508a;
  --mta-blue: #0039A6;
  --taxi: #F5B301;
  --ticket: #ff7a3c;

  /* type scale — extracted from coffeeand.tv (vw-based) */
  --fs-xl: clamp(52px, 11vw, 150px);
  --fs-lg: clamp(38px, 7vw, 96px);
  --fs-md: clamp(26px, 3.4vw, 48px);
  --fs-reg: clamp(17px, 2vw, 24px);
  --fs-sm: clamp(13px, 1.2vw, 16px);
  --fs-xs: clamp(11px, .93vw, 13px);

  --max: 1500px;
  --gut: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* smooth scrolling handled by Lenis (linkaproduction.com-style glide) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-reg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img, svg, iframe, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--te-blue); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;   /* coffeeand.tv header tracking */
  line-height: .9;
}
.accent { color: var(--te-blue); }
.accent-light { color: var(--te-blue-light); }

/* altitude markers — the ascent motif */
.alt-marker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em;
  color: rgba(255,255,255,.6);
  margin-bottom: 26px;
}
.alt-marker::before { content: ""; width: 34px; height: 1px; background: var(--taxi); }

/* ---------- film grain ---------- */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   INTRO — 45° takeoff → logo (unchanged choreography)
   ========================================================= */
#intro {
  position: fixed; inset: 0;
  z-index: 100;
  background: #000;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
#intro.done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
#intro.killed { display: none; }
#intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

#skip-intro {
  position: absolute; bottom: 28px; right: 28px; z-index: 2;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.85);
  font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 99px; cursor: pointer;
}
#skip-intro:hover { border-color: #fff; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  #intro { display: none; }
}

/* =========================================================
   NAV — transparent, white type over media (coffeeand.tv style)
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  background: transparent;
  color: #fff;
}
.nav::before {
  content: ""; position: absolute; inset: 0; height: 140%;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent);
  pointer-events: none; z-index: -1;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; font-size: 17px; line-height: 1; }
.brand img { width: 62px; height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--te-blue-light); }
.nav-cta { border: 1.5px solid rgba(255,255,255,.85); padding: 10px 20px; border-radius: 99px; }
.nav-cta:hover { background: #fff; color: #0b0d12 !important; }

/* =========================================================
   MEDIA SECTIONS — type overlays imagery, no solid bg
   ========================================================= */
.media-sec { position: relative; overflow: hidden; }
.media-sec .m-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.media-sec .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-sec.is-video > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-sec .m-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,18,.78), rgba(11,13,18,.5) 45%, rgba(11,13,18,.82)); }
.media-sec .m-shade.heavy { background: rgba(11,13,18,.82); }
.media-sec .m-inner { position: relative; z-index: 2; padding-top: clamp(70px, 9vw, 130px); padding-bottom: clamp(70px, 9vw, 130px); }

.ed-grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ed-grid h2 { font-size: var(--fs-md); letter-spacing: -.035em; line-height: 1; position: sticky; top: 110px; }
.big-title {
  font-size: var(--fs-lg);
  letter-spacing: -.045em;
  line-height: .95;
  overflow-wrap: break-word;
  margin-bottom: clamp(30px, 4.5vw, 60px);
}
.ed-solo { max-width: 820px; margin-left: auto; }
.ed-body p { margin-bottom: 1.2em; color: var(--ink-dim); font-weight: 500; }
.ed-body p strong { color: #fff; font-weight: 800; }

/* statement */
.statement .m-inner { padding-top: clamp(90px, 14vw, 200px); padding-bottom: clamp(90px, 14vw, 200px); }
.statement h2 { font-size: var(--fs-lg); letter-spacing: -.045em; max-width: 1200px; }
.statement h2 em { font-style: italic; color: var(--te-blue-light); }

/* =========================================================
   SUBWAY SIGN headers (kept — thin NYC accent strips)
   ========================================================= */
.subway-sign {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 16px;
  background: #0a0a0a; color: #fff;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 13px var(--gut);
  font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em;
}
.subway-sign .bullet {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--te-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
}
.subway-sign .dim { color: rgba(255,255,255,.45); margin-left: auto; }

/* =========================================================
   WORK
   ========================================================= */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.work-card { position: relative; }
.frame { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; border-radius: 6px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.yt-lite { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .4s var(--ease), transform .6s var(--ease); }
.yt-lite:hover img { opacity: 1; transform: scale(1.03); }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 74px; height: 74px; border-radius: 50%; background: var(--te-blue); box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .3s var(--ease), background .3s var(--ease); }
.yt-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.yt-lite:hover .yt-play { transform: translate(-50%,-50%) scale(1.1); background: var(--te-blue-deep); }

.pod-card { max-width: 940px; margin: clamp(40px, 6vw, 72px) auto 0; }

.work-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 16px; }
.work-meta h3 { font-size: var(--fs-md); }
.work-meta .tag { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }

/* =========================================================
   NYC GRIT CARDS
   ========================================================= */
.ticket-card {
  background: #fff; color: #141311;
  border: 1.5px solid #141311;
  padding: 26px 28px;
  margin: 28px 0;
  transform: rotate(-1.2deg);
  box-shadow: 6px 6px 0 var(--ticket);
}
.ticket-card::before {
  content: "NOTICE · NYC · DO NOT DISCARD";
  display: block;
  font-size: 10px; font-weight: 800; letter-spacing: .22em;
  color: var(--ticket);
  border-bottom: 1px dashed rgba(20,19,17,.3);
  padding-bottom: 8px; margin-bottom: 14px;
}
.ticket-card blockquote { font-size: var(--fs-reg); font-weight: 600; font-style: italic; line-height: 1.4; }

.metro-card {
  background: var(--taxi); color: var(--mta-blue);
  border-radius: 10px;
  padding: 24px 26px 20px;
  margin: 28px 0;
  transform: rotate(1.4deg);
  max-width: 460px;
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.6);
  position: relative; overflow: hidden;
}
.metro-card::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 34px; background: #111; }
.metro-card .mc-top { font-size: 10px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 12px; }
.metro-card blockquote { font-size: var(--fs-reg); font-weight: 800; font-style: italic; line-height: 1.3; padding-right: 40px; }
.metro-card .mc-bottom { margin-top: 14px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding-right: 40px; }

/* =========================================================
   PORTFOLIO MOSAIC — brand-tile grid, hover darkens + labels
   ========================================================= */
.pf { padding: 12px; }
.pf-head { padding-top: 26px; padding-bottom: 18px; }
.pf-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 23vh;
  gap: 10px;
}
.pf-tile { position: relative; overflow: hidden; display: block; background: #000; }
.pf-tile img { width: 100%; height: 100%; object-fit: cover; transition: filter .5s var(--ease), transform .8s var(--ease); }
.t1 { grid-column: 1 / 4; grid-row: span 2; }
.t2 { grid-column: 4 / 7; grid-row: span 2; }
.t3 { grid-column: 1 / 3; grid-row: span 3; }
.t4 { grid-column: 3 / 5; grid-row: span 3; }
.t5 { grid-column: 5 / 7; grid-row: span 3; }
.t6 { grid-column: 1 / 3; grid-row: span 2; }
.t7 { grid-column: 3 / 5; grid-row: span 2; }
.t8 { grid-column: 5 / 7; grid-row: span 2; }

.pf-title, .pf-loc {
  position: absolute; bottom: 22px; z-index: 2;
  color: #fff; font-weight: 600;
  font-size: clamp(16px, 1.5vw, 22px);
  letter-spacing: .01em;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.pf-title { left: 24px; }
.pf-loc { right: 24px; transition-delay: .06s; }
.pf-tile:hover img { filter: brightness(.45); transform: scale(1.025); }
.pf-tile:hover .pf-title, .pf-tile:hover .pf-loc { opacity: 1; transform: none; }
.pf-tile:focus-visible img { filter: brightness(.45); }

@media (max-width: 860px) {
  .pf-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 26vh; }
  .pf-grid .pf-tile { grid-column: auto / span 2 !important; grid-row: span 1 !important; }
  .pf-title, .pf-loc { opacity: 1; transform: none; } /* labels always visible on touch */
}

/* =========================================================
   POWERED BY — tall page, headline follows the climb (sticky),
   then docks and scrolls away when the next page arrives
   ========================================================= */
.m-shade.light { background: linear-gradient(180deg, rgba(11,13,18,.55), rgba(11,13,18,.22) 50%, rgba(11,13,18,.6)); }
.powered-inner {
  position: relative; z-index: 2;
  min-height: 185vh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.powered-stick { position: sticky; bottom: 18vh; padding-bottom: 4vh; }
.powered .ed-grid h2 { position: static; font-size: var(--fs-lg); }
.powered .ed-body p { text-shadow: 0 2px 18px rgba(0,0,0,.5); color: rgba(255,255,255,.88); }
.powered-title { font-size: var(--fs-lg); letter-spacing: -.045em; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.accent-taxi { color: var(--taxi); }

/* tribeca crossfade slideshow */
.tribeca { background: #10131a; }
.slideshow { position: absolute; inset: 0; }
.slideshow img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.slideshow img.on { opacity: 1; }

/* client tag — vertical side label */
.client-tag {
  position: absolute; z-index: 3;
  top: 50%; right: calc(var(--gut) * .4);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .26em;
  color: rgba(255,255,255,.7);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5402a; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@media (max-width: 860px) { .client-tag { display: none; } }

/* services grid — type over imagery */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(36px, 5vw, 64px);
}
.svc-card { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4/3; display: block; box-shadow: 0 18px 44px -18px rgba(0,0,0,.8); }
.svc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,18,.05) 40%, rgba(11,13,18,.82)); }
.svc-card:hover img { transform: scale(1.05); }
.svc-txt { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; }
.svc-txt h3 { font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; }
.svc-txt p { margin-top: 4px; font-size: var(--fs-xs); font-weight: 600; color: rgba(255,255,255,.75); letter-spacing: .02em; }
.svc-card:hover .svc-txt h3 { color: var(--te-blue-light); }

/* gallery */
.gallery-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); margin-top: clamp(36px, 5vw, 64px); }
.gallery-row figure img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; box-shadow: 0 18px 44px -18px rgba(0,0,0,.8); }
.gallery-row figcaption { margin-top: 10px; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll 36s linear infinite; font-weight: 800; text-transform: uppercase; font-size: var(--fs-sm); letter-spacing: .04em; white-space: nowrap; color: var(--ink-dim); }
.marquee-track .sep { color: var(--te-blue-light); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* caption below the client bar — bold, white, centered, no background */
.marquee-cap { position: relative; z-index: 6; height: 0; display: flex; justify-content: center; }
.marquee-cap span {
  transform: translateY(22px);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}

/* =========================================================
   HERO — ground level, page starts here (bottom of document)
   ========================================================= */
.hero-video {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-video > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(200deg, rgba(11,13,18,.15) 30%, rgba(11,13,18,.85) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 130px; padding-bottom: clamp(90px, 11vw, 160px); }
.hero-content h1 { font-size: var(--fs-xl); letter-spacing: -.05em; }
#great-title { position: relative; z-index: 6; will-change: transform; }
.hero-copy { max-width: 680px; margin-top: 30px; }
.hero-copy .lead { color: #fff; font-weight: 600; font-size: var(--fs-reg); line-height: 1.45; }
.hero-copy .sub-lead { margin-top: 16px; color: var(--ink-dim); font-weight: 500; font-size: calc(var(--fs-reg) * .82); line-height: 1.55; max-width: 600px; }
.hero-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; align-items: center; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ascend-cue {
  position: absolute; z-index: 3;
  right: var(--gut); bottom: 30px;
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
  color: rgba(255,255,255,.8);
}
.ascend-cue .ac-arrow { color: var(--taxi); animation: rise 1.6s var(--ease) infinite; }
@keyframes rise { 0%,100% { transform: translateY(4px); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* =========================================================
   PEAK — pinned horizontal flight WEST (document top)
   ========================================================= */
.peak { height: 340vh; position: relative; }
.peak-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.peak-track {
  display: flex; height: 100%; width: 300vw;
  will-change: transform;
}
.panel { position: relative; width: 100vw; height: 100%; overflow: hidden; display: flex; align-items: center; }
.panel .p-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.panel > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel .ed-grid h2 { position: static; }
.grad-title { font-size: var(--fs-md); letter-spacing: -.035em; line-height: 1; }
.panel .ed-body p { text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.panel .p-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,18,.72), rgba(11,13,18,.55) 50%, rgba(11,13,18,.8)); }
.panel .p-inner { position: relative; z-index: 2; width: 100%; }
.p-title { font-size: var(--fs-lg); letter-spacing: -.045em; }
.p-title a:hover { color: var(--te-blue-light); }
.p-lead { max-width: 560px; margin-top: 26px; color: var(--ink-dim); font-weight: 500; }

.client-wall {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 40px;
  font-size: var(--fs-md); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: 1.15;
}
.client-wall li:hover { color: var(--te-blue-light); }

/* final panel — flat brand blue, the closing stamp */
.panel-final { background: var(--te-blue); }
.pf-inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 96px; padding-bottom: 22px; gap: 18px; }
.pf-top { display: flex; justify-content: space-between; gap: clamp(20px, 4vw, 60px); align-items: flex-start; flex-wrap: wrap; }
.pf-h { font-size: var(--fs-md); letter-spacing: -.035em; }
.pf-h em { font-style: italic; color: var(--taxi); }
.pf-left .hero-cta { margin-top: 22px; }
.btn-launch-inverse { background: #fff; color: var(--te-blue-deep); box-shadow: 0 14px 34px -12px rgba(0,0,0,.35); }
.btn-launch-inverse:hover { background: #0d1626; color: #fff; }
.panel-final .cta-note { color: rgba(255,255,255,.7); }
.pf-creds { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; justify-content: flex-end; }
.pf-creds li { border: 1px solid rgba(255,255,255,.45); border-radius: 99px; padding: 7px 14px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.panel-final .contact-grid { border-top-color: rgba(255,255,255,.3); margin-top: 0; padding-top: 18px; }
.panel-final .contact-grid .label { color: rgba(255,255,255,.6); }
.panel-final .contact-grid a:hover { color: var(--taxi); }
.pf-cities { display: flex; justify-content: space-between; font-size: var(--fs-sm); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.pf-word {
  font-size: clamp(38px, 10.2vw, 165px);
  font-weight: 900; text-transform: uppercase; letter-spacing: -.045em; line-height: .82;
  text-align: center; white-space: nowrap;
  color: #fff;
}
.pf-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-social { display: flex; gap: clamp(12px, 2vw, 26px); flex-wrap: wrap; }
.pf-social a { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pf-social a:hover { color: var(--taxi); }
.panel-final .footer-line { margin-top: 0; color: rgba(255,255,255,.65); }
@media (max-width: 860px) {
  .pf-creds { justify-content: flex-start; }
  .pf-word { white-space: normal; }
  .pf-cities { display: none; }
}

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.contact-grid .label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-grid a:hover { color: var(--taxi); }
.mwbe { display: inline-block; margin-top: 34px; border: 1px solid var(--line); border-radius: 99px; padding: 10px 20px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.footer-line { margin-top: 26px; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   LAUNCH YOUR PROJECT — CTA + modal
   ========================================================= */
.btn-launch {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--te-blue); color: #fff;
  border: 0; border-radius: 99px; cursor: pointer;
  padding: 16px 32px;
  font: 800 var(--fs-sm) var(--sans);
  text-transform: uppercase; letter-spacing: .08em;
  box-shadow: 0 14px 34px -12px rgba(30,109,182,.55);
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-launch span { transition: transform .3s var(--ease); }
.btn-launch:hover { background: var(--te-blue-deep); transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(30,109,182,.7); }
.btn-launch:hover span { transform: translate(4px,-2px); }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 34px; }
.cta-note { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
button.nav-cta { background: transparent; cursor: pointer; font: 700 var(--fs-sm) var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; }

.lmodal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.lmodal[hidden] { display: none; }
.lm-backdrop { position: absolute; inset: 0; background: rgba(5,8,14,.72); backdrop-filter: blur(8px); }
.lm-panel {
  position: relative; z-index: 2;
  width: min(680px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: #10141d;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
  animation: lmup .45s var(--ease);
}
@keyframes lmup { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.lm-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.6); font-size: 30px; line-height: 1;
}
.lm-x:hover { color: #fff; }
.lm-panel h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; text-transform: uppercase; font-weight: 900; }
.lm-intro { margin-top: 10px; color: var(--ink-dim); font-size: var(--fs-sm); }
#launch-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.lm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#launch-form label { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }
#launch-form input, #launch-form select, #launch-form textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  color: #fff;
  padding: 11px 13px;
  font: 500 15px var(--sans);
  letter-spacing: 0; text-transform: none;
}
#launch-form input:focus, #launch-form select:focus, #launch-form textarea:focus { outline: none; border-color: var(--te-blue-light); background: rgba(255,255,255,.09); }
#launch-form select option { color: #111; }
.lm-fieldset { border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 14px 16px 12px; }
.lm-fieldset legend { padding: 0 8px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.lm-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.lm-checks label { flex-direction: row; align-items: center; gap: 9px; font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: 14px; color: rgba(255,255,255,.85); cursor: pointer; }
.lm-checks input { accent-color: var(--te-blue); width: 16px; height: 16px; }
.lm-file input { padding: 9px; font-size: 13px; }
.lm-file em { font-style: normal; opacity: .6; letter-spacing: .02em; }
.lm-submit { justify-content: center; width: 100%; margin-top: 6px; font-size: 15px; }
.lm-submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.lm-err { color: #ff8d75; font-size: 14px; }
.lm-err a { text-decoration: underline; }

.lm-done { text-align: center; padding: clamp(20px, 4vw, 40px) 8px; }
.lm-done h3 { margin-top: 18px; }
.lm-done p { margin-top: 14px; color: var(--ink-dim); font-size: var(--fs-sm); }
.lm-done .lm-call a { color: var(--te-blue-light); font-weight: 700; }
.lm-done .lm-detail a { color: var(--taxi); font-weight: 700; }
.lm-jet { width: 72px; height: 72px; color: var(--te-blue-light); display: inline-block; animation: jetup 1.4s var(--ease) forwards; }
@keyframes jetup { 0% { opacity: 0; transform: translate(-40px,40px) scale(.7); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }

body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .lmodal { align-items: flex-end; }
  .lm-panel { width: 100vw; max-height: 96vh; border-radius: 18px 18px 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .lm-grid, .lm-checks { grid-template-columns: 1fr; }
}

/* =========================================================
   WHITE SUBPAGES — coffeeand.tv-style editorial (case studies,
   services, blog). Dark hero video up top, clean white below.
   ========================================================= */
body.page-white { background: #f4f2ee; color: #16130f; }
body.page-white::after { opacity: .035; }
body.page-white .nav { position: absolute; }
.whero { position: relative; height: min(72vh, 780px); background: #000; }
.whero video { width: 100%; height: 100%; object-fit: cover; }
.wsec { padding: clamp(48px, 6.5vw, 100px) 0; }
.wsec.tight { padding-top: 0; }
.wtitle {
  font-size: clamp(40px, 7.4vw, 110px);
  letter-spacing: -.045em; line-height: .92;
  text-transform: uppercase; font-weight: 900;
}
.wmeta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(22,19,15,.55); }
.wsub { margin-top: 22px; font-size: var(--fs-md); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; max-width: 900px; }
.wbody { max-width: 760px; margin-top: 24px; }
.wbody p { margin-bottom: 1.1em; color: rgba(22,19,15,.82); font-weight: 500; }
.wbody p strong { color: #16130f; font-weight: 800; }
.wsec h2 { font-size: var(--fs-md); letter-spacing: -.035em; margin-bottom: 22px; max-width: 900px; }
.w-two { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.w-two h2 { position: sticky; top: 40px; }

.wframe { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; border-radius: 8px; box-shadow: 0 26px 60px -24px rgba(22,19,15,.4); }

.wgallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.8vw, 24px); }
.wgallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }

.pullquote {
  font-size: var(--fs-lg); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.045em; line-height: .95; max-width: 1200px;
}
.pullquote em { font-style: italic; color: var(--te-blue); }

.wprice {
  background: #fff; border: 1.5px solid #16130f; border-radius: 12px;
  padding: clamp(24px, 3.5vw, 44px); max-width: 560px;
  box-shadow: 8px 8px 0 var(--te-blue);
}
.wprice .wp-num { font-size: clamp(38px, 5vw, 64px); font-weight: 900; letter-spacing: -.04em; }
.wprice .wp-per { margin-top: 6px; font-weight: 700; color: rgba(22,19,15,.6); font-size: var(--fs-sm); }
.wprice p { margin-top: 14px; color: rgba(22,19,15,.8); font-size: var(--fs-sm); }
.wnote { margin-top: 18px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(22,19,15,.5); max-width: 560px; }

.wchips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1000px; }
.wchips li { list-style: none; border: 1.5px solid #16130f; border-radius: 99px; padding: 10px 20px; font-size: var(--fs-sm); font-weight: 700; }
.wchips li:hover { background: #16130f; color: #f4f2ee; }

.wsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(16px, 2.5vw, 32px); counter-reset: step; }
.wstep { border-top: 2px solid #16130f; padding-top: 16px; }
.wstep .num { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .2em; color: var(--te-blue); text-transform: uppercase; }
.wstep h3 { margin-top: 8px; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -.02em; }
.wstep p { margin-top: 8px; font-size: var(--fs-sm); color: rgba(22,19,15,.75); font-weight: 500; }

.wcta { background: var(--te-blue); color: #fff; }
.wcta h2 { font-size: var(--fs-lg); letter-spacing: -.045em; margin-bottom: 20px; max-width: 1100px; }
.wcta p { max-width: 700px; color: rgba(255,255,255,.85); font-weight: 500; }
.wcta .cta-note { color: rgba(255,255,255,.75); }

.wfooter { border-top: 1px solid rgba(22,19,15,.2); padding: 26px var(--gut); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(22,19,15,.6); }
.wfooter a:hover { color: var(--te-blue); }
.wfooter .wf-links { display: flex; gap: 18px; flex-wrap: wrap; }

body.page-white .btn-launch { box-shadow: 0 14px 34px -12px rgba(30,109,182,.4); }
.btn-ghost-dark { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid #16130f; border-radius: 99px; padding: 15px 30px; font: 800 var(--fs-sm) var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #16130f; transition: all .3s var(--ease); }
.btn-ghost-dark:hover { background: #16130f; color: #f4f2ee; }

@media (max-width: 860px) {
  .w-two { grid-template-columns: 1fr; }
  .w-two h2 { position: static; }
  .wgallery { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   REVEAL on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .work-grid, .ed-grid, .client-wall { grid-template-columns: 1fr; }
  .gallery-row, .svc-grid { grid-template-columns: 1fr 1fr; }
  .ed-grid h2 { position: static; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .peak { height: 300vh; }
}
