/* ============================================================
   HASNAIN VISUAL STUDIO — Portfolio 2026
   Design system
   ============================================================ */

:root {
  /* Neutrals — near-black, charcoal, off-white, muted gray */
  --ink:        #07080a;
  --ink-2:      #0b0c0f;
  --char:       #131418;
  --char-2:     #1a1c20;
  --char-3:     #22242a;
  --line:       rgba(255,255,255,0.07);
  --line-2:     rgba(255,255,255,0.13);
  --line-3:     rgba(255,255,255,0.22);
  --paper:      #ecebe6;
  --paper-2:    #d8d6cf;
  --mute:       #8a8b92;
  --mute-2:     #6b6c72;
  --dim:        #4a4b50;

  /* Single electric-blue accent — used very sparingly */
  --accent:     #5e7cff;
  --accent-2:   #7f97ff;

  /* Type */
  --font-display: "Space Grotesk", "Neue Haas Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── Premium studio background system ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    /* top-left corner: rich blue glow */
    radial-gradient(ellipse 1100px 800px at -5% -5%, rgba(28,52,118,0.38) 0%, rgba(20,38,90,0.18) 40%, transparent 70%),
    /* bottom-right corner: deep blue glow */
    radial-gradient(ellipse 1000px 750px at 105% 105%, rgba(22,44,100,0.32) 0%, rgba(18,36,84,0.14) 45%, transparent 70%),
    /* top-right: cool steel-blue reflection */
    radial-gradient(ellipse 700px 550px at 100% 0%, rgba(50,78,148,0.20) 0%, rgba(38,62,124,0.08) 50%, transparent 70%),
    /* bottom-left: faint midnight reflection */
    radial-gradient(ellipse 600px 480px at 0% 100%, rgba(36,58,118,0.18) 0%, transparent 65%),
    /* center top: soft light-blue ambient wash */
    radial-gradient(ellipse 1400px 600px at 50% 0%, rgba(40,62,130,0.10) 0%, transparent 65%),
    /* center body: large deep-blue depth field */
    radial-gradient(ellipse 1800px 1200px at 50% 55%, rgba(30,50,110,0.08) 0%, transparent 70%),
    /* base: graphite — slightly cooler than pure black */
    linear-gradient(168deg, #090c12 0%, #07080c 30%, #080a10 60%, #090c13 100%);
}

body::before {
  /* film grain — studio feel */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.065;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, video { display: block; max-width: 100%; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(54px, 7.4vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--paper);
}

.h-display em {
  font-style: normal;
  font-weight: 300;
  color: var(--mute);
}

.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--paper);
}

.h-card {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.t-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--paper-2);
  font-weight: 400;
}

.t-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
  color: var(--paper-2);
  font-weight: 400;
  max-width: 52ch;
}

.t-cap {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--mute);
}

