/* DNS site — warm editorial base, with variation overrides */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --line: #ececec;
  --line-strong: #d4d4d4;
  --card: #fafafa;

  --teal: #0a0a0a;
  --yellow: #0a0a0a;
  --red: #0a0a0a;

  --accent: #0a0a0a;
  --accent-soft: #f1f1f1;

  --serif: 'Instrument Serif', 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --max: 1240px;
}

html[data-theme="dark"] {
  --bg: #0a0a0a;
  --ink: #ffffff;
  --ink-soft: #e4e4e4;
  --muted: #8a8a8a;
  --line: #1e1e1e;
  --line-strong: #2e2e2e;
  --card: #141414;
  --accent: #ffffff;
  --accent-soft: #1a1a1a;
  --teal: #ffffff;
  --yellow: #ffffff;
  --red: #ffffff;
}

/* B&W manifesto section */
.manifesto { max-width: 960px; margin: 0 auto; padding: 120px 32px; text-align: center; }
.manifesto-inner h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 88px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 28px; }
.manifesto-inner h2 em { font-style: italic; }
.manifesto-inner p { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 640px; margin: 0 auto; }
.manifesto-inner p em { font-style: italic; }

/* CTA chip in services */
.svc-chip-cta { cursor: pointer; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); transition: all 0.15s; padding: 6px 12px; font-size: 11px; letter-spacing: 0.05em; }
.svc-chip-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

html[data-type="neutral"] { --serif: 'Geist', 'Inter', sans-serif; }
html[data-type="mono"] { --serif: 'JetBrains Mono', monospace; --sans: 'JetBrains Mono', monospace; }
html[data-type="system"] { --serif: Georgia, serif; --sans: -apple-system, BlinkMacSystemFont, sans-serif; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
body { font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--ink); }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 500; }
.mono { font-family: var(--mono); }
.small { font-size: 12px; }

/* -- Buttons -- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; transition: all 0.18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--card); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }

/* -- Nav -- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg), transparent 20%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: all 0.25s; }
.nav-scrolled { border-bottom-color: var(--line); background: color-mix(in oklab, var(--bg), transparent 8%); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; gap: 32px; }
.nav-brand { display: flex; align-items: center; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links button { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; color: var(--muted); transition: all 0.15s; }
.nav-links button:hover { color: var(--ink); }
.nav-links button.active { color: var(--ink); background: var(--card); }
.nav-cta { display: flex; gap: 8px; }
.nav-mobile-toggle { display: none; width: 36px; height: 36px; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav-mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-mobile { display: none; padding: 16px 32px 20px; border-top: 1px solid var(--line); background: var(--bg); flex-direction: column; gap: 12px; }
.nav-mobile button { text-align: left; font-size: 16px; padding: 8px 0; }
.nav-mobile .btn-primary { text-align: center; padding: 12px; margin-top: 8px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-mobile { display: flex; }
}

/* -- Reveal animation -- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.reveal-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* -- Layout -- */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 32px; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.section-foot { margin-top: 32px; }

/* -- Hero -- */
.hero { max-width: var(--max); margin: 0 auto; padding: 80px 32px 80px; position: relative; min-height: 80vh; display: flex; align-items: center; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; display: flex; flex-direction: column; }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 40px; }
.hero-title .d1 { display: inline-block; }
.hero-title .d2 { display: inline-block; }
.hero-title .d3 { display: block; color: var(--ink); font-style: italic; font-family: var(--serif); margin-top: 0.05em; }
.hero-sub { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: var(--ink-soft); max-width: 640px; margin: 0 0 36px; }
.hero-sub em { font-style: italic; color: var(--accent); }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 2px; vertical-align: -0.12em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-meta { display: flex; gap: 24px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-teal { background: var(--teal); }
.dot-yellow { background: var(--yellow); }
.dot-red { background: var(--red); }

.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; z-index: 1; pointer-events: none; opacity: 0.9; mask-image: linear-gradient(to left, black 30%, transparent 100%); -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%); }
.hero-grid { position: absolute; inset: 40px; display: grid; gap: 6px; grid-auto-rows: 1fr; }
.hero-cell { border-radius: 3px; background: var(--line); transition: background 0.3s, opacity 0.3s; }
.hero-cell.on.hue-0 { background: var(--teal); }
.hero-cell.on.hue-1 { background: var(--yellow); }
.hero-cell.on.hue-2 { background: var(--red); }
@media (max-width: 900px) { .hero-art { display: none; } .hero { min-height: auto; padding: 60px 32px; } }

