/* HFZY Developments — Editorial v6 (Clean Restart)
   Solid consistent dark. Refined phone mockup. Mobile-first. */

:root {
  /* Solid ink palette — hex fallbacks for older webviews */
  --bg:         #131311;
  --bg:         oklch(0.10 0.005 70);
  --surface:    #1f1e1c;
  --surface:    oklch(0.14 0.006 70);
  --surface-2:  #2a2826;
  --surface-2:  oklch(0.18 0.006 70);
  --line:       oklch(1 0 0 / 0.10);
  --line-soft:  oklch(1 0 0 / 0.06);
  --line-strong:oklch(1 0 0 / 0.18);

  --paper:      oklch(0.97 0.008 85);
  --paper-dim:  oklch(0.86 0.008 85);
  --muted:      oklch(0.62 0.008 80);
  --faint:      oklch(0.45 0.008 80);
  --gold:       oklch(0.82 0.11 78);

  /* Type */
  --f-serif:  "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif;
  --f-sans:   "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-mono:   "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --tracking-mono: 0.06em;

  /* Layout */
  --pad-x: clamp(20px, 4vw, 56px);
  --max:   1440px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { background: var(--bg); }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}
@media (pointer: coarse) { body { cursor: auto; } }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: inherit; }
::selection { background: var(--gold); color: var(--bg); }

/* Single very-subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============ CURSOR ============ */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 3000;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor {
  width: 28px; height: 28px;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
}
.cursor-dot { width: 4px; height: 4px; background: #fff; border-radius: 50%; }
.cursor.is-hover { width: 56px; height: 56px; background: rgba(255,255,255,0.06); }
@media (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ============ LOADER — black → white wave reveal ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
  transition: opacity 0.7s var(--ease) 0.4s, visibility 0s 1.2s;
}
.loader__sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  background: #fff;
  transition: height 1.4s var(--ease-out) 0.5s;
}
.loader__logo {
  position: relative;
  width: clamp(160px, 20vw, 240px);
  height: clamp(160px, 20vw, 240px);
}
.loader__logo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
.loader__logo-black {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-out) 0.5s;
}
.loader.is-armed .loader__sheet { height: 100%; }
.loader.is-armed .loader__logo-black { clip-path: inset(0 0 0 0); }
.loader__top-left, .loader__top-right, .loader__bottom {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  z-index: 2;
}
.loader__top-left  { top: 28px; left: 28px; }
.loader__top-right { top: 28px; right: 28px; }
.loader__bottom    { bottom: 28px; left: 0; right: 0; text-align: center; font-size: 10px; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 600px) {
  .loader__top-left, .loader__top-right { top: 20px; }
  .loader__top-left { left: 18px; font-size: 9.5px; }
  .loader__top-right { right: 18px; font-size: 9.5px; }
  .loader__bottom { bottom: 22px; font-size: 9px; padding: 0 20px; }
}

