/* ==========================================================================
   Williamson Land Holdings, LLC — corporate site
   Design system derived from the firm's investor materials:
   deep navy, warm cream, copper accent.
   ========================================================================== */

/* ---------- Typefaces ----------
   Cabinet Grotesk (Shiva Nallaperumal) and Satoshi (Deni Anggara), Indian Type
   Foundry. Self-hosted variable WOFF2, unmodified, under the ITF Free Font
   Licence v2.0, which permits and recommends self-hosting:
   https://www.fontshare.com/licenses/itf-ffl
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../assets/CabinetGrotesk-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.04rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  --radius: 3px;
  --radius-lg: 5px;
  --measure: 66ch;
  --gutter: clamp(var(--space-5), 5vw, var(--space-16));
  --max: 1240px;
  --section-y: clamp(var(--space-16), 9vw, var(--space-32));

  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root, [data-theme='light'] {
  --color-bg: #f3f0ea;
  --color-surface: #faf8f4;
  --color-surface-offset: #e9e4d9;
  --color-border: #d7d1c4;
  --color-divider: #e2ddd2;

  --color-text: #14273a;
  --color-text-muted: #5b6a79;
  --color-text-faint: #8d99a4;
  --color-text-inverse: #f6f3ed;

  --color-ink: #112232;        /* deep navy panel */
  --color-ink-2: #1b3247;      /* raised navy */
  --color-ink-border: #2d4560;

  --color-primary: #b25c2b;
  --color-primary-hover: #8e4720;
  --color-accent-on-dark: #d98247;

  --shadow-sm: 0 1px 2px rgba(17, 34, 50, 0.06), 0 1px 8px rgba(17, 34, 50, 0.04);
  --shadow-md: 0 2px 4px rgba(17, 34, 50, 0.07), 0 12px 32px -8px rgba(17, 34, 50, 0.12);
}

[data-theme='dark'] {
  --color-bg: #0d1a26;
  --color-surface: #142534;
  --color-surface-offset: #1b3145;
  --color-border: #2c4359;
  --color-divider: #22384c;

  --color-text: #edeae2;
  --color-text-muted: #9fb0bf;
  --color-text-faint: #6f8494;
  --color-text-inverse: #112232;

  --color-ink: #091420;
  --color-ink-2: #142534;
  --color-ink-border: #2c4359;

  --color-primary: #e08c50;
  --color-primary-hover: #efa268;
  --color-accent-on-dark: #e08c50;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 14px 36px -10px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.62;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv01';
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3, h4 { font-weight: 700; letter-spacing: -0.012em; line-height: 1.2; }
p { text-wrap: pretty; }

/* ---------- Utilities ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
/* Avoid doubled vertical padding where two padded sections stack. */
.section + .section,
.section + .section--tight,
.section--tight + .section,
.section--tight + .section--tight { padding-top: 0; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-primary); color: #fff;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius);
}
.skip:focus { left: var(--space-4); top: var(--space-4); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.eyebrow--dark { color: var(--color-accent-on-dark); }
.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 58ch;
}
.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--space-4); }
.muted { color: var(--color-text-muted); }
.rule { height: 1px; background: var(--color-divider); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--ghost { border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-text); }
.btn--on-dark { border-color: rgba(255, 255, 255, 0.32); color: #f4f1ea; }
.btn--on-dark:hover { border-color: #f4f1ea; background: rgba(255, 255, 255, 0.07); }
.btn svg { flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--text-sm); font-weight: 700;
  color: var(--color-primary); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.header--scrolled { border-bottom-color: var(--color-divider); }
.header__inner {
  display: flex; align-items: center; gap: var(--space-6);
  min-height: 74px;
  max-width: 1440px; margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--color-text);
  margin-right: auto;
}
.brand__mark { width: auto; height: 40px; flex: none; }
.brand__mark--dark { display: none; }
[data-theme='dark'] .brand__mark--light { display: none; }
[data-theme='dark'] .brand__mark--dark { display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.25rem; letter-spacing: -0.012em; word-spacing: 0.1em;
  white-space: nowrap;
}
.brand__break { display: none; }
.brand__sub {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; white-space: nowrap;
  color: var(--color-text-faint);
}

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a {
  font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  white-space: nowrap;
  color: var(--color-text-muted); padding-block: 0.35rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav a:hover { color: var(--color-text); }
.nav a[aria-current='page'] { color: var(--color-text); border-bottom-color: var(--color-primary); }

.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: none; border: 1px solid var(--color-border);
  border-radius: var(--radius); cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-text); }
