/* Layout: an architect's sheet. A faint drawing grid, a school floor plan as the hero,
   content set in measured columns, and dark "title block" bands for figures and footer. */
/* Layout: clean white pages in FBC's navy and teal, photography-led sections,
   a school floor-plan drawing as the one illustrative signature. */
:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #F3F8FA;
  --ink: #14223D;
  --ink-soft: #4F5D72;
  --line: #D5DEE6;
  --line-soft: #E8EEF3;
  --lake: #137A93;
  --teal: #20A0BF;
  --lake-tint: #E4F4F8;
  --on-lake: #FFFFFF;
  --berry: #B03A52;
  --berry-tint: #FBEAEE;
  --band-bg: #FFFFFF;
  --band-fg: #14223D;
  --band-soft: #4F5D72;
  --band-line: #D5DEE6;
  --ok: #2E7D5B;

  --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);

  --wrap: 1160px;
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}

img, svg { max-width: 100%; }
a { color: var(--lake); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.005em; }
p { margin: 0; }
.prose { display: grid; gap: 1.1em; max-width: 64ch; }
.prose p { color: var(--ink); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 58ch; }
.muted { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lake);
}

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* ---------- Wrapper & bands ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }

.band { background: var(--band-bg); color: var(--band-fg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .figure-num { color: var(--ink); }
.band .figure-num small { color: var(--lake); }
.band .eyebrow { color: var(--lake) !important; }
.band h2, .band h3 { color: var(--band-fg); }
.band .eyebrow { color: var(--band-soft); }
.band .muted, .band .lead { color: var(--band-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; height: 46px; width: auto; max-width: none; }
.site-footer .brand-logo { height: 54px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark .bm-wall { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.brand-mark .bm-room { fill: var(--lake); }
.brand-mark .bm-line { stroke: var(--ink); stroke-width: 1.4; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-name span { font-weight: 500; }
.brand-sub { font-family: var(--font-display); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav a:hover { background: var(--line-soft); }
.nav a[aria-current="page"] { color: var(--lake); box-shadow: inset 0 -2px 0 var(--lake); border-radius: 0; }
.nav .btn { margin-left: 10px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  font: 600 0.9375rem var(--font-display);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle line { stroke: currentColor; stroke-width: 2; }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lake); padding-left: 14px; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #FFFFFF;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; background: var(--lake); border-color: var(--lake); }
.nav .btn { color: #FFFFFF; padding: 10px 16px; font-size: 0.9375rem; }
.nav .btn:hover { background: var(--lake); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: transparent; }
.band .btn-ghost { color: var(--band-fg); border-color: var(--band-line); }
.band .btn-ghost:hover { border-color: var(--band-fg); background: transparent; }
.btn svg { width: 16px; height: 16px; }
.btn path { fill: none; stroke: currentColor; stroke-width: 2; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Drawing grid ---------- */
.grid-bg { background: var(--paper); }

/* ---------- Home hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy h1 { max-width: 15ch; }
.quals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.qual {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 2px;
  color: var(--ink);
}
.plan-figure { margin: 0; min-width: 0; }
.plan-figure svg { display: block; width: 100%; height: auto; }
.plan-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* plan drawing */
.pl-wall { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: miter; }
.pl-room { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; }
.pl-heart { fill: var(--lake-tint); stroke: var(--lake); stroke-width: 1.6; }
.pl-sky { fill: none; stroke: var(--lake); stroke-width: 1; stroke-dasharray: 4 4; }
.pl-yard { fill: none; stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 5; }
.pl-door { fill: none; stroke: var(--ink-soft); stroke-width: 0.9; }
.pl-dim { stroke: var(--ink-soft); stroke-width: 0.9; fill: none; }
.pl-tree { fill: none; stroke: var(--ok); stroke-width: 1.1; }
.pl-label { font-family: var(--font-display); font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; fill: var(--ink-soft); }
.pl-label-strong { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; fill: var(--lake); }
.pl-scale-a { fill: var(--ink); }
.pl-scale-b { fill: var(--surface); stroke: var(--ink); stroke-width: 0.9; }
.pl-north { fill: var(--ink); }
.pl-erase { fill: var(--surface); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(48px, 7vw, 88px); display: grid; gap: 18px; }
.page-hero h1 { max-width: 20ch; }

/* ---------- Two-column intro ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 861px) { .sticky-head { position: sticky; top: calc(100px + env(safe-area-inset-top, 0px)); } }

/* ---------- Feature list (reasons) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.features.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 28px 32px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.features .feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
.features:not(.cols-2) .feature:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.features.cols-2 .feature:nth-child(2n+1) { padding-left: 0; border-left: 0; }
.feature p { color: var(--ink-soft); }
.feature-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lake);
}
@media (max-width: 900px) {
  .features, .features.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .features .feature, .features .feature + .feature { padding: 24px 0; border-left: 0; }
}

/* ---------- Figures band ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--band-line);
}
.figure {
  padding: 28px 28px 8px 0;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.figure + .figure { padding-left: 28px; border-left: 1px solid var(--band-line); }
.figure-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--band-fg);
}
.figure-num small { font-size: 0.45em; letter-spacing: 0; font-weight: 500; margin-left: 4px; color: var(--band-soft); }
.figure-label { color: var(--band-fg); font-size: 1rem; line-height: 1.5; }
.figure-src {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--band-soft);
}
@media (max-width: 760px) {
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figure, .figure + .figure { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--band-line); }
}

/* ---------- Project cards ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.project-sheet {
  position: relative;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  min-height: 132px;
  align-content: end;
}
.project-sheet .country {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.project-body { padding: 22px; display: grid; gap: 14px; align-content: start; }
.project-body p { color: var(--ink-soft); font-size: 1rem; }
.meta { display: grid; gap: 6px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.meta div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.9375rem; }
.meta dt { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.meta dd { margin: 0; text-align: right; font-family: var(--font-display); font-weight: 500; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  width: fit-content;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-soon { color: var(--berry); background: var(--berry-tint); }
.pill-partner { color: var(--lake); background: var(--lake-tint); }
.project-sheet .pill { position: absolute; top: 18px; right: 18px; }
@media (max-width: 960px) { .projects { grid-template-columns: minmax(0, 1fr); } }

/* project detail rows (projects page) */
.project-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.project-row > * { min-width: 0; }
.project-row .country { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.project-row h2 { font-size: var(--step-2); margin-bottom: 12px; }
.project-row .meta { margin: 0; padding-top: 0; border-top: 0; }
.project-row .meta div { padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
@media (max-width: 860px) { .project-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Lifecycle timeline ---------- */
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
.lifecycle li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  position: relative;
  padding-bottom: 36px;
}
.lifecycle li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
.lifecycle li::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  border-left: 1.5px dashed var(--line);
}
.lifecycle li:last-child { padding-bottom: 0; }
.lifecycle li:last-child::after { display: none; }
.lifecycle li:last-child::before { background: var(--lake); border-color: var(--lake); color: var(--on-lake); }
.lifecycle .step-body { display: grid; gap: 8px; padding-top: 8px; max-width: 70ch; }
.lifecycle .step-body p { color: var(--ink-soft); }
.lifecycle .phase { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lake); font-weight: 600; }

/* compact lifecycle (home) */
.steps-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
  counter-reset: s;
}
.steps-strip li {
  counter-increment: s;
  padding: 18px 14px 0 0;
  display: grid;
  gap: 8px;
  align-content: start;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3;
  position: relative;
  min-width: 0;
}
.steps-strip li::before {
  content: counter(s, decimal-leading-zero);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--lake);
  font-variant-numeric: tabular-nums;
}
.steps-strip li::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}
@media (max-width: 900px) {
  .steps-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; gap: 0 16px; }
  .steps-strip li { border-top: 1.5px solid var(--ink); padding-bottom: 18px; }
}

/* ---------- Models table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.models { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; }
.models th, .models td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.models thead th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  background: var(--paper);
}
.models tbody th { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.models tr:last-child th, .models tr:last-child td { border-bottom: 0; }
.models .group td { background: var(--lake-tint); font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lake); padding-block: 8px; }

/* model blocks */
.model-group { display: grid; gap: 20px; }
.model-group + .model-group { margin-top: clamp(48px, 6vw, 72px); }
.models-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.models-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.model {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.model p { color: var(--ink-soft); }
.model .fit { font-family: var(--font-display); font-size: 0.875rem; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line-soft); }
.model .fit b { color: var(--lake); font-weight: 600; }
@media (max-width: 900px) { .models-grid, .models-grid.three { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ops grid ---------- */
.ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.op { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; background: var(--surface); min-width: 0; }
.op p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 900px) { .ops { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sources note ---------- */
.sources { margin-top: 28px; font-size: 0.875rem; color: var(--ink-soft); max-width: 80ch; }
.band .sources { color: var(--band-soft); }

/* ---------- CTA band ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; }
.cta h2 { max-width: 22ch; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-list .k { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list .v { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { color: var(--ink); text-decoration-color: var(--line); }
.contact-list a:hover { color: var(--lake); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font-display);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  min-width: 0;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lake); outline-offset: 0; border-color: var(--lake); }
.field .err { font-family: var(--font-display); font-size: 0.8125rem; color: var(--berry); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--berry); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-note { font-size: 0.875rem; color: var(--ink-soft); max-width: 46ch; }
.form-status { font-family: var(--font-display); font-size: 0.9375rem; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.form-status.ok { border-color: var(--ok); color: var(--ink); }
.form-status.bad { border-color: var(--berry); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 64px 32px; background: var(--paper); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-grid > * { min-width: 0; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-h { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lake); margin-bottom: 14px; font-weight: 600; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--font-display); }
.foot-links a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.foot-links a:hover { text-decoration: underline; }
.foot-about { color: var(--ink-soft); max-width: 42ch; margin-top: 18px; font-size: 1rem; }
.foot-legal { display: grid; gap: 10px; padding-top: 24px; font-size: 0.8125rem; color: var(--ink-soft); }
.foot-legal p { max-width: 110ch; }

/* ---------- Photography ---------- */
.photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line-soft);
  max-width: 100%;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ar-43 { aspect-ratio: 4 / 3; }
.ar-32 { aspect-ratio: 3 / 2; }
.ar-45 { aspect-ratio: 4 / 5; }
.ar-169 { aspect-ratio: 16 / 9; }
.ar-21 { aspect-ratio: 2 / 1; }

/* home hero photo with badge */
.hero-visual { position: relative; min-width: 0; }
.hero-visual .photo { box-shadow: 0 24px 48px -28px rgba(16, 35, 58, 0.45); }
.hero-badge {
  position: absolute;
  left: -28px;
  bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  max-width: 250px;
  box-shadow: 0 12px 28px -16px rgba(16, 35, 58, 0.35);
}
.hero-badge strong { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.3; }
@media (max-width: 860px) {
  .hero-badge { position: static; max-width: none; margin-top: -1px; border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: none; }
  .hero-visual .photo { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 4 / 3; }
}

/* inner page hero with photo */
.page-hero.has-photo .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.page-hero.has-photo .hero-text { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 860px) { .page-hero.has-photo .wrap { grid-template-columns: minmax(0, 1fr); } }

/* stacked column (heading + photo) */
.stack { display: grid; gap: 28px; align-content: start; min-width: 0; }

/* feature with photo */
.feature .photo { margin-bottom: 6px; }

/* project card with photo */
.project-photo { position: relative; }
.project-photo .photo { border-radius: 0; }
.project-photo .pill { position: absolute; top: 14px; left: 14px; background: var(--surface); }
.project-photo .pill-soon { color: var(--berry); }
.project-photo .pill-partner { color: var(--lake); }
.project-body .country {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.project-body .title-block { display: grid; gap: 8px; }

/* project rows with photo */
.project-row.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.6fr); align-items: start; }
.project-row .row-title { display: grid; gap: 6px; margin-bottom: 8px; }
@media (max-width: 1000px) { .project-row.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .project-row.has-photo .meta { grid-column: 2; } }
@media (max-width: 700px) { .project-row.has-photo { grid-template-columns: minmax(0, 1fr); } .project-row.has-photo .meta { grid-column: auto; } }

/* photo strip */
.photo-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
.photo-strip .photo { height: 100%; min-height: 220px; }
@media (max-width: 760px) { .photo-strip { grid-template-columns: 1fr 1fr; } .photo-strip .photo:first-child { grid-column: 1 / -1; } .photo-strip .photo { min-height: 160px; } }

/* CTA with photo */
.cta.has-photo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.cta.has-photo .cta-text { display: grid; gap: 22px; }
@media (max-width: 860px) { .cta.has-photo { grid-template-columns: minmax(0, 1fr); } }

/* teal brand details */
.eyebrow { color: var(--lake); }
.steps-strip li::before { color: var(--lake); }
.lifecycle li:last-child::before { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.hero-copy h1 span, .page-hero h1 span { color: var(--teal); }

/* cut-out portrait on white (contact page) */
.cutout { margin: 0; display: flex; justify-content: center; align-items: flex-end; background: linear-gradient(180deg, #FFFFFF 0%, var(--tint) 100%); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.cutout img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom center; }

@media (max-width: 480px) { .brand-logo { height: 38px; } }

/* ---------- SEO-era components ---------- */
.hero-copy h1 { max-width: 18ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-display); font-size: 0.8125rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--lake); text-decoration: underline; }

.figures.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .figures.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figures.four .figure:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 760px) { .figures.four { grid-template-columns: minmax(0, 1fr); } }

.markets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.market { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color .15s ease, transform .15s ease; }
.market:hover { border-color: var(--lake); transform: translateY(-2px); }
.market .photo { border-radius: 0; }
.market-body { display: grid; gap: 6px; padding: 20px 22px 24px; }
.market-title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; letter-spacing: -0.015em; }
.market-title::after { content: " →"; color: var(--lake); }
@media (max-width: 760px) { .markets { grid-template-columns: minmax(0, 1fr); } }

.faq { display: grid; border-top: 1px solid var(--line); min-width: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--lake); flex: none; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }

.foot-grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.project-body h3.country { margin: 0; }

/* ---------- Dropdown menus ---------- */
.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > a { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 10px; height: 6px; flex: none; }
.caret path { fill: none; stroke: currentColor; stroke-width: 1.6; }
.sub {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 270px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 36px -18px rgba(20, 34, 61, 0.35);
  display: none;
  z-index: 60;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.sub a { display: block; padding: 10px 12px; white-space: normal; border-radius: 4px; }
.sub a:hover { background: var(--tint); color: var(--lake); }
@media (min-width: 1181px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
}
@media (max-width: 1240px) and (min-width: 1181px) { .nav a { padding: 8px 8px; font-size: 0.9rem; } }
@media (max-width: 1180px) {
  .has-sub { display: block; }
  .has-sub > a { display: flex; justify-content: space-between; }
  .caret { display: none; }
  .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; background: transparent; }
  .sub::before { display: none; }
  .sub a { padding: 10px 4px; font-size: 0.9375rem; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); border-radius: 0; }
}
.figures.cred { border-top: 1px solid var(--line); }