/* ============ STATUS BAR ============ */
.statusbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--pad-x);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  pointer-events: none;
  color: var(--muted);
}
.statusbar > * { pointer-events: auto; }
.statusbar .dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: oklch(0.78 0.16 145);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.78 0.16 145 / 0.5); }
  70%  { box-shadow: 0 0 0 8px oklch(0.78 0.16 145 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.78 0.16 145 / 0); }
}
@media (max-width: 600px) {
  .statusbar { font-size: 9px; padding: 10px 16px; }
  .statusbar .hide-sm { display: none; }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 38px var(--pad-x) 18px;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.is-scrolled {
  padding-top: 26px;
  background: linear-gradient(to bottom, var(--bg) 40%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark  { width: 28px; height: auto; }
.nav__wordmark {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--paper);
}
.nav__wordmark span { color: var(--muted); }
.nav__menu { display: flex; gap: 36px; }
.nav__link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--paper-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav__link::before {
  content: attr(data-num);
  margin-right: 6px;
  color: var(--faint);
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: right 0.4s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::before { color: var(--gold); }
.nav__link:hover::after  { right: 0; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--paper);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__cta:hover { border-color: var(--paper); background: rgba(255,255,255,0.04); }
.nav__cta-arrow {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--bg);
  font-size: 11px;
  line-height: 0;
}
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.nav__sheet {
  position: fixed;
  inset: 0;
  background: #131311; /* fallback */
  background: var(--bg);
  padding: 110px var(--pad-x) 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  z-index: 110;
  overflow-y: auto;
  visibility: hidden;
}
.nav.is-open ~ .nav__sheet,
.nav__sheet.is-open { transform: translateY(0); visibility: visible; }
.nav__sheet a {
  font-family: var(--f-serif);
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1.05;
  color: var(--paper);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.nav__sheet a small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.nav__sheet a em { color: var(--gold); font-style: italic; }
.nav__sheet-foot {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 24px;
}
.nav__sheet-foot a {
  font: inherit; padding: 0; border: 0; display: inline;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}
@media (min-width: 901px) {
  .nav__sheet { display: none; }
}

/* ============ COMMON ============ */
section {
  position: relative;
  padding: clamp(90px, 12vw, 160px) var(--pad-x);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--muted);
}

/* Divider */
.divider {
  padding: 0 var(--pad-x);
  position: relative;
  border-top: 1px solid var(--line-soft);
}
.divider__row {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--faint);
}
.divider__row > :first-child { text-align: left; }
.divider__row > :last-child  { text-align: right; }
.divider__mark { width: 20px; opacity: 0.85; }
@media (max-width: 600px) {
  .divider__row { grid-template-columns: 1fr auto; font-size: 9px; }
  .divider__row > :last-child { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
  cursor: pointer;
}
.btn--primary { background: var(--paper); color: var(--bg); }
.btn--primary:hover { background: var(--gold); }
.btn--ghost { color: var(--paper); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(255,255,255,0.04); }
.btn__arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px) rotate(-45deg); }
@media (max-width: 600px) {
  .btn { padding: 16px 22px; font-size: 10.5px; gap: 10px; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 130px var(--pad-x) 0;
  overflow: hidden;
  position: relative;
  /* Single very subtle spotlight — no leakage to other sections */
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, oklch(0.16 0.018 60 / 0.6), transparent 65%),
    var(--bg);
}

.hero__seal {
  position: absolute;
  right: var(--pad-x);
  top: clamp(110px, 14vw, 160px);
  width: clamp(96px, 11vw, 130px);
  height: clamp(96px, 11vw, 130px);
  z-index: 3;
  animation: spin 32s linear infinite;
}
.hero__seal svg { width: 100%; height: 100%; }
.hero__seal-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24%;
  height: 24%;
  display: grid;
  place-items: center;
  animation: spin-rev 32s linear infinite;
}
.hero__seal-mark img { width: 100%; }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@media (max-width: 700px) { .hero__seal { display: none; } }

.hero__content {
  align-self: end;
  padding-bottom: clamp(50px, 8vw, 100px);
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
  flex-wrap: wrap;
}
.hero__meta-block {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  max-width: 240px;
}
.hero__meta-block strong {
  display: block;
  color: var(--paper);
  font-weight: 400;
  margin-bottom: 6px;
}
.hero__meta-block:last-child { text-align: right; }
@media (max-width: 600px) {
  .hero__meta-block { font-size: 9.5px; max-width: 48%; }
}

.hero__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(58px, 13.5vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--paper);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.22s; }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__title .ampersand { font-style: italic; color: var(--muted); }
@keyframes rise { to { transform: translateY(0); } }

.hero__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: clamp(36px, 5vw, 64px);
  align-items: end;
}
@media (max-width: 800px) { .hero__row { grid-template-columns: 1fr; gap: 28px; } }
.hero__lead {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  max-width: 520px;
  color: var(--paper-dim);
  margin: 0;
}
.hero__lead em { color: var(--gold); font-style: italic; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-self: end;
  align-items: center;
}
@media (max-width: 800px) { .hero__ctas { justify-self: start; } }

/* Marquee */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 50px;
  padding: 22px 0;
  animation: scroll 36s linear infinite;
}
.marquee__item {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(26px, 3.8vw, 52px);
  line-height: 1;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 50px;
}
.marquee__item::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ FEATURED — refined ============ */
.featured { background: var(--bg); }
.featured__inner { max-width: var(--max); margin: 0 auto; }

