/* ============================================================
   hassanbaiga.com — soft palette, motion-first redesign
   Light (paper + coral) by default, soft charcoal dark mode.
   ============================================================ */

:root {
  --bg: #f3efe7;
  --bg-2: #ebe6da;
  --surface: #fbf9f4;
  --ink: #17150f;
  --muted: #5d584c;
  --line: rgba(23, 21, 15, 0.14);
  --line-soft: rgba(23, 21, 15, 0.07);
  --stroke: rgba(23, 21, 15, 0.3);
  --accent: #ff5a36;
  --accent-text: #c4351a;
  --on-accent: #17150f;
  --blob-1: rgba(255, 90, 54, 0.22);
  --blob-2: rgba(255, 190, 110, 0.32);
  --shadow: 0 22px 50px -28px rgba(23, 21, 15, 0.4);
  --radius: 20px;
  --ease: cubic-bezier(0.2, 1, 0.3, 1);
  --header-h: 72px;
  --font-display: "Inter Tight", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #14151a;
  --bg-2: #1a1c22;
  --surface: #1e2027;
  --ink: #ece8df;
  --muted: #a9a69c;
  --line: rgba(236, 232, 223, 0.14);
  --line-soft: rgba(236, 232, 223, 0.07);
  --stroke: rgba(236, 232, 223, 0.3);
  --accent: #ff7a59;
  --accent-text: #ff8f72;
  --on-accent: #14151a;
  --blob-1: rgba(255, 122, 89, 0.16);
  --blob-2: rgba(120, 140, 255, 0.14);
  --shadow: 0 22px 50px -28px rgba(0, 0, 0, 0.75);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 600;
  padding: 12px 16px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Hide hero until JS is ready (removed by script, or after 3.5s as a safety net) */
.motion-pending .header-inner,
.motion-pending .hero-copy > *,
.motion-pending .hero-visual { opacity: 0; }

/* ---------------- progress ---------------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 400;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------------- type helpers ---------------- */
.kicker {
  font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted); margin-bottom: 1rem;
}
.h2 {
  font-weight: 500; font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.03em; max-width: 16em;
}
.h2--work { font-size: clamp(1.8rem, 3.6vw, 3.2rem); max-width: none; }
.h-display {
  font-weight: 500; font-size: clamp(2.6rem, 7.4vw, 7rem);
  line-height: 1; letter-spacing: -0.035em; max-width: 12em;
}
.h2 em, .h-display em, .hero-title em, .band-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.07em; color: var(--accent-text);
}

