/* ==========================================================================
   HopeLink SACCO — site.css  (v2 design)
   Editorial type (Fraunces + Geist), warm paper & deep ink, brand teal/gold.
   Sections:
     1. Tokens        6. Header & menu     11. News & articles
     2. Base          7. Hero              12. Forms
     3. Layout        8. Page headers      13. Misc components
     4. Type          9. Cards & bento     14. Footer
     5. Buttons      10. Calculators       15. Motion & responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #0d221f;
  --ink-2: #133330;
  --ink-3: #1e4541;
  --paper: #f6f3ec;
  --paper-2: #ede7db;
  --white: #ffffff;
  --teal: #1d9187;
  --teal-deep: #0f5c55;
  --mint: #dbeee9;
  --gold: #f2b51d;
  --gold-deep: #c98f00;
  --gold-soft: #fbefc9;
  --red: #b8412c;
  --text: #13201e;
  --muted: #5d6a67;
  --muted-2: #8b9794;
  --line: rgba(13, 34, 31, 0.12);
  --line-strong: rgba(13, 34, 31, 0.22);
  --line-light: rgba(255, 255, 255, 0.14);

  --serif: 'Fraunces', 'Noto Sans Ethiopic', Georgia, serif;
  --sans: 'Geist', 'Inter', 'Noto Sans Ethiopic', system-ui, sans-serif;

  --fs-display: clamp(3rem, 1.6rem + 6vw, 7.2rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4vw, 5.2rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.4vw, 1.32rem);

  --container: 1320px;
  --gutter: clamp(1.1rem, 3.6vw, 2.75rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow: 0 1px 2px rgba(13, 34, 31, 0.04), 0 12px 40px -12px rgba(13, 34, 31, 0.18);
  --shadow-lg: 0 30px 80px -20px rgba(13, 34, 31, 0.35);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 84px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -80px; z-index: 1000; background: var(--ink); color: #fff; padding: 0.8rem 1.2rem; border-radius: var(--r-sm); transition: top 0.2s; }
.skip-link:focus { top: 1rem; }
[data-lucide] { width: 1.1em; height: 1.1em; stroke-width: 1.75; flex-shrink: 0; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.container--mid { max-width: 1080px; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--flush-top { padding-top: 0; }
.section--white { background: var(--white); }
.section--sand { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #dfe9e6; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .muted, .section--ink p { color: #a9bdb8; }
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split--top { align-items: start; }
.stack > * + * { margin-top: 1.1rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* 4. Type ------------------------------------------------------------------ */
h1, h2, h3, .serif {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.022em; line-height: 1.02; color: var(--ink);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.04; }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.012em; font-variation-settings: 'opsz' 48; }
h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: 300; color: var(--teal); }
.section--ink h1 em, .section--ink h2 em, .hero h1 em, .on-dark em { color: var(--gold); }
p { max-width: 64ch; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 52ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 181, 29, 0.22); }
.section--ink .eyebrow, .on-dark .eyebrow { color: var(--gold); }
.num { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }

.section-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { margin-top: 1rem; max-width: 16ch; }
.section-head > p, .section-head .side { color: var(--muted); justify-self: end; max-width: 44ch; }
.section-head .side { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--center h2 { max-width: 20ch; }
.section-head--center > p { justify-self: center; }

.prose { font-size: 1.08rem; line-height: 1.8; color: #2a3a37; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .rt-list { padding-left: 1.25rem; }
.prose li, .rt-list li { margin-bottom: 0.5rem; padding-left: 0.35rem; }
.prose li::marker, .rt-list li::marker { color: var(--teal); }
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  min-height: 52px; padding: 0 1.55rem; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 600; font-size: 0.97rem; letter-spacing: -0.005em; white-space: nowrap;
  border: 1.5px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn [data-lucide] { transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(13, 34, 31, 0.45); }
.btn:hover [data-lucide="arrow-right"], .btn:hover [data-lucide="arrow-up-right"] { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--gold { --bg: var(--gold); --fg: var(--ink); }
.btn--gold:hover { --bg: #ffc53a; }
.btn--teal { --bg: var(--teal); --fg: #fff; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; border-color: var(--ink); }
.btn--ghost-light { --bg: rgba(255, 255, 255, 0.06); --fg: #fff; border-color: rgba(255, 255, 255, 0.35); backdrop-filter: blur(8px); }
.btn--ghost-light:hover { --bg: #fff; --fg: var(--ink); border-color: #fff; }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px; transition: background-size 0.4s var(--ease), color 0.2s;
}
.link-arrow::after { content: '→'; transition: transform 0.35s var(--ease); }
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow:hover::after { transform: translateX(4px); }
.section--ink .link-arrow, .on-dark .link-arrow { color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; background: var(--mint); color: var(--teal-deep); white-space: nowrap;
}
.chip--gold { background: var(--gold-soft); color: #7a5600; }
.chip--ink { background: var(--ink); color: #fff; }
.chip--glass { background: rgba(255, 255, 255, 0.14); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.18); }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  padding: 0.6rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 0.9rem; font-weight: 600;
  color: var(--ink); transition: all 0.25s var(--ease); display: inline-flex; gap: 0.45rem; align-items: center;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-btn .count { font-size: 0.75rem; opacity: 0.6; }

/* 6. Header & menu --------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: 14px; transition: padding 0.4s var(--ease), transform 0.45s var(--ease); pointer-events: none; }
.site-header > * { pointer-events: auto; }
.nav-shell {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 64px; padding: 0 0.6rem 0 1.4rem; border-radius: 999px;
  background: rgba(246, 243, 236, 0.78); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(13, 34, 31, 0.08); box-shadow: 0 10px 30px -18px rgba(13, 34, 31, 0.35);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.site-header.is-hidden { transform: translateY(-120%); }
.site-header.is-over-dark:not(.is-scrolled) .nav-shell { background: rgba(13, 34, 31, 0.28); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.site-header.is-over-dark:not(.is-scrolled) .nav-link,
.site-header.is-over-dark:not(.is-scrolled) .menu-btn { color: #fff; }
.site-header.is-over-dark:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
.site-header.is-over-dark:not(.is-scrolled) .nav-cta .btn--ghost { --fg: #fff; border-color: rgba(255, 255, 255, 0.4); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; transition: filter 0.3s; }
.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.55rem 0.9rem; border-radius: 999px;
  font-size: 0.94rem; font-weight: 500; color: var(--ink); transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { background: rgba(13, 34, 31, 0.06); }
.site-header.is-over-dark:not(.is-scrolled) .nav-link:hover { background: rgba(255, 255, 255, 0.12); }
.nav-link[aria-current="page"] { font-weight: 600; }
.nav-link[aria-current="page"]::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-left: 0.2rem; }
.nav-link .caret { width: 14px; height: 14px; opacity: 0.6; transition: transform 0.3s var(--ease); }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(620px, 90vw); transform: translate(-50%, 8px);
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 0.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0.25s;
}
.mega::before { content: ''; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; gap: 0.85rem; padding: 0.8rem 0.9rem; border-radius: var(--r-md); transition: background 0.2s; }
.mega a:hover { background: var(--paper); }
.mega .mi { width: 38px; height: 38px; border-radius: 12px; background: var(--mint); color: var(--teal-deep); display: grid; place-items: center; flex-shrink: 0; }
.mega .mi [data-lucide] { width: 18px; height: 18px; }
.mega strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.mega small { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.4; margin-top: 0.1rem; }
.mega .mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 0.3rem; padding: 0.9rem 1rem; border-radius: var(--r-md); background: var(--ink); color: #fff; font-size: 0.88rem; }
.mega .mega-foot:hover { background: var(--ink-2); }
.nav-cta { display: flex; align-items: center; gap: 0.5rem; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; color: var(--ink); }
.menu-btn span { display: block; width: 20px; height: 1.8px; background: currentColor; border-radius: 2px; position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 100%; height: 100%; background: currentColor; border-radius: 2px; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }

.menu-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: 1.2rem var(--gutter) 2rem; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 44px); visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0.7s;
}
.menu-overlay.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.menu-top img { height: 28px; filter: brightness(0) invert(1); }
.menu-close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; }
.menu-links { margin: 2.5rem 0; display: flex; flex-direction: column; }
.menu-links a { font-family: var(--serif); font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.2; padding: 0.35rem 0; border-bottom: 1px solid var(--line-light); display: flex; justify-content: space-between; align-items: center; }
.menu-links a small { font-family: var(--sans); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.12em; }
.menu-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; margin-bottom: 2rem; }
.menu-sub a { color: #b8cbc6; font-size: 0.98rem; }
.menu-sub a:hover { color: #fff; }
.menu-overlay .btn-row { flex-direction: column; align-items: stretch; }
.menu-overlay .btn-row .btn { width: 100%; }

/* 7. Hero (home) ----------------------------------------------------------- */
.hero { position: relative; min-height: max(680px, 100svh); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 34, 31, 0.55) 0%, rgba(13, 34, 31, 0.1) 30%, rgba(13, 34, 31, 0.35) 55%, rgba(13, 34, 31, 0.94) 100%),
    linear-gradient(90deg, rgba(13, 34, 31, 0.55) 0%, rgba(13, 34, 31, 0) 60%);
}
.hero-inner { width: 100%; padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.hero h1 { color: #fff; font-size: var(--fs-display); line-height: 0.95; letter-spacing: -0.035em; max-width: 11ch; }
.hero h1 em { font-weight: 300; }
.hero .lead { color: rgba(255, 255, 255, 0.82); margin-top: 1.6rem; max-width: 46ch; }
.hero .btn-row { margin-top: 2.2rem; }
.hero-tag { margin-bottom: 1.6rem; }
.quick-panel {
  width: 340px; background: rgba(246, 243, 236, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--r-lg);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); padding: 0.6rem;
}
.quick-panel .qp-title { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); padding: 0.8rem 0.9rem 0.5rem; }
.quick-panel a { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 0.9rem; border-radius: var(--r-md); transition: background 0.25s; }
.quick-panel a:hover { background: rgba(255, 255, 255, 0.1); }
.quick-panel a + a { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.quick-panel .qi { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); flex-shrink: 0; }
.quick-panel a:first-of-type .qi { background: var(--gold); color: var(--ink); }
.quick-panel strong { display: block; font-weight: 600; font-size: 0.98rem; }
.quick-panel small { display: block; color: rgba(255, 255, 255, 0.65); font-size: 0.82rem; }
.quick-panel .go { margin-left: auto; opacity: 0.6; transition: transform 0.3s var(--ease), opacity 0.3s; }
.quick-panel a:hover .go { transform: translate(3px, -3px); opacity: 1; }
.hero-foot { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.hero-foot .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.hero-foot .scroll-cue { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-foot .scroll-cue i { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* Ticker */
.ticker { background: var(--gold); color: var(--ink); overflow: hidden; border-block: 1px solid rgba(13, 34, 31, 0.15); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 1.2rem; padding: 1.05rem 1.6rem; font-family: var(--serif); font-size: 1.25rem; font-style: italic; white-space: nowrap; }
.ticker-item::after { content: '✦'; font-style: normal; font-size: 0.85rem; opacity: 0.55; margin-left: 1.6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 2.2rem 1.5rem 0 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat .num { font-size: clamp(2.6rem, 1.8rem + 3vw, 4.6rem); line-height: 1; color: var(--ink); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 0.1em; }
.stat .num small { font-size: 0.45em; color: var(--teal); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.stat .label { margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; }

/* 8. Page headers ---------------------------------------------------------- */
.page-header { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; }
.page-header--compact { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: 0.4; }
.page-header-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem 5rem; align-items: end; }
.page-header h1 { margin-top: 1.2rem; max-width: 15ch; }
.page-header .lead { justify-self: end; }
.page-header .btn-row { margin-top: 1.6rem; }
.page-band { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 21 / 8; background: var(--ink); }
.page-band img { width: 100%; height: 100%; object-fit: cover; }
.page-band[data-parallax] img { height: 118%; margin-top: -9%; will-change: transform; }
.page-band .band-tag { position: absolute; left: 1.2rem; bottom: 1.2rem; }

/* 9. Cards, bento, lists --------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 2.5vw, 2.2rem);
  position: relative; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card--paper { background: var(--paper); }
.card--ink { background: var(--ink); color: #cfdfdb; border-color: transparent; }
.card--ink h3 { color: #fff; } .card--ink p { color: #a9bdb8; }
.icon-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--mint); color: var(--teal-deep); margin-bottom: 1.4rem; }
.icon-tile [data-lucide] { width: 24px; height: 24px; }
.icon-tile--gold { background: var(--gold-soft); color: #7a5600; }
.icon-tile--ink { background: var(--ink); color: var(--gold); }
.card-arrow { position: absolute; top: 1.4rem; right: 1.4rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all 0.4s var(--ease); }
a.card:hover .card-arrow { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-45deg); }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); gap: clamp(0.9rem, 1.6vw, 1.25rem); }
.bento > * { grid-column: span 4; }
.bento .b-wide { grid-column: span 8; }
.bento .b-tall { grid-row: span 2; }
.bento .b-half { grid-column: span 6; }
.photo-card { position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.5rem, 2.5vw, 2.2rem); isolation: isolate; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.photo-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 34, 31, 0) 25%, rgba(13, 34, 31, 0.88)); }
.photo-card:hover img { transform: scale(1.05); }
.photo-card h3 { color: #fff; }
.photo-card p { color: rgba(255, 255, 255, 0.8); }
.photo-card .chip { position: absolute; top: 1.3rem; left: 1.3rem; }
.photo-card .card-arrow { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.photo-card:hover .card-arrow { background: #fff; color: var(--ink); transform: rotate(-45deg); }

.check-list { display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--text); }
.check-list li::before {
  content: ''; flex-shrink: 0; width: 22px; height: 22px; margin-top: 0.15rem; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5c55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--ink .check-list li, .card--ink .check-list li { color: #dfe9e6; }
.section--ink .check-list li::before, .card--ink .check-list li::before { background-color: rgba(242, 181, 29, 0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b51d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.media-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: 5 / 4; }
.media-note {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; background: rgba(246, 243, 236, 0.92); backdrop-filter: blur(12px);
  border-radius: var(--r-md); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; color: var(--ink);
}
.media-note .num { font-size: 2.2rem; line-height: 1; }
.media-note small { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }

/* Numbered reasons (sticky head) */
.sticky-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.sticky-split .sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
.reasons { counter-reset: r; border-top: 1px solid var(--line); }
.reason { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); counter-increment: r; transition: padding 0.4s var(--ease); }
.reason::before { content: counter(r, decimal-leading-zero); font-family: var(--serif); font-size: 1.15rem; color: var(--teal); padding-top: 0.1rem; }
.reason h4 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; letter-spacing: -0.015em; }
.reason p { color: var(--muted); margin-top: 0.3rem; font-size: 0.98rem; }
.reason:hover { padding-left: 0.6rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 1.25rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.step { position: relative; }
.step .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); position: relative; z-index: 1; transition: all 0.4s var(--ease); }
.section--white .step .dot { background: #fff; }
.step:hover .dot { background: var(--gold); border-color: var(--gold); }
.step h4 { margin-top: 1.3rem; font-size: 1.05rem; }
.step p { color: var(--muted); margin-top: 0.4rem; font-size: 0.95rem; }
.section--ink .step .dot { background: var(--ink-2); border-color: var(--line-light); color: #fff; }
.section--ink .steps::before { background: repeating-linear-gradient(90deg, var(--line-light) 0 6px, transparent 6px 12px); }

/* Accordion (native details) */
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.45rem 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); letter-spacing: -0.01em; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .pm { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: all 0.35s var(--ease); }
.acc summary .pm::before, .acc summary .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.35s var(--ease); }
.acc summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] summary .pm { background: var(--ink); color: #fff; border-color: var(--ink); }
.acc[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.acc .acc-body { padding: 0 3.5rem 1.6rem 0; color: var(--muted); }
.acc summary:hover { color: var(--teal-deep); }

/* Tabs */
.tab-list { display: flex; gap: 0.4rem; flex-wrap: wrap; padding: 0.35rem; border-radius: 999px; background: var(--paper-2); width: fit-content; }
.tab-btn { padding: 0.7rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--muted); transition: all 0.3s var(--ease); }
.tab-btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 10px -4px rgba(13, 34, 31, 0.25); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp 0.5s var(--ease); }

/* Rows (loan types, documents) */
.rows { border-top: 1px solid var(--line); }
.row-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 2rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); transition: padding 0.35s var(--ease); }
.row-item:hover { padding-inline: 0.8rem; }
.row-item h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem); letter-spacing: -0.012em; }
.row-item .meta { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; margin-top: 0.25rem; }
.row-item .row-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--teal-deep); display: grid; place-items: center; }
.row-item--icon { grid-template-columns: auto 1fr auto; }

