/* ==========================================================================
   OtterProposals.com — Otter International Proposals
   Design system: Midnight Navy, Champagne Gold, Warm Ivory.
   Editorial serif (Cormorant Garamond) + modern sans (Manrope), self-hosted.
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

/* ---------- tokens: light (default) ---------- */
:root {
  --midnight: #071827;
  --navy: #10283F;
  --gold: #C6A265;
  --ivory: #F8F5EF;
  --pearl: #FFFFFF;
  --charcoal: #252B31;

  --bg: var(--ivory);
  --bg-rgb: 248, 245, 239;
  --surface: var(--pearl);
  --tint: #F0EBE1;
  --header-bg: rgba(255, 255, 255, .94);
  --ink: var(--charcoal);
  --ink-strong: var(--midnight);
  --muted: #545C65;
  --line: #E1D8C8;
  --gold-ink: #85642C;      /* gold for text on light surfaces (AA) */
  --gold-rule: var(--gold);
  --btn-solid-bg: var(--midnight);
  --btn-solid-ink: var(--ivory);
  --btn-solid-hover: var(--navy);
  --focus: #8A6421;
  --error: #9E2A2B;
  --error-bg: #FBEDEC;
  --ok: #2F6B4F;
  --shadow: 0 1px 2px rgba(7, 24, 39, .05), 0 12px 32px -12px rgba(7, 24, 39, .14);
  --hero-img: url("../img/sections/02_hero_light.webp");
  --hero-img-mobile: url("../img/sections/12_hero_mobile_light.webp");

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --section: clamp(64px, 9vw, 128px);
  color-scheme: light;
}

