/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #0a0a0b;
  --bg-2: #131314;
  --bg-3: #1b1b1d;
  --ink: #f5f3ee;
  --mute: #a19f98;
  --dim: #6d6b66;
  --accent: #c6ff3d;
  --accent-ink: #0d1200;
  --g1: #5b2bff;
  --g2: #1557ff;
  --line: rgba(245, 243, 238, 0.13);
  --line-2: rgba(245, 243, 238, 0.24);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(1.15rem, 4vw, 4rem);
  --radius: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 500; }
.skip-link:focus { top: 1rem; }

.kicker {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mute);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 255, 61, .6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198, 255, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0); } }

/* =============================================================
   4. Background layers
   ============================================================= */
.bg-gradient {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at var(--mx, 70%) var(--my, 25%), rgba(91, 43, 255, .55), transparent 70%),
    radial-gradient(36vmax 36vmax at calc(100% - var(--mx, 70%)) calc(var(--my, 25%) + 35%), rgba(21, 87, 255, .32), transparent 70%),
    radial-gradient(22vmax 22vmax at calc(var(--mx, 70%) + 8%) calc(var(--my, 25%) - 6%), rgba(198, 255, 61, .10), transparent 70%),
    var(--bg);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 200; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform .4s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.btn span { transition: transform .4s var(--ease-out); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.link-btn { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: .4rem 0; transition: color .3s; }
.link-btn:hover { color: var(--accent); }

.badge { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); border: 1px dashed var(--line-2); padding: .3rem .6rem; border-radius: 999px; white-space: nowrap; }

.card {
  position: relative; overflow: hidden;
  background: rgba(19, 19, 20, .78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
@supports (backdrop-filter: blur(10px)) {
  .card { background: rgba(19, 19, 20, .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}

/* cursor spotlight */
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 0;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(198, 255, 61, .09), transparent 60%);
  transition: opacity .4s;
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
  transition: background .4s, border-color .4s, padding .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 10, 11, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); padding-block: .7rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: -.01em; font-size: 1.02rem; z-index: 2; }
.wordmark-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transition: transform .5s var(--ease-bounce); }
.wordmark:hover .wordmark-dot { transform: scale(1.5); }

.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; z-index: 2; }
.nav-toggle i { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .4s var(--ease-out); }
.nav-open .nav-toggle i:first-of-type { transform: translateY(4.5px) rotate(45deg); }
.nav-open .nav-toggle i:last-of-type { transform: translateY(-4.5px) rotate(-45deg); }

.nav-links {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  padding: 5rem var(--gutter) 2rem;
  background: var(--bg);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s, transform .5s var(--ease-out), visibility .35s;
}
.nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
.nav-links a:not(.btn) { font-family: var(--serif); font-size: 2.4rem; line-height: 1.25; }
.nav-links .btn { margin-top: 1.5rem; align-self: flex-start; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { padding: clamp(4.5rem, 11vw, 9rem) var(--gutter); max-width: 1500px; margin-inline: auto; }
.section-head { margin-bottom: clamp(2rem, 5vw, 4rem); display: grid; gap: 1.2rem; }
.section-title { font-family: var(--serif); font-size: clamp(2.6rem, 7.2vw, 6.2rem); line-height: .96; letter-spacing: -.02em; }
.section-title em, .hero-title em, .contact-title em, .manifesto-text em { font-style: italic; color: var(--accent); }
.section-lede { color: var(--mute); font-size: 1.08rem; max-width: 52ch; }

/* hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(1.4rem, 3vw, 2.4rem);
  padding: 7rem var(--gutter) 0;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.3rem, 12.5vw, 12rem);
  line-height: .88; letter-spacing: -.035em;
  text-wrap: nowrap;
}
.hero-foot { display: grid; gap: 1.6rem; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.25rem); color: var(--mute); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.marquee { margin: clamp(1rem, 3vw, 2rem) calc(var(--gutter) * -1) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.05rem 0; }
.marquee-track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 42s linear infinite; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.marquee-track i { color: var(--accent); font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* manifesto */
.manifesto { padding: clamp(5rem, 13vw, 11rem) var(--gutter); max-width: 1500px; margin-inline: auto; display: grid; gap: 1.6rem; }
.manifesto-text { font-family: var(--serif); font-size: clamp(1.75rem, 4.3vw, 3.9rem); line-height: 1.1; letter-spacing: -.012em; max-width: 26ch; max-width: min(100%, 24em); }

/* service rows */
.rows { border-top: 1px solid var(--line-2); }
.row { border-bottom: 1px solid var(--line-2); }
.row summary, .faq-item summary { list-style: none; cursor: pointer; }
.row summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.row summary {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: clamp(1.1rem, 2.6vw, 2rem) clamp(.4rem, 1.4vw, 1.4rem);
  transition: background .25s, color .25s, padding .5s var(--ease-out);
}
.row-num { font-family: var(--mono); font-size: .78rem; color: var(--mute); transition: color .25s; }
.row-title { font-family: var(--serif); font-size: clamp(2.1rem, 6.4vw, 5.4rem); line-height: 1; letter-spacing: -.02em; }
.row-tag { display: none; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); transition: color .25s; }
.row-plus { position: relative; width: 22px; height: 22px; flex: none; }
.row-plus::before, .row-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .5s var(--ease-out); }
.row-plus::after { transform: rotate(90deg); }
details[open] > summary .row-plus::after { transform: rotate(0deg); }

