/* ============================================================
   prmpt.studio — site.css
   Tokens + base + typography + nav, derived from brief/mood.md
   ("Cinematic Black"). Shared across all pages.
   ============================================================ */

/* ---- @font-face (local) ----------------------------------- */
@font-face {
  font-family: 'Black Pack VF';
  src: url('../FONTS/black pack vf.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Migra';
  src: url('../FONTS/Migra-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Migra';
  src: url('../FONTS/Migra Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Colour — monochrome by default; green is the whole colour budget */
  --pitch:          #030405;   /* primary background */
  --soft:           #0a0b0d;   /* raised surfaces */
  --graphite:       #121417;   /* cards, image wells */
  --bone:           #f2f2f0;   /* primary text */
  --ash:            #a9adb3;   /* secondary text */
  --slate:          #6f7378;   /* muted labels, metadata */
  --hairline:       rgba(255, 255, 255, 0.08);
  --hairline-soft:  rgba(255, 255, 255, 0.04);
  --steel:          #51606d;
  --signal:         #4caf76;   /* used once: status dot */

  /* Type families */
  --serif: 'Migra', 'Times New Roman', serif;       /* display / vision */
  --mono:  'IBM Plex Mono', ui-monospace, monospace; /* technical / labels */
  --sans:  'Inter', system-ui, sans-serif;           /* body only */

  /* Modular type scale — Perfect Fourth (1.333), base 16px.
     Display sizes use clamp() inline; these are the text ramp. */
  --t-xs:  0.75rem;   /* 12 */
  --t-sm:  0.875rem;  /* 14 */
  --t-base: 1rem;     /* 16 */
  --t-md:  1.333rem;  /* ~21 */
  --t-lg:  1.777rem;  /* ~28 */
  --t-xl:  2.369rem;  /* ~38 */
  --t-2xl: 3.157rem;  /* ~51 */

  /* Rhythm + measure */
  --lh: 1.6;
  --rhythm: 1.6rem;
  --measure: 66ch;

  /* Motion (mirrors brief/motion.md) */
  --ease: cubic-bezier(0.16, 1, 0.32, 1);
  --ease-glass: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-ui: 0.2s;
  --dur-glass: 0.5s;

  /* Layout */
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 56px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--pitch);
  color: var(--bone);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: var(--lh);
  font-kerning: auto;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Reusable measure for prose */
.prose { max-width: var(--measure); text-wrap: pretty; }

/* Caps + small labels are always letterspaced (typography skill §1.4) */
.label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Headlines balance + lining figures */
h1, h2, h3 {
  font-variant-numeric: lining-nums;
  text-wrap: balance;
  font-weight: 500;
}

/* ============================================================
   NAV  (lives OUTSIDE #smooth-content so it stays fixed)
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-glass) ease,
              backdrop-filter var(--dur-glass) ease,
              border-color var(--dur-glass) ease;
}
.nav.is-scrolled {
  background: rgba(3, 4, 5, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav-logo {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-sm);
  color: var(--bone);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6875rem; /* 11px */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color var(--dur-ui) ease;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--bone); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--bone);
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bone);
  transition: transform var(--dur-ui) ease, opacity var(--dur-ui) ease;
}
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  /* Links become a full-width dropdown panel revealed by the toggle */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(3, 4, 5, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    /* hidden until opened */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--dur-ui) ease, transform var(--dur-ui) ease, visibility var(--dur-ui);
  }
  .nav.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 0.875rem; /* 14px */
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links a.active::after { display: none; }
}

/* ============================================================
   SCROLLSMOOTHER WRAPPERS
   ============================================================ */
#smooth-wrapper { position: relative; }
/* #smooth-content gets transformed by ScrollSmoother; no styles needed */

