/* Lex & Ledger Advisory: public website. Colours and type follow the portal (src/styles/tokens.css). */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --canvas: oklch(0.977 0.004 265);
  --surface: oklch(1 0 0);
  --sunken: oklch(0.955 0.007 265);
  --fg: oklch(0.2 0.035 268);
  --muted: oklch(0.47 0.03 265);
  --faint: oklch(0.62 0.02 265);
  --border: oklch(0.905 0.01 265);
  --border-strong: oklch(0.84 0.015 265);
  --ink: oklch(0.22 0.045 268);
  --ink-2: oklch(0.27 0.05 268);
  --ink-fg: oklch(0.96 0.01 265);
  --ink-muted: oklch(0.76 0.025 265);
  --ink-line: oklch(0.96 0.01 265 / 0.14);
  --seal: oklch(0.5 0.1 172);
  --seal-bright: oklch(0.79 0.13 170);
  --seal-soft: oklch(0.95 0.03 172);
  --btn: var(--ink);
  --btn-fg: oklch(0.97 0.01 265);
  --btn-hover: oklch(0.3 0.06 230);
  --todo: oklch(0.93 0.08 85);
  --todo-fg: oklch(0.38 0.09 70);
  --shadow: 0 1px 2px oklch(0.2 0.03 268 / 0.04), 0 8px 28px -12px oklch(0.2 0.03 268 / 0.18);
  --radius: 16px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: oklch(0.165 0.02 268);
    --surface: oklch(0.205 0.025 268);
    --sunken: oklch(0.185 0.022 268);
    --fg: oklch(0.945 0.01 265);
    --muted: oklch(0.74 0.025 265);
    --faint: oklch(0.6 0.02 265);
    --border: oklch(0.29 0.028 268);
    --border-strong: oklch(0.36 0.03 268);
    --ink: oklch(0.125 0.03 268);
    --ink-2: oklch(0.16 0.035 268);
    --seal: oklch(0.79 0.13 170);
    --seal-soft: oklch(0.29 0.05 172);
    --btn: oklch(0.79 0.13 170);
    --btn-fg: oklch(0.17 0.03 200);
    --btn-hover: oklch(0.85 0.12 170);
    --todo: oklch(0.38 0.08 80);
    --todo-fg: oklch(0.93 0.07 85);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.2), 0 10px 30px -12px oklch(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--canvas); color: var(--fg); font: 16.5px/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 520; letter-spacing: -0.018em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 46rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 50; background: var(--surface); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 6px; }
.amp { font-style: italic; font-weight: 400; color: var(--seal); }
.todo { background: var(--todo); color: var(--todo-fg); border-radius: 6px; padding: 0 6px; font: inherit; font-style: normal; }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 550 0.97rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-solid { background: var(--btn); color: var(--btn-fg); }
.btn-solid:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--border-strong); background: var(--surface); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-light { background: var(--ink-fg); color: var(--ink); }
.btn-light:hover { background: var(--seal-bright); }
.btn-outline-light { border-color: var(--ink-line); color: var(--ink-fg); }
.btn-outline-light:hover { border-color: var(--ink-fg); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; color: var(--seal); text-decoration: none; }
.link .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: color-mix(in oklch, var(--canvas) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; view-transition-name: site-header; }
.site-header.scrolled { border-bottom-color: var(--border); }
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font: 600 1.15rem/1 var(--serif); letter-spacing: -0.01em; }
.brand-name small { margin-top: 6px; font-size: 0.6rem; font-weight: 550; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.nav-list { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav-list > li > a:not(.btn) { display: inline-block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav-list > li > a:not(.btn):hover { color: var(--fg); }
.nav-list a[aria-current="page"]:not(.btn) { color: var(--fg); background: var(--sunken); }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { min-height: 42px; padding: 0 18px; }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-btn { display: none; }
.sub { position: absolute; top: calc(100% + 10px); left: -12px; min-width: 260px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s; }
.sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.sub ul { list-style: none; display: grid; }
.sub a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; font-size: 0.95rem; }
.sub a:hover { background: var(--sunken); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .menu-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-open .menu-icon { background: transparent; }
  .menu-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--header-h) 0 0; background: var(--canvas); padding: 16px 20px 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s; }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--border); }
  .nav-list > li > a:not(.btn) { display: block; padding: 18px 4px; font: 500 1.35rem/1.2 var(--serif); color: var(--fg); border-radius: 0; }
  .nav-list a[aria-current="page"]:not(.btn) { background: none; color: var(--seal); }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: none; color: var(--muted); cursor: pointer; }
  .sub-btn .icon { transition: transform 0.3s var(--ease); }
  .has-sub.open .sub-btn .icon { transform: rotate(180deg); }
  .sub { position: static; width: 100%; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { transform: none; }
  .sub a { padding: 10px 4px; color: var(--muted); font-size: 1.02rem; }
  .nav-cta { margin: 24px 0 0; border: 0 !important; }
  .nav-cta .btn { width: 100%; min-height: 52px; }
  body.menu-open { overflow: hidden; }
  /* A backdrop filter makes the header the containing block of the fixed menu panel; drop it while open. */
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--canvas); border-bottom-color: var(--border); }
}

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--seal); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
@media (max-width: 480px) { .eyebrow { letter-spacing: 0.13em; gap: 10px; } .eyebrow::before { width: 18px; } }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose p { color: var(--muted); }
.h-section { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.muted { color: var(--muted); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--ink-fg); padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 8vw, 104px); isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { width: 760px; height: 760px; right: -220px; top: -180px; background: repeating-radial-gradient(circle, transparent 0 46px, oklch(0.79 0.13 170 / 0.09) 46px 47px); mask: radial-gradient(circle, #000 30%, transparent 70%); }
.hero::after { width: 520px; height: 520px; right: -80px; top: -40px; border: 1px solid oklch(0.79 0.13 170 / 0.35); }
.hero .eyebrow { color: var(--seal-bright); }
.hero h1 { margin-top: 26px; font-size: clamp(2.7rem, 6.4vw, 5.2rem); font-weight: 480; line-height: 1.03; letter-spacing: -0.03em; max-width: 15ch; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--seal-bright); }
.hero .lead { margin-top: 28px; max-width: 36rem; color: var(--ink-muted); }
.hero .ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-areas { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink-line); }
.hero-areas a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 22px 0; text-decoration: none; color: var(--ink-fg); border-bottom: 1px solid var(--ink-line); font-size: 1.02rem; transition: color 0.2s, padding 0.3s var(--ease); }
.hero-areas a:nth-child(3n+2), .hero-areas a:nth-child(3n+3) { padding-left: 24px; border-left: 1px solid var(--ink-line); }
.hero-areas a .icon { width: 18px; height: 18px; color: var(--seal-bright); opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.3s var(--ease); }
.hero-areas a:hover { color: var(--seal-bright); }
.hero-areas a:hover .icon { opacity: 1; transform: none; }
.hero-areas span.n { font: italic 400 0.9rem var(--serif); color: var(--ink-muted); margin-right: 14px; }
@media (max-width: 760px) {
  .hero-areas { grid-template-columns: 1fr; }
  .hero-areas a:nth-child(n) { padding-left: 0; border-left: 0; }
  .hero-areas a .icon { opacity: 1; transform: none; }
}

