
:root {
  --paper: #f1efe9;
  --paper-2: #e2ded5;
  --ink: #151416;
  --muted: #5c5752;
  --night: #171619;
  --night-2: #211f23;
  --line: #c9c4ba;
  --line-dark: #3b383e;
  --accent: #bd164f;
  --accent-on-dark: #ef6b9b;
  --blue: #286f95;
  --green: #196846;
  --amber: #ae6729;
  --shell: 1240px;
}

body.home-template .grain { display: none; }
body.home-template > main { padding: 0; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.top-stage { padding-bottom: 24px; background: #100f11; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 66px;
  padding: 0 max(24px, calc((100vw - var(--shell)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid #29262b;
  background: rgba(16, 15, 17, .97);
  color: #f3f0eb;
  backdrop-filter: blur(12px);
}
.brand { width: max-content; display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 760; letter-spacing: -.035em; }
.brand img { width: 31px; height: 29px; object-fit: cover; border-radius: 8px; }
.desktop-nav { display: flex; align-items: center; gap: 24px; color: #d0c9c7; font-size: 13px; font-weight: 650; }
.desktop-nav a, .official-link { transition: color .18s ease; }
.desktop-nav a:hover, .official-link:hover { color: #fff; }
.official-link { justify-self: end; display: inline-flex; gap: 9px; align-items: center; color: #f6dbe5; font-size: 13px; font-weight: 700; }
.official-link span { color: var(--accent-on-dark); font-size: 14px; }
.mobile-menu { display: none; }

/* The homepage uses its own stylesheet, so define its keyboard states explicitly. */
body.home-template :where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
body.home-template .site-header :where(a, summary):focus-visible,
body.home-template .site-footer a:focus-visible,
body.home-template .hero :where(a, summary):focus-visible,
body.home-template .field-section :where(a, summary):focus-visible {
  outline-color: #ff78aa;
}
body.home-template .intent-row nav a:focus-visible {
  background: #fff;
  box-shadow: inset 4px 0 0 var(--accent);
}
body.home-template .guide-group:focus-visible,
body.home-template .lead-story:focus-visible,
body.home-template .side-stories > a:focus-visible {
  outline-offset: 5px;
}
body.home-template .faq-list summary:focus-visible {
  outline-offset: -3px;
}

body.home-template .plain-link,
body.home-template .field-heading > a,
body.home-template .ownership-line > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
body.home-template .intent-row nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.hero {
  min-height: 500px;
  margin-top: 16px;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  grid-template-rows: 1fr 68px;
  overflow: hidden;
  border-radius: 16px;
  background: #100f11;
  color: #f6f2ed;
  border: 1px solid #2b282d;
}
.hero-copy { position: relative; z-index: 2; width: auto; min-width: 0; padding: 32px 42px 24px 46px; box-sizing: border-box; }
.dateline, .section-label {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 650 10px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hero .dateline { color: #bbb4b8; }
.dateline span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(216, 36, 104, .1); }
h1 { max-width: 610px; margin: 0; font-size: clamp(44px, 3.75vw, 54px); line-height: .98; letter-spacing: -.057em; font-weight: 730; }
body.home-template .hero h1 { max-width: 610px; margin: 0; font-size: clamp(44px, 3.75vw, 54px); line-height: .98; letter-spacing: -.057em; font-weight: 730; text-transform: none; }
.hero-lede { max-width: 570px; margin: 20px 0 22px; color: #ddd7d9; font-size: 16px; line-height: 1.54; letter-spacing: -.01em; }
.hero-actions { display: flex; align-items: center; gap: 23px; }
.primary-link { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 750; transition: background .18s ease, transform .18s ease; }
.primary-link:hover { background: #ef367c; transform: translateY(-2px); }
.plain-link { width: max-content; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 4px; border-bottom: 1px solid #928d86; font-size: 13px; font-weight: 720; }
.hero .plain-link span { color: var(--accent-on-dark); }
.plain-link span { color: var(--accent); }
.plain-link.light { border-color: #6e696c; }
.independence { margin: 16px 0 0; color: #aaa3a7; font: 560 10px/1.45 "SFMono-Regular", Consolas, monospace; letter-spacing: .045em; text-transform: uppercase; }
.independence a { color: #d1cace; text-decoration: underline; text-decoration-color: #5e5860; text-underline-offset: 3px; }
.independence a:hover { color: #fff; }

.hero-figure { position: relative; min-width: 0; margin: 0; overflow: hidden; border-left: 1px solid #2e2b30; background: #0d0c0e; }
.hero-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,13,16,.5), rgba(15,13,16,0) 38%), linear-gradient(0deg, rgba(10,9,11,.74), transparent 37%); pointer-events: none; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 53% center; }
.hero-figure figcaption { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; color: #f2eeea; }
.hero-figure figcaption span { color: #e65a8d; font: 650 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; }
.hero-figure figcaption strong { font-size: 13px; }

.fact-strip { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #343137; background: #171519; }
.fact-strip div { padding: 14px 24px; border-right: 1px solid #343137; }
.fact-strip div:last-child { border-right: 0; }
.fact-strip dt { margin-bottom: 6px; color: #9a949b; font: 560 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; text-transform: uppercase; }
.fact-strip dd { margin: 0; font-size: 14px; font-weight: 700; }

.intent-section { padding: 78px 0 50px; display: grid; grid-template-columns: .39fr 1fr; gap: 62px; align-items: start; }
.intent-intro { position: sticky; top: 104px; }
.intent-intro h2 { max-width: 430px; }
.intent-intro > p:last-child { max-width: 390px; margin: 24px 0 0; color: #585451; font-size: 16px; line-height: 1.62; }
h2 { margin: 0; font-size: clamp(38px, 3.75vw, 52px); line-height: 1.02; letter-spacing: -.054em; font-weight: 700; }
.intent-list { border-top: 1px solid #aaa49b; }
.intent-row {
  --route: var(--accent);
  min-height: 146px;
  padding: 23px 0;
  display: grid;
  grid-template-columns: 78px 1fr 280px;
  gap: 22px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.intent-row:nth-child(2) { --route: var(--blue); }
.intent-row:nth-child(3) { --route: var(--green); }
.intent-row:nth-child(4) { --route: var(--amber); }
.intent-id { display: grid; gap: 8px; }
.intent-id span { color: var(--route); font: 700 23px "SFMono-Regular", Consolas, monospace; letter-spacing: -.05em; }
.intent-id small { color: #6e6863; font: 650 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.intent-copy h3 { margin: 0 0 10px; font-size: 25px; line-height: 1.05; letter-spacing: -.045em; }
.intent-copy p { max-width: 430px; margin: 0; color: #5d5955; font-size: 14px; line-height: 1.55; }
.intent-row nav { display: grid; gap: 3px; }
.intent-row nav a { padding: 8px 0; display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #c8c3bb; font-size: 13px; font-weight: 700; }
.intent-row nav a span { color: var(--route); transition: transform .18s ease; }
.intent-row nav a:hover span { transform: translate(2px, -2px); }

.product-section { padding: 72px 0 0; overflow: hidden; background: var(--paper-2); }
.product-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.product-intro { columns: 2; column-gap: 30px; }
.product-intro p { break-inside: avoid; margin: 0; color: #57534f; font-size: 15px; line-height: 1.62; }
.product-intro p + p { margin-top: 14px; }
.interface-stage { margin-top: 40px; display: grid; grid-template-columns: 1.5fr .5fr; height: 390px; background: var(--night); color: #f2eee9; }
.interface-visual { position: relative; min-width: 0; margin: 0; overflow: hidden; }
.interface-visual::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.1); pointer-events: none; }
.interface-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.74) contrast(1.05); }
.interface-visual figcaption { position: absolute; left: 16px; bottom: 14px; padding: 8px 10px; background: rgba(15,14,16,.88); color: #d2cccf; font: 600 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.fit-rail { display: grid; grid-template-rows: 1fr 1fr; border-left: 1px solid var(--line-dark); }
.fit-block { padding: 22px 25px 18px; }
.fit-block + .fit-block { border-top: 1px solid var(--line-dark); }
.fit-block > span { display: block; margin-bottom: 16px; color: #ada7aa; font: 650 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; text-transform: uppercase; }
.fit-block.positive > span { color: #6fd2a5; }
.fit-block.caution > span { color: #e895b4; }
.fit-block ul { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.fit-block li { position: relative; padding-left: 18px; color: #ded8db; font-size: 13px; line-height: 1.4; }
.fit-block li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 1px; background: currentColor; }
.ownership-line { min-height: 104px; padding: 24px 0; display: grid; grid-template-columns: 150px 1fr auto; gap: 32px; align-items: center; }
.ownership-line > span { color: var(--accent); font: 650 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.ownership-line p { max-width: 760px; margin: 0; color: #57534f; font-size: 13px; line-height: 1.58; }
.ownership-line p strong { color: var(--ink); }
.ownership-line a { font-size: 12px; font-weight: 720; white-space: nowrap; }

.decision-section, .index-section, .faq-section { padding-top: 78px; padding-bottom: 82px; }
.editorial-heading { margin-bottom: 42px; }
.editorial-heading > p, .split-heading > div > p, .index-heading > div > p { margin: 0 0 11px; color: var(--accent); font: 650 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; }
.split-heading, .index-heading { display: grid; grid-template-columns: 1fr 380px; gap: 70px; align-items: end; }
.split-heading > p, .index-heading > p { margin: 0; color: #5a5652; font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.6; letter-spacing: -.01em; text-transform: none; }
.decision-table { border-top: 1px solid #99938b; }
.decision-table > a { min-height: 118px; padding: 24px 0; display: grid; grid-template-columns: 68px 1fr 1.15fr 130px; gap: 25px; align-items: center; border-bottom: 1px solid var(--line); }
.decision-table > a:hover h3 { color: var(--accent); }
.decision-index { color: #6e6863; font: 650 12px "SFMono-Regular", Consolas, monospace; }
.decision-table small { display: block; margin-bottom: 5px; color: var(--accent); font: 620 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.decision-table h3 { margin: 0; font-size: 22px; letter-spacing: -.04em; transition: color .18s ease; }
.decision-table p { max-width: 440px; margin: 0; color: #5d5955; font-size: 14px; line-height: 1.55; }
.decision-table strong { justify-self: end; font-size: 12px; }

.field-section { padding: 74px 0 80px; background: var(--night); color: #f1eee8; }
.field-heading > a { width: max-content; justify-self: end; padding-bottom: 7px; color: #cbc5c2; border-bottom: 1px solid #5c585e; font-size: 12px; font-weight: 650; }
.field-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: start; }
.lead-story, .side-stories > a { background: var(--night-2); }
.lead-story { position: relative; overflow: hidden; align-self: start; display: grid; grid-template-columns: 1.08fr .92fr; grid-template-rows: auto auto; border: 1px solid #49434b; border-top: 4px solid var(--accent); background: #252228; box-shadow: 0 20px 55px rgba(0,0,0,.24); }
.story-art { min-width: 0; min-height: 0; aspect-ratio: 16/9; overflow: hidden; }
.story-art img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .3s ease, filter .3s ease; }
.lead-story:hover .story-art img { transform: scale(1.02); }
.story-copy { padding: 31px 29px 24px; display: flex; flex-direction: column; }
.content-badge, .hub-badge { width: max-content; display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border: 1px solid currentColor; color: #e85b8f; font: 700 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.story-copy > .content-badge { margin: 0 0 12px; }
.side-stories .content-badge { margin-bottom: 10px; }
.story-meta, .side-stories p { margin: 0 0 13px; color: #e85b8f; font: 600 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.story-copy h3 { margin: 0 0 17px; font-size: 29px; line-height: 1.06; letter-spacing: -.047em; }
.story-copy > p:not(.story-meta) { margin: 0; color: #c1bbbd; font-size: 14px; line-height: 1.62; }
.story-copy > span:not(.content-badge) { margin-top: auto; padding-top: 24px; color: #f0ebe7; font-size: 12px; font-weight: 700; }
.story-evidence { grid-column: 1 / -1; margin: 0; padding: 19px 27px 23px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid #3f3c42; }
.story-evidence dt { margin-bottom: 7px; color: #aaa3a8; font: 600 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.story-evidence dd { margin: 0; color: #d0cac8; font-size: 13px; line-height: 1.5; }
.story-evidence strong { color: #fff; font-size: 23px; letter-spacing: -.04em; }
.side-stories { align-self: start; display: grid; grid-template-rows: auto auto auto; gap: 13px; }
.side-title { grid-column: 1 / -1; margin: 0 0 2px; color: #8e888d; font: 650 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.side-stories > a { min-height: 0; padding: 14px; display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 17px; align-items: center; border: 1px solid #343137; border-left: 3px solid #57515a; background: #1d1b1f; }
.side-stories > a:first-of-type { border-left-color: var(--accent); }
.side-stories img { display: block; width: 142px; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.side-stories h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.13; letter-spacing: -.036em; }
.side-stories div > span { display: block; color: #bab4b5; font-size: 13px; line-height: 1.5; }

.index-heading > p { max-width: 430px; }
.index-heading > p a {
  color: #8f1645;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #b67990;
  text-underline-offset: 3px;
}
.guide-index { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 54px; }
.guide-group { min-width: 0; padding-bottom: 27px; display: grid; grid-template-columns: 188px 1fr; gap: 23px; align-items: center; border-bottom: 1px solid #c8c3ba; }
.guide-group figure { position: relative; width: 100%; min-width: 0; aspect-ratio: 16/9; align-self: center; margin: 0; overflow: hidden; background: #1a191b; }
.guide-group figure img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .28s ease; }
.guide-group > div { min-width: 0; }
.guide-group:hover figure img { transform: scale(1.035); }
.hub-badge { margin-bottom: 9px; color: #6f625f; min-height: 20px; padding-inline: 7px; font-size: 10px; }
.guide-group h3 { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 14px; font-size: 21px; letter-spacing: -.04em; }
.guide-group h3 span { color: var(--accent); font-size: 14px; }
.guide-group div > p { margin: 0 0 13px; color: #5c5854; font-size: 13px; line-height: 1.45; }
.guide-group ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 12px; list-style: none; }
.guide-group li { color: #4f4b48; font-size: 12px; }
.guide-group li::before { content: "·"; margin-right: 5px; color: var(--accent); }

.home-tools-section { padding: 78px 0 82px; }
.home-tools-heading { margin-bottom: 38px; }
.home-tools-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
  gap: 54px;
  align-items: stretch;
  border-top: 1px solid #aaa49b;
  border-bottom: 1px solid #aaa49b;
}
.home-tools-visual {
  position: relative;
  min-width: 0;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}
.home-tools-visual img { width: 100%; height: 100%; object-fit: cover; }
.home-tools-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(15,14,16,.7), transparent 42%);
}
.home-tools-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 17px;
  left: 20px;
  color: #f2eee9;
  font: 650 10px/1.5 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.home-tools-directory { display: grid; align-content: stretch; }
.home-tools-directory a {
  min-height: 66px;
  padding: 12px 4px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background .16s ease, padding .16s ease;
}
.home-tools-directory a:last-child { border-bottom: 0; }
.home-tools-directory a:hover { padding-inline: 13px; background: #e5e1d9; }
.home-tools-directory a > span {
  color: var(--accent);
  font: 700 10px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .06em;
}
.home-tools-directory a div { min-width: 0; }
.home-tools-directory b { display: block; font-size: 16px; letter-spacing: -.025em; }
.home-tools-directory small { display: block; margin-top: 3px; color: #68635e; font-size: 12px; line-height: 1.4; }
.home-tools-directory i { color: var(--accent); font-size: 11px; font-style: normal; font-weight: 720; white-space: nowrap; }
.home-tools-directory .home-tools-all { background: #e7e3dc; }
.home-tools-directory .home-tools-all b { color: var(--accent); }

@media (min-width: 1081px) {
  .home-tools-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tools-directory a:nth-child(odd):not(.home-tools-all) { border-right: 1px solid var(--line); }
  .home-tools-directory .home-tools-all { grid-column: 1 / -1; }
}

@media (min-width: 1081px) {
  .guide-index .guide-group:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 27px);
    justify-self: center;
  }
}

.method-section { padding: 90px 0; background: #dedbd3; }
.method-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 94px; align-items: center; }
.method-copy h2 { max-width: 520px; }
.method-copy > p:not(.section-label) { max-width: 540px; margin: 22px 0 0; color: #57534f; font-size: 15px; line-height: 1.65; }
.method-copy .plain-link { margin-top: 28px; }
.author-note { max-width: 560px; margin-top: 29px; padding-top: 23px; display: grid; grid-template-columns: 45px 1fr; gap: 15px; border-top: 1px solid #b8b3aa; }
.author-note > span { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: var(--night); color: #f2eee9; font: 700 11px "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; }
.author-note b { display: block; margin: 1px 0 5px; font-size: 13px; }
.author-note b a { text-decoration: underline; text-decoration-color: #9a948b; text-underline-offset: 3px; }
.author-note p { margin: 0; color: #5d5955; font-size: 12px; line-height: 1.55; }
.bench-sheet { overflow: hidden; border: 1px solid #aaa59c; background: #e9e6df; box-shadow: 0 18px 45px rgba(74, 68, 64, .08); }
.bench-sheet header, .bench-sheet footer { min-height: 44px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; font: 600 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; }
.bench-sheet header { border-bottom: 1px solid #aaa59c; }
.bench-sheet header strong { color: #1d704d; }
.bench-sheet dl { margin: 0; }
.bench-sheet dl div { min-height: 54px; padding: 0 16px; display: grid; grid-template-columns: 112px 1fr; align-items: center; border-bottom: 1px solid #c8c4bc; }
.bench-sheet dt { color: #625d58; font: 600 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.bench-sheet dd { margin: 0; font-size: 13px; }
.bench-sheet footer { color: #625d58; }

.faq-section { padding-bottom: 132px; }
.faq-list { border-top: 1px solid #9f9990; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 74px; padding: 0 3px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: 16px; font-weight: 660; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent); font-size: 20px; font-weight: 400; transition: transform .18s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 820px; margin: -6px 0 24px; color: #57534f; font-size: 15px; line-height: 1.65; }

.site-footer { padding: 55px 0 22px; background: var(--night); color: #eeeae4; }
.footer-main { padding-bottom: 48px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.footer-identity strong { font-size: 20px; letter-spacing: -.035em; }
.footer-identity p { max-width: 360px; margin: 9px 0 0; color: #918d8d; font-size: 11px; }
.footer-main nav { display: flex; gap: 25px; color: #aaa5a5; font-size: 12px; }
.footer-main nav a:hover { color: #fff; }
.footer-small { padding-top: 19px; display: flex; justify-content: space-between; border-top: 1px solid var(--line-dark); color: #9c969b; font: 500 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .05em; text-transform: uppercase; }

/* v82: AA contrast without flattening the light/dark editorial hierarchy. */
.field-heading > div > p { color: var(--accent-on-dark); }
.footer-small p { margin: 0; }
.editorial-footer-hubs { padding: 0 0 20px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 26px; align-items: baseline; }
.editorial-footer-hubs b { color: #6f6a6a; font: 700 8px "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.editorial-footer-hubs div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.editorial-footer-hubs a { color: #aaa5a5; font-size: 12px; text-decoration: none; }
.editorial-footer-hubs a:hover { color: #fff; }
@media (max-width: 700px) { .editorial-footer-hubs { grid-template-columns: 1fr; gap: 10px; } }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: #9c969b; text-decoration: none; }
.footer-legal a:hover { color: #fff; }


@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 18px; }
  .desktop-nav { display: none; }
  .mobile-menu { position: relative; display: block; justify-self: end; }
  .mobile-menu summary { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border: 1px solid #4c494f; list-style: none; cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 16px; height: 1px; background: #e7e2de; }
  .mobile-menu nav { position: absolute; z-index: 80; top: 49px; right: 0; width: 220px; padding: 8px 14px; display: grid; background: var(--night-2); border: 1px solid #4c494f; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
  .mobile-menu nav a { padding: 12px 2px; border-bottom: 1px solid #37343a; font-size: 13px; }
  .hero { grid-template-columns: 1.03fr .97fr; }
  .hero-copy { padding-left: 45px; padding-right: 34px; }
  .intent-section { grid-template-columns: .35fr 1fr; gap: 50px; }
  .intent-row { grid-template-columns: 65px 1fr 220px; }
  .interface-stage { grid-template-columns: 1.25fr .75fr; }
  .field-layout { grid-template-columns: 1fr; gap: 30px; }
  .side-stories { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .side-stories > a { min-height: 0; }
  .method-layout { gap: 50px; }
}

@media (max-width: 900px) {
  .home-tools-layout { grid-template-columns: 1fr; gap: 0; }
  .home-tools-visual { min-height: 0; aspect-ratio: 16 / 9; }
  .home-tools-directory a { padding-inline: 4px; }
  .home-tools-directory a:hover { padding-inline: 10px; }
  .guide-index { grid-template-columns: 1fr; gap: 23px; }
  .guide-group { width: 100%; max-width: 100%; grid-template-columns: 160px minmax(0, 1fr); overflow: hidden; }
  .guide-group h3 { min-width: 0; overflow-wrap: anywhere; }
  .guide-group h3 span { flex: 0 0 auto; }
}

@media (max-width: 900px) {
  .shell { width: calc(100% - 30px); max-width: calc(100vw - 30px); }
  .top-stage { padding-bottom: 15px; }
  .site-header { height: 62px; padding: 0 15px; grid-template-columns: 1fr auto; gap: 12px; }
  .brand { font-size: 16px; }
  .brand img { width: 30px; height: 29px; }
  .official-link { display: none; }
  .mobile-menu { position: relative; display: block; justify-self: end; }
  .mobile-menu summary { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border: 1px solid #4c494f; list-style: none; cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 16px; height: 1px; background: #e7e2de; }
  .mobile-menu nav { position: absolute; top: 49px; right: 0; width: 220px; padding: 8px 14px; display: grid; background: var(--night-2); border: 1px solid #4c494f; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
  .mobile-menu nav a { padding: 12px 2px; border-bottom: 1px solid #37343a; font-size: 13px; }

  .hero { min-height: 0; margin-top: 12px; grid-template-columns: 1fr; grid-template-rows: auto 290px auto; border-radius: 12px; }
  .hero-copy { width: 100%; min-width: 0; padding: 42px 25px 32px; }
  .dateline { margin-bottom: 20px; font-size: 10px; }
  h1 { width: 100%; max-width: 100%; font-size: clamp(40px, 12vw, 48px); overflow-wrap: anywhere; }
  .hero-lede { margin: 22px 0 24px; font-size: 15px; line-height: 1.58; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .primary-link { width: 100%; max-width: 100%; gap: 12px; }
  .independence { margin-top: 21px; font-size: 10px; line-height: 1.5; }
  .hero-figure { grid-row: 2; border-top: 1px solid #2e2b30; border-left: 0; }
  .hero-figure::after { background: linear-gradient(0deg, rgba(10,9,11,.74), transparent 43%); }
  .hero-figure img { object-position: 60% center; }
  .hero-figure figcaption { left: 18px; right: 18px; bottom: 16px; }
  .hero-figure figcaption strong { max-width: 150px; text-align: right; }
  .fact-strip { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .fact-strip div { padding: 16px 18px; }
  .fact-strip div:nth-child(2) { border-right: 0; }
  .fact-strip div:nth-child(-n+2) { border-bottom: 1px solid #343137; }

  .intent-section { padding: 68px 0 40px; grid-template-columns: 1fr; gap: 37px; }
  .intent-intro { position: static; }
  .intent-intro > p:last-child { margin-top: 20px; }
  h2 { font-size: 40px; }
  .intent-row { min-height: 0; padding: 22px 0 24px; grid-template-columns: 54px 1fr; gap: 17px 13px; }
  .intent-id span { font-size: 20px; }
  .intent-id small { font-size: 10px; }
  .intent-copy h3 { font-size: 22px; }
  .intent-copy p { font-size: 14px; }
  .intent-row nav { grid-column: 2; }
  .intent-row nav a { font-size: 13px; }

  .product-section { padding-top: 58px; }
  .product-head { grid-template-columns: 1fr; gap: 28px; }
  .product-intro { columns: 1; }
  .product-intro p { font-size: 15px; }
  .interface-stage { width: 100%; height: auto; margin-top: 34px; grid-template-columns: 1fr; }
  .interface-visual { min-height: 235px; }
  .interface-visual img { object-position: center; }
  .fit-rail { grid-template-rows: auto; border-left: 0; }
  .fit-block { padding: 24px 22px; }
  .fit-block li { font-size: 14px; }
  .ownership-line { padding: 27px 0 31px; grid-template-columns: 1fr; gap: 13px; }
  .ownership-line a { white-space: normal; }

  .decision-section, .index-section, .faq-section { padding-top: 70px; padding-bottom: 76px; }
  .home-tools-section { padding-top: 70px; padding-bottom: 76px; }
  .editorial-heading { margin-bottom: 37px; }
  .split-heading, .index-heading { grid-template-columns: 1fr; gap: 20px; }
  .decision-table > a { padding: 23px 0; grid-template-columns: 42px 1fr; gap: 11px 13px; }
  .decision-table p, .decision-table strong { grid-column: 2; }
  .decision-table strong { justify-self: start; }

  .field-section { padding: 70px 0 78px; }
  .field-heading > a { justify-self: start; }
  .lead-story { grid-template-columns: 1fr; grid-template-rows: auto; }
  .story-art { min-height: 0; aspect-ratio: 16/9; }
  .story-copy { padding: 24px 22px; }
  .story-copy h3 { font-size: 26px; }
  .story-copy > span:not(.content-badge) { padding-top: 24px; }
  .story-evidence { grid-column: auto; padding: 18px 22px 22px; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .story-evidence dd { font-size: 11px; }
  .story-evidence strong { font-size: 20px; }
  .side-stories { grid-template-columns: 1fr; }
  .side-stories > a { min-height: 0; padding: 15px; grid-template-columns: 118px 1fr; }
  .side-stories img { width: 118px; }
  .side-stories h3 { font-size: 18px; }
  .side-stories div > span { font-size: 12px; }

  .guide-index { grid-template-columns: 1fr; gap: 23px; }
  .guide-group { padding-bottom: 21px; grid-template-columns: 128px 1fr; gap: 16px; }
  .guide-group h3 { font-size: 19px; }
  .guide-group div > p { font-size: 13px; }
  .guide-group li { font-size: 11px; }
  .home-tools-directory a { min-height: 68px; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; }
  .home-tools-directory i { display: none; }
  .home-tools-directory b { font-size: 15px; }
  .home-tools-directory small { font-size: 11px; }
  .method-section { padding: 72px 0; }
  .method-layout { grid-template-columns: 1fr; gap: 40px; }
  .bench-sheet dl div { padding: 12px 14px; grid-template-columns: 1fr; gap: 5px; }
  .bench-sheet footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .faq-list summary { min-height: 70px; padding-right: 2px; gap: 20px; font-size: 16px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main nav { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; }
  .footer-small { align-items: flex-start; flex-direction: column; gap: 12px; line-height: 1.6; }
}

@media (max-width: 360px) {
  .guide-group { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
