/* ==========================================================================
   Green Space Investment
   Direction: institutional fintech. Deep navy for authority, emerald for action,
   white and cool grey for air. Flat surfaces, 1px rules, 4px corners, no glow.
   Type: Inter (all interface + reading text). Newsreader is kept only for the
   logo wordmark so the lockup is unchanged.
   Fonts are self-hosted (CSP-safe, no third-party requests).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Wordmark only (logo lockup is left as designed) */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand */
  --navy: #0B2545;          /* headings, trust surfaces. 15.6:1 on white */
  --navy-800: #13315C;      /* hover on navy surfaces */
  --navy-900: #071A33;      /* footer */
  --emerald: #047857;       /* CTAs, links, highlights. 5.5:1 with white */
  --emerald-700: #065F46;   /* CTA hover / pressed */
  --emerald-50: #ECFDF5;    /* success tint */
  --emerald-on-dark: #34D399; /* accent on navy, 8.2:1 */

  /* Neutrals */
  --white: #FFFFFF;
  --surface: #F5F7FA;       /* soft grey bands */
  --surface-2: #EEF2F6;     /* subtle fills */
  --ink: #0F1B2D;           /* body text, 17:1 on white */
  --muted: #4B5563;         /* secondary text, 7.5:1 on white */
  --subtle: #6B7280;        /* placeholder / tertiary, 4.8:1 on white */
  --rule: #E3E8EF;          /* 1px dividers */
  --rule-strong: #CBD5E1;   /* input borders */
  --on-dark: #F1F5F9;
  --on-dark-muted: #AFC0D3; /* 8.4:1 on navy */
  --rule-on-dark: rgba(241, 245, 249, .14);
  --danger: #B42318;        /* 6.4:1 on white */
  --danger-50: #FEF3F2;

  /* Spacing scale: 4/8/16/24/32/48/64/96/128 */
  --s-05: 4px; --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-6: 48px; --s-8: 64px; --s-12: 96px; --s-16: 128px;

  --container: 1200px;
  --gutter: 32px;
  --header-h: 72px;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-pop: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .08);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans Devanagari", Arial, sans-serif;
  --wordmark: "Newsreader", "Iowan Old Style", Georgia, serif;

  --t-fast: .15s ease;
}
@media (max-width: 720px) { :root { --gutter: 16px; --header-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;              /* 16px body */
  line-height: 1.6;
  font-feature-settings: "cv11", "ss03";  /* Inter: cleaner a / round quotes */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 var(--s-2); }
address { font-style: normal; }
strong { font-weight: 600; }
::selection { background: var(--navy); color: var(--white); }

a {
  color: var(--emerald);
  text-decoration: underline;
  text-decoration-color: rgba(4, 120, 87, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
a:hover { color: var(--emerald-700); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--navy);
  margin: 0 0 var(--s-2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.028em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.018em; font-weight: 600; }
h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.008em; font-weight: 600; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 720px; }
.small { font-size: .875rem; line-height: 1.55; color: var(--muted); }
.lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; color: var(--muted); }
.statement {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -.012em;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: var(--s-4);
  max-width: 38ch;
}
.statement strong { font-weight: 700; color: var(--emerald); font-variant-numeric: tabular-nums; }
.intro { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; font-weight: 500; color: var(--navy); max-width: 52ch; margin-bottom: var(--s-6); }
.byline { font-size: .875rem; color: var(--muted); margin-bottom: var(--s-3); }
.h-sub { font-size: 1.25rem; margin-bottom: var(--s-3); }

.skip-link {
  position: absolute; left: var(--s-2); top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: var(--s-1) var(--s-2);
  font-size: .875rem; font-weight: 600; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: var(--s-2); color: var(--white); }
main:focus { outline: none; }

.stretched::after { content: ""; position: absolute; inset: 0; }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s-3);
  font-family: var(--sans); font-size: .9375rem; font-weight: 600; letter-spacing: 0; line-height: 1;
  background: var(--emerald); color: var(--white);
  border: 1px solid var(--emerald); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover { background: var(--emerald-700); border-color: var(--emerald-700); color: var(--white); }
.btn:active { background: #064E3B; border-color: #064E3B; }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Secondary: outlined navy, sits quietly beside the primary action */
.btn--quiet {
  background: transparent; color: var(--navy);
  border-color: var(--rule-strong);
}
.btn--quiet:hover { background: var(--surface); border-color: var(--navy); color: var(--navy); }
.btn--quiet:active { background: var(--surface-2); border-color: var(--navy); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--t-fast);
}
.header.is-scrolled { box-shadow: 0 1px 0 rgba(11, 37, 69, .04), 0 4px 12px rgba(11, 37, 69, .05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--header-h); }

