/* The Vault Media Co. · V4 entrance (/). Three pinned, scroll-linked sections; see docs/v4-reference-breakdown.md.
   Native scroll + CSS sticky; landing.js maps scroll to eased progress and writes transforms. */
@font-face { font-family: 'Mango Grotesque'; src: url(/fonts/mango/MangoGrotesque-ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@property --lift { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  --black: #080808;
  --white: #f6f6f6;
  --paper: #efece6;           /* statement text: warm white so the reveal reads as light, not as UI */
  --muted: #8b8b8b;
  --dim: #3a3a3a;
  --rose: #b76e79;
  --blush: #e5b7b2;
  --display: 'Mango Grotesque', 'Arial Narrow', sans-serif;
  --ui: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 2.2vw, 32px);
  --inset: clamp(10px, 2.2vw, 32px);
  --radius: clamp(14px, 1.6vw, 24px);
  --ease: cubic-bezier(.25, 1, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color: var(--white); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 13px/1.4 var(--ui); font-stretch: 125%; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--blush); outline-offset: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--pad); top: -48px; z-index: 300; background: var(--white); color: #000; padding: 6px 10px; font-size: 12px; }
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
.lnav { position: fixed; left: 0; right: 0; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--inset) + 14px) calc(var(--inset) + 18px) 0; pointer-events: none; }
.lnav a { pointer-events: auto; }
.lnav::before { content: ''; position: absolute; inset: 0 0 -36px; z-index: -1; background: linear-gradient(180deg, rgba(8,8,8,.72), rgba(8,8,8,0)); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
html.past-hero .lnav::before { opacity: 1; }   /* once the hero has gone, the bar keeps its links readable over the statement */
.lnav-mark img { height: 40px; width: auto; filter: drop-shadow(0 1px 10px rgba(0,0,0,.35)); }
.lnav-links { display: flex; gap: clamp(18px, 3.4vw, 52px); font-size: 12px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.lnav-links a { position: relative; padding: 4px 0; }
.lnav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.lnav-links a:hover::after, .lnav-links a:focus-visible::after { transform: scaleX(1); }

/* ---------- Spell UI gradient (ambient.js): masked to the negative space of each section ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: calc(var(--amb-route, 1) * var(--amb-user, 1)); transition: opacity .9s ease;
  -webkit-mask-image: var(--amb-mask-x), var(--amb-mask-y); mask-image: var(--amb-mask-x), var(--amb-mask-y);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.ambient[hidden] { display: none; }
.ambient canvas { display: block; width: 100%; height: 100%; }
.ambient-noise { position: absolute; inset: 0; background-repeat: repeat; background-size: 200px 200px; opacity: .04; }
.ambient.is-fallback canvas { display: none; }
.ambient.is-fallback { background: radial-gradient(ellipse 45% 70% at 0% 50%, var(--amb-c3) 0%, var(--amb-c2) 35%, transparent 75%), radial-gradient(ellipse 45% 70% at 100% 50%, var(--amb-c3) 0%, var(--amb-c2) 35%, transparent 75%), var(--amb-c1); }
.ambient[data-route="l-hero"] { --amb-route: 1; --amb-mask-x: linear-gradient(#000, #000); --amb-mask-y: linear-gradient(#000, #000); }
.ambient[data-route="l-studio"] { --amb-route: .85;
  --amb-mask-x: linear-gradient(90deg, #000 0%, rgba(0,0,0,.55) 14%, transparent 30%, transparent 70%, rgba(0,0,0,.55) 86%, #000 100%);
  --amb-mask-y: linear-gradient(180deg, rgba(0,0,0,.4) 0%, #000 40%, #000 100%); }
.ambient[data-route="l-explore"] { --amb-route: .6;
  --amb-mask-x: linear-gradient(90deg, #000 0%, rgba(0,0,0,.5) 20%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.5) 80%, #000 100%);
  --amb-mask-y: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%); }
.ambient[data-route="l-foot"] { --amb-route: .35; --amb-mask-x: linear-gradient(#000, #000); --amb-mask-y: linear-gradient(180deg, transparent 0%, #000 100%); }

/* ---------- Infrared (mirrors films.css .heat; the #heat filter is built from looks.js) ---------- */
.heat { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; overflow: hidden; border-radius: inherit; will-change: opacity, filter, transform; }
.heat img { width: 100%; height: 100%; object-fit: cover; filter: url(#heat); }

/* ---------- 01 · Brand introduction ---------- */
.s1 { position: sticky; top: 0; z-index: 1; height: 100vh; height: 100svh; perspective: 1400px; }
.s1-card { position: absolute; inset: var(--inset); border-radius: var(--radius); overflow: hidden; background: #111; transform-origin: 50% 50%; will-change: transform, opacity; }
.s1-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.s1-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,.62) 0%, rgba(8,8,8,.18) 32%, rgba(8,8,8,.22) 62%, rgba(8,8,8,.78) 100%); }
.s1-grain { position: absolute; inset: -50%; background: url(/img/films/noise.png) repeat 0 0 / 220px 220px; opacity: .1; mix-blend-mode: overlay; animation: grain .9s steps(5) infinite; pointer-events: none; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.s1-title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; padding: 0 var(--pad); text-align: center; font: 800 clamp(46px, 8.4vw, 144px)/.86 var(--display); font-stretch: 100%; letter-spacing: .004em; text-transform: uppercase; color: var(--white); }
.s1-title .line { display: block; overflow: hidden; padding: .04em 0 .02em; text-wrap: balance; }
.s1-title .line > span { display: block; animation: lineUp 1.05s var(--ease) both; }
.s1-title .line:nth-child(2) > span { animation-delay: .1s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.s1-corner, .s1-scroll { position: absolute; bottom: clamp(16px, 2.6vh, 28px); margin: 0; font: 400 11px/1.3 var(--mono); letter-spacing: .02em; color: rgba(246,246,246,.82); }
.s1-bl { left: clamp(18px, 2.4vw, 32px); }
.s1-br { right: clamp(18px, 2.4vw, 32px); }
.s1-bl time { margin-left: .6em; color: var(--white); font-variant-numeric: tabular-nums; }
.s1-scroll { left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.s1-scroll i { position: relative; width: 1px; height: 30px; overflow: hidden; background: rgba(255,255,255,.22); }
.s1-scroll i::after { content: ''; position: absolute; inset: 0; background: var(--white); animation: cue 2s cubic-bezier(.76,0,.24,1) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }

/* ---------- 02 · The studio ---------- */
/* An opaque sheet rises over the hero; its lower part thins out so the Amethyst gradient comes up from the edges
   while the statement is lit. */
.s2 { position: relative; z-index: 2; height: 240vh; height: 240svh; background: linear-gradient(180deg, var(--black) 0, var(--black) 88svh, rgba(8,8,8,.55) 132svh, rgba(8,8,8,0) 170svh); }
.s2-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--pad); }
.s2-text { margin: -6svh 0 0; max-width: 1080px; text-align: center; text-wrap: balance; font: 400 clamp(24px, 3.15vw, 50px)/1.16 var(--ui); font-stretch: 125%; letter-spacing: -.012em; color: var(--paper); }
.s2-text .w { opacity: .26; will-change: opacity; }
.s2-clients { position: absolute; left: 0; right: 0; bottom: max(36px, 8svh); display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding: 0 var(--pad); }
.s2-label { flex: 0 0 auto; margin: 0; max-width: 10em; font: 400 11px/1.35 var(--mono); color: var(--muted); }
.s2-marquee { flex: 1 1 auto; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.s2-track { display: flex; align-items: center; gap: clamp(44px, 5.5vw, 88px); width: max-content; will-change: transform; }
.s2-track img { height: var(--h, 30px); width: auto; opacity: .86; }

/* ---------- 03 · Explore the Vault ---------- */
.s3 { position: relative; z-index: 2; height: 340vh; height: 340svh; }
.s3-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1800px; }
.s3-title { position: absolute; left: 0; right: 0; top: max(96px, 13svh); margin: 0; padding: 0 var(--pad); text-align: center; font: 800 clamp(34px, 4.3vw, 72px)/.9 var(--display); font-stretch: 100%; text-transform: uppercase; letter-spacing: .004em; }
.s3-cards { position: absolute; left: 50%; top: 57%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.card { position: absolute; left: calc(var(--cw) / -2); top: calc(var(--ch) / -2); width: var(--cw); height: var(--ch); transform-style: preserve-3d; will-change: transform; border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.card-face { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: var(--r-tl, 12px) var(--r-tr, 12px) var(--r-br, 12px) var(--r-bl, 12px); }
/* Front: one Vault frame across all three cards, so the strip reads as a single picture before it splits */
.card-front { background: #111 var(--pano) no-repeat; background-size: var(--pano-w) var(--ch); background-position: var(--pano-x) 50%; }
.card-back { transform: rotateY(180deg); background: #0e0e0f; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.card-media { position: absolute; inset: 0; border-radius: inherit; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,.42) 0%, rgba(8,8,8,.05) 34%, rgba(8,8,8,.35) 58%, rgba(8,8,8,.92) 100%); }
.card-media-blur img { filter: blur(18px) saturate(1.1) brightness(.7); transform: scale(1.2); }
.card-media-dark img { filter: brightness(.5) saturate(.9); }
.card-media-dark::after { background: linear-gradient(180deg, rgba(8,8,8,.55) 0%, rgba(57,32,71,.35) 48%, rgba(8,8,8,.94) 100%); }
.card-num { position: absolute; left: 20px; top: 18px; z-index: 3; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: rgba(246,246,246,.85); }
.card-body { position: absolute; left: 20px; right: 20px; bottom: 54px; z-index: 3; display: flex; flex-direction: column; gap: 10px; }
.card-title { font: 800 clamp(34px, 3.3vw, 54px)/.88 var(--display); font-stretch: 100%; text-transform: uppercase; letter-spacing: .004em; }
.card-copy { max-width: 26ch; font-size: 12.5px; line-height: 1.45; color: rgba(246,246,246,.78); }
.card-go { position: absolute; left: 20px; bottom: 20px; z-index: 3; font-size: 12px; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.card:hover .card-go, .card:focus-visible .card-go { background-size: 100% 1px; }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.04); }
.card:hover .card-media-blur img, .card:focus-visible .card-media-blur img { transform: scale(1.24); }
.card:focus-visible { outline: none; }
.card:focus-visible .card-back { box-shadow: inset 0 0 0 1px var(--blush); }
/* 02: the carousel in miniature, cards hanging from one hairline */
.card-strip { position: absolute; left: 0; right: 0; top: 23%; z-index: 2; display: flex; justify-content: center; align-items: flex-start; gap: 6px; padding-top: 0; border-top: 1px solid rgba(229,183,178,.55); }
.card-strip img { width: 26%; height: calc(var(--cw) * .26 * 4 / 6); object-fit: cover; object-position: 50% 30%; }
.card-strip img.is-up { height: calc(var(--cw) * .26 * 4 / 3); }   /* the focused frame drops to full 3:4, as in Selected work */
.card-work .card-back { background: #120c0e; }
.card-work .card-num { color: var(--blush); }
.card-exp .card-num { color: #c9a9d6; }
/* Hover lift (desktop, once the cards have turned) */
.card { --lift: 0px; transition: --lift .5s var(--ease); }
.s3.is-live .card:hover, .s3.is-live .card:focus-visible { --lift: -12px; }
.card.is-going { --lift: -18px; }

/* ---------- Footer ---------- */
.lfoot { position: relative; z-index: 2; padding: 16svh var(--pad) 40px; background: linear-gradient(180deg, rgba(8,8,8,0) 0, var(--black) 26svh); }
.lfoot-lead { margin: 0; font: 800 clamp(40px, 7vw, 120px)/.86 var(--display); font-stretch: 100%; text-transform: uppercase; }
.lfoot-book { margin: 28px 0 0; }
.lfoot-cta { display: inline-block; padding: 12px 20px 13px; border-radius: 999px; background: var(--white); color: var(--black); font-size: 13px; font-weight: 500; transition: background .3s; }
.lfoot-cta:hover { background: var(--blush); }
.lfoot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-top: 12svh; padding-top: 24px; border-top: 1px solid var(--dim); font-size: 12px; color: var(--muted); }
.lfoot-contact { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lfoot-contact a, .lfoot-services a { color: var(--white); width: fit-content; }
.lfoot-contact a:hover, .lfoot-services a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lfoot-services { display: flex; flex-direction: column; gap: 6px; }
.lfoot-legal { grid-column: 1 / -1; display: flex; gap: 20px; margin: 16px 0 0; font-size: 11px; }

/* ---------- Phones: the cards come in as a deck, one over the other ---------- */
@media (max-width: 760px) {
  .lnav-mark img { height: 24px; }
  .lnav-links { gap: 18px; font-size: 12px; }
  .s1-title { font-size: clamp(40px, 12.4vw, 64px); }
  .s1-br { display: none; }
  .s2-text { font-size: clamp(22px, 6.2vw, 30px); line-height: 1.2; }
  .s2-clients { flex-direction: column; align-items: stretch; gap: 14px; bottom: max(28px, 6svh); }
  .s2-label { max-width: none; text-align: center; }
  .s3-title { top: max(84px, 11svh); font-size: clamp(30px, 9vw, 44px); }
  .s3-cards { top: 58%; }
  .card-front { display: none; }
  .card-back { transform: none; }
  .card-body { bottom: 50px; }
  .lfoot-cols { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion: no pins, no scroll-linked movement; everything in its finished state ---------- */
html.rm .s1 { position: relative; }
html.rm .s1-grain, html.rm .s1-scroll i::after { animation: none; }
html.rm .s1-title .line > span { animation: none; }
html.rm .s2, html.rm .s3 { height: auto; background: var(--black); }
html.rm .s2-pin, html.rm .s3-pin { position: relative; height: auto; min-height: 100svh; padding-top: 18svh; padding-bottom: 18svh; overflow: visible; }
html.rm .s2-clients { position: static; margin-top: 12svh; width: 100%; }
html.rm .s2-text .w { opacity: 1 !important; }
html.rm .s3-title { position: static; margin-bottom: 8svh; }
html.rm .s3-cards { position: static; width: auto; height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; transform: none !important; }
html.rm .card { position: relative; left: auto; top: auto; transform: none !important; }
html.rm .card-front { display: none; }
html.rm .card-back { transform: none; }
html.rm .card, html.rm .card-media img { transition: none; }
@media (prefers-reduced-motion: reduce) { .s1-title .line > span { animation: none; } }
