/* Palmetto Ridge Holdings — shared styles for the homepage and legal pages.
   Tokens come from the redesign brief; edit colors here only. */

:root {
  --bg: #0B0E11;            /* hero, header, closing sections */
  --surface: #161D25;       /* dark cards and panels */
  --ivory: #F4F1E9;         /* primary text on dark / light surface */
  --muted: #B7C0CA;         /* secondary text on dark */
  --gold: #D4B173;          /* primary buttons, accents on dark */
  --ink: #18222E;           /* text on ivory */
  --ink-muted: #46505C;     /* secondary text on ivory */
  --gold-dark: #765416;     /* accents on ivory */
  --teal: #63D5C7;          /* Access AI highlights on dark only */
  --paper: #FCFAF5;         /* cards on ivory */
  --line-dark: rgba(212, 177, 115, .26);
  --line-light: rgba(24, 34, 46, .16);
  --logo-black: #000;       /* matches the logo's own background */

  --font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 75rem;
  --radius: 1.25rem;
  --radius-sm: .75rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--gold);
  --ridge-h: clamp(5.5rem, 3.5rem + 6vw, 10rem);   /* decorative ridge height; text is always padded clear of it */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-offset, var(--header-h)) + 1rem);
  scroll-padding-bottom: var(--consent-h, 0px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; }
p, ul, ol, dl, figure { margin: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 1.1rem; height: 1.1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -10rem; z-index: 100;
  background: var(--gold); color: var(--bg); font-weight: 700; padding: .75rem 1.25rem; border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section--light .eyebrow { color: var(--gold-dark); }
.eyebrow--teal { color: var(--teal); }
.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); color: var(--muted); max-width: 36em; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 750; letter-spacing: -.02em; }
.section-head p:not(.eyebrow) { margin-top: 1rem; max-width: 38em; }
.section--dark .section-head p:not(.eyebrow) { color: var(--muted); }
.section--light .section-head p:not(.eyebrow) { color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .7rem 1.35rem; border-radius: 999px;
  border: 2px solid transparent; background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { background: #E2C48E; box-shadow: 0 0 0 4px rgba(212, 177, 115, .18), 0 10px 28px -12px rgba(212, 177, 115, .65); }
.btn--ghost { border-color: rgba(212, 177, 115, .7); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: #22303F; }
.btn--teal-ghost { border-color: rgba(99, 213, 199, .65); color: var(--ivory); }
.btn--teal-ghost:hover { border-color: var(--teal); color: var(--teal); }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem;
  font-weight: 700; text-decoration: underline; text-decoration-color: currentColor;
}
.text-link .icon { transition: transform .2s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .text-link:hover .icon { transform: translateX(3px); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 17, .94);
  border-bottom: 1px solid var(--line-dark);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(11, 14, 17, .86); backdrop-filter: blur(10px); } }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; min-height: 2.75rem; flex: 1 1 10rem; min-width: 0; }
.brand picture { flex: none; }
.nav-toggle { flex: none; }
.site-nav { flex: 0 1 auto; min-width: 0; }
.brand img { width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.15; letter-spacing: .01em; }
.brand__name span { display: block; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: .15rem; }
@media (min-width: 60rem) { .brand img { width: 3.25rem; height: 3.25rem; } .brand__name { font-size: 1.0625rem; } }

.nav-toggle {
  display: none; align-items: center; gap: .5rem; min-height: 2.75rem; min-width: 2.75rem; padding: .5rem 1rem;
  background: transparent; color: var(--ivory); border: 2px solid rgba(212, 177, 115, .6); border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .9375rem; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.05rem; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s var(--ease), opacity .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .25rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9875rem; color: var(--ivory); }
.site-nav a:not(.btn):hover { color: var(--gold); text-decoration: underline; }
.site-nav .btn { margin-left: .5rem; padding-inline: 1.15rem; color: var(--bg); }

/* Below 60rem the nav becomes a disclosure when scripting is available;
   without scripting it simply wraps under the brand row. */
@media (max-width: 59.99rem) {
  .site-header__bar { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; padding-bottom: .75rem; }
  .site-nav ul { flex-wrap: wrap; }
}
@media (max-width: 59.99rem) and (scripting: enabled) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; border-top: 1px solid var(--line-dark); padding: .75rem 0 1.25rem; }
  .site-nav.is-open ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .site-nav.is-open a { width: 100%; padding: .5rem .75rem; border-radius: .6rem; font-size: 1.0625rem; }
  .site-nav.is-open .btn { margin: .5rem 0 0; justify-content: center; }
}
/* Short viewports (landscape phones, 400% zoom): don't pin the header. */
@media (max-height: 31.25rem) {
  .site-header { position: relative; }
  html { scroll-padding-top: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 3rem + 5vw, 7rem); position: relative; }
