/* Trilegient — site stylesheet
   Layout concept: an editorial reading column with a margin rail for statute
   references, set on a green-tinted paper ground taken from the brand mark. */
:root {
  --paper: #f7f8f4;
  --surface: #ffffff;
  --ink: #1e1f20;          /* brand charcoal */
  --muted: #565d55;
  --line: #dde2d6;
  --leaf: #80ac22;         /* brand green */
  --leaf-text: #4b6a0e;    /* text-safe green on paper */
  --band: #17221b;         /* deep forest band */
  --band-ink: #e9eee3;
  --band-muted: #a7b2a2;
  --header-bg: #ffffff;
  --header-ink: #1e1f20;
  --tint: #eef2e6;
  --shadow: 0 1px 2px rgba(23, 34, 27, .06), 0 8px 24px rgba(23, 34, 27, .06);

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --s-xs: .8125rem; --s-sm: .9375rem; --s-md: 1.0625rem; --s-lg: 1.375rem;
  --s-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --s-2xl: clamp(2.2rem, 1.4rem + 3vw, 3.75rem);
  --wrap: 1180px;
  --read: 68ch;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111613; --surface: #18201b; --ink: #e8ece3; --muted: #a2ab9e;
    --line: #2b352e; --leaf: #9cc93a; --leaf-text: #a9d24e; --band: #0b100d;
    --band-ink: #e8ece3; --band-muted: #9ea99a; --tint: #1b241d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111613; --surface: #18201b; --ink: #e8ece3; --muted: #a2ab9e;
  --line: #2b352e; --leaf: #9cc93a; --leaf-text: #a9d24e; --band: #0b100d;
  --band-ink: #e8ece3; --band-muted: #9ea99a; --tint: #1b241d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--s-md)/1.65 var(--f-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--header-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--s-2xl); }
h2 { font-size: var(--s-xl); }
h3 { font-size: var(--s-lg); }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow { font: 500 var(--s-xs)/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--leaf-text); }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 60ch; line-height: 1.6; }
.mono { font-family: var(--f-mono); font-size: .92em; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--header-bg); border-bottom: 1px solid rgba(30,31,32,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 190px; height: auto; display: block; }
/* The logo's wordmark sits in its upper half; nudge it down so the word lines up with the menu text. */
.brand-mark { position: relative; display: block; padding-top: 10px; padding-right: 8px; }
.brand-mark .reg { position: absolute; top: 12px; right: 0; font: 600 11px/1 var(--f-body); color: #1e1f20; }
.foot-word .reg { font-size: .5em; vertical-align: super; margin-left: 1px; letter-spacing: 0; display: inline; color: var(--band-ink); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav > ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; align-items: center; }
.nav a, .nav button.nav-top { font: 500 var(--s-sm)/1 var(--f-body); color: var(--header-ink); text-decoration: none; padding: .7rem .75rem; border-radius: var(--radius); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.nav a:hover, .nav button.nav-top:hover, .nav a[aria-current="page"] { color: #4b6a0e; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #80ac22; border-radius: 0; }
.has-sub { position: relative; }
.caret { width: .55em; height: .55em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 4px); left: -.5rem; min-width: 280px; background: #ffffff; border: 1px solid #dde2d6; border-radius: 6px; box-shadow: 0 12px 32px rgba(23,34,27,.14); display: none; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: block; }
.sub a { display: block; padding: .65rem .75rem; line-height: 1.35; color: #1e1f20; }
.sub a small { display: block; color: #565d55; font-weight: 400; font-size: var(--s-xs); margin-top: .2rem; }
.sub a:hover { background: #eef2e6; color: #1e1f20; }
.nav-cta { margin-left: .5rem; }
.menu-toggle { display: none; background: none; border: 1px solid #dde2d6; border-radius: var(--radius); padding: .55rem .7rem; font: 500 var(--s-sm) var(--f-body); color: #1e1f20; cursor: pointer; }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; top: calc(72px + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0; height: calc(100dvh - 72px - env(safe-area-inset-top, 0px)); z-index: 49; background: #ffffff; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; border-top: 1px solid #eef2e6; padding: 1rem max(16px, env(safe-area-inset-right, 0px)) 2rem max(16px, env(safe-area-inset-left, 0px)); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button.nav-top { width: 100%; padding: .9rem .25rem; font-size: 1rem; justify-content: space-between; border-bottom: 1px solid #eef2e6; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; min-width: 0; }
  .has-sub:hover > .sub { display: none; }
  .has-sub.open > .sub { display: block; }
  .nav-cta { margin: 1rem 0 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 var(--s-sm)/1 var(--f-body); padding: .9rem 1.25rem; border-radius: var(--radius); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--leaf-text); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.nav-cta.btn-primary { background: #1e1f20; color: #fff; }
.nav-cta.btn-primary:hover { background: #4b6a0e; color: #fff; }
.arrow::after { content: "→"; font-family: var(--f-body); }

/* Hero */
.hero { padding-block: clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-block: 1rem 1.5rem; }
.hero h1 em { font-style: italic; color: var(--leaf-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.wheel { width: 100%; max-width: 420px; aspect-ratio: 1; margin-inline: auto; color: var(--leaf); }
.wheel svg { width: 100%; height: 100%; overflow: visible; }
.wheel .rot { transform-origin: 50% 50%; animation: turn 240s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.wheel-cap { text-align: center; font: 400 var(--s-xs)/1.4 var(--f-mono); color: var(--muted); margin-top: .75rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .wheel { max-width: 240px; } }

/* Jurisdiction strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip div { padding: 1.4rem 1rem 1.4rem 0; display: grid; gap: .3rem; }
.strip div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.strip b { font: 500 1.05rem/1.2 var(--f-display); }
.strip span { font-size: var(--s-xs); color: var(--muted); }
@media (max-width: 760px) { .strip .wrap { grid-template-columns: 1fr 1fr; } .strip div:nth-child(3) { padding-left: 0; border-left: 0; } .strip div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section.tint { background: var(--tint); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-top: .6rem; }
.section-head p { color: var(--muted); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Practice index */
.practice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.practice-list li { border-bottom: 1px solid var(--line); }
.practice-list a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 1rem 2.5rem; padding: 1.75rem 0; text-decoration: none; color: var(--ink); align-items: start; }
.practice-list h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); transition: color .2s; }
.practice-list p { color: var(--muted); font-size: var(--s-sm); }
.practice-list .refs { display: block; margin-top: .6rem; font: 400 var(--s-xs)/1.5 var(--f-mono); color: var(--leaf-text); }
.practice-list .go { font: 500 var(--s-sm) var(--f-body); color: var(--muted); white-space: nowrap; padding-top: .3rem; }
.practice-list a:hover h3 { color: var(--leaf-text); }
.practice-list a:hover .go { color: var(--ink); }
@media (max-width: 760px) { .practice-list a { grid-template-columns: 1fr; gap: .5rem; } .practice-list .go { padding-top: 0; } }

/* Two column prose + rail */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 1.1rem; }
.stack-lg { display: grid; gap: 2rem; }

.figure { position: relative; border-radius: var(--radius); overflow: hidden; background:
  repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--leaf) 10%, transparent) 14px 15px),
  linear-gradient(160deg, var(--tint), var(--surface)); aspect-ratio: 3 / 2; border: 1px solid var(--line); }
.figure img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.figure .ph { position: absolute; inset: auto 0 0 0; padding: .75rem 1rem; font: 400 var(--s-xs)/1.4 var(--f-mono); color: var(--muted); }
.figure.wide { aspect-ratio: 16 / 7; }
.figure.w2 { aspect-ratio: 2 / 1; }
.figure.wide img { object-position: center 60%; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.principles > div { padding: 1.5rem 1.5rem 1.5rem 0; display: grid; gap: .6rem; align-content: start; }
.principles > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.principles h3 { font-size: 1.25rem; }
.principles p { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } .principles > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Process (real sequence) */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.process li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .5rem; align-content: start; }
.process li::before { content: "Stage " counter(step); font: 500 var(--s-xs) var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--leaf-text); }
.process h3 { font-size: 1.15rem; }
.process p { font-size: var(--s-sm); color: var(--muted); }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Dark band */
.band { background: var(--band); color: var(--band-ink); }
.band h2, .band h3 { color: var(--band-ink); }
.band p, .band li { color: var(--band-muted); }
.band .eyebrow { color: var(--leaf); }
.band a { color: var(--leaf); }
.band .btn-primary { background: var(--leaf); color: #14200a; }
.band .btn-primary:hover { background: #fff; color: #14200a; }
.band .btn-ghost { color: var(--band-ink); border-color: rgba(255,255,255,.25); }
.band .btn-ghost:hover { border-color: var(--band-ink); color: var(--band-ink); }

.desks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.desks > div { background: var(--band); padding: 1.75rem; display: grid; gap: .75rem; align-content: start; }
.desks .code { font: 500 var(--s-xs) var(--f-mono); color: var(--leaf); letter-spacing: .08em; }
.desks ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: var(--s-sm); }
@media (max-width: 860px) { .desks { grid-template-columns: 1fr; } }

/* Cards for insights */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-rows: auto 1fr; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--leaf); transform: translateY(-2px); color: var(--ink); }
.card .figure { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; aspect-ratio: 16 / 9; }
.card-body { padding: 1.4rem; display: grid; gap: .65rem; align-content: start; }
.card h3 { font-size: 1.25rem; }
.card p { font-size: var(--s-sm); color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font: 400 var(--s-xs)/1.4 var(--f-mono); color: var(--muted); }
.tag { font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--leaf-text); }

/* Page header (inner) */
.page-head { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: var(--surface); }
.crumbs { font: 400 var(--s-xs)/1.4 var(--f-mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head h1 { max-width: 22ch; }
.page-head .lede { margin-top: 1.1rem; }

/* Article layout with rail */
.doc { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, var(--read)); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.rail { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); align-self: start; display: grid; gap: 1.5rem; font-size: var(--s-sm); }
.rail h2 { font: 500 var(--s-xs)/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rail a { color: var(--ink); text-decoration: none; }
.rail a:hover { color: var(--leaf-text); }
.rail .statutes li { font: 400 var(--s-xs)/1.45 var(--f-mono); color: var(--muted); padding-left: .8rem; border-left: 2px solid var(--leaf); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .rail { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 1.5rem; } }

.prose { min-width: 0; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); margin-top: 2.75rem; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: .5rem; }
.prose li::marker { color: var(--leaf-text); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--leaf); font: italic 400 1.2rem/1.5 var(--f-display); color: var(--ink); }
.note { background: var(--tint); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: var(--s-sm); color: var(--ink); }
.note b { display: block; font: 500 var(--s-xs)/1.3 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--leaf-text); margin-bottom: .35rem; }
.asof { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font: 400 var(--s-xs)/1.4 var(--f-mono); color: var(--muted); padding: .9rem 0; border-block: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: var(--s-sm); min-width: 520px; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 var(--s-xs)/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--tint); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--f-mono); font-size: var(--s-xs); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative; font: 500 1.15rem/1.35 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1.1rem; font: 300 1.5rem/1 var(--f-body); color: var(--leaf-text); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 0 1.4rem; color: var(--muted); max-width: var(--read); display: grid; gap: .8rem; }