.theme-toggle svg { width: 17px; height: 17px; }
[data-theme='dark'] .theme-toggle .i-sun,
:root:not([data-theme='dark']) .theme-toggle .i-moon { display: none; }

.menu-btn { display: none; }
.header__cta { white-space: nowrap; }

/* Small-laptop band: nav and CTA are still visible but space is tight,
   so step the brand lockup down rather than let anything wrap. */
@media (max-width: 1180px) and (min-width: 961px) {
  .header__inner { gap: 1rem; }
  .nav { gap: 1.05rem; }
  .brand { gap: 0.55rem; }
  .brand__mark { height: clamp(28px, calc(28px + 6 * (100vw - 961px) / 219), 34px); }
  .brand__name { font-size: clamp(0.8125rem, calc(0.8125rem + 4 * (100vw - 961px) / 219), 1.0625rem); }
  .brand__sub { font-size: 0.5625rem; letter-spacing: 0.1em; }
  .header__cta { padding-inline: 0.95rem; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-2) var(--gutter) var(--space-6);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open='true'] { display: flex; }
  .nav a {
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--color-divider);
    font-size: var(--text-base);
  }
  .nav a[aria-current='page'] { border-bottom-color: var(--color-primary); }
  .menu-btn {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    background: none; border: 1px solid var(--color-border);
    border-radius: var(--radius); cursor: pointer; color: var(--color-text-muted);
  }
  .header__cta { display: none; }
}
@media (max-width: 520px) { .brand__sub { display: none; } }

/* Phones: the hamburger and theme button are fixed width, so the lockup can
   scale smoothly with the viewport instead of jumping at breakpoints. */
@media (max-width: 520px) and (min-width: 366px) {
  .brand { gap: 0.55rem; }
  .brand__mark { height: clamp(28px, calc(28px + 8 * (100vw - 366px) / 154), 36px); }
  .brand__name {
    font-size: clamp(0.875rem, calc(0.875rem + 5 * (100vw - 366px) / 154), 1.1875rem);
    letter-spacing: -0.014em; word-spacing: 0.05em;
  }
}
/* Narrow phones: stack the name into a deliberate two-line lockup rather than
   shrinking it to an unreadable size or letting it collide with the controls. */
