/* ============================================================
   YV17Labs — company site stylesheet
   Dark theme: particle hero, terminal-style labels, glass cards.
   ============================================================ */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #050709;
  --bg-deep: #030405;
  --text: #eef2f5;
  --text-soft: #c3ccd3;
  --muted: #8d9aa5;
  --dim: #5b6873;
  --line: rgba(190, 215, 230, 0.10);
  --line-strong: rgba(190, 215, 230, 0.20);
  --accent: #5eead4;
  --accent-soft: rgba(94, 234, 212, 0.14);

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --topbar-h: 64px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
  overflow-x: hidden;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(94, 234, 212, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===== Top bar ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.topbar.is-scrolled {
  background: rgba(5, 7, 9, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 28px; min-width: 0; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; }
.topbar-hint {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.keys { display: flex; align-items: center; gap: 8px; }
.key {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.key kbd { font: inherit; color: var(--accent); }
.key kbd::before { content: "["; color: var(--dim); }
.key kbd::after { content: "]"; color: var(--dim); }
.key:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.key.is-pressed { background: var(--accent-soft); border-color: var(--accent); color: #fff; }

/* ===== Section index (bottom-left, desktop) ===== */
.index {
  position: fixed; left: 24px; bottom: 24px; z-index: 50;
  padding: 14px 18px 14px 14px;
  background: rgba(8, 11, 14, 0.62);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
}
.index a {
  display: flex; align-items: center; gap: 12px;
  padding: 3px 0;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s;
}
.index a::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}
.index a:hover { color: var(--text-soft); }
.index a.is-active { color: var(--text); }
.index a.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scale(1.6);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(94, 234, 212, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(120, 160, 200, 0.08), transparent 70%);
}
.scene {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.scene.is-ready { opacity: 1; }
/* Haze over the horizon, on top of the scene */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 28% at 50% 66%, rgba(120, 175, 205, 0.12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 22vh; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: calc(var(--topbar-h) + 24px) 16px 120px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.6vw;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #dfe7ec;
  background: linear-gradient(180deg, #f6f9fb 0%, #c4d1da 42%, #5f7584 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 36px rgba(140, 200, 230, 0.10));
  margin-bottom: clamp(24px, 5vh, 64px);
  user-select: none;
}
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.kicker::before, .kicker::after {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.kicker::after { transform: scaleX(-1); }
.hero-headline {
  max-width: 12em;
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.32), 0 0 70px rgba(150, 210, 255, 0.18);
}
.hero-sub {
  max-width: 700px;
  margin-top: 22px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--text-soft);
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8);
}
.cmd {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 14px;
  color: #e9eff3;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cmd-prompt { color: var(--accent); }
.cmd-arrow { color: var(--dim); transition: color 0.2s, transform 0.2s; }
.cmd:hover {
  border-color: rgba(94, 234, 212, 0.6);
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.18);
  transform: translateY(-1px);
}
.cmd:hover .cmd-arrow { color: var(--accent); transform: translateY(2px); }
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 32px;
}
.hero-actions .btn:not(.btn-primary) { background: rgba(0, 0, 0, 0.6); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px;
  width: 24px; height: 56px; margin-left: -12px;
  display: flex; justify-content: center;
}
.scroll-cue span {
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
  position: relative; overflow: hidden;
}
.scroll-cue span::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue { to { top: 110%; } }

/* No WebGL: keep a static glow instead of the scene */
.no-webgl .scene { display: none; }

/* ===== Sections ===== */
.section { position: relative; padding: clamp(96px, 15vh, 168px) 0; }
.label {
  display: flex; align-items: center;
  margin-bottom: 28px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.label span { color: var(--accent); display: inline-flex; align-items: center; }
.label span::after {
  content: ""; width: 36px; height: 1px; margin: 0 14px;
  background: var(--line-strong);
}
.section-title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-sub {
  max-width: 560px;
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ===== Manifesto ===== */
.manifesto-text {
  max-width: 1040px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.1vw, 42px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.025em;
}
.js .manifesto-text .w { opacity: 0.14; transition: opacity 0.4s, text-shadow 0.4s; }
.js .manifesto-text .w.on { opacity: 1; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.facts li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
}
.facts li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

/* ===== Cards (shared) ===== */
.card {
  --p-accent: var(--accent);
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}
/* Cursor spotlight — --mx/--my are set by app.js */
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--p-accent) 16%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: color-mix(in srgb, var(--p-accent) 45%, transparent); }

/* ===== Focus ===== */
.focus-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px;
}
.focus-card { padding: 32px; display: flex; flex-direction: column; }
.focus-index {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; color: var(--accent);
}
.focus-card h3 {
  margin: 20px 0 12px;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  line-height: 1.25; letter-spacing: -0.02em;
}
.focus-card p { color: var(--muted); font-size: 15.5px; }
.focus-projects {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto; padding-top: 28px;
}
.focus-projects a {
  position: relative;
  padding: 4px 10px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  transition: color 0.2s, border-color 0.2s;
}
.focus-projects a:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Projects ===== */
.project-featured {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  margin-top: 56px;
}
.project-body { padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.project-flag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--p-accent) 60%, #fff);
}
.project-flag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--p-accent); box-shadow: 0 0 12px var(--p-accent);
}
.project-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15;
}
.project-featured .project-name { font-size: clamp(36px, 4.2vw, 56px); font-weight: 700; letter-spacing: -0.035em; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.project-stack li {
  padding: 2px 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.project-desc { color: var(--text-soft); font-size: 15.5px; line-height: 1.65; }
.project-featured .project-desc { font-size: 17px; max-width: 540px; }
.project-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.project-facts li { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.project-facts li::before { content: "▸ "; color: var(--p-accent); }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

.project-visual {
  position: relative;
  display: grid; place-items: center;
  min-height: 320px;
  border-left: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--p-accent) 30%, transparent), transparent 60%);
  overflow: hidden;
}
.project-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
}
.project-visual::after {
  content: ""; position: absolute;
  width: 78%; aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.project-visual img {
  position: relative; z-index: 1;
  width: min(56%, 240px); height: auto;
  filter: drop-shadow(0 24px 60px color-mix(in srgb, var(--p-accent) 55%, transparent));
  animation: float 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

.project-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 20px;
}
.project-grid .project { padding: 30px; display: flex; flex-direction: column; gap: 18px; }
/* Odd card count: the last one (the GitHub card) spans the row instead of standing alone */
.project-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.project-head { display: flex; align-items: center; gap: 16px; }
.project-head .project-name { margin-bottom: 6px; }
.project-logo {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--p-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--p-accent) 35%, transparent);
}
.project-logo img { width: 100%; height: 100%; }
.project-logo span {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--p-accent);
}
.project-more { border-style: dashed; }
.project-more .project-logo span { color: var(--accent); }
.project-more-url {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--accent);
}
.stack-note {
  max-width: 780px;
  margin-top: 40px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  color: var(--muted);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); }