.featured__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(50px, 7vw, 80px);
}
@media (max-width: 800px) { .featured__head { grid-template-columns: 1fr; gap: 20px; } }
.featured__head-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}
.featured__head-meta strong { color: var(--paper); font-weight: 400; }
.featured__head-meta .live { color: var(--gold); }
.featured__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--paper);
}
.featured__title em { font-style: italic; color: var(--gold); }

/* The case-study card */
.case-card {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
@media (max-width: 900px) {
  .case-card { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
}

/* Phone preview — a real, contained iPhone mockup */
.case-phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  background: #0a0a0a;
  padding: 8px;
  border-radius: 36px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 30px 60px rgba(0,0,0,0.45),
    0 14px 28px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.6s var(--ease);
}
.case-phone:hover { transform: translateY(-4px); }
.case-phone__screen {
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #111;
}
.case-phone__screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.case-phone__notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 36%; height: 20px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.case-phone__tag {
  position: absolute;
  top: -12px; left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--paper);
}
.case-phone__tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

.case-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.case-info__lede {
  font-family: var(--f-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.32;
  color: var(--paper);
  margin: 0;
}
.case-info__lede em { font-style: italic; color: var(--gold); }
.case-info__sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 480px;
}
.case-info__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
}
@media (max-width: 600px) {
  .case-info__stats { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
}
.case-stat__num {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  color: var(--paper);
  margin-bottom: 6px;
}
.case-stat__num em { font-style: italic; color: var(--gold); }
.case-stat__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}
.case-info__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* ============ PROJECT MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 7, 6, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease);
}
.modal__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 80px var(--pad-x) 60px;
  color: var(--paper);
  transform: translateY(20px);
  transition: transform 0.6s var(--ease);
}
.modal.is-open .modal__inner { transform: translateY(0); }
.modal__close {
  position: fixed;
  top: 24px; right: var(--pad-x);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal__close:hover { background: rgba(255,255,255,0.16); transform: rotate(90deg); }
.modal__close::before, .modal__close::after {
  content: "";
  position: absolute;
  width: 16px; height: 1px;
  background: var(--paper);
}
.modal__close::before { transform: rotate(45deg); }
.modal__close::after  { transform: rotate(-45deg); }
.modal__head {
  max-width: var(--max);
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}
@media (max-width: 800px) { .modal__head { grid-template-columns: 1fr; gap: 16px; } }
.modal__eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}
.modal__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  color: var(--paper);
}
.modal__title em { font-style: italic; color: var(--gold); }
.modal__sub {
  font-family: var(--f-serif);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4;
  color: var(--paper-dim);
  margin: 0;
  max-width: 460px;
  justify-self: end;
}
@media (max-width: 800px) { .modal__sub { justify-self: start; } }

/* Phone stage in modal — 3 phones on brand-color stage */
.phone-stage {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, oklch(0.52 0.22 320 / 0.7), transparent 55%),
    radial-gradient(circle at 70% 70%, oklch(0.50 0.22 350 / 0.6), transparent 55%),
    linear-gradient(135deg, oklch(0.30 0.18 320), oklch(0.22 0.16 350));
  border: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 700px) { .phone-stage { aspect-ratio: 4/5; } }
