/* =========================================================
   davidfornelli.com — cinematic edition
   Layout DNA: Pillar "Elegant" (dark full-bleed hero, statement
   band, roomy work cards) + Case Studies slider, rebuilt light.
   ========================================================= */
html, body { background: #0a0a0b; }

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #17171a;
  --fg: 237 235 230;              /* warm off-white */
  --ink: rgb(var(--fg));
  --muted: rgb(var(--fg) / .62);
  --faint: rgb(var(--fg) / .38);
  --line: rgb(var(--fg) / .12);
  --line-2: rgb(var(--fg) / .2);
  --accent: #0088cc;
  --accent-2: #39aee6;

  --font-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; color: var(--ink); font-family: var(--font-body);
  font-size: 16px; line-height: 1.55; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: rgb(0 136 204 / .35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
em { font-style: normal; color: var(--muted); }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* grain */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- labels & type ---------- */
.label {
  display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(32px, 5vw, 64px);
}
.label span { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.label::after { content: ""; flex: 0 0 64px; height: 1px; background: var(--line-2); order: 1; }
.label span { order: 0; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgb(var(--fg) / .8); display: flex; align-items: center; gap: 10px; margin: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgb(57 174 230 / .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(57 174 230 / .55); } 70% { box-shadow: 0 0 0 10px rgb(57 174 230 / 0); } 100% { box-shadow: 0 0 0 0 rgb(57 174 230 / 0); } }

/* ---------- buttons ---------- */
.btn {
  --h: 44px; display: inline-flex; align-items: center; gap: 12px; height: var(--h); padding: 0 22px;
  border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background .3s var(--ease-io), color .3s var(--ease-io), border-color .3s var(--ease-io);
  will-change: transform;
}
.btn:active { scale: .97; }
.btn .arrow { font-style: normal; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: -12px; border-radius: 50%; font-size: 13px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 15px; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid .arrow { background: var(--bg); color: var(--ink); }
.btn-solid:hover { background: #fff; }
.btn-glass { background: rgb(255 255 255 / .08); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }
.btn-glass .arrow { background: rgb(255 255 255 / .12); }
.btn-glass:hover { background: rgb(255 255 255 / .16); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line .arrow { background: rgb(var(--fg) / .08); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-line:hover .arrow { background: var(--bg); color: var(--ink); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 150; background: var(--bg); display: grid; place-items: center; }
.no-js .loader, .reduced .loader { display: none; }
.loader-inner { display: grid; justify-items: center; gap: 22px; }
.loader-logo { width: 150px; height: auto; opacity: 0; }
.loader-bar { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.loader-count { font-family: var(--font-display); font-weight: 300; font-size: 12px; letter-spacing: .2em; color: var(--faint); font-variant-numeric: tabular-nums; }

.curtain { position: fixed; inset: 0; z-index: 140; background: var(--bg-2); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; display: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } }
.cursor-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); }
.cursor-ring { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1px solid rgb(var(--fg) / .45); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s var(--ease), border-color .35s; }
.cursor-ring em { font-style: normal; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); border-color: transparent; }
.cursor.is-label .cursor-ring em { opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor.is-link .cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: rgb(var(--fg) / .8); }

/* ---------- progress ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 110; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent-2); transform: scaleX(0); transform-origin: left; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter); transition: background .4s var(--ease-io), padding .4s var(--ease-io), translate .5s var(--ease);
}
.nav.is-scrolled { background: rgb(10 10 11 / .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { translate: 0 -110%; }
.brand img { width: 118px; height: auto; }
.nav-links { display: flex; gap: 34px; font-size: 14px; }
.nav-links a { position: relative; color: rgb(var(--fg) / .78); transition: color .25s; padding: 6px 0; }
.nav-links a sup { font-size: 9px; letter-spacing: .05em; color: var(--faint); margin-left: 3px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21.5px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 95; background: var(--bg); padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden; }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a { font-family: var(--font-display); font-size: clamp(44px, 12vw, 72px); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; display: grid; align-items: end; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; background: #070912 url(../assets/img/hero-poster.jpg) center/cover; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(to top, var(--bg) 0%, rgb(10 10 11 / .55) 26%, rgb(10 10 11 / 0) 55%),
  linear-gradient(to right, rgb(10 10 11 / .55) 0%, rgb(10 10 11 / 0) 55%); }
.hero-content { padding: 0 var(--gutter) clamp(56px, 9vh, 104px); max-width: 1100px; position: relative; }
.hero-eyebrow { margin-bottom: 26px; }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 9.4vw, 164px); line-height: .9; letter-spacing: -.045em; margin: 0 0 30px; text-shadow: 0 16px 38px rgb(0 0 0 / .32); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: block; white-space: nowrap; }
.hero-title em { color: rgb(var(--fg) / .55); font-weight: 300; }
.hero-sub { max-width: 34rem; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.55; color: rgb(var(--fg) / .78); margin: 0 0 34px; text-shadow: 0 2px 18px rgb(0 0 0 / .42); }
.hero-sub strong { color: var(--ink); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-corner { position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 104px); display: grid; justify-items: end; gap: 28px; }
.hero-meta { margin: 0; display: grid; justify-items: end; gap: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--fg) / .55); }
.hero-meta .local-time time { color: var(--ink); font-variant-numeric: tabular-nums; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgb(var(--fg) / .7); }
.scroll-cue i { width: 1px; height: 56px; background: rgb(var(--fg) / .2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- kinetic type ---------- */
.kinetic { padding: clamp(80px, 12vw, 180px) 0 clamp(40px, 6vw, 90px); overflow: hidden; }
.k-row { display: flex; gap: .3em; white-space: nowrap; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(64px, 14.5vw, 250px); line-height: .86; letter-spacing: -.045em; will-change: transform; }
.k-row:nth-child(1) { padding-left: 4vw; } .k-row:nth-child(2) { justify-content: flex-end; padding-right: 2vw; } .k-row:nth-child(3) { padding-left: 10vw; }
.k-word { position: relative; color: transparent; -webkit-text-stroke: 1px rgb(var(--fg) / .5); }
.k-word[data-text]::before { content: attr(data-text); position: absolute; inset: 0; color: var(--ink); -webkit-text-stroke: 0; clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0); }
.k-word.ghost { -webkit-text-stroke: 1px rgb(var(--fg) / .1); }
.no-js .k-word[data-text]::before, .reduced .k-word[data-text]::before { --fill: 100%; }

/* ---------- about ---------- */
.about { padding: clamp(80px, 10vw, 160px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.about-lede { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.7vw, 60px); line-height: 1.08; letter-spacing: -.03em; margin: 0; }
.about-lede .w { color: rgb(var(--fg) / .18); transition: color .2s linear; }
.about-lede .w.on { color: var(--ink); }
.no-js .about-lede .w, .reduced .about-lede .w { color: var(--ink); }
.portrait { position: relative; margin: 0; justify-self: end; width: min(100%, 440px); }
.portrait-clip { aspect-ratio: 1; border-radius: 50%; overflow: hidden; clip-path: circle(50% at 50% 50%); }
.portrait-clip img { width: 100%; height: 118%; object-fit: cover; filter: grayscale(.15) contrast(1.04); }
.portrait-ring { position: absolute; inset: -9%; width: 118%; height: 118%; pointer-events: none; animation: spin 38s linear infinite; }
.portrait-ring text { fill: rgb(var(--fg) / .55); font-size: 9.6px; letter-spacing: .32em; font-family: var(--font-body); font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait figcaption { position: absolute; left: 50%; bottom: 6%; translate: -50% 0; white-space: nowrap; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; background: rgb(10 10 11 / .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.stat { padding: 34px 32px 34px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 32px; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(60px, 7.4vw, 124px); line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat strong sup { font-size: .42em; vertical-align: .9em; color: var(--accent-2); margin-left: 4px; }
.stat strong small { font-size: .5em; color: var(--muted); font-weight: 300; }
.stat p { margin: 14px 0 0; color: var(--muted); max-width: 24ch; font-size: 14.5px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: clamp(48px, 6vw, 80px) 0 44px; }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; font-weight: 500; }
.facts dd { margin: 0; font-size: 15.5px; }
.facts a { border-bottom: 1px solid var(--line-2); transition: border-color .25s; }
.facts a:hover { border-color: var(--ink); }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 38px; width: max-content; animation: marquee 42s linear infinite; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 38px); font-weight: 400; letter-spacing: -.02em; white-space: nowrap; align-items: center; }
.marquee-track b { color: var(--accent-2); font-size: .6em; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- experience ---------- */
.experience { position: relative; padding: clamp(100px, 12vw, 180px) 0; }
.exp-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 72px); line-height: 1.02; letter-spacing: -.035em; max-width: 19ch; margin: 0 0 clamp(56px, 7vw, 110px); }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wm > span { display: inline-block; will-change: transform; }
.exp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); position: relative; }
.exp-list li { position: relative; }
.exp-list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; }
.js .exp-list li::after { transform: scaleX(var(--draw, 0)); transition: transform 1.2s var(--ease); }
.js .exp-list li.drawn::after, .reduced .exp-list li::after { --draw: 1; }
.exp-row { display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1.25fr) minmax(0, .8fr) 40px; align-items: center; gap: 20px; padding: 30px 0; position: relative; transition: padding .5s var(--ease), color .3s; }
.exp-n { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.exp-co { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.2vw, 64px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; transition: transform .6s var(--ease), color .3s; }
.exp-role { font-size: 15.5px; color: rgb(var(--fg) / .85); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.exp-now { font-size: 12px; color: var(--accent-2); display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: rgb(0 136 204 / .12); }
.exp-now i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.exp-loc { font-size: 14px; color: var(--muted); }
.exp-arrow { justify-self: end; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .35s, color .35s, transform .45s var(--ease); }
@media (hover: hover) {
  .exp-list:hover .exp-row { color: rgb(var(--fg) / .35); }
  .exp-list:hover .exp-row:hover { color: var(--ink); }
  .exp-list:hover .exp-row:hover .exp-co { transform: translateX(14px); }
  .exp-row:hover .exp-arrow { background: var(--ink); color: var(--bg); transform: rotate(45deg); }
}
.exp-preview { position: fixed; left: 0; top: 0; z-index: 60; width: 300px; aspect-ratio: 4/3; pointer-events: none; opacity: 0; scale: .7; border-radius: 16px; overflow: hidden; transition: opacity .35s var(--ease), scale .5s var(--ease); box-shadow: 0 30px 60px rgb(0 0 0 / .45); }
.exp-preview.on { opacity: 1; scale: 1; }
.exp-preview-inner, .exp-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 1023px) { .exp-preview { display: none; } }

/* ---------- work (pinned horizontal) ---------- */
.work { position: relative; background: var(--bg); }
.work-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 48px; overflow: hidden; }
.work-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 40px; margin-bottom: clamp(28px, 4vh, 48px); }
.work-head .label { grid-column: 1 / -1; margin-bottom: 4px; }
.work-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 84px); line-height: .95; letter-spacing: -.04em; margin: 0; }
.work-count { margin: 0; font-family: var(--font-display); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.work-count b { color: var(--ink); font-weight: 500; font-size: 22px; }
.work-track { display: flex; gap: clamp(18px, 2vw, 32px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.case { position: relative; flex: 0 0 auto; width: clamp(300px, 42vw, 700px); display: block; }
.case-media { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); max-height: 58vh; }
.case-media img { position: absolute; inset: -8% -8%; width: 116%; height: 116%; max-width: none; object-fit: cover; transition: scale 1s var(--ease), filter .6s; will-change: transform; }
.case-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); pointer-events: none; }
@media (hover: hover) { .case:hover .case-media img { scale: 1.05; } .work-track:hover .case:not(:hover) .case-media img { filter: brightness(.55) saturate(.6); } }
.case-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding-top: 22px; }
.case-n { grid-row: span 3; font-size: 12px; color: var(--accent-2); padding-top: 3px; font-variant-numeric: tabular-nums; }
.case-tag { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.case h3 { margin: 4px 0 2px; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.1vw, 34px); letter-spacing: -.03em; line-height: 1.05; display: flex; align-items: center; gap: 12px; }
.case h3::after { content: "↗"; font-size: .6em; opacity: 0; transform: translate(-6px, 6px); transition: opacity .3s, transform .45s var(--ease); }
.case:hover h3::after { opacity: 1; transform: none; }
.case p { margin: 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.work-bar { margin-top: clamp(26px, 4vh, 44px); }
.work-bar span { display: block; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.work-bar span::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, .1667)); transform-origin: left; }