.btn-primary { background: var(--text); color: var(--bg); border-color: transparent; }
.btn-primary:hover { background: #fff; border-color: transparent; box-shadow: 0 0 28px rgba(255, 255, 255, 0.25); }

/* ===== Contact ===== */
.contact { text-align: center; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; bottom: -30%;
  width: 120%; height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(94, 234, 212, 0.16), transparent 62%);
  pointer-events: none;
}
.contact .label { justify-content: center; }
.contact .section-title, .contact .section-sub { margin-left: auto; margin-right: auto; }
.contact-email {
  position: relative;
  display: inline-block;
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #f6f9fb 0%, #9fb2bf 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-email::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0.2); opacity: 0.5;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.contact-email:hover::after { transform: scaleX(1); opacity: 1; }
.contact-actions {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 36px;
}

/* ===== Documents (privacy, legal) ===== */
.doc {
  position: relative;
  padding: calc(var(--topbar-h) + 88px) 0 110px;
}
.doc::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 420px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(94, 234, 212, 0.08), transparent 70%);
  pointer-events: none;
}
.doc-container { position: relative; max-width: 780px; }
.doc-header { padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.doc-header h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.1;
}
.doc-updated {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim);
}
.prose { color: #a9b5be; font-size: 16px; line-height: 1.75; }
.prose-lead { color: var(--text); font-size: 17.5px; margin-bottom: 44px; }
.prose section { margin-bottom: 40px; }
.prose h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose li { margin-bottom: 6px; padding-left: 4px; }
.prose li::marker { color: var(--accent); }
.prose strong, .prose em { color: var(--text); }
.prose strong { font-weight: 600; }
.prose a {
  color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(94, 234, 212, 0.35);
  transition: text-decoration-color 0.2s;
}
.prose a:hover { text-decoration-color: var(--accent); }
.prose code {
  padding: 2px 6px;
  font-family: var(--font-mono); font-size: 0.88em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* ===== Error page ===== */
.hero-error .hero-inner { justify-content: center; padding-bottom: 18vh; }
.hero-error .wordmark { font-size: clamp(120px, 28vw, 340px); margin-bottom: 12px; }

/* ===== Footer ===== */
.footer {
  position: relative;
  padding: 72px 0 32px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 118px; height: auto; opacity: 0.92; }
.footer-brand p { max-width: 280px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
}
.footer-col a { display: block; padding: 4px 0; font-size: 14.5px; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 56px; padding-top: 24px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--dim);
}
.footer-bottom::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px;
  height: 1px; background: var(--line);
}
.footer-bottom a { color: var(--muted); letter-spacing: 0.1em; }
.footer-bottom a:hover { color: var(--text); }

/* ===== Scroll reveal (app.js adds .is-visible) ===== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), border-color 0.3s;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (min-width: 1360px) {
  .index { display: block; }
}
@media (max-width: 1100px) {
  .topbar-hint { display: none; }
}
@media (max-width: 960px) {
  .focus-grid { grid-template-columns: 1fr; }
  .project-featured { grid-template-columns: 1fr; }
  .project-visual { order: -1; min-height: 240px; border-left: 0; border-bottom: 1px solid var(--line); }
  .project-body { padding: 32px; }
}
@media (max-width: 760px) {
  :root { --topbar-h: 56px; }
  .topbar { padding: 0 16px; }
  .brand span { display: none; }
  .keys { gap: 6px; }
  .key kbd, .key-focus, .key-contact { display: none; }
  .key { padding: 6px 10px; }
  .hero-inner { padding-bottom: 96px; }
  .wordmark { font-size: 12.4vw; margin-bottom: clamp(36px, 9vh, 72px); }
  .kicker { gap: 8px; font-size: 10px; letter-spacing: 0.08em; }
  .kicker::before, .kicker::after { width: 12px; }
  .cmd { font-size: 13px; }
  .container { padding: 0 16px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid .project, .focus-card { padding: 24px; }
  .project-body { padding: 24px; }
  .section-sub { font-size: 16.5px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; }
  .footer-bottom::before { left: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .manifesto-text .w { opacity: 1; }
  .scene { transition: none; }
}
