/* =====================================================================
   IJ SPORTS MEDIA — HOMEPAGE
   Same material as the IJ HQ: smoked liquid glass with hairline silver
   edges, Plus Jakarta Sans with Instrument Serif italic accents.
   Black, white and silver. #96FF00 appears only as a tiny signal dot.
   ===================================================================== */

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --ink: #f6f6f4;
  --ink2: #d2d3d1;
  --mute: #a6a8a8;
  --dim: #7b7e80;
  --line: rgba(255, 255, 255, .13);
  --line2: rgba(255, 255, 255, .24);
  --glass: rgba(12, 12, 14, .34);
  --lime: #96ff00;

  --sans: 'Plus Jakarta Sans', 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.32, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  letter-spacing: -.008em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--lime); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(255, 255, 255, .85); color: #0b0b0c; }

[hidden] { display: none !important; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: #fff; color: #000; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink2);
}
.title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.title em, .serif, h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
}
.title.title { line-height: 1.04; padding-bottom: .06em; }
.title em { font-size: 1.1em; line-height: 1; }
.title-sm { font-size: clamp(32px, 4vw, 54px); }
.sub { margin: 26px 0 0; max-width: 560px; color: var(--mute); font-size: 16.5px; line-height: 1.65; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(150, 255, 0, .14); }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(140deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.035) 30%, rgba(255,255,255,0) 58%, rgba(255,255,255,.06) 100%),
    var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  -webkit-backdrop-filter: blur(30px) saturate(170%) brightness(.72);
  backdrop-filter: blur(30px) saturate(170%) brightness(.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(255,255,255,.05),
    inset 1px 0 0 rgba(255,255,255,.05),
    0 28px 56px -30px rgba(0,0,0,.8),
    0 10px 22px -14px rgba(0,0,0,.5);
}
/* silver edge: a bright top-left rim fading out, catching light again bottom-right */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.62), rgba(255,255,255,.10) 20%, rgba(255,255,255,0) 52%, rgba(255,255,255,.08) 82%, rgba(255,255,255,.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .75; transition: opacity .3s var(--ease);
}
/* light that follows the pointer */
.glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.14), rgba(255,255,255,.03) 42%, transparent 70%);
}
.glow:hover::after { opacity: 1; }
.glow:hover::before { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line2);
  font-size: 14.5px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--spring), background .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease);
}
.btn-lg { height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-light {
  background: linear-gradient(180deg, #fff, #e4e5e6);
  border-color: rgba(255,255,255,.9);
  color: #0b0b0c;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.7), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.08);
}
.btn-light:hover { background: #fff; box-shadow: 0 18px 36px -14px rgba(0,0,0,.75), 0 0 0 4px rgba(255,255,255,.08), inset 0 1px 0 #fff; }
.btn-glass {
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-glass:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.38); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
.btn:hover .arr, .link:hover .arr { transform: translateX(4px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .25s; }
.link:hover { border-color: var(--line2); }

.round {
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  transition: transform .35s var(--spring), border-color .25s;
}
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { transform: scale(1.06); border-color: var(--line2); }
.round:active { transform: scale(.94); }
.round:disabled { opacity: .35; pointer-events: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; z-index: 50; top: 16px; left: 50%;
  width: min(1200px, calc(100% - 32px));
  transform: translate(-50%, 0);
}
.nav-bar {
  display: flex; align-items: center; gap: 8px;
  height: 64px; padding: 0 9px 0 16px;
  border-radius: 999px;
  transition: background .4s var(--ease);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.brand img { width: 30px; height: auto; }
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; margin: 0 6px; }
.nav-links a {
  position: relative; z-index: 1;
  padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink2);
  transition: color .25s var(--ease);
}
.nav-links a:hover, .nav-links a.on { color: #fff; }
.nav-ind {
  position: absolute; left: 0; top: 50%; height: 38px; width: 0;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 8px 18px -8px rgba(0,0,0,.6);
  transform: translate(var(--x, 0), -50%);
  opacity: 0;
  transition: transform .55s var(--spring), width .45s var(--spring), opacity .3s var(--ease);
}
.nav-ig { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink2); transition: color .2s, background .25s; }
.nav-ig:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-ig svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-cta { height: 46px; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .4s var(--spring); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.sheet {
  position: fixed; z-index: 49; top: 92px; left: 16px; right: 16px;
  padding: 18px; border-radius: 28px;
  background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.02) 40%), rgba(12,12,14,.7);
}
.sheet nav { display: grid; margin-bottom: 14px; }
.sheet nav a { padding: 13px 8px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; border-bottom: 1px solid rgba(255,255,255,.07); }
.sheet .btn { width: 100%; }
.sheet:not([hidden]) { animation: sheetIn .45s var(--out) both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #0b0b0c; }
.hero-img {
  position: absolute; inset: -3% 0 0; width: 100%; height: 103%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.06);
  transition: transform 2.6s var(--out), opacity 1.4s var(--ease);
  will-change: transform;
}
.is-loading .hero-img { opacity: 0; transform: scale(1.14); }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(8,8,9,.92) 0%, rgba(8,8,9,.55) 30%, rgba(8,8,9,0) 58%),
    linear-gradient(90deg, rgba(8,8,9,.55) 0%, rgba(8,8,9,.15) 45%, rgba(8,8,9,0) 70%),
    linear-gradient(180deg, rgba(8,8,9,.45) 0%, rgba(8,8,9,0) 18%);
}
.hero-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding-bottom: clamp(56px, 9vh, 104px);
  padding-top: 140px;
}
.hero-copy { max-width: 820px; }
.hero-title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(54px, 7.4vw, 116px);
  line-height: .9;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(0,0,0,.35);
}
.hero-title .line { display: block; white-space: nowrap; overflow: hidden; padding: .04em 0 .06em; margin: -.04em 0 -.06em; }
.hero-title .serif {
  text-transform: none;
  font-size: 1.12em;
  line-height: .86;
  letter-spacing: -.02em;
  color: #e9e9e6;
  padding-left: .04em;
}
.hero-word { display: inline-block; transition: transform 1.3s var(--out), opacity 1s var(--ease); transition-delay: calc(.35s + var(--d) * .12s); }
.is-loading .hero-word { transform: translateY(105%); opacity: 0; }
.hero-in { transition: transform 1.1s var(--out), opacity 1s var(--ease), filter 1s var(--ease); transition-delay: calc(.35s + var(--d) * .12s); }
.is-loading .hero-in { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.hero .eyebrow { color: #e6e6e3; }
.hero-lead { margin: 28px 0 0; max-width: 520px; font-size: clamp(16px, 1.3vw, 18.5px); color: #e1e1dd; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.latest {
  display: flex; align-items: center; gap: 14px;
  width: 300px; padding: 10px 18px 10px 10px;
  border-radius: 22px; cursor: pointer; text-align: left;
  transition: transform .5s var(--spring), border-color .3s, opacity 1s var(--ease), filter 1s var(--ease);
  transition-delay: 0s;
}
.latest:hover { transform: translateY(-4px); border-color: var(--line2); }
.latest img { width: 62px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; flex: none; box-shadow: 0 8px 18px -8px rgba(0,0,0,.7); }
.latest-copy { display: grid; gap: 3px; }
.latest-k { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.latest-t { font-size: 15px; font-weight: 500; line-height: 1.3; }
.latest-m { font-size: 13px; color: var(--mute); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 40px; margin-left: -13px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Standards band ---------- */
.band { position: relative; z-index: 2; margin-top: -1px; padding: 0 0 20px; background: linear-gradient(180deg, rgba(8,8,9,.92), var(--bg)); }
.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 28px;
}
.stats li { padding: 30px 32px; display: grid; gap: 6px; }
.stats li + li { border-left: 1px solid rgba(255,255,255,.08); }
.stats b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -.02em; }
.stats span { font-size: 13.5px; color: var(--mute); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 168px) 0 0; }
.section-tight { padding-top: clamp(80px, 9vw, 128px); }
.head { margin-bottom: clamp(40px, 5vw, 64px); }
.head-center { text-align: center; }
.head-center .sub { margin-inline: auto; }

/* ambient room light behind the content, very subtle */
main { position: relative; }
main::before {
  content: ""; position: absolute; z-index: -1; inset: 100vh 0 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% 8%, rgba(255,166,110,.07), transparent 70%),
    radial-gradient(700px 500px at 8% 40%, rgba(255,255,255,.035), transparent 70%),
    radial-gradient(900px 700px at 90% 78%, rgba(255,150,100,.05), transparent 70%);
}