/* ---------- tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--midnight);
    --bg-rgb: 7, 24, 39;
    --surface: #0D2236;
    --tint: #0B1E31;
    --header-bg: rgba(7, 24, 39, .94);
    --ink: #D6D2CA;
    --ink-strong: var(--ivory);
    --muted: #A3ABB4;
    --line: rgba(198, 162, 101, .2);
    --gold-ink: #D6B57B;
    --btn-solid-bg: var(--gold);
    --btn-solid-ink: var(--midnight);
    --btn-solid-hover: #D4B47E;
    --focus: #E3C58F;
    --error: #F2A7A3;
    --error-bg: #3A1A1F;
    --ok: #8FD0AE;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    --hero-img: url("../img/sections/01_hero_dark.webp");
    --hero-img-mobile: url("../img/sections/11_hero_mobile_dark.webp");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--midnight);
  --bg-rgb: 7, 24, 39;
  --surface: #0D2236;
  --tint: #0B1E31;
  --header-bg: rgba(7, 24, 39, .94);
  --ink: #D6D2CA;
  --ink-strong: var(--ivory);
  --muted: #A3ABB4;
  --line: rgba(198, 162, 101, .2);
  --gold-ink: #D6B57B;
  --btn-solid-bg: var(--gold);
  --btn-solid-ink: var(--midnight);
  --btn-solid-hover: #D4B47E;
  --focus: #E3C58F;
  --error: #F2A7A3;
  --error-bg: #3A1A1F;
  --ok: #8FD0AE;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  --hero-img: url("../img/sections/01_hero_dark.webp");
  --hero-img-mobile: url("../img/sections/11_hero_mobile_dark.webp");
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink-strong); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink-strong); line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
em { font-style: italic; }
code { font-size: .9em; background: var(--tint); padding: .1em .35em; border-radius: 3px; }
::selection { background: var(--gold); color: var(--midnight); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { text-align: center; margin-top: 3rem; margin-bottom: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--midnight); color: var(--ivory); padding: .7rem 1.1rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--ivory); }

.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 1.1rem; display: flex; align-items: center; gap: .9rem; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold-rule); flex: none; }
.display { font-size: clamp(2rem, 3.6vw, 3rem); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 46rem; line-height: 1.65; }
.fine { font-size: .9rem; color: var(--muted); }
.num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-ink); letter-spacing: .05em; font-weight: 600; }
.placeholder { background: var(--error-bg); color: var(--error); padding: 0 .3em; border-radius: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: var(--radius);
  font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-sm { min-height: 40px; padding: .55rem 1rem; font-size: .74rem; }
.btn-gold { background: var(--gold); color: var(--midnight); border-color: var(--gold); }
.btn-gold:hover { background: #D4B47E; border-color: #D4B47E; color: var(--midnight); }
.btn-solid { background: var(--btn-solid-bg); color: var(--btn-solid-ink); border-color: var(--btn-solid-bg); }
.btn-solid:hover { background: var(--btn-solid-hover); border-color: var(--btn-solid-hover); color: var(--btn-solid-ink); }
.btn-outline { background: transparent; color: var(--ink-strong); border-color: var(--gold); }
.btn-outline:hover { background: rgba(198, 162, 101, .14); color: var(--ink-strong); }
.btn-quiet { background: transparent; color: var(--ink-strong); border-color: transparent; padding-inline: .9rem; }
.btn-quiet:hover { color: var(--gold-ink); }
.btn .i-arrow { transition: transform .2s ease; }
.btn:hover .i-arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--gold-ink); }
.link-arrow:hover { color: var(--ink-strong); }
.link-arrow:hover .i-arrow { transform: translateX(3px); }
.link-arrow .i-arrow { transition: transform .2s ease; }


/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; max-width: 1480px; }
@media (min-width: 1201px) and (max-width: 1479px) { .site-header .brand-text { display: none; } }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink-strong); flex: none; }
.brand:hover { color: var(--ink-strong); }
.brand-mark { width: 52px; height: 50px; flex: none; display: block; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; letter-spacing: .01em; }
.brand-tag { font-family: var(--serif); font-style: italic; font-size: .98rem; color: var(--gold-ink); }
.on-dark { display: none !important; }
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none !important; }
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
}

.site-nav { display: flex; align-items: center; flex: 1; justify-content: space-between; gap: 1rem; }
.nav-list { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: .2rem; }
.nav-list a { display: block; padding: .55rem .65rem; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; letter-spacing: .01em; position: relative; white-space: nowrap; }
.nav-list a::after { content: ""; position: absolute; left: .65rem; right: .65rem; bottom: .3rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-list a:hover { color: var(--ink-strong); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--ink-strong); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-actions .btn-quiet { font-size: .74rem; }
.nav-actions .btn-quiet[aria-current="page"] { color: var(--gold-ink); }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-strong); display: inline-grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { border-color: var(--gold); }
.i-theme .sun { display: none; }
:root[data-theme="dark"] .i-theme .sun { display: inline; }
:root[data-theme="dark"] .i-theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-theme .sun { display: inline; }
  :root:not([data-theme="light"]) .i-theme .moon { display: none; }
}
.nav-toggle { display: none; }

@media (max-width: 1200px) {
  .header-inner { min-height: 72px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .6rem; margin-left: auto; min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink-strong); font: 700 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease, background-color .2s ease; }
  .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); }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow-y: auto; }
  .no-js .site-nav { position: static; box-shadow: none; }
  .no-js .nav-toggle { display: none; }
  .nav-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; margin: 0; gap: 0; }
  .nav-list a { padding: .9rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--gold-ink); }
  .nav-actions { flex-wrap: wrap; padding-top: 1rem; gap: .75rem; }
  .nav-actions .btn { flex: 1 1 auto; }
  .nav-actions .btn-quiet { border-color: var(--gold); }
}
@media (max-width: 560px) {
  .brand-name { font-size: 1.05rem; }
  .brand-tag { font-size: .85rem; }
  .brand-mark { width: 42px; height: 40px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-toggle { padding: .5rem .75rem; min-width: 44px; justify-content: center; }
}
@media (max-width: 380px) {
  .brand-tag { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(560px, 80vh, 780px);
  display: flex; align-items: center;
  background: var(--hero-img) right center / cover no-repeat, var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--bg-rgb), .97) 0%, rgba(var(--bg-rgb), .86) 34%, rgba(var(--bg-rgb), 0) 62%); }
.hero-inner { padding-block: clamp(72px, 10vw, 120px); }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.04; max-width: 15ch; margin-bottom: 1.6rem; }
.hero h1 em { color: var(--gold-ink); }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34rem; color: var(--ink); margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 760px) {
  .hero-actions .btn, .form-actions .btn { white-space: normal; }
  .hero { align-items: flex-start; min-height: 0; background: var(--hero-img-mobile) center bottom / 100% auto no-repeat, var(--bg); }
  .hero::before { background: linear-gradient(180deg, rgba(var(--bg-rgb), 1) 0%, rgba(var(--bg-rgb), .96) calc(100% - 118vw), rgba(var(--bg-rgb), 0) calc(100% - 96vw)); }
  .hero-inner { padding-top: 48px; padding-bottom: 112vw; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.tinted { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-bottom: 0; }
.section-icon { width: 56px; height: 56px; margin-bottom: 1.5rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split-media { align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.prose p { color: var(--ink); }
.prose > p:last-child { margin-bottom: 0; }
.intro .display { margin: 0; }
@media (max-width: 860px) { .split, .split-media { grid-template-columns: 1fr; } }

/* service tiles */
.service-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-tile { position: relative; background: var(--surface); padding: 2rem 1.8rem 2.2rem; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; column-gap: 1rem; transition: background-color .2s ease; }
.service-tile:hover { background: var(--bg); }
.service-tile img { width: 48px; height: 48px; grid-row: 1; grid-column: 1; }
.service-tile .num { grid-row: 1; grid-column: 2; justify-self: end; }
.service-tile h3 { grid-column: 1 / -1; font-size: 1.5rem; margin: 1.3rem 0 .5rem; }
.service-tile h3 a { color: var(--ink-strong); text-decoration: none; }
.service-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.service-tile h3 a:hover { color: var(--gold-ink); }
.service-tile p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* approach strip */
.step-strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step-strip li { padding: 1.6rem 1.2rem 1.6rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .35rem; }
.step-strip .step-name { font-family: var(--serif); font-size: 1.45rem; color: var(--ink-strong); line-height: 1.2; }
@media (max-width: 860px) { .step-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .step-strip { grid-template-columns: 1fr; } .step-strip li { flex-direction: row; align-items: baseline; gap: 1rem; padding: 1rem 0; } }