/* ============================================================
   HERO  — the reel's opening shot
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--pitch);
}

/* Portrait bleeds in from the right (parallax: data-speed) */
.hero-portrait {
  position: absolute;
  top: 0; bottom: 0;
  left: 28%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.hero-portrait img {
  height: 100%;
  width: auto;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.08) grayscale(0.15);
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, rgba(0,0,0,0.55) 12%, #000 26%,
    #000 88%, rgba(0,0,0,0.4) 95%, transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0%, rgba(0,0,0,0.55) 12%, #000 26%,
    #000 88%, rgba(0,0,0,0.4) 95%, transparent 100%);
}

/* Legibility overlays */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(3,4,5,0.78) 0%, rgba(3,4,5,0.3) 45%, transparent 72%);
}
.hero-fade-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 280px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent 0%, rgba(3,4,5,0.6) 42%, var(--pitch) 100%);
}

/* Left vertical label */
.hero-label-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  z-index: 5;
  font-family: var(--mono);
  font-size: 0.5625rem; /* 9px */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

/* Descriptor — top right technical voice */
.hero-descriptor {
  position: absolute;
  top: 120px;
  right: var(--gutter);
  z-index: 5;
  text-align: left;
  font-family: var(--mono);
  font-size: var(--t-sm);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--bone);
  border-left: 1px solid var(--hairline);
  padding-left: 14px;
}

/* Watch reel CTA */
.hero-reel {
  position: absolute;
  bottom: 92px;
  right: var(--gutter);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--t-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
}
.hero-reel::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--bone);
  transition: width var(--dur-glass) var(--ease);
}
.hero-reel:hover::before { width: 52px; }