/* ---------- Inner page header ---------- */
.page-head { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 6vw, 72px); border-bottom: 3px double var(--border-strong); overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -140px; top: -160px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid color-mix(in oklch, var(--seal) 30%, transparent); pointer-events: none; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--faint); margin-bottom: 26px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.page-head h1 { margin-top: 18px; font-size: clamp(2.5rem, 5.4vw, 4.2rem); font-weight: 480; letter-spacing: -0.028em; max-width: 18ch; }
.page-head .lead { margin-top: 22px; max-width: 42rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.tight { padding: clamp(56px, 7vw, 88px) 0; }
.section.alt { background: var(--sunken); border-block: 1px solid var(--border); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-top: 16px; }
.section-head .lead { justify-self: end; max-width: 30rem; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section-head .lead { justify-self: start; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--seal-soft); color: var(--seal); display: grid; place-items: center; }
.card h3 { margin-top: 24px; font-size: 1.4rem; }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.card .more { margin-top: auto; padding-top: 24px; }
.card .more .link { font-size: 0.95rem; }
a.card:hover .more .icon { transform: translateX(4px); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } .card { padding: 26px; } }

/* Numbered principles / steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.steps > li { counter-increment: step; padding-top: 22px; border-top: 1px solid var(--border-strong); position: relative; }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; font: italic 400 1.1rem var(--serif); color: var(--seal); }
.steps > li::after { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--seal); }
.steps h3 { margin-top: 12px; font-size: 1.28rem; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 960px) { .steps, .steps.three { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 620px) { .steps, .steps.three { grid-template-columns: 1fr; } }

/* Two-column feature (text + panel) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* The ledger panel: navy card with ruled rows and the double rule */
.ledger { position: relative; overflow: hidden; background: var(--ink); color: var(--ink-fg); border-radius: 22px; padding: clamp(28px, 4vw, 40px); border: 1px solid color-mix(in oklch, var(--ink-fg) 8%, transparent); }
.ledger::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid oklch(0.79 0.13 170 / 0.35); }
.ledger h3 { font-size: 1.3rem; font-weight: 480; }
.ledger .sub-t { margin-top: 6px; color: var(--ink-muted); font-size: 0.92rem; }
.ledger dl { margin: 26px 0 0; }
.ledger .row { display: grid; grid-template-columns: 104px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--ink-line); }
.ledger .row:last-child { border-bottom: 3px double oklch(0.79 0.13 170 / 0.55); }
.ledger dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--seal-bright); padding-top: 4px; }
.ledger dd { margin: 0; font-size: 0.98rem; }
@media (max-width: 480px) { .ledger .row { grid-template-columns: 1fr; gap: 4px; } }

/* Checked lists */
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--seal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157a66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (prefers-color-scheme: dark) {
  .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366dcbc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
}
.ticks.two { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 700px) { .ticks.two { grid-template-columns: 1fr; } }

