/* =====================================================
   JESTAZ. — v4 · futuristic AI-tool aesthetic
   Dark canvas, dot grid, magnetic cursor, HUD overlays.
   Geist variable weight. Single warm-gold highlight,
   used sparingly. Designed to feel like a control panel.
   ===================================================== */

:root {
  --bg:        #08080A;
  --bg-2:      #0D0D11;
  --bg-3:      #131318;
  --surface:   #1A1A20;
  --line:      rgba(255,255,255,.07);
  --line-2:    rgba(255,255,255,.04);
  --line-3:    rgba(255,255,255,.16);

  --text:      #EAEAEC;
  --text-2:    #B8B8C0;
  --mute:      #6E6E78;
  --mute-2:    #444451;

  /* Highlight: muted butter gold. Premium, calm, not coral. */
  --gold:      #D4B86A;
  --gold-2:    #BFA050;
  --gold-glow: rgba(212, 184, 106, .28);

  /* Type — Geist + Geist Mono only. No serifs. */
  --sans:    'Geist', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:    'Geist Mono', 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --ease-expo: cubic-bezier(.16,1,.3,1);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Hide native cursor on desktop — replaced by custom */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: none; }
  a, button, [data-magnet], input, textarea, select { cursor: none; }
}

body { overflow: hidden; }
body.scroll-vertical { overflow-y: auto; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }

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

/* Dot-grid background — fixed full-viewport behind content */
.dotgrid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255,255,255,.07) 1px, transparent 1.2px);
  background-size: 32px 32px;
  background-position: 0 0;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
  opacity: .65;
}

/* subtle vignette */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(8,8,10,.55) 100%),
    linear-gradient(180deg, rgba(255,255,255,.012), transparent 40%);
}

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border: 1px solid var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s, background-color .25s;
  mix-blend-mode: difference;
}
.cursor::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 3px; height: 3px;
  background: var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor.is-hover {
  width: 48px; height: 48px;
  border-color: var(--gold);
}
.cursor.is-hover::after { background: var(--gold); }
.cursor.is-drag {
  width: 56px; height: 56px;
  background: rgba(212,184,106,.08);
}

/* =====================================================
   Typography
   ===================================================== */
.h-display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
  font-feature-settings: 'ss01';
}
.h-display em,
.h-display .gold {
  font-style: normal;
  color: var(--gold);
}

/* Mono micro-labels with bracket framing */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--mute);
  font-weight: 400;
}
.eyebrow::before { content: '[ '; opacity: .5; }
.eyebrow::after { content: ' ]'; opacity: .5; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0;
}

/* =====================================================
   HUD overlays — top corners + scroll readout
   ===================================================== */
.hud {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: .02em;
}
.hud > * { pointer-events: auto; }

.hud-tl {
  top: 20px; left: 28px;
  display: flex; align-items: center; gap: 16px;
}
.hud-tr {
  top: 20px; right: 28px;
  display: flex; align-items: center; gap: 8px;
}
.hud-bl {
  bottom: 20px; left: 28px;
  display: flex; align-items: center; gap: 18px;
}
.hud-br {
  bottom: 20px; right: 28px;
  display: flex; align-items: center; gap: 14px;
}

.hud__brand {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.hud__brand .dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-1px);
  box-shadow: 0 0 8px var(--gold-glow);
}

.hud__sep { color: var(--mute-2); }

.hud__chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-2);
  background: rgba(255,255,255,.02);
  transition: border-color .25s, color .25s, background .25s;
}
.hud__chip:hover { border-color: var(--gold); color: var(--gold); }
.hud__chip.is-active {
  border-color: var(--gold);
  color: var(--bg);
  background: var(--gold);
}

.hud__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hud__live .led {
  width: 6px; height: 6px;
  background: #57E08F;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(87, 224, 143, .5);
  animation: ledPulse 1.8s ease-in-out infinite;
}
@keyframes ledPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Bottom HUD: scroll readout */
.scroll-readout {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  color: var(--text-2);
}
.scroll-readout .count {
  font-size: 11px;
}
.scroll-readout .count .max { color: var(--mute); }
.scroll-readout .rail {
  width: 280px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-readout .rail::after {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  height: 3px;
  width: var(--p, 0%);
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold-glow);
  transition: width .15s linear;
}
.scroll-readout .hint { font-size: 11px; color: var(--mute); }

