/* ==========================================================================
   Srdjan Knežević — Portfolio
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Grotzec XXC'; src: url('../fonts/grotzec-xxc-black.otf') format('opentype'); font-weight: 900; font-display: block; }
@font-face { font-family: 'Grotzec XC';  src: url('../fonts/grotzec-xc-black.otf') format('opentype'); font-weight: 900; font-display: swap; }
/* Condensed family — ASCII only (trial cut). Used for the weight playground. */
@font-face { font-family: 'Grotzec C'; src: url('../fonts/grotzec-c-thin.otf') format('opentype'); font-weight: 100; font-display: block; }
@font-face { font-family: 'Grotzec C'; src: url('../fonts/grotzec-c-ultralight.otf') format('opentype'); font-weight: 200; font-display: block; }
@font-face { font-family: 'Grotzec C'; src: url('../fonts/grotzec-c-extralight.otf') format('opentype'); font-weight: 250; font-display: block; }
@font-face { font-family: 'Grotzec C'; src: url('../fonts/grotzec-c-light.otf') format('opentype'); font-weight: 300; font-display: block; }
@font-face { font-family: 'Grotzec C'; src: url('../fonts/grotzec-c-regular.otf') format('opentype'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Grotzec C'; src: url('../fonts/grotzec-c-demibold.otf') format('opentype'); font-weight: 600; font-display: block; }
@font-face { font-family: 'Grotzec C'; src: url('../fonts/grotzec-c-bold.otf') format('opentype'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Grotzec C'; src: url('../fonts/grotzec-c-black.otf') format('opentype'); font-weight: 900; font-display: block; }

/* ---------- Tokens ---------- */
:root {
  --blue: #1f1bff;
  --blue-deep: #110dc4;
  --orange: #ff4a1c;
  --lime: #d7ff3a;
  --ink: #0b0b0c;
  --ink-2: #1a1a1d;
  --paper: #efede6;
  --paper-2: #e4e1d7;
  --muted: rgba(11, 11, 12, .55);

  --display: 'Grotzec XXC', 'Arial Narrow', 'Helvetica Neue Condensed', Impact, sans-serif;
  --display-x: 'Grotzec XC', 'Grotzec XXC', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(16px, 2.2vw, 36px);
  --radius: clamp(14px, 1.6vw, 28px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--blue); color: #fff; }
[hidden] { display: none !important; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.muted { opacity: .55; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fit { display: block; white-space: nowrap; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: middle; transform: translateY(-1px); }
.dot--live { background: #2bff88; box-shadow: 0 0 0 0 rgba(43, 255, 136, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(43, 255, 136, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 255, 136, 0); } }

.u-link { position: relative; display: inline-block; }
.u-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.u-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* rolling text (hover) */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll > .roll__in { display: inline-block; }
.roll .ch { display: inline-block; position: relative; transition: transform .55s var(--ease); transition-delay: calc(var(--i) * 18ms); white-space: pre; }
.roll .ch::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
a:hover .roll .ch, button:hover .roll .ch, .roll:hover .ch { transform: translateY(-100%); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 900;
  background: var(--ink); color: var(--paper);
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: var(--gutter);
  animation: loaderFailsafe .8s var(--ease-io) 7s forwards; /* if JS fails, never trap the page */
}
.loader__top, .loader__bottom { display: flex; justify-content: space-between; }
.loader__count { align-self: end; font-size: clamp(160px, 38vw, 620px); line-height: .78; margin-bottom: 18px; overflow: hidden; }
.loader__num { display: inline-block; }
.loader__bar { height: 2px; background: rgba(239, 237, 230, .15); margin-bottom: 14px; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }
@keyframes loaderFailsafe { to { transform: translateY(-100%); visibility: hidden; } }
body:not(.is-loading) .loader { pointer-events: none; }

/* ---------- Page wipe ---------- */
.wipe { position: fixed; inset: 0; z-index: 800; pointer-events: none; }
.wipe__panel { position: absolute; inset: 0; background: var(--ink); clip-path: inset(100% 0 0 0); display: grid; place-items: center; color: var(--paper); }
.wipe__label { font-size: clamp(80px, 18vw, 300px); opacity: 0; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .9); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .35s, border-color .35s;
}
.cursor__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease); white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; }
.cursor.is-label .cursor__ring { width: 112px; height: 112px; margin: -56px 0 0 -56px; background: var(--lime); border-color: var(--lime); mix-blend-mode: normal; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: .01em; justify-self: start; }
.nav__mid { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.nav__sep { margin: 0 10px; opacity: .5; }
.nav__links { display: flex; align-items: center; gap: 26px; justify-self: end; font-size: 15px; font-weight: 500; }
.nav__cta { border: 1px solid currentColor; border-radius: 999px; padding: 8px 16px; }

/* ---------- Views ---------- */
.view { position: relative; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--blue); color: var(--paper);
  padding: 90px var(--gutter) var(--gutter);
  display: flex; flex-direction: column;
  isolation: isolate;
}
.hero::before { /* fine grain */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .12; pointer-events: none;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.hero__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); position: relative; z-index: 4; }
.hero__meta-end { text-align: right; }
.hero__name { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--name-bottom, 15svh); margin: 0; height: var(--name-h, 1em); font-size: var(--name-size, 200px); }
.hero__layer { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; gap: .14em; white-space: nowrap; }
.hero__layer--back { z-index: 1; }
.hero__layer--front { z-index: 3; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.hero__line { position: relative; display: inline-block; will-change: transform; padding-top: .12em; }
.hero__line .ch { display: inline-block; will-change: transform; }
.hero.is-stacked .hero__layer { flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; }
.hero.is-stacked .hero__line { line-height: .8; }
.hero__portrait {
  position: absolute; z-index: 2; left: 50%; bottom: 0;
  height: min(84svh, 768px); aspect-ratio: 1024 / 1535; max-width: 70vw;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__portrait picture { display: block; width: 100%; height: 100%; }
.hero__portrait img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: contrast(1.06); transform-origin: 50% 100%; }
.hero__meta, .hero__bottom { pointer-events: none; }
.hero__meta a, .hero__bottom a { pointer-events: auto; }
.hero__bottom { margin-top: auto; }
.hero__bottom { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gutter); margin-top: auto; }
.hero__tag { font-size: clamp(18px, 1.7vw, 26px); line-height: 1.2; max-width: 22ch; font-weight: 400; }
.hero__tag em { font-style: normal; background: var(--paper); color: var(--blue); padding: 0 .25em; border-radius: 4px; }
.hero__scroll { display: flex; align-items: center; gap: 12px; }
.hero__scroll-line { width: 64px; height: 1px; background: currentColor; transform-origin: left; animation: line 2.2s var(--ease-io) infinite; }
@keyframes line { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

.badge { position: absolute; z-index: 5; right: calc(var(--gutter) + 4vw); top: 38%; width: clamp(96px, 9vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge text { font-family: var(--mono); font-size: 14px; fill: currentColor; font-weight: 500; }
.badge__arrow { font-size: clamp(22px, 2vw, 34px); font-family: var(--sans); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--ink); color: var(--paper); padding: clamp(28px, 5vw, 70px) 0; overflow: hidden; }
.marquee__row { overflow: hidden; }
.marquee__row--alt { color: var(--paper); }
.marquee__track { display: inline-flex; align-items: center; white-space: nowrap; font-size: clamp(64px, 11vw, 190px); will-change: transform; }
.marquee__track span { padding: 0 .12em; }
.marquee__track i { font-style: normal; font-family: var(--sans); font-size: .4em; padding: 0 .35em; transform: translateY(-.08em); display: inline-block; }

/* ---------- ABOUT ---------- */
.about { padding: clamp(80px, 14vw, 220px) var(--gutter) clamp(60px, 10vw, 140px); background: var(--paper); }
.about__label { margin-bottom: 36px; }
.about__statement { font-size: clamp(28px, 4vw, 72px); line-height: 1.04; letter-spacing: -.035em; font-weight: 500; max-width: 22ch; text-wrap: balance; }
.about__statement + .about__statement { margin-top: .6em; }
.about__statement .w { display: inline-block; opacity: .14; }
.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: clamp(60px, 9vw, 140px); border-top: 1px solid rgba(0,0,0,.15); }
.stat { padding-top: 22px; }
.stat__num { font-size: clamp(90px, 13vw, 220px); color: var(--blue); }
.stat__label { margin-top: 10px; max-width: 22ch; }

/* ---------- WORK ---------- */
.work { background: var(--paper); padding: 0 var(--gutter) clamp(60px, 8vw, 120px); }
.work__head { padding-top: 20px; }
.work__title { color: var(--ink); text-align: center; }
.work__sub { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0 clamp(24px, 4vw, 48px); border-bottom: 1px solid rgba(0,0,0,.15); margin-bottom: clamp(24px, 4vw, 48px); }

.cards { position: relative; }
.card {
  position: sticky; top: 12px;
  height: calc(100svh - 24px); min-height: 560px;
  margin-bottom: 24px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--c); color: var(--k);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  transform-origin: 50% 0;
  will-change: transform;
}
.card:last-child { margin-bottom: 0; }
.card__shade { position: absolute; inset: 0; z-index: 4; background: #000; opacity: 0; pointer-events: none; }
.card__title { display: block; white-space: nowrap; }
.card__info { position: relative; z-index: 2; display: flex; flex-direction: column; padding: clamp(22px, 3vw, 48px); }
.card__top { display: flex; justify-content: space-between; gap: 12px; }
.card__num { font-family: var(--display); font-size: clamp(64px, 7vw, 120px); line-height: .8; }
.card__title { font-size: clamp(84px, 12.5vw, 240px); margin-top: auto; overflow: hidden; padding-top: .04em; }
.card__title .ch { display: inline-block; transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 25ms); }
.card:hover .card__title .ch { transform: translateY(-.06em) rotate(-2deg); }
.card__name { font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; letter-spacing: -.01em; margin-top: 18px; }
.card__summary { font-size: 15px; line-height: 1.45; opacity: .78; max-width: 40ch; margin-top: 10px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border: 1px solid currentColor; border-radius: 999px; padding: 4px 10px; opacity: .85; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; overflow: hidden; white-space: nowrap;
  background: var(--k); color: var(--c); font-weight: 500; font-size: 15px;
  isolation: isolate;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--a, var(--orange)); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn__arr { transition: transform .5s var(--ease); }
.btn:hover .btn__arr { transform: rotate(-45deg); }

.card__media { position: relative; overflow: hidden; }
.card__media { transition: transform 1.2s var(--ease); }
.card:hover .card__media { transform: scale(1.03); }
.card__media-inner { position: absolute; inset: 0; }
.card__shot { position: absolute; border-radius: clamp(8px, .9vw, 14px); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); background: #111; }
.card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* layout: desktop screenshots */
.card--wide .card__shot--a { left: 6%; top: 12%; width: 108%; aspect-ratio: 16/10; }
.card--wide .card__shot--b { left: 22%; top: 56%; width: 92%; aspect-ratio: 16/10; }
/* layout: phones */
.card--phones .card__shot { width: 31%; aspect-ratio: 780/1688; border-radius: clamp(18px, 2vw, 34px); }
.card--phones .card__shot--a { left: 6%; top: 20%; }
.card--phones .card__shot--b { left: 36%; top: 8%; }
.card--phones .card__shot--c { left: 66%; top: 26%; }
/* layout: photo */
.card--photo .card__shot--a { inset: 0; border-radius: 0; box-shadow: none; }
.card--photo .card__shot--a img { object-position: center; }

/* ---------- PLAYGROUND ---------- */
.play { background: var(--ink); color: var(--paper); padding: clamp(60px, 9vw, 130px) var(--gutter); overflow: hidden; user-select: none; }
.play__label { display: flex; justify-content: space-between; gap: 12px; opacity: .7; }
.play__text {
  font-family: 'Grotzec C', var(--display); font-weight: 100;
  font-size: clamp(120px, 26vw, 460px); line-height: .8; text-align: center; white-space: nowrap;
  padding: .04em 0;
}
.play__text:first-of-type { margin-top: 30px; }
.play__text + .play__label { margin-top: 26px; }
.play__text .ch { display: inline-block; transition: color .3s; }
.play__text .ch.is-hot { color: var(--lime); }

/* ---------- SERVICES ---------- */
.services { background: var(--paper); padding: clamp(80px, 12vw, 180px) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); }
.services__head { position: sticky; top: 100px; align-self: start; }
.services__title { font-size: clamp(80px, 10vw, 180px); margin-top: 24px; }
.hl { color: var(--blue); }
.services__list { counter-reset: s; border-top: 1px solid rgba(0,0,0,.15); }
.svc { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; row-gap: 12px; padding: 34px 0; border-bottom: 1px solid rgba(0,0,0,.15); }
.svc::before { content: ''; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 0; bottom: 0; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: 0; }
.svc > * { position: relative; z-index: 1; transition: color .4s; }
.svc:hover::before { transform: scaleY(1); }
.svc:hover > * { color: var(--paper); }
.svc__n { grid-row: span 3; padding-top: 6px; }
.svc__t { font-size: clamp(44px, 5vw, 84px); }
.svc__d { font-size: clamp(16px, 1.2vw, 19px); max-width: 48ch; opacity: .85; }
.svc__tags { opacity: .6; }

/* ---------- INDEX ---------- */
.index { background: var(--ink); color: var(--paper); padding: clamp(80px, 10vw, 150px) var(--gutter); }
.index__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(30px, 5vw, 60px); }
.index__title { font-size: clamp(110px, 18vw, 320px); }
.index__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid rgba(239,237,230,.35); border-radius: 999px; padding: 8px 14px; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--paper); }
.chip.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.index__cols, .row__in { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, .6fr) 90px; gap: 16px; align-items: center; }
.index__cols { padding: 0 0 12px; opacity: .5; border-bottom: 1px solid rgba(239,237,230,.2); }
.row { position: relative; border-bottom: 1px solid rgba(239,237,230,.2); overflow: hidden; }
.row a { display: block; position: relative; }
.row__in { position: relative; z-index: 1; padding: 18px 0; transition: color .35s, padding .5s var(--ease); }
.row__fill { position: absolute; inset: 0; background: var(--rc, var(--lime)); transform: translateY(101%); transition: transform .5s var(--ease); }
.row:hover .row__fill { transform: translateY(0); }
.row:hover .row__in { color: var(--rk, var(--ink)); padding-left: 16px; padding-right: 16px; }
.row__title { font-family: var(--display); font-size: clamp(38px, 5vw, 84px); line-height: .9; text-transform: uppercase; }
.row__year { text-align: right; }
.row.is-out { display: none; }