/* -- Logo strip -- */
.logo-strip { max-width: var(--max); margin: 0 auto; padding: 20px 32px 40px; }
.strip-cap { font-size: 11px; color: var(--muted); letter-spacing: 0.18em; text-align: center; margin: 0 0 24px; }
.strip-row { display: flex; flex-wrap: wrap; gap: 40px 56px; justify-content: center; align-items: center; opacity: 0.65; }
.strip-logo { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-soft); }

/* -- Pillars -- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: border-color 0.2s, transform 0.2s; }
.pillar:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pillar-n { font-size: 12px; color: var(--accent); margin-bottom: 20px; }
.pillar h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--ink-soft); }
@media (max-width: 820px) { .pillars-grid { grid-template-columns: 1fr; gap: 16px; } }

/* -- Services teaser tiles -- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer; position: relative; transition: all 0.2s; overflow: hidden; text-align: left; width: 100%; }
.tile::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; transition: width 0.25s; }
.tile-teal::before { background: var(--teal); }
.tile-yellow::before { background: var(--yellow); }
.tile-red::before { background: var(--red); }
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tile:hover::before { width: 6px; }
.tile-tag { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.tile h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 16px 0 10px; letter-spacing: -0.01em; }
.tile p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14.5px; }
.tile-arrow { color: var(--accent); font-size: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }

/* -- Tech strip -- */
.tech-strip { padding-top: 48px; padding-bottom: 48px; }
.tech-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; margin-top: 24px; }
.tech-group { display: flex; flex-direction: column; gap: 10px; }
.tech-label { font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }
.tech-items { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chip { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
@media (max-width: 900px) { .tech-groups { grid-template-columns: repeat(2, 1fr); } }

/* -- Process preview timeline -- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.tl-step { position: relative; }
.tl-line { position: relative; height: 1px; background: var(--line); margin-bottom: 20px; }
.tl-dot { position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.tl-step:nth-child(2) .tl-dot { background: var(--yellow); }
.tl-step:nth-child(3) .tl-dot { background: var(--red); }
.tl-step:nth-child(4) .tl-dot { background: var(--teal); }
.tl-num { font-size: 11px; color: var(--muted); }
.tl-body h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 8px 0 8px; }
.tl-body p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr; gap: 28px; } }

/* -- Closing CTA -- */
.closing { max-width: var(--max); margin: 0 auto; padding: 48px 32px 96px; }
.closing-inner { background: var(--ink); color: var(--bg); padding: 72px 56px; border-radius: var(--radius-lg); text-align: center; }
.closing-inner h2 { font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); font-weight: 500; margin: 0 0 16px; letter-spacing: -0.02em; }
.closing-inner p { max-width: 520px; margin: 0 auto 32px; color: color-mix(in oklab, var(--bg), transparent 30%); font-size: 17px; }
.closing-inner .btn-primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.closing-inner .btn-primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 680px) { .closing-inner { padding: 48px 28px; } }

/* -- Footer -- */
.footer { border-top: 1px solid var(--line); margin-top: 0; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 64px 32px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin: 0 0 4px; font-weight: 500; }
.footer-col button, .footer-col a, .footer-col span { font-size: 14px; color: var(--ink-soft); text-align: left; }
.footer-col button:hover, .footer-col a:hover { color: var(--accent); }
.footer-brand p { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 360px; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 24px 32px 32px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

/* -- Modal -- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,10,10,0.55); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--bg); border-radius: var(--radius-lg); padding: 40px 40px 36px; max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; border: 1px solid var(--line); animation: pop 0.25s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.modal-close { position: absolute; top: 14px; right: 16px; font-size: 22px; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; }
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-title { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 8px 0 10px; letter-spacing: -0.01em; line-height: 1.15; }
.modal-sub { color: var(--ink-soft); margin: 0 0 24px; }
.quote-form { display: flex; flex-direction: column; gap: 16px; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.quote-form label .opt { color: var(--muted); font-weight: 400; font-style: normal; text-transform: none; margin-left: 6px; font-size: 11px; }
.quote-form input, .quote-form textarea { font-family: var(--sans); font-size: 15px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); transition: border-color 0.15s; width: 100%; }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--accent); }
.quote-form textarea { resize: vertical; min-height: 100px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.err { color: var(--red); font-size: 12px; margin-top: 2px; font-style: normal; }
.form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; flex-wrap: wrap; gap: 12px; }
.form-foot .mono { color: var(--muted); }
.sent { text-align: center; padding: 20px 0; }
.sent-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: white; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } .modal { padding: 28px 24px; } }

/* -- Page hero (services / process) -- */
.page-hero { max-width: var(--max); margin: 0 auto; padding: 80px 32px 40px; }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 24px; max-width: 900px; }
.page-lead { font-size: 19px; color: var(--ink-soft); max-width: 680px; margin: 0; line-height: 1.5; }