.hud__menu-btn {
  display: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  background: rgba(255,255,255,.04);
}

/* Desktop default — show hud nav inline */
.hud-tr .hud__nav { display: flex; align-items: center; gap: 6px; }

/* Marquee ticker — placed between sections via inline component */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: .02em;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  gap: 64px;
  animation: tickerScroll 35s linear infinite;
}
.ticker__track span { display: inline-flex; align-items: center; gap: 12px; }
.ticker__track .dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =====================================================
   Horizontal scroll
   ===================================================== */
.h-scroll {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 2;
}
.h-scroll__track {
  position: absolute;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  align-items: stretch;
  will-change: transform;
}
.panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 100px 6vw 80px;
  overflow: hidden;
}

/* Crosshair markers at panel corners */
.panel::before,
.panel::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.panel::before {
  top: 60px; left: 6vw;
  border-right: none; border-bottom: none;
}
.panel::after {
  bottom: 56px; right: 6vw;
  border-left: none; border-top: none;
}

.panel__index {
  position: absolute;
  top: 60px;
  left: calc(6vw + 18px);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}
.panel__index strong { color: var(--text); font-weight: 400; }
.panel__edge {
  position: absolute;
  right: calc(6vw + 18px);
  top: 60px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  text-align: right;
}

/* Subtle horizontal ruler at the bottom of each panel */
.panel__ruler {
  position: absolute;
  left: 6vw; right: 6vw;
  bottom: 56px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute-2);
  letter-spacing: .04em;
  pointer-events: none;
}
.panel__ruler span::before {
  content: '|';
  margin-right: 6px;
  color: var(--mute-2);
}

/* =====================================================
   HERO
   ===================================================== */
.panel--hero { }

.hero__wrap {
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 32px;
  position: relative;
}

.hero__status {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}
.hero__status .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-glow);
  animation: ledPulse 1.8s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(48px, 7.6vw, 132px);
  max-width: 18ch;
  font-weight: 500;
}
.hero__title .reveal-line {
  display: block;
  overflow: hidden;
}
.hero__title .reveal-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: reveal 1.2s var(--ease-expo) forwards;
}
.hero__title .reveal-line:nth-child(2) .reveal-inner { animation-delay: .12s; }
.hero__title .reveal-line:nth-child(3) .reveal-inner { animation-delay: .24s; }
@keyframes reveal { to { transform: translateY(0); } }

.hero__sub {
  max-width: 64ch;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-2);
  line-height: 1.55;
  opacity: 0;
  animation: fadeUp .8s var(--ease-expo) .6s forwards;
}
.hero__sub strong { color: var(--text); font-weight: 500; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 1200px;
  opacity: 0;
  animation: fadeUp .8s var(--ease-expo) .8s forwards;
}
.hero__meta-cell .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  display: block;
  margin-bottom: 8px;
}
.hero__meta-cell .v {
  font-size: 13px;
  color: var(--text);
  font-family: var(--mono);
}
.hero__meta-cell .v .sep { color: var(--mute-2); margin: 0 5px; }
.hero__meta-cell .v .gold { color: var(--gold); }
.hero__meta-cell .v a { color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }

/* =====================================================
   Featured intro panel
   ===================================================== */
.featured-intro {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6vw;
  align-items: end;
}
.featured-intro__copy { display: flex; flex-direction: column; gap: 22px; max-width: 740px; }
.featured-intro__title {
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.025em;
  max-width: 18ch;
}
.featured-intro__sub { max-width: 48ch; font-size: 16px; color: var(--text-2); line-height: 1.55; }

.featured-intro__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.featured-intro__row {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 70px;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  transition: padding-left .35s var(--ease-out), background .25s;
}
.featured-intro__row:hover {
  padding-left: 14px;
  background: rgba(212, 184, 106, .04);
}
.featured-intro__row .n {
  color: var(--gold);
  font-weight: 500;
}
.featured-intro__row .t {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.015em;
}
.featured-intro__row .t .gold { color: var(--gold); }
.featured-intro__row .d {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}
.featured-intro__row .y { text-align: right; color: var(--text-2); }