/* Logo: image + wordmark untouched in form; only colour aligned to navy */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo img { width: auto; height: 48px; display: block; }
.footer .logo img { height: 56px; }
@media (max-width: 480px) { .logo img { height: 40px; } }
.logo__text { font-family: var(--wordmark); font-size: 1.3125rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.logo__text em { font-style: italic; font-weight: 400; }
.logo--light, .logo--light:hover { color: var(--on-dark); }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s-1); }
.nav a {
  font-size: .9375rem; font-weight: 500; line-height: 1;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: var(--radius);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav a:hover { color: var(--navy); background: var(--surface); }
.nav__list > li > a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--emerald); border-radius: 0; }
.nav .nav__cta,
.nav .nav__cta[aria-current="page"] {
  margin-left: var(--s-1); padding: 0 var(--s-2);
  background: var(--emerald); color: var(--white); font-weight: 600;
  border-radius: var(--radius); box-shadow: none;
}
.nav .nav__cta:hover { background: var(--emerald-700); color: var(--white); }
.nav .nav__cta:focus-visible { outline-color: var(--navy); }

.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; top: 100%; left: 0; min-width: 232px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-fast), visibility var(--t-fast);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; }
.sub a { display: flex; width: 100%; padding: 0 12px; min-height: 40px; color: var(--ink); }
.sub a:hover { background: var(--surface); color: var(--navy); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 7px; margin-right: 0;
  color: var(--navy); cursor: pointer;
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-offset, var(--header-h)) 0 0 0;
    background: var(--white); overflow-y: auto;
    padding: var(--s-2) var(--gutter) var(--s-8);
    border-top: 1px solid var(--rule);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--rule); }
  .nav__list > li:last-child { border-bottom: 0; padding-top: var(--s-3); }
  .nav__list > li > a { font-size: 1.0625rem; font-weight: 600; color: var(--navy); min-height: 56px; padding: 0; display: flex; border-radius: 0; }
  .nav__list > li > a:hover { background: none; color: var(--emerald); }
  .nav__list > li > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--emerald); padding-left: var(--s-2); }
  .nav .nav__cta, .nav .nav__cta[aria-current="page"] { margin: 0; justify-content: center; min-height: 48px; padding: 0 var(--s-3); color: var(--white); border-radius: var(--radius); box-shadow: none; }
  .nav .nav__cta:hover { color: var(--white); background: var(--emerald-700); }
  .sub { position: static; opacity: 1; visibility: visible; border: 0; box-shadow: none; padding: 0 0 var(--s-2); background: none; min-width: 0; border-radius: 0; }
  .sub a { padding: 0; min-height: 40px; color: var(--muted); font-weight: 500; }
  .sub a:hover { background: none; color: var(--emerald); }
}