@media (hover: hover) {
  .row summary:hover { background: var(--ink); color: var(--bg); padding-inline: clamp(.9rem, 2.4vw, 2.4rem); }
  .row summary:hover .row-num, .row summary:hover .row-tag { color: var(--bg); }
}
.row[open] .row-title { font-style: italic; color: var(--accent); }
@media (hover: hover) { .row[open] summary:hover .row-title { color: var(--bg); } }

.row-body { display: grid; gap: 1.6rem; padding: .4rem clamp(.4rem, 1.4vw, 1.4rem) clamp(1.8rem, 4vw, 3rem); }
details[open] > .row-body, details[open] > p { animation: openIn .6s var(--ease-out); }
@keyframes openIn { from { opacity: 0; transform: translateY(-10px); } }
.row-body p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink); max-width: 48ch; line-height: 1.5; }
.row-body ul { display: grid; gap: .1rem; align-content: start; }
.row-body li { padding: .7rem 0; border-top: 1px solid var(--line); color: var(--mute); font-size: .96rem; display: flex; gap: .8rem; }
.row-body li::before { content: "→"; color: var(--accent); }

/* tabs & panels */
.tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .95rem; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.panel { display: grid; gap: clamp(1.6rem, 4vw, 4rem); align-items: center; margin-bottom: 3rem; }
.js .panel { margin-bottom: 0; }
.js .panel:not(.is-active) { display: none; }
.js .panel.is-active { animation: panelIn .7s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } }
.panel-copy h3 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.015em; margin-bottom: 1.1rem; }
.panel-copy > p { color: var(--mute); font-size: 1.08rem; max-width: 46ch; margin-bottom: 1.6rem; }
.ticks li { padding: .8rem 0; border-top: 1px solid var(--line); display: flex; gap: .8rem; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 600; }

/* mock browser */
.mock {
  position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line-2);
  background: var(--m-bg); color: var(--m-ink);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
  transition: transform .7s var(--ease-out);
}
.mock:hover { transform: translateY(-6px); }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: #1d1d20; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3f; }
.mock-bar span { margin-left: .6rem; flex: 1; text-align: center; font-family: var(--mono); font-size: .7rem; color: #9a9aa0; background: #111113; padding: .32rem .8rem; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { padding: clamp(1.1rem, 3vw, 2rem); display: grid; gap: .9rem; min-height: 340px; align-content: start; }
.mock-nav { display: flex; align-items: center; gap: 1rem; font-size: .76rem; padding-bottom: .9rem; border-bottom: 1px solid var(--m-line); margin-bottom: .5rem; }
.mock-nav b { margin-right: auto; font-size: .9rem; }
.mock-nav span { opacity: .7; }
.mock-photo { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--m-radius, 12px); background: var(--m-soft); }
.mock-restaurant .mock-photo, .mock-retail .mock-photo { border-radius: 12px; }
.mock-eyebrow { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--m-accent); }
.mock-h { font-size: clamp(1.7rem, 4.5vw, 2.7rem); line-height: 1; }
.mock-label { font-size: .8rem; opacity: .7; margin-top: .6rem; }
.mock-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.mock-chips button, .mock-product button {
  padding: .55rem 1rem; border-radius: var(--m-radius, 999px); border: 1px solid var(--m-line);
  font-size: .84rem; font-weight: 500; color: var(--m-ink);
  transition: background .25s, color .25s, transform .4s var(--ease-bounce), border-color .25s;
}
.mock-chips button:hover, .mock-product button:hover { border-color: var(--m-accent); transform: translateY(-2px); }
.mock-chips button.is-on, .mock-product button.is-on { background: var(--m-accent); color: var(--m-on-accent); border-color: var(--m-accent); }
.mock-toast { font-size: .84rem; padding: .7rem .9rem; border-radius: 10px; background: var(--m-soft); border: 1px dashed var(--m-line); margin-top: .3rem; transition: background .3s, color .3s; }
.mock-toast.is-on { background: var(--m-accent); color: var(--m-on-accent); border-style: solid; border-color: var(--m-accent); font-weight: 500; animation: toast .5s var(--ease-bounce); }
@keyframes toast { from { transform: scale(.96); } }

