/* ─────────────────────────────────────────────────────────────
   style.css — Haris Munawar portfolio · v3.0 "Carbon & Signal"
   Purpose : every style on the site. Carbon black, bone white and one
             signal vermilion; Geist (sans), Instrument Serif (italic
             accents) and Geist Mono (labels). Each case study still
             wears its own client's colours and type.
   Related : index.html, js/main.js, js/motion.js, js/hero-gl.js
   Sections: 1 tokens · 2 base · 3 shared parts · 4 layers (loader,
             grain, cursor, peek) · 5 header + menu · 6 hero · 7 marquee
             · 8 work index · 9 cases · 10 numbers · 11 services +
             process · 12 about · 13 contact · 14 footer · 15 viewer ·
             16 responsive · 17 motion states · 18 reduced motion
   ───────────────────────────────────────────────────────────── */

/* ── 1. Tokens (change the look here) ── */
:root {
  --carbon: #0A0A0B;
  --carbon-2: #111113;
  --carbon-3: #18181B;
  --bone: #ECE8E1;
  --bone-2: #CBC6BD;
  --ash: #8F8A83;
  --line: rgba(236, 232, 225, .12);
  --line-2: rgba(236, 232, 225, .22);
  --signal: #FF4F1F;
  --signal-2: #FF7A4D;
  --live: #2BD576;
  --focus: var(--signal);

  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1440px;
  --gutter: clamp(18px, 3.2vw, 48px);
  --section: clamp(5rem, 11vw, 10rem);
  --head-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ── 2. Base ── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: var(--head-h);
  -webkit-text-size-adjust: 100%; background: var(--carbon);
}
body {
  margin: 0;
  background: transparent;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--signal); color: var(--carbon); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--bone); color: var(--carbon); padding: .6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* ── 3. Shared parts ── */
/* Section label, e.g. "(01) SELECTED WORK" */
.label {
  display: flex; align-items: center; gap: .9em;
  font: 400 .78rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ash);
}
.label__no { color: var(--signal); }
.label__no::before { content: "("; }
.label__no::after { content: ")"; }
.label--dim { color: var(--ash); }
.sec-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--line-2); padding-top: 1.1rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

/* Headings: sans with an italic serif accent word */
.h2 {
  font-size: clamp(3rem, 8.4vw, 8.75rem);
  font-weight: 500; line-height: .92; letter-spacing: -0.05em;
}
.h3 { font-size: clamp(2rem, 4.6vw, 4.25rem); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }
.h2 em, .h3 em, .contact__title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.02em; font-size: 1.06em; padding-right: .04em;
}
.h4 { font: 400 .78rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ash); margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.55; color: var(--bone-2); max-width: 32em; }

/* Buttons: pill with a fill that rises on hover, text that rolls */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 54px; padding: 0 1.6rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1 var(--sans); letter-spacing: -0.01em; text-decoration: none;
  transition: color .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  transform: translateY(102%); transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn__arr { width: 15px; height: 15px; flex: none; transition: transform .5s var(--ease); }
.btn:hover .btn__arr { transform: translateY(2px); }
.btn--signal { background: var(--signal); color: var(--carbon); }
.btn--signal::before { background: var(--bone); }
.btn--ghost { border-color: var(--line-2); color: var(--bone); }
.btn--ghost::before { background: var(--bone); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--carbon); border-color: var(--bone); }
.btn--dark { background: var(--carbon); color: var(--bone); }
.btn--dark::before { background: var(--bone); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--carbon); }
.btn--dark:hover .btn__arr { transform: translate(2px, -2px); }
.btn--xl { min-height: 68px; padding: 0 2.1rem; font-size: 1.15rem; }

/* Rolling text: <a class="roll"><span data-t="Word">Word</span></a> */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { display: block; position: relative; transition: transform .55s var(--ease); }
.roll > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; white-space: nowrap; }
a.roll:hover > span, a.roll:focus-visible > span, a:hover > .roll > span, a:focus-visible > .roll > span { transform: translateY(-100%); }

.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 2.4s infinite; }
.dot--ink { background: var(--carbon); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 213, 118, .55); }
  70% { box-shadow: 0 0 0 9px rgba(43, 213, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 213, 118, 0); }
}