/* ---------- Artwork tiles (shared) ---------- */
.tile {
  position: relative; display: block; width: 100%;
  padding: 10px; border-radius: 26px; cursor: zoom-in;
  text-align: left;
  transition: transform .6s var(--spring), box-shadow .5s var(--ease), border-color .3s;
  will-change: transform;
}
.tile-frame { display: block; position: relative; overflow: hidden; isolation: isolate; transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(white, black); border-radius: 17px; aspect-ratio: 9 / 16; background: #141416; }
.tile-frame img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1s var(--out), filter .6s var(--ease); }
/* glass sheen sweeping across on hover */
.tile-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.16) 47%, rgba(255,255,255,.04) 53%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0;
  transition: background-position 1.2s var(--out);
}
.tile:hover { transform: translateY(-10px); border-color: var(--line2); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 50px 80px -40px rgba(0,0,0,.95), 0 20px 36px -20px rgba(0,0,0,.6); }
.tile:hover .tile-frame img { transform: scale(1.035); }
.tile:hover .tile-frame::after { background-position: 0% 0; }
.tile:active { transform: translateY(-6px) scale(.99); transition-duration: .15s; }

/* ---------- Featured (3 identical columns) ---------- */
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.feat { display: grid; gap: 18px; }
.feat .tile { padding: 12px; border-radius: 30px; }
.feat .tile-frame { border-radius: 20px; }
.feat-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 22px 20px 18px; border-radius: 0 0 20px 20px; background: linear-gradient(0deg, rgba(6,6,7,.86), rgba(6,6,7,.55) 55%, transparent); opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .6s var(--out); pointer-events: none; }
.feat-cap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.feat-cap dt { color: var(--mute); }
.feat-cap dd { margin: 0; color: #fff; }
.tile:hover .feat-cap, .tile:focus-visible .feat-cap { opacity: 1; transform: none; }
.feat-meta { display: flex; align-items: baseline; gap: 16px; padding: 0 6px; }
.feat-n { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--dim); }
.feat-t { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.feat-m { margin: 2px 0 0; font-size: 13.5px; color: var(--mute); }

/* ---------- Gallery (6 across, compact) ---------- */
.more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: clamp(80px, 9vw, 120px) 0 26px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.more-head h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.gallery .tile { padding: 7px; border-radius: 20px; }
.gallery .tile-frame { border-radius: 14px; }
.g-cap { margin: 12px 4px 0; font-size: 13px; line-height: 1.4; color: var(--ink2); }
.g-cap span { display: block; color: var(--dim); font-size: 12px; }

/* ---------- Case study ---------- */
.case-panel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 36px;
  background:
    radial-gradient(700px 400px at 100% 100%, rgba(190,30,45,.16), transparent 70%),
    linear-gradient(140deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 30%, rgba(255,255,255,0) 58%, rgba(255,255,255,.05) 100%),
    rgba(12,12,14,.5);
  overflow: hidden;
}
.case .title { font-size: clamp(36px, 3.7vw, 54px); }
.case .title .nm { white-space: nowrap; }
.case .title .dash { color: var(--dim); font-weight: 300; }
.case .title em { display: block; margin-top: .08em; }
.facts { margin: 30px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.facts div { padding: 14px 16px 14px 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.08); }
.facts dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 4px 0 0; font-size: 14.5px; font-weight: 500; }
.quote { margin: 0 0 32px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 27px); line-height: 1.25; color: #ecece9; }
.quote figcaption { margin-top: 12px; font-size: 14px; font-weight: 500; }
.quote figcaption span { display: block; font-weight: 400; color: var(--mute); font-size: 13px; }