.mock-restaurant { --m-bg: #1a120d; --m-ink: #f4e9d8; --m-accent: #e8a14c; --m-on-accent: #1a120d; --m-line: rgba(244, 233, 216, .18); --m-soft: rgba(244, 233, 216, .05); }
.mock-restaurant .mock-h, .mock-restaurant .mock-nav b { font-family: var(--serif); }
.mock-restaurant .mock-h em { color: var(--m-accent); }
.mock-restaurant .mock-nav b { font-size: 1.15rem; font-weight: 400; }

.mock-retail { --m-bg: #f3efe7; --m-ink: #1c1a17; --m-accent: #1c1a17; --m-on-accent: #f3efe7; --m-line: rgba(28, 26, 23, .16); --m-soft: rgba(28, 26, 23, .04); }
.mock-retail .mock-h { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.mock-cart strong { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border-radius: 999px; background: #1c1a17; color: #f3efe7; font-size: .72rem; margin-left: .2rem; }
.mock-cart strong.bump { animation: bump .5s var(--ease-bounce); }
@keyframes bump { 40% { transform: scale(1.5); } }
.mock-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.mock-product { display: grid; gap: .5rem; font-size: .8rem; line-height: 1.35; }
.mock-product small { opacity: .6; }
.mock-product button { padding: .45rem .5rem; font-size: .76rem; }
.mock-thumb { aspect-ratio: 4 / 5; border-radius: 10px; }
.mock-thumb.t1 { background: linear-gradient(150deg, #d9c9a8, #b89b6a); }
.mock-thumb.t2 { background: linear-gradient(150deg, #a9bfc4, #58808c); }
.mock-thumb.t3 { background: linear-gradient(150deg, #c9a1a1, #8a4d57); }

.mock-construction { --m-bg: #15171a; --m-ink: #f2f2f0; --m-accent: #ffc400; --m-on-accent: #15171a; --m-line: rgba(242, 242, 240, .18); --m-soft: rgba(242, 242, 240, .05); --m-radius: 6px; }
.mock-construction .mock-h { font-weight: 600; letter-spacing: -.03em; text-transform: uppercase; font-size: clamp(1.6rem, 4.2vw, 2.5rem); }
.mock-construction .mock-nav b { letter-spacing: .08em; font-size: .8rem; }

/* automation duo */
.duo { display: grid; gap: 1.2rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(245, 243, 238, .07); max-width: 100%; }
.seg button { padding: .5rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--mute); transition: background .3s, color .3s; }
.seg button.is-active { background: var(--ink); color: var(--bg); }

.chat { display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.chat-head small { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: var(--mute); font-weight: 400; }
.chat-log { display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem 0; min-height: 360px; flex: 1; }
.bubble { max-width: 84%; padding: .75rem 1rem; border-radius: 18px; font-size: .95rem; line-height: 1.45; animation: bubbleIn .5s var(--ease-out); }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.bubble.them { align-self: flex-start; background: rgba(245, 243, 238, .1); border-bottom-left-radius: 6px; }
.bubble.ai { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.bubble.note { align-self: center; max-width: 100%; background: none; border: 1px dashed var(--line-2); font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--mute); text-align: center; margin-top: .5rem; }
.bubble.note::before { content: "⚡ "; color: var(--accent); }
.bubble.typing { display: inline-flex; gap: 5px; padding: 1rem; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .4; animation: dots 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 30% { opacity: 1; transform: translateY(-4px); } 60% { opacity: .4; transform: none; } }
.chat .link-btn { align-self: flex-start; }

.calc { display: grid; gap: 1.5rem; align-content: start; }
.card-kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.calc h3 { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.02; }
.field-range { display: grid; gap: .8rem; }
.field-range span { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-size: .94rem; color: var(--mute); }
.field-range output { font-family: var(--mono); color: var(--ink); font-size: 1rem; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill, 25%), var(--line-2) var(--fill, 25%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 0 rgba(198, 255, 61, .4); transition: box-shadow .3s, transform .3s var(--ease-bounce); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 0; }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(198, 255, 61, .22); transform: scale(1.1); }
.calc-result { display: grid; gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-num { font-family: var(--serif); font-size: clamp(3.2rem, 8vw, 5.4rem); line-height: .9; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-num-alt { color: var(--ink); font-size: clamp(2.2rem, 5vw, 3.2rem); }
.calc-cap { color: var(--mute); font-size: .9rem; margin-top: .4rem; }
.fine { font-size: .8rem; color: var(--dim); line-height: 1.5; }
.calc .btn { justify-self: start; }

/* process */
.steps { display: grid; gap: 1rem; }
.step { position: relative; overflow: hidden; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(19, 19, 20, .5); display: grid; gap: .8rem; align-content: start; transition: border-color .4s, transform .6s var(--ease-out); }
.step:hover { border-color: var(--line-2); transform: translateY(-4px); }
.step-num { font-family: var(--mono); font-size: .78rem; color: var(--accent); margin-bottom: clamp(1.5rem, 5vw, 4rem); }
.step h3 { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; }
.step p { color: var(--mute); font-size: .97rem; }

/* contact */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-intro { display: grid; gap: 1.3rem; justify-items: start; }
.contact-title { font-family: var(--serif); font-size: clamp(3rem, 9vw, 7.4rem); line-height: .92; letter-spacing: -.03em; }
.big-link { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.2; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; transition: background-size .5s var(--ease-out), color .3s; padding-bottom: .1em; overflow-wrap: anywhere; }
.big-link:hover { background-size: 100% 100%; color: var(--accent-ink); }
.big-link-sm { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
[hidden] { display: none !important; }

.form { display: grid; gap: 1.8rem; }
.form legend { font-size: .94rem; color: var(--mute); margin-bottom: .8rem; padding: 0; }
.form legend small, .field small { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: .65rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; transition: background .25s, color .25s, border-color .25s, transform .4s var(--ease-bounce); }
.chip:hover span { border-color: var(--ink); transform: translateY(-2px); }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.fields { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .4rem; }
.field span { font-size: .82rem; color: var(--mute); }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: .6rem 0 .75rem; font-size: 1.05rem; border-radius: 0; outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.form-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-status { font-size: .88rem; color: var(--mute); flex: 1; min-width: 14ch; }
.form-status a { color: var(--accent); text-decoration: underline; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

.form-done { position: absolute !important; inset: 0; z-index: 3 !important; display: grid; place-content: center; justify-items: center; gap: .8rem; text-align: center; padding: 2rem; background: var(--bg-2); animation: panelIn .6s var(--ease-out); }
.form-done svg { width: 72px; height: 72px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .6rem; }
.form-done circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .8s var(--ease-out) .1s forwards; }
.form-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease-out) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-done h3 { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.form-done p { color: var(--mute); max-width: 34ch; }

/* faq */
.faq { border-top: 1px solid var(--line-2); max-width: 980px; }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem .2rem; font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 500; letter-spacing: -.01em; transition: color .3s; }
.faq-item summary:hover, .faq-item[open] summary { color: var(--accent); }
.faq-item p { color: var(--mute); max-width: 62ch; padding: 0 .2rem 1.7rem; font-size: 1.02rem; }

.credit-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* footer */
.footer { padding: clamp(3rem, 8vw, 6rem) var(--gutter) 2rem; border-top: 1px solid var(--line); overflow: hidden; }
.footer-big { font-family: var(--serif); font-size: clamp(3rem, 14.5vw, 15rem); line-height: .85; letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color .6s, -webkit-text-stroke-color .6s; margin-bottom: 2.5rem; }
.footer-big:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font-size: .86rem; color: var(--mute); }
.footer-row nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-row a { transition: color .3s; }
.footer-row a:hover { color: var(--accent); }

/* =============================================================
   7. Effects — scroll reveal (only when JS is running)
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .hero > * { animation: heroIn 1.1s var(--ease-out) both; }
.js .hero > :nth-child(2) { animation-delay: .1s; }
.js .hero > :nth-child(3) { animation-delay: .22s; }
.js .hero > :nth-child(4) { animation-delay: .34s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(34px); } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .calc-result { grid-template-columns: 1.2fr 1fr; align-items: end; }
}
@media (min-width: 720px) {
  .row summary { grid-template-columns: 3.5rem 1fr auto auto; gap: 1.5rem; }
  .row-tag { display: block; }
  .row-body { grid-template-columns: 1.1fr 1fr; padding-left: calc(3.5rem + 1.5rem + clamp(.4rem, 1.4vw, 1.4rem)); gap: 3rem; }
  .hero-foot { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-links { position: static; flex-direction: row; align-items: center; gap: 2rem; padding: 0; background: none; opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { font-family: var(--sans); font-size: .9rem; line-height: 1; color: var(--mute); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; padding-bottom: 5px; transition: color .3s, background-size .4s var(--ease-out); }
  .nav-links a:not(.btn):hover, .nav-links a.is-current { color: var(--ink); background-size: 100% 1px; }
  .nav-links .btn { margin: 0; padding: .7rem 1.15rem; font-size: .88rem; }
  .panel { grid-template-columns: 1fr 1.05fr; }
  .duo { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact { grid-template-columns: 1fr 1.05fr; }
  .contact-intro { position: sticky; top: 110px; }
}
@media (min-width: 1280px) {
  .section-head { grid-template-columns: 1fr; }
  .mock-body { min-height: 400px; }
}

/* =============================================================
   9. Reduced motion — only the intrusive loops
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
}