.phone {
  position: absolute;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  padding: 7px;
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 60px rgba(0,0,0,0.55);
  transition: transform 0.6s var(--ease);
}
.phone__screen { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: #111; position: relative; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone__notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 38%; height: 16px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone--left   { left: 14%; top: 16%; width: 18%; transform: rotate(-8deg); z-index: 1; }
.phone--right  { right: 14%; top: 12%; width: 18%; transform: rotate(8deg); z-index: 1; }
.phone--center { left: 50%; top: 6%; width: 22%; transform: translateX(-50%); z-index: 2; }
@media (max-width: 700px) {
  .phone--left { left: 4%; top: 22%; width: 38%; }
  .phone--right { right: 4%; top: 18%; width: 38%; }
  .phone--center { width: 44%; top: 6%; }
}
.phone-stage__caption {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
}

.modal__details {
  max-width: var(--max);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
@media (max-width: 800px) { .modal__details { grid-template-columns: 1fr; gap: 24px; } }
.modal__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.modal__stats .case-stat__num { font-size: clamp(32px, 4vw, 48px); }

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.modal__list { list-style: none; padding: 0; margin: 0; }
.modal__list li {
  display: grid;
  grid-template-columns: 22px 100px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  align-items: baseline;
}
.modal__list li > span:first-child {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--faint);
}
.modal__list li > span:nth-child(2) {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}
.modal__list li > span:nth-child(3) { color: var(--paper); }
@media (max-width: 500px) {
  .modal__list li { grid-template-columns: 20px 1fr; }
  .modal__list li > span:nth-child(2) { display: none; }
}

/* Drag rail */
.rail-wrap {
  max-width: var(--max);
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}
.rail-head .right span { color: var(--paper); }
.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 14px;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-grabbing { cursor: grabbing; }
.rail-phone {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  padding: 7px;
  border-radius: 26px;
  position: relative;
  scroll-snap-align: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 14px 30px rgba(0,0,0,0.45);
}
.rail-phone .phone__notch { width: 38%; height: 14px; top: 10px; }
.rail-phone__screen { width: 100%; height: 100%; border-radius: 20px; overflow: hidden; }
.rail-phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; }
.rail-phone__index {
  position: absolute;
  bottom: -22px; left: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 600px) { .rail-phone { width: 180px; } }

/* ============ CAPABILITIES ============ */
.capabilities { background: var(--bg); }
.capabilities__inner { max-width: var(--max); margin: 0 auto; }
.capabilities__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: clamp(50px, 7vw, 80px);
  align-items: start;
}
@media (max-width: 800px) { .capabilities__head { grid-template-columns: 1fr; } }
.capabilities__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  color: var(--paper);
}
.capabilities__title em { font-style: italic; color: var(--gold); }
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cap-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 50px 1.2fr 2fr auto;
  gap: 24px;
  padding: 28px 0;
  align-items: baseline;
  position: relative;
  transition: padding 0.4s var(--ease);
}
.cap-row::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  background: var(--surface);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.cap-row:hover { padding-left: 20px; padding-right: 20px; }
.cap-row:hover::before { transform: scaleY(1); }
.cap-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: var(--tracking-mono);
}
.cap-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.05;
  color: var(--paper);
  margin: 0;
}
.cap-title em { font-style: italic; color: var(--gold); }
.cap-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 460px;
}
.cap-tools {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--faint);
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .cap-row { grid-template-columns: 28px 1fr; padding: 22px 0; gap: 12px; }
  .cap-row:hover { padding-left: 14px; padding-right: 14px; }
  .cap-desc, .cap-tools { grid-column: 2; text-align: left; }
  .cap-tools { white-space: normal; }
}

/* ============ SELECTED ============ */
.selected { background: var(--bg); }
.selected__inner { max-width: var(--max); margin: 0 auto; }
.selected__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: end;
}
@media (max-width: 800px) { .selected__head { grid-template-columns: 1fr; } }
.selected__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  color: var(--paper);
}
.selected__title em { font-style: italic; color: var(--gold); }
.selected__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.work-card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 26px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.work-card:hover { transform: translateY(-4px); border-color: var(--line); }
.work-card--lg { grid-column: span 7; min-height: 420px; }
.work-card--sm { grid-column: span 5; }
.work-card--md { grid-column: span 6; }
@media (max-width: 900px) {
  .work-card { grid-column: span 12 !important; min-height: 300px; }
}
.work-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 2;
}
.work-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-dim);
  background: rgba(0,0,0,0.3);
}
.work-card__badge::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.work-card__body { margin-top: auto; position: relative; z-index: 2; }
.work-card__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--paper);
}
.work-card__title em { font-style: italic; color: var(--gold); }
.work-card__desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 420px;
}
.work-card__tech {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--faint);
}
.placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.placeholder--game {
  background:
    radial-gradient(circle at 70% 30%, oklch(0.42 0.22 300 / 0.45), transparent 50%),
    radial-gradient(circle at 25% 80%, oklch(0.42 0.22 220 / 0.35), transparent 50%);
}
.placeholder--web {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}
.placeholder--brand { background: radial-gradient(circle at 80% 20%, oklch(0.65 0.12 80 / 0.14), transparent 60%); }
.brand-rings { position: absolute; top: 26px; right: 26px; width: 140px; height: 140px; }
.brand-rings circle { fill: none; stroke: var(--paper); stroke-width: 0.8; opacity: 0.3; }
.brand-rings circle:nth-child(2) { opacity: 0.22; }
.brand-rings circle:nth-child(3) { opacity: 0.14; }
.brand-rings .accent { stroke: var(--gold); opacity: 1; stroke-dasharray: 4 6; }
.placeholder--ui { background: linear-gradient(135deg, oklch(0.16 0.006 70), oklch(0.20 0.006 70)); }
.placeholder--ui::before, .placeholder--ui::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid var(--line-soft);
}
.placeholder--ui::before { top: 26px; right: 26px; width: 76px; height: 76px; }
.placeholder--ui::after  { top: 116px; right: 56px; width: 130px; height: 26px; }