/* ---------- Home hero ---------- */
/* Left-aligned 12-col split: headline 7 cols, supporting copy + actions 5 cols. */
.hero { padding-top: clamp(48px, 7vw, 96px); background: var(--white); }
.hero__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-4); row-gap: var(--s-3);
  align-items: end;
}
.hero h1 { grid-column: 1 / span 7; margin: 0; max-width: 18ch; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.hero__aside { grid-column: 8 / span 5; padding-bottom: 6px; }
.hero__aside .lead { margin-bottom: var(--s-3); }
@media (max-width: 960px) {
  .hero h1, .hero__aside { grid-column: 1 / -1; }
}

/* Ridge chart: static, flat. Navy land, emerald markers. */
.ridge { margin: clamp(40px, 6vw, 72px) 0 0; }
.ridge__svg { width: 100%; height: auto; }
.ridge__far { fill: var(--surface-2); }
.ridge__land { fill: var(--navy); }
.ridge__line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.ridge__pin line { stroke: var(--on-dark); stroke-opacity: .22; stroke-width: 1; }
.ridge__pin circle { fill: var(--emerald-on-dark); stroke: var(--navy); stroke-width: 3; }

.ridge__base { background: var(--navy); color: var(--on-dark); margin-top: -1px; padding-bottom: var(--s-6); }
.ridge__legend {
  list-style: none; margin: 0; padding: 0 0 var(--s-4);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  font-size: .8125rem; line-height: 1.45;
}
.ridge__legend li { padding: var(--s-2) var(--s-2) 0; border-top: 1px solid var(--rule-on-dark); text-align: center; }
.ridge__name { display: block; font-weight: 600; color: var(--on-dark); }
.ridge__meta { display: block; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.ridge__caption {
  font-size: .875rem; line-height: 1.55;
  color: var(--on-dark-muted);
  padding-top: var(--s-3); border-top: 1px solid var(--rule-on-dark);
}
@media (max-width: 860px) {
  .ridge__pin line { display: none; }
  .ridge__pin circle { r: 14px; stroke-width: 6; }
  .ridge__line { stroke-width: 4; }
  .ridge__legend { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-2); width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding-top: var(--s-2); }
  .ridge__legend li { text-align: left; padding-inline: 0; border-top: 0; padding-top: var(--s-1); }
  .ridge__caption { border-top: 0; padding-top: var(--s-1); }
}

/* ---------- Sections (4 / 8 split on the 12-col grid) ---------- */
.sheet { padding-block: clamp(56px, 7vw, 96px) 0; }
.sheet--first { padding-top: clamp(40px, 5vw, 64px); }
.sheet__grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s-8); row-gap: var(--s-3);
  border-top: 1px solid var(--rule); padding-top: var(--s-6);
}
.sheet--first .sheet__grid { border-top: 0; padding-top: 0; }
.sheet__head { margin: 0; max-width: 18ch; }
h2.sheet__head, .sheet__head h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
div.sheet__head, aside.sheet__head { max-width: 30ch; }
.sheet__head .small { margin-top: var(--s-1); }
.sheet__body { min-width: 0; }
.sheet__body > p:not(.statement) { max-width: 66ch; color: var(--ink); }
@media (min-width: 861px) {
  .sheet__head:not(.aside) { position: sticky; top: calc(var(--header-h) + var(--s-3)); align-self: start; }
}
@media (max-width: 860px) {
  .sheet__grid { grid-template-columns: minmax(0, 1fr); padding-top: var(--s-4); }
}

/* Index of sectors */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index__row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-4);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--rule);
  transition: background-color var(--t-fast);
}
.index__title { font-size: 1.125rem; font-weight: 600; margin: 0; }
.index__title a { color: var(--navy); text-decoration: none; }
.index__title a::before {
  content: ""; display: inline-block; width: 0; height: 2px; margin-right: 0;
  vertical-align: middle; background: var(--emerald);
  transition: width var(--t-fast), margin-right var(--t-fast);
}
.index__row:hover .index__title a { color: var(--emerald); }
.index__row:hover .index__title a::before { width: 12px; margin-right: 10px; }
.index__row:focus-within { outline: 2px solid var(--emerald); outline-offset: 4px; border-radius: var(--radius); }
.index__row:focus-within .index__title a:focus-visible { outline: none; }
.index__text { font-size: .9375rem; line-height: 1.6; color: var(--muted); margin: 0; }
.index__tags { grid-column: 2; font-size: .8125rem; font-weight: 500; color: var(--navy); margin: var(--s-1) 0 0; }
@media (max-width: 640px) {
  .index__row { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-1); }
  .index__tags { grid-column: 1; }
}

/* Tabs */
.tabs__list { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-4); }
.tabs__list [role="tab"] {
  background: none; border: 0; padding: 0 0 14px; margin-bottom: -1px;
  font-family: var(--sans); font-size: .9375rem; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tabs__list [role="tab"]:hover { color: var(--navy); }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--emerald); }
.tabs__panel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-6); }
.tabs__panel[hidden] { display: none; }
.tabs__panel:focus-visible { outline-offset: 8px; }
.tabs__text { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; font-weight: 500; color: var(--navy); margin: 0; }
@media (max-width: 720px) { .tabs__panel { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); } }

/* Ticked lists: a short emerald rule, not an icon */
.ticks { list-style: none; margin: 0 0 var(--s-3); padding: 0; font-size: .9375rem; line-height: 1.55; }
.ticks li { position: relative; padding: 12px 0 12px var(--s-3); border-bottom: 1px solid var(--rule); }
.ticks li:first-child { padding-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: calc(12px + .78em); width: 10px; height: 2px; background: var(--emerald); }
.ticks li:first-child::before { top: .78em; }