/* ---- Headline: VISION / IS OUR / PRMPT, bottom-left ---- */
.hero-headline {
  position: absolute;
  left: var(--gutter);
  /* Sits ~30px above the footer on tall windows; drops lower as the window
     gets short so the block never rides too high / blocks the portrait. */
  bottom: clamp(126px, 19.6vh, 177px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-vision {
  font-family: var(--serif);
  font-weight: 500;
  /* shrinks on narrow OR short windows (min picks the tighter constraint) */
  font-size: clamp(40px, min(6.5vw, 11vh), 94px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.hero-isour {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(32px, min(5vw, 8.5vh), 72px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin-top: -8px;
}

/* The masked wordmark — image read THROUGH the letters (mood.md material gesture).
   Deliberate scaleX/scaleY exception to the typography skill, locked by design.
   Font-size lives on the WRAP and is fluid by width AND height; the glyph + its
   masked-image offsets are all in `em` so the astronaut image scales with the
   letters (otherwise the masking breaks as the type shrinks). Desktop = 220px. */
.hero-prmpt-wrap {
  position: relative;
  font-size: clamp(110px, min(15.3vw, 25vh), 220px);
  height: 1.45em;        /* was 320px at 220px font */
  margin-top: 10px;
}
.hero-prmpt {
  position: absolute;
  bottom: -0.282em;      /* was -62px */
  left: 0;
  white-space: nowrap;
  font-family: 'Black Pack VF', sans-serif;
  font-size: 1em;        /* inherits the wrap's fluid size */
  line-height: 1;
  letter-spacing: -0.006em;
  font-variation-settings: 'wght' 280, 'wdth' 75, 'STRS' 71;
  background-image: url("../PRMPT BACKGROUND.png");
  background-size: 2.727em 0.809em;            /* was 600px 178px */
  background-position: calc(100% + 0.218em) center;  /* was +48px */
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transform: scaleX(1.38) scaleY(2.0);
  transform-origin: bottom left;
  filter: url(#innerShadowSubtle);
}

/* Footer bar */
.hero-footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--hairline);
}
.hero-footer-label {
  font-family: var(--mono);
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  color: var(--slate);
  width: 200px;
  flex-shrink: 0;
}
.hero-footer-copy {
  flex: 1;
  text-align: left;
  font-size: var(--t-sm);
  color: var(--ash);
  padding-right: 24px;
}
.hero-footer-status {
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.hero-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

@media (max-width: 760px) {
  .hero-descriptor { top: 84px; font-size: var(--t-xs); }
  /* PRMPT now scales fluidly via clamp(min(vw, vh)) — no px overrides needed */
  /* Mobile: only the status line, centered alone in the break */
  .hero-footer-copy { display: none; }
  .hero-footer-status { flex: 1; justify-content: center; }
}

/* Typewriter cursor (mechanical) */
.tw-cursor {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  background: var(--slate);
  margin-left: 3px;
  vertical-align: middle;
  animation: tw-blink 0.75s step-end infinite;
}
@keyframes tw-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ============================================================
   SELECTED WORK
   ============================================================ */
.work {
  position: relative;
  background: var(--pitch);
  border-top: 1px solid var(--hairline);
  /* depth shadow: the section rises like a card over the hero */
  box-shadow: 0 -48px 140px rgba(0,0,0,0.98), 0 -4px 28px rgba(0,0,0,0.85);
  overflow: hidden;
  /* Space below the logo strip, then feather the bottom edge so Work doesn't
     end on a hard line (it dissolves into the Services rising behind it). */
  padding-bottom: 15vh;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 12vh);
  mask-image: linear-gradient(to top, transparent 0, #000 12vh);
}

/* Left panel — absolute so cards can sit flush right of it */
.work-left {
  position: absolute;
  top: 0; left: 0;
  /* stop at the content edge (above the 15vh feather padding) so the trusted
     line sits level with the logo strip, not down in the feathered gap */
  bottom: 15vh;
  width: 320px;
  z-index: 10;
  background: var(--pitch);
  border-right: 1px solid var(--hairline);
  display: flex;
  align-items: flex-start;
  padding: 64px 36px 0;
}
.work-left-inner { width: 100%; height: 100%; display: flex; flex-direction: column; }
.work-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 56px;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 32px;
}
.work-view-all {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  border: 1px solid var(--hairline);
  padding: 8px 12px;
  margin-bottom: 28px;
  transition: color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.work-view-all:hover { color: var(--bone); border-color: rgba(255,255,255,0.3); }
.work-count { margin-bottom: 16px; }
.work-divider { width: 100%; height: 1px; background: var(--hairline); margin-bottom: 16px; }
/* Dropped to the bottom of the panel so it sits level with the logo strip */
.work-trusted {
  margin-top: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--hairline);
  line-height: 1.6;
}

/* Right panel — offset by left width */
.work-right { margin-left: 320px; }

/* Cards row — 10px gap between thumbnails */
/* Horizontal carousel: 5 square cards fit the viewport, the rest scroll off
   the right edge. Arrows drive scrolling; native scrollbar hidden. */
.work-carousel { position: relative; }
/* Viewport; on desktop the arrows move the inner track via transform (reliable
   under ScrollSmoother). On mobile it's a native swipe scroller (no smoother). */
.work-cards {
  overflow: hidden;
}
.work-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-start;
  width: max-content;
  will-change: transform;
  transition: transform 0.5s var(--ease);
}
.work-card {
  /* square at rest (width = the JS-fixed height); 5 fill the row, others scroll.
     hover expands flex-basis to 16:9, pushing neighbours along the track. */
  flex: 0 0 var(--thumb-h, 240px);
  position: relative;
  background: var(--graphite);
  cursor: pointer;
  will-change: flex-basis;
  transition: flex-basis 0.55s var(--ease);
}
/* Prev/next arrows */
.work-arrow {
  position: absolute;
  top: calc(var(--thumb-h, 240px) / 2);
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(3, 4, 5, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--bone);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: background var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.work-arrow:hover { background: rgba(3, 4, 5, 0.85); border-color: rgba(255,255,255,0.35); }
.work-arrow--prev { left: 8px; }
.work-arrow--next { right: 8px; }
.work-arrow[hidden] { display: none; }

/* Mobile-only "swipe" affordance (hidden on desktop) */
.work-swipe-hint { display: none; }
@keyframes work-swipe-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}
.work-card-thumb {
  position: relative;
  width: 100%;
  height: var(--thumb-h, 240px);  /* fixed height set by JS so hover reshapes width only */
  overflow: hidden;
}
.work-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.02);
}
.work-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(3,4,5,0.72) 100%);
  pointer-events: none;
}
/* Play button */
.work-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--dur-ui) ease;
}
.work-card:hover .work-card-play { opacity: 1; }
.work-card-play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  color: var(--bone);
  font-size: 14px;
  padding-left: 3px;
}
/* Coming soon */
.work-card--soon { cursor: default; }
.work-card--soon .work-card-thumb {
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, var(--hairline-soft) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, var(--hairline-soft) 23px 24px),
    var(--graphite);
}
.work-card-coming {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Meta */
.work-card-meta { padding: 14px 16px 16px; background: var(--graphite); }
.work-card-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 4px;
}
.work-card-sub {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}