.section--dark { background: var(--bg); color: var(--ivory); }
.section--light { background: var(--ivory); color: var(--ink); --focus: var(--gold-dark); }
.section--light a:not(.btn) { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) calc(var(--ridge-h) + 1rem);
  background:
    url("../img/ridge.svg") center bottom / auto var(--ridge-h) repeat-x,
    radial-gradient(60rem 30rem at 85% 10%, rgba(212, 177, 115, .09), transparent 70%),
    var(--bg);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero h1 {
  font-size: clamp(2.5rem, 1.55rem + 4.3vw, 4.75rem); font-weight: 780; letter-spacing: -.03em; line-height: 1.02;
  margin-bottom: 1.5rem;
}
.hero h1 span { display: block; color: var(--gold); }
.hero .actions { margin-top: 2rem; }
.focus-list {
  list-style: none; padding: 0; margin-top: 2.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .9375rem; font-weight: 600;
}
.focus-list li { display: inline-flex; align-items: center; gap: .55rem; }
.focus-list li::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--gold); flex: none; }
.hero__mark {
  justify-self: center; width: min(100%, 17rem);
  background: var(--logo-black); border-radius: var(--radius); padding: clamp(.75rem, 2vw, 1.25rem);
  border: 1px solid var(--line-dark);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6);
}
.hero__mark img { width: 100%; aspect-ratio: 1; object-fit: contain; }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
  .hero__mark { width: min(100%, 25.5rem); justify-self: end; }
}