/* Definition lists (mission, modules, contact) */
.defs { margin: 0; }
.defs > div {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: var(--s-4);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--rule);
}
.defs > div:first-child { padding-top: 0; }
.defs dt { font-size: .9375rem; font-weight: 600; color: var(--navy); }
.defs dd { margin: 0; max-width: 60ch; color: var(--ink); }
.defs--tight > div { padding: var(--s-2) 0; }
@media (max-width: 560px) { .defs > div { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-05); } }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-2);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--rule);
}
.steps li:first-child { padding-top: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero); grid-row: span 2;
  font-size: .875rem; font-weight: 600; line-height: 1.6; letter-spacing: .02em; color: var(--emerald);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.steps h3 { margin: 0 0 var(--s-05); }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Dark navy band ---------- */
.ledger { background: var(--navy); color: var(--on-dark); padding-block: clamp(64px, 8vw, 112px); margin-top: clamp(56px, 7vw, 96px); }
.ledger + .sheet { padding-top: clamp(56px, 7vw, 96px); }
.ledger + .sheet .sheet__grid { border-top: 0; padding-top: 0; }
.ledger__title { color: var(--white); font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.15; letter-spacing: -.024em; font-weight: 700; max-width: 24ch; margin-bottom: var(--s-6); }
.ledger__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-6); }
.ledger__cols > div { border-top: 1px solid var(--rule-on-dark); padding-top: var(--s-3); position: relative; }
.ledger__cols > div::before { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 2px; background: var(--emerald-on-dark); }
.ledger h3 { color: var(--white); font-size: 1.125rem; font-weight: 600; }
.ledger p { color: var(--on-dark-muted); margin: 0; }
.ledger a { color: var(--white); text-decoration-color: var(--emerald-on-dark); }
.ledger a:hover { color: var(--emerald-on-dark); }
.ledger :focus-visible { outline-color: var(--emerald-on-dark); }
.ledger__more { margin-top: var(--s-6) !important; font-size: .9375rem; font-weight: 600; }
@media (max-width: 860px) { .ledger__cols { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-4); } }

/* ---------- News notices ---------- */
.notice {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); column-gap: var(--s-4);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--rule);
}
.notice:first-child { padding-top: 0; }
.notice__date { font-size: .8125rem; font-weight: 500; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.notice__title { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--s-1); }
.notice__title a { color: var(--navy); text-decoration: none; }
.notice:hover .notice__title a { color: var(--emerald); }
.notice:focus-within { outline: 2px solid var(--emerald); outline-offset: 4px; border-radius: var(--radius); }
.notice__title a:focus-visible { outline: none; }
.notice p { margin: 0; color: var(--muted); font-size: .9375rem; }
.notice .notice__cat {
  display: inline-block; margin-top: 12px; padding: 2px 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy); background: var(--surface-2); border-radius: var(--radius);
}
@media (max-width: 560px) { .notice { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-1); } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: var(--s-3); align-items: center;
  padding: 20px 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; color: var(--navy);
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  display: grid; place-items: center; width: 28px; height: 28px;
  font-size: 1.125rem; font-weight: 400; line-height: 1; color: var(--navy);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
.faq details[open] summary::after { content: "\2212"; color: var(--white); background: var(--navy); border-color: var(--navy); }
.faq summary:hover { color: var(--emerald); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details p { max-width: 64ch; color: var(--muted); padding: 0 var(--s-6) var(--s-3) 0; margin: 0; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px); background: var(--surface); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 22ch; margin-bottom: var(--s-2); }
.page-hero .lead { max-width: 60ch; color: var(--muted); margin-bottom: 0; }
.breadcrumbs { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: flex; flex-wrap: wrap; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 var(--s-1); color: var(--rule-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--emerald); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--navy); }

/* ---------- Prose ---------- */
.prose > p { max-width: 66ch; }
.prose h2 { font-size: 1.375rem; margin-top: var(--s-6); }
.back { margin-top: var(--s-6); font-size: .9375rem; font-weight: 600; }

