/* ==========================================================================
   Pixel Ploeg — styles
   ========================================================================== */

:root {
  --ink: #0A0A0B;
  --ink-2: #121214;
  --ink-3: #1C1C20;
  --paper: #F3F1EC;
  --paper-2: #E7E4DC;
  --white: #FFFFFF;
  --text: #F3F1EC;
  --muted: #8E8C86;
  --muted-ink: #5C5A55;
  --line: rgba(243, 241, 236, .12);
  --line-ink: rgba(10, 10, 11, .14);
  --accent: #FF4D1A;
  --accent-soft: rgba(255, 77, 26, .14);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --nav-h: 76px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

h2 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 800;
  font-stretch: 106%;
  line-height: .95;
  letter-spacing: -.045em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.eyebrow--ink { color: var(--ink); }
.eyebrow--ink::before { background: var(--ink); }

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 3fr;
  gap: 24px;
  align-items: start;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section-head .eyebrow { padding-top: .9em; }
.section-head--stack { grid-template-columns: 1fr; }
.section-head--stack .eyebrow { padding-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--accent);
  --fg: var(--ink);
  --hover: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), color .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hover);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--text); --hover: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: var(--ink); }
.btn--small { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--accent { --bg: var(--accent); --fg: var(--ink); --hover: var(--paper); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 18px; height: auto; fill: currentColor; }
.logo__mark .px-accent { fill: var(--accent); }
.logo__word { font-weight: 800; font-stretch: 110%; font-size: 19px; letter-spacing: -.04em; }
.logo:hover .px-accent { animation: px-hop .6s var(--ease); }
@keyframes px-hop { 40% { transform: translateY(-4px); } }
.logo__mark .px-accent { transform-box: fill-box; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, .72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; gap: 36px; font-size: 15px; }
.nav__links a { position: relative; color: rgba(243, 241, 236, .75); transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .45s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink);
  padding-top: calc(var(--nav-h) + 32px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-in-out);
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 800; letter-spacing: -.04em;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s, transform .6s var(--ease);
}
.mobile-menu a span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--accent); letter-spacing: 0; }
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: .15s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: .2s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: .25s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: .3s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: .35s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 0;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(10, 10, 11, .85) 28%, rgba(10, 10, 11, .2) 62%, rgba(10, 10, 11, 0) 80%),
    linear-gradient(to bottom, var(--ink) 0%, rgba(10, 10, 11, 0) 18%);
}
.hero__inner { position: relative; z-index: 2; pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }

.hero__type {
  font-family: var(--mono);
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--muted);
  margin-bottom: clamp(20px, 3vw, 36px);
  min-height: 1.6em;
}
.hero__prompt { color: var(--accent); }
.rotator { color: var(--text); }
.rotator__caret {
  display: inline-block; width: .6em; height: 1.1em; margin-left: 2px;
  background: var(--accent); vertical-align: -.2em;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero__title {
  font-size: clamp(3.1rem, 11.2vw, 11.5rem);
  font-weight: 800;
  font-stretch: 108%;
  line-height: .88;
  letter-spacing: -.055em;
  margin-left: -.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); }
.hero__title .accent { color: var(--accent); }
.is-loaded .hero__title .line > span { transform: none; transition: transform 1.25s var(--ease); }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .12s; }