/* ---------- Access AI feature ---------- */
.feature { padding-top: 0; }
.feature__panel {
  background: var(--surface); border: 1px solid rgba(99, 213, 199, .22); border-radius: calc(var(--radius) + .25rem);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 50px 100px -60px rgba(0, 0, 0, .9);
}
.feature__intro h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); font-weight: 750; letter-spacing: -.02em; max-width: 18em; }
.feature__intro h2 span { color: var(--teal); }
.feature__intro > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--muted); max-width: 40em; }
.status {
  display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.5rem !important; padding: .9rem 1rem;
  border-radius: var(--radius-sm); background: rgba(99, 213, 199, .07); border: 1px solid rgba(99, 213, 199, .25); color: var(--ivory) !important;
  font-size: .9875rem;
}
.status__dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal); margin-top: .5rem; flex: none; }
.feature .actions { margin-top: 1.75rem; }
.usecases { list-style: none; padding: 0; display: grid; gap: 1rem; }
.usecase {
  background: var(--bg); border: 1px solid rgba(183, 192, 202, .16); border-radius: var(--radius-sm); padding: 1.25rem 1.25rem 1.4rem;
}
.usecase .icon { color: var(--teal); width: 1.75rem; height: 1.75rem; margin-bottom: .9rem; }
.usecase h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: .35rem; }
.usecase p { color: var(--muted); font-size: 1rem; }
.workflow { border-top: 1px solid rgba(183, 192, 202, .16); padding-top: 1.5rem; }
.workflow figcaption { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.workflow ol { list-style: none; padding: 0; display: grid; gap: .75rem; counter-reset: step; }
.workflow li {
  counter-increment: step; display: flex; align-items: center; gap: .75rem; font-weight: 600;
  padding: .75rem 1rem; border-radius: 999px; border: 1px dashed rgba(99, 213, 199, .4);
}
.workflow li::before {
  content: counter(step); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: rgba(99, 213, 199, .14); color: var(--teal); font-size: .875rem; font-weight: 800; flex: none;
}
.boundary { font-size: .9375rem; color: var(--muted); display: flex; gap: .6rem; align-items: flex-start; }
.boundary .icon { color: var(--gold); margin-top: .15rem; width: 1.25rem; height: 1.25rem; }
@media (min-width: 48rem) {
  .usecases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workflow ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .feature__panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .feature__intro { grid-row: span 2; }
  .usecases { grid-template-columns: 1fr; }
  .workflow, .boundary { grid-column: 1 / -1; }
}

/* ---------- Ventures ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filter {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .5rem 1.1rem; border-radius: 999px;
  border: 2px solid rgba(24, 34, 46, .35); background: transparent; color: var(--ink);
  font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.filter[aria-pressed="true"]::before { content: ""; width: .5rem; height: .85rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.filter-status { min-height: 1.6em; font-size: .9375rem; color: var(--ink-muted); margin-bottom: 1.25rem; }

.venture-grid { list-style: none; padding: 0; display: grid; gap: 1rem; grid-auto-flow: dense; }
.venture {
  display: flex; flex-direction: column; gap: .75rem;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.venture:hover, .venture:focus-within { border-color: rgba(118, 84, 22, .55); box-shadow: 0 0 0 1px rgba(118, 84, 22, .25), 0 18px 40px -28px rgba(24, 34, 46, .55); }
.venture__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.venture__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .8rem; background: rgba(118, 84, 22, .1); color: var(--gold-dark); }
.chip { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); text-align: right; }
.venture h3 { font-size: 1.375rem; font-weight: 750; letter-spacing: -.01em; }
.venture p.venture__desc { color: var(--ink-muted); font-size: 1rem; }
.venture__domain { font-family: var(--mono); font-size: .8125rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.venture__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding-top: .25rem; }
.venture__links a { color: var(--ink) !important; }

.venture--featured {
  background: var(--bg); color: var(--ivory); border-color: rgba(99, 213, 199, .3);
  background-image: radial-gradient(28rem 16rem at 100% 0%, rgba(99, 213, 199, .12), transparent 70%);
  --focus: var(--teal);
}
.venture--featured:hover, .venture--featured:focus-within { border-color: rgba(99, 213, 199, .6); box-shadow: 0 0 0 1px rgba(99, 213, 199, .25), 0 24px 50px -30px rgba(11, 14, 17, .9); }
.venture--featured .venture__icon { background: rgba(99, 213, 199, .12); color: var(--teal); }
.venture--featured .chip, .venture--featured .venture__domain, .venture--featured p.venture__desc { color: var(--muted); }
.venture--featured h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.venture--featured .venture__links a { color: var(--ivory) !important; }
.venture--wide h3 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.venture-empty { padding: 1.5rem; border: 1px dashed var(--line-light); border-radius: var(--radius); color: var(--ink-muted); }

@media (min-width: 48rem) {
  .venture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venture--featured, .venture--wide { grid-column: span 2; }
}
@media (min-width: 72rem) {
  .venture-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .venture { padding: 1.75rem; }
  .venture--featured { padding: 2.25rem; }
}

.more-sites { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line-light); }
.more-sites h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 750; }
.more-sites > p { color: var(--ink-muted); margin-top: .75rem; max-width: 42em; }
.directory { display: grid; gap: 2rem; margin-top: 2rem; }
.directory h4 { font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .75rem; }
.directory ul { list-style: none; padding: 0; border-top: 1px solid var(--line-light); }
.directory li { border-bottom: 1px solid var(--line-light); padding: .85rem 0; }
.directory a { font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; }
.directory li p { color: var(--ink-muted); font-size: .9375rem; }
.directory__note { margin-top: .75rem; font-size: .875rem; color: var(--ink-muted); }
@media (min-width: 60rem) { .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* ---------- Capabilities ---------- */
.capabilities { background: linear-gradient(180deg, var(--bg), #0E1318); }
.cap-grid { list-style: none; padding: 0; display: grid; gap: 1rem; }
.cap {
  background: var(--surface); border: 1px solid rgba(183, 192, 202, .14); border-radius: var(--radius); padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  position: relative; overflow: hidden;
}
.cap::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .7; }
.cap .icon { color: var(--gold); width: 2rem; height: 2rem; margin-bottom: 1.25rem; }
.cap h3 { font-size: 1.375rem; font-weight: 750; margin-bottom: .6rem; }
.cap p { color: var(--muted); font-size: 1rem; }
.cap-cta { margin-top: 2rem; color: var(--muted); }
.cap-cta a { color: var(--gold); }
@media (min-width: 60rem) { .cap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

/* ---------- About ---------- */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.about__copy p { max-width: 38em; }
.about__copy p + p { margin-top: 1.1rem; }
.about__copy .section-head { margin-bottom: 1.5rem; }
.facts { border: 1px solid var(--line-light); background: var(--paper); border-radius: var(--radius); padding: 1.5rem 1.75rem; align-self: start; }
.facts h3 { font-size: 1.125rem; font-weight: 750; margin-bottom: .75rem; }
.facts dl { display: grid; gap: .1rem; }
.facts dt { font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-top: .9rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 60rem) { .about__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; } }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(50rem 26rem at 10% 0%, rgba(212, 177, 115, .08), transparent 70%), var(--bg); }
.contact__panel {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line-dark); border-radius: calc(var(--radius) + .25rem); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  background: linear-gradient(160deg, rgba(22, 29, 37, .9), rgba(11, 14, 17, .9));
}
.contact__panel .section-head { margin-bottom: 0; }
.email-big {
  display: inline-block; margin-top: 1.5rem; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.125rem, .9rem + 1.3vw, 1.75rem); color: var(--gold); overflow-wrap: break-word;
}
.picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.picker legend { font-weight: 700; margin-bottom: .75rem; padding: 0; }
.picker__options { display: grid; gap: .5rem; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .7rem 1rem; border-radius: var(--radius-sm);
  border: 2px solid rgba(183, 192, 202, .3); font-weight: 600;
}
.choice span::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--muted); flex: none; box-shadow: inset 0 0 0 3px var(--bg); }
.choice input:checked + span { border-color: var(--gold); background: rgba(212, 177, 115, .08); }
.choice input:checked + span::before { border-color: var(--gold); background: var(--gold); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.copy-status { min-height: 1.6em; margin-top: .75rem; font-size: .9375rem; color: var(--muted); }
.copy-status.is-error { color: #F2B8A0; }
.contact__fallback { margin-top: 1rem; font-size: .9375rem; color: var(--muted); }
.selectable { user-select: all; -webkit-user-select: all; font-family: var(--mono); color: var(--ivory); overflow-wrap: anywhere; }
@media (min-width: 60rem) { .contact__panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }

/* ---------- Footer ---------- */
.site-footer {
  background: url("../img/ridge.svg") center top / auto var(--ridge-h) repeat-x, #07090B;
  color: var(--muted); padding: calc(var(--ridge-h) + 1.5rem) 0 2.5rem; font-size: .9375rem; border-top: 1px solid var(--line-dark);
}
.footer__grid { display: grid; gap: 2rem; }
.footer__brand strong { color: var(--ivory); font-family: var(--font-display); font-size: 1.125rem; display: block; }
.footer__brand p { margin-top: .5rem; max-width: 30em; }
.site-footer h2 { font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a, .link-button { color: var(--ivory); display: inline-flex; align-items: center; min-height: 2.75rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.site-footer a:hover, .link-button:hover { color: var(--gold); }
.footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(183, 192, 202, .14); display: grid; gap: .5rem; font-size: .875rem; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- Analytics consent (non-modal) ---------- */
.consent {
  position: fixed; z-index: 60; inset: auto .75rem .75rem .75rem; max-width: 28rem; margin-left: auto;
  background: var(--surface); color: var(--ivory); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85); font-size: .9375rem; line-height: 1.55;
}
.consent h2 { font-size: 1.0625rem; font-weight: 750; margin-bottom: .4rem; }
.consent h2:focus { outline: none; }
.consent h2:focus-visible { outline: 3px solid var(--focus); }
.consent p { color: var(--muted); }
.consent a { color: var(--ivory); }
.consent .actions { margin-top: .8rem; gap: .5rem; }
.consent .btn { flex: 1 1 6.5rem; min-height: 2.75rem; padding: .55rem .9rem; }
@media (max-width: 30rem) { .consent { padding: 1rem 1rem .9rem; font-size: .875rem; } .consent h2 { font-size: 1rem; } }
.consent__btn { background: transparent; color: var(--ivory); border-color: rgba(212, 177, 115, .7); }
.consent__btn:hover { border-color: var(--gold); color: var(--gold); }
.consent__note { margin-top: .6rem; font-size: .875rem; }
@media (max-height: 31.25rem) { .consent { position: static; margin: 0; max-width: none; border-radius: 0; inset: auto; } }

.consent-panel { margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); background: var(--surface); }
.consent-panel p + .actions { margin-top: 1rem; }
.consent-panel .btn { min-width: 10rem; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line-dark); }
.legal-hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 780; letter-spacing: -.025em; }
.legal-hero p:not(.eyebrow) { color: var(--muted); margin-top: .75rem; }
.legal-body { padding-block: clamp(2.5rem, 5vw, 4rem); }
.prose { max-width: 44rem; }
.prose section + section { margin-top: 2.25rem; }
.prose h2 { font-size: 1.375rem; font-weight: 750; margin-bottom: .6rem; color: var(--ivory); }
.prose p, .prose ul { color: #D3D9DF; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: .9rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose a { color: var(--gold); }
.prose code { font-family: var(--mono); font-size: .9em; color: var(--ivory); overflow-wrap: anywhere; }

/* ---------- One-time entrance motion (content is visible without it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-in { animation: rise 380ms var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Forced colors / high contrast ---------- */
@media (forced-colors: active) {
  .btn, .filter, .nav-toggle, .choice span, .venture, .cap, .usecase, .feature__panel, .contact__panel, .consent, .facts { border: 2px solid CanvasText; }
  .filter[aria-pressed="true"], .choice input:checked + span { forced-color-adjust: none; background: SelectedItem; color: SelectedItemText; border-color: SelectedItem; }
  .choice input:checked + span::before { background: SelectedItemText; }
  .status__dot, .focus-list li::before { background: CanvasText; forced-color-adjust: none; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { background: ButtonText; forced-color-adjust: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .icon { stroke: CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
}

@media print {
  .site-header, .consent, .filters, .nav-toggle, .skip-link { display: none !important; }
  body, .section--dark, .hero, .site-footer { background: #fff !important; color: #000 !important; }
}
@media (max-width: 23.99rem) {
  .nav-toggle { padding-inline: .8rem; }
  .brand__name { font-size: .9375rem; }
}