@media (max-width: 365px) {
  .brand { gap: 0.5rem; }
  .brand__mark { height: 32px; }
  .brand__break { display: inline; }
  .brand__name { white-space: normal; font-size: 1rem; line-height: 1.1; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--color-ink); color: #f4f1ea; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(9, 20, 32, 0.94) 0%, rgba(9, 20, 32, 0.78) 45%, rgba(9, 20, 32, 0.42) 100%),
    linear-gradient(to top, rgba(9, 20, 32, 0.9) 0%, rgba(9, 20, 32, 0) 55%);
}
.hero__inner {
  position: relative;
  max-width: 1440px; margin-inline: auto;
  padding: clamp(var(--space-20), 13vw, var(--space-32)) var(--gutter) clamp(var(--space-12), 7vw, var(--space-20));
}
.hero__accent { width: 56px; height: 3px; background: var(--color-accent-on-dark); margin-bottom: var(--space-6); }
.hero h1 { font-size: var(--text-3xl); max-width: 20ch; color: #fdfcf9; }
.hero__lede {
  font-size: var(--text-lg); line-height: 1.5;
  color: rgba(238, 235, 227, 0.82);
  max-width: 54ch; margin-top: var(--space-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.hero__stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero__stats > div {
  padding: var(--space-6) var(--space-6) var(--space-6) 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.hero__stats > div:last-child { border-right: 0; }
.hero__stats > div + div { padding-left: var(--space-6); }
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  letter-spacing: -0.02em; color: #fdfcf9;
}
.stat__label {
  font-size: var(--text-xs); color: rgba(238, 235, 227, 0.62);
  margin-top: 0.3rem; line-height: 1.4;
}
@media (max-width: 780px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats > div:nth-child(2n) { border-right: 0; }
  .hero__stats > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
}

/* Interior page header */
.pagehead { background: var(--color-ink); color: #f4f1ea; }
.pagehead__inner {
  max-width: 1440px; margin-inline: auto;
  padding: clamp(var(--space-16), 9vw, var(--space-24)) var(--gutter) clamp(var(--space-12), 6vw, var(--space-16));
}
.pagehead h1 { font-size: var(--text-2xl); max-width: 24ch; color: #fdfcf9; }
.pagehead p {
  font-size: var(--text-lg); line-height: 1.5;
  color: rgba(238, 235, 227, 0.8); max-width: 60ch; margin-top: var(--space-5);
}

/* ---------- Section headers ---------- */
.sechead { max-width: 62ch; margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.sechead h2 { font-size: var(--text-xl); }
.sechead p { margin-top: var(--space-4); color: var(--color-text-muted); }
.sechead--split {
  max-width: none;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-10) var(--space-16); align-items: end;
}
.sechead--split h2 { max-width: 22ch; }
.sechead--portrait {
  max-width: none;
  display: flex; align-items: center;
  gap: clamp(var(--space-5), 2.6vw, var(--space-8));
}
.sechead--portrait .sechead__text { min-width: 0; max-width: 70ch; }
.portrait {
  flex: 0 0 auto;
  width: 160px; height: 160px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface-offset);
}
@media (max-width: 640px) {
  .sechead--portrait { flex-direction: column; align-items: flex-start; gap: var(--space-6); }
  .portrait { width: 132px; height: 132px; }
}
.sechead--split p { margin-top: 0; }
@media (max-width: 820px) { .sechead--split { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6) var(--space-8);
  display: flex; flex-direction: column;
}
.card__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xs); letter-spacing: 0.12em;
  color: var(--color-primary); margin-bottom: var(--space-5);
}
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.card--dark {
  background: var(--color-ink); border-color: var(--color-ink-border); color: #eeebe3;
}
.card--dark h3 { color: #fdfcf9; }
.card--dark p { color: rgba(238, 235, 227, 0.74); }
.card--dark .card__num { color: var(--color-accent-on-dark); }

/* ---------- Project cards ---------- */
.projects { display: grid; gap: clamp(var(--space-8), 4vw, var(--space-12)); }
.project {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(var(--space-6), 4vw, var(--space-16));
  align-items: center;
}
.project--flip .project__media { order: 2; }
.project__media {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-offset);
}
.project__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project__status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--space-4);
}
.project__status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary);
}
.project h3 { font-size: var(--text-xl); }
.project__loc {
  font-size: var(--text-sm); color: var(--color-text-faint);
  margin-top: var(--space-2);
}
.project p.project__desc { margin-top: var(--space-5); color: var(--color-text-muted); }
.project__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6); padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.fact__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-lg); letter-spacing: -0.015em;
}
.fact__label { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 0.15rem; }
@media (max-width: 880px) {
  .project { grid-template-columns: 1fr; }
  .project--flip .project__media { order: 0; }
}