/* Logo strip */
.work-logos {
  display: flex;
  align-items: center;
  min-height: 68px;   /* matches .work-trusted so both rows align */
  border-top: 1px solid var(--hairline);
}
.work-logos span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Uniform small height, auto width -> same visual size, single straight line */
.work-logos img {
  height: 30px;
  width: auto;
  max-width: 88%;
  object-fit: contain;
  opacity: 0.7;
}

/* mobile-only relocation of the "trusted" line (hidden on desktop) */
.work-trusted--mobile { display: none; }

@media (max-width: 760px) {
  .work-left { position: static; width: auto; border-right: none; border-bottom: 1px solid var(--hairline); padding: 48px 28px 32px; }
  /* move the trusted line below the thumbnails, centered, between them + logos */
  .work-left .work-trusted { display: none; }
  .work-trusted--mobile { display: block; text-align: center; padding: 18px 28px; }   /* symmetric -> vertically centered */
  .work-right { margin-left: 0; }
  /* carousel: ~2.2 cards per view (JS sizes --thumb-h) so the next clip peeks
     in; native swipe with scroll-snap for the rest */
  .work-cards {
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
    scroll-snap-type: x proximity;
  }
  .work-cards::-webkit-scrollbar { display: none; }
  .work-track { transform: none !important; transition: none; }
  .work-card { scroll-snap-align: start; }
  .work-arrow { display: none; }   /* mobile uses native swipe, no arrows */

  /* visible swipe hint */
  .work-swipe-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
  }
  .work-swipe-arrow {
    display: inline-block;
    font-size: 0.8125rem;
    animation: work-swipe-nudge 1.6s ease-in-out infinite;
  }
  .work-title { font-size: 44px; }
  .work-logos { flex-wrap: wrap; gap: 14px 0; margin-top: 5px; padding-top: 22px; }   /* drop logos below the top line */
  .work-logos span { flex: 1 1 25%; }
}

/* ============================================================
   VIDEO VIEWER MODAL
   ============================================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  background: rgba(3,4,5,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.video-modal.open { opacity: 1; visibility: visible; }
.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}
.video-modal.open .video-modal-inner { transform: scale(1); }
.video-modal-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-modal-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.06);
  color: var(--bone);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.video-modal-close:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }

/* ============================================================
   SERVICES — WHAT WE DO
   ============================================================ */
.services {
  position: relative;
  background: transparent;       /* page shows around the floating card */
  padding: 120px 0 96px;
}
/* Services is a floating, rounded, raised-shade card */
.services-inner {
  position: relative;
  margin: 0 var(--gutter);
  /* Creative card: graphite with a soft signal-green glow splashing in from the
     top-right corner + a faint steel wash bottom-left — a single chromatic note
     against the monochrome. */
  background:
    radial-gradient(90% 65% at 92% -8%, rgba(76, 175, 118, 0.16), transparent 58%),
    radial-gradient(70% 60% at 0% 108%, rgba(81, 96, 109, 0.14), transparent 60%),
    linear-gradient(165deg, #15191d 0%, #0e1216 100%);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  overflow: hidden;
  padding: 64px 0 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
/* Thin accent rule along the card's top edge — the colour ties to the glow */
.services-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 118, 0.55), transparent);
  pointer-events: none;
  z-index: 2;
}
.services-head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 0 var(--gutter);
  margin-bottom: 56px;
}

