:root {
  --bg: #ffffff;
  --surface: #f6f6f5;
  --raised: #ffffff;
  --ink: #0d0d0d;
  --muted: #6a6a68;
  --line: #e7e7e4;
  --accent: #c8511b;
  --accent-ink: #a8420f;
  --accent-soft: #c8511b;
  --ok: #3f7d4f;
  --nav-bg: rgba(255, 255, 255, .82);
  --card-hover: #f0f0ee;
  --media-bg: #0b0b0b;
  --media-ink: #ffffff;
  --media-muted: rgba(255, 255, 255, .6);
  --media-line: rgba(255, 255, 255, .12);
  --media-cell: #0b0b0b;
  --media-glow: rgba(200, 81, 27, .35);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #141414;
  --raised: #1a1a1a;
  --ink: #ededec;
  --muted: #8a8a86;
  --line: #262624;
  --accent: #f5a623;
  --accent-ink: #f7b955;
  --accent-soft: #f7b955;
  --ok: #5ec38c;
  --nav-bg: rgba(10, 10, 10, .72);
  --card-hover: #191919;
  --media-bg: #141414;
  --media-ink: #ededec;
  --media-muted: #8a8a86;
  --media-line: #262624;
  --media-cell: #1a1a1a;
  --media-glow: rgba(245, 166, 35, .14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0a0a0a;
    --surface: #141414;
    --raised: #1a1a1a;
    --ink: #ededec;
    --muted: #8a8a86;
    --line: #262624;
    --accent: #f5a623;
    --accent-ink: #f7b955;
    --accent-soft: #f7b955;
    --ok: #5ec38c;
    --nav-bg: rgba(10, 10, 10, .72);
    --card-hover: #191919;
    --media-bg: #141414;
    --media-ink: #ededec;
    --media-muted: #8a8a86;
    --media-line: #262624;
    --media-cell: #1a1a1a;
    --media-glow: rgba(245, 166, 35, .14);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .25s, color .25s; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.02; font-weight: 600; }
p { color: var(--muted); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 2000; background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 6px; }
.skip-link:focus { top: 1rem; }

nav { position: fixed; inset: 0 0 auto; display: flex; align-items: center; gap: 2rem; padding: 1.4rem clamp(1.25rem, 4vw, 3rem); z-index: 1000; border-bottom: 1px solid transparent; transition: var(--ease); }
nav.scrolled, nav.menu-open { background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); padding-top: 1rem; padding-bottom: 1rem; }
.logo { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .55rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -.04em; }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 2.6vw, 2.2rem); margin-left: auto; font-size: .95rem; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.theme-toggle, .menu-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; transition: border-color .2s, transform .2s; }
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--muted); transform: translateY(-1px); }
.theme-toggle svg, .menu-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .sun { display: none; }
  :root:not([data-theme]) .theme-toggle .moon { display: block; }
}
.menu-toggle { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.5rem; border: 1px solid transparent; border-radius: 6px; font-size: .95rem; font-weight: 500; cursor: pointer; transition: var(--ease); }
.btn-primary { background: var(--ink); color: var(--bg); }
:root[data-theme="dark"] .btn-primary { background: var(--accent); color: #1a1205; font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); transform: translateY(-2px); }

section { padding: clamp(5rem, 11vw, 9rem) 0; }
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12vh; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; opacity: .9; background: radial-gradient(60% 50% at 78% 22%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), radial-gradient(50% 50% at 15% 85%, color-mix(in srgb, var(--ink) 5%, transparent), transparent 60%); animation: drift 18s var(--ease) infinite alternate; }
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(80% 70% at 50% 60%, #000, transparent 80%); transition: opacity .25s; }
:root[data-theme="dark"] .hero-grid { opacity: .5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .hero-grid { opacity: .5; } }
@keyframes drift { to { transform: scale(1.08) translate(-1.5%, 1.5%); } }
.hero .container, .page-hero .container { position: relative; z-index: 1; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--accent-ink); text-transform: uppercase; margin-bottom: 1.6rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
h1 { font-size: clamp(2.6rem, 7.5vw, 6.6rem); max-width: 16ch; text-wrap: balance; }
.hero .lead, .page-hero .lead { font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.35; color: var(--ink); font-weight: 400; max-width: 44ch; margin-top: 1.8rem; }
.btn-group { display: flex; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; }
.page-hero { min-height: 68vh; display: flex; align-items: flex-end; position: relative; overflow: hidden; padding: 11rem 0 6rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); }