/* ---------- Split feature (image + dark panel) ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.split__media { position: relative; min-height: 340px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body {
  background: var(--color-ink); color: #eeebe3;
  padding: clamp(var(--space-10), 6vw, var(--space-24)) clamp(var(--space-6), 5vw, var(--space-20));
  display: flex; flex-direction: column; justify-content: center;
}
.split__body h2 { font-size: var(--text-xl); color: #fdfcf9; max-width: 24ch; }
.split__body p { color: rgba(238, 235, 227, 0.76); margin-top: var(--space-5); max-width: 46ch; }
.split__list { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; gap: var(--space-4); }
.split__list li {
  display: grid; grid-template-columns: 18px 1fr; gap: var(--space-3);
  font-size: var(--text-sm); color: rgba(238, 235, 227, 0.85);
}
.split__list svg { width: 15px; height: 15px; margin-top: 0.28rem; color: var(--color-accent-on-dark); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split__media { min-height: 260px; } }

/* ---------- Criteria table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 520px; }
table.data caption {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs); color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-border);
}
table.data th, table.data td { padding: var(--space-4) var(--space-5); text-align: left; }
table.data thead th {
  background: var(--color-ink); color: #f2efe8;
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
table.data tbody tr { border-top: 1px solid var(--color-divider); background: var(--color-surface); }
table.data tbody th { font-weight: 700; width: 38%; }
table.data td { color: var(--color-text-muted); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li {
  display: grid; grid-template-columns: 122px minmax(0, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.timeline li:last-child { border-bottom: 1px solid var(--color-divider); }
.timeline__when {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-sm); letter-spacing: 0.02em;
  color: var(--color-primary); padding-top: 0.15rem;
}
.timeline h3 { font-size: var(--text-base); font-weight: 700; font-family: var(--font-body); }
.timeline p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--color-ink); color: #f2efe8;
}
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.cta__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(9, 20, 32, 0.95) 20%, rgba(9, 20, 32, 0.6) 100%);
}
.cta__inner {
  position: relative; max-width: var(--max); margin-inline: auto;
  padding: clamp(var(--space-16), 8vw, var(--space-24)) var(--gutter);
}
.cta h2 { font-size: var(--text-xl); color: #fdfcf9; max-width: 26ch; }
.cta p { color: rgba(238, 235, 227, 0.78); margin-top: var(--space-5); max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 16%, transparent);
}
.field__hint { font-size: var(--text-xs); color: var(--color-text-faint); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: var(--text-xs); color: var(--color-text-faint); max-width: 52ch; }
.form__status {
  font-size: var(--text-sm); font-weight: 700;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  display: none;
}
.form__status[data-visible='true'] { display: block; }

.info-block { border-top: 1px solid var(--color-divider); padding-top: var(--space-5); margin-top: var(--space-8); }
.info-block:first-of-type { margin-top: 0; }
.info-block h3 { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-faint); font-family: var(--font-body); margin-bottom: var(--space-3); }
.info-block p, .info-block a { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; }
.info-block a:hover { color: var(--color-primary); }

/* ---------- Footer ---------- */
.footer { background: var(--color-ink); color: rgba(238, 235, 227, 0.7); }
.footer__inner {
  max-width: 1440px; margin-inline: auto; padding: var(--space-20) var(--gutter) var(--space-10);
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-10) var(--space-8);
}
.footer .brand { color: #fdfcf9; margin: 0; }
.footer .brand__mark--light { display: none; }
.footer .brand__mark--dark { display: block; }
.footer .brand__sub { color: rgba(238, 235, 227, 0.5); }
.footer__blurb { font-size: var(--text-sm); margin-top: var(--space-5); max-width: 36ch; }
.footer h4 {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(238, 235, 227, 0.5); margin-bottom: var(--space-4);
}
.footer ul { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.footer a { font-size: var(--text-sm); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: #fdfcf9; }
.footer__bar {
  max-width: 1440px; margin-inline: auto; padding: var(--space-6) var(--gutter) var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8);
  justify-content: space-between;
  font-size: var(--text-xs); color: rgba(238, 235, 227, 0.5);
}
.footer__bar p { max-width: 72ch; }
.footer__bar > p { flex: 0 1 34ch; }
.footer__legal { flex: 1 1 46ch; display: grid; gap: var(--space-3); max-width: 72ch; }
.footer__legal p { max-width: none; }
@media (max-width: 700px) { .footer__bar > p, .footer__legal { flex-basis: 100%; } }
@media (max-width: 980px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__inner { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ----------
   Content is visible by default. Only when JS confirms it can reveal again
   (html.js) do we hide it for the entry animation, so content can never be
   stranded invisible. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal[data-shown='true'] {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Leadership: stat row, competencies, experience, tags ---------- */
.statrow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6); margin-top: var(--space-10);
  border-top: 1px solid var(--color-border); padding-top: var(--space-7);
}
.statrow .stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-2xl); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--color-text);
}
.statrow .stat__label {
  margin-top: var(--space-2); font-size: var(--text-xs);
  color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.09em;
}
@media (max-width: 780px) { .statrow { grid-template-columns: 1fr 1fr; row-gap: var(--space-7); } }

