/* ==========================================================================
   joshuahumphreys.net
   Shared design system for every page on the site.
   Type: Geist (text + display), Instrument Serif (accents), Geist Mono (labels)
   ========================================================================== */

:root {
  --paper: #F3F2EE;
  --paper-2: #EAE8E2;
  --paper-3: #DFDCD4;
  --card: #FAF9F6;
  --ink: #0F0F0E;
  --ink-2: #2A2926;
  --muted: #6D6A63;
  --faint: #9C988F;
  --line: rgba(15, 15, 14, 0.12);
  --line-2: rgba(15, 15, 14, 0.22);
  --accent: #D4500A;
  --accent-hi: #F2641C;
  --night: #0E0E0D;
  --night-2: #181816;
  --night-3: #232320;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-muted: rgba(243, 242, 238, 0.62);
  --ok: #2F9E5B;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11'; overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-size: 14px; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.section-tight { padding: clamp(64px, 8vw, 104px) 0; }
.rule { border: 0; border-top: 1px solid var(--line); }

/* ---------- Type ---------- */
.display {
  font-weight: 600; font-size: clamp(44px, 8.4vw, 124px); line-height: 0.96; letter-spacing: -0.045em;
}
.h1 { font-weight: 600; font-size: clamp(40px, 6.2vw, 88px); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-weight: 600; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
.h3 { font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.serif-up { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.005em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; text-transform: uppercase; }
.accent { color: var(--accent); }

.kicker {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px;
}
.kicker span { color: var(--ink); }
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.6; order: 1; }
.kicker span { order: 0; }
.kicker b { order: 2; font-weight: 400; }
.on-dark .kicker, .kicker.on-dark { color: var(--night-muted); }
.on-dark .kicker span { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--btn-h); padding: 0 26px; border-radius: 999px; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.4s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hi); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, 0.24); color: var(--paper); }
.btn-ghost-light:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.btn-sm { --btn-h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; position: relative; padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease), color 0.3s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--accent); }
.link svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.link:hover svg { transform: translate(3px, -3px); }

/* ---------- Liquid glass ---------- */
.glass {
  --glass-tint: rgba(250, 249, 246, 0.56);
  --glass-rim: rgba(255, 255, 255, 0.9);
  position: relative; isolation: isolate;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(22px) saturate(190%) brightness(1.04);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(15, 15, 14, 0.05),
    0 12px 36px -10px rgba(15, 15, 14, 0.22);
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% -10%, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 60%);
}
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(155deg, var(--glass-rim), rgba(255, 255, 255, 0.12) 38%, rgba(255, 255, 255, 0.06) 62%, rgba(255, 255, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass-dark, .is-on-dark .glass {
  --glass-tint: rgba(24, 24, 22, 0.5);
  --glass-rim: rgba(255, 255, 255, 0.42);
  color: var(--paper);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.28),
    inset 0 -1px 1px rgba(255, 255, 255, 0.06),
    0 12px 36px -10px rgba(0, 0, 0, 0.5);
}
.glass-dark::before, .is-on-dark .glass::before {
  background:
    radial-gradient(120% 90% at 18% -10%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 60%);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { --glass-tint: rgba(250, 249, 246, 0.96); }
  .glass-dark, .is-on-dark .glass { --glass-tint: rgba(24, 24, 22, 0.96); }
}

/* ---------- Header / nav ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px var(--gutter) 0; pointer-events: none; }
.nav {
  pointer-events: auto; max-width: var(--container); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 16px; padding: 0 10px 0 18px; border-radius: 999px;
  transition: max-width 0.6s var(--ease), background-color 0.4s, color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease);
}
.site-header.is-scrolled .nav { max-width: 980px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; transition: transform 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-mark .bm-bg { fill: var(--ink); transition: fill 0.4s; }
.brand-mark .bm-fg { stroke: var(--paper); transition: stroke 0.4s; }
.brand-mark .bm-dot { fill: var(--accent); }
.is-on-dark .brand-mark .bm-bg { fill: var(--paper); }
.is-on-dark .brand-mark .bm-fg { stroke: var(--ink); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14.5px; font-weight: 450;
  color: inherit; opacity: 0.78; transition: opacity 0.25s, background-color 0.25s;
}
.nav-links a:hover { opacity: 1; background: rgba(15, 15, 14, 0.06); }
.is-on-dark .nav-links a:hover { background: rgba(255, 255, 255, 0.1); }
.nav-links a.is-active, .nav-links a[aria-current='page'] { opacity: 1; }
.nav-links a.is-active::after, .nav-links a[aria-current='page']::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 7px;
}
.nav-cta { margin-left: 6px; }
.is-on-dark .nav-cta { background: var(--paper); color: var(--ink); }
.is-on-dark .nav-cta:hover { background: var(--accent); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; margin-left: auto; position: relative; -webkit-tap-highlight-color: transparent; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.menu-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* Full-screen menu (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 90; padding: calc(var(--nav-h) + 40px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(243, 242, 238, 0.72);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease), visibility 0s; }
.menu-links a {
  display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(32px, 9vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
  transform: translateY(18px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.menu-links a small { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0.04em; }
.menu-open .menu-links a { transform: none; opacity: 1; }
.menu-open .menu-links li:nth-child(2) a { transition-delay: 0.04s; }
.menu-open .menu-links li:nth-child(3) a { transition-delay: 0.08s; }
.menu-open .menu-links li:nth-child(4) a { transition-delay: 0.12s; }
.menu-open .menu-links li:nth-child(5) a { transition-delay: 0.16s; }
.menu-open .menu-links li:nth-child(6) a { transition-delay: 0.2s; }
.menu-foot { display: grid; gap: 10px; }
.menu-foot .btn { width: 100%; }
.menu-foot p { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; text-align: center; margin-top: 6px; }
.menu-open { overflow: hidden; }

/* Mobile quick-contact dock */
.dock {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 80;
  display: none; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  transform: translate(-50%, 0); transition: transform 0.6s var(--ease), opacity 0.4s;
}
.dock.is-hidden { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.dock a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: transform 0.25s var(--ease), background-color 0.3s;
}
.dock a:active { transform: scale(0.94); }
.dock a svg { width: 17px; height: 17px; }
.dock .dock-primary { background: var(--ink); color: var(--paper); padding: 0 20px; }
.is-on-dark .dock .dock-primary { background: var(--paper); color: var(--ink); }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }
.reveal[data-delay='4'] { transition-delay: 0.32s; }
.split .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split.is-in .line > span { transform: none; }
.split.is-in .line:nth-child(2) > span { transition-delay: 0.08s; }
.split.is-in .line:nth-child(3) > span { transition-delay: 0.16s; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .split .line > span { transform: none; }

/* ---------- Status dot ---------- */
.status { display: inline-flex; align-items: center; gap: 9px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; }
.status i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(48px, 6vw, 80px); align-items: end; }
.section-head > .sh-title { grid-column: 1 / span 8; }
.section-head > .sh-aside { grid-column: 9 / span 4; color: var(--muted); font-size: 17px; }
.section-head .h2 { max-width: 16ch; }