.t-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.lbl {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lbl::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.lbl.no-bar::before { display: none; }
.lbl.dim { color: var(--mute); }
.lbl.dim::before { background: var(--mute-2); }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.shell {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 56px;
}

.section {
  position: relative;
  padding: 140px 0 160px;
  border-top: 1px solid var(--line);
}

.section:first-of-type { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}

.section-head .right { padding-bottom: 8px; }

/* ============================================================
   TOP CHROME
   ============================================================ */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 56px;
  background: linear-gradient(180deg, rgba(7,8,10,0.85) 0%, rgba(7,8,10,0) 100%);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.topbar.scrolled {
  background: rgba(6, 7, 13, 0.93);
  backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

/* --- Brand lockup: HVS Studio typographic mark (stacked) ----- */
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* keep a stable click/focus area without inflating padding */
  padding: 2px 0;
}
.brand-hvs {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.035em; /* tight, geometric — like the reference */
  color: var(--paper);
  line-height: 0.95;
  text-align: left;
  /* tiny optical inset so the wordmark feels weighted */
  padding-left: 1px;
}
.brand-studio {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.58em;          /* wide tracking spans the HVS width */
  text-transform: uppercase;
  color: var(--paper-2, var(--paper));
  opacity: 0.78;
  /* shift left by half the trailing tracking so the row visually centers under HVS */
  text-indent: 0.29em;
  margin-top: 6px;
  line-height: 1;
}
.brand-rule {
  display: block;
  width: 70px;                     /* ~ wordmark width on desktop */
  height: 1px;
  background: linear-gradient(90deg, rgba(94,124,255,0) 0%, rgba(94,124,255,0.95) 18%, rgba(94,124,255,0.95) 82%, rgba(94,124,255,0) 100%);
  margin-top: 6px;
  transform-origin: center;
  transform: scaleX(0.72);
  opacity: 0.85;
  transition: transform 420ms cubic-bezier(.22,.61,.36,1), opacity 300ms ease;
}
.brand-mark:hover .brand-rule { transform: scaleX(1); opacity: 1; }
.brand-mark:hover .brand-studio { opacity: 1; }

.topnav {
  display: flex;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.topnav a {
  color: inherit;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.topnav a:hover { color: var(--paper); background: var(--char); }
.topnav .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
  margin: 0 2px;
  box-shadow: 0 0 14px rgba(94,124,255,0.55);
}

.topright {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #6fd29a;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 12px rgba(111,210,154,0.6);
  vertical-align: middle;
}

/* ============================================================
   TEXT ROLL (Animation 3)
   ============================================================ */

.tr {
  display: inline-flex;
  overflow: hidden;
  vertical-align: middle;
  line-height: 1;
}
.tr-char {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1em;
  line-height: 1;
}
.tr-char .a, .tr-char .b {
  display: block;
  line-height: 1;
  transition: transform 480ms cubic-bezier(0.7, 0, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.tr-char .b {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}
.tr:hover .tr-char .a,
.tr.active .tr-char .a { transform: translateY(-100%); }
.tr:hover .tr-char .b,
.tr.active .tr-char .b { transform: translateY(0); }
.tr-char.space { width: 0.28em; }

/* ============================================================
   WORD-BY-WORD SCROLL REVEAL (Animation 1)
   ============================================================ */

.wreveal {
  display: block;
}
.wreveal .w {
  display: inline-block;
  color: var(--dim);
  transition: color 320ms ease;
  margin-right: 0.22em;
}
.wreveal .w.on { color: var(--paper); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-3);
  background: var(--char);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { background: var(--char-2); border-color: var(--line-3); }
.btn.primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn.primary:hover { background: #fff; }
.btn.btn-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
.btn .arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
}

/* ============================================================
   CURSOR GLOW
   ============================================================ */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 580px;
  height: 580px;
  margin-left: -290px;
  margin-top: -290px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(
    circle,
    rgba(195, 215, 255, 0.24) 0%,
    rgba(145, 178, 255, 0.15) 22%,
    rgba(90,  135, 248, 0.07) 50%,
    rgba(60,  100, 220, 0.02) 70%,
    transparent 84%
  );
  opacity: 0;
  transition:
    opacity 500ms ease,
    width  550ms cubic-bezier(0.2, 0.8, 0.2, 1),
    height 550ms cubic-bezier(0.2, 0.8, 0.2, 1),
    margin 550ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 550ms ease;
  will-change: transform;
}

.cursor-glow.visible { opacity: 1; }

.cursor-glow.active {
  width: 720px;
  height: 720px;
  margin-left: -360px;
  margin-top: -360px;
  background: radial-gradient(
    circle,
    rgba(225, 238, 255, 0.38) 0%,
    rgba(178, 206, 255, 0.24) 15%,
    rgba(120, 162, 255, 0.13) 38%,
    rgba(80,  125, 240, 0.05) 62%,
    transparent 78%
  );
}

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

/* Dim on light (Services ivory) section — stays pointer-events:none */
.cursor-glow.visible.dim,
.cursor-glow.active.dim {
  opacity: 0.04;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.02);
  color: var(--paper-2);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.pill-btn:hover { color: var(--paper); border-color: var(--line-3); background: var(--char-2); }
.pill-btn.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ============================================================
   HERO (Section 1)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 1000px 700px at 10% 25%, rgba(32,55,115,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 700px 550px at 95% 75%, rgba(28,50,108,0.16) 0%, transparent 65%),
    transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.hero-copy .lbl { margin-bottom: 28px; }

.hero h1 {
  margin: 0 0 28px;
}
.hero h1 .line { display: block; }
.hero h1 .stu {
  font-weight: 400;
  color: var(--paper-2);
  font-style: italic;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.05em;
}

.hero .sub {
  max-width: 46ch;
  margin: 28px 0 18px;
  font-size: clamp(15px, 1.1vw, 19px);
  color: var(--paper-2);
  line-height: 1.55;
}

.hero .supports {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  color: var(--paper-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero .supports .sep { color: var(--mute); }

.hero-footer {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-footer .meta {
  display: flex;
  gap: 24px;
}
.hero-footer .scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
}
.hero-footer .scroll .arrow {
  width: 14px;
  height: 14px;
}

/* Hero image rail — controlled expansion */
.hero-rail {
  display: flex;
  gap: 10px;
  height: 560px;
  width: 100%;
}

.hero-card {
  position: relative;
  flex: 1 1 14px;
  min-width: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 720ms cubic-bezier(0.6, 0, 0.15, 1),
              transform 720ms cubic-bezier(0.6, 0, 0.15, 1);
  background: var(--char);
  box-shadow: 0 24px 48px -32px rgba(0,0,0,0.7);
  will-change: flex-grow;
}

.hero-card img,
.hero-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.6, 0, 0.15, 1),
              filter 700ms;
  filter: saturate(0.92) brightness(0.92);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.hero-card .meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-2);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms ease, transform 360ms ease;
}
.hero-card .meta .num { color: var(--paper); }
.hero-card .meta .tag { color: var(--paper-2); }

.hero-card.expanded { flex-grow: 3.6; }
.hero-card.expanded img,
.hero-card.expanded video { filter: saturate(1.05) brightness(1.0); }
.hero-card.expanded .meta { opacity: 1; transform: translateY(0); }
.hero-card.dim img { filter: saturate(0.7) brightness(0.7); }

/* slight vertical stagger so they don't look like a wall */
.hero-card:nth-child(1) { transform: translateY(0); }
.hero-card:nth-child(2) { transform: translateY(28px); }
.hero-card:nth-child(3) { transform: translateY(-14px); }
.hero-card:nth-child(4) { transform: translateY(36px); }
.hero-card:nth-child(5) { transform: translateY(-8px); }
.hero-card:nth-child(6) { transform: translateY(20px); }
.hero-card:nth-child(7) { transform: translateY(-22px); }

/* Side ornaments — tiny mono coords for editorial feel */
.hero-coord {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}
.hero-coord.tl { top: 96px; right: 56px; text-align: right; }

/* ============================================================
   ABOUT (Section 2)
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--char);
}
.about-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.82) contrast(1.08);
}
.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0.6) 100%);
}
.about-image .stamp {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.about-image .stamp .name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.about-image .stamp .role {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.about-image .corner {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--paper-2);
  z-index: 2;
}

.about-copy h2 {
  margin: 26px 0 36px;
  max-width: 14ch;
}

.about-reveal {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  max-width: 32ch;
  margin-bottom: 56px;
}
.about-reveal .em { font-style: italic; color: var(--mute); font-weight: 300; }

.tags-block {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.tags-block .tlabel {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}
.tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tag {
  background: var(--ink);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-2);
  font-family: var(--font-display);
  font-weight: 500;
  transition: background 0.25s, color 0.25s;
  cursor: default;
  min-height: 64px;
}
.tag:hover { background: var(--char); color: var(--paper); }
.tag .ix {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-right: 4px;
  width: 16px;
}

/* ============================================================
   SELECTED WORK (Section 3)
   ============================================================ */

.work-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.work-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.work-tab .count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  margin-left: 2px;
}
.work-tab:hover { color: var(--paper); }
.work-tab.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.work-tab.active .count { color: var(--mute-2); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Phase 3: Oliver-style parallax grid */
.work-grid-parallax {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 0;
}

.work-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  will-change: transform;
}

/* Staggered image rhythm — controlled alternating vertical offsets */
.work-row .work-cell:nth-child(1) { translate: 0 -8px; }
.work-row .work-cell:nth-child(2) { translate: 0 12px; }
.work-row .work-cell:nth-child(3) { translate: 0 -6px; }
.work-row .work-cell:nth-child(4) { translate: 0 14px; }

.work-cell {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--char);
  aspect-ratio: 4 / 5;
  opacity: 0;
  transform: translateY(12px);
  animation: cellIn 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
.work-cell img,
.work-cell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 500ms;
  filter: saturate(0.95);
}
.work-cell:hover img,
.work-cell:hover video { transform: scale(1.04); filter: saturate(1.05); }
.work-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  opacity: 0.7;
}
.work-cell .info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--paper-2);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.work-cell .info .tt { color: var(--paper); font-family: var(--font-display); letter-spacing: 0; text-transform: none; font-size: 12px; }
.work-cell .info .ix {
  font-family: var(--font-mono);
  color: var(--mute);
  font-size: 10px;
}
.work-cell .play {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--paper);
  font-size: 10px;
  backdrop-filter: blur(6px);
}