/* =====================================================
   Featured project panels
   ===================================================== */
.featured {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5vw;
  align-items: center;
}
.featured__media-main {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: calc(100vh - 220px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 8px;
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s var(--ease-out), border-color .25s, box-shadow .35s;
  transform-style: preserve-3d;
}
.featured__media-main:hover {
  border-color: var(--line-3);
  box-shadow: 0 24px 80px -32px rgba(0,0,0,.7), 0 0 0 1px var(--gold-glow);
}
.featured__media-main > svg { max-height: 100%; width: auto; max-width: 100%; }

/* HUD corners inside media frame */
.featured__media-main::before,
.featured__media-main::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
  pointer-events: none;
  opacity: .65;
}
.featured__media-main::before {
  top: 10px; left: 10px;
  border-right: none; border-bottom: none;
}
.featured__media-main::after {
  bottom: 10px; right: 10px;
  border-left: none; border-top: none;
}

.featured__copy { display: flex; flex-direction: column; gap: 22px; }

.featured__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.featured__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  transition: border-color .25s, color .25s;
}
.featured__tag.is-filled {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 500;
}
.featured__tag:hover { border-color: var(--gold); color: var(--gold); }
.featured__tag.is-filled:hover { background: var(--gold-2); color: var(--bg); border-color: var(--gold-2); }

.featured__title {
  font-size: clamp(36px, 4.2vw, 72px);
  max-width: 16ch;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.025em;
}
.featured__title .sub { color: var(--gold); }

.featured__desc {
  max-width: 56ch;
  font-size: clamp(15px, 1.05vw, 18px);
  color: var(--text-2);
  line-height: 1.55;
}
.featured__desc strong { color: var(--text); font-weight: 500; }

.featured__meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  font-family: var(--mono); font-size: 12px;
  color: var(--mute);
}
.featured__meta span strong { color: var(--text); font-weight: 500; font-family: var(--mono); }
.featured__meta .sep { color: var(--mute-2); margin: 0 4px; }

.featured__ctas {
  display: flex; gap: 24px; align-items: center;
  margin-top: 6px;
}
.featured__link {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
  transition: color .25s, border-color .25s, padding-right .35s var(--ease-out);
}
.featured__link:hover {
  color: var(--gold);
  border-color: var(--gold);
  padding-right: 8px;
}
.featured__link.is-secondary {
  font-weight: 400;
  color: var(--mute);
  border-bottom-color: transparent;
}
.featured__link.is-secondary:hover { color: var(--text); }

/* =====================================================
   Selected grid
   ===================================================== */
.selected {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4vw;
  align-items: start;
}
.selected__head { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.selected__head .h-display {
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1.05;
  font-weight: 500;
}

.selected__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 16px;
}
.selected-card__media { aspect-ratio: 4 / 3 !important; padding: 14px !important; }
.selected-card__body { padding: 14px 16px 16px !important; gap: 7px !important; }
.selected-card__name { font-size: 17px !important; line-height: 1.18 !important; }
.selected-card__desc { font-size: 12.5px !important; line-height: 1.5 !important; }
.selected-card__meta { font-size: 10.5px !important; }
.selected-card__cta { font-size: 10.5px !important; padding-top: 8px !important; margin-top: 4px !important; }
.selected-card {
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), border-color .3s, box-shadow .35s;
  position: relative;
}
.selected-card:hover {
  border-color: var(--line-3);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -22px rgba(0,0,0,.6);
}
.selected-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #FAF7EF; /* light backing so screenshot mockups read clearly on dark canvas */
  overflow: hidden;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.selected-card__media img,
.selected-card__media svg {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(1) brightness(1);
  transition: transform 1.4s var(--ease-out);
  display: block;
}
.selected-card:hover .selected-card__media img,
.selected-card:hover .selected-card__media svg {
  transform: scale(1.03);
}

.selected-card__body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.selected-card__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px;
  color: var(--mute);
  letter-spacing: .04em;
}
.selected-card__meta .gold { color: var(--gold); }
.selected-card__name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.018em;
  color: var(--text);
  margin-top: 2px;
}
.selected-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.selected-card__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  letter-spacing: .04em;
}
.selected-card__cta .arrow { transition: transform .35s var(--ease-out); }
.selected-card:hover .selected-card__cta .arrow { transform: translateX(5px); color: var(--gold); }