/* portal illustration */
.portal-figure { margin: 0; }
.portal-figure figcaption { margin-top: .9rem; font-size: .85rem; color: var(--muted); text-align: center; }
.portal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; max-width: 520px; margin-inline: auto; }
.portal-card-top { display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem; background: var(--midnight); }
.portal-card-top .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(198, 162, 101, .55); }
.portal-card-title { margin-left: .6rem; color: var(--ivory); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.portal-card-body { padding: 1.6rem 1.6rem 1.8rem; }
.pc-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .3rem; }
.pc-title { font-family: var(--serif); font-size: 1.5rem; color: var(--ink-strong); margin-bottom: .8rem; line-height: 1.2; }
.pc-status { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-size: .82rem; }
.pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: rgba(198, 162, 101, .18); color: var(--gold-ink); font-weight: 700; font-size: .76rem; }
.pc-ver { color: var(--muted); }
.pc-lines { margin: 1.3rem 0 1.5rem; display: grid; gap: .55rem; }
.pc-lines span { height: 7px; border-radius: 4px; background: var(--line); }
.pc-lines .short { width: 60%; }
.pc-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pc-btn { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: .55rem .8rem; border: 1px solid var(--gold); border-radius: 3px; color: var(--ink-strong); }
.pc-btn.solid { background: var(--btn-solid-bg); color: var(--btn-solid-ink); border-color: var(--btn-solid-bg); }

/* standards */
.standards-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.standards-grid li { border-top: 1px solid var(--gold); padding-top: 1.4rem; }
.standards-grid h3 { font-size: 1.4rem; }
.standards-grid p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 960px) { .standards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .standards-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--midnight) url("../img/sections/08_cta_background.webp") center / cover no-repeat; color: var(--ivory); padding-block: clamp(56px, 7vw, 96px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--ivory); font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: .4rem; }
.cta-band p { color: #C9CFD6; margin: 0; max-width: 36rem; }
@media (max-width: 600px) { .cta-band .btn { width: 100%; white-space: normal; } }

/* ---------- page head ---------- */
.page-head { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-head-inner { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.page-head.has-media .page-head-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-bottom: 0; }
.page-head-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-head.has-media .page-head-inner { grid-template-columns: 1fr; } }

/* article */
.article { display: grid; gap: clamp(2.5rem, 5vw, 4rem); max-width: 60rem; }
.article-block { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-auto-rows: auto; gap: 0 clamp(1rem, 4vw, 4rem); align-content: start; padding-top: 2rem; border-top: 1px solid var(--line); }
.article-block > *:last-child { margin-bottom: 0; }
.article-block h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.article-block > *:not(h2) { grid-column: 2; }
.article-block h2 { grid-row: 1 / span 3; align-self: start; }
@media (max-width: 760px) { .article-block { grid-template-columns: 1fr; } .article-block > *:not(h2) { grid-column: 1; } .article-block h2 { grid-row: auto; } }

/* expertise */
.jump { margin-top: 2rem; }
.jump ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jump a { display: inline-block; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--ink); }
.jump a:hover { border-color: var(--gold); color: var(--ink-strong); }
.features .wrap { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-label { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.feature-label img { width: 44px; height: 44px; }
.feature-copy h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.feature-summary { font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--gold-ink); line-height: 1.4; }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--gold); }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } .feature-row.reverse .feature-media { order: 0; } }
.craft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.craft-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); }
.craft-card h3 { font-size: 1.75rem; }
.craft-card .feature-summary { font-size: 1.2rem; }
.craft-card p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .craft-grid { grid-template-columns: 1fr; } }

/* approach timeline */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 56rem; }
.timeline-item { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem; padding-bottom: 2.8rem; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 2.2rem; top: 3.6rem; bottom: .4rem; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold-ink); width: 4.4rem; height: 4.4rem; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; font-weight: 500; }
.timeline-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: .5rem; }
.timeline-body p { margin-bottom: .6rem; }
.your-part { color: var(--muted); font-size: .96rem; }
.your-part span { display: inline-block; margin-right: .5rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); }
@media (max-width: 560px) { .timeline-item { grid-template-columns: 3.4rem 1fr; gap: 1rem; } .timeline-num { width: 3rem; height: 3rem; font-size: 1.6rem; } .timeline-item::before { left: 1.5rem; top: 3.4rem; } }