/* ---------- Browser frame ---------- */
.browser { border-radius: var(--radius-lg); overflow: hidden; background: var(--night-2); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 40px 80px -30px rgba(15, 15, 14, 0.45); }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; background: var(--night-3); color: var(--night-muted); }
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.browser-url { flex: 1; max-width: 360px; margin: 0 auto; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); display: flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; }
.browser-url svg { width: 11px; height: 11px; opacity: 0.7; }
.browser-spacer { width: 47px; }

/* ---------- Before / after compare ---------- */
.compare { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); --pos: 50%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; }
.compare .c-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .c-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.compare .c-knob {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
}
.compare .c-knob svg { width: 22px; height: 22px; }
.compare .c-tag {
  position: absolute; top: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.compare .c-tag::before { content: ''; width: 0; height: 6px; border-radius: 50%; background: currentColor; transition: width 0.35s var(--ease); }
.compare .c-tag.is-active {
  --glass-tint: rgba(212, 80, 10, 0.9); --glass-rim: rgba(255, 255, 255, 0.55);
  color: #fff; transform: scale(1.08);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.45), 0 10px 26px -8px rgba(212, 80, 10, 0.65);
}
.compare .c-tag.is-active::before { width: 6px; }
.compare .c-tag.is-faded { opacity: 0; transform: translateY(-6px) scale(0.94); }
.compare .c-tag-before { left: 16px; }
.compare .c-tag-after { right: 16px; }
.compare input[type='range'] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.on-dark .tag { border-color: var(--night-line); color: var(--night-muted); }

/* ---------- Dark bands ---------- */
.on-dark { background: var(--night); color: var(--paper); }
.on-dark .muted, .on-dark .lead { color: var(--night-muted); }
.on-dark .rule { border-color: var(--night-line); }

/* ---------- FAQ (details) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: clamp(18px, 1.7vw, 21px); font-weight: 500; letter-spacing: -0.015em; -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-icon { position: relative; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color 0.35s, border-color 0.35s, transform 0.5s var(--ease); }
.faq summary .faq-icon::before, .faq summary .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: transform 0.5s var(--ease); }
.faq summary .faq-icon::after { transform: rotate(90deg); }
.faq details[open] summary .faq-icon { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(180deg); }
.faq details[open] summary .faq-icon::after { transform: rotate(0deg); }
.faq summary:hover .faq-icon { border-color: var(--ink); }
.faq .faq-a { padding: 0 64px 28px 0; color: var(--ink-2); max-width: 720px; }
.faq details[open] .faq-a { animation: faqIn 0.5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background-color: var(--card);
  font-size: 16px; outline: none; transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s; -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 150px; padding: 16px 18px; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F0F0E' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 15, 14, 0.06); background-color: #fff; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.on-dark .input, .on-dark .select, .on-dark .textarea { background-color: var(--night-2); border-color: var(--night-line); color: var(--paper); }
.on-dark .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3F2EE' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.on-dark .input:focus, .on-dark .select:focus, .on-dark .textarea:focus { border-color: rgba(255,255,255,0.55); box-shadow: 0 0 0 4px rgba(255,255,255,0.06); background-color: var(--night-3); }
.on-dark .field label { color: var(--night-muted); }
.on-dark .input::placeholder, .on-dark .textarea::placeholder { color: rgba(243,242,238,0.35); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: 14px; color: var(--muted); }
.form-success { display: none; padding: 16px 18px; border-radius: 12px; background: rgba(47, 158, 91, 0.12); color: #9BE2B7; font-size: 15px; }
.form-success.is-shown { display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(88px, 12vw, 150px)) 0 clamp(56px, 7vw, 96px); position: relative; }
.page-hero .h1 { max-width: 18ch; }
.page-hero .lead { max-width: 640px; margin-top: 28px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; font-size: 15px; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 10px; }
.facts li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- Prose (articles and long-form pages) ---------- */
.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); font-weight: 600; margin-top: 2.2em; }
.prose h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); font-weight: 600; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: color 0.2s; }
.prose a:not(.btn):hover { color: var(--accent); }
.prose ul, .prose ol { padding-left: 0; }
.prose ul li, .prose ol li { position: relative; padding-left: 28px; margin-top: 0.55em; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; font-family: var(--font-mono); font-size: 13px; color: var(--accent); top: 0.28em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin-top: 1.6em; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.prose .table-wrap table { margin: 0; }
.prose .table-wrap tr:last-child td { border-bottom: 0; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 22px; color: var(--ink); font-size: 20px; }

.note-box { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 26px 28px; }
.note-box > * + * { margin-top: 0.7em; }
.note-box .note-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.tier { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 30px 26px; background: var(--card); }
.tier > * + * { margin-top: 0.7em; }
.tier h3 { margin-top: 0; }
.tier .price { font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.035em; color: var(--ink); line-height: 1.1; }
.tier ul li { margin-top: 0.35em; }

/* Article layout */
.article-head { padding: calc(var(--nav-h) + clamp(80px, 11vw, 140px)) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.article-head .h1 { font-size: clamp(38px, 5.4vw, 72px); max-width: 20ch; }
.article-head .byline { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 640px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.article-meta .author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.article-meta .author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(40px, 6vw, 96px); padding: clamp(56px, 7vw, 88px) 0 clamp(88px, 10vw, 140px); align-items: start; }
.article-body .prose { max-width: 700px; min-width: 0; }
.article-aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--card); }
.aside-card h4 { font-size: 18px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 8px; line-height: 1.25; }
.aside-card p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.aside-card .btn { width: 100%; }
.aside-card.dark { background: var(--night); color: var(--paper); border-color: var(--night); }
.aside-card.dark p { color: var(--night-muted); }
.toc { font-size: 14.5px; }
.toc h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 1px solid var(--line); color: var(--muted); transition: color 0.2s, border-color 0.2s; line-height: 1.35; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(96px, 12vw, 170px) 0; text-align: left; position: relative; overflow: hidden; }
.cta-band .h1 { max-width: 14ch; }
.cta-band .lead { max-width: 560px; margin-top: 24px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--paper); padding: clamp(80px, 10vw, 130px) 0 calc(36px + env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; padding-bottom: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--night-line); }
.foot-title { font-size: clamp(40px, 6vw, 84px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; }
.foot-title .serif { color: var(--accent-hi); }
.foot-contact { display: grid; gap: 14px; justify-items: start; }
.foot-mail { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.02em; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: clamp(48px, 6vw, 72px) 0; }
.foot-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--night-muted); font-weight: 400; margin-bottom: 18px; }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a, .foot-col span { font-size: 15.5px; color: rgba(243, 242, 238, 0.86); transition: color 0.2s; }
.foot-col a:hover { color: var(--accent-hi); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; border-top: 1px solid var(--night-line); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--night-muted); }
.foot-bottom a:hover { color: var(--paper); }
.foot-wordmark { position: absolute; left: 50%; bottom: -0.2em; transform: translateX(-50%); font-weight: 700; font-size: 22vw; letter-spacing: -0.06em; line-height: 1; color: rgba(255, 255, 255, 0.025); white-space: nowrap; pointer-events: none; user-select: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 0 11px; }
}
@media (max-width: 980px) {
  .section-head > .sh-title, .section-head > .sh-aside { grid-column: 1 / -1; }
  .article-body { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; grid-template-columns: 1fr 1fr; }
  .article-aside .toc { display: none; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --nav-h: 58px; }
  body { font-size: 16.5px; }
  .site-header { padding-top: 10px; }
  .nav { padding: 0 6px 0 14px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .dock { display: flex; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .site-header.is-scrolled .nav { max-width: var(--container); }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .article-aside { grid-template-columns: 1fr; }
  .faq .faq-a { padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .btn { --btn-h: 52px; }
  .prose { font-size: 17px; }
}
@media (min-width: 861px) {
  .menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .reveal, .split .line > span { opacity: 1 !important; transform: none !important; }
}

.on-dark .select option { background: var(--night-2); color: var(--paper); }

/* ---------- Article components ---------- */
.prose .tip-box { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 26px 28px; }
.prose .tip-box > * + * { margin-top: 0.75em; }
.prose .tip-box h3 { margin-top: 0; font-size: 19px; display: flex; align-items: center; gap: 12px; }
.prose .tip-box h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.prose .callout { background: var(--night); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); margin-top: 2.2em; }
.prose .callout > * + * { margin-top: 0.8em; }
.prose .callout h3 { color: var(--paper); margin-top: 0; font-size: clamp(22px, 2.4vw, 28px); }
.prose .callout p { color: var(--night-muted); }
.prose .callout .btn { margin-top: 1.2em; }
.prose .tier + .tier { margin-top: 16px; }
.prose .tier ul { margin-top: 0.8em; }
.prose .table-wrap table { min-width: 560px; }
.prose img { border-radius: var(--radius); }

/* ---------- Editorial rows (landing pages) ---------- */
.ed-row { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 80px); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.ed-row:last-child { border-bottom: 1px solid var(--line); }
.ed-row .ed-label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); display: flex; gap: 12px; align-items: baseline; }
.ed-row .ed-label span { color: var(--ink); }
.ed-row h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 20px; }
.ed-row p { color: var(--ink-2); font-size: 17.5px; max-width: 680px; }
.ed-row p + p { margin-top: 14px; }
.ed-row .link { margin-top: 20px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.check-grid li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; color: var(--ink-2); }
.check-grid li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.area-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.area-tiles span { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; font-size: 15.5px; background: var(--card); }
.area-tiles span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.remote-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 28px; padding: 24px 26px; border-radius: var(--radius-lg); background: var(--night); color: var(--paper); }
.remote-card .rc-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--night-3); display: grid; place-items: center; color: var(--accent-hi); }
.remote-card .rc-icon svg { width: 24px; height: 24px; }
.remote-card b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.remote-card p { color: var(--night-muted); font-size: 15.5px; margin-top: 4px; }
.keep-reading { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
@media (max-width: 860px) {
  .ed-row { grid-template-columns: minmax(0, 1fr); }
  .check-grid { grid-template-columns: 1fr; }
  .remote-card { grid-template-columns: 1fr; }
}

/* ---------- Ambient light (gives glass something to refract) ---------- */
.ambient { position: relative; isolation: isolate; }
.ambient::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 12% 22%, rgba(212, 80, 10, 0.075), transparent 70%),
    radial-gradient(46% 40% at 86% 34%, rgba(255, 255, 255, 0.8), transparent 72%),
    radial-gradient(40% 32% at 24% 84%, rgba(255, 255, 255, 0.6), transparent 70%),
    radial-gradient(32% 26% at 80% 88%, rgba(212, 80, 10, 0.05), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.on-dark.ambient::before {
  background:
    radial-gradient(40% 34% at 85% 20%, rgba(242, 100, 28, 0.16), transparent 70%),
    radial-gradient(45% 40% at 10% 85%, rgba(110, 130, 170, 0.16), transparent 72%),
    radial-gradient(30% 28% at 55% 55%, rgba(242, 100, 28, 0.05), transparent 70%);
}

/* ---------- Glass card (light) ---------- */
.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.34));
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(15, 15, 14, 0.04), 0 14px 36px -18px rgba(15, 15, 14, 0.24);
}
/* ---------- Glass card (dark) ---------- */
.glass-card-dark {
  background: linear-gradient(180deg, rgba(40, 40, 37, 0.55), rgba(24, 24, 22, 0.42));
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.18), inset 0 -1px 1px rgba(255, 255, 255, 0.04), 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