.band { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.media { background: var(--media-bg); border: 1px solid var(--media-line); border-radius: 18px; padding: clamp(2.5rem, 6vw, 5.5rem); color: var(--media-ink); position: relative; overflow: hidden; }
.media::after { content: ""; position: absolute; inset: 0; opacity: .7; background: radial-gradient(70% 120% at 88% 0%, var(--media-glow), transparent 55%); }
.media > * { position: relative; z-index: 1; }
.media h2 { color: var(--media-ink); font-size: clamp(1.8rem, 4vw, 3.2rem); max-width: 18ch; }
.media .sub { color: var(--media-muted); margin-top: 1rem; max-width: 46ch; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--media-line); border: 1px solid var(--media-line); border-radius: 12px; overflow: hidden; margin-top: 2.6rem; }
.metrics .m { background: var(--media-cell); padding: 1.4rem 1.5rem; }
.metrics .v { font-family: var(--mono); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--media-ink); }
.metrics .unit { font-size: .55em; }
.metrics .k { color: var(--media-muted); font-size: .82rem; margin-top: .4rem; }
.live { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .8rem; color: var(--ok); margin-bottom: 1.4rem; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.lead-grid h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 16ch; }
.lead-grid p { font-size: 1.15rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.75rem, 3vw, 2.75rem); min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; transition: var(--ease); position: relative; }
a.card:hover { background: var(--card-hover); border-color: var(--muted); transform: translateY(-3px); }
.card .ci { width: 34px; height: 34px; color: var(--accent-soft); }
.card .ci svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.card p { font-size: 1rem; }
.card .arw { position: absolute; right: clamp(1.75rem, 3vw, 2.75rem); bottom: clamp(1.75rem, 3vw, 2.75rem); opacity: 0; transform: translateX(-8px); transition: var(--ease); color: var(--accent-ink); }
.card:hover .arw { opacity: 1; transform: none; }
.rotate { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); text-align: center; padding: clamp(6rem, 12vw, 10rem) 0; }
.rotate .pre { font-family: var(--mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1.5rem; }
.rotate .stage { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -.04em; height: 1.15em; position: relative; }
.rotate .word { position: absolute; inset: 0; opacity: 0; transform: translateY(30px); animation: roll 12s var(--ease) infinite; }
.rotate .word b { color: var(--accent); font-family: var(--mono); font-weight: 500; }
.rotate .word:nth-child(2) { animation-delay: 4s; }
.rotate .word:nth-child(3) { animation-delay: 8s; }
@keyframes roll { 0%, 3% { opacity: 0; transform: translateY(30px); } 8%, 27% { opacity: 1; transform: none; } 32%, 100% { opacity: 0; transform: translateY(-30px); } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 15ch; }
.split .lead { font-size: 1.15rem; color: var(--ink); font-weight: 400; margin: 1.4rem 0; }
.arw-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--accent-ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: gap .3s; }
.arw-link:hover { gap: .85rem; }
.statusbox { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.75rem, 3vw, 2.5rem); }
.statusbox .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.statusbox .row:last-child { border-bottom: 0; }
.statusbox .k { color: var(--muted); font-size: .95rem; }
.statusbox .v { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.statusbox .v.ok { color: var(--ok); }

.content-section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.content-section + .content-section { border-top: 1px solid var(--line); }
.content-grid { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.5fr); gap: clamp(2rem, 8vw, 8rem); }
.content-grid h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); max-width: 13ch; }
.content-copy { max-width: 760px; }
.content-copy > p { font-size: 1.1rem; margin-bottom: 1.5rem; }
.feature-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-list-spaced { margin-top: 2.5rem; }
.feature-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.feature-list .num { font-family: var(--mono); color: var(--accent-ink); font-size: .85rem; padding-top: .15rem; }
.feature-list h3 { font-size: 1.1rem; margin-bottom: .35rem; letter-spacing: -.02em; }
.feature-list p { font-size: .98rem; }
.process { counter-reset: steps; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.process li { counter-increment: steps; min-height: 260px; padding: 1.75rem; border-right: 1px solid var(--line); background: var(--surface); }
.process li:last-child { border-right: 0; }
.process li::before { content: "0" counter(steps); display: block; color: var(--accent-ink); font-family: var(--mono); font-size: .85rem; margin-bottom: 4rem; }
.process h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.cta-panel h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 18ch; }
.cta-panel p { max-width: 48ch; margin-top: .8rem; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); }
.contact-details h2, .contact-form h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1.3rem; }
.contact-email { display: inline-block; margin: 1.5rem 0 .5rem; color: var(--accent-ink); font-size: clamp(1.15rem, 2.4vw, 1.5rem); border-bottom: 1px solid var(--accent); }
.placeholder-note { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.form-row { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.form-row label { font-weight: 500; }
.form-row input, .form-row textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); padding: .9rem 1rem; outline: none; }
.form-row textarea { min-height: 170px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-notice { font-size: .85rem; margin-top: 1rem; }

footer { padding: 6rem 0 2.5rem; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 5rem; }
.fbrand .logo { margin-bottom: 1.25rem; }
.fbrand p { max-width: 30ch; }
.fcol h2 { font-size: .95rem; font-weight: 600; margin-bottom: 1.25rem; letter-spacing: 0; }
.fcol ul { list-style: none; }
.fcol li { margin-bottom: .85rem; }
.fcol a { color: var(--muted); font-size: .95rem; }
.fcol a:hover { color: var(--ink); }
.fbottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; flex-wrap: wrap; gap: 1rem; }
.mono { font-family: var(--mono); }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

@media (max-width: 960px) {
  .nav-cta { width: 42px; height: 42px; padding: 0; font-size: 0; }
  .nav-cta::after { content: "→"; font-size: 1rem; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(2) { border-right: 0; }
  .process li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .lead-grid, .split, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .lead-grid { gap: 1.5rem; align-items: start; }
  .content-grid { gap: 2rem; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  nav { gap: .75rem; }
  .menu-toggle { display: inline-grid; }
  .nav-links { position: absolute; inset: 100% 0 auto; display: none; align-items: stretch; gap: 0; padding: .75rem 1.25rem 1.25rem; background: var(--nav-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  nav.menu-open .nav-links { display: grid; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-actions { margin-left: auto; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .cta-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .theme-toggle, .menu-toggle { width: 40px; height: 40px; }
  .metrics { grid-template-columns: 1fr; }
  .rotate .stage { height: 2.3em; }
  .statusbox .row { align-items: flex-start; }
  .process { grid-template-columns: 1fr; }
  .process li, .process li:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .process li:last-child { border-bottom: 0; }
  .fgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg, .live::before, .rotate .word { animation: none; }
  .rotate .word:first-child { opacity: 1; transform: none; }
}