/* Case notes */
.casenote { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; }
.casenote .cite { font: 400 var(--s-xs)/1.5 var(--f-mono); color: var(--muted); }
.casenote dl { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .65rem 1.25rem; margin: 0; font-size: var(--s-sm); }
.casenote dt { font: 500 var(--s-xs)/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--leaf-text); }
.casenote dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .casenote dl { grid-template-columns: 1fr; gap: .2rem; } .casenote dd { margin-bottom: .6rem; } }
.hypo { border-style: dashed; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.particulars { display: grid; gap: 1.5rem; }
.particulars div { display: grid; gap: .25rem; }
.particulars dt, .label { font: 500 var(--s-xs)/1.3 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.particulars dd { margin: 0; font-size: 1.05rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-size: var(--s-sm); font-weight: 500; }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .85rem; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--leaf); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--s-sm); color: var(--muted); }
.check input { margin-top: .3rem; accent-color: var(--leaf-text); width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.form-status { font-size: var(--s-sm); color: var(--leaf-text); min-height: 1.4em; }

/* Footer */
.site-footer { background: var(--band); color: var(--band-muted); padding-block: 4rem 2rem; font-size: var(--s-sm); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer h2 { font: 500 var(--s-xs)/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--band-ink); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--band-muted); text-decoration: none; }
.site-footer a:hover { color: var(--leaf); }
.foot-brand p { max-width: 38ch; margin-top: 1rem; }
.foot-word { font: 600 1.4rem/1 var(--f-body); letter-spacing: .06em; color: var(--band-ink); }
.foot-word span { display: block; font: 400 .8rem/1.2 var(--f-body); letter-spacing: .02em; color: var(--leaf); margin-top: .35rem; }
.foot-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: .75rem; font-size: var(--s-xs); line-height: 1.6; }
.foot-legal .row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Disclaimer dialog */
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(10, 16, 12, .72); backdrop-filter: blur(3px); }
.gate[hidden] { display: none !important; }
.gate-box { background: var(--surface); color: var(--ink); max-width: 640px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 6px; box-shadow: 0 24px 64px rgba(0,0,0,.35); border-top: 4px solid var(--leaf); }
.gate-inner { padding: clamp(1.4rem, 4vw, 2.25rem); display: grid; gap: 1rem; }
.gate h2 { font-size: 1.6rem; }
.gate p, .gate li { font-size: var(--s-sm); color: var(--muted); }
.gate ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.gate-actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
body.gated { overflow: hidden; }