.hero__type, .hero__meta, .hero__facts { opacity: 0; transform: translateY(16px); }
.is-loaded .hero__type, .is-loaded .hero__meta, .is-loaded .hero__facts {
  opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.is-loaded .hero__meta { transition-delay: .45s; }
.is-loaded .hero__facts { transition-delay: .6s; }
html:not(.js) .hero__title .line > span,
html:not(.js) .hero__type, html:not(.js) .hero__meta, html:not(.js) .hero__facts { opacity: 1; transform: none; }

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: clamp(28px, 4vw, 48px);
}
.hero__lead { max-width: 34em; font-size: clamp(16px, 1.35vw, 19px); color: rgba(243, 241, 236, .78); }
.hero__ctas { display: flex; gap: 12px; flex-shrink: 0; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.hero__facts li {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 0;
  font-size: 15px;
  color: rgba(243, 241, 236, .8);
}
.hero__facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__facts span { font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 30px) 0;
  background: var(--ink);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span {
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -.04em;
  line-height: 1;
  padding: 0 clamp(18px, 2.4vw, 36px);
  white-space: nowrap;
}
.marquee__group .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(243, 241, 236, .55); }
.marquee__group i { width: clamp(10px, 1.1vw, 16px); height: clamp(10px, 1.1vw, 16px); background: var(--accent); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { padding: clamp(110px, 18vw, 240px) 0; }
.statement .eyebrow { margin-bottom: 40px; }
.statement__text {
  max-width: 22ch;
  max-width: none;
  font-size: clamp(1.9rem, 4.6vw, 4.4rem);
  font-weight: 700;
  font-stretch: 104%;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.statement__text .w { opacity: .16; transition: opacity .35s linear, color .35s; }
.statement__text .w.on { opacity: 1; }
.statement__text .w.hl.on { color: var(--accent); }
html:not(.js) .statement__text .hl { color: var(--accent); }

/* ---------- Services ---------- */
.services {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(96px, 12vw, 160px) 0 clamp(96px, 12vw, 160px);
  border-radius: var(--radius) var(--radius) 0 0;
}
.services .eyebrow { color: var(--muted-ink); }

.stack { display: grid; gap: 28px; }
.scard {
  position: sticky;
  top: calc(var(--nav-h) + 24px + var(--i) * 22px);
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.15fr;
  gap: clamp(28px, 3.5vw, 56px);
  min-height: min(560px, calc(100vh - var(--nav-h) - 110px));
  padding: clamp(28px, 3.6vw, 52px);
  border-radius: var(--radius);
  transform-origin: 50% 0;
  overflow: hidden;
  will-change: transform;
}
.scard::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, -100%) var(--my, -100%), var(--spot, rgba(255, 255, 255, .06)), transparent 60%);
}
.scard > * { position: relative; }
.scard--dark { background: var(--ink-2); color: var(--text); }
.scard--light { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line-ink); --spot: rgba(255, 77, 26, .07); }
.scard--accent { background: var(--accent); color: var(--ink); --spot: rgba(255, 255, 255, .18); }

.scard__head { display: flex; flex-direction: column; }
.scard__num { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; opacity: .6; margin-bottom: auto; padding-bottom: 32px; }
.scard__title {
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  font-weight: 800;
  font-stretch: 108%;
  line-height: .92;
  letter-spacing: -.05em;
  margin-bottom: 18px;
}
.scard__kicker { font-size: 18px; font-weight: 500; line-height: 1.35; max-width: 18em; }
.scard--dark .scard__kicker { color: var(--accent); }

.scard__body { display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; font-size: 16px; }
.scard__body > p { opacity: .78; }
.scard__list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 16%, transparent);
  font-weight: 500;
}
.scard__list li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; background: var(--accent); transform: translateY(-2px); }
.scard--accent .scard__list li::before { background: var(--ink); }

/* demos */
.demo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  align-self: stretch;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.demo__bar { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.demo__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(243, 241, 236, .18); }
.demo__bar em { margin-left: 10px; font-style: normal; font-family: var(--mono); font-size: 11.5px; opacity: .55; }
.demo:not(.play) *, .demo:not(.play) *::before, .demo:not(.play) *::after { animation-play-state: paused !important; }