/* -- Services groups -- */
.service-groups { max-width: var(--max); margin: 0 auto; padding: 40px 32px 80px; display: flex; flex-direction: column; gap: 32px; }
.svc-group { display: grid; grid-template-columns: 320px 1fr; gap: 48px; padding: 48px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); position: relative; overflow: hidden; }
.svc-group::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; }
.svc-teal::before { background: var(--teal); }
.svc-yellow::before { background: var(--yellow); }
.svc-red::before { background: var(--red); }
.svc-group-head h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; margin: 12px 0 12px; letter-spacing: -0.02em; }
.svc-group-tag { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.svc-group-head p { color: var(--ink-soft); margin: 0; font-size: 15px; }
.svc-items { display: flex; flex-direction: column; gap: 28px; }
.svc-item { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.svc-item:last-child { border-bottom: none; padding-bottom: 0; }
.svc-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.svc-item h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.svc-chip { font-size: 12px; color: var(--accent); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent-soft); background: var(--accent-soft); }
.svc-item p { color: var(--ink-soft); margin: 0 0 10px; }
.svc-len { font-size: 12px; color: var(--muted); }
@media (max-width: 880px) { .svc-group { grid-template-columns: 1fr; gap: 32px; padding: 32px; } }

.svc-closing { max-width: 720px; margin: 0 auto; padding: 80px 32px 120px; text-align: center; }
.svc-closing h2 { font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); font-weight: 500; margin: 0 0 16px; letter-spacing: -0.02em; }
.svc-closing p { font-size: 17px; color: var(--ink-soft); margin: 0 0 32px; }

/* -- Process chapters -- */
.chapters { max-width: 980px; margin: 0 auto; padding: 40px 32px 40px; display: flex; flex-direction: column; gap: 12px; }
.chapter { display: grid; grid-template-columns: 160px 1fr; gap: 48px; padding: 56px 48px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); position: relative; }
.chapter-rail { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 100px; align-self: flex-start; }
.chapter-n { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--accent); font-weight: 500; }
.chapter-yellow .chapter-n { color: var(--yellow); }
.chapter-red .chapter-n { color: var(--red); }
.chapter-d { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.chapter-body h2 { font-family: var(--serif); font-size: 40px; font-weight: 500; margin: 0 0 20px; letter-spacing: -0.02em; }
.chapter-body p { color: var(--ink-soft); margin: 0 0 16px; font-size: 16.5px; line-height: 1.6; }
.ai-callout { margin-top: 24px; padding: 20px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent), transparent 75%); }
.chapter-yellow .ai-callout { background: color-mix(in oklab, var(--yellow), var(--bg) 85%); border-color: color-mix(in oklab, var(--yellow), transparent 70%); }
.chapter-red .ai-callout { background: color-mix(in oklab, var(--red), var(--bg) 90%); border-color: color-mix(in oklab, var(--red), transparent 75%); }
.ai-label { font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }
.chapter-yellow .ai-label { color: color-mix(in oklab, var(--yellow), var(--ink) 40%); }
.chapter-red .ai-label { color: var(--red); }
.ai-callout p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 820px) { .chapter { grid-template-columns: 1fr; gap: 24px; padding: 40px 28px; } .chapter-rail { position: static; flex-direction: row; align-items: baseline; gap: 16px; } .chapter-n { font-size: 40px; } }

.human-principle { max-width: 820px; margin: 0 auto; padding: 80px 32px; text-align: center; }
.human-principle h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 20px; }
.human-principle p { color: var(--ink-soft); font-size: 17px; line-height: 1.6; max-width: 680px; margin: 0 auto; }