.preview { position: fixed; left: 0; top: 0; z-index: 400; width: clamp(240px, 22vw, 380px); aspect-ratio: 4/5; pointer-events: none; opacity: 0; transform: scale(.7); }
.preview__inner { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #222; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
.preview__inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- CONTACT ---------- */
.contact { position: relative; background: var(--orange); color: var(--ink); padding: 100px var(--gutter) var(--gutter); min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.contact__top { display: flex; justify-content: space-between; gap: 12px; }
.contact__top .dot--live { background: var(--ink); animation: none; }
.contact__title { margin: auto 0 0; text-align: center; padding-top: 40px; }
.contact__line .ch { display: inline-block; }
.contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); margin-top: clamp(28px, 4vw, 56px); }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: clamp(150px, 15vw, 230px); padding: clamp(18px, 2vw, 30px);
  border: 2px solid var(--ink); border-radius: var(--radius);
  transition: color .45s var(--ease);
}
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); border-radius: 40% 40% 0 0; transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.tile:hover { color: var(--orange); }
.tile:hover::before { transform: translateY(0); border-radius: 0; }
.tile--accent { background: var(--ink); color: var(--orange); }
.tile--accent::before { background: var(--paper); }
.tile--accent:hover { color: var(--ink); }
.tile__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tile__label { opacity: .7; padding-right: 64px; }
.tile__value { font-size: clamp(22px, 2.5vw, 44px); line-height: 1.05; font-weight: 500; letter-spacing: -.03em; overflow-wrap: anywhere; }
.tile__arrow {
  position: absolute; top: clamp(14px, 1.6vw, 24px); right: clamp(14px, 1.6vw, 24px);
  width: clamp(40px, 3.6vw, 56px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid currentColor; display: grid; place-items: center;
  font-size: clamp(18px, 1.6vw, 26px); transition: transform .6s var(--ease);
}
.tile:hover .tile__arrow { transform: rotate(45deg); }
.tile--accent:hover .tile__arrow { transform: translateY(4px); }
.tile__copy {
  position: absolute; z-index: 2; right: clamp(14px, 1.6vw, 24px); bottom: clamp(14px, 1.6vw, 24px);
  border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 12px; font-size: 11px;
  transition: background .3s, color .3s;
}
.tile__copy:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.foot { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px; padding-top: 22px; margin-top: clamp(30px, 5vw, 60px); border-top: 1px solid rgba(0,0,0,.25); }

/* ---------- CASE STUDY ---------- */
.view--case { background: var(--c, var(--paper)); color: var(--k, var(--ink)); }
.case-hero { position: relative; min-height: 100svh; padding: 96px var(--gutter) var(--gutter); display: flex; flex-direction: column; }
.case-hero__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 10px; border: 1px solid currentColor; border-radius: 999px; padding: 9px 16px; transition: background .3s, color .3s; }
.back:hover { background: var(--k); color: var(--c); }
.case-hero__title { font-size: clamp(110px, 24vw, 480px); margin: auto 0 0; overflow: hidden; padding-top: .06em; }
.case-hero__title .ch { display: inline-block; }
.case-hero__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); border-top: 1px solid currentColor; padding-top: 18px; margin-top: 20px; }
.case-hero__meta div span { display: block; opacity: .55; margin-bottom: 4px; }