/* ── 4. Layers: loader, background, grain, cursor, hover preview ── */
.loader { display: none; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--gutter) + 6px) var(--gutter);
  background: var(--carbon); color: var(--bone);
  animation: loader-failsafe .6s 5s forwards;
}
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader__top, .loader__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  font: 400 .78rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ash);
}
.loader__top span:first-child { color: var(--bone); }
.loader__bar { height: 1px; background: var(--line); position: relative; margin-top: auto; }
.loader__bar i { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(0); }
.loader__count {
  font: 500 clamp(5rem, 19vw, 17rem)/.78 var(--sans); letter-spacing: -0.06em;
  color: var(--bone); font-variant-numeric: tabular-nums; text-transform: none;
}

.bgfx { position: fixed; inset: 0; z-index: -1; background: var(--carbon); pointer-events: none; }

.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%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)'/%3E%3C/svg%3E");
}

.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor.is-on .cursor__dot, .cursor.is-on .cursor__ring { opacity: 1; }
.cursor__dot { width: 6px; height: 6px; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; border: 1px solid #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: opacity .3s, width .45s var(--ease), height .45s var(--ease), background-color .3s, border-color .3s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; background: var(--signal); border-color: var(--signal); mix-blend-mode: normal; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor__label { font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--carbon); opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }

.peek {
  position: fixed; left: 0; top: 0; z-index: 45; pointer-events: none;
  width: clamp(260px, 25vw, 440px); aspect-ratio: 16 / 10;
  border-radius: 12px; overflow: hidden; visibility: hidden; opacity: 0;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
}
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.15); transition: opacity .35s, transform .9s var(--ease); }
.peek img.is-on { opacity: 1; transform: none; }