/* People */
.person { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.person-photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--mint), var(--paper-2)); display: grid; place-items: center; overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.person:hover .person-photo img { transform: scale(1.04); }
.person-photo .initials { font-family: var(--serif); font-size: 3.4rem; color: var(--teal-deep); opacity: 0.5; }
.person-body { padding: 1.3rem 1.4rem 1.5rem; }
.person-body h3 { font-size: 1.35rem; }
.person-role { color: var(--teal-deep); font-weight: 600; font-size: 0.88rem; margin-top: 0.3rem; }
.person-body p { color: var(--muted); font-size: 0.92rem; margin-top: 0.7rem; }
.person-body .li { margin-top: 0.9rem; display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; font-weight: 600; }

/* Quote */
.quote-slider { position: relative; }
.quote { display: none; }
.quote.is-active { display: block; animation: fadeUp 0.7s var(--ease); }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.3rem); line-height: 1.15; letter-spacing: -0.02em; color: #fff; font-weight: 300; max-width: 26ch; }
.quote blockquote::before { content: '“'; display: block; font-size: 1.6em; line-height: 0.6; color: var(--gold); margin-bottom: 0.2em; }
.quote figcaption { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.quote .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.quote .who strong { display: block; color: #fff; }
.quote .who span { color: #a9bdb8; font-size: 0.9rem; }
.slider-controls { display: flex; gap: 0.6rem; align-items: center; }
.slider-controls button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; color: #fff; transition: all 0.3s; }
.slider-controls button:hover { background: #fff; color: var(--ink); }
.slider-count { font-family: var(--serif); color: #a9bdb8; margin-left: 0.8rem; }

/* CTA panel */
.cta-panel { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 5.5rem); isolation: isolate; }
.cta-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.55; }
.cta-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, var(--ink) 15%, rgba(13, 34, 31, 0.75) 55%, rgba(13, 34, 31, 0.2)); }
.cta-panel h2 { color: #fff; max-width: 14ch; }
.cta-panel p { color: rgba(255, 255, 255, 0.78); margin-top: 1.2rem; max-width: 46ch; }
.cta-panel .btn-row { margin-top: 2.2rem; }

/* 10. Calculators ----------------------------------------------------------- */
.calc { display: grid; grid-template-columns: 1.1fr 0.9fr; border-radius: var(--r-xl); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-light); }
.calc-inputs { padding: clamp(1.8rem, 4vw, 3.2rem); display: grid; gap: 2rem; }
.calc-result { padding: clamp(1.8rem, 4vw, 3.2rem); background: var(--gold); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.calc-result .big { font-family: var(--serif); font-size: clamp(2.8rem, 2rem + 3vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
.calc-result .big small { font-size: 0.35em; font-family: var(--sans); font-weight: 600; letter-spacing: 0; margin-right: 0.3rem; }
.calc-result .label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.6rem; }
.calc-breakdown { display: grid; gap: 0.7rem; border-top: 1px solid rgba(13, 34, 31, 0.2); padding-top: 1.3rem; }
.calc-breakdown div { display: flex; justify-content: space-between; font-size: 0.95rem; }
.calc-breakdown strong { font-variant-numeric: tabular-nums; }
.calc-bar { height: 10px; border-radius: 99px; background: rgba(13, 34, 31, 0.15); overflow: hidden; display: flex; }
.calc-bar span { display: block; height: 100%; background: var(--ink); transition: width 0.5s var(--ease); }
.calc-bar span + span { background: var(--teal-deep); opacity: 0.55; }
.calc-note { font-size: 0.8rem; opacity: 0.7; }
.range-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: #b8cbc6; font-size: 0.9rem; margin-bottom: 0.9rem; }
.range-field output { font-family: var(--serif); font-size: 1.7rem; color: #fff; letter-spacing: -0.02em; }
.range-field--light label { color: var(--muted); }
.range-field--light output { color: var(--ink); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--gold) var(--p, 50%), rgba(255, 255, 255, 0.15) var(--p, 50%)); outline: none; }
.range-field--light input[type="range"] { background: linear-gradient(90deg, var(--teal) var(--p, 50%), var(--paper-2) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--gold); cursor: grab; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--gold); cursor: grab; }
.range-field--light input[type="range"]::-webkit-slider-thumb { border-color: var(--teal); }
.range-field--light input[type="range"]::-moz-range-thumb { border-color: var(--teal); }
.range-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: #7f9792; margin-top: 0.5rem; }
.range-field--light .range-scale { color: var(--muted-2); }
.seg { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.seg button { padding: 0.5rem 0.9rem; border-radius: 99px; border: 1px solid var(--line-light); color: #cfdfdb; font-size: 0.85rem; font-weight: 600; }
.seg button.is-active { background: #fff; color: var(--ink); border-color: #fff; }

.receipt { background: #fff; border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); position: relative; }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 10px -2px, transparent 10px, #fff 10.5px) -10px 0 / 20px 10px repeat-x; }
.receipt-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px dashed var(--line-strong); font-size: 0.98rem; }
.receipt-line span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1.2rem; }
.receipt-total .num { font-size: 2.4rem; color: var(--ink); letter-spacing: -0.02em; }

/* 11. News & articles ------------------------------------------------------ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.news-grid--feature { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
.news-grid--feature .post:first-child { grid-row: span 2; }
.news-grid--feature .post:first-child .post-img { aspect-ratio: 4 / 3.4; }
.news-grid--feature .post:first-child h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.news-grid--feature .post:not(:first-child) { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.3rem; align-items: center; }
.news-grid--feature .post:not(:first-child) .post-img { aspect-ratio: 1 / 1; }
.news-grid--feature .post:not(:first-child) .chip { display: none; }
.news-grid--feature .post:nth-child(2) { align-self: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.news-grid--feature .post:nth-child(3) { align-self: start; }
.post { display: flex; flex-direction: column; gap: 1.1rem; }
.post-img { display: block; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post-img img { transform: scale(1.05); }
.post-img .chip { position: absolute; top: 1rem; left: 1rem; }
.post-meta { display: flex; gap: 0.6rem; align-items: center; font-size: 0.85rem; color: var(--muted); }
.post-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.post h3 a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 95%; transition: background-size 0.5s var(--ease); }
.post:hover h3 a { background-size: 100% 1px; }
.post p { color: var(--muted); font-size: 0.97rem; }
.pager { display: flex; justify-content: center; gap: 0.4rem; margin-top: 4rem; }
.pager a, .pager span { min-width: 46px; height: 46px; padding: 0 0.6rem; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.92rem; transition: all 0.25s; }
.pager a:hover { border-color: var(--ink); }
.pager span.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.search-bar { display: flex; align-items: center; gap: 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.35rem 0.35rem 1.2rem; min-width: min(420px, 100%); }
.search-bar input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; padding: 0.5rem 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 3rem; }

.article-hero { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 8; background: var(--paper-2); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 3rem; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.5rem; font-size: 0.9rem; }
.article-aside .label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.35rem; }
.share { display: flex; gap: 0.5rem; }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all 0.3s; }
.share a:hover, .share button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.article-lead { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.4; color: var(--ink); font-weight: 300; margin-bottom: 2rem; letter-spacing: -0.01em; }
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); z-index: 150; width: 0; }

/* 12. Forms ----------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form-grid .full, .form-field.full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.form-field .req, .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea, .input {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font-size: 1rem; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.form-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d221f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.6rem; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--line-strong); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(29, 145, 135, 0.14); }
.form-field input:disabled { background: var(--paper); color: var(--muted); }
.form-field input[type="file"] { padding: 0.7rem; min-height: 0; background: var(--paper); border-style: dashed; cursor: pointer; }
.form-field small { font-size: 0.8rem; color: var(--muted); }
.field-error { display: none; font-size: 0.82rem; font-weight: 600; color: var(--red); }
.has-error .field-error, .field-error:not(:empty) { display: block; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); background: #fffafa; }
.check-field { display: flex; gap: 0.8rem; align-items: flex-start; grid-column: 1 / -1; padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); }
.check-field input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--teal); flex-shrink: 0; }
.check-field label { font-size: 0.95rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.choice span::before { content: ''; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); transition: all 0.2s; }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:checked + span::before { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d221f' stroke-width='4'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--gold); }
.choice input:focus-visible + span { outline: 2.5px solid var(--gold-deep); outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--gold-soft); color: #5c4100; padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.5rem; font-size: 0.95rem; }
.form-alert--error { background: #fbe7e2; color: var(--red); }

.form-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.form-nav { position: sticky; top: calc(var(--header-h) + 2rem); }
.form-nav ol { list-style: none; padding: 0; margin: 0; counter-reset: fs; border-left: 1px solid var(--line); }
.form-nav li { counter-increment: fs; }
.form-nav ol a { display: flex; gap: 0.8rem; padding: 0.6rem 0 0.6rem 1.2rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 0.92rem; transition: all 0.25s; }
.form-nav ol a::before { content: counter(fs, decimal-leading-zero); font-family: var(--serif); color: var(--muted-2); }
.form-nav ol a:hover { color: var(--ink); }
.form-nav ol a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--gold); }
.form-nav ol a.is-active::before { color: var(--teal); }
.form-nav .help { margin-top: 2rem; padding: 1.2rem; border-radius: var(--r-md); background: var(--ink); color: #cfdfdb; font-size: 0.88rem; }
.form-nav .help strong { color: #fff; display: block; margin-bottom: 0.3rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 3.2rem); }
.form-card .form-section-title ~ .form-section-title { margin-top: 3rem; padding-top: 2.6rem; border-top: 1px solid var(--line); }
.form-card .form-grid + .form-section-title { margin-top: 3rem; }
.form-section + .form-section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.form-section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin-bottom: 1.5rem !important; display: flex; align-items: baseline; gap: 0.8rem; }
.form-section-title .n { font-size: 0.9rem; font-family: var(--sans); font-weight: 600; color: var(--teal); letter-spacing: 0.08em; }
.form-submit { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form-submit p { font-size: 0.88rem; color: var(--muted); max-width: 42ch; }

.success-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(2rem, 6vw, 4.5rem); }
.success-card .seal { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.8rem; background: var(--gold); color: var(--ink); display: grid; place-items: center; animation: pop 0.7s var(--ease); }
.success-card .seal [data-lucide] { width: 38px; height: 38px; stroke-width: 2.2; }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.success-card p { margin-inline: auto; color: var(--muted); }
.ref-code { display: inline-block; margin: 1.2rem 0 1.4rem; font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: 0.01em; color: var(--ink); background: var(--paper); border: 1.5px dashed var(--line-strong); padding: 0.6rem 1.4rem; border-radius: 14px; }
.success-card .btn-row { justify-content: center; margin-top: 2rem; }

.status-card { border-radius: var(--r-lg); padding: 2rem; background: #fff; border: 1px solid var(--line); display: grid; gap: 1.5rem; }
.status-head { display: flex; align-items: center; gap: 1rem; }
.status-head .icon-tile { margin: 0; }
.status-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.status-steps div { padding-top: 0.8rem; border-top: 3px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.status-steps div.done { border-color: var(--teal); color: var(--ink); font-weight: 600; }
.status-steps div.fail { border-color: var(--red); color: var(--red); font-weight: 600; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; }
.kv dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.kv dd { font-weight: 600; margin-top: 0.15rem; }

/* 13. Misc components ------------------------------------------------------- */
.contact-tiles { display: grid; gap: 1rem; }
.contact-tile { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.contact-tile .icon-tile { width: 46px; height: 46px; margin: 0; border-radius: 14px; }
.contact-tile small { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.2rem; }
.contact-tile strong { font-weight: 600; color: var(--ink); }
.map-embed { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 7; background: var(--paper-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { border-radius: var(--r-xl); aspect-ratio: 16 / 6; display: grid; place-items: center; text-align: center; color: var(--muted); background: repeating-linear-gradient(135deg, var(--paper-2) 0 1px, transparent 1px 14px), var(--paper); border: 1px solid var(--line); padding: 2rem; }

.branch { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem; display: flex; flex-direction: column; gap: 0.8rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.branch:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.branch h3 { font-size: 1.45rem; }
.branch .b-line { display: flex; gap: 0.7rem; color: var(--muted); font-size: 0.95rem; }
.branch .b-line [data-lucide] { margin-top: 0.3rem; color: var(--teal); }
.branch .link-arrow { margin-top: auto; padding-top: 0.6rem; }

.job { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; padding: 1.8rem 2rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: all 0.4s var(--ease); }
.job:hover { border-color: var(--ink); }
.job h3 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.8rem); }
.job .meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.job-apply { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.empty-state { text-align: center; padding: clamp(3rem, 6vw, 5rem) 1.5rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-xl); color: var(--muted); }
.empty-state [data-lucide] { width: 40px; height: 40px; color: var(--teal); margin: 0 auto 1rem; }
.empty-state p { margin: 0 auto 1.2rem; }

.phone { width: min(320px, 100%); margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 46px; background: #0a1a18; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08); position: relative; }
.phone-screen { height: 100%; border-radius: 36px; background: linear-gradient(170deg, #173d38, #0d221f 60%); padding: 3rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; color: #fff; overflow: hidden; }
.phone-screen::before { content: ''; position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 99px; background: #0a1a18; }
.phone-card { border-radius: 20px; padding: 1.1rem; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.82rem; }
.phone-card.gold { background: var(--gold); color: var(--ink); border: 0; }
.phone-card .big { font-family: var(--serif); font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.1; margin-top: 0.3rem; }
.phone-row { display: flex; justify-content: space-between; align-items: center; }

.doc-row .row-icon { background: var(--paper-2); color: var(--ink); }

.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.credit { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.credit img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.credit figcaption { padding: 1rem 1.2rem 1.2rem; font-size: 0.85rem; color: var(--muted); }
.credit a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }

.toast-stack { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 0.5rem; width: min(92vw, 420px); }
.toast { display: flex; gap: 0.7rem; align-items: center; padding: 0.95rem 1.2rem; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 0.95rem; opacity: 0; transform: translateY(12px); transition: all 0.4s var(--ease); }
.toast.is-visible { opacity: 1; transform: none; }
.toast [data-lucide], .toast svg { color: var(--gold); }

/* 14. Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #a9bdb8; padding-top: clamp(4rem, 8vw, 7rem); overflow: hidden; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem 5rem; padding-bottom: 4rem; border-bottom: 1px solid var(--line-light); }
.footer-intro h2 em { color: var(--gold); }
.footer-intro h2 { color: #fff; font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); max-width: 12ch; }
.footer-intro p { margin-top: 1.2rem; max-width: 38ch; }
.newsletter { margin-top: 2rem; display: flex; gap: 0.4rem; padding: 0.35rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-light); max-width: 440px; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; padding: 0 1rem; }
.newsletter input::placeholder { color: #7f9792; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-cols h5 { margin: 0 0 1.1rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-cols a { transition: color 0.2s; }
.footer-cols a:hover { color: #fff; }
.footer-cols address { font-style: normal; display: grid; gap: 0.6rem; }
.socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; color: #fff; transition: all 0.3s; }
.socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer-word { font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 2rem + 17vw, 17rem); line-height: 0.8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14); white-space: nowrap; margin: 2.5rem 0 -0.12em; user-select: none; text-align: center; }
.footer-word em { font-style: italic; -webkit-text-stroke: 1px rgba(242, 181, 29, 0.45); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.6rem; border-top: 1px solid var(--line-light); font-size: 0.85rem; position: relative; background: var(--ink); }
.footer-bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* 15. Motion & responsive ---------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 0.06s + 0.15s); }
.js .split-words.is-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .split-words .w > span { transform: none; }
  .ticker-track { animation: none; }
}

@media (max-width: 1180px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; grid-auto-flow: column; justify-content: start; gap: 2.5rem; order: -1; }
  .article-layout > .article-aside:last-child { display: none; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .quick-panel { width: 100%; max-width: 520px; }
  .bento > *, .bento .b-wide, .bento .b-half { grid-column: span 6; }
  .footer-top { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .sticky-split, .form-layout { grid-template-columns: 1fr; }
  .sticky-split .sticky { position: static; }
  .form-nav { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .steps::before { display: none; }
  .job-layout { grid-template-columns: 1fr; }
  .job-apply { position: static; }
}
@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .split, .split--wide-left, .section-head, .page-header-grid { grid-template-columns: 1fr; }
  .section-head > p, .section-head .side, .page-header .lead { justify-self: start; }
  .g-3, .g-4, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .news-grid--feature { grid-template-columns: 1fr; }
  .news-grid--feature .post:first-child { grid-row: auto; }
  .page-band { aspect-ratio: 16 / 9; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .nav-cta .btn--gold { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .site-header { padding-top: 10px; }
  .nav-shell { height: 58px; padding-left: 1.1rem; }
  .g-2, .g-3, .g-4, .news-grid, .form-grid, .kv { grid-template-columns: 1fr; }
  .bento > *, .bento .b-wide, .bento .b-half { grid-column: span 12; }
  .bento { grid-auto-rows: minmax(220px, auto); }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 4rem); }
  .hero::after { background: linear-gradient(180deg, rgba(13, 34, 31, 0.55) 0%, rgba(13, 34, 31, 0.62) 30%, rgba(13, 34, 31, 0.9) 70%, rgba(13, 34, 31, 0.96) 100%); }
  .hero-foot .container span:first-child { display: none; }
  .btn-row .btn { flex: 1 1 auto; }
  .news-grid--feature .post:not(:first-child) { grid-template-columns: 1fr; }
  .news-grid--feature .post:not(:first-child) .post-img { aspect-ratio: 4 / 3; }
  .row-item, .row-item--icon, .job { grid-template-columns: 1fr; }
  .row-item .row-icon { display: none; }
  .acc .acc-body { padding-right: 0; }
  .form-submit .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .status-steps { grid-template-columns: 1fr; }
  .tab-list { width: 100%; border-radius: var(--r-md); }
  .tab-btn { flex: 1 1 auto; }
}

@media print {
  .site-header, .site-footer, .menu-overlay, .toast-stack, .form-nav, .ticker { display: none !important; }
  body { background: #fff; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* 16. Language ---------------------------------------------------------------- */
.lang-switch { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.8rem; font-weight: 600; }
.lang-switch a { padding: 0.32rem 0.6rem; border-radius: 999px; color: var(--muted); line-height: 1.1; transition: background 0.2s, color 0.2s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.site-header.is-over-dark:not(.is-scrolled) .lang-switch { border-color: rgba(255, 255, 255, 0.35); }
.site-header.is-over-dark:not(.is-scrolled) .lang-switch a { color: rgba(255, 255, 255, 0.75); }
.site-header.is-over-dark:not(.is-scrolled) .lang-switch a[aria-current] { background: #fff; color: var(--ink); }
.lang-switch--menu { border-color: var(--line-light); margin-bottom: 1.2rem; align-self: flex-start; font-size: 0.95rem; }
.lang-switch--menu a { color: #b8cbc6; padding: 0.55rem 1rem; }
.lang-switch--menu a[aria-current] { background: var(--gold); color: var(--ink); }
@media (max-width: 1180px) { .nav-cta .lang-switch { display: none; } }

/* Amharic: Ge'ez script has no italics and needs more vertical room */
html[lang="am"] h1, html[lang="am"] h2, html[lang="am"] h3, html[lang="am"] .serif, html[lang="am"] .reason h4,
html[lang="am"] .row-item h4, html[lang="am"] .acc summary, html[lang="am"] .quote blockquote, html[lang="am"] .menu-links a,
html[lang="am"] .article-lead, html[lang="am"] .ticker-item {
  font-family: 'Noto Serif Ethiopic', var(--serif); letter-spacing: 0; font-weight: 500;
}
html[lang="am"] h1 { line-height: 1.22; font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.2rem); }
html[lang="am"] .hero h1 { line-height: 1.15; font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5.4rem); max-width: 14ch; }
html[lang="am"] h2 { line-height: 1.25; font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); }
html[lang="am"] h3 { line-height: 1.35; }
html[lang="am"] h1 em, html[lang="am"] h2 em, html[lang="am"] h3 em, html[lang="am"] .ticker-item { font-style: normal; font-weight: 500; }
html[lang="am"] body, html[lang="am"] .lead, html[lang="am"] p { line-height: 1.8; }
html[lang="am"] .eyebrow { letter-spacing: 0.04em; }
html[lang="am"] .footer-word { font-family: var(--serif); }
.card--ink strong { color: #fff; }
.card--ink h3 em { color: var(--gold); }

/* Longer translations (e.g. Afaan Oromoo) must be able to wrap instead of widening layouts */
.hero-inner > *, .page-header-grid > *, .section-head > *, .split > *, .sticky-split > * { min-width: 0; }
.hero-tag, .chip { white-space: normal; text-align: left; }
.btn { white-space: normal; text-align: center; line-height: 1.25; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.footer-top > *, .footer-cols > * { min-width: 0; }
.footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-cols a, .footer-cols h5 { overflow-wrap: anywhere; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid > *, .bento > *, .news-grid > *, .form-grid > * { min-width: 0; }