/* Service detail layout: content + sticky aside */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.detail .block + .block { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--border); }
.detail h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 22px; }
.detail .block > p { color: var(--muted); }
.detail .block > p + p { margin-top: 1em; }
.detail .block > p + .ticks, .detail .block > p + .defs { margin-top: 24px; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.aside-card h3 { font-size: 1.15rem; }
.aside-card p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.aside-card .btn { margin-top: 20px; width: 100%; }
.aside-card.ink { background: var(--ink); color: var(--ink-fg); border-color: transparent; }
.aside-card.ink p { color: var(--ink-muted); }
.toc { list-style: none; display: grid; gap: 2px; margin-top: 12px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 0.95rem; border-left: 2px solid transparent; padding-left: 12px; margin-left: -14px; transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--fg); border-left-color: var(--seal); }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .aside { position: static; } }

/* Definition rows (authorities, documents) */
.defs { display: grid; border-top: 1px solid var(--border); }
.defs > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.defs dt { font-weight: 600; }
.defs dd { margin: 0; color: var(--muted); }
@media (max-width: 620px) { .defs > div { grid-template-columns: 1fr; gap: 4px; } }

/* Client types */
.audiences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.audience { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(26px, 3.5vw, 40px); }
.audience .tag { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--seal); }
.audience h3 { margin-top: 12px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.audience p { margin-top: 12px; color: var(--muted); }
.audience .ticks { margin-top: 22px; font-size: 0.97rem; }
.audience .svc { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--canvas); font-size: 0.88rem; text-decoration: none; color: var(--fg); transition: border-color 0.2s, background 0.2s; }
a.chip:hover { border-color: var(--seal); background: var(--seal-soft); }
@media (max-width: 860px) { .audiences { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font: 500 clamp(1.1rem, 1.7vw, 1.3rem)/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--seal); transition: transform 0.35s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; color: var(--muted); max-width: 46rem; }
.faq .answer p + p { margin-top: 0.8em; }
.faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-list { display: grid; border-top: 1px solid var(--border); }
.contact-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.contact-list dt { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.contact-list dt .icon { width: 18px; height: 18px; color: var(--seal); }
.contact-list dd { margin: 0; font-size: 1.08rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration-color: color-mix(in oklch, var(--seal) 45%, transparent); text-underline-offset: 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-list > div { grid-template-columns: 1fr; gap: 6px; } }

/* Closing call to action */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--ink-fg); border-radius: 28px; padding: clamp(44px, 7vw, 88px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; right: -160px; top: -200px; width: 560px; height: 560px; background: repeating-radial-gradient(circle, transparent 0 40px, oklch(0.79 0.13 170 / 0.1) 40px 41px); mask: radial-gradient(circle, #000 25%, transparent 70%); }
.cta-band .eyebrow { color: var(--seal-bright); }
.cta-band h2 { margin-top: 18px; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 480; max-width: 16ch; }
.cta-band p { margin-top: 16px; color: var(--ink-muted); max-width: 34rem; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; align-items: start; } }

/* Callout */
.note-box { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px 24px; border-radius: 14px; background: var(--seal-soft); color: var(--fg); }
.note-box .icon { color: var(--seal); margin-top: 2px; }
.note-box p { color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(72px, 9vw, 120px); background: var(--ink); color: var(--ink-muted); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 0.95rem; }
.site-footer .brand-name b { color: var(--ink-fg); }
.site-footer .brand-name small { color: var(--ink-muted); }
.site-footer .amp { color: var(--seal-bright); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-brand p { margin-top: 20px; max-width: 22rem; }
.site-footer h2 { font: 600 0.74rem var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-fg); margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--ink-muted); transition: color 0.2s; }
.site-footer a:hover { color: var(--seal-bright); }
.foot-contact { overflow-wrap: anywhere; }
.foot-bar { margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.86rem; }
.foot-bar .dot { margin: 0 10px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
/* The page-level CTA sits just above the footer; tighten the gap. */
main > .section:last-child { padding-bottom: 0; }

/* ---------- Motion ---------- */
/* Content rises in as it scrolls into view (only with JS and when motion is welcome). */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero .rise { animation: rise 1s var(--ease) both; animation-delay: var(--d, 0s); }
  .page-head .rise { animation: rise 0.9s var(--ease) both; animation-delay: var(--d, 0s); }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }

  /* Smooth page-to-page transitions (cross-document View Transitions). */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.28s var(--ease) both vt-out; }
  ::view-transition-new(root) { animation: 0.5s var(--ease) both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Utilities (no inline styles: the CSP forbids them) ---------- */
.d-05 { --d: .05s; } .d-08 { --d: .08s; } .d-10 { --d: .1s; } .d-14 { --d: .14s; } .d-16 { --d: .16s; } .d-20 { --d: .2s; } .d-24 { --d: .24s; } .d-34 { --d: .34s; }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; } .mt-32 { margin-top: 32px; }
.text-sm { font-size: .95rem; }
.stack { display: grid; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
