/* ==========================================================================
   Outcre — site styles
   One stylesheet for every page. Tokens first, then layout, then components.
   ========================================================================== */

:root {
  --bg: #07080a;
  --bg-2: #0d0f12;
  --surface: #13161a;
  --surface-2: #1a1e23;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f1f4f3;
  --muted: #9aa4a1;
  --faint: #66706d;
  --accent: #8cffda;
  --accent-ink: #03140e;
  --accent-soft: rgba(140, 255, 218, 0.12);
  --glitch: #ff5bd6;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.accent { color: var(--accent); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--accent); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); }
.nav .btn { margin-left: 10px; color: var(--accent-ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 24px;
    background: rgba(7, 8, 10, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
  }
  .is-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { background: none; color: var(--accent); }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; border-radius: 999px; }
}

/* --------------------------------------------------------------------------
   Buttons, tags, labels
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(140, 255, 218, 0.6); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}
.tag-live { color: var(--accent); border-color: rgba(140, 255, 218, 0.4); background: var(--accent-soft); }
.tag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-soon { color: #ffd38c; border-color: rgba(255, 211, 140, 0.35); }
.tag-lab { color: #c7b3ff; border-color: rgba(199, 179, 255, 0.35); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { font-size: clamp(36px, 5.4vw, 68px); max-width: 14ch; margin-top: 16px; }
.section-head p { color: var(--muted); max-width: 42ch; margin: 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media video,
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 8, 10, 0.55) 0%, rgba(7, 8, 10, 0.25) 35%, rgba(7, 8, 10, 0.92) 85%, var(--bg) 100%),
    radial-gradient(120% 80% at 0% 100%, rgba(7, 8, 10, 0.9), transparent 60%);
}
.hero::after {
  /* faint scanlines — the "glitch" signature, kept subtle */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.hero h1 {
  font-size: clamp(46px, 8.6vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 12ch;
  margin: 22px 0 28px;
}
.hero h1 .glitch { position: relative; color: var(--accent); white-space: nowrap; }
.hero-lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: #cdd5d2;
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.hero-proof strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

/* Glitch flicker on the accent word. Disabled for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .glitch::before,
  .glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
  }
  .glitch::before { color: var(--glitch); animation: glitch-a 6s infinite steps(1); }
  .glitch::after { color: #59a8ff; animation: glitch-b 6s infinite steps(1); }
}
@keyframes glitch-a {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: none; }
  92% { opacity: 0.8; transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); }
  94% { opacity: 0.8; transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); }
  96% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: none; }
  93% { opacity: 0.7; transform: translate(4px, 0); clip-path: inset(40% 0 30% 0); }
  95% { opacity: 0.7; transform: translate(-3px, 1px); clip-path: inset(5% 0 75% 0); }
  97% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Featured work (home) — large alternating rows
   -------------------------------------------------------------------------- */

.feature-list { display: grid; gap: clamp(64px, 9vw, 120px); }

.feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.feature:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.feature:nth-child(even) .feature-media { order: 2; }

.feature-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.feature-media img,
.feature-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.feature-media:hover img,
.feature-media:hover video { transform: scale(1.04); }

.feature-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.1em;
}
.feature h3 { font-size: clamp(32px, 4vw, 52px); margin: 14px 0 16px; }
.feature p { color: var(--muted); max-width: 44ch; }
.feature .tags { margin: 22px 0 30px; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media (max-width: 860px) {
  .feature,
  .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

/* --------------------------------------------------------------------------
   Project cards (grid)
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.card:hover { border-color: rgba(140, 255, 218, 0.4); transform: translateY(-4px); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 24px; letter-spacing: -0.015em; }
.card-body p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--faint); }
.card a.card-link::after { content: ""; position: absolute; inset: 0; }

/* --------------------------------------------------------------------------
   Studio / services
   -------------------------------------------------------------------------- */

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.studio-statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.studio-statement em { font-style: normal; color: var(--accent); }
.studio-copy { color: var(--muted); }
.studio-copy p:last-child { margin-bottom: 0; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(56px, 8vw, 96px);
}
.service {
  padding: 30px 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}
.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 { font-size: 22px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15.5px; margin: 0; }

@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Hub posts
   -------------------------------------------------------------------------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post:hover .post-media img { transform: scale(1.05); }
.post time { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.post h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; transition: color 0.2s; }
.post:hover h3 { color: var(--accent); }
.post a::after { content: ""; position: absolute; inset: 0; }

@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }
@media (min-width: 560px) and (max-width: 900px) {
  .post { display: grid; grid-template-columns: 220px 1fr; align-items: center; }
  .post-media { grid-row: span 2; }
}

/* --------------------------------------------------------------------------
   Contact CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 90px);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(140, 255, 218, 0.18), transparent 55%),
    radial-gradient(60% 80% at 0% 100%, rgba(255, 91, 214, 0.1), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta h2 { font-size: clamp(40px, 7vw, 96px); max-width: 13ch; margin: 18px 0 24px; letter-spacing: -0.035em; }
.cta p { color: var(--muted); max-width: 48ch; font-size: 18px; }
.cta-mail {
  display: inline-block;
  margin: 18px 0 34px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 500;
  color: var(--accent);
  border-bottom: 2px solid rgba(140, 255, 218, 0.35);
  transition: border-color 0.2s;
  word-break: break-all;
}
.cta-mail:hover { border-color: var(--accent); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: var(--text); border-color: var(--text); }
.socials svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  color: var(--muted);
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--accent); }
.footer-brand p { max-width: 32ch; margin-top: 16px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(48px, 8vw, 112px); letter-spacing: -0.035em; margin: 18px 0 22px; }
.page-hero p { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 52ch; margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  font: inherit;
  font-size: 14.5px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.card[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Project page
   -------------------------------------------------------------------------- */

.project-hero { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 0; }
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.project-hero h1 { font-size: clamp(48px, 8.4vw, 120px); letter-spacing: -0.035em; margin: 16px 0 20px; }
.project-hero .lede { font-size: clamp(19px, 1.8vw, 24px); color: #cdd5d2; max-width: 40ch; margin: 0; }
.project-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.project-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.project-video video,
.project-video img { width: 100%; height: 100%; object-fit: cover; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 20px;
}
.facts div { padding: 20px 22px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.prose-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 720px) 1fr;
}
.prose-grid > * { grid-column: 2; }
.prose { font-size: 18px; color: #c9d1ce; }
.prose h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--text); margin: 72px 0 22px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; color: var(--text); margin: 36px 0 12px; }
.prose p.big { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.45; color: var(--text); font-family: var(--font-display); letter-spacing: -0.01em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--accent); }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.prose blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.4;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin: 8px 0 0;
}
.feature-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.feature-card .k {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15.5px; margin: 0; }