@keyframes cellIn {
  to { opacity: 1; transform: translateY(0); }
}

.work-foot {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.work-foot .ix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
}

/* Masonry — used when "View More" expanded */
.work-masonry {
  column-count: 4;
  column-gap: 18px;
}
.work-masonry .work-cell {
  display: block;
  margin: 0 0 18px;
  break-inside: avoid;
  aspect-ratio: auto;
  width: 100%;
}
.work-masonry .work-cell.tall { padding-top: 130%; }
.work-masonry .work-cell.med { padding-top: 100%; }
.work-masonry .work-cell.sq { padding-top: 80%; }

/* Masonry parallax wrappers */
.work-par-wrap {
  will-change: transform;
}
.work-masonry .work-par-wrap {
  break-inside: avoid;
  margin: 0 0 18px;
}
.work-masonry .work-par-wrap .work-cell {
  margin: 0;
}

/* ============================================================
   SERVICES (Section 4)
   ============================================================ */

.services-list {
  border-top: 1px solid var(--line);
}
.svc-row {
  display: grid;
  grid-template-columns: 76px 0.9fr 1.4fr 200px;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.svc-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(94,124,255,0.04) 0%, rgba(94,124,255,0) 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.svc-row:hover::before { opacity: 1; }
.svc-row:hover { padding-left: 8px; }

.svc-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.svc-row:hover .svc-num { color: var(--accent); }

.svc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: -0.018em;
  color: var(--paper);
  line-height: 1.08;
}