/* Row */
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 96px 300px 1fr 200px;
  align-items: center;
  column-gap: 32px;
  min-height: 150px;
  padding: 28px 0 28px var(--gutter);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
  transition: background var(--dur-glass) var(--ease);
}
.svc-row:last-of-type { border-bottom: 1px solid var(--hairline); }
.svc-row:hover { background: rgba(255, 255, 255, 0.018); }

/* Giant ghost numeral behind the title */
.svc-ghost {
  position: absolute;
  left: 110px;
  top: 50%;
  transform: translateY(-44%);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 230px;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(76, 175, 118, 0.06);   /* faint green tint ties the colour through the rows */
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Small index label */
.svc-index {
  position: relative;
  z-index: 1;
  align-self: start;
  padding-top: 4px;
}

/* Title */
.svc-title {
  position: relative;
  z-index: 1;
  align-self: start;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bone);
  transition: transform var(--dur-glass) var(--ease);
}
.svc-row:hover .svc-title { transform: translateX(8px); }

/* Description */
.svc-desc {
  position: relative;
  z-index: 1;
  align-self: start;
  max-width: 540px;
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--ash);
  padding-top: 4px;
}

/* Right-edge film still */
.svc-thumb {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 200px;
  overflow: hidden;
  z-index: 1;
  background: var(--graphite);
}
.svc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.svc-row:hover .svc-thumb img { transform: scale(1.05); }

/* Campaign-image rows (Recreations / Altura / Valen).
   Two <img> layers per row (img, not CSS background — backgrounds inside the
   clipped/transformed card don't render reliably on web):
     .svc-bleed     — low-opacity image bleeding under the whole row, feathered
                      out on the left so it carries behind the ghost numeral.
     .svc-thumb-img — the crisp right-edge still, zoomed/positioned per image so
                      product wordmarks/logos stay out of frame. */
.svc-bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.4) 0%, #000 48%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.4) 0%, #000 48%);
}
.svc-bleed--recreations { object-position: 50% 58%; }
/* Altura: mask out the left ~40% so the "ENGINEERED TO ELEVATE" wordmark behind
   the 02 row is gone; only the shoe (centre) bleeds in. */
.svc-bleed--altura {
  object-position: 50% center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 40%, #000 74%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 40%, #000 74%);
}
.svc-bleed--valen       { object-position: 60% center; }

/* Crisp thumb framing — zoom past "cover" via transform to keep text/logos out */
.svc-thumb-img--recreations { object-position: 50% 60%; }
.svc-thumb-img--altura { object-position: 50% center; transform: scale(1.5); transform-origin: 50% 50%; }
.svc-thumb-img--valen  { object-position: 58% center; transform: scale(1.6); transform-origin: 58% 50%; }
.svc-row--img:hover .svc-thumb-img--altura { transform: scale(1.58); }
.svc-row--img:hover .svc-thumb-img--valen  { transform: scale(1.68); }

/* Explore link */
.services-foot {
  display: flex;
  justify-content: flex-end;
  padding: 32px var(--gutter) 0;
}
.services-explore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color var(--dur-ui) ease;
}
.services-explore::after {
  content: '';
  width: 64px; height: 1px;
  background: var(--hairline);
  transition: width var(--dur-glass) var(--ease), background var(--dur-ui) ease;
}
.services-explore:hover { color: var(--bone); }
.services-explore:hover::after { width: 96px; background: var(--bone); }