.notfound { min-height: 50vh; display: grid; align-content: center; gap: 1.25rem; padding-block: 5rem; }
.notfound .big { font: 300 clamp(4rem, 12vw, 8rem)/1 var(--f-display); color: var(--leaf-text); }

.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal.pre { opacity: .001; transform: translateY(14px); }
.nav button.nav-top[data-active] { color: #4b6a0e; }

/* Notice bar */
.notice { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; background: var(--band); color: var(--band-ink);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem;
  padding: .9rem max(16px, env(safe-area-inset-right, 0px)) calc(.9rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  border-top: 3px solid var(--leaf); font-size: var(--s-sm); box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
.notice p { max-width: 80ch; color: var(--band-ink); }
.notice a { color: var(--leaf); }
.notice .btn { padding: .6rem 1.1rem; background: var(--leaf); color: #14200a; }

/* Service grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-grid a { background: var(--surface); padding: 1.6rem; display: grid; gap: .6rem; align-content: start; text-decoration: none; color: var(--ink); transition: background .2s; }
.svc-grid a:hover { background: var(--tint); color: var(--ink); }
.svc-grid h3 { font-size: 1.3rem; }
.svc-grid p { font-size: var(--s-sm); color: var(--muted); }
.svc-grid .tag { margin-bottom: .1rem; }
.svc-grid .go { font: 500 var(--s-sm) var(--f-body); color: var(--leaf-text); margin-top: .3rem; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.timeline li { padding: 1.4rem 1.5rem 0 0; display: grid; gap: .4rem; align-content: start; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); border: 2px solid var(--paper); }
.timeline time { font: 500 var(--s-sm) var(--f-mono); color: var(--leaf-text); }
.timeline h3 { font-size: 1.2rem; }
.timeline p { font-size: var(--s-sm); color: var(--muted); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); } .timeline li { padding: 0 0 1.5rem 1.5rem; } .timeline li::before { top: .3rem; left: -7px; } }

.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.models > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .5rem; align-content: start; }
.models h3 { font-size: 1.15rem; }
.models p { font-size: var(--s-sm); color: var(--muted); }
@media (max-width: 860px) { .models { grid-template-columns: 1fr; } }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta-band h2 { max-width: 24ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
[hidden] { display: none !important; }
.rail a.btn-primary { color: var(--paper); justify-content: center; }
.rail a.btn-primary:hover { color: #fff; }
.site-footer a.btn-primary { background: var(--leaf); color: #14200a; }
.site-footer a.btn-primary:hover { background: #fff; color: #14200a; }

.form-wrap { max-width: 760px; margin-inline: auto; display: grid; gap: 1.25rem; }
.form-alt { text-align: center; color: var(--muted); font-size: var(--s-sm); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .cards.two { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status.error { color: #b3261e; }

body.menu-open { overflow: hidden; }
@media (max-width: 1180px) { .nav .nav-cta { justify-content: center; } }

/* Konark wheel artwork in the site footer */
.site-footer { position: relative; overflow: hidden;
  background-color: var(--band);
  background-image: linear-gradient(90deg, var(--band) 0%, var(--band) 45%, rgba(23,34,27,.7) 70%, rgba(23,34,27,.35) 100%), url("../../images/site/wheel-band-1536.webp");
  background-size: auto, auto 115%; background-position: 0 0, right center; background-repeat: no-repeat; }
@media (max-width: 760px) {
  .site-footer { background-image: linear-gradient(180deg, var(--band) 0%, var(--band) 66%, rgba(23,34,27,.78) 82%, rgba(23,34,27,.5) 100%), url("../../images/site/wheel-band-768.webp");
    background-size: auto, 200% auto; background-position: 0 0, 80% bottom; }
}
.sub a { white-space: normal; }

/* Social icons */
.social { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: var(--band-ink); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--leaf); border-color: var(--leaf); color: #14200a; }
.social svg { display: block; }
.site-footer .social { display: flex; flex-direction: row; gap: .6rem; margin-top: 1.25rem; }