.bio { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-12); align-items: start; }
.bio > div > p { font-size: var(--text-lg); line-height: 1.62; }
.bio > div > p + p { margin-top: var(--space-5); }
.bio__aside {
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface); padding: var(--space-7);
}
.bio__aside h3 {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--color-text-muted); font-weight: 700; margin-bottom: var(--space-4);
}
.bio__aside dl { display: grid; gap: var(--space-4); }
.bio__aside dt { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.05em; }
.bio__aside dd { font-weight: 600; font-size: var(--text-sm); }
@media (max-width: 900px) { .bio { grid-template-columns: 1fr; gap: var(--space-9); } }

.comp { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-8); }
.comp li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4) 0; border-top: 1px solid var(--color-border);
  font-weight: 600; font-size: var(--text-sm);
}
.comp li svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--color-primary); }
@media (max-width: 900px) { .comp { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .comp { grid-template-columns: 1fr; } }

.exp { list-style: none; display: grid; gap: 0; }
.exp > li {
  display: grid; grid-template-columns: 190px 1fr; gap: var(--space-8);
  padding: var(--space-8) 0; border-top: 1px solid var(--color-border);
}
.exp__when { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.07em; text-transform: uppercase; }
.exp__when strong { display: block; color: var(--color-primary); font-weight: 700; margin-bottom: var(--space-2); letter-spacing: 0.09em; }
.exp__role { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.015em; }
.exp__org { margin-top: var(--space-1); font-weight: 600; color: var(--color-text-muted); font-size: var(--text-sm); }
.exp__body { margin-top: var(--space-4); }
.exp ul.exp__pts { margin-top: var(--space-4); display: grid; gap: var(--space-3); list-style: none; }
.exp ul.exp__pts li {
  position: relative; padding-left: var(--space-6); font-size: var(--text-sm);
  color: var(--color-text-muted); line-height: 1.6;
}
.exp ul.exp__pts li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 12px; height: 1px; background: var(--color-primary);
}
.exp__projects { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--color-text-muted); }
.exp__projects span { color: var(--color-text); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-right: var(--space-2); }
@media (max-width: 780px) { .exp > li { grid-template-columns: 1fr; gap: var(--space-4); } }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-7); }
.tags li {
  border: 1px solid var(--color-border); border-radius: 999px;
  padding: 7px var(--space-4); font-size: var(--text-xs); font-weight: 600;
  background: var(--color-surface); color: var(--color-text-muted);
}

/* ---------- Site plan figure (The Wharf) ---------- */
.plan {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
  overflow: hidden;
}
.plan img {
  display: block; width: 100%; height: auto;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.plan figcaption {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs); color: var(--color-text-muted);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
}
.plan figcaption strong { color: var(--color-text); font-weight: 600; }
.plan-notes { margin-top: var(--space-12); align-items: start; }
.plan-notes .comp { grid-template-columns: 1fr; }
.plan a { display: block; }