.svc-desc {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.58;
  max-width: 46ch;
  font-weight: 400;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.svc-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  font-family: var(--font-mono);
  background: transparent;
  transition: border-color 0.25s, color 0.25s;
}
.svc-row:hover .svc-chip {
  border-color: var(--line-2);
  color: var(--mute);
}

/* ============================================================
   CREATIVE PROOF / PROCESS (Section 5)
   ============================================================ */

.proof-stack {
  position: relative;
  margin-top: 60px;
}

/* Studio glow on proof section */
#proof {
  background:
    radial-gradient(ellipse 800px 600px at 3% 25%, rgba(28,50,112,0.20) 0%, transparent 68%),
    radial-gradient(ellipse 650px 500px at 97% 78%, rgba(32,54,115,0.16) 0%, transparent 65%),
    transparent;
}

.proof-step {
  position: sticky;
  top: 120px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--char-2) 0%, var(--ink-2) 100%);
  padding: 60px 56px;
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 28px;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 32px 64px -32px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
}
.proof-step .sx {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.proof-step .sx .pn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.proof-step .sx .glyph {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--paper);
  font-weight: 500;
}

.proof-step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.proof-step .desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper-2);
  max-width: 42ch;
}

.proof-step .keys {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proof-step .keys span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ============================================================
   CONTACT (Section 6)
   ============================================================ */

.contact {
  padding: 160px 0 80px;
  background:
    radial-gradient(ellipse 900px 650px at 85% 25%, rgba(32,54,118,0.22) 0%, transparent 68%),
    radial-gradient(ellipse 650px 500px at 8% 72%, rgba(36,58,120,0.16) 0%, transparent 65%),
    transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: stretch;
}

.contact-copy { padding: 24px 0; }

.contact-copy .thank {
  margin-bottom: 28px;
}

.contact-copy h2 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--paper);
}
.contact-copy h2 em { font-style: italic; font-weight: 300; color: var(--mute); font-family: "Cormorant Garamond", serif; }

.contact-copy .body {
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper-2);
  margin-bottom: 44px;
}

.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.contact-meta div .k {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
.contact-meta div .v {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--paper);
}

.contact-image {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--char);
  border: 1px solid var(--line-2);
  min-height: 580px;
}
.contact-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.95) brightness(0.85) contrast(1.06);
}
.contact-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
}
.contact-image .stamp {
  position: absolute;
  inset: auto 24px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  color: var(--paper);
}
.contact-image .stamp .l {
  font-family: var(--font-display);
  font-size: 18px;
}
.contact-image .stamp .r {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
  text-align: right;
}
.contact-image .marker {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--paper-2);
  text-transform: uppercase;
  z-index: 2;
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================================
   SECTION TYPOGRAPHY VARIANTS
   ============================================================ */

.h-section em {
  font-style: italic;
  font-weight: 300;
  font-family: "Cormorant Garamond", serif;
  color: var(--mute);
}