/* split-text masks (built by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.14em 0; margin: 0 -0.08em -0.14em 0; }
.wi { display: inline-block; will-change: transform; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 1em 1.6em; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn i { font-style: normal; display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover i { transform: translate(3px, -3px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--sm { padding: 0.75em 1.2em; font-size: 0.72rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ---------------- header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300; height: var(--header-h);
  transition: translate 0.5s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; background: var(--bg); opacity: 0;
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: opacity 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled::before { opacity: 0.88; border-bottom-color: var(--line); }
.site-header.is-hidden { translate: 0 -100%; }

.header-inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--ink); border-radius: 50%;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
}
.brand-name { font-weight: 600; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav a {
  position: relative; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  padding: 8px 0; transition: color 0.3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.menu-toggle {
  display: none; position: relative; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%;
}
.menu-toggle span {
  position: absolute; left: 13px; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------------- mobile menu ---------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 250; background: var(--bg);
  padding: calc(var(--header-h) + 24px) clamp(20px, 5vw, 56px) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}
.mobile-menu.is-open { visibility: visible; clip-path: inset(0); transition-delay: 0s; }
.mobile-menu nav a {
  display: block; padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 500; letter-spacing: -0.03em;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; transition-delay: calc(0.15s + var(--i) * 0.06s); }
.mm-foot { font-size: 0.78rem; color: var(--muted); }

/* ---------------- hero ---------------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + clamp(24px, 5vw, 64px)) 0 clamp(48px, 6vw, 80px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; width: 48vw; height: 48vw; max-width: 720px; max-height: 720px; }
.b1 { top: -12%; left: -10%; background: radial-gradient(circle, var(--blob-1) 0%, transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.b2 { bottom: -18%; right: -12%; background: radial-gradient(circle, var(--blob-2) 0%, transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vw, -5vh) scale(1.1); } }

.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.4rem;
  padding: 0.5em 1em; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.hero-kicker {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.8rem); color: var(--accent-text); margin-bottom: 0.4rem;
}
.hero-title {
  font-weight: 500; font-size: clamp(2.5rem, 6.2vw, 6rem);
  line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 1.6rem; max-width: 12em;
}
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.hero-visual { position: relative; justify-self: end; width: min(100%, 480px); }
.portrait {
  position: relative; margin: 0; aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
}
.p-par { position: absolute; left: 0; right: 0; top: -10%; height: 120%; }
.p-par img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 46%; filter: saturate(0.95) contrast(1.02); }
.portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 12, 0.5));
}
.wordmark { position: absolute; right: 16px; bottom: 16px; width: min(32%, 140px); z-index: 2; }

.badge { position: absolute; left: -12%; bottom: 8%; width: clamp(96px, 11vw, 132px); aspect-ratio: 1; z-index: 3; }
.badge .b-bg { fill: var(--accent); }
.badge .b-text { fill: var(--on-accent); font-family: var(--font-mono); font-size: 8.6px; text-transform: uppercase; }
.badge .b-arrow { fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.b-spin { transform-box: view-box; transform-origin: 60px 60px; animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  position: absolute; z-index: 3; padding: 0.65em 1.1em; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip--1 { top: 8%; right: -6%; }
.chip--2 { bottom: 24%; right: -9%; animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -10px; } }

.scroll-cue {
  position: absolute; left: clamp(20px, 5vw, 56px); bottom: 24px; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted);
}
.scroll-cue i { position: relative; width: 56px; height: 1px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: slide 2s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------------- marquee ---------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(14px, 2vw, 26px); user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group span {
  display: flex; align-items: center; white-space: nowrap; padding-right: clamp(24px, 4vw, 56px);
  font-size: clamp(1.8rem, 5vw, 4.2rem); font-weight: 500; letter-spacing: -0.03em;
}
.marquee-group span::after {
  content: ""; width: 0.28em; height: 0.28em; border-radius: 50%; background: var(--accent);
  margin-left: clamp(24px, 4vw, 56px);
}
.marquee--outline .marquee-group span { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.marquee--outline .marquee-track { animation-direction: reverse; }
.js-marquee .marquee-track { animation: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- statement ---------------- */
.statement { padding-block: clamp(80px, 12vw, 180px); }
.statement-text {
  font-size: clamp(1.7rem, 4.2vw, 3.8rem); line-height: 1.12; letter-spacing: -0.03em;
  font-weight: 500; max-width: 22em;
}

/* ---------------- sections ---------------- */
.section { padding-block: clamp(80px, 12vw, 180px); }
.section-head { margin-bottom: clamp(36px, 6vw, 80px); }

/* ---------------- work ---------------- */
.work-pin {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; padding-block: calc(var(--header-h) + 8px) 32px;
}
.work-pinned .work-pin { height: 100vh; overflow: hidden; }