/* -- Tweaks panel -- */
.tweaks-panel { position: fixed; bottom: 24px; right: 24px; width: 300px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px; z-index: 60; box-shadow: 0 20px 60px rgba(0,0,0,0.15); font-size: 13px; }
.tweaks-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tweaks-head h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin: 0; font-weight: 500; text-transform: uppercase; }
.tweak-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tweak-row label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tweak-seg { display: flex; gap: 4px; background: var(--bg); padding: 3px; border-radius: 8px; }
.tweak-seg button { flex: 1; padding: 6px 8px; border-radius: 6px; font-size: 12px; color: var(--muted); transition: all 0.15s; }
.tweak-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.tweak-color { display: flex; gap: 6px; }
.tweak-color button { width: 24px; height: 24px; border-radius: 6px; border: 2px solid transparent; transition: all 0.15s; }
.tweak-color button.on { border-color: var(--ink); transform: scale(1.1); }
.tweak-color input[type="color"] { width: 24px; height: 24px; border-radius: 6px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }

/* -- Tweaks toggle button -- */
.tweaks-toggle { position: fixed; bottom: 24px; right: 24px; z-index: 55; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.18); transition: transform 0.2s, box-shadow 0.2s; }
.tweaks-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }

@media (max-width: 520px) { .tweaks-panel { width: calc(100vw - 32px); right: 16px; bottom: 16px; } .tweaks-toggle { bottom: 16px; right: 16px; } }

/* ------------------------------------------------
   VARIATION: BOLD
   ------------------------------------------------ */
html[data-variation="bold"] {
  --bg: #f6f1e8;
  --ink: #0b0b0b;
}
html[data-variation="bold"][data-theme="dark"] {
  --bg: #0a0a0a;
  --ink: #f5f0e5;
}
html[data-variation="bold"] .hero-title { font-size: clamp(56px, 12vw, 160px); letter-spacing: -0.05em; line-height: 0.92; font-weight: 600; }
html[data-variation="bold"] .hero-title .d3 { font-style: normal; display: block; }
html[data-variation="bold"] .section-head h2 { font-size: clamp(36px, 6vw, 68px); letter-spacing: -0.035em; font-weight: 600; }
html[data-variation="bold"] .page-hero h1 { font-size: clamp(56px, 10vw, 120px); letter-spacing: -0.04em; font-weight: 600; }
html[data-variation="bold"] .chapter-n { font-size: 88px; }
html[data-variation="bold"] .pillar { border-width: 2px; }
html[data-variation="bold"] .tile { border-width: 2px; }
html[data-variation="bold"] .closing-inner { border-radius: 0; }
html[data-variation="bold"] .hero-art { opacity: 1; }

/* ------------------------------------------------
   VARIATION: EXPERIMENTAL
   ------------------------------------------------ */
html[data-variation="experimental"] {
  --bg: #efece4;
  --ink: #161614;
}
html[data-variation="experimental"][data-theme="dark"] {
  --bg: #111110;
  --ink: #ede8dc;
}
html[data-variation="experimental"] body { font-family: var(--mono); }
html[data-variation="experimental"] .hero-title,
html[data-variation="experimental"] .section-head h2,
html[data-variation="experimental"] .page-hero h1,
html[data-variation="experimental"] .pillar h3,
html[data-variation="experimental"] .tile h3,
html[data-variation="experimental"] .tl-body h3,
html[data-variation="experimental"] .svc-group-head h2,
html[data-variation="experimental"] .svc-item h3,
html[data-variation="experimental"] .chapter-body h2,
html[data-variation="experimental"] .closing-inner h2,
html[data-variation="experimental"] .modal-title,
html[data-variation="experimental"] .human-principle h2,
html[data-variation="experimental"] .svc-closing h2 {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.02em;
}
html[data-variation="experimental"] .hero-title .d3 { font-style: normal; }
html[data-variation="experimental"] .svc-group { transform: translateX(-8px); }
html[data-variation="experimental"] .svc-group:nth-child(even) { transform: translateX(16px); }
html[data-variation="experimental"] .pillar:nth-child(2) { transform: translateY(24px); }
html[data-variation="experimental"] .tile:nth-child(3n+2) { transform: translateY(16px); }
html[data-variation="experimental"] .section-head h2::after { content: ' \25CA'; color: var(--accent); }
html[data-variation="experimental"] .hero-title::after { content: ' \25CA'; color: var(--accent); animation: blink 1s steps(2) infinite; }

@media (max-width: 820px) {
  html[data-variation="experimental"] .svc-group,
  html[data-variation="experimental"] .svc-group:nth-child(even),
  html[data-variation="experimental"] .pillar:nth-child(2),
  html[data-variation="experimental"] .tile:nth-child(3n+2) { transform: none; }
}
