/* Quill homepage: ink-black, parchment type, a mint accent and an orange nib. Condensed caps with italic serif accents. */
body.home {
  --bg: #0a0c0b; --bg-2: #070908; --fg: #efeadf; --text: #efeadf; --text-2: #c9c3b6; --muted: #8b877d; --faint: #59564f;
  --line: rgba(239, 234, 223, 0.13); --line-2: rgba(239, 234, 223, 0.22);
  --accent: #5eead4; --nib: #fb923c; --on-accent: #0a0c0b; --teal: #5eead4; --on-teal: #0a0c0b;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --gut: clamp(16px, 3.2vw, 56px);
  background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--sans); font-stretch: 100%; overflow-x: hidden;
}
:root[data-theme="light"] body.home { --bg: #efeadf; --bg-2: #e6dfd1; --fg: #121312; --text: #121312; --text-2: #3b3d3b; --muted: #6c6a63; --faint: #a4a094; --line: rgba(18, 19, 18, 0.14); --line-2: rgba(18, 19, 18, 0.24); --accent: #0f766e; --on-accent: #efeadf; --teal: #0f766e; --on-teal: #fff; }
body.home em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); text-transform: none; letter-spacing: -0.01em; font-variation-settings: "opsz" 144; }
body.home a { color: inherit; }
.hide-sm { }