.aside .aside__title { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s-2); }
.aside .ticks { margin-bottom: var(--s-6); }
.aside__list { list-style: none; margin: 0; padding: 0; font-size: .9375rem; border-top: 1px solid var(--rule); }
.aside__list li { border-bottom: 1px solid var(--rule); }
.aside__list a { display: block; padding: 10px 0; color: var(--navy); font-weight: 500; text-decoration: none; }
.aside__list a:hover { color: var(--emerald); }
.pitch { margin-top: var(--s-8); padding: var(--s-4); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.pitch h2 { margin-top: 0; }
.pitch > :last-child { margin-bottom: 0; }

/* ---------- Board ---------- */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); margin-bottom: var(--s-2); border-radius: var(--radius); filter: grayscale(1) contrast(1.05); }
.person__name { font-size: 1.0625rem; font-weight: 600; margin-bottom: 2px; }
.person__role { font-size: .8125rem; font-weight: 600; color: var(--emerald); margin-bottom: var(--s-1); }
.person p:last-child { font-size: .9375rem; color: var(--muted); }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Portfolio register ---------- */
.register { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.register:focus-visible { outline-offset: 2px; }
.register table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 680px; }
.register thead th {
  text-align: left; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 12px var(--s-2); background: var(--surface); border-bottom: 1px solid var(--rule);
}
.register td, .register tbody th { text-align: left; vertical-align: top; padding: 20px var(--s-2); border-bottom: 1px solid var(--rule); font-weight: 400; color: var(--ink); }
.register tbody tr:last-child > * { border-bottom: 0; }
.register tbody tr { transition: background-color var(--t-fast); }
.register tbody tr:hover { background: var(--surface); }
.register .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.register__name { display: block; font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.35; margin-bottom: 2px; }
.register__text { display: block; color: var(--muted); font-size: .875rem; max-width: 46ch; }

/* ---------- Careers ---------- */
.job { padding-bottom: var(--s-6); }
.job + .job { border-top: 1px solid var(--rule); padding-top: var(--s-4); }
.job__title { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--s-1); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
.gallery figure { margin: 0; grid-column: span 4; }
.gallery figure:nth-child(4n + 1) { grid-column: span 7; }
.gallery figure:nth-child(4n + 2) { grid-column: span 5; align-self: end; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); transition: opacity var(--t-fast); }
.gallery a { display: block; border-radius: var(--radius); }
.gallery a:hover img { opacity: .88; }
.gallery figcaption { font-size: .875rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 720px) { .gallery figure, .gallery figure:nth-child(n) { grid-column: 1 / -1; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 92vw); }
.lightbox::backdrop { background: rgba(7, 26, 51, .9); }
.lightbox img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: var(--s-1); right: var(--s-1);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--white); color: var(--navy); border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer;
}
.lightbox__close:hover { background: var(--surface); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
.contact .defs dt { font-size: .875rem; }
.contact__form { padding: var(--s-4); background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
@media (max-width: 560px) { .contact__form { padding: var(--s-3) var(--s-2); } }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-3); }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 11px 14px; min-height: 48px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230B2545' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field textarea { resize: vertical; min-height: 160px; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #94A3B8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 1px var(--emerald); }
.field ::placeholder { color: var(--subtle); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.has-error input:focus, .has-error select:focus, .has-error textarea:focus { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field__error { font-size: .8125rem; font-weight: 500; color: var(--danger); margin: 6px 0 0; }
.form-note { font-size: .8125rem; color: var(--muted); margin-bottom: var(--s-3); }
.alert { font-size: .9375rem; padding: 14px var(--s-2); margin-bottom: var(--s-3); border: 1px solid; border-left-width: 3px; border-radius: var(--radius); }
.alert--success { border-color: #A7F3D0; border-left-color: var(--emerald); background: var(--emerald-50); color: var(--emerald-700); }
.alert--error { border-color: #FECDCA; border-left-color: var(--danger); background: var(--danger-50); color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.map { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.9) contrast(1.02); }

/* ---------- Errors ---------- */
.error-page { padding-bottom: clamp(64px, 10vw, 128px); }
.error-page h1 { margin-bottom: var(--s-3); }
.debug { font-size: .8125rem; overflow: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-2); }

/* ---------- Closing band + footer ---------- */
.closing { padding-block: clamp(64px, 8vw, 104px); margin-top: clamp(64px, 8vw, 104px); background: var(--surface); border-top: 1px solid var(--rule); }
.ledger + .closing { margin-top: 0; }
.closing__inner { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s-6); align-items: end; }
.closing h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0; max-width: 28ch; }
.closing .actions { justify-content: flex-end; }
.closing .btn--quiet { background: var(--white); }
.closing .btn--quiet:hover { background: var(--white); }
@media (max-width: 860px) { .closing__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); } .closing .actions { justify-content: flex-start; } }