/* =====================================================
   About + How I work
   ===================================================== */
.about {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5vw;
  align-items: start;
}
.about__title {
  font-size: clamp(34px, 3.6vw, 62px);
  line-height: 1.02;
  font-weight: 500;
}
.about__body { font-size: 14.5px; color: var(--text-2); line-height: 1.55; max-width: 54ch; }
.about__body p + p { margin-top: 8px; }

.about__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 22px;
  max-width: 480px;
}
.about__meta .k { font-family: var(--mono); font-size: 10px; color: var(--mute); display: block; margin-bottom: 4px; }
.about__meta .v { font-size: 12.5px; color: var(--text); font-family: var(--mono); }

.howiwork {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.howiwork__item {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  position: relative;
  transition: padding-left .35s var(--ease-out);
}
.howiwork__item:hover { padding-left: 10px; }
.howiwork__item:hover::before {
  content: '';
  position: absolute;
  top: 8px; left: 0;
  width: 3px; height: 18px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}
.howiwork__item .n { font-family: var(--mono); font-size: 10px; color: var(--gold); }
.howiwork__item h4 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  margin: 4px 0 4px;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.howiwork__item p { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

/* =====================================================
   Contact
   ===================================================== */
.contact {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}
.contact__title {
  font-size: clamp(48px, 6.4vw, 118px);
  line-height: 1;
  margin-bottom: 36px;
  max-width: 18ch;
  font-weight: 500;
  letter-spacing: -.025em;
}
.contact__title em { font-style: normal; color: var(--gold); }

.contact__ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.contact__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  font-family: var(--sans); font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255,255,255,.02);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.contact__cta.is-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.contact__cta.is-primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
.contact__cta.is-outline:hover { border-color: var(--gold); color: var(--gold); }

.contact__note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mute);
  max-width: 84ch;
  margin-bottom: 28px;
}

.contact__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.contact__row .k {
  font-family: var(--mono); font-size: 11px;
  color: var(--mute);
  display: block; margin-bottom: 10px;
}
.contact__row .v { font-size: 14px; line-height: 1.9; color: var(--text-2); }
.contact__row a {
  color: var(--text);
  border-bottom: 1px solid var(--line-3);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.contact__row a:hover { color: var(--gold); border-color: var(--gold); }

/* =====================================================
   PROJECT PAGES
   ===================================================== */
body.project-page { overflow-y: auto; overflow-x: hidden; }

.proj-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(8,8,10,.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.proj-nav__brand {
  font-family: var(--display); font-size: 17px; font-weight: 500;
  letter-spacing: -.02em; color: var(--text);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.proj-nav__brand .dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-1px);
  box-shadow: 0 0 8px var(--gold-glow);
}
.proj-nav__links {
  display: flex; gap: 6px;
  background: rgba(255,255,255,.03);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.proj-nav__links a {
  font-family: var(--mono); font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text-2);
  transition: background .25s, color .25s;
}
.proj-nav__links a:hover { background: rgba(255,255,255,.06); color: var(--text); }

.proj-hero {
  padding: 150px 6vw 56px;
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 2;
}
.proj-hero__eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px;
  color: var(--mute);
}
.proj-hero__eyebrow .swatch {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}
.proj-hero__title {
  font-size: clamp(48px, 7vw, 124px);
  line-height: 1;
  max-width: 22ch;
  font-weight: 500;
  letter-spacing: -.025em;
}
.proj-hero__title em { font-style: normal; color: var(--gold); }
.proj-hero__title .sub { color: var(--gold); }
.proj-hero__sub {
  max-width: 60ch;
  font-size: clamp(15px, 1.15vw, 19px);
  color: var(--text-2);
  line-height: 1.55;
}
.proj-hero__sub strong { color: var(--text); font-weight: 500; }

.proj-meta {
  margin: 32px auto 56px;
  max-width: 1520px;
  padding: 24px 6vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}
.proj-meta__cell .k {
  font-family: var(--mono); font-size: 11px;
  color: var(--mute);
  display: block; margin-bottom: 8px;
}
.proj-meta__cell .v { font-size: 14px; color: var(--text); line-height: 1.55; }
.proj-meta__cell .v a { color: var(--gold); border-bottom: 1px solid var(--gold); }

.proj-section {
  padding: 56px 6vw;
  max-width: 1520px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.proj-section + .proj-section { padding-top: 0; }
.proj-section h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.02;
  margin-bottom: 28px;
  max-width: 26ch;
  font-weight: 500;
  letter-spacing: -.025em;
}
.proj-section h2 em { font-style: normal; color: var(--gold); }
.proj-section h3 {
  font-family: var(--display);
  font-size: clamp(20px, 1.9vw, 28px);
  margin: 26px 0 12px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--text);
}
.proj-section p {
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 14px;
}
.proj-section p strong { color: var(--text); }
.proj-section .lede {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--text);
  max-width: 60ch;
  margin-bottom: 24px;
  font-weight: 400;
}

.proj-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.proj-point {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.proj-point .n { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.proj-point h4 {
  font-family: var(--display); font-size: 19px;
  font-weight: 500;
  margin: 6px 0 10px;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.proj-point p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

.proj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.proj-stat {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.proj-stat .v {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.025em;
  color: var(--text);
}
.proj-stat .k { font-family: var(--mono); font-size: 11px; color: var(--mute); }

/* gallery */
.gallery {
  margin-top: 14px;
  column-count: 2;
  column-gap: 22px;
}
.gallery--3 { column-count: 3; }
.gallery--1 { column-count: 1; }
.gallery figure {
  break-inside: avoid;
  margin: 0 0 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 4px;
}
.gallery figure img, .gallery figure video {
  width: 100%; height: auto; display: block;
  transition: transform 1.4s var(--ease-out);
}
.gallery figure:hover img, .gallery figure:hover video { transform: scale(1.02); }

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 14px;
}
.media-row:has(> figure:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.media-row figure { margin: 0; }
.media-row img, .media-row video {
  width: 100%; display: block;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 4px;
}
.media-row.is-light img, .media-row.is-light video {
  border: none;
  background: transparent;
  border-radius: 0;
}

.media-full {
  width: 100%;
  margin-top: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.media-full img, .media-full video { width: 100%; display: block; }

/* Smaller inline media — for supporting screenshots inside a text section.
   Caps width on wide viewports so they read as illustrations, not heroes. */
.media-mid {
  max-width: 880px;
  margin: 18px auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px -16px rgba(0,0,0,.5);
}
.media-mid img, .media-mid video { width: 100%; display: block; }

/* Light-paper variant — treats product mockups as "specimens" on the dark
   canvas. Needed when the screenshot was authored against a cream background. */
.media-mid.is-light,
.media-row.is-light figure,
.media-full.is-light {
  background: #FAF7EF;
  border-color: rgba(0,0,0,.08);
}
.media-mid.is-light { padding: 28px; }
.media-row.is-light { display: grid; }
.media-row.is-light figure { padding: 20px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); margin: 0; box-shadow: 0 8px 32px -16px rgba(0,0,0,.5); }
.media-full.is-light { padding: 32px; border-radius: 6px; }

.proj-next {
  padding: 64px 6vw 100px;
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.proj-next .label { margin-bottom: 6px; display: block; color: var(--mute); font-family: var(--mono); font-size: 11px; }
.proj-next a {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 48px);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--text);
  transition: color .25s;
}
.proj-next a .sub { color: var(--gold); }
.proj-next a:hover { color: var(--gold); }

/* Footer */
.site-foot {
  background: var(--bg-2);
  color: var(--text);
  padding: 56px 6vw 28px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.site-foot__grid {
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.site-foot__brand .h-display {
  font-size: 32px; line-height: 1;
  margin-bottom: 8px;
  font-weight: 500; letter-spacing: -.025em;
}
.site-foot__col .k {
  font-family: var(--mono); font-size: 11px;
  color: var(--mute);
  display: block; margin-bottom: 10px;
}
.site-foot__col a {
  display: block; font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-2);
}
.site-foot__col a:hover { color: var(--gold); }
.site-foot__legal {
  max-width: 1520px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__brand {
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.025em;
}
.loader__brand .dot {
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-glow);
}
.loader__progress {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}

/* =====================================================
   Mobile
   ===================================================== */
/* ========================================
   MOBILE / TABLET — ≤ 900px
   ======================================== */
@media (max-width: 900px) {
  html, body { cursor: auto !important; }
  .cursor { display: none; }
  body { overflow-y: auto; overflow-x: hidden; }

  /* HUD — compact + safe areas */
  .hud-tl, .hud-tr {
    top: 14px;
    padding: 0 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .hud-tl { left: 0; }
  .hud-tr { right: 0; gap: 8px; }
  .hud-bl, .hud-br { display: none; }
  .hud__menu-btn { display: inline-block; }

  /* Mobile menu drawer */
  .hud-tr .hud__nav {
    position: fixed;
    top: 0; right: 0;
    width: 78%;
    max-width: 320px;
    height: 100dvh; height: 100vh;
    background: rgba(8, 8, 10, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start;
    padding: 96px 28px 28px !important;
    gap: 0 !important;
    transform: translateX(100%);
    transition: transform .35s var(--ease-out);
    z-index: 90;
    overflow-y: auto;
  }
  .hud-tr .hud__nav.is-open { transform: translateX(0); }
  .hud-tr .hud__nav .hud__chip {
    display: block !important;
    width: 100%;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important;
    background: none !important;
    padding: 16px 0 !important;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -.01em;
  }
  .hud-tr .hud__nav .hud__chip.is-active { color: var(--gold); }

  .hud__menu-btn {
    position: relative;
    z-index: 100;
    padding: 8px 14px;
  }

  .dotgrid { background-size: 24px 24px; opacity: .4; }

  /* Horizontal-scroll panels → vertical stack */
  .h-scroll {
    position: static;
    overflow: visible;
    height: auto;
    width: 100% !important;
  }
  .h-scroll__track {
    position: static;
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100% !important;
    transform: none !important;
    align-items: stretch;
  }
  .panel {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: auto;
    flex: 0 0 auto;
    padding: 84px 22px 60px;
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }
  .panel::before, .panel::after { display: none; }
  .panel__index { left: 22px; top: 60px; font-size: 11px; }
  .panel__edge  { right: 22px; top: 60px; font-size: 11px; }
  .panel__ruler { display: none; }

  /* Hero */
  .hero__title { font-size: 14vw; line-height: 1.02; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 18px; }

  /* Featured */
  .featured-intro { grid-template-columns: 1fr; gap: 32px; }
  .featured-intro__row { grid-template-columns: 40px 1fr 60px; gap: 12px; }
  .featured-intro__row .d { display: none; }
  .featured { grid-template-columns: 1fr; gap: 32px; }
  .featured__title { font-size: 12vw; line-height: 1; }
  .featured__copy { font-size: 14.5px; }
  .featured__media { aspect-ratio: 4 / 3; min-height: 280px; }

  /* Selected */
  .selected { grid-template-columns: 1fr; gap: 24px; }
  .selected__head { position: static; }
  .selected__head .h-display { font-size: clamp(28px, 7vw, 38px); }
  .selected__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .selected-card__name { font-size: 15px !important; }
  .selected-card__desc { font-size: 11.5px !important; }
  .selected-card__media { padding: 10px !important; }
  .selected-card__body { padding: 10px 12px 14px !important; }

  /* About */
  .about { grid-template-columns: 1fr; gap: 28px; }
  .howiwork { grid-template-columns: 1fr; gap: 22px; }
  .about__meta { grid-template-columns: 1fr 1fr; gap: 14px; }
  .about__title { font-size: clamp(30px, 9vw, 56px) !important; }
  .about__body { font-size: 13.5px; }

  /* Contact */
  .contact__title { font-size: 14vw; }
  .contact__row { grid-template-columns: 1fr; gap: 22px; }

  /* PROJECT PAGES */
  .proj-nav { padding: 12px 20px; }
  .proj-nav__links { display: none; }
  .proj-hero { padding: 100px 20px 40px; }
  .proj-hero__title { font-size: 11vw; line-height: 1.02; }
  .proj-hero__sub { font-size: 14.5px; max-width: 100%; }
  .proj-meta { grid-template-columns: 1fr 1fr; padding: 20px; margin-bottom: 36px; gap: 16px; }
  .proj-meta__cell .v { font-size: 12.5px; }
  .proj-section { padding: 40px 20px; }
  .proj-section .h-display { font-size: clamp(28px, 8vw, 44px); line-height: 1.08; }
  .proj-section .lede { font-size: 16px; line-height: 1.5; }
  .proj-section p { font-size: 14.5px; }
  .proj-points { grid-template-columns: 1fr !important; gap: 18px; }
  .proj-points .proj-point h4 { font-size: 17px; }
  .proj-stats { grid-template-columns: 1fr 1fr !important; gap: 14px; }
  .proj-stat .v { font-size: clamp(28px, 8vw, 42px); }
  .proj-stat .k { font-size: 11px; }
  .gallery, .gallery--3 { column-count: 1; }
  .media-row { grid-template-columns: 1fr; gap: 14px; }
  .media-full,
  .media-mid { padding: 12px !important; }
  .media-row.is-light figure,
  .media-mid.is-light,
  .media-full.is-light { padding: 10px !important; }

  /* Common project-page custom grids (defined inline in each page) */
  .persona-grid,
  .principle-grid,
  .cat-grid,
  .hierarchy,
  .trust-grid,
  .palette,
  .data-grid,
  .quarter-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .path-row { grid-template-columns: 60px 1fr !important; gap: 14px; }
  .stage-row { grid-template-columns: 1fr !important; gap: 10px !important; }
  .principle { padding: 18px !important; }
  .cat { padding: 14px 16px !important; font-size: 14px !important; }
  .trust { padding: 16px !important; }
  .hier-item { padding: 14px !important; }

  .proj-next {
    padding: 40px 20px 56px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .proj-next a { font-size: clamp(24px, 7vw, 38px) !important; }

  .site-foot { padding: 36px 20px 22px; }
  .site-foot__grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 24px; }

  /* Demo Rising / specific featured fixes */
  .featured__cta { padding: 12px 18px; font-size: 12px; }
  .selected-card__cta { font-size: 10px !important; }

  /* Block long mono lines from forcing horizontal scroll */
  .figcap, .proj-stat .k, .proj-meta__cell .k,
  .featured__meta, .selected-card__meta,
  .panel__index, .panel__edge {
    overflow-wrap: anywhere;
  }

  /* Compressed eyebrow */
  .eyebrow { font-size: 10.5px; letter-spacing: .1em; }
}

/* ========================================
   PHONE — ≤ 600px (tightens further)
   ======================================== */
@media (max-width: 600px) {
  .selected__grid { grid-template-columns: 1fr; gap: 14px; }
  .selected-card__name { font-size: 17px !important; }
  .selected-card__desc { font-size: 13px !important; }
  .selected-card__media { padding: 14px !important; }
  .selected-card__body { padding: 14px 16px 18px !important; }
  .selected-card__cta { font-size: 11px !important; }

  .proj-meta { grid-template-columns: 1fr; gap: 14px; }
  .about__meta { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: 1fr; gap: 12px; }

  .proj-stats { grid-template-columns: 1fr 1fr !important; }
  .panel { padding: 76px 18px 56px; }
  .proj-hero { padding: 92px 18px 32px; }
  .proj-section { padding: 36px 18px; }
  .proj-section .h-display { font-size: clamp(26px, 9vw, 38px); }

  .hero__title { font-size: 15vw; }
  .proj-hero__title { font-size: 12vw; }
  .featured__title { font-size: 13vw; }

  .hud-tl .hud__brand { font-size: 16px; }
  .hud-tl > span:not(.hud__brand):not(.led):not(.hud__sep) { font-size: 10.5px; }
  .hud__live { padding: 4px 8px; font-size: 10px; }
}

/* ========================================
   ULTRA-SMALL — ≤ 380px (iPhone SE, fold)
   ======================================== */
@media (max-width: 380px) {
  .panel { padding: 72px 16px 48px; }
  .proj-section { padding: 32px 16px; }
  .hero__title { font-size: 16vw; }
  .selected-card__media { padding: 12px !important; }
  .proj-stat .v { font-size: 26px; }
  .hud-tl > span:not(.hud__brand):not(.led):not(.hud__sep) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