/* ============ MANIFESTO ============ */
.manifesto {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, oklch(0.16 0.02 60 / 0.5), transparent 70%);
  pointer-events: none;
}
.manifesto__inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 2; }
.manifesto__quote {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 32px 0;
}
.manifesto__quote em { font-style: italic; color: var(--gold); }
.rot { display: inline-block; position: relative; text-align: left; vertical-align: top; font-style: italic; }
.rot__word {
  position: absolute;
  inset: 0;
  font-style: italic;
  color: var(--gold);
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  white-space: nowrap;
}
.rot__word.is-active { opacity: 1; transform: translateY(0); }
.rot__word.is-leaving { opacity: 0; transform: translateY(-40%); }
.rot__sizer { visibility: hidden; font-style: italic; white-space: nowrap; }
.manifesto__signoff {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ ABOUT ============ */
.about { background: var(--bg); }
.about__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
}
@media (max-width: 900px) { .about__inner { grid-template-columns: 1fr; } }
.about__col h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
  color: var(--paper);
}
.about__col h2 em { font-style: italic; color: var(--gold); }
.about__col p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 520px;
  margin: 0 0 18px;
}
.about__principles {
  margin-top: 48px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}
@media (max-width: 480px) { .about__principles { grid-template-columns: 1fr; } }
.about__principles li { border-top: 1px solid var(--line); padding-top: 14px; }
.about__principles strong {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--paper);
  display: block;
  margin-bottom: 4px;
}
.about__principles span { font-size: 13px; color: var(--muted); }
.about__col--right { padding-top: 40px; }
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  margin-bottom: 40px;
}
.stat-big strong {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(54px, 7vw, 100px);
  line-height: 0.9;
  color: var(--paper);
  letter-spacing: -0.04em;
  font-weight: 400;
}
.stat-big strong em { font-style: italic; color: var(--gold); }
.stat-big span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 10px;
}

/* ============ CONTACT ============ */
.contact {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, oklch(0.18 0.03 70 / 0.55), transparent 70%);
  pointer-events: none;
}
.contact > * { position: relative; z-index: 2; }
.contact__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 32px 0 56px;
  color: var(--paper);
}
.contact__title em { font-style: italic; color: var(--gold); }
.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 26px 36px 26px 44px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  transition: background 0.4s var(--ease);
  will-change: transform;
}
.contact__cta:hover { background: var(--gold); }
.contact__cta-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--paper);
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease);
}
.contact__cta:hover .contact__cta-circle { transform: rotate(45deg); }
.contact__meta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}
.contact__meta a {
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.3s var(--ease);
}
.contact__meta a:hover { border-color: var(--gold); }
@media (max-width: 600px) {
  .contact__meta { gap: 18px; flex-direction: column; align-items: center; }
  .contact__cta { padding: 20px 26px 20px 32px; font-size: 11px; gap: 12px; }
}

/* ============ COLOPHON ============ */
.colophon { padding: 0 var(--pad-x); background: var(--bg); }
.colophon__type {
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--f-serif);
  font-size: clamp(120px, 28vw, 480px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--paper);
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  overflow: hidden;
}
.colophon__type em { font-style: italic; color: var(--gold); }
.colophon__sub {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 600px) {
  .colophon__sub { font-size: 9px; flex-direction: column; align-items: center; }
}