.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 8px; }
.zone {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.zone b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--text); }
.zone span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.zone:nth-child(1) { border-color: rgba(255, 91, 214, 0.45); }
.zone:nth-child(2) { border-color: rgba(255, 211, 140, 0.45); }
.zone:nth-child(3) { border-color: rgba(140, 255, 218, 0.45); }
@media (max-width: 640px) { .zones { grid-template-columns: 1fr; } }

.store-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(140, 255, 218, 0.16), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.store-cta h2 { font-size: clamp(26px, 3vw, 38px); }
.store-cta p { color: var(--muted); margin: 8px 0 0; }

.next-project {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.next-project span { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.next-project h2 { font-size: clamp(36px, 6vw, 80px); margin-top: 10px; transition: color 0.2s; }
.next-project:hover h2 { color: var(--accent); }
.next-project .arrow {
  width: clamp(56px, 7vw, 88px);
  height: clamp(56px, 7vw, 88px);
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.next-project:hover .arrow { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
.next-project .arrow svg { width: 40%; height: 40%; }

/* --------------------------------------------------------------------------
   Reveal on scroll — only when JS confirms motion is OK
   -------------------------------------------------------------------------- */

.js-motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-motion .reveal.is-in { opacity: 1; transform: none; }

main { overflow-x: clip; }

/* --------------------------------------------------------------------------
   The slash — the original homepage's diagonal line. A white bar set to
   "difference", so it inverts whatever it cuts through, and drifts with
   the mouse. Used once per hero and once on the contact card.
   -------------------------------------------------------------------------- */

.slash {
  position: absolute;
  top: 50%;
  left: 38%;
  z-index: 1;
  width: clamp(24px, 3vw, 52px);
  height: 170%;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: translate 0.2s linear;
}
.slash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translate(-50%, -50%) rotate(30deg);
  transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .slash::before { animation: slash-in 1.3s var(--ease) 0.25s both; }
}
@keyframes slash-in {
  from { transform: translate(-50%, -50%) rotate(30deg) scaleY(0); }
  to { transform: translate(-50%, -50%) rotate(30deg) scaleY(1); }
}

.cta .slash { left: 78%; height: 240%; width: clamp(18px, 2.2vw, 36px); }

.slash-slim { width: clamp(8px, 0.9vw, 14px); height: 320%; left: 52%; z-index: 0; }
.project-hero-top,
.page-hero .wrap { position: relative; }
.page-hero { overflow: hidden; }

@media (max-width: 820px) {
  .hero .slash { left: 62%; }
  .cta .slash { left: 88%; }
  .slash-slim { left: 82%; }
}

/* The eyebrow marker becomes a small slash, echoing the hero line */
.eyebrow::before {
  width: 3px;
  height: 15px;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(30deg);
}