.work-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(18px, 3vh, 36px); }
.work-top .kicker { margin-bottom: 0.6rem; }
.work-counter { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 0.8rem; color: var(--muted); }
.work-counter b { color: var(--ink); font-weight: 700; }
.work-bar { position: relative; display: block; width: clamp(120px, 14vw, 200px); height: 2px; background: var(--line); }
.work-bar b { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.work-viewport { overflow-x: auto; scrollbar-width: thin; }
.work-pinned .work-viewport { overflow: visible; }
.work-track { display: flex; width: max-content; gap: clamp(20px, 2.4vw, 40px); padding-inline: clamp(20px, 5vw, 56px); }

.wcard { flex: 0 0 auto; width: min(68vw, 980px); height: clamp(340px, 60vh, 620px); display: flex; flex-direction: column; gap: 18px; }
.frame {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.frame-bar > i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar > i:first-child { background: var(--accent); }
.frame-url {
  margin-left: 10px; flex: 1; max-width: 320px; padding: 4px 12px; border-radius: 999px;
  background: var(--bg); font-size: 0.7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame-body { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--bg-2); }
.frame-body img { position: absolute; top: 0; left: -7%; width: 114%; height: 100%; object-fit: cover; object-position: top center; }

.wcard-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.wcard-meta { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-text); margin-bottom: 6px; }
.wcard-title { font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.wcard-desc { color: var(--muted); max-width: 30em; margin-top: 6px; font-size: 0.98rem; }
.wcard-stack { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.wcard-link {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 0.9em 1.3em;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.wcard-link i { font-style: normal; transition: transform 0.4s var(--ease); }
.wcard-link:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.wcard-link:hover i { transform: translate(3px, -3px); }

/* ---------------- parallax band (stock-workspace.jpg) ---------------- */
.band { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding-block: clamp(100px, 16vw, 240px); }
.band-bg {
  position: absolute; left: 0; right: 0; top: -15%; height: 130%; z-index: -2;
  background:
    url("assets/img/stock-workspace.jpeg") 60% center / cover no-repeat,
    linear-gradient(135deg, #2b2f3a, #14151a 60%, #3a2a24);
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14, 14, 18, 0.78) 0%, rgba(14, 14, 18, 0.5) 55%, rgba(14, 14, 18, 0.22) 100%);
}
.band .kicker { color: rgba(255, 255, 255, 0.78); }
.band-title { font-weight: 500; font-size: clamp(2rem, 5.4vw, 5rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 16em; margin-bottom: 2.2rem; }
.band-title em { color: #ffb39e; }
.band .btn--primary:hover { background: #fff; border-color: #fff; color: #14151a; }

/* ---------------- services ---------------- */
.rows { border-bottom: 1px solid var(--line); }
.row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 4rem 1.1fr 1.5fr auto; gap: clamp(12px, 2.4vw, 32px); align-items: center;
  padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.row::before {
  content: ""; position: absolute; inset: 0 -20px; z-index: -1; border-radius: 14px;
  background: var(--accent); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease);
}
.row:hover { padding-inline: 12px; }
.row:hover::before { transform: scaleY(1); }
.row:hover .row-n, .row:hover .row-title, .row:hover .row-desc, .row:hover .row-tags, .row:hover .row-arrow { color: var(--on-accent); }
.row-n { color: var(--accent-text); font-size: 0.8rem; font-weight: 700; transition: color 0.4s var(--ease); }
.row-title { font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; transition: color 0.4s var(--ease); }
.row-desc { color: var(--muted); max-width: 32em; transition: color 0.4s var(--ease); }
.row-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--muted); transition: color 0.4s var(--ease); }
.row-tags li { padding: 0.35em 0.9em; border: 1px solid currentColor; border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.row-arrow { font-style: normal; font-size: 1.6rem; transition: transform 0.4s var(--ease), color 0.4s var(--ease); }
.row:hover .row-arrow { transform: translate(4px, -4px); }

/* ---------------- process ---------------- */
.process-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.process-art {
  position: relative; margin: clamp(20px, 3vw, 40px) 0 0; width: min(100%, 340px);
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  box-shadow: var(--shadow); rotate: -2deg;
}
.process-art img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; object-fit: cover; }

.steps { position: relative; padding-left: 48px; }
.steps-line { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; }
.step { position: relative; padding-bottom: clamp(40px, 7vw, 96px); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -45px; top: 0.4em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.step.is-active::before { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.step-n { display: block; color: var(--accent-text); font-size: 0.78rem; font-weight: 700; margin-bottom: 10px; }
.step h3 { font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 28em; }

/* ---------------- studios ---------------- */
.studios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; }
.studio {
  position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; padding: clamp(18px, 2.4vw, 32px); color: #fff;
}
.studio:nth-child(2) { margin-top: clamp(32px, 8vw, 120px); }
.studio-img { position: absolute; inset: -8%; z-index: -2; background-size: cover; background-position: center; background-repeat: no-repeat; }
.studio--uk .studio-img { background-image: url("assets/img/stock-uk.jpeg"), linear-gradient(160deg, #2d3446, #14151a); }
.studio--pk .studio-img { background-image: url("assets/img/stock-islamabad.jpeg"), linear-gradient(160deg, #41362c, #14151a); }
.studio::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, rgba(10, 10, 12, 0.75)); }
.studio-tag { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.8); margin-bottom: 6px; }
.studio h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.studio figcaption p:last-child { color: rgba(255, 255, 255, 0.85); margin-top: 6px; }

/* ---------------- about ---------------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.about-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; filter: saturate(0.92); }
.about-text .h2 { margin-bottom: 1.6rem; }
.about-text .lead { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 1.2rem; }
.about-text p { color: var(--muted); max-width: 36em; margin-bottom: 1rem; }
.about-text .lead { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 2rem; padding-top: 24px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dd { font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; color: var(--accent-text); }
.stats dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }

.define {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start;
  margin-top: clamp(48px, 8vw, 112px); padding: clamp(24px, 4vw, 56px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--surface);
}
.define-word { font-family: var(--font-serif); font-style: italic; font-size: clamp(3.4rem, 8vw, 7rem); line-height: 1; letter-spacing: -0.02em; }
.define-ipa { color: var(--muted); font-size: 0.8rem; margin-top: 10px; }
.define-ipa em { font-style: italic; }
.define ol { list-style: none; counter-reset: def; display: grid; gap: 14px; }
.define li { counter-increment: def; display: flex; gap: 12px; color: var(--muted); }
.define li::before { content: counter(def) "."; font-family: var(--font-mono); color: var(--accent-text); font-size: 0.82rem; padding-top: 0.25em; }
.define-syn { margin-top: 20px; font-size: 0.8rem; }

/* ---------------- journey ---------------- */
.tl { position: relative; padding-left: clamp(28px, 4vw, 56px); }
.tl-line { position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.tl-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; }
.tl-item {
  position: relative; display: grid; grid-template-columns: clamp(5rem, 12vw, 10rem) 1fr;
  gap: clamp(12px, 3vw, 40px); align-items: start; padding-bottom: clamp(36px, 6vw, 72px);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-1 * clamp(28px, 4vw, 56px)); top: 0.9rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent);
}
.tl-year { font-family: var(--font-serif); font-size: clamp(2.8rem, 6vw, 5rem); line-height: 0.9; color: var(--accent-text); }
.tl-item h3 { font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.tl-item p { color: var(--muted); max-width: 34em; }

/* ---------------- follow ---------------- */
.follow { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }
.follow-card {
  display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(20px, 4vw, 56px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: var(--surface); box-shadow: var(--shadow);
}
.follow-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; rotate: -3deg; transition: rotate 0.6s var(--ease); }
.follow-card:hover .follow-img { rotate: 0deg; }
.follow-img img { width: 100%; height: 100%; object-fit: cover; }
.follow-card .h2 { font-size: clamp(1.8rem, 3.8vw, 3.4rem); }
.follow-note { color: var(--muted); max-width: 30em; margin-top: 1rem; }
.follow-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ---------------- contact ---------------- */
.section--contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }

.contact-links { display: flex; flex-direction: column; }
.clink {
  display: grid; grid-template-columns: 7.5rem 1fr auto; align-items: center; gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--line);
  transition: padding 0.5s var(--ease), color 0.4s var(--ease);
}
.clink:last-of-type { border-bottom: 1px solid var(--line); }
.clink span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.clink strong { font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.3rem); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.clink i { font-style: normal; transition: transform 0.4s var(--ease); }
.clink:hover { padding-left: 12px; color: var(--accent-text); }
.clink:hover i { transform: translate(4px, -4px); }
.contact-hint { margin-top: 20px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); line-height: 1.7; }

.cform { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--surface); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.cform input[type="text"], .cform input[type="email"], .cform select, .cform textarea {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-family: var(--font-display); font-size: 1rem; line-height: 1.4;
  transition: border-color 0.3s var(--ease);
}
.cform textarea { resize: vertical; min-height: 140px; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--muted); opacity: 0.6; }
.cform select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
}
.cform select option { background: var(--surface); color: var(--ink); }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--accent-text); }
.cform [aria-invalid="true"] { border-color: #d64545; }

.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-status { font-size: 0.76rem; letter-spacing: 0.06em; color: var(--muted); }
.form-status.is-ok { color: var(--accent-text); }
.form-status.is-err { color: #d64545; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding-bottom: 28px; overflow: hidden; }
.foot-big {
  padding-block: clamp(16px, 3vw, 40px); text-align: center; white-space: nowrap;
  font-size: clamp(4rem, 18vw, 15rem); font-weight: 500; line-height: 1.25;
  color: transparent; -webkit-text-stroke: 1.2px var(--stroke);
}
.foot-row {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.foot-row a:hover { color: var(--accent-text); }

/* ---------------- cursor ---------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 500; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.5px solid var(--ink); border-radius: 50%; pointer-events: none; opacity: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cursor.is-on { opacity: 0.55; }
.cursor.is-hover { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: var(--accent); border-color: transparent; opacity: 0.4; }

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: start; width: min(100%, 420px); }
  .badge { left: auto; right: 4%; bottom: -4%; }
  .chip--1 { right: 4%; }
  .chip--2 { right: auto; left: 4%; bottom: 8%; }
  .about-grid, .contact-grid, .define, .follow-card, .process-grid { grid-template-columns: 1fr; }
  .process-sticky { position: static; margin-bottom: 8px; }
  .process-art { width: min(100%, 300px); }
  .about-photo { max-width: 460px; }
  .follow-img { max-width: 360px; }
}

@media (max-width: 899px) {
  .work-pin { min-height: 0; padding-block: clamp(80px, 12vw, 180px); }
  .work-counter { display: none; }
  .work-viewport { overflow: visible; }
  .work-track { flex-direction: column; width: auto; }
  .wcard { width: 100%; height: auto; }
  .frame { flex: none; }
  .frame-body { flex: none; aspect-ratio: 16 / 10; }
  .frame-body img { left: 0; width: 100%; }
}

@media (max-width: 860px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-block; }
  .band::before { background: linear-gradient(180deg, rgba(14, 14, 18, 0.62), rgba(14, 14, 18, 0.78)); }
}

@media (max-width: 720px) {
  .studios-grid { grid-template-columns: 1fr; }
  .studio:nth-child(2) { margin-top: 0; }
  .row { grid-template-columns: 2.4rem 1fr; }
  .row-copy { grid-column: 2; }
  .row-arrow { display: none; }
  .row:hover { padding-inline: 0; }
  .row::before { inset: 0 -8px; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .stats div { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .clink { grid-template-columns: 6rem 1fr auto; }
  .wcard-info { flex-direction: column; }
  .foot-row { flex-direction: column; }
  .scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; }
}

@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Work images: mockups carry their own browser chrome, so no extra frame bar */
.frame-body img.img-center { object-position: center center; }
.frame-body { background: var(--bg-2); }