/* applyai.today — v2 portfolio */

:root {
  --bg: #f5f2ec;
  --bg-alt: #efebe2;
  --bg-deep: #e8e2d2;
  --ink: #121210;
  --ink-soft: #4a4842;
  --ink-mute: #8a857a;
  --rule: #c9c2b2;
  --rule-soft: #ddd6c6;
  --accent: #d4571f;
  --accent-soft: #ebd5c2;
  --accent-hot: #9b2d00;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  color-scheme: light;
}
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .5s ease, color .5s ease;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.container-wide { max-width: 1680px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) {
  .container, .container-wide { padding: 0 20px; }
}

/* ========== NAV ========== */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in oklch, var(--bg), transparent 15%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
nav.top.scrolled { border-bottom-color: var(--rule); }
.wordmark {
  font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em;
  display: flex; align-items: baseline;
}
.wordmark .today { font-style: italic; color: var(--accent); }
.wordmark .dot { color: var(--ink-mute); font-style: normal; margin: 0 1px; }
nav .links { display: flex; gap: 28px; font-size: 13px; font-weight: 500; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
nav .links a { transition: color .2s; position: relative; }
nav .links a:hover { color: var(--accent); }
nav .cta-pill {
  font-size: 13px; font-weight: 600;
  padding: 10px 18px; border: 1px solid var(--ink); border-radius: 100px;
  background: var(--ink); color: var(--bg);
  transition: all .2s; white-space: nowrap;
}
nav .cta-pill:hover { background: var(--accent); border-color: var(--accent); color: #0a0a09; }
@media (max-width: 900px) {
  nav.top { padding: 14px 20px; }
  nav .links { display: none; }
}

/* ========== TICKER BAR ========== */
.ticker {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  background: var(--accent); color: #0a0a09;
  padding: 6px 0; overflow: hidden;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.ticker-track {
  display: flex; gap: 40px; white-space: nowrap; width: max-content;
  animation: tickerScroll 40s linear infinite;
}
.ticker-item::before { content: "●"; margin-right: 12px; opacity: 0.5; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }
nav.top { top: 26px; }

/* ========== HERO ========== */
.hero { padding: 140px 0 80px; position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-mute); text-transform: uppercase;
  margin-bottom: 40px;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent), transparent 30%); }
  70% { box-shadow: 0 0 0 10px color-mix(in oklch, var(--accent), transparent 100%); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent), transparent 100%); }
}

.hero-lockup {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-left h1 {
  font-family: var(--serif);
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.hero-left h1 .amp { display: block; font-style: italic; color: var(--accent); }
.hero-left h1 .today-line { display: block; font-style: italic; }
.hero-left h1 .dot { color: var(--ink-mute); font-style: normal; }
.hero-tagline {
  font-family: var(--mono); font-size: 13px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.15em;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule);
  max-width: 560px;
}

.hero-right {
  position: relative;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 420px;
  margin-left: auto;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.portrait-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.1) contrast(1.05);
  transition: filter .6s;
}
.portrait-frame:hover img { filter: grayscale(0) contrast(1.1); }
.portrait-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: normal;
  background: linear-gradient(180deg, transparent 60%, color-mix(in oklch, var(--bg), transparent 60%) 100%);
}

.portrait-tag {
  position: absolute; bottom: -1px; left: -1px; right: -1px;
  padding: 14px 18px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.portrait-tag strong { color: var(--ink); font-weight: 500; font-family: var(--serif); font-style: italic; font-size: 20px; text-transform: none; letter-spacing: 0; }

.portrait-badge {
  position: absolute; top: 16px; right: -px; transform: rotate(4deg);
  background: var(--accent); color: #0a0a09;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 8px 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 4px 20px color-mix(in oklch, var(--accent), transparent 70%);
  z-index: 2;
  animation: sway 4s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(4deg); }
  50% { transform: rotate(-2deg); }
}

.hero-meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 72px;
}
.hero-meta-cell {
  padding: 24px 20px 20px;
  border-right: 1px solid var(--rule);
}
.hero-meta-cell:last-child { border-right: none; }
.hero-meta-cell .label {
  font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px;
}
.hero-meta-cell .value {
  font-family: var(--serif); font-size: 28px; letter-spacing: -0.02em;
  font-weight: 400;
}
.hero-meta-cell .value em { font-style: italic; color: var(--accent); }

.hero-ctas {
  margin-top: 40px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.btn-primary {
  padding: 16px 26px; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 14px; border-radius: 100px;
  transition: all .25s; display: inline-flex; align-items: center; gap: 10px;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--accent); color: #0a0a09; transform: translateY(-1px); }
.btn-primary .arrow { transition: transform .25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-secondary {
  padding: 16px 24px; font-weight: 500; font-size: 14px;
  border-bottom: 1px solid var(--ink); border-radius: 0;
  transition: all .2s;
}
.btn-secondary:hover { color: var(--accent); border-color: var(--accent); }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.2em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bounce 2.5s ease-in-out infinite;
}
.scroll-hint .line { width: 1px; height: 30px; background: var(--ink-mute); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 900px) {
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-lockup { grid-template-columns: 1fr; gap: 32px; }
  .portrait-frame { max-width: 320px; margin: 0; }
  .hero-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-meta-cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .hero-meta-cell:nth-child(2) { border-right: none; }
  .scroll-hint { display: none; }
}

/* ========== MODULE ========== */
section.module { padding: 120px 0; border-top: 1px solid var(--rule); position: relative; }
.section-header {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 40px;
  align-items: baseline; margin-bottom: 80px;
}
.section-number {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.1em;
}
.section-title {
  font-family: var(--serif); font-size: clamp(44px, 5.5vw, 88px);
  line-height: 0.95; letter-spacing: -0.025em; font-weight: 400;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-kicker {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.12em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  section.module { padding: 72px 0; }
  .section-header { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
  .section-kicker { display: none; }
}

/* ========== MARQUEE ========== */
.marquee {
  overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 28px 0; background: var(--bg-alt);
}
.marquee-track {
  display: flex; gap: 56px;
  animation: scroll 50s linear infinite;
  white-space: nowrap; width: max-content;
}
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--serif); font-size: 44px; font-style: italic;
  color: var(--ink); display: flex; align-items: center; gap: 56px;
  letter-spacing: -0.01em;
}
.marquee-item::after {
  content: "✦"; color: var(--accent); font-style: normal; font-size: 24px;
}

/* ========== ABOUT / STORY ========== */
.story-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.story-side { position: sticky; top: 140px; }
.story-side .quote-mark {
  font-family: var(--serif); font-size: 180px; line-height: 0.8;
  color: var(--accent); font-style: italic;
  margin-bottom: -20px;
}
.story-side h3 {
  font-family: var(--serif); font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 400;
  margin-bottom: 24px; font-style: italic;
}
.story-side .attribution {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.12em;
  padding-top: 16px; border-top: 1px solid var(--rule);
}

.story-body p {
  font-size: 19px; line-height: 1.6; color: var(--ink-soft);
  margin-bottom: 22px; max-width: 640px;
  font-family: var(--serif);
}
.story-body p.lead {
  font-size: 28px; line-height: 1.35; color: var(--ink);
  margin-bottom: 40px; letter-spacing: -0.01em;
}
.story-body p b { color: var(--ink); font-weight: 400; font-style: italic; }
.story-body .pull {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 24px;
  margin: 40px 0; font-family: var(--serif); font-size: 26px;
  line-height: 1.3; font-style: italic; color: var(--ink);
  letter-spacing: -0.01em;
}

.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule);
  margin-top: 56px; border: 1px solid var(--rule);
}
.stat {
  background: var(--bg); padding: 28px 20px;
}
.stat .big {
  font-family: var(--serif); font-size: 52px; line-height: 1;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px;
}
.stat .big em { color: var(--accent); font-style: italic; }
.stat .label {
  font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-side { position: static; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ========== EXPERIENCE TIMELINE ========== */
.timeline { position: relative; }
.timeline-row {
  display: grid; grid-template-columns: 180px 1fr 1fr;
  gap: 48px; padding: 36px 0;
  border-top: 1px solid var(--rule);
  transition: background .3s;
  cursor: pointer;
  position: relative;
}
.timeline-row:last-child { border-bottom: 1px solid var(--rule); }
.timeline-row::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent-soft); opacity: 0; transition: opacity .3s;
  pointer-events: none;
  mix-blend-mode: normal;
}
.timeline-row:hover::before { opacity: 1; }
.timeline-date {
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.08em; text-transform: uppercase; padding-top: 10px;
  position: relative;
}
.timeline-row.current .timeline-date::after {
  content: "● LIVE"; position: absolute; top: 28px; left: 0;
  color: var(--accent); font-weight: 500; letter-spacing: 0.1em;
}
.timeline-main h4 {
  font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 400;
  margin-bottom: 6px;
}
.timeline-main h4 em { font-style: italic; color: var(--accent); }
.timeline-main .company {
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.timeline-detail p {
  font-size: 15px; line-height: 1.55; color: var(--ink-soft);
  margin-bottom: 10px;
}
.timeline-detail .tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
}
.timeline-detail .tag {
  font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
  padding: 4px 9px; border: 1px solid var(--rule); border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
@media (max-width: 900px) {
  .timeline-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
}

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  border: 1px solid var(--rule);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  min-height: 280px;
  background: var(--bg-alt);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s;
  overflow: hidden;
}
.project-card:hover { transform: translateY(-4px); background: var(--bg-deep); border-color: var(--accent); }
.project-card.big { grid-column: span 7; min-height: 360px; }
.project-card.med { grid-column: span 5; }
.project-card.small { grid-column: span 4; min-height: 240px; }
.project-card.wide { grid-column: span 8; }
.project-card .code {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.project-card h5 {
  font-family: var(--serif); font-size: clamp(26px, 2vw, 36px);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 400;
  margin-bottom: 12px;
}
.project-card h5 em { font-style: italic; color: var(--accent); }
.project-card p {
  font-size: 14px; color: var(--ink-soft); line-height: 1.55;
  margin-bottom: auto;
  max-width: 480px;
}
.project-card .stack {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--rule);
}
.project-card .chip {
  font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
  padding: 3px 8px; border: 1px solid var(--rule); border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.project-card .corner {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.project-card .viz {
  margin-top: 20px; height: 60px;
  display: flex; align-items: flex-end; gap: 4px;
}
.project-card .bar {
  flex: 1; background: var(--accent); border-radius: 2px 2px 0 0;
  opacity: 0.8;
  transition: opacity .3s, transform .3s;
}
.project-card:hover .bar { opacity: 1; }
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card, .project-card.big, .project-card.med, .project-card.small, .project-card.wide {
    grid-column: span 1; min-height: 220px;
  }
}

/* ========== CAPABILITIES ========== */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.cap-card {
  background: var(--bg);
  padding: 40px 32px 36px;
  display: flex; flex-direction: column; min-height: 260px;
  transition: background .3s;
  position: relative;
}
.cap-card:hover { background: var(--bg-alt); }
.cap-card .num {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.12em; margin-bottom: 28px;
}
.cap-card h4 {
  font-family: var(--serif); font-size: 30px; line-height: 1.05;
  letter-spacing: -0.02em; font-weight: 400; margin-bottom: 14px;
}
.cap-card h4 em { font-style: italic; color: var(--accent); }
.cap-card p {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.55;
  margin-bottom: auto;
}
.cap-card .tag {
  position: absolute; top: 32px; right: 28px;
  font-family: var(--mono); font-size: 10px;
  padding: 4px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.cap-card .tag.hire { background: var(--accent); color: #0a0a09; }
.cap-card .tag.hire-consult { background: var(--bg-deep); color: var(--ink-soft); border: 1px solid var(--rule); }
.cap-card .meta {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 28px; padding-top: 14px; border-top: 1px dashed var(--rule);
  display: flex; justify-content: space-between;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr; } }

/* ========== DEMO ========== */
.demo {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.demo-header {
  padding: 18px 24px; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.demo-header .dots { display: flex; gap: 6px; }
.demo-header .dot-ui { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.demo-header .dot-ui.live { background: var(--accent); animation: pulse 2s infinite; }
.demo-body { padding: 48px 56px 56px; }
.demo-question {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 400;
  margin-bottom: 32px;
}
.demo-question em { font-style: italic; color: var(--accent); }
.demo-input-wrap { position: relative; }
.demo-input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--ink);
  padding: 18px 0; font-family: var(--sans); font-size: 18px;
  color: var(--ink); outline: none; font-weight: 500;
}
.demo-input::placeholder { color: var(--ink-mute); font-weight: 400; }
.demo-input:focus { border-color: var(--accent); }
.demo-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hint-chip {
  padding: 8px 14px; border: 1px solid var(--rule);
  border-radius: 100px; font-size: 13px; color: var(--ink-soft);
  transition: all .2s; background: transparent;
}
.hint-chip:hover { border-color: var(--accent); color: var(--accent); }
.demo-submit {
  margin-top: 32px; padding: 14px 24px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 14px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all .2s;
}
.demo-submit:hover { background: var(--accent); color: #0a0a09; }
.demo-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.demo-output { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); display: none; }
.demo-output.visible { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.demo-output-label {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.demo-output-label .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.demo-score { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; margin-bottom: 32px; }
.demo-score-big {
  font-family: var(--serif); font-size: 120px; line-height: 0.9;
  letter-spacing: -0.04em; color: var(--accent);
}
.demo-score-big .slash { color: var(--ink-mute); font-size: 60px; }
.demo-score-detail h5 {
  font-family: var(--serif); font-size: 28px; font-style: italic;
  margin-bottom: 12px; font-weight: 400; line-height: 1.2;
}
.demo-score-detail p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.demo-recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.demo-rec {
  background: var(--bg); border: 1px solid var(--rule);
  padding: 20px;
}
.demo-rec .step {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px;
}
.demo-rec h6 {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  line-height: 1.15; margin-bottom: 8px;
}
.demo-rec p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.demo-thinking {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.spinner {
  width: 14px; height: 14px; border: 1.5px solid var(--rule);
  border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .demo-body { padding: 32px 20px 36px; }
  .demo-score { grid-template-columns: 1fr; gap: 16px; }
  .demo-score-big { font-size: 72px; }
  .demo-recs { grid-template-columns: 1fr; }
}

/* ========== STACK / TOOLS ========== */
.stack-marquee { overflow: hidden; padding: 32px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stack-track {
  display: flex; gap: 48px; animation: scroll 40s linear infinite;
  white-space: nowrap; width: max-content;
}
.stack-pill {
  font-family: var(--mono); font-size: 14px; color: var(--ink);
  padding: 10px 18px; border: 1px solid var(--rule); border-radius: 100px;
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.stack-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ========== FAQ ========== */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 28px 0; cursor: pointer; gap: 24px;
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2; letter-spacing: -0.015em;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .plus {
  font-family: var(--mono); font-size: 22px; color: var(--ink-mute);
  transition: transform .3s; flex-shrink: 0;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a-inner {
  padding: 0 80px 32px 0; font-size: 16px; color: var(--ink-soft); line-height: 1.6;
  max-width: 720px;
}
.faq-item.open .faq-a { max-height: 400px; }

/* ========== CTA FINAL ========== */
.cta-final {
  padding: 140px 0 160px; text-align: center;
  border-top: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.cta-final .bg-word {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 40vw; line-height: 1;
  color: var(--bg-alt); font-style: italic;
  z-index: 0; white-space: nowrap;
}
.cta-final > .container { position: relative; z-index: 1; }
.cta-final h2 {
  font-family: var(--serif); font-size: clamp(56px, 9vw, 140px);
  line-height: 0.9; letter-spacing: -0.035em; font-weight: 400;
  margin-bottom: 32px;
}
.cta-final h2 em { font-style: italic; color: var(--accent); }
.cta-final .sub {
  font-family: var(--serif); font-style: italic; font-size: 24px;
  color: var(--ink-soft); max-width: 600px; margin: 0 auto 44px;
  line-height: 1.35;
}
.cta-final-meta {
  margin-top: 40px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
}
.cta-final-meta a:hover { color: var(--accent); }

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--rule); padding: 48px 0 32px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .wordmark { font-size: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--ink-soft); max-width: 340px; }
footer h6 {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px;
  font-weight: 500;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; font-size: 14px; }
footer li a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ========== SCROLL REVEAL ========== */
.reveal { opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
.js-reveal .reveal.in { opacity: 1; transform: translateY(0); }
.reveal-slow { transition-duration: 1.2s; }
.stagger > * { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js-reveal .stagger:not(.in) > * { opacity: 0; transform: translateY(16px); }
.js-reveal .stagger.in > * { opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* ========== CURSOR TRAIL ========== */
.cursor-dot {
  position: fixed; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent);
  pointer-events: none; z-index: 9999;
  mix-blend-mode: difference;
  transition: transform .1s ease-out;
  display: none;
}
@media (pointer: fine) { .cursor-dot { display: block; } }