.footer { background: var(--navy-900); color: var(--on-dark-muted); font-size: .875rem; line-height: 1.65; padding-top: var(--s-8); }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--emerald-on-dark); }
.footer :focus-visible { outline-color: var(--emerald-on-dark); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: var(--s-6) var(--s-4); padding-bottom: var(--s-8); }
.footer__brand p { margin-top: var(--s-2); max-width: 34ch; }
.footer__title { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: var(--s-2); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 3px 0; }
.footer address { margin-bottom: var(--s-2); }
.social { display: flex; gap: var(--s-1); margin-top: var(--s-3) !important; }
.social li { padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule-on-dark); border-radius: var(--radius); transition: border-color var(--t-fast), background-color var(--t-fast); }
.social a:hover { border-color: var(--on-dark-muted); background: rgba(241, 245, 249, .06); text-decoration: none; }
.social .icon { width: 18px; height: 18px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  border-top: 1px solid var(--rule-on-dark); padding-block: var(--s-3); font-size: .8125rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a + a { margin-left: var(--s-3); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Print ---------- */
@media print {
  .header, .nav-toggle, .closing, .map, .footer .social { display: none; }
  body { background: #fff; font-size: 11pt; }
  .ledger, .ridge__base, .page-hero { background: none; color: #000; }
}


/* ---------- Notice popup (managed in /admin) ---------- */
.popup { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.popup[open] { display: flex; align-items: center; justify-content: center; padding: var(--s-3); }
.popup::backdrop { background: rgba(7, 26, 51, 0); transition: background-color .2s ease; }
.popup.is-open::backdrop { background: rgba(7, 26, 51, .55); }
.popup__card {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 24px 64px rgba(7, 26, 51, .3);
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s ease, transform .2s ease;
}
.popup.is-open .popup__card { opacity: 1; transform: none; }
.popup__img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--surface-2); }
.popup__content { padding: var(--s-4); }
.popup__label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald); margin-bottom: var(--s-1); }
.popup__title { font-size: 1.5rem; line-height: 1.25; margin: 0 0 12px; padding-right: var(--s-4); }
.popup__body p { color: var(--muted); margin-bottom: 12px; }
.popup__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-3); }
.popup__close {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--navy); border: 1px solid var(--rule); border-radius: 50%; cursor: pointer;
}
.popup__close:hover { background: var(--white); border-color: var(--navy); }
.popup__close .icon { width: 18px; height: 18px; }
.popup__preview { font-size: .8125rem; background: #FEF7C3; color: #713B12; padding: 8px 12px; border-radius: var(--radius); margin-bottom: var(--s-2); }

/* Phones: a bottom sheet that leaves the page visible (Google penalises full-screen mobile interstitials). */
@media (max-width: 600px) {
  .popup[open] { align-items: flex-end; padding: 0; }
  .popup__card { max-width: none; max-height: 62vh; border-radius: 16px 16px 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom); }
  .popup.is-open .popup__card { transform: none; }
  .popup__card::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--rule-strong); margin: 10px auto 0; }
  .popup__img { aspect-ratio: 2 / 1; }
  .popup__content { padding: var(--s-2) var(--s-2) var(--s-3); }
  .popup__title { font-size: 1.25rem; }
  .popup__actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .popup__card, .popup::backdrop { transition: none; } }

/* ---------- Phone field with country code ---------- */
.tel { display: flex; align-items: stretch; background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--radius); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.tel:hover { border-color: #94A3B8; }
.tel:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 1px var(--emerald); }
.has-error .tel { border-color: var(--danger); }
.has-error .tel:focus-within { box-shadow: 0 0 0 1px var(--danger); }
.tel__country { position: relative; flex: none; display: flex; border-right: 1px solid var(--rule); }
.field .tel select, .field .tel input { border: 0; box-shadow: none !important; border-radius: 0; background-color: transparent; }
.field .tel input { flex: 1; min-width: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.field .tel select { width: 128px; padding-right: 30px; background-position: right 10px center; }
.tel__display { display: none; }
/* With JavaScript: show a compact "🇳🇵 +977" label; the real <select> sits invisibly on top so the native picker still opens. */
.tel.is-enhanced .tel__display {
  display: flex; align-items: center; gap: 6px; padding: 0 30px 0 12px; min-height: 46px; white-space: nowrap;
  font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230B2545' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.tel.is-enhanced .tel__flag { font-size: 1.25rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.field .tel.is-enhanced select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.tel.is-enhanced .tel__country:has(select:focus-visible) .tel__display { outline: 2px solid var(--emerald); outline-offset: -2px; border-radius: var(--radius) 0 0 var(--radius); }
.tel.is-enhanced .tel__country:hover .tel__display { background-color: var(--surface); }