/* ============ FOOTER ============ */
.footer { padding: 40px var(--pad-x) 22px; background: var(--bg); }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 800px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__inner { grid-template-columns: 1fr; gap: 28px; } }
.footer__brand img { width: 130px; margin-bottom: 18px; }
.footer__tag {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--paper-dim);
  max-width: 320px;
  margin: 0;
  line-height: 1.3;
}
.footer__col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer__col a { color: var(--paper-dim); font-size: 14px; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  max-width: var(--max);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--faint);
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ MOBILE FINAL ============ */
@media (max-width: 600px) {
  section { padding: 80px var(--pad-x); }
  .nav { padding: 26px var(--pad-x) 12px; }
  .nav__wordmark { font-size: 10px; }
  .nav__mark { width: 24px; }
  .hero { padding-top: 96px; }
  .marquee__track { gap: 32px; padding: 16px 0; }
  .marquee__item { gap: 32px; }
  .modal__inner { padding: 70px 18px 40px; }
  .modal__close { top: 16px; right: 18px; }
}

/* ============ CHROME WALLPAPER + VEILS ============ */
:root {
  --veil:        oklch(0.10 0.005 70 / 0.74);
  --veil-strong: oklch(0.10 0.005 70 / 0.82);
  --veil-soft:   oklch(0.10 0.005 70 / 0.44);
}

#chrome-wallpaper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
/* main content paints above the z-index:0 wallpaper via normal flow.
   nav / statusbar / modal / loader keep their ORIGINAL fixed positioning. */
main { position: relative; z-index: 1; }

/* always-on top scrim so the header stays legible over the nebula */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 150px;
  z-index: 70;
  pointer-events: none;
  background: linear-gradient(to bottom, oklch(0.08 0.005 70 / 0.62), transparent);
}

/* smooth section navigation that clears the fixed header */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
section[id] { scroll-margin-top: 92px; }

/* active nav link (scrollspy) */
.nav__link.is-active { color: var(--paper); }
.nav__link.is-active::before { color: var(--gold); }
.nav__link.is-active::after { right: 0; }

/* scroll progress — slim gold line at the foot of the viewport */
#scrollProgress {
  position: fixed;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(to right, var(--gold), oklch(0.90 0.04 85));
  z-index: 95;
  pointer-events: none;
  box-shadow: 0 0 12px oklch(0.82 0.11 78 / 0.5);
}

/* magnetic buttons get a touch of easing on the follow */
.btn {
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.35s var(--ease-out);
}
.contact__cta, .nav__cta { transition: background 0.4s var(--ease), border-color 0.3s var(--ease), transform 0.35s var(--ease-out); }

/* ============ GLASS CARDS — let the background glow through ============ */
.case-card,
.work-card {
  background: oklch(0.16 0.006 70 / 0.38);
  backdrop-filter: blur(16px) saturate(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.06);
  border-color: oklch(1 0 0 / 0.12);
}
.work-card:hover { border-color: oklch(1 0 0 / 0.22); }
/* hover fill on capability rows also reveals the glow */
.cap-row::before { background: oklch(0.18 0.006 70 / 0.5); }
/* badges stay readable on glass */
.work-card__badge { background: oklch(0.08 0.005 70 / 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

@media (max-width: 600px) {
  /* keep the same glassy look on mobile, lighter blur for performance */
  .case-card, .work-card {
    backdrop-filter: blur(12px) saturate(1.05);
    -webkit-backdrop-filter: blur(12px) saturate(1.05);
  }
}

/* Static fallback if WebGL is unavailable */
body.no-webgl #chrome-wallpaper {
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, oklch(0.20 0.02 80 / 0.5), transparent 70%),
    radial-gradient(circle at 70% 80%, oklch(0.16 0.02 60 / 0.4), transparent 60%),
    var(--bg);
}

/* Sections become translucent so the living metal shows through, subtly */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 108%, oklch(0.10 0.005 70 / 0.92), oklch(0.10 0.005 70 / 0.34) 70%);
}
.marquee      { background: var(--veil); }
.featured     { background: var(--veil-soft); }
.capabilities { background: var(--veil-strong); }
.selected     { background: var(--veil-soft); }
.manifesto    { background: var(--veil-soft); }
.about        { background: var(--veil-strong); }
.contact      { background: var(--veil-soft); }
.colophon     { background: var(--veil-soft); }
.footer       { background: var(--veil); }