.about-identity {
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper-2);
  max-width: 52ch;
  margin: 0 0 48px;
}

/* — "What Drives Me" emotional card — */
.drives-card {
  position: relative;
  max-width: 480px;
  margin: 0 0 52px;
  padding: 32px 36px 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, rgba(255,255,255,0.018) 0%, rgba(255,255,255,0) 100%);
}
.drives-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.55;
}
.drives-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.drives-heading {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.1;
}
.drives-text {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--paper-2);
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .drives-text {
    font-style: normal;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.005em;
  }
}

/* Selected Work — subtle background rhythm */
#work {
  background:
    radial-gradient(ellipse 900px 600px at 88% 18%, rgba(32,54,118,0.20) 0%, transparent 70%),
    radial-gradient(ellipse 700px 500px at 8% 82%, rgba(36,58,118,0.16) 0%, transparent 70%),
    var(--ink-2);
}

/* ============================================================
   IVORY SECTION (Services)
   ============================================================ */

.section.ivory {
  background: var(--paper);
  border-top-color: rgba(0,0,0,0.06);
}
.section.ivory .lbl { color: var(--ink); }
.section.ivory .lbl::before { background: var(--accent); }
.section.ivory .h-section { color: var(--ink); }
.section.ivory .h-section em {
  color: var(--mute-2);
}
.section.ivory .t-sub { color: var(--mute-2); }
.section.ivory .services-list { border-top-color: rgba(0,0,0,0.08); }
.section.ivory .svc-row { border-bottom-color: rgba(0,0,0,0.08); }
.section.ivory .svc-row::before {
  background: linear-gradient(90deg, rgba(94,124,255,0.06) 0%, transparent 60%);
}
.section.ivory .svc-num { color: var(--mute-2); }
.section.ivory .svc-row:hover .svc-num { color: var(--accent); }
.section.ivory .svc-title { color: var(--ink); font-weight: 600; }
.section.ivory .svc-desc { color: var(--mute-2); }
.section.ivory .svc-chip {
  color: var(--mute-2);
  border-color: rgba(0,0,0,0.10);
  background: transparent;
}
.section.ivory .svc-row:hover .svc-chip {
  border-color: rgba(0,0,0,0.18);
  color: var(--ink);
}

/* ============================================================
   PRELOADER — Phase 6: double-stairs cinematic reveal
   ============================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

/* Subtle blue studio glow overlay — sits behind the title */
.preloader-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 500px at 50% 46%, rgba(50, 72, 140, 0.22) 0%, transparent 68%),
    radial-gradient(ellipse 400px 300px at 30% 52%, rgba(40, 62, 130, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 70% 48%, rgba(60, 85, 160, 0.10) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 600ms ease;
}
.preloader.hold .preloader-glow,
.preloader.reveal .preloader-glow { opacity: 1; }

/* Title — enters with fade-up, exits with fade-out */
.preloader-title {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.preloader.hold .preloader-title {
  opacity: 1;
  transform: translateY(0);
}
.preloader.reveal .preloader-title {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.preloader-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 52px);
  letter-spacing: 0.18em;
  color: var(--paper);
  text-transform: uppercase;
}
.preloader-sub {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 24px);
  letter-spacing: 0.08em;
  color: var(--mute);
}

/* Grid of panels — the "double stairs" */
.preloader-panels {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.preloader-panel {
  position: absolute;
  background: var(--ink);
  transition: transform 750ms cubic-bezier(0.76, 0, 0.18, 1);
  will-change: transform;
  /* Subtle blue studio reflection on each panel edge */
  box-shadow: inset 0 0 40px -20px rgba(50, 72, 150, 0.18);
}

/* Reduced motion: instant hide */
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none !important; }
}

/* ============================================================
   HERO ENTRANCE — fade + slide reveals after preloader
   ============================================================ */

.hero-entrance {
  opacity: calc(0 + var(--he-active) * 1);
  transform: translateY(calc((1 - var(--he-active)) * 28px));
  transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--he-delay, 0ms);
}

/* Title line clip-reveal */
.title-reveal-clip {
  display: block;
  overflow: hidden;
}
.title-reveal-inner {
  display: block;
  transform: translateY(calc((1 - var(--tr-active)) * 110%));
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--tr-delay, 0ms);
}

/* Hero footer reworked so the entrance wrapper doesn't break layout */
.hero-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-footer-inner .scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
}