.fan { position: relative; height: clamp(420px, 40vw, 560px); }
.fan .tile {
  position: absolute; top: 50%; left: 50%;
  width: 38%; padding: 6px; border-radius: 20px;
  transform: translate(-50%, -50%) translateX(calc(var(--k) * 46%)) rotate(calc(var(--k) * 5deg)) scale(calc(1 - var(--a) * .09));
  z-index: calc(10 - var(--a));
  transition: transform .8s var(--spring), box-shadow .5s var(--ease), filter .5s var(--ease);
  filter: brightness(calc(1 - var(--a) * .12));
}
.fan .tile-frame { border-radius: 14px; }
.fan:hover .tile { transform: translate(-50%, -50%) translateX(calc(var(--k) * 66%)) rotate(calc(var(--k) * 3deg)) scale(calc(1 - var(--a) * .07)); }
.fan .tile:hover { filter: brightness(1.04); transform: translate(-50%, -50%) translateX(calc(var(--k) * 66%)) translateY(-14px) rotate(0deg) scale(1.02); z-index: 20; }
.fan .tile:hover .tile-frame img { transform: none; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 20px; }
.svc { padding: clamp(26px, 3vw, 38px); border-radius: 30px; transition: transform .6s var(--spring), border-color .3s; overflow: hidden; }
.svc:hover { transform: translateY(-5px); border-color: var(--line2); }
.svc-main { grid-row: span 2; display: grid; grid-template-rows: 1fr auto; min-height: 640px; padding: 0; }
.svc-art { position: relative; overflow: hidden; border-radius: 29px 29px 0 0; min-height: 300px; }
.svc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,14,16,1) 0%, rgba(14,14,16,.2) 50%, rgba(14,14,16,.15)); }
.svc-art img { position: absolute; width: 46%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; top: 34px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); transition: transform 1s var(--out); }
.svc-art img:first-child { left: 6%; transform: rotate(-4deg); }
.svc-art img:last-child { right: 6%; transform: rotate(4deg) translateY(30px); }
.svc-main:hover .svc-art img:first-child { transform: rotate(-6deg) translate(-8px, -8px); }
.svc-main:hover .svc-art img:last-child { transform: rotate(6deg) translate(8px, 20px); }
.svc-main .svc-body { padding: 0 clamp(26px, 3vw, 38px) clamp(26px, 3vw, 38px); position: relative; }
.svc-k { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.svc h3 { margin: 0; font-size: clamp(28px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.svc h3 em { font-size: 1.1em; }
.svc-main h3 { font-size: clamp(36px, 3.6vw, 52px); }
.svc p { margin: 14px 0 0; color: var(--mute); font-size: 15.5px; max-width: 460px; }
.svc-toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 0; border: 0; background: none; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.plus { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2); transition: transform .5s var(--spring), background .25s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; border-radius: 2px; }
.plus::after { transform: rotate(90deg); transition: transform .4s var(--spring); }
.svc-toggle:hover .plus { background: rgba(255,255,255,.1); }
.svc-toggle[aria-expanded="true"] .plus { transform: rotate(180deg); }
.svc-toggle[aria-expanded="true"] .plus::after { transform: rotate(0deg); }
.svc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--out); }
.svc-more > div { overflow: hidden; min-height: 0; }
.svc-more.open { grid-template-rows: 1fr; }
.svc-more ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc-more li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink2); }
.svc-more li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--ink2); }
.svc-more .link { margin-top: 16px; }
.svc-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 36%); gap: clamp(18px, 2.4vw, 30px); align-items: center; }
.svc-side .svc-body { order: -1; min-width: 0; }
.svc-shot { position: relative; margin: 0; align-self: center; }
.svc-shot img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: 0 30px 60px -22px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1); transform: rotate(3deg); transition: transform 1s var(--out); }
.svc-side:hover .svc-shot img { transform: rotate(5deg) translate(4px, -4px); }
.svc-shot figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; color: var(--ink); background: rgba(12,12,14,.55); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: rotate(3deg); }
.svc-note { margin: 22px 0 0; font-size: 14px; color: var(--dim); }
.svc-note span { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink2); }