/* ── 5. Header (blends over any colour) + phone menu ── */
.top {
  position: fixed; inset: 0 0 auto; z-index: 60;
  color: var(--bone);
  transition: transform .7s var(--ease), color .6s ease, background-color .4s;
}
.top.is-ink { color: var(--carbon); }
/* Without the motion layer the header gets a solid bar so it stays readable on every section */
html:not(.motion) .top { background: rgba(10, 10, 11, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__cta:hover { background: currentColor; }
.top__cta:hover .roll { color: var(--carbon); }
.top.is-ink .top__cta:hover .roll { color: var(--bone); }
.top.is-hidden { transform: translateY(-110%); }
.top__in { position: relative; height: var(--head-h); display: flex; align-items: center; gap: 2rem; }
.mark { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.mark__hm {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid currentColor; border-radius: 50%;
  font: 600 .82rem/1 var(--sans); letter-spacing: 0;
}
.mark__name { font-weight: 500; letter-spacing: -0.015em; }
.top__now {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: .9rem; white-space: nowrap;
  font: 400 .74rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.top__pct { opacity: .6; font-variant-numeric: tabular-nums; }
.top__pct::after { content: "%"; }
.nav { display: flex; gap: 1.6rem; }
.nav a, .top__cta { text-decoration: none; font-size: .95rem; font-weight: 450; }
.top__cta { border: 1px solid currentColor; border-radius: 999px; padding: .55rem 1.05rem; transition: background-color .4s var(--ease); }
.top__menu {
  display: none; align-items: center; gap: .65rem;
  background: none; border: 0; padding: .6rem 0; font-weight: 500;
}
.top__menu i { position: relative; width: 22px; height: 9px; border-block: 1.5px solid currentColor; transition: transform .5s var(--ease); }
.top__menu[aria-expanded="true"] i { transform: rotate(90deg) scaleX(.7); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--head-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--carbon);
}
.menu__nav a {
  display: flex; align-items: baseline; gap: 1rem;
  font: 500 clamp(2.8rem, 14vw, 5rem)/1.12 var(--sans); letter-spacing: -0.05em;
  text-decoration: none; border-bottom: 1px solid var(--line); padding: .25rem 0;
}
.menu__no { font: 400 .78rem var(--mono); color: var(--signal); letter-spacing: 0; }
.menu__foot { display: flex; align-items: center; gap: .6rem; color: var(--ash); }

/* ── 6. Hero ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; padding-top: var(--head-h);
  background-color: var(--carbon);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 45% at 78% 22%, rgba(255, 79, 31, .26), transparent 70%),
    radial-gradient(45% 55% at 12% 88%, rgba(92, 84, 190, .16), transparent 70%),
    var(--carbon);
}
.hero__bg::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(rgba(10, 10, 11, 0), rgba(10, 10, 11, .8));
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.8s ease; }
.hero__gl.is-on { opacity: 1; }
.hero__in { display: flex; flex-direction: column; padding: clamp(.75rem, 2vw, 1.5rem) 0 clamp(1.25rem, 3vw, 2.25rem); }
.hero__meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.hero__status {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .9rem; padding: .45rem .95rem .45rem .8rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(10, 10, 11, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero__tag { gap: .55em; color: var(--bone-2); }
.hero__x { color: var(--signal); }

.hero__name {
  margin: auto 0; padding: clamp(1.25rem, 4vh, 3rem) 0;
  font-size: clamp(4.4rem, 13.2vw, 15.5rem); font-weight: 500;
  line-height: .8; letter-spacing: -0.055em;
}
.hero__line { display: block; overflow: hidden; padding: .03em .1em .09em 0; margin-bottom: -.09em; }
.hero__line--2 { padding-left: 9vw; }
.hero__word { display: inline-block; }
.hero__word--sans { font-weight: 500; }
.hero__word--serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.025em; font-size: 1.1em; }
.hero__word .ch { display: inline-block; }

.hero__foot {
  display: grid; grid-template-columns: minmax(0, 5fr) auto minmax(0, 5fr);
  align-items: end; gap: 2rem 3rem;
}
.hero__role { font-size: 1.25rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.hero__lede { margin-top: .7rem; color: var(--bone-2); font-size: 1.06rem; line-height: 1.55; max-width: 30em; }
.hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__scroll { flex-direction: column; gap: .8rem; padding-bottom: .4rem; }
.hero__scroll i { display: block; width: 1px; height: 56px; background: linear-gradient(var(--bone), transparent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__stack { position: relative; width: 100%; max-width: 450px; justify-self: end; aspect-ratio: 16 / 11.4; perspective: 1400px; }
.hero__stack-in { position: absolute; inset: 0; transform-style: preserve-3d; }
.win {
  position: absolute; width: 74%; border-radius: 10px; overflow: hidden;
  background: var(--carbon-3); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -22px rgba(0, 0, 0, .85);
  transition: transform .9s var(--ease), box-shadow .4s;
}
.win__bar { display: flex; gap: 5px; padding: 8px 10px; background: #1E1E21; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.win__bar i, .frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3A3A3F; }
.win img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.win__tag {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--signal); color: var(--carbon); font-size: .82rem; font-weight: 500;
  padding: .32rem .75rem; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease);
}
.win:hover .win__tag, .win:focus-visible .win__tag { opacity: 1; transform: none; }
.win:hover, .win:focus-visible { z-index: 5; box-shadow: 0 0 0 1px rgba(255, 79, 31, .5), 0 36px 70px -20px rgba(0, 0, 0, .9); }
.win--1 { left: 0; top: 0; transform: rotate(-4deg); z-index: 1; }
.win--2 { left: 13%; top: 17%; transform: rotate(1deg); z-index: 2; }
.win--3 { right: 0; bottom: 0; transform: rotate(4deg); z-index: 3; }
.win--1:hover { transform: rotate(-4deg) translateY(-10px); }
.win--2:hover { transform: rotate(1deg) translateY(-10px); }
.win--3:hover { transform: rotate(4deg) translateY(-10px); }
/* The three sites fan out once loaded (class added by main.js / motion.js) */
.js .hero__stack:not(.is-in) .win { transform: translate(var(--fx, 0), var(--fy, 0)) rotate(0deg) scale(.96); }
.win--1 { --fx: 13%; --fy: 18%; }
.win--3 { --fx: -13%; --fy: -14%; }
.hero__stack.is-in .win--1 { transition-delay: .05s; }
.hero__stack.is-in .win--3 { transition-delay: .15s; }

/* ── 7. Marquee ── */
.marquee {
  position: relative; overflow: hidden; background: var(--carbon);
  padding: clamp(2.5rem, 6vw, 5rem) 0; border-block: 1px solid var(--line);
}
.marquee__row { display: flex; white-space: nowrap; }
.marquee__row + .marquee__row { margin-top: .4rem; }
.marquee__track {
  display: flex; align-items: center; flex: none;
  gap: clamp(1.25rem, 3vw, 3rem); padding-right: clamp(1.25rem, 3vw, 3rem);
  animation: marquee 48s linear infinite; will-change: transform;
}
.marquee__row--alt .marquee__track { animation-direction: reverse; animation-duration: 56s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__track span { font-size: clamp(2.6rem, 7.2vw, 7rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.05em; }
.marquee__track b { color: var(--signal); font-weight: 400; font-size: clamp(1.5rem, 3.6vw, 3.2rem); }
.marquee__track em {
  font: italic 400 clamp(2.2rem, 5.6vw, 5.2rem)/1.1 var(--serif); letter-spacing: -0.015em;
  color: transparent; -webkit-text-stroke: 1px var(--ash);
}
.marquee__row--alt b { color: var(--ash); font-size: clamp(1.5rem, 3vw, 2.6rem); }

/* ── 8. Work intro + case index ── */
.work-intro { background-color: var(--carbon); padding: var(--section) 0 clamp(4rem, 8vw, 7rem); }
.work-intro__grid, .offer__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 4rem; align-items: end;
}
.case-index { margin-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line-2); }
.case-index a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto 2.5rem; align-items: center; gap: 1.5rem;
  padding: clamp(1.1rem, 2.3vw, 2rem) 0; border-bottom: 1px solid var(--line-2);
  text-decoration: none; transition: color .5s var(--ease);
}
.case-index a::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--bone); transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.case-index__no { font: 400 .78rem var(--mono); color: var(--ash); transition: color .5s; }
.case-index__name { font-size: clamp(2rem, 4.8vw, 4.6rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; transition: transform .7s var(--ease); }
.case-index__kind { color: var(--ash); font-size: .95rem; transition: color .5s; }
.case-index__arr { justify-self: end; font-size: 1.5rem; transition: transform .7s var(--ease); }
.case-index a:hover, .case-index a:focus-visible { color: var(--carbon); }
.case-index a:hover::before, .case-index a:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.case-index a:hover .case-index__name { transform: translateX(1.25rem); }
.case-index a:hover .case-index__no, .case-index a:hover .case-index__kind { color: #4A4742; }
.case-index a:hover .case-index__arr { transform: rotate(-45deg); }

/* ── 9. Case studies (each wears its client's colours) ── */
.case {
  --focus: var(--c-accent);
  position: relative;
  background-color: var(--c-bg); color: var(--c-ink);
  font-family: var(--c-body);
  padding: var(--section) 0;
}
.case__meta {
  display: flex; justify-content: space-between; gap: 1rem;
  font: 400 .78rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-muted); border-top: 1px solid var(--c-rule-strong, var(--c-rule)); padding-top: 1.1rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.case__meta span:first-child { color: var(--c-accent); }
.case__head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.case__title {
  font-family: var(--c-display);
  font-size: clamp(3.5rem, 11vw, 10.5rem);
  line-height: .92;
  color: var(--c-title, var(--c-ink));
}
.case__kind { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--c-muted); max-width: 34em; }

.case__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
.case__media { position: relative; padding-right: 9%; }
.frame {
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px var(--c-rule);
}
.frame__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: #F2F3F4; border-bottom: 1px solid #E1E4E7; }
.frame .frame__bar i { background: #CBD0D5; }
.frame__bar span {
  margin-left: 10px; flex: 1; max-width: 220px;
  font: 500 .74rem/1 var(--sans); color: #6B727A;
  background: #fff; border: 1px solid #E1E4E7; border-radius: 999px; padding: .35rem .7rem;
}
.frame__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: zoom-in; }
.frame__view img { width: 100%; transform: translateY(0); transition: transform var(--scroll-dur, 6s) cubic-bezier(.45, .05, .4, 1); will-change: transform; }
.frame.is-scrolling .frame__view img { transform: translateY(var(--scroll-to, 0)); }

.phone {
  position: absolute; right: 0; bottom: -2.5rem; width: 24%;
  border-radius: 22px; padding: 6px; background: #121212;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img { border-radius: 16px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; width: 100%; }

.case__tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.chip-btn {
  display: inline-flex; align-items: center; text-decoration: none;
  background: transparent; color: var(--c-ink);
  border: 1px solid var(--c-rule-strong, var(--c-rule)); border-radius: 999px;
  padding: .6rem 1.1rem; min-height: 42px; font: 500 .92rem/1 var(--sans);
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip-btn:hover, .chip-btn:focus-visible { background: var(--c-accent); color: var(--c-on-accent, var(--c-bg)); border-color: var(--c-accent); }

.case__body { font-size: 1.05rem; }
.case__body > p { font-size: 1.18rem; line-height: 1.6; max-width: 32em; }
.case__h { font: 400 .76rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin: 2.25rem 0 .9rem; color: var(--c-muted); }
.ticks li { position: relative; padding: .6rem 0 .6rem 1.5rem; border-top: 1px solid var(--c-rule); }
.ticks li:last-child { border-bottom: 1px solid var(--c-rule); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.12rem;
  width: 7px; height: 7px; background: var(--c-accent); transform: rotate(45deg);
}
.facts { margin-top: 2.25rem; display: grid; gap: .9rem; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.facts dt { color: var(--c-muted); font-size: .95rem; }
.facts dd { font-size: .98rem; }

.details { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(5rem, 9vw, 8rem); align-items: start; }
.details__img { overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px var(--c-rule); }
.details img { width: 100%; }
.details figcaption { margin-top: .85rem; color: var(--c-muted); font-size: .95rem; }

/* Guru Vibez — gold on lamplit black */
.case--guru {
  --c-bg: #0F0C09; --c-ink: #EAE0CC; --c-muted: #A99C86; --c-accent: #C9A35B; --c-title: #D8B56E;
  --c-rule: rgba(201, 163, 91, .24); --c-rule-strong: rgba(201, 163, 91, .55);
  --c-display: "Cormorant Garamond", Georgia, serif; --c-body: "Raleway", system-ui, sans-serif;
  background-image: radial-gradient(80% 60% at 85% 0%, rgba(201, 163, 91, .10), transparent 70%);
}
.case--guru .case__title { font-weight: 400; letter-spacing: -0.01em; }

/* Vertical Four — bronze, sand and cream */
.case--v4 {
  --c-bg: #35271E; --c-ink: #F5EEE2; --c-muted: #CDBBA4; --c-accent: #C59D66; --c-title: #F5EEE2;
  --c-rule: rgba(197, 157, 102, .3); --c-rule-strong: rgba(197, 157, 102, .6);
  --c-display: "EB Garamond", Georgia, serif; --c-body: "Hanken Grotesk", system-ui, sans-serif;
}
.case--v4 .case__title { font-weight: 400; letter-spacing: -0.015em; }

/* Wibbbit — black on toxic lime */
.case--wib {
  --c-bg: #C6F21C; --c-ink: #0A0A0A; --c-muted: #2F3A0A; --c-accent: #0A0A0A; --c-on-accent: #C6F21C;
  --c-rule: rgba(10, 10, 10, .22); --c-rule-strong: #0A0A0A;
  --c-display: "Archivo", "Arial Black", sans-serif; --c-body: "Archivo", system-ui, sans-serif;
  --focus: #0A0A0A;
}
.case--wib .case__title { font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(3rem, 11vw, 9.5rem); }
.case--wib .case__body { font-variation-settings: "wdth" 100; }
.case--wib .phone { background: #0A0A0A; }

/* Ace Mall 3D — ivory stone and brass, like the building */
.case--ace {
  --c-bg: #F4F0E8; --c-ink: #1F1B16; --c-muted: #6F675C; --c-accent: #9C7638; --c-title: #1F1B16; --c-on-accent: #fff;
  --c-rule: rgba(31, 27, 22, .14); --c-rule-strong: rgba(31, 27, 22, .45);
  --c-display: "Cormorant Garamond", Georgia, serif; --c-body: "Hanken Grotesk", system-ui, sans-serif;
}
.case--ace .case__title { font-weight: 500; letter-spacing: -0.015em; }
.frame__view--live { cursor: default; }
.frame__view--live img { height: 100%; object-fit: cover; }
.frame__view--live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #F4F0E8; }
.live__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #1F1B16; color: #fff; border: 0; border-radius: 999px; padding: .95rem 1.5rem;
  font: 500 1rem/1 var(--sans); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); transition: transform .4s var(--ease), background-color .3s;
}
.live__play span { color: #D9B878; margin-right: .35rem; }
.live__play:hover { transform: translate(-50%, -50%) scale(1.05); background: #9C7638; }
.frame--live.is-live .live__play, .frame--live.is-live img { display: none; }
.case__media:has(.frame--live.is-live) .phone { display: none; }
.case__media:has(.frame--live.is-live) { padding-right: 0; }

/* ── 10. In numbers (figures from the case studies) ── */
.numbers { background-color: var(--carbon); padding: var(--section) 0 calc(var(--section) * .5); }
.numbers .sec-head { margin-bottom: 0; border-top: 0; padding-top: 0; }
.numbers__grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.numbers__grid li { padding: 1.75rem 1.5rem 0; border-left: 1px solid var(--line); }
.numbers__grid li:first-child { border-left: 0; padding-left: 0; }
.numbers__n { display: flex; align-items: baseline; font-size: clamp(3.2rem, 6.2vw, 6.6rem); font-weight: 500; line-height: .9; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.numbers__pre { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--signal); font-size: .62em; margin-right: .06em; }
.numbers__t { margin-top: 1rem; color: var(--ash); max-width: 17em; font-size: .98rem; line-height: 1.45; }

/* ── 11. Services + process ── */
.offer { background-color: var(--carbon); padding: calc(var(--section) * .7) 0 var(--section); }
.offer__list { margin-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line-2); }
.offer__list li {
  position: relative;
  display: grid; grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 6fr); gap: .75rem 2rem; align-items: baseline;
  padding: clamp(1.4rem, 2.8vw, 2.4rem) 0; border-bottom: 1px solid var(--line-2);
}
.offer__list li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.offer__list li:hover::after { transform: scaleX(1); }
.offer__no { font: 400 .78rem var(--mono); color: var(--signal); }
.offer__list h3 { font-size: clamp(1.7rem, 3.4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.045em; transition: transform .7s var(--ease); }
.offer__list li:hover h3 { transform: translateX(.8rem); }
.offer__list p { color: var(--ash); max-width: 34em; font-size: 1.05rem; }

.process { margin-top: var(--section); }
.process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.steps { display: grid; gap: 1.25rem; }
.steps li {
  position: sticky; top: calc(var(--head-h) + 1.25rem + var(--i, 0) * 1.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; align-items: end;
  min-height: clamp(250px, 44vh, 430px); padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: 22px; background: var(--carbon-2); border: 1px solid var(--line);
  transform-origin: 50% 0;
}
.steps li:nth-child(2) { background: #141416; }
.steps li:nth-child(3) { background: #18181b; }
.steps li:last-child { background: var(--signal); color: var(--carbon); border-color: transparent; }
.steps__no { align-self: start; font-size: clamp(4.5rem, 11vw, 10rem); font-weight: 500; line-height: .8; letter-spacing: -0.065em; color: var(--signal); }
.steps li:last-child .steps__no { color: var(--carbon); }
.steps h3 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.05; letter-spacing: -0.04em; margin-bottom: .6rem; }
.steps p { color: var(--ash); font-size: 1.08rem; max-width: 24em; }
.steps li:last-child p { color: rgba(10, 10, 11, .75); }

/* ── 12. About ── */
.about { background-color: var(--carbon); padding: var(--section) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.about__photo { position: sticky; top: calc(var(--head-h) + 2rem); perspective: 1100px; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.about__card {
  position: relative; border-radius: 22px; padding: 1px;
  background: conic-gradient(from var(--spin), var(--signal), rgba(255, 79, 31, 0) 28%, rgba(236, 232, 225, .15) 50%, rgba(255, 79, 31, 0) 72%, var(--signal));
  animation: spin 9s linear infinite;
}
@keyframes spin { to { --spin: 360deg; } }
.about__card img, .monogram { width: 100%; aspect-ratio: 4 / 5; border-radius: 21px; object-fit: cover; }
.monogram {
  display: grid; place-items: center;
  background: radial-gradient(80% 60% at 70% 18%, rgba(255, 79, 31, .28), transparent 70%), var(--carbon-2);
  font: italic 400 clamp(6rem, 15vw, 13rem)/1 var(--serif); letter-spacing: -0.04em; color: var(--bone);
}
.about__cap { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.2rem; justify-content: space-between; color: var(--bone-2); }
.about__bio { margin: 2rem 0 3.25rem; display: grid; gap: 1.25rem; max-width: 36em; }
.about__bio p { color: var(--bone-2); font-size: 1.1rem; }
.about__bio p:first-child { font-size: clamp(1.45rem, 2.4vw, 2.2rem); line-height: 1.24; letter-spacing: -0.03em; color: var(--bone); }
.cv { margin-bottom: 2.5rem; }
.cv__list li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line-2); }
.cv__list li:last-child { border-bottom: 1px solid var(--line-2); }
.cv__what { font-weight: 500; }
.cv__where { color: var(--ash); grid-column: 1; }
.cv__when { color: var(--ash); grid-column: 2; grid-row: 1; font: 400 .85rem/1.6 var(--mono); white-space: nowrap; }
.cv__note { grid-column: 1 / -1; color: var(--ash); font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  font: 400 .84rem/1 var(--mono); border: 1px solid var(--line-2); border-radius: 999px;
  padding: .55rem .95rem; transition: border-color .3s, color .3s;
}
.tags li:hover { border-color: var(--signal); color: var(--signal); }

/* ── 13. Contact (signal red finale) ── */
.contact {
  --focus: var(--carbon);
  background-color: var(--signal); color: var(--carbon);
  padding: var(--section) 0 clamp(4rem, 8vw, 7rem);
}
.contact .sec-head { border-color: rgba(10, 10, 11, .3); }
.contact .label { color: rgba(10, 10, 11, .72); gap: .6em; }
.contact .label__no { color: var(--carbon); }
.contact ::selection { background: var(--carbon); color: var(--signal); }
.contact__title {
  font-size: clamp(3.6rem, 11.6vw, 12rem); font-weight: 500;
  line-height: .86; letter-spacing: -0.058em; max-width: 13ch;
}
.contact__row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem 4rem; align-items: end; margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.contact__lede { font-size: clamp(1.15rem, 1.5vw, 1.35rem); max-width: 26em; }
.contact__ways { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 1rem; }
.contact__big {
  flex-basis: 100%; text-align: right;
  font-size: clamp(1.6rem, 4.2vw, 3.6rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.04em;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; word-break: break-word;
}
.contact__big:hover { text-decoration-thickness: 4px; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 3rem; }
.socials a { color: var(--carbon); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.socials a:hover { border-bottom-width: 2px; }

/* ── 14. Footer ── */
.foot { position: relative; background-color: var(--carbon); color: var(--ash); padding: clamp(3rem, 6vw, 5rem) 0 1.5rem; overflow: hidden; }
.foot__mark { overflow: hidden; line-height: .8; padding-bottom: .05em; white-space: nowrap; }
.foot__mark-in {
  display: inline-block; font-size: 12.4vw; font-weight: 500; letter-spacing: -0.06em;
  color: var(--bone);
}
.foot__in {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 2rem;
  margin-top: clamp(1.75rem, 4vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: .9rem;
}
.foot__perf { font: 400 .78rem var(--mono); letter-spacing: .02em; }
.foot__perf::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--live); margin-right: .55rem; vertical-align: middle; }
.foot__top { text-decoration: none; color: var(--bone); }

/* ── 15. Full-page viewer ── */
.viewer {
  width: min(100vw - 24px, 1240px); height: min(100dvh - 24px, 960px); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 16px; background: #121214; color: var(--bone);
  overflow: hidden; display: none;
  box-shadow: 0 0 0 1px var(--line), 0 50px 120px -40px rgba(0, 0, 0, .9);
}
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(6, 6, 7, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer__bar { display: flex; align-items: center; gap: 1rem; padding: .75rem .75rem .75rem 1.25rem; border-bottom: 1px solid var(--line); }
.viewer__title { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.02em; margin-right: auto; }
.viewer__switch { display: flex; background: #1F1F23; border-radius: 999px; padding: 3px; }
.viewer__switch button { background: none; border: 0; padding: .45rem .95rem; border-radius: 999px; color: var(--ash); font-weight: 500; font-size: .92rem; }
.viewer__switch button[aria-pressed="true"] { background: var(--bone); color: var(--carbon); }
.viewer__close { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: .45rem 1rem; font-weight: 500; font-size: .92rem; transition: background-color .3s, color .3s; }
.viewer__close:hover { background: var(--bone); color: var(--carbon); }
.viewer__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(.75rem, 2vw, 1.5rem); }
.viewer__img { margin-inline: auto; width: 100%; border-radius: 6px; }
.viewer__img.is-mobile { max-width: 390px; border-radius: 18px; }

/* ── 16. Responsive ── */
@media (max-width: 1100px) {
  .work-intro__grid, .offer__grid, .case__grid, .about__grid, .contact__row { grid-template-columns: 1fr; }
  .case__media { margin-bottom: 1rem; }
  .about__photo { position: relative; top: 0; max-width: 360px; }
  .contact__ways { justify-content: flex-start; }
  .contact__big { text-align: left; }
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers__grid li:nth-child(3) { border-left: 0; padding-left: 0; }
  .numbers__grid li:nth-child(n+3) { margin-top: 2rem; border-top: 1px solid var(--line); }
  .top__now { display: none; }
}
@media (max-width: 820px) {
  :root { --head-h: 64px; }
  .nav, .top__cta { display: none; }
  .top__menu { display: inline-flex; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .hero__name { font-size: clamp(4rem, 22vw, 9rem); padding: 2.5rem 0 2rem; }
  .hero__line--2 { padding-left: 7vw; }
  .hero__stack { justify-self: stretch; max-width: none; margin-top: 1.5rem; }
  .hero__tag { display: none; }
  .case-index a { grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem; gap: .25rem 1rem; }
  .case-index__kind { grid-column: 2; grid-row: 2; font-size: .9rem; }
  .case-index__arr { grid-column: 3; grid-row: 1 / span 2; font-size: 1.2rem; }
  .offer__list li { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .offer__list p { grid-column: 2; }
  .steps li { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; min-height: 0; }
  .steps__no { font-size: 4.5rem; }
}
@media (max-width: 600px) {
  .case__media { padding-right: 0; }
  .phone { width: 30%; right: -4px; bottom: 3.6rem; border-radius: 16px; padding: 4px; }
  .phone img { border-radius: 12px; }
  .case__tools { padding-right: 34%; }
  .details { grid-template-columns: 1fr; margin-top: 4rem; }
  .facts div { grid-template-columns: 1fr; gap: .15rem; }
  .win__tag { display: none; }
  .numbers__grid { grid-template-columns: 1fr; }
  .numbers__grid li { border-left: 0; padding-left: 0; }
  .numbers__grid li + li { margin-top: 1.75rem; border-top: 1px solid var(--line); }
  .numbers__grid li:nth-child(3) { margin-top: 1.75rem; }
  .contact__title { font-size: clamp(3.2rem, 15vw, 5rem); }
  .btn--xl { width: 100%; }
  .foot__in { flex-direction: column; align-items: flex-start; }
  .viewer { width: 100vw; height: 100dvh; border-radius: 0; }
  .hero__status { font-size: .82rem; }
}

/* ── 17. Motion states (set by js/motion.js) ── */
.pre [data-intro] { opacity: 0; animation: intro-failsafe .6s 4s forwards; }
@keyframes intro-failsafe { to { opacity: 1; } }
.motion .marquee__track { animation: none; }
html.has-lenis { scroll-behavior: auto !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
[data-lenis-prevent] { overscroll-behavior: contain; }
/* Background morph: sections go see-through and one fixed layer changes colour */
.morph [data-bg] { background-color: transparent !important; }

/* ── 18. Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}
[tabindex="-1"]:focus { outline: none; }