/* ---------- award ---------- */
.award { padding: clamp(100px, 12vw, 180px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.award-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.award-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 4.4vw, 76px); line-height: .98; letter-spacing: -.04em; margin: 0 0 24px; }
.award-sub { color: var(--muted); margin: 0 0 36px; max-width: 38ch; }
.award-media { position: relative; display: block; }
.award-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.award-img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.award-media:hover .award-img img { scale: 1.04; }
.award-badge { position: absolute; width: clamp(120px, 13vw, 180px); height: auto; left: clamp(-60px, -4vw, -24px); bottom: clamp(-60px, -4vw, -24px); animation: spin 26s linear infinite; }
.award-badge circle { fill: var(--accent); }
.award-badge text { fill: #fff; font-size: 13.4px; letter-spacing: .24em; font-weight: 500; font-family: var(--font-body); }
.award-badge .badge-n { font-family: var(--font-display); font-size: 40px; letter-spacing: -.04em; font-weight: 500; }

/* ---------- contact ---------- */
.contact { padding: clamp(100px, 12vw, 180px) 0 clamp(60px, 7vw, 100px); }
.contact .label { margin-bottom: 20px; }
.contact-marquee { display: block; overflow: hidden; padding: 1vw 0 2vw; }
.cm-track { display: flex; align-items: center; gap: 3vw; width: max-content; font-family: var(--font-display); font-weight: 500; font-size: clamp(72px, 15vw, 260px); line-height: .95; letter-spacing: -.05em; text-transform: uppercase; animation: marquee 30s linear infinite; }
.cm-track .o { color: transparent; -webkit-text-stroke: 1px rgb(var(--fg) / .6); }
.cm-track b { font-size: .3em; color: var(--accent-2); font-weight: 400; }
.contact-marquee:hover .cm-track { animation-play-state: paused; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: clamp(40px, 5vw, 70px); }
.contact-lede { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; max-width: 30ch; margin: 0; color: rgb(var(--fg) / .85); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.copy { height: 44px; display: inline-flex; align-items: center; gap: 12px; padding: 0 8px 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; transition: background .3s; }
.copy:hover { background: rgb(var(--fg) / .06); }
.copy-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgb(var(--fg) / .1); }
.socials { grid-column: 1 / -1; list-style: none; padding: 0; margin: clamp(40px, 5vw, 70px) 0 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.socials a { display: flex; justify-content: space-between; align-items: center; padding: 22px 18px 22px 0; font-size: 15px; color: var(--muted); transition: color .25s; }
.socials li + li a { padding-left: 18px; border-left: 1px solid var(--line); }
.socials a i { font-style: normal; transition: transform .4s var(--ease); }
.socials a:hover { color: var(--ink); }
.socials a:hover i { transform: translate(3px, -3px); }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px var(--gutter) 30px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer a:hover { color: var(--ink); }
.footer time { font-variant-numeric: tabular-nums; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; translate: -50% 20px; opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; transition: opacity .3s, translate .45s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; translate: -50% 0; }

/* ---------- initial states (JS only, never stuck: site.js forces final state) ---------- */
.js:not(.reduced) .reveal { opacity: 0; transform: translateY(28px); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .status { display: none; }
  .nav-links { gap: 24px; }
}
@media (max-width: 1023px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .menu-btn { display: block; }
  .hero-corner { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; width: min(78%, 380px); margin-left: 9%; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr 1fr; }
  .exp-row { grid-template-columns: 40px 1fr 40px; grid-template-areas: "n co ar" ". role ." ". loc ."; gap: 6px 14px; padding: 24px 0; }
  .exp-n { grid-area: n; } .exp-co { grid-area: co; } .exp-role { grid-area: role; } .exp-loc { grid-area: loc; } .exp-arrow { grid-area: ar; width: 36px; height: 36px; }
  .work-pin { min-height: 0; padding: 100px 0 40px; }
  .work-track { width: auto; flex-direction: column; gap: 56px; }
  .case { width: 100%; }
  .case-media { max-height: none; }
  .work-bar, .work-count { display: none; }
  .award-grid { grid-template-columns: 1fr; }
  .award-badge { left: auto; right: 12px; bottom: -40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
  .socials { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .socials li a, .socials li + li a { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero { min-height: 600px; }
  .hero-title { font-size: clamp(46px, 13.5vw, 72px); }
  .hero-title .line > span { white-space: normal; }
  .hero-video { object-position: 70% 50%; }
  .hero-shade { background: linear-gradient(to top, var(--bg) 0%, rgb(10 10 11 / .7) 40%, rgb(10 10 11 / .1) 75%); }
  .hero-ctas .btn-lg { --h: 50px; padding: 0 22px; }
  .facts { grid-template-columns: 1fr; }
  .k-row { font-size: 17vw; }
  .exp-co { font-size: 34px; }
  .footer { flex-direction: column; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track, .cm-track { animation: none !important; }
  .portrait-ring, .award-badge { animation: none !important; }
}

/* reduced motion / no-JS: work row becomes a native swipe strip */
.reduced .work-pin, .no-js .work-pin { overflow: visible; }
@media (min-width: 1024px) {
  .reduced .work-track, .no-js .work-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; }
  .reduced .case, .no-js .case { scroll-snap-align: start; }
}