/* ============================================================
   BATCH 2 — SCROLL REVEAL ANIMATIONS
   ============================================================ */

/* --- ClipReveal: overflow-hidden mask reveal --- */
.cr-wrap {
  display: block;
  overflow: hidden;
}
span.cr-wrap { display: inline-block; }
.cr-inner {
  display: block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--cr-delay, 0ms);
}
.cr-wrap.in .cr-inner {
  transform: translateY(0);
  opacity: 1;
}

/* --- MaskReveal: whole-block clip reveal --- */
.mask-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--mr-delay, 0ms);
}
.mask-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* --- StaggerReveal items --- */
.sr-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sr-item.in {
  opacity: 1;
  transform: translateY(0);
}

/* --- ImageReveal: clip + scale + fade --- */
.img-reveal {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: var(--char);
  aspect-ratio: 4 / 5;
}
.img-reveal .img-reveal-inner {
  position: absolute;
  inset: -30px; /* extra room for parallax shift */
  transition: transform 0.1s linear;
  will-change: transform;
}
.img-reveal .img-reveal-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* clip + scale entrance */
.img-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--ink);
  transform-origin: top center;
  transition: transform 1100ms cubic-bezier(0.76, 0, 0.18, 1) 100ms;
  transform: scaleY(1);
}
.img-reveal.in::before {
  transform: scaleY(0);
}
.img-reveal .img-reveal-inner {
  transform-origin: center;
  opacity: 0;
  scale: 1.08;
}
.img-reveal.in .img-reveal-inner {
  opacity: 1;
  scale: 1;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms,
              scale 1400ms cubic-bezier(0.22, 1, 0.36, 1) 100ms;
}

/* Preserve z-index for overlays on the image */
.img-reveal .corner,
.img-reveal .stamp {
  z-index: 4;
}
.img-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

/* Override .about-image when it's now .img-reveal */
.img-reveal.about-image {
  /* .about-image styles are already on .img-reveal via aspect-ratio, border-radius etc */
}
.img-reveal img {
  filter: saturate(0.92) brightness(0.82) contrast(1.08);
}

/* ============================================================
   BOX REVEAL — Skiper-style editorial wipe (Phase 2)
   ============================================================ */

.box-reveal-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.box-reveal-text {
  display: block;
  opacity: 0;
}
.box-reveal-box {
  position: absolute;
  inset: -2px 0;
  background: var(--paper);
  transform: translateX(-106%);
  pointer-events: none;
  will-change: transform;
}
.box-reveal-wrap.in .box-reveal-text {
  animation: br-text 1100ms linear forwards;
  animation-delay: var(--br-delay, 0ms);
}
.box-reveal-wrap.in .box-reveal-box {
  animation: br-box 1100ms cubic-bezier(0.76, 0, 0.18, 1) forwards;
  animation-delay: var(--br-delay, 0ms);
}
@keyframes br-box {
  0%   { transform: translateX(-106%); }
  44%  { transform: translateX(0%); }
  56%  { transform: translateX(0%); }
  100% { transform: translateX(106%); }
}
@keyframes br-text {
  0%, 43%  { opacity: 0; }
  45%, 100% { opacity: 1; }
}

/* ============================================================
   PROOF STEP — inner text reveals on entrance (Phase 2)
   ============================================================ */

.proof-step h3 {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  720ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}
.proof-step.entered h3 {
  opacity: 1;
  transform: translateY(0);
}
.proof-step .desc {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity  620ms cubic-bezier(0.22, 1, 0.36, 1) 250ms,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1) 250ms;
}
.proof-step.entered .desc {
  opacity: 1;
  transform: translateY(0);
}
.proof-step .keys {
  opacity: 0;
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1) 390ms;
}
.proof-step.entered .keys {
  opacity: 1;
}

/* ============================================================
   PHASE 4 — CONTACT IMAGE REVEAL
   ============================================================ */

