/* intelligant.ai: the colony theme. Dark ground, bronze for ornament and
   numbering, teal for action. Marcellus for display, Inter for reading,
   JetBrains Mono for labels. (sms-optin.html keeps the older site.css.) */

:root {
  --bg: #030712;
  --band: #111827;
  --card: rgba(17, 24, 39, 0.6);
  --line: #1f2937;
  --line-2: #374151;
  --text: #fff;
  --text-2: #d1d5db;
  --muted: #9ca3af;
  --dim: #858d9a;          /* the design's #6b7280, lifted to pass AA on --bg */
  --teal: #5eead4;
  --teal-hover: #2dd4bf;
  --teal-deep: #14b8a6;
  --teal-wash: rgba(20, 184, 166, 0.12);
  --teal-edge: rgba(20, 184, 166, 0.3);
  --bronze: #c9a45c;
  --bronze-wash: rgba(201, 164, 92, 0.15);
  --bronze-edge: rgba(201, 164, 92, 0.5);
  --danger: #f87171;
  --display: Marcellus, "Iowan Old Style", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1280px;
  --pad: 24px;
  --section: clamp(72px, 9vw, 104px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }
input, textarea, select, button { font: inherit; }
::selection { background: var(--teal); color: #000; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50; padding: 10px 14px;
  background: var(--teal); color: #000; border-radius: 8px; font-family: var(--mono); font-size: 13px; font-weight: 600;
}
.skip:focus { top: 12px; color: #000; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze);
}
.lead { font-size: 16px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.mono { font-family: var(--mono); }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 8px; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 14px; line-height: 1.2; text-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--teal); color: #000; font-weight: 600; }
.btn-primary:hover { background: var(--teal-hover); color: #000; }
.btn-secondary { background: var(--line); color: #fff; }
.btn-secondary:hover { background: var(--line-2); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 13px; font-weight: 600; }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { font-family: var(--mono); font-size: 14px; color: var(--teal); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--teal-wash); border: 1px solid var(--teal-edge); color: var(--teal);
  font-family: var(--mono); font-size: 12px;
}
.pill img { width: 16px; height: 16px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(3, 7, 18, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 32px; height: 32px; }
.brand .word { font-family: var(--display); font-size: 18px; letter-spacing: 0.2em; }
.site-nav { display: flex; gap: 28px; font-size: 14px; }
.site-nav a { color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .15s ease; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--bronze); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.signin { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.signin:hover { color: #fff; }

.menu { position: static; }
.menu > summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary span { width: 18px; height: 1.5px; background: #fff; transition: transform .18s ease, opacity .18s ease; }
.menu[open] > summary span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu[open] > summary span:nth-child(2) { opacity: 0; }
.menu[open] > summary span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.menu-panel {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5); padding: 8px var(--pad) 20px; display: flex; flex-direction: column;
}
.menu-panel a:not(.menu-signin) {
  font-family: var(--display); font-size: 24px; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line);
}
.menu-panel a[aria-current="page"] { color: #fff; }
.menu-signin { font-family: var(--mono); font-size: 14px; padding: 18px 0 0; }

@media (min-width: 880px) { .menu { display: none; } }
@media (max-width: 879.98px) { .site-nav, .signin { display: none; } }
@media (max-width: 400px) { .brand .word { font-size: 15px; letter-spacing: .16em; } .brand { gap: 10px; } .header-actions .btn-sm { padding: 10px 12px; } }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); }
.footer-grid { padding-top: 56px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-grid .brand img { width: 26px; height: 26px; }
.footer-grid .brand .word { font-size: 15px; }
.footer-grid .brand { gap: 10px; }
.footer-grid .tag { font-size: 13px; line-height: 1.6; color: var(--dim); margin-top: 4px; }
.footer-grid h2 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.footer-grid a:not(.brand) { color: var(--muted); }
.footer-grid a:not(.brand):hover { color: var(--teal); }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ---- ornaments ---- */
.meander {
  max-width: 1152px; margin: 0 auto; height: 20px; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M0 19H19V1H5V15H15V5H9V11' fill='none' stroke='%23c9a45c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}
.section-head { margin-bottom: 48px; }
.section-head h2, .h2 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1; margin: 14px 0 12px; }
.section-head p { font-size: 16px; color: var(--muted); }
.h2-sm { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; margin: 14px 0 20px; text-wrap: balance; }

/* ---- home ---- */
.hero { padding-top: clamp(64px, 9vw, 104px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.pediment { width: 100%; max-width: 560px; height: auto; }
.hero .pill { margin-top: 36px; }
.hero h1 { font-size: clamp(44px, 7.5vw, 88px); line-height: 1.05; margin-top: 28px; max-width: 1000px; text-wrap: balance; }
.accent { color: var(--teal); }
.hero .lead { font-size: clamp(16px, 1.6vw, 18px); max-width: 680px; margin-top: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .cta-row { justify-content: center; margin-top: 40px; }
.hero .roster { margin-top: 36px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.hero + .meander { margin-top: 96px; }

.products { padding-top: var(--section); padding-bottom: var(--section); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s ease;
}
.card:hover { border-color: var(--line-2); color: inherit; }
.card .cornice { border-bottom: 1px solid var(--line); }
.card .cornice::before { content: ""; display: block; height: 4px; background: var(--bronze); }
.card .cornice::after {
  content: ""; display: block; height: 28px; margin-top: 3px;
  background: repeating-linear-gradient(90deg, rgba(201, 164, 92, 0.35) 0 1px, transparent 1px 14px);
}
.card .body { padding: 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card .title { display: flex; align-items: center; gap: 14px; }
.letter {
  width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--teal-wash); border: 1px solid var(--teal-edge);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 26px; color: var(--teal);
}
.card h3 { font-size: 26px; }
.card .sub { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.card .desc { font-size: 14px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; font-family: var(--mono); font-size: 12px; }
.tags li { background: var(--line); color: var(--muted); padding: 4px 8px; border-radius: 4px; }
.card .more {
  padding: 16px 28px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--teal);
  display: flex; justify-content: space-between;
}

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; padding-top: var(--section); padding-bottom: var(--section); }
.split.center { align-items: center; }
.handoffs { display: flex; flex-direction: column; gap: 16px; }
.handoff { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.handoff .num { font-family: var(--display); font-size: 32px; line-height: 1; color: var(--bronze); width: 32px; flex: none; }
.handoff .who { font-family: var(--mono); font-size: 12px; color: var(--teal); margin-bottom: 6px; }
.handoff h3 { font-size: 24px; margin-bottom: 8px; }
.handoff p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.name-copy .lead { margin-bottom: 24px; }
.mark-frame {
  display: flex; justify-content: center; padding: 48px; border: 1px solid var(--line); border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(201, 164, 92, 0.12), transparent 60%);
}
.mark-frame img { width: 180px; height: 180px; }

/* ---- product pages ---- */
.product-hero {
  padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center;
}
.back { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 28px; }
.back:hover { color: #fff; }
.product-hero h1 { font-size: clamp(52px, 7vw, 84px); line-height: 1; margin-top: 24px; }
.product-hero .tagline { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; color: var(--text-2); margin-top: 20px; text-wrap: balance; }
.product-hero .lead { margin-top: 20px; max-width: 560px; }
.product-hero .cta-row { margin-top: 36px; }
.product-hero .host { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.temple {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 40px 32px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.temple svg { width: 100%; max-width: 400px; height: auto; }
.facts { width: 100%; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); flex: none; }
.facts dd { margin: 0; color: var(--text-2); text-align: right; }

.caps-wrap { padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
.caps-wrap h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 14px 0 40px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tile .num { font-family: var(--display); font-size: 28px; color: var(--bronze); }
.tile h3 { font-size: 22px; }
.tile p { font-size: 14px; line-height: 1.65; color: var(--muted); }

.steps-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px; padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
.steps-split h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 14px 0 20px; text-wrap: balance; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps .n {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--bronze); color: var(--bronze);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px;
}
.steps h3 { font-size: 21px; margin: 4px 0 8px; }
.steps p { font-size: 14px; line-height: 1.6; color: var(--muted); }

.cta-box {
  margin-bottom: clamp(64px, 8vw, 96px); border: 1px solid var(--line); border-radius: 12px; padding: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(201, 164, 92, 0.08), transparent);
}
.cta-box h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta-box p { font-size: 15px; color: var(--muted); }

/* ---- pricing ---- */
.pricing { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.page-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.page-head h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 16px 0; }
.page-head .lead { margin-bottom: 36px; max-width: 560px; }
.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--band); gap: 4px; }
.tabs [role="tab"] {
  cursor: pointer; padding: 10px 22px; border-radius: 7px; border: 0; background: transparent; color: var(--muted);
  font-family: var(--mono); font-size: 13px; transition: background-color .15s ease, color .15s ease;
}
.tabs [role="tab"]:hover { color: #fff; }
.tabs [role="tab"][aria-selected="true"] { background: var(--teal); color: #000; }
.tabs[hidden] { display: none; }
.plans { margin-top: 48px; }
.plans + .plans { margin-top: 64px; }
.plans > h2 { font-size: 30px; margin-bottom: 24px; }
.js .plans > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.tier { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.tier.featured { border-color: var(--bronze-edge); }
.tier .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tier h3 { font-size: 26px; }
.badge {
  font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: var(--bronze-wash); border: 1px solid rgba(201, 164, 92, 0.4); color: var(--bronze);
}
.price { font-family: var(--display); font-size: 44px; line-height: 1; }
.unit { font-size: 13px; color: var(--dim); margin-top: 6px; }
.tier .for { font-size: 14px; line-height: 1.6; color: var(--muted); }
.points { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.points li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.points li::before { content: "✓"; color: var(--teal); }
.tier .btn { margin-top: auto; padding: 13px; font-weight: 600; }
.fine { text-align: center; font-size: 13px; color: var(--dim); margin-top: 32px; }

/* ---- about ---- */
.about-hero { max-width: 960px; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.about-hero img { width: 96px; height: 96px; }
.about-hero .kicker { margin-top: 32px; }
.about-hero h1 { font-size: clamp(40px, 6.5vw, 76px); line-height: 1.05; margin-top: 16px; text-wrap: balance; }
.story { max-width: 720px; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 24px; font-size: 18px; line-height: 1.75; color: var(--text-2); }
.dropcap { font-family: var(--display); font-size: 64px; line-height: 0.8; float: left; padding: 6px 12px 0 0; color: var(--bronze); }
.greek { font-family: var(--display); color: #fff; }
.principles { padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
.principles h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 40px; }
.company-row { padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.company-row h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.company-row p { font-size: 15px; color: var(--muted); }
.company-row p a { color: var(--muted); }
.company-row p a:hover { color: var(--teal); }

/* ---- contact ---- */
.contact { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact-copy h1 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1.05; }
.contact-copy .direct { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 14px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.form { padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; font-size: 14px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > legend, .field-label { font-size: 13px; font-weight: 500; color: var(--teal); padding: 0; }
.opt { color: var(--dim); font-weight: 400; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; background: var(--line); border: 1px solid var(--line-2); border-radius: 8px; color: #fff; padding: 11px 14px;
}
.form textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 1px var(--teal-deep); }
.form [aria-invalid="true"] { border-color: #ef4444; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field > legend { font-weight: 600; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: block; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 9px 14px; border-radius: 8px; transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.chip input:hover + span { color: #fff; }
.chip input:checked + span { border-color: var(--teal-deep); background: rgba(20, 184, 166, 0.1); color: var(--teal); }
.chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.alert { padding: 12px; background: rgba(127, 29, 29, 0.2); border: 1px solid #991b1b; border-radius: 8px; font-size: 13px; color: var(--danger); }
.notice { display: none; margin: 0 0 16px; }
.notice:target { display: block; }
.field-error { font-size: 12px; color: var(--danger); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .status { font-family: var(--mono); font-size: 13px; color: var(--muted); align-self: center; }
.form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form .btn { padding: 13px 32px; font-weight: 600; }
.sent { padding: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sent[hidden] { display: none; }
.sent .tick {
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--bronze); color: var(--bronze);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.sent h2 { font-size: 32px; }
.sent p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--teal); }
.linkish:hover { color: var(--teal-hover); }

/* ---- legal ---- */
.legal { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); display: flex; flex-wrap: wrap; gap: 48px; }
.legal aside { flex: 0 0 220px; display: flex; flex-direction: column; gap: 4px; align-self: flex-start; position: sticky; top: 104px; }
.legal aside .kicker { margin-bottom: 12px; }
.legal aside a { padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.legal aside a:hover { color: #fff; }
.legal aside a[aria-current="page"] { background: var(--line); color: #fff; }
.doc { flex: 1 1 480px; min-width: 0; max-width: 760px; counter-reset: sec; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.doc .updated { font-family: var(--mono); font-size: 12px; color: var(--dim); margin: 14px 0 40px; }
.doc .rule { display: none; }
.doc h2 { font-size: 24px; line-height: 1.3; margin: 0 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc h2::before { counter-increment: sec; content: counter(sec, upper-roman); content: counter(sec, upper-roman) / ""; color: var(--bronze); margin-right: 12px; }
.doc > p { font-size: 15.5px; line-height: 1.75; color: var(--text-2); margin: 0 0 14px; }
.doc > p:has(+ h2) { margin-bottom: 24px; }
.doc strong { color: #fff; font-weight: 600; }
.doc .foot { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--muted); }
@media (max-width: 760px) {
  .legal { gap: 24px; }
  .legal aside { position: static; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
  .legal aside .kicker { flex-basis: 100%; margin-bottom: 4px; }
}

/* ---- small pages (404, thanks) ---- */
.lone { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 72px var(--pad); }
.lone .inner { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 540px; }
.lone img { width: 88px; height: 88px; }
.lone h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; }
.lone .lead { margin-bottom: 8px; }

@media (max-width: 560px) {
  :root { --pad: 16px; }
  .handoff { padding: 20px; gap: 16px; }
  .mark-frame { padding: 32px; }
  .mark-frame img { width: 140px; height: 140px; }
  .temple { padding: 28px 20px 20px; }
  .tier { padding: 24px; }
  .sent { padding: 32px 24px; }
  .facts div { flex-direction: column; gap: 4px; }
  .facts dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