/* type */
.tag { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 600 11.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.tag i { width: 40px; height: 1px; background: currentColor; }
.tag b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 15px; letter-spacing: 0; }
.big { margin: 0 0 24px; font: 800 clamp(34px, 4.4vw, 74px)/0.9 var(--display); font-stretch: 75%; letter-spacing: -0.02em; text-transform: uppercase; }
.big em { font-size: 1.08em; line-height: 0.8; }
.huge { margin: 0; font: 850 clamp(56px, 10vw, 180px)/0.82 var(--display); font-stretch: 68%; letter-spacing: -0.03em; text-transform: uppercase; }
.huge span { display: block; }
.lead { margin: 0 0 26px; font-size: 16.5px; line-height: 1.65; color: var(--text-2); max-width: 520px; }
.ulink { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font: 600 12.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: color 0.2s; }
.ulink:hover { color: var(--accent); }
.btn-pill { display: inline-flex; align-items: center; gap: 10px; font: 650 13px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); transition: background 0.2s, color 0.2s, transform 0.2s; white-space: nowrap; }
.btn-pill:hover { border-color: var(--fg); }
.btn-pill.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-pill.solid:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* header */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gut); transition: background 0.3s, padding 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.hd.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); padding-block: 14px; border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { border-radius: 8px; }
.logo span { font: 800 22px/1 var(--display); font-stretch: 75%; letter-spacing: 0.02em; text-transform: uppercase; }
.logo small { font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.hd-end { display: flex; align-items: center; gap: 12px; }
.chip-live { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--text-2); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.burger i { display: block; width: 24px; height: 1.5px; background: var(--fg); transition: transform 0.3s; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gut) 40px; }
.menu[hidden] { display: none; }
.menu ol { list-style: none; margin: 0; padding: 0; }
.menu li a { display: flex; align-items: baseline; gap: 22px; padding: 6px 0; font: 800 clamp(34px, 6.4vw, 92px)/1 var(--display); font-stretch: 70%; text-transform: uppercase; letter-spacing: -0.01em; transition: color 0.2s, padding 0.2s; }
.menu li a span { font: 500 13px var(--mono); color: var(--muted); letter-spacing: 0; }
.menu li a:hover { color: var(--accent); padding-left: 12px; }
.menu-foot { display: flex; gap: 28px; margin-top: 40px; font: 600 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.menu-foot a:hover { color: var(--fg); }

/* hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
#quill3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 400px at 52% 58%, rgba(94, 234, 212, 0.12), transparent 70%), radial-gradient(500px 300px at 50% 92%, rgba(251, 146, 60, 0.08), transparent 70%); }
.mega { position: absolute; left: 0; right: 0; top: 17vh; margin: 0; text-align: center; pointer-events: none; z-index: 2; font: 850 clamp(48px, 9.6vw, 176px)/0.84 var(--display); font-stretch: 70%; letter-spacing: -0.025em; text-transform: uppercase; }
.mega span { display: block; }
.mega .l1 { opacity: 0; transform: translateY(24px); animation: rise 1s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.mega .l2 { opacity: 0; transform: translateY(24px); animation: rise 1s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.mega em { font-size: 1.12em; padding-left: 0.04em; }
@keyframes rise { to { opacity: 1; transform: none; } }
.whispers { list-style: none; margin: 0; padding: 0; position: absolute; inset: 70px var(--gut) 0; pointer-events: none; z-index: 2; }
.whispers li { position: absolute; left: var(--x); top: var(--y); font: 500 13px/1.3 var(--sans); color: var(--text-2); opacity: 0; animation: rise 1.2s forwards; }
.whispers li:nth-child(1) { animation-delay: 0.9s; } .whispers li:nth-child(2) { animation-delay: 1.05s; } .whispers li:nth-child(3) { animation-delay: 1.2s; }
.whispers li:nth-child(4) { animation-delay: 1.35s; } .whispers li:nth-child(5) { animation-delay: 1.5s; } .whispers li:nth-child(6) { animation-delay: 1.65s; }
.hero-foot { position: absolute; left: var(--gut); right: var(--gut); bottom: 40px; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.hero-foot .lede { margin: 0; max-width: 430px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.hero-foot .lede b { color: var(--fg); font-weight: 600; }
.ctas { display: flex; align-items: center; gap: 26px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: cue 2s infinite; }
@keyframes cue { to { top: 100%; } }

/* works with */
.works { border-block: 1px solid var(--line); padding: 26px 0 30px; }
.works-note { margin: 0 var(--gut) 18px; font: 500 11px var(--mono); color: var(--faint); letter-spacing: 0.04em; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 700 clamp(20px, 2.2vw, 30px)/1 var(--display); font-stretch: 80%; text-transform: uppercase; color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: 0.5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.numbers > div { padding: clamp(28px, 4vw, 56px) var(--gut); border-right: 1px solid var(--line); }
.numbers > div:last-child { border-right: 0; }
.numbers b { display: block; font: 850 clamp(56px, 7vw, 120px)/0.85 var(--display); font-stretch: 68%; letter-spacing: -0.02em; }
.numbers span { display: block; margin-top: 16px; font: 600 11.5px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); max-width: 220px; }

/* statement */
.statement { padding: clamp(100px, 13vw, 200px) var(--gut) clamp(80px, 10vw, 150px); max-width: 1400px; }
.statement .big { max-width: 15ch; }
.statement-body { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.5; color: var(--text-2); max-width: 60ch; margin: 0 0 0 auto; }
.statement-body em { font-size: 1.1em; }

/* chapters */
.chapters { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 90px); padding: 0 var(--gut); }
.ch { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 60px 0; opacity: 0.32; transition: opacity 0.5s; }
.ch.active { opacity: 1; }
.ch .big { max-width: 12ch; }
.ch-stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.stage { position: relative; height: min(62vh, 560px); border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, rgba(239, 234, 223, 0.03), transparent), var(--bg-2); overflow: hidden; }
.pane { position: absolute; inset: 0; padding: 22px; opacity: 0; transform: scale(0.985); transition: opacity 0.5s, transform 0.5s; overflow: hidden; pointer-events: none; }
.pane.on { opacity: 1; transform: none; pointer-events: auto; }
.pane-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font: 600 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pane-head span { display: inline-flex; align-items: center; gap: 8px; }
.pane .checks li { grid-template-columns: 54px 150px 1fr; padding: 8px 2px; font-size: 13.5px; }
.pane .verdict { padding: 10px 12px; }
.chat { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.cm { max-width: 86%; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; }
.cm.user { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.cm.bot { align-self: flex-start; background: rgba(239, 234, 223, 0.05); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.mini { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; }
.mini .num { text-align: right; font-family: var(--mono); font-size: 13.5px; }
.stock-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 6px; }
.stock-wall a { padding: 14px; border: 1px solid var(--line); border-radius: 6px; transition: border-color 0.2s; }
.stock-wall a:hover { border-color: var(--accent); }
.stock-wall .avatar { width: 34px; height: 34px; }
.stock-wall b { display: block; margin-top: 12px; font-weight: 700; }
.stock-wall .p { font: 500 14px var(--mono); color: var(--text-2); }
.ch-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ch-tabs button { text-align: left; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line-2); background: none; color: var(--muted); font: 600 11.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.ch-tabs button b { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 14px; margin-right: 10px; }
.ch-tabs button.on { color: var(--fg); border-top-color: var(--accent); }

/* also */
.also { padding: clamp(110px, 12vw, 190px) var(--gut) 40px; }
.also-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 20px; }
.also-card { padding: 34px 30px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.25s; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; }
.also-card:hover { background: rgba(94, 234, 212, 0.05); }
.also-card b { font: 800 clamp(26px, 2.4vw, 38px)/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.also-card span { color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 34ch; }

/* proof: the light band */
.proof { margin-top: clamp(100px, 12vw, 180px); background: #e9e5db; color: #121312; --muted: #5d5a52; --line: rgba(18, 19, 18, 0.16); --accent: #0f766e; --text-2: #3b3d3b; }
.proof em { color: #0f766e; }
.proof-in { padding: clamp(80px, 10vw, 150px) var(--gut); }
.proof-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 80px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.proof-copy p { font-size: 18px; line-height: 1.6; margin: 0 0 18px; max-width: 46ch; }
.proof-copy .small { font-size: 13px; color: var(--muted); }
.receipts { width: 100%; border-collapse: collapse; font-size: 15px; }
.receipts th { color: var(--muted); border-bottom: 1px solid var(--line); }
.receipts td { border-bottom: 1px solid var(--line); padding: 16px 10px; }
.receipts tbody tr:hover { background: rgba(18, 19, 18, 0.04); }
.proof .tag.pass { background: rgba(15, 118, 110, 0.12); color: #0f766e; }

/* developers */
.dev { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(110px, 12vw, 180px) var(--gut) 40px; }
.code-block { margin: 0; padding: 28px 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); font: 13.5px/1.8 var(--mono); color: var(--text-2); overflow-x: auto; }
.code-block .c { color: var(--faint); } .code-block .k { color: var(--nib); }

/* faq */
.faq { padding: clamp(110px, 12vw, 180px) var(--gut) 60px; }
.faq-list { border-top: 1px solid var(--line); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 26px 0; font: 700 clamp(19px, 1.8vw, 26px)/1.2 var(--display); font-stretch: 85%; text-transform: uppercase; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 28px/1 var(--sans); color: var(--accent); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--text-2); max-width: 70ch; font-size: 16px; }

/* footer */
.ft { border-top: 1px solid var(--line); margin-top: 60px; overflow: hidden; }
.ft-cta { display: flex; justify-content: center; padding: 80px var(--gut) 10px; }
.big-cta { font-size: 15px; padding: 20px 32px; }
.wordmark { font: 900 clamp(120px, 31vw, 560px)/0.78 var(--display); font-stretch: 62%; letter-spacing: -0.03em; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; margin: 30px 0 -0.08em; }
.ft-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px var(--gut) 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); position: relative; background: var(--bg); }
.ft-row nav { display: flex; gap: 22px; flex-wrap: wrap; }
.ft-row a:hover, .theme-t:hover { color: var(--fg); }
.theme-t { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }

/* reveal */
.rv { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity 0.9s, transform 0.9s, filter 0.9s; }
.rv.in { opacity: 1; transform: none; filter: none; }

@media (max-width: 1000px) {
  .chapters { grid-template-columns: 1fr; }
  .ch-stage { position: relative; height: auto; padding-bottom: 20px; }
  .stage { height: 500px; }
  .ch { min-height: auto; opacity: 1; padding: 44px 0; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers > div:nth-child(2) { border-right: 0; }
  .numbers > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .also-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid, .dev { grid-template-columns: 1fr; }
  .whispers li:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .logo small { display: none; }
  .hd { padding: 16px; }
  .btn-pill { padding: 11px 15px; font-size: 12px; }
  .mega { top: 14vh; }
  .whispers { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; bottom: 70px; }
  .hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(transparent, var(--bg) 62%); z-index: 2; pointer-events: none; }
  .also-grid { grid-template-columns: 1fr; }
  .numbers b { font-size: 60px; }
  .stock-wall { grid-template-columns: repeat(2, 1fr); }
  .receipts { font-size: 13px; }
  .receipts td, .receipts th { padding: 12px 6px; }
}
@media (prefers-reduced-motion: reduce) { .rv, .mega span, .whispers li { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; } }