.ci-reveal {
  clip-path: inset(6% 6% 6% 6%);
  opacity: 0;
  transform: scale(1.04);
  transition:
    clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.ci-reveal.ci-in {
  clip-path: inset(0% 0% 0% 0%);
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   PHASE 4 — FREE SAMPLE OFFER BLOCK
   ============================================================ */

.sample-offer {
  position: relative;
  max-width: 480px;
  margin: 0 0 44px;
  padding: 28px 32px 30px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, rgba(94,124,255,0.035) 0%, rgba(94,124,255,0) 100%);
}
.sample-offer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 36px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.55;
}
.sample-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.sample-heading {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--paper);
  line-height: 1.15;
}
.sample-body {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper-2);
  text-wrap: pretty;
  font-weight: 400;
  letter-spacing: 0.006em;
}
.sample-offer .btn.sample-cta {
  font-size: 11px;
  padding: 13px 22px;
  gap: 12px;
  border-color: rgba(94,124,255,0.35);
  color: var(--accent-2);
  background: rgba(94,124,255,0.06);
}
.sample-offer .btn.sample-cta:hover {
  background: rgba(94,124,255,0.14);
  border-color: rgba(94,124,255,0.5);
  color: var(--paper);
}

/* — Visible, copyable contact details — */
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 44px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.012);
}
.contact-direct .cd-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
}
.contact-direct .cd-k {
  flex: 0 0 92px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.contact-direct .cd-v {
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px dashed var(--line-2);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}
.contact-direct .cd-v:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent);
}
@media (max-width: 480px) {
  .contact-direct { padding: 16px 18px; }
  .contact-direct .cd-row {
    flex-direction: column;
    gap: 2px;
  }
  .contact-direct .cd-k { flex: 0 0 auto; }
}

/* ============================================================
   PHASE 5 — STACKED DECK SCROLL
   Each section sits in a .deck-track > .deck-slide wrapper.
   Increasing z-index lets the next section cover the previous.
   Scroll-driven transforms make the departing section recede
   (scale, opacity, translateY, border-radius) while the
   entering section rises over it — cinematic deck feel.
   ============================================================ */

.deck-track {
  position: relative;
}

.deck-slide {
  position: relative;
  background: var(--ink);
  transform-origin: center center;
}

/* Subtle depth shadow on non-first slides for physical separation */
.deck-track + .deck-track > .deck-slide {
  box-shadow: 0 -6px 40px -6px rgba(0, 0, 0, 0.5);
}