/* dividers: let the wallpaper breathe through fully */
.divider { background: transparent; }

/* ============ HERO STREAM (typed console line) ============ */
.hero__stream {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 9px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: oklch(0.10 0.005 70 / 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--paper-dim);
  max-width: 100%;
  overflow: hidden;
}
.stream__prompt {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--gold);
}
.stream__prompt span { color: var(--faint); }
.stream__out {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  color: var(--paper);
}
.stream__caret {
  flex: 0 0 auto;
  width: 8px;
  height: 1.05em;
  background: var(--gold);
  animation: caretBlink 1.05s steps(1) infinite;
}
@keyframes caretBlink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }
@media (max-width: 600px) {
  .hero__stream { font-size: 10.5px; gap: 9px; padding: 8px 13px; }
  .stream__prompt { font-size: 9px; }
}

/* scramble glyphs while decoding */
.sg { color: var(--gold); opacity: 0.85; }

/* ============ COLOPHON PARTICLE TYPE ============ */
.colophon__type {
  position: relative;
  min-height: clamp(150px, 26vw, 300px);
}
.colophon__canvas {
  display: block;
  width: 100%;
  height: clamp(150px, 26vw, 300px);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.colophon__canvas.is-ready { opacity: 1; }
.colophon__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-serif);
  font-size: clamp(120px, 26vw, 300px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.colophon__fallback em { font-style: italic; color: var(--gold); }
.colophon__canvas.is-ready + .colophon__fallback { display: none; }

/* ============ DEENSYNC CASE ============ */
.ds-section { background: var(--bg); }
.ds-section .featured__head-meta .pending { color: var(--gold); }

.ds-banner {
  display: block; width: 100%; max-width: var(--max);
  margin: 0 auto; position: relative;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--surface);
  cursor: pointer;
  transition: transform 0.6s var(--ease), border-color 0.4s var(--ease);
}
.ds-banner:hover { transform: translateY(-4px); border-color: var(--line); }
.ds-banner img { width: 100%; height: auto; display: block; }
.ds-banner__tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: oklch(0.10 0.005 70 / 0.62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: #fff;
}
.ds-banner__tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s ease-out infinite;
}
.ds-banner__view {
  position: absolute; bottom: 18px; right: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: oklch(0.10 0.005 70 / 0.62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: #fff;
}
@media (max-width: 600px) { .ds-banner__view { display: none; } }

.ds-body {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  max-width: var(--max); margin: clamp(32px, 4vw, 52px) auto 0;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft);
  align-items: start;
}
@media (max-width: 900px) { .ds-body { grid-template-columns: 1fr; gap: 34px; padding: 28px; } }

.ds-feat-label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.ds-feat { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.ds-feat li {
  display: grid; grid-template-columns: 32px 1fr; gap: 2px 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.ds-feat .n { font-family: var(--f-mono); font-size: 11px; color: var(--gold); letter-spacing: var(--tracking-mono); padding-top: 5px; }
.ds-feat h4 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(19px, 2.1vw, 25px); line-height: 1.1; color: var(--paper); }
.ds-feat p { grid-column: 2; margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* DeenSync poster rail (marketing graphics, not phone bezels) */
.ds-rail { gap: 18px; }
.ds-poster {
  flex: 0 0 auto; width: 250px; position: relative; scroll-snap-align: center;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft);
  background: var(--surface); box-shadow: 0 14px 30px rgba(0,0,0,0.42);
}
@media (max-width: 600px) { .ds-poster { width: 200px; } }
.ds-poster img { width: 100%; height: auto; display: block; pointer-events: none; }
.ds-poster__cap {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--muted);
}
.ds-poster__cap b { color: var(--paper); font-weight: 400; }
.ds-poster__cap span { color: var(--faint); }

.btn--disabled {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
  border: 1px dashed var(--line-strong); color: var(--muted);
}
.btn--disabled .btn__arrow { display: none; }