/* client experience */
.cap-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem); }
.cap img { width: 44px; height: 44px; margin-bottom: 1.1rem; }
.cap h2 { font-size: 1.6rem; }
.cap p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: flow; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.flow h3 { font-size: 1.4rem; margin-top: .6rem; }
.flow p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.action-legend { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.legend-chip { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: .55rem .85rem; border: 1px solid var(--gold); border-radius: 3px; color: var(--ink-strong); background: var(--surface); }

/* distinction */
.distinction { list-style: none; padding: 0; margin: 0 auto; max-width: 60rem; }
.distinction li { display: grid; grid-template-columns: 6rem 1fr; gap: 1.5rem; padding-block: 2.4rem; border-top: 1px solid var(--line); }
.distinction li:last-child { border-bottom: 1px solid var(--line); }
.distinction .num { font-size: 2.8rem; line-height: 1; font-weight: 500; }
.distinction p { margin: 0; font-size: 1.1rem; }
@media (max-width: 560px) { .distinction li { grid-template-columns: 1fr; gap: .6rem; } .distinction .num { font-size: 2rem; } }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-index { position: sticky; top: 110px; }
.faq-index ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.faq-index a { display: block; padding: .5rem 0 .5rem 1.1rem; text-decoration: none; color: var(--ink); font-size: .95rem; margin-left: -1px; border-left: 1px solid transparent; }
.faq-index a:hover { color: var(--ink-strong); border-left-color: var(--gold); }
.faq-group { margin-bottom: 3.5rem; }
.faq-group h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative; font-weight: 600; color: var(--ink-strong); font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item summary:hover { color: var(--gold-ink); }
.faq-answer { padding: 0 2.5rem 1.4rem 0; color: var(--ink); }
.faq-answer p { margin: 0; }
.faq-more { margin-top: 1rem; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-index { position: static; } .faq-index ul { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; } .faq-index a { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; margin: 0; font-size: .85rem; } }

/* access / status card */
.access { min-height: 60vh; display: flex; align-items: center; }
.access-inner { display: flex; justify-content: center; }
.access-card { max-width: 40rem; width: 100%; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow); }
.access-card h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.access-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 0; }
.notice { border-left: 2px solid var(--gold); background: var(--tint); padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.notice p { margin: 0; }
.ref-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 1.6rem 0 .3rem; }
.ref-number { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--ink-strong); letter-spacing: .04em; margin-bottom: 1.4rem; word-break: break-all; }

/* ---------- consultation form ---------- */
.consult-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.consult-aside h2 { font-size: 1.8rem; }
.mini-steps { padding-left: 1.2em; margin: 0 0 1rem; display: grid; gap: .9rem; }
.mini-steps li::marker { color: var(--gold-ink); font-family: var(--serif); font-weight: 600; }
.consult-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 3rem); box-shadow: var(--shadow); }
@media (max-width: 900px) { .consult-grid { grid-template-columns: 1fr; } .consult-aside { order: 2; } }
.inquiry-form { display: grid; gap: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink-strong); }
.req { color: var(--gold-ink); }
.opt { font-weight: 500; color: var(--muted); font-size: .85rem; }
.hint { margin: 0; font-size: .86rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="date"], .field input[type="password"], .field input[type="tel"], .field input[type="file"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--ink-strong);
  background: var(--bg); border: 1px solid var(--line); border-bottom-color: var(--gold); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-ink) 50%), linear-gradient(135deg, var(--gold-ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198, 162, 101, .35); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.counter { margin: 0; font-size: .8rem; color: var(--muted); text-align: right; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); border-bottom-color: var(--error); }