@media (max-width: 760px) {
  /* tighten the big black gaps: Work's tall bottom feather + Services' padding */
  .work { padding-bottom: 4vh; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 4vh); mask-image: linear-gradient(to top, transparent 0, #000 4vh); }
  .services { padding: 28px 0 28px; }
  .services-head { font-size: 56px; }
  .svc-row {
    grid-template-columns: 56px 1fr;
    row-gap: 12px;
    padding: 28px 120px 28px var(--gutter);
  }
  .svc-desc { grid-column: 2; max-width: none; }
  .svc-thumb { width: 100px; }
  .svc-ghost { font-size: 150px; left: 64px; }
}

/* ============================================================
   CONTACT — LET'S MAKE SOMETHING.
   ============================================================ */
.contact {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--pitch);
  padding: 120px var(--gutter) 132px;   /* bottom padding clears the absolute footer bar */
  display: flex;
  flex-direction: column;
  /* Small top feather so Contact blends rather than a hard line — kept thin so
     it reveals as little of the receding Services as possible (Contact stays
     solid on top; Services should be nearly faded out by the time it's here). */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6vh);
  mask-image: linear-gradient(to bottom, transparent 0, #000 6vh);
}
.contact-portrait {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 72%;
  z-index: 0;
  pointer-events: none;
}
.contact-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;   /* frame the figure / camera in the cinematography shot */
  filter: brightness(0.7) saturate(1.02) grayscale(0.15);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
  mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}
.contact-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Same treatment as the studio splash overlay: elongated left darkening
     (clears by 84% so more of the photo shows) + a soft bottom fade. */
  background:
    linear-gradient(to bottom, transparent 62%, var(--pitch) 99%),
    linear-gradient(90deg,
      var(--pitch) 0%, rgba(3,4,5,0.82) 24%, rgba(3,4,5,0.3) 58%, transparent 84%);
}

.contact-head {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 150px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bone);
  max-width: 1100px;
}

.contact-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}
.contact-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(76,175,118,0.5);
  animation: contact-pulse 2.4s ease-out infinite;
}
@keyframes contact-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(76,175,118,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(76,175,118,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,175,118,0); }
}

.contact-details { position: relative; z-index: 2; margin-top: 36px; }
.contact-email,
.contact-phone {
  display: block;
  width: fit-content;
  font-family: var(--mono);
  font-size: 32px;
  letter-spacing: 0.01em;
  color: var(--bone);
  transition: color var(--dur-ui) ease;
}
.contact-email:hover,
.contact-phone:hover { color: var(--ash); }
.contact-phone {
  margin-top: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
/* EU line sits directly above the US line; the divider belongs to US only */
.contact-phone--eu {
  margin-top: 6px;
  padding-bottom: 0;
  border-bottom: none;
}
.contact-phone--eu + .contact-phone { margin-top: 2px; }
.contact-address {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.contact-actions {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 56px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 34px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-ui) ease, color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.btn-primary { background: var(--bone); color: var(--pitch); border: 1px solid var(--bone); }
.btn-primary:hover { background: transparent; color: var(--bone); }
.btn-ghost { background: transparent; color: var(--bone); border: 1px solid var(--hairline); }
.btn-ghost:hover { border-color: var(--bone); }

.contact-social { display: flex; align-items: center; gap: 14px; margin-left: 24px; }
.contact-social-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.contact-social-links { display: flex; gap: 8px; }
.contact-social-links a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ash);
  transition: color var(--dur-ui) ease, border-color var(--dur-ui) ease, background var(--dur-ui) ease;
}
.contact-social-links a:hover { color: var(--bone); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }

.contact-footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

@media (max-width: 760px) {
  .contact { padding: 44px var(--gutter) 88px; -webkit-mask-image: none; mask-image: none; }
  .contact-portrait { width: 100%; opacity: 0.4; }
  .contact-email, .contact-phone { font-size: 24px; }
  .contact-social { margin-left: 0; }
  .contact-footer { font-size: 0.5625rem; }
}