.demo--log { background: #050506; color: var(--text); border: 1px solid var(--line); }
.log { padding: 18px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.log li { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: baseline; animation: log-in .45s var(--ease) both; }
.log time { color: rgba(243, 241, 236, .35); }
.log b { font-weight: 500; font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: rgba(243, 241, 236, .08); color: rgba(243, 241, 236, .7); }
.log b.ai { background: var(--accent-soft); color: var(--accent); }
.log b.ok { background: rgba(80, 220, 140, .14); color: #5EE39A; }
.log li.done { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); color: #5EE39A; }
.log li.done span::after { content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 6px; background: currentColor; vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes log-in { from { opacity: 0; transform: translateY(6px); } }

.demo--site { background: var(--paper); border: 1px solid var(--line-ink); color: var(--ink); }
.demo--site .demo__bar { border-color: var(--line-ink); background: var(--paper-2); }
.demo--site .demo__bar span { background: rgba(10, 10, 11, .18); }
.site { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.site i { display: block; background: var(--ink); border-radius: 4px; transform-origin: 0 50%; animation: build 7s var(--ease) infinite both; }
.site__nav { display: flex; gap: 10px; align-items: center; }
.site__nav i { height: 7px; width: 34px; opacity: .25; }
.site__nav .logo-b { width: 18px; height: 18px; opacity: 1; background: var(--accent); margin-right: auto; border-radius: 3px; }
.site__hero { flex: 1; display: flex; flex-direction: column; gap: 10px; justify-content: center; padding: 14px 0; }
.site__hero .h1 { height: 22px; width: 82%; }
.site__hero .h2 { height: 22px; width: 56%; animation-delay: .15s; }
.site__hero .cta { height: 28px; width: 110px; border-radius: 99px; background: var(--accent); margin-top: 10px; animation-name: cta-click; }
.site__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.site__grid i { height: 64px; background: var(--paper-2); border: 1px solid var(--line-ink); transform-origin: 50% 100%; animation-name: rise; }
.site__grid i:nth-child(1) { animation-delay: .45s; }
.site__grid i:nth-child(2) { animation-delay: .55s; }
.site__grid i:nth-child(3) { animation-delay: .65s; }
.site__nav i:nth-child(2) { animation-delay: .05s; }
.site__nav i:nth-child(3) { animation-delay: .1s; }
.site__nav i:nth-child(4) { animation-delay: .15s; }
@keyframes build { 0% { transform: scaleX(0); } 12%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes rise { 0% { transform: scaleY(0); opacity: 0; } 12%, 88% { transform: scaleY(1); opacity: 1; } 96%, 100% { transform: scaleY(0); opacity: 0; } }
@keyframes cta-click { 0%, 52% { transform: scaleX(0); } 12%, 50% { transform: scaleX(1); } 54% { transform: scale(.92); } 58%, 88% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 77, 26, .2); } 96%, 100% { transform: scaleX(0); } }
.site__cursor {
  position: absolute; width: 18px; height: 18px; left: 0; top: 0;
  background: var(--ink);
  clip-path: polygon(0 0, 0 100%, 30% 72%, 52% 100%, 66% 92%, 46% 66%, 82% 66%);
  animation: cursor 7s var(--ease-in-out) infinite;
}
@keyframes cursor {
  0% { transform: translate(260px, 260px); opacity: 0; }
  10% { opacity: 1; }
  45% { transform: translate(90px, 170px); }
  52% { transform: translate(78px, 162px) scale(.85); }
  56% { transform: translate(78px, 162px) scale(1); }
  88% { transform: translate(200px, 120px); opacity: 1; }
  100% { transform: translate(260px, 260px); opacity: 0; }
}

.demo--chart { background: var(--ink); color: var(--text); padding: 20px; }
.chart__head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; opacity: .7; }
.chart__head b { color: var(--accent); font-weight: 500; }
.chart { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding-top: 24px; min-height: 200px; }
.chart i {
  flex: 1; height: var(--h);
  background: rgba(243, 241, 236, .14);
  transform-origin: 50% 100%;
  animation: bar 6s var(--ease) infinite both;
}
.chart i:nth-last-child(-n+4) { background: var(--accent); }
.chart i:nth-child(1) { animation-delay: 0s; } .chart i:nth-child(2) { animation-delay: .06s; }
.chart i:nth-child(3) { animation-delay: .12s; } .chart i:nth-child(4) { animation-delay: .18s; }
.chart i:nth-child(5) { animation-delay: .24s; } .chart i:nth-child(6) { animation-delay: .3s; }
.chart i:nth-child(7) { animation-delay: .36s; } .chart i:nth-child(8) { animation-delay: .42s; }
.chart i:nth-child(9) { animation-delay: .48s; } .chart i:nth-child(10) { animation-delay: .54s; }
.chart i:nth-child(11) { animation-delay: .6s; } .chart i:nth-child(12) { animation-delay: .66s; }
@keyframes bar { 0% { transform: scaleY(0); } 14%, 86% { transform: scaleY(1); } 96%, 100% { transform: scaleY(0); } }
.chart__axis { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; opacity: .45; }

/* ---------- Calculator ---------- */
.calc { padding: clamp(110px, 14vw, 180px) 0; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.calc__controls { display: flex; flex-direction: column; gap: 34px; justify-content: center; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.field label { font-size: 16px; color: rgba(243, 241, 236, .8); }
.field output { font-family: var(--mono); font-size: 15px; color: var(--text); white-space: nowrap; }
.calc__note { font-size: 13.5px; color: var(--muted); max-width: 42em; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line) var(--p)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9.5px;
  background: var(--accent); border: 4px solid var(--ink); box-shadow: 0 0 0 1px var(--accent);
  transition: transform .3s var(--ease);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2) rotate(45deg); }
input[type="range"]::-moz-range-track { height: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 0; background: var(--accent); border: 4px solid var(--ink); box-shadow: 0 0 0 1px var(--accent); }

.calc__result {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 52px);
  display: flex; flex-direction: column; gap: 28px;
  overflow: hidden;
}
.calc__result::after {
  content: ""; position: absolute; right: -1px; top: -1px; width: 120px; height: 120px; pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 100% 0 / 24px 24px no-repeat,
    linear-gradient(rgba(255, 77, 26, .45), rgba(255, 77, 26, .45)) calc(100% - 24px) 24px / 24px 24px no-repeat,
    linear-gradient(rgba(255, 77, 26, .2), rgba(255, 77, 26, .2)) calc(100% - 48px) 0 / 24px 24px no-repeat;
}
.calc__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.calc__big {
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 800; font-stretch: 106%;
  letter-spacing: -.05em; line-height: .95;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-top: -14px;
}
.calc__stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.calc__stats > div { padding-top: 22px; }
.calc__stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.calc__mid { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.04em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.calc__bar { height: 10px; background: var(--ink-3); display: flex; margin-top: auto; }
.calc__bar span { display: block; height: 100%; width: var(--w, 0%); background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 10px); transition: width .8s var(--ease); }

/* ---------- Process ---------- */
.process { padding: clamp(110px, 14vw, 180px) 0; border-top: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; --p: 0; }
.steps__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p)); transform-origin: 0 50%; }
.step { position: relative; padding-right: 12px; }
.step__dot { display: block; width: 15px; height: 15px; background: var(--ink); border: 1px solid var(--line); margin-bottom: 36px; transition: background .5s, border-color .5s, transform .5s var(--ease); }
.step.is-active .step__dot { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.step__num { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 14px; transition: color .5s; }
.step.is-active .step__num { color: var(--accent); }
.step h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.step p:not(.step__num) { color: rgba(243, 241, 236, .7); font-size: 15.5px; margin-bottom: 22px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; color: rgba(243, 241, 236, .8); }

/* ---------- Principles ---------- */
.principles { background: var(--paper); color: var(--ink); padding: clamp(110px, 14vw, 180px) 0 clamp(60px, 8vw, 100px); border-radius: var(--radius) var(--radius) 0 0; }
.principles .eyebrow { color: var(--muted-ink); }
.principles__grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-ink); }
.principle {
  position: relative;
  padding: clamp(32px, 4vw, 56px) clamp(0px, 3vw, 48px) clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line-ink);
}
.principle:nth-child(even) { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--line-ink); }
.principle__px { display: block; width: 14px; height: 14px; border: 1.5px solid var(--ink); margin-bottom: 40px; transition: background .4s, transform .6s var(--ease), border-color .4s; }
.principle:hover .principle__px { background: var(--accent); border-color: var(--accent); transform: rotate(90deg) scale(1.3); }
.principle h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; font-stretch: 104%; letter-spacing: -.045em; line-height: 1; margin-bottom: 16px; }
.principle p { color: var(--muted-ink); max-width: 30em; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); color: var(--ink); padding: clamp(60px, 8vw, 100px) 0 clamp(110px, 14vw, 180px); }
.faq .eyebrow { color: var(--muted-ink); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line-ink); }
.faq__item { border-bottom: 1px solid var(--line-ink); }
.faq__item h3 { font-size: inherit; font-weight: inherit; }
.faq__item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; text-align: left;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 600; letter-spacing: -.02em;
  transition: color .3s;
}
.faq__item button:hover { color: var(--accent); }
.faq__item i { position: relative; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--line-ink); border-radius: 50%; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.faq__item i::before, .faq__item i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.faq__item i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item button[aria-expanded="true"] i { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(180deg); }
.faq__item button[aria-expanded="true"] i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 60px 28px 0; color: var(--muted-ink); max-width: 44em; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
html:not(.js) .faq__a { grid-template-rows: 1fr; }