/* Phase 5: disable deck transforms on tablet/mobile + reduced motion */
@media (max-width: 1100px), (prefers-reduced-motion: reduce) {
  .deck-slide {
    transform: none !important;
    opacity: 1 !important;
    border-radius: 0 !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .shell { padding: 0 32px; }
  .topbar { padding: 14px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-rail { height: 380px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-row { grid-template-columns: repeat(2, 1fr); }
  .work-row .work-cell:nth-child(n) { translate: 0 0; }
  .work-row .work-cell:nth-child(even) { translate: 0 4px; }
  .work-masonry { column-count: 2; }
  .proof-step { grid-template-columns: 1fr; gap: 24px; padding: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .tags { grid-template-columns: repeat(2, 1fr); }
  /* Services — stack vertically on tablet/mobile, keep all content visible */
  .svc-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 14px;
    padding: 30px 0;
  }
  .svc-row:hover { padding-left: 0; }
  .svc-num {
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .svc-title {
    font-size: clamp(22px, 4.4vw, 28px);
  }
  .svc-desc {
    display: block;
    max-width: 60ch;
    font-size: 14px;
    line-height: 1.6;
  }
  .svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .hero-footer { padding: 0 32px; }
}

/* — Tablet/mobile (≤768) — compact topbar, stack hero, scroll-snap rail — */
@media (max-width: 768px) {
  /* Topbar: hide nav + right meta, keep brand only */
  .topbar { padding: 14px 24px; }
  .topnav,
  .topright { display: none; }
  .brand-mark { gap: 3px; white-space: nowrap; padding: 0; }
  .brand-hvs { font-size: 21px; }
  .brand-studio { font-size: 8px; letter-spacing: 0.5em; margin-top: 4px; }
  .brand-rule { width: 56px; margin-top: 4px; }

  /* Hero: stack, fit title, dim coords */
  .hero { padding-top: 92px; padding-bottom: 56px; min-height: auto; }
  .hero-coord { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .h-display { font-size: clamp(40px, 11.5vw, 68px); line-height: 0.96; letter-spacing: -0.03em; }
  .hero h1 .stu { font-size: 1em; }
  .hero .sub { font-size: 15px; max-width: 100%; margin: 22px 0 14px; }
  .hero .supports { font-size: 11px; gap: 6px 16px; margin-top: 22px; letter-spacing: 0.16em; }
  .hero-copy .lbl { margin-bottom: 18px; }
  .hero-footer { position: static; padding: 28px 0 0; }

  /* Hero rail → horizontal scroll-snap with readable card widths */
  .hero-rail {
    height: 360px;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 12px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scrollbar-width: none;
  }
  .hero-rail::-webkit-scrollbar { display: none; }
  .hero-card {
    flex: 0 0 72%;
    max-width: 72%;
    scroll-snap-align: start;
    transform: none !important;
  }
  .hero-card .meta { opacity: 1; transform: translateY(0); }

  /* Sections: tighter rhythm */
  .section { padding: 88px 0 96px; border-top: 1px solid var(--line); }
  .section-head { margin-bottom: 32px; }
  .h-section { font-size: clamp(32px, 7.4vw, 52px); }

  /* About */
  .about-copy h2 { margin: 20px 0 28px; }
  .about-reveal { font-size: 18px; margin-bottom: 36px; }
  .drives-card { padding: 24px 22px 26px; }
  .drives-heading { font-size: 24px; }
  .tags { grid-template-columns: repeat(2, 1fr); }
  .tag { padding: 14px 12px; font-size: 11px; min-height: 56px; }

  /* Work: horizontally scrollable tabs, 1-col grid */
  .work-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 12px;
    margin: 28px -24px 24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .work-tabs::-webkit-scrollbar { display: none; }
  .work-tab { flex: 0 0 auto; padding: 8px 14px; font-size: 11px; letter-spacing: 0.1em; }
  .work-grid,
  .work-row { grid-template-columns: 1fr; gap: 14px; }
  .work-row .work-cell:nth-child(n),
  .work-row .work-cell:nth-child(even) { translate: 0 0; }
  .work-masonry { column-count: 1; }
  .work-foot { gap: 16px; }

  /* Proof cards: no sticky stack on mobile (perf + readability) */
  .proof-step {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    padding: 28px 22px;
    gap: 18px;
    margin-bottom: 16px;
  }
  .proof-step h3 { font-size: clamp(22px, 5.4vw, 28px); }
  .proof-step .sx { flex-direction: row; align-items: center; gap: 14px; }
  .proof-step .sx .glyph { width: 48px; height: 48px; font-size: 18px; }
  .proof-stack { margin-top: 28px; }

  /* Contact */
  .contact { padding: 88px 0 56px; }
  .contact-grid { gap: 36px; }
  .contact-copy { padding: 0; }
  .contact-copy h2 { font-size: clamp(32px, 8vw, 52px); margin: 0 0 22px; }
  .sample-offer { padding: 22px 20px 24px; }
  .sample-heading { font-size: 19px; }
  .contact-btns { gap: 10px; }
  .contact-btns .btn { padding: 13px 18px; font-size: 11px; letter-spacing: 0.16em; gap: 10px; }
  .contact-meta { grid-template-columns: 1fr; gap: 14px; }
  .contact-image { min-height: 460px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 0 36px; }

  /* Animations: reduce intensity on mobile */
  .cursor-glow { display: none; }
}

/* — Small phones — tighten chrome, keep services readable — */
@media (max-width: 480px) {
  .shell { padding: 0 20px; }
  .topbar { padding: 14px 20px; }
  .section { padding: 84px 0 92px; }
  .svc-row { padding: 24px 0; gap: 12px; }
  .svc-title { font-size: 21px; }
  .svc-desc { font-size: 13.5px; }
  .svc-chip { font-size: 9px; padding: 4px 9px; }
  .section-head { margin-bottom: 28px; }
  .hero { padding-top: 84px; }
  .hero-rail {
    height: 320px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-card { flex: 0 0 78%; max-width: 78%; }
  .contact-image { min-height: 380px; }
  .work-tabs { margin: 24px -20px 20px; padding-left: 20px; padding-right: 20px; }
  .h-display { font-size: clamp(36px, 12.5vw, 58px); }
  .brand-hvs { font-size: 19px; }
  .brand-studio { font-size: 7.5px; letter-spacing: 0.46em; }
  .brand-rule { width: 50px; }
}

/* — Very small phones (≤390) — final tighten — */
@media (max-width: 390px) {
  .shell { padding: 0 16px; }
  .topbar { padding: 12px 16px; }
  .h-display { font-size: 38px; line-height: 0.98; }
  .hero h1 .stu { font-size: 0.95em; }
  .hero .sub { font-size: 14px; }
  .hero-rail {
    height: 300px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-card { flex: 0 0 82%; max-width: 82%; }
  .h-section { font-size: 30px; }
  .proof-step { padding: 24px 18px; }
  .sample-offer { padding: 20px 18px 22px; }
}