.error-text { margin: 0; color: var(--error); font-weight: 600; font-size: .88rem; }
.field.check { grid-template-columns: auto 1fr; align-items: start; column-gap: .8rem; }
.field.check .error-text { grid-column: 1 / -1; }
.field.check input { width: 22px; height: 22px; margin: .2rem 0 0; accent-color: var(--midnight); }
:root[data-theme="dark"] .field.check input { accent-color: var(--gold); }
.field.check label { font-weight: 500; font-size: .95rem; color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-actions .fine { margin: 0; }
.error-summary { border: 1px solid var(--error); border-left-width: 4px; background: var(--error-bg); padding: 1.1rem 1.3rem; border-radius: var(--radius); }
.error-summary h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--error); margin-bottom: .5rem; }
.error-summary ul { margin: 0; }
.error-summary a, .error-summary p { color: var(--error); margin: 0; font-weight: 600; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.preview-note { margin: 0; padding: .9rem 1.1rem; background: var(--tint); border-left: 2px solid var(--gold); }
@media (max-width: 600px) { .form-actions .btn { width: 100%; } }

/* ---------- legal ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.legal ul { display: grid; gap: .4rem; }
.effective { color: var(--muted); font-size: .9rem; }
.legal-contact { font-style: normal; line-height: 1.8; }

/* ---------- footer ---------- */
.site-footer { background: var(--midnight); color: #C2C9D1; padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid rgba(198, 162, 101, .3); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 1180px) and (min-width: 961px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { width: 220px; height: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; max-width: 22rem; }
.footer-col .footer-heading { font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a, .footer-base a { color: #DCE1E6; text-decoration: none; font-size: .93rem; }
.footer-col a:hover, .footer-base a:hover { color: var(--gold); text-decoration: underline; }
.site-footer :focus-visible { outline-color: #E3C58F; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(198, 162, 101, .2); margin-top: clamp(40px, 6vw, 72px); padding-block: 1.6rem; font-size: .85rem; }
.footer-base p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- executive suite ---------- */
.exec-header { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.exec-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.exec-header .brand-mark { width: 40px; height: 38px; }
.exec-logout { display: flex; align-items: center; gap: .8rem; }
.exec-user { font-size: .85rem; color: var(--muted); }
.exec-main { padding-block: 48px 96px; }
.exec-login { max-width: 26rem; margin: 6vh auto 0; display: grid; gap: 1.2rem; }
.exec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.exec-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.exec-head .fine { max-width: 28rem; margin: 0; }
.exec-tabs ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.exec-tabs a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .88rem; }
.exec-tabs a[aria-current="page"] { border-color: var(--gold); color: var(--ink-strong); background: rgba(198, 162, 101, .14); font-weight: 700; }
.count { color: var(--muted); font-size: .8rem; margin-left: .2rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.exec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.exec-table th, .exec-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.exec-table th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
.exec-table tr:last-child td { border-bottom: 0; }
.exec-table td:first-child { white-space: nowrap; font-weight: 700; }
.status { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: capitalize; border: 1px solid var(--line); }
.status-new { background: rgba(198, 162, 101, .2); color: var(--gold-ink); border-color: var(--gold); }
.status-reviewed { color: var(--ok); border-color: currentColor; }
.status-archived { color: var(--muted); }
.empty { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.exec-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.exec-dl div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.exec-dl dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.exec-dl dd { margin: .3rem 0 0; color: var(--ink-strong); overflow-wrap: anywhere; }
.exec-message, .exec-actions, .exec-history { margin-bottom: 2rem; }
.exec-message h2, .exec-actions h2, .exec-history h2 { font-size: 1.5rem; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.exec-history ul { padding-left: 1.2em; color: var(--muted); font-size: .92rem; }
.link-back { text-decoration: none; font-weight: 600; font-size: .9rem; }

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { background: none; min-height: 0; }
}

/* narrow screens: allow long button labels to wrap rather than overflow */
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; }
  .access-actions .btn { width: 100%; }
}
@media (max-width: 400px) {
  .header-inner { gap: .75rem; }
  .brand { flex: 1 1 auto; min-width: 0; gap: .6rem; }
  .brand-name { font-size: 1rem; white-space: normal; line-height: 1.15; }
}


/* ---------- "When an RFP arrives" (homepage) ---------- */
.occasion-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.occasion-grid li { border-top: 1px solid var(--gold); padding-top: 1.4rem; min-width: 0; }
.occasion-grid h3 { font-size: 1.45rem; }
.occasion-grid p { color: var(--muted); font-size: .98rem; margin: 0; }
.occasion-note { margin: 2.5rem 0 0; max-width: 46rem; color: var(--ink); }
@media (max-width: 960px) { .occasion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .occasion-grid { grid-template-columns: 1fr; } }
.occasions { border-top: 1px solid var(--line); }

/* ==========================================================================
   Private Client Suite (Phase 2) and Executive Suite operations
   ========================================================================== */
:root { --ok-bg: #E7F1EB; --warn: #8A4B12; --warn-bg: #FBEEDD; --gold-strong: #6B4E1E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok-bg: #173327; --warn: #F0B77A; --warn-bg: #3A2814; --gold-strong: #E3C792; } }
:root[data-theme="dark"] { --ok-bg: #173327; --warn: #F0B77A; --warn-bg: #3A2814; --gold-strong: #E3C792; }

.portal-main, .exec-main { padding-block: 40px 96px; min-height: 60vh; }
.portal-main .access { min-height: 0; padding-block: clamp(24px, 6vw, 72px); }
.portal-wrap { display: grid; gap: 1.6rem; align-content: start; }
.portal-wrap > * { min-width: 0; }
.portal-head, .exec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: 0; }
.portal-head h1, .exec-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); overflow-wrap: anywhere; }
.portal-head .eyebrow, .exec-head .eyebrow { margin-bottom: .6rem; }
.portal-public-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.auth-card { max-width: 34rem; }
.auth-card .inquiry-form { margin-top: 1.4rem; }
.portal-footer { border-top: 1px solid var(--line); padding-block: 1.6rem; font-size: .85rem; color: var(--muted); }
.portal-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; }
.portal-footer p { margin: 0; }
.portal-footer a { color: var(--muted); }

.sub-h { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 0 0 .8rem; }
.sub-h .doc-meta { font-family: var(--sans); font-size: .85rem; }
.folder-h { font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin: 1.4rem 0 .6rem; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-line { color: var(--muted); font-size: .95rem; margin: 0; }
.doc-meta { display: block; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.count { color: var(--muted); font-family: var(--sans); font-size: .85rem; font-weight: 600; margin-left: .3rem; }

/* pills, badges, flashes */
.pill { white-space: nowrap; }
.pill-gold { background: rgba(198, 162, 101, .2); color: var(--gold-strong); }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-muted, .pill-neutral { background: var(--tint); color: var(--muted); border: 1px solid var(--line); }
.badge { display: inline-block; min-width: 1.4rem; padding: .05rem .45rem; border-radius: 999px; background: var(--gold); color: var(--midnight); font-size: .72rem; font-weight: 800; text-align: center; line-height: 1.5; letter-spacing: 0; vertical-align: middle; }
.flash { border: 1px solid var(--line); border-left: 4px solid var(--ok); background: var(--ok-bg); color: var(--ink-strong); padding: 1rem 1.2rem; border-radius: var(--radius); overflow-wrap: anywhere; }
.flash p { margin: .6rem 0 0; }
.flash-error { border-left-color: var(--error); background: var(--error-bg); color: var(--error); }
.flash-gold { border-left-color: var(--gold); background: rgba(198, 162, 101, .14); }
.flash:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.approved-banner { border: 1px solid var(--ok); background: var(--ok-bg); color: var(--ink-strong); padding: 1rem 1.2rem; border-radius: var(--radius); }
.link-copy code { display: block; padding: .6rem .8rem; word-break: break-all; background: var(--surface); border: 1px solid var(--line); }

/* dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.dash-card, .side-card, .exec-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; min-width: 0; }
.dash-card h2, .side-card h2 { font-size: 1.35rem; margin: 0 0 .9rem; }
.exec-panel h2 { font-size: 1.6rem; margin: 0 0 .9rem; }
.exec-panel h3 { font-size: 1.3rem; margin: 1.6rem 0 .8rem; }
.exec-panel + .exec-panel { margin-top: 1.4rem; }
@media (max-width: 1060px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .dash-grid { grid-template-columns: 1fr; } }
.proj-list, .doc-list, .ms-list, .ntf-list, .act-list, .ver-list, .dec-list, .sess-list, .thread-list, .msg-list, .mail-list, .doc-table { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.proj-row { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.proj-title { font-weight: 700; text-decoration: none; color: var(--ink-strong); }
.proj-title:hover { color: var(--gold-ink); }
.proj-ref { display: block; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.doc-list a, .ntf-list a { font-weight: 600; }
.ms-list li { display: grid; grid-template-columns: 6.2rem 1fr; gap: .8rem; align-items: baseline; }
.ms-list li.done .ms-title { text-decoration: line-through; color: var(--muted); }
.ms-date { font-size: .8rem; font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.ms-title { min-width: 0; }
.ntf-list li { display: grid; gap: .15rem; padding-left: .9rem; border-left: 2px solid transparent; }
.ntf-list li.unread { border-left-color: var(--gold); }
.ntf-full li { grid-template-columns: auto 1fr; column-gap: .8rem; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-left-width: 3px; padding: .8rem 1rem; border-radius: var(--radius); }
.ntf-full li .doc-meta { grid-column: 2; }
@media (max-width: 560px) { .ntf-full li { grid-template-columns: 1fr; } .ntf-full li .doc-meta { grid-column: 1; } }
.act-list li { font-size: .95rem; }
.act-what { font-weight: 700; color: var(--ink-strong); }
.act-meta { display: block; color: var(--muted); font-size: .82rem; }

/* stage track */
.stage-track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .4rem; }
.stage-track li { border-top: 3px solid var(--line); padding-top: .55rem; display: grid; gap: .1rem; font-size: .78rem; color: var(--muted); min-width: 0; }
.stage-track li.done { border-top-color: var(--gold); }
.stage-track li.current { border-top-color: var(--midnight); color: var(--ink-strong); font-weight: 700; }
:root[data-theme="dark"] .stage-track li.current { border-top-color: var(--ivory); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage-track li.current { border-top-color: var(--ivory); } }
.st-num { font-family: var(--serif); font-size: 1rem; color: var(--gold-ink); }
.st-label { overflow-wrap: anywhere; }
@media (max-width: 860px) { .stage-track { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: .9rem; } }

/* project & document layouts */
.proj-grid, .doc-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.proj-main, .doc-main { display: grid; gap: 1.2rem; min-width: 0; }
.proj-main > .sub-h { margin-top: .6rem; }
.proj-side, .doc-side { display: grid; gap: 1.2rem; min-width: 0; }
@media (max-width: 960px) { .proj-grid, .doc-grid { grid-template-columns: 1fr; } }
.kv { margin: 0; display: grid; gap: .6rem; }
.kv dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kv dd { margin: .1rem 0 0; color: var(--ink-strong); overflow-wrap: anywhere; }
.doc-table li { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-table li > div { min-width: 0; }
.doc-table a { font-weight: 700; }
.upload-box, .decision-box { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.doc-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn.is-disabled { opacity: .45; cursor: not-allowed; }
.version-note { background: var(--tint); border-left: 2px solid var(--gold); padding: .8rem 1rem; margin: 0; }
.preview { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.preview-pdf iframe { display: block; width: 100%; height: min(80vh, 900px); border: 0; background: #fff; }
.preview-pdf .preview-note { padding: .6rem 1rem; margin: 0; border-top: 1px solid var(--line); }
.preview-image img { margin: 0 auto; max-height: 80vh; width: auto; }
.preview-text { max-height: 70vh; overflow: auto; padding: 1.6rem clamp(1rem, 4vw, 2.6rem); font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; color: var(--ink-strong); }
.preview-text p { margin: 0 0 .7em; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-text h3 { font-size: 1.5rem; margin: 1em 0 .4em; }
.preview-none { padding: 1.4rem; color: var(--muted); }
.preview-none p { margin: 0; }
.preview-note { font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.ver-list li { padding: .6rem .7rem; border-radius: var(--radius); border: 1px solid transparent; }
.ver-list li.current { border-color: var(--gold); background: rgba(198, 162, 101, .08); }
.ver-list a { font-weight: 700; margin-right: .3rem; }
.dec-list li { border-left: 2px solid var(--line); padding-left: .9rem; }
.dec-list li.dec-approval { border-left-color: var(--ok); }
.dec-list li.dec-revision_request { border-left-color: var(--warn); }
.dec-head { margin: 0 0 .2rem; }
.dec-list p { margin: 0 0 .3rem; }
.confirm-card { max-width: 44rem; margin-inline: auto; }
.confirm-card .kv { margin: 1.2rem 0; padding: 1rem 1.2rem; background: var(--tint); border-radius: var(--radius); }

/* messages */
.thread-list a { display: grid; gap: .2rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.thread-list li.unread a { border-left: 3px solid var(--gold); }
.thread-list a:hover { border-color: var(--gold); }
.th-title { font-weight: 700; color: var(--ink-strong); }
.th-last { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.msg-list { gap: 1rem; }
.msg { max-width: min(46rem, 92%); padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.msg.mine { margin-left: auto; background: rgba(198, 162, 101, .1); border-color: rgba(198, 162, 101, .4); }
.msg.new { box-shadow: inset 3px 0 0 var(--gold); }
.msg-head { margin: 0 0 .4rem; }
.msg-head .doc-meta { display: inline; margin-left: .4rem; }
.msg p.pre { margin: 0; }
.msg-ref { margin: .6rem 0 0; font-size: .9rem; }
.msg-form { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }

/* account */
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.acct-wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .acct-grid { grid-template-columns: 1fr; } }
fieldset.checks { border: 0; padding: 0; margin: 0; display: grid; gap: .7rem; min-width: 0; }
fieldset.checks legend { font-weight: 700; font-size: .92rem; color: var(--ink-strong); margin-bottom: .6rem; padding: 0; }
.secret { font-size: 1rem; letter-spacing: .08em; word-break: break-all; }
.sess-list li { display: grid; gap: .1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }

/* executive suite additions */
.exec-nav ul { list-style: none; margin: 0; padding: 0 0 .1rem; display: flex; gap: .2rem; overflow-x: auto; }
.exec-nav a { display: block; padding: .7rem .9rem; text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.exec-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--ink-strong); }
.exec-nav a:hover { color: var(--ink-strong); }
.exec-head { margin-bottom: 1.4rem; }
.exec-main .flash, .exec-main .approved-banner { margin-bottom: 1.2rem; }
.exec-main .table-wrap { margin-bottom: 1.4rem; }
.inline-form { display: inline; margin-left: .5rem; }
.link-button { background: none; border: 0; padding: 0; color: var(--gold-ink); font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; }
.inquiry-form.compact { gap: .7rem; margin-top: 1rem; }
.mail-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.mail-head { margin: 0 0 .3rem; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; background: var(--tint); padding: 1rem; border-radius: var(--radius); margin: .8rem 0 0; }
.exec-table td { overflow-wrap: anywhere; }

@media (min-width: 1201px) and (max-width: 1479px) { .portal-header .brand-text { display: flex; } }
.field input[type="file"] { min-height: 0; padding: .6rem; font-size: .92rem; }
.exec-panel h2 .doc-meta { font-family: var(--sans); font-size: .85rem; }

/* ==========================================================================
   Executive Administration Suite (Phase 3)
   ========================================================================== */
.stat-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat { display: grid; gap: .2rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-width: 0; }
.stat:hover { border-color: var(--gold); }
.stat-n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.stat-l { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 1100px) { .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.role-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .4rem; }
.role-form select { min-height: 38px; padding: .3rem 2.2rem .3rem .6rem; font: inherit; font-size: .9rem; color: var(--ink-strong); background-color: var(--bg); border: 1px solid var(--line); border-bottom-color: var(--gold); border-radius: var(--radius); appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-ink) 50%), linear-gradient(135deg, var(--gold-ink) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.member-list li { padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.stack-form { margin-bottom: .6rem; }
.btn.danger { border-color: var(--error); color: var(--error); }
.btn.danger:hover { background: var(--error-bg); color: var(--error); }
.filter-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: .8rem; align-items: end; margin-bottom: 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-form .field input, .filter-form .field select { min-height: 42px; padding: .45rem .7rem; }
.filter-form .form-actions { gap: .8rem; }
@media (max-width: 1100px) { .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .filter-form { grid-template-columns: 1fr; } }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.role-kv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .role-kv { grid-template-columns: 1fr; } }
.exec-panel h2 .count { font-size: .95rem; }

/* guide page */
.guide-parts { display: grid; gap: 1rem; margin: 1rem 0 0; }
.guide-parts dt { font-family: var(--serif); font-size: 1.3rem; color: var(--ink-strong); }
.guide-parts dd { margin: .2rem 0 0; color: var(--ink); }
.guide-steps { display: grid; gap: .8rem; padding-left: 1.3em; margin: 0; }
.guide-steps li::marker { color: var(--gold-ink); font-family: var(--serif); font-weight: 600; }
.guide-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.status-new { color: var(--gold-strong); }
.status-reviewed { background: var(--ok-bg); }

/* ---------- Insights (articles) ---------- */
.insight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 52rem; }
.insight-card { padding: clamp(1.8rem, 3vw, 2.6rem) 0; border-top: 1px solid var(--line); }
.insight-card:last-child { border-bottom: 1px solid var(--line); }
.insight-card h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0 0 .7rem; }
.insight-card h2 a { color: var(--ink-strong); text-decoration: none; }
.insight-card h2 a:hover { color: var(--gold-ink); }
.insight-card p { max-width: 44rem; }
.insight-card p:last-child { margin-bottom: 0; }
.insight-meta { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .9rem; }
.insight-article { max-width: 44rem; }
.insight-body { font-size: 1.08rem; line-height: 1.8; }
.insight-body h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin: 2.4rem 0 .8rem; }
.insight-body h3 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.insight-body ul, .insight-body ol { display: grid; gap: .45rem; padding-left: 1.4rem; }
.insight-body blockquote { margin: 2rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.45rem; line-height: 1.5; color: var(--ink-strong); }
.insight-body blockquote p { margin: 0; }
.insight-body a { color: var(--gold-ink); }
.insight-back { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 1201px) and (max-width: 1360px) {
  .nav-list a { padding: .55rem .42rem; font-size: .86rem; }
  .nav-list a::after { left: .42rem; right: .42rem; }
  .nav-actions { gap: .5rem; }
}

/* ---------- numbering drawn by CSS, so page text and screen readers see each number once ---------- */
.num[data-n]::before, .timeline-num[data-n]::before { content: attr(data-n); }

/* ---------- Our Firm commitments ---------- */
.distinction h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 0; }

/* ---------- sample proposal page ---------- */
.sample-figure { margin: 0; justify-self: center; max-width: 440px; width: 100%; }
.sample-figure a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.sample-figure img { display: block; width: 100%; height: auto; }
.sample-figure figcaption { margin-top: .9rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- consultation page ---------- */
.consult-aside h2:not(:first-child) { margin-top: 2.2rem; }
.consult-aside .ticks { margin-top: .6rem; }

/* ---------- three-card row (Before and After the Proposal) ---------- */
.craft-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .craft-grid.three { grid-template-columns: 1fr; } }

/* ---------- founder portrait ---------- */
@media (min-width: 861px) { .page-head.has-media.founder-head .page-head-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.page-head-media.founder-photo { aspect-ratio: 4 / 5; max-width: 380px; width: 100%; justify-self: end; }
@media (max-width: 900px) { .page-head-media.founder-photo { justify-self: start; max-width: 300px; } }

/* ---------- footer legal links ---------- */
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-legal a { font-size: .85rem; }

/* ---------- practice areas ---------- */
.practice-note { margin: 1.2rem 0 0; max-width: 46rem; color: var(--muted); font-size: .98rem; }
.practice-note a { color: var(--gold-ink); }
.practice-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.practice-links li { padding: 1.4rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .3rem; }
.practice-links a { font-family: var(--serif); font-size: 1.55rem; color: var(--ink-strong); text-decoration: none; line-height: 1.2; }
.practice-links a:hover { color: var(--gold-ink); }
.practice-links span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .practice-links { grid-template-columns: 1fr; } }

/* ---------- resources ---------- */
.resource-list { list-style: none; padding: 0; margin: 0 auto; max-width: 56rem; border-top: 1px solid var(--line); }
.resource-list li { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.resource-list h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 .5rem; }
.resource-list h2 a { color: var(--ink-strong); text-decoration: none; }
.resource-list h2 a:hover { color: var(--gold-ink); }
.resource-list p { margin: 0; color: var(--muted); max-width: 44rem; }
.guide-aside { border-left: 2px solid var(--gold); background: var(--tint); padding: 1.4rem 1.6rem; border-radius: var(--radius); }
.guide-aside p { margin: 0 0 .9rem; }
.guide-aside p:last-child { margin-bottom: 0; }
.resource-about { max-width: 56rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.resource-about h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.resource-about p { color: var(--ink); }

/* ---------- footer social and review links (shown only when saved in the Executive Suite) ---------- */
/* One monotone grey. Hover only brightens the same grey; no color change. */
.footer-social { --social-ink: #8A939C; --social-ink-hover: #D4D8DC; display: flex; align-items: center; gap: .5rem 1.6rem; flex-wrap: wrap; }
.footer-social ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .7rem; }
.footer-social ul a { display: inline-flex; color: var(--social-ink); transition: color .25s ease; }
.footer-social ul a:hover, .footer-social ul a:focus-visible { color: var(--social-ink-hover); text-decoration: none; }
.footer-social svg { display: block; }
.footer-reviews { margin: 0; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--social-ink); }
.footer-reviews a { font-size: .68rem; color: var(--social-ink); text-decoration: none; }
.footer-reviews a:hover, .footer-reviews a:focus-visible { color: var(--social-ink-hover); text-decoration: none; }
.footer-reviews .sep { margin: 0 .35rem; }