/* ---------- Template concepts rail ---------- */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.rail-ctrl { display: flex; gap: 10px; }
.rail {
  --h: clamp(340px, 32vw, 440px);
  display: flex; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 16px max(var(--gut), calc((100% - var(--wrap)) / 2)) 30px;
  scroll-padding-inline: max(var(--gut), calc((100% - var(--wrap)) / 2));
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail .item { flex: none; scroll-snap-align: start; }
.rail .tile { width: auto; padding: 7px; border-radius: 20px; }
.rail .tile-frame { height: var(--h); width: calc(var(--h) * var(--ar)); max-width: none; aspect-ratio: auto; border-radius: 14px; }
.rail .g-cap { display: flex; align-items: center; gap: 8px; }
.tag { display: inline-flex; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; color: var(--mute); }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 22px; align-items: flex-start; padding: 24px 28px; border-radius: 24px; transition: transform .5s var(--spring), border-color .3s; }
.steps li:hover { transform: translateX(6px); border-color: var(--line2); }
.steps .n { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--dim); min-width: 40px; }
.steps h3 { margin: 4px 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.steps p { margin: 0; color: var(--mute); font-size: 14.5px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.quotes figure { margin: 0; padding: clamp(28px, 3.4vw, 44px); border-radius: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quotes blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.3; color: #ecece9; }
.quotes figcaption { font-weight: 500; font-size: 15px; }
.quotes figcaption span { display: block; font-weight: 400; color: var(--mute); font-size: 13.5px; }

/* ---------- Contact ---------- */
.contact-sec { padding-bottom: clamp(80px, 10vw, 140px); }
.contact-bg {
  position: absolute; inset: clamp(40px, 6vw, 90px) 0 0; z-index: -1; overflow: hidden;
  background: url(../images/studio-sunset.webp) 70% 50% / cover no-repeat;
  -webkit-mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  opacity: .55;
}
.contact-bg::after { content: ""; position: absolute; inset: 0; background: rgba(8,8,9,.45); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); padding: clamp(28px, 5vw, 60px); border-radius: 36px; background: linear-gradient(140deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.03) 32%, rgba(255,255,255,0) 60%, rgba(255,255,255,.06) 100%), rgba(12,12,14,.4); }
.contact .title { font-size: clamp(48px, 6vw, 84px); }
.contact-direct { display: grid; gap: 10px; margin-top: 36px; }
.direct { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 0 -14px; border-radius: 16px; transition: background .25s, transform .4s var(--spring); }
.direct:hover { background: rgba(255,255,255,.06); transform: translateX(4px); }
.direct svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.direct span { display: grid; font-size: 15.5px; font-weight: 500; }
.direct small { font-size: 12px; font-weight: 400; color: var(--mute); }

.form { display: grid; gap: 16px; align-content: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { padding: 0; font-size: 13px; color: var(--ink2); }
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--line2);
  background: rgba(0,0,0,.28);
  color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field ::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(255,255,255,.5); background: rgba(0,0,0,.36); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.field .invalid { border-color: #f07b7e; }
.segmented { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--line); width: 260px; }
.segmented label { position: relative; z-index: 1; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 9px 0; text-align: center; font-size: 14px; font-weight: 500; color: var(--mute); transition: color .25s; }
.segmented input:checked + span { color: #0b0b0c; }
.segmented input:focus-visible + span { outline: 1.5px solid var(--lime); outline-offset: 2px; border-radius: 999px; }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: linear-gradient(180deg, #fff, #e4e5e6); box-shadow: 0 4px 12px -4px rgba(0,0,0,.5); transition: transform .5s var(--spring); }
.segmented:has(label:last-of-type input:checked) .seg-ind { transform: translateX(100%); }
.form-note { margin: 0; min-height: 1.4em; font-size: 14px; color: #f3b0b2; }
.thanks { display: grid; align-content: center; justify-items: start; gap: 6px; }
.thanks svg { width: 52px; height: 52px; padding: 12px; border-radius: 50%; border: 1px solid var(--line2); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thanks h3 { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 40px; }
.thanks p { margin: 0; color: var(--mute); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,.08); padding: 48px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand img { width: 40px; height: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; color: var(--mute); font-size: 14px; max-width: 320px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--ink2); }
.footer-links a:hover { color: #fff; }
.copyright { margin: 40px 0 0; font-size: 13px; color: var(--dim); }

/* ---------- Viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 90; }
.v-scrim { position: absolute; inset: 0; background: rgba(6,6,7,.72); -webkit-backdrop-filter: blur(22px) saturate(120%); backdrop-filter: blur(22px) saturate(120%); opacity: 0; transition: opacity .45s var(--ease); }
.viewer.open .v-scrim { opacity: 1; }
.v-stage { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 40px); padding: 28px clamp(16px, 4vw, 56px); pointer-events: none; }
.v-stage > * { pointer-events: auto; }
.v-figure { margin: 0; height: min(100%, 92vh); aspect-ratio: 9 / 16; display: grid; place-items: center; }
.v-img { max-height: 100%; max-width: 100%; width: auto; height: auto; border-radius: 18px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1); transition: opacity .3s var(--ease), transform .45s var(--out); }
.v-img.swap { opacity: 0; transform: scale(.985); }
.v-info { width: 340px; padding: 28px; border-radius: 28px; opacity: 0; transform: translateX(16px); transition: opacity .5s var(--ease) .12s, transform .6s var(--out) .12s; }
.viewer.open .v-info { opacity: 1; transform: none; }
.v-info h2 { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 32px; line-height: 1.08; letter-spacing: -.01em; }
.v-info dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.v-info dt { color: var(--mute); }
.v-info dd { margin: 0; }
.v-text { margin: 0 0 22px; color: var(--ink2); font-size: 14.5px; }
.v-text:empty { display: none; }
.v-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.v-close { position: absolute; top: 20px; right: 20px; }
.ghost { position: fixed; z-index: 95; pointer-events: none; border-radius: 16px; object-fit: cover; box-shadow: 0 40px 100px -30px rgba(0,0,0,.95); }

/* ---------- Cursor label + toast ---------- */
.cursor { position: fixed; z-index: 80; left: 0; top: 0; pointer-events: none; opacity: 0; transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0); transition: opacity .25s var(--ease); }
.cursor span { display: block; transform: translate(-50%, -50%) scale(.6); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #0b0b0c; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); transition: transform .4s var(--spring); }
.cursor.on { opacity: 1; }
.cursor.on span { transform: translate(-50%, -50%) scale(1); }
.toast { position: fixed; z-index: 99; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 14px 20px; border-radius: 18px; font-size: 14px; max-width: calc(100% - 32px); animation: toastIn .5s var(--out) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--out); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.title.reveal { transform: translateY(24px); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.3s var(--out), filter 1.1s var(--ease); }
.title.reveal.in { filter: none; }
.tile-in { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--out); transition-delay: calc(var(--i, 0) * 80ms); }
.tile-in.in { opacity: 1; transform: none; }
/* once revealed, hand transforms back to hover states */
.tile-in.in.settled { transition-delay: 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-ig { display: none; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .case-panel { grid-template-columns: 1fr; }
  .fan { height: clamp(420px, 62vw, 600px); }
  .services { grid-template-columns: 1fr 1fr; }
  .svc-main { grid-column: span 2; grid-row: auto; min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .svc-main .svc-art { border-radius: 29px 0 0 29px; min-height: 420px; }
  .svc-main .svc-art::after { background: linear-gradient(270deg, rgba(14,14,16,1) 0%, rgba(14,14,16,.1) 50%); }
  .svc-main .svc-body { padding: clamp(26px, 3vw, 38px); align-self: center; }
  .studio { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .latest { width: 100%; max-width: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .featured {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 360px);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut)); padding: 14px var(--gut) 24px;
    scroll-padding-inline: var(--gut);
  }
  .featured::-webkit-scrollbar { display: none; }
  .feat { scroll-snap-align: start; }
  .services { grid-template-columns: 1fr; }
  .svc-main { grid-column: auto; grid-template-columns: 1fr; }
  .svc-main .svc-art { border-radius: 29px 29px 0 0; min-height: 300px; }
  .svc-main .svc-art::after { background: linear-gradient(0deg, rgba(14,14,16,1) 0%, rgba(14,14,16,.2) 55%); }
  .svc-main .svc-body { padding-top: 0; }
  .quotes { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .rail-head { flex-direction: column; align-items: flex-start; }
  .rail-ctrl { display: none; }
}

@media (max-width: 600px) {
  .nav { top: 10px; width: calc(100% - 20px); }
  .nav-bar { height: 58px; padding: 0 6px 0 14px; }
  .brand span { display: none; }
  .nav-cta { height: 42px; padding: 0 16px; font-size: 13.5px; }
  .sheet { top: 78px; left: 10px; right: 10px; }
  /* phone crop: keep the bright silver curve on the right in frame */
  .hero-img { object-position: 70% 50%; }
  .hero-veil { background: linear-gradient(0deg, rgba(8,8,9,.95) 0%, rgba(8,8,9,.7) 38%, rgba(8,8,9,.05) 70%), linear-gradient(180deg, rgba(8,8,9,.5) 0%, rgba(8,8,9,0) 22%); }
  .hero-inner { padding-top: 120px; padding-bottom: 72px; gap: 28px; }
  .hero-title { font-size: clamp(46px, 14.5vw, 64px); }
  .hero-actions .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .stats li { padding: 22px 20px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery .tile { padding: 5px; border-radius: 16px; }
  .gallery .tile-frame { border-radius: 12px; }
  .more-head { flex-direction: column; gap: 8px; }
  .fan { height: 118vw; }
  .fan .tile { width: 50%; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 12px 0; border-left: 0; }
  .facts div + div { border-top: 1px solid rgba(255,255,255,.08); }
  .row2 { grid-template-columns: 1fr; }
  .segmented { width: 100%; }
  .rail { --h: 340px; gap: 12px; }
  .steps li { padding: 20px; gap: 16px; }
  .svc-side { grid-template-columns: 1fr; }
  .svc-side .svc-body { order: 0; }
  .svc-shot { order: -1; width: 54%; margin: 4px 0 6px 6px; }
  .v-stage { flex-direction: column; justify-content: flex-start; padding: 70px 14px 14px; gap: 14px; overflow-y: auto; }
  .v-figure { height: auto; width: min(100%, 420px); aspect-ratio: auto; }
  .v-img { width: 100%; }
  .v-info { width: 100%; max-width: 420px; padding: 22px; }
  .v-close { position: fixed; top: 14px; right: 14px; }
}

@media (max-width: 1100px) and (min-width: 601px) {
  .v-info { width: 300px; }
}

/* fine pointers only: cursor label */
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .tile-in, .title.reveal { opacity: 1; transform: none; clip-path: none; }
  .is-loading .hero-word, .is-loading .hero-in, .is-loading .hero-img { opacity: 1; transform: none; filter: none; }
  .hero-img { transform: none; }
  .tile:hover, .svc:hover, .steps li:hover, .btn:hover { transform: none; }
}