.case-cover { padding: 0 var(--gutter); }
.case-cover__frame { border-radius: var(--radius); overflow: hidden; background: rgba(0,0,0,.2); clip-path: inset(12% 6% 0 6% round var(--radius)); }
.case-cover__frame img { width: 100%; transform: scale(1.2); transform-origin: 50% 0; }

.case-intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); padding: clamp(80px, 12vw, 180px) var(--gutter); }
.case-intro__label { opacity: .7; }
.case-intro__lead { font-size: clamp(26px, 3.2vw, 56px); line-height: 1.08; letter-spacing: -.03em; font-weight: 500; text-wrap: pretty; }
.case-intro__lead .w { display: inline-block; opacity: .18; }
.case-highlights { margin-top: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); border-top: 1px solid currentColor; }
.case-highlights li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-size: clamp(15px, 1.15vw, 18px); }
.case-highlights li span { opacity: .55; font-family: var(--mono); font-size: 12px; padding-top: 3px; }

.gallery { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 32px); padding: 0 var(--gutter) clamp(60px, 8vw, 120px); }
.shot { position: relative; border-radius: clamp(10px, 1.2vw, 20px); overflow: hidden; background: color-mix(in srgb, currentColor 8%, transparent); cursor: zoom-in; }
.has-cursor .shot { cursor: none; }
.shot img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.shot:not(.case-cover__frame):hover img { transform: scale(1.015); }
.case-cover__frame img { transition: none; }
.shot--tall { max-width: 1100px; margin: 0 auto; width: 100%; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.shot__cap { position: absolute; left: 16px; bottom: 16px; background: var(--k); color: var(--c); padding: 6px 12px; border-radius: 999px; }

/* phones horizontal strip */
.strip { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0; }
.strip__label { display: flex; justify-content: space-between; padding: 0 var(--gutter) 24px; }
.strip__track { display: flex; gap: clamp(14px, 1.6vw, 26px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.strip__item { width: clamp(200px, 19vw, 320px); flex: none; border-radius: clamp(18px, 2vw, 34px); overflow: hidden; background: #111; cursor: zoom-in; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.has-cursor .strip__item { cursor: none; }
.strip__item img { width: 100%; }

.next { position: relative; display: block; overflow: hidden; background: var(--nc); color: var(--nk); padding: clamp(60px, 8vw, 110px) var(--gutter) var(--gutter); min-height: 80svh; isolation: isolate; }
.next__label { display: flex; justify-content: space-between; }
.next__title { font-size: clamp(110px, 22vw, 420px); margin-top: clamp(80px, 14vw, 220px); }
.next__title .ch { display: inline-block; }
.next__title.tx-ready .ch { transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 30ms); }
.next:hover .next__title.tx-ready .ch { transform: translateY(-.08em); }
.next__img { position: absolute; right: var(--gutter); top: var(--gutter); width: clamp(180px, 22vw, 360px); aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; z-index: -1; transform: rotate(4deg) scale(.9); opacity: 0; transition: transform .8s var(--ease), opacity .5s; }
.next:hover .next__img { opacity: 1; transform: rotate(-3deg) scale(1); }
.next__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 700; background: rgba(8,8,10,.94); display: grid; justify-items: center; align-items: start; padding: 70px var(--gutter) var(--gutter); overflow: auto; overscroll-behavior: contain; }
.lightbox img { max-width: min(1600px, 100%); max-height: none; width: auto; border-radius: 10px; margin: auto; }
.lightbox__close { position: fixed; top: 18px; right: var(--gutter); color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 9px 16px; z-index: 2; background: rgba(0,0,0,.4); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 960; transform: translate(-50%, 200%); opacity: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; transition: transform .6s var(--ease), opacity .3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__mid { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .card__info { padding-bottom: 8px; }
  .card__title { margin-top: 18px; }
  .card__media { min-height: 200px; }
  .services { grid-template-columns: 1fr; }
  .services__head { position: static; margin-bottom: 30px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .nav { padding: 14px var(--gutter); }
  .nav__links { gap: 14px; font-size: 14px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__logo { font-size: 26px; }
  .hero { padding-top: 76px; }
  .hero__meta { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .hero__meta > div:nth-child(n+3) { display: none; }
  .hero__meta-end { text-align: left; }
  .hero__portrait { height: 64svh; max-width: 92vw; }
  .hero__layer--front { -webkit-text-stroke-width: 1px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .badge { top: 22%; right: var(--gutter); width: 84px; }
  .contact { min-height: 0; }
  .contact__title { margin-top: 70px; }
  .badge text { font-size: 17px; }
  .about__grid { grid-template-columns: 1fr; }
  .work__sub span:last-child { display: none; }
  .card { min-height: 0; height: auto; position: relative; top: 0; }
  .card__media { aspect-ratio: 4/3.4; }
  .card__foot { flex-direction: column; align-items: flex-start; }
  .card--phones .card__shot { width: 34%; }
  .play__label { flex-direction: column; }
  .svc { grid-template-columns: 1fr; }
  .svc__n { grid-row: auto; }
  .index__cols { display: none; }
  .row__in { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .row__type { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .tile { min-height: 136px; gap: 18px; }
  .tile:has(.tile__copy) .tile__value { padding-right: 70px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .case-hero__meta { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .case-intro { grid-template-columns: 1fr; }
  .case-highlights { grid-template-columns: 1fr; }
  .shot-pair { grid-template-columns: 1fr; }
  .strip__item { width: 62vw; }
  .next__img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .about__statement .w, .case-intro__lead .w { opacity: 1; }
  .case-cover__frame { clip-path: none; }
  .case-cover__frame img { transform: none; }
}