/* ---------- Contact ---------- */
.contact { background: var(--accent); color: var(--ink); padding: clamp(110px, 14vw, 180px) 0; }
.contact__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(2.8rem, 7.2vw, 6.6rem); margin: 28px 0 32px; }
.contact__lead { font-size: clamp(17px, 1.4vw, 20px); max-width: 30em; margin-bottom: 40px; }
.contact__mail {
  display: inline-block; position: relative;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.03em;
}
.contact__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--ink); transform-origin: right; transition: transform .5s var(--ease); }
.contact__mail:hover::after { transform: scaleX(0); }

.cform { background: var(--ink); color: var(--text); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.cform__chips { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.cform__chips legend { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 14px; padding: 0; }
.cform__chips label { position: relative; cursor: pointer; }
.cform__chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cform__chips span { display: inline-block; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); font-size: 14.5px; transition: background .3s, color .3s, border-color .3s; }
.cform__chips label:hover span { border-color: rgba(243, 241, 236, .4); }
.cform__chips input:checked + span { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.cform__chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cform__field { display: flex; flex-direction: column; gap: 8px; }
.cform__field span { font-size: 13.5px; color: var(--muted); }
.cform__field input, .cform__field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 0 12px; border-radius: 0; resize: vertical;
  transition: border-color .3s;
}
.cform__field input:focus, .cform__field textarea:focus { outline: none; border-color: var(--accent); }
.cform__field.is-invalid input { border-color: #FF8A6B; }
.cform button[type="submit"] { margin-top: 8px; }
.cform__status { font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); padding-top: clamp(72px, 9vw, 120px); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__tag { margin-top: 20px; color: var(--muted); font-size: 15px; }
.footer__cols { display: flex; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__cols a { color: rgba(243, 241, 236, .75); transition: color .3s; }
.footer__cols a:hover { color: var(--accent); }
.footer__h { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.footer__word {
  font-size: clamp(3.5rem, 15.8vw, 17rem);
  padding-right: .06em;
  font-weight: 800; font-stretch: 112%;
  letter-spacing: -.06em; line-height: .8;
  white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 236, .16);
  margin: clamp(56px, 8vw, 110px) 0 clamp(20px, 3vw, 40px);
  user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .principles__grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .principles__grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
.js .principles__grid [data-reveal]:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .scard { grid-template-columns: 1fr 1fr; }
  .scard .demo { grid-column: 1 / -1; min-height: 260px; }
  .scard { min-height: 0; }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .eyebrow { padding-top: 0; }
  .hero::after {
    background:
      linear-gradient(to top, var(--ink) 0%, rgba(10, 10, 11, .85) 40%, rgba(10, 10, 11, .55) 100%),
      linear-gradient(to bottom, var(--ink) 0%, rgba(10, 10, 11, 0) 18%);
  }
  .hero__type { min-height: 3.2em; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero__ctas { flex-wrap: wrap; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li { padding: 14px 0; }
  .hero__facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .scard { position: relative; top: auto; grid-template-columns: 1fr; }
  .calc__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .faq__grid .section-head { position: static; }
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 40px; }
  .steps__line { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps__line span { transform: scaleY(var(--p)); transform-origin: 50% 0; }
  .step__dot { position: absolute; left: -40px; top: 2px; margin: 0; }
  .principles__grid { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .faq__a p { padding-right: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .cform__row { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .demo--log .log { font-size: 11.5px; }
  .log time { display: none; }
  .log li { grid-template-columns: auto 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .site i, .chart i { animation: none !important; }
  .site__cursor { display: none; }
}
