/* Omuriro Biomass Investments: site styles */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colour: logo colours stay surfaces and markers; text is always ink */
  --ground: #efeee8;
  --paper: #ffffff;
  --ink: #141413;
  --ink-soft: #4b4a45;
  --ink-mute: #6a6861;
  --line: #d6d3c9;
  --night: #161614;
  --night-2: #23221f;
  --on-night: #efeee8;
  --on-night-soft: #b9b6ac;
  --orange: #f07517;
  --orange-hover: #ff8a2e;
  --amber: #ffab2f;
  --lime: #a3f10b;
  --green: #73e507;

  /* Type */
  --font: "Figtree", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --h1-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
  --figure-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);

  /* Space and shape (tweakable in phase 6) */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --section-pad: clamp(72px, 9vw, 136px);
  --radius-photo: clamp(18px, 2.6vw, 36px);
  --radius-ui: 999px;
  --hero-h: min(66svh, 620px);
  --hero-panel-w: min(600px, 100%);
  --hero-panel-pad: clamp(24px, 3.2vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: #b6b2a6 var(--ground);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--ink); }

img, picture { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible, .on-night:focus-visible { outline-color: var(--lime); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--radius-ui); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font); letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
/* Large logo at the top, smaller once the page scrolls; margin-bottom takes up the
   height the header loses, so the page below does not jump */
.site-header {
  --logo-h: 104px; --logo-h-scrolled: 60px;
  position: sticky; top: 0; z-index: 40; padding-block: 14px;
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), margin-bottom .3s var(--ease-out);
}
.site-header.is-scrolled { background: rgba(239, 238, 232, 0.94); box-shadow: 0 1px 0 var(--line); margin-bottom: calc(var(--logo-h) - var(--logo-h-scrolled)); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(239, 238, 232, 0.82); backdrop-filter: blur(12px) saturate(1.2); }
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: block; flex: none; }
.brand img { width: auto; height: var(--logo-h); transition: height .3s var(--ease-out); }
.site-header.is-scrolled .brand img { height: var(--logo-h-scrolled); }
.nav-pill {
  display: flex; align-items: center; gap: 4px;
  background: var(--night); color: var(--on-night);
  padding: 6px; border-radius: var(--radius-ui);
}
.nav-pill a {
  color: var(--on-night); text-decoration: none; font-size: 0.95rem; font-weight: 400;
  padding: 10px 14px; border-radius: var(--radius-ui);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.nav-pill a.nav-link:hover,
.nav-pill a.nav-link:focus-visible { background: var(--on-night); color: var(--ink); }
.nav-pill a.nav-link:active { background: #d9d6cc; color: var(--ink); }
.nav-pill a.nav-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.nav-pill a.nav-cta:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.nav-toggle .i-close { display: none; }
.menu-open .nav-toggle .i-open { display: none; }
.menu-open .nav-toggle .i-close { display: inline; }
.nav-pill a.nav-cta { background: var(--orange); color: var(--ink); font-weight: 600; padding-inline: 18px; }
.nav-pill a.nav-cta:hover { background: var(--orange-hover); }
.nav-toggle { display: none; }

@media (max-width: 1060px) {
  .nav-pill .nav-link { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: var(--radius-ui);
    background: var(--night-2); color: var(--on-night); cursor: pointer;
  }
  .nav-toggle { order: 9; }
  .nav-toggle svg { width: 20px; height: 20px; }
  .site-header.menu-open .nav-pill {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 8px);
    flex-direction: column; align-items: stretch; border-radius: 22px; padding: 10px;
    box-shadow: 0 18px 40px -12px rgba(0,0,0,.35);
  }
  .site-header.menu-open .nav-pill .nav-link { display: block; padding: 14px 16px; font-size: 1.05rem; }
  .site-header.menu-open .nav-pill .nav-cta { text-align: center; padding-block: 14px; margin-top: 6px; }
  .site-header.menu-open .nav-toggle { position: fixed; right: calc(var(--gutter) + 6px); top: var(--toggle-top, 24px); z-index: 41; }
}
@media (max-width: 560px) {
  .site-header { --logo-h: 72px; --logo-h-scrolled: 56px; }
  .nav-pill .nav-cta { display: none; }
  .site-header.menu-open .nav-pill .nav-cta { display: block; }
}

/* Hero */
.hero { padding-top: 8px; }
.hero-frame { position: relative; }
.hero-photo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-photo);
  height: var(--hero-h); min-height: 520px;
  background: #9aa58a;
}
/* Low laptop screens: a little less logo and photo, so the fact row stays in the first view */
@media (min-width: 901px) and (max-height: 820px) {
  .site-header { --logo-h: 88px; }
  .hero-photo { min-height: 496px; }
}
.hero-photo picture, .photo picture { width: 100%; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; }
.js .hero-photo img { animation: hero-settle 1.6s var(--ease-out) both; }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-panel {
  position: absolute; left: 0; bottom: 0;
  width: var(--hero-panel-w);
  background: var(--ground);
  padding: var(--hero-panel-pad) var(--hero-panel-pad) 0 0;
  border-top-right-radius: var(--radius-photo);
}
/* inverted corners where the panel meets the photo */
.hero-panel::before, .hero-panel::after {
  content: ""; position: absolute; width: var(--radius-photo); height: var(--radius-photo);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--radius-photo) - 0.5px), var(--ground) var(--radius-photo));
}
.hero-panel::before { left: 0; top: calc(-1 * var(--radius-photo)); }
.hero-panel::after { right: calc(-1 * var(--radius-photo)); bottom: 0; }
.hero h1 { font-size: var(--h1-size); letter-spacing: -0.035em; line-height: 1.02; max-width: 16ch; }
.hero-sub { margin-top: 20px; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 36ch; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--ink);
}
.fact { padding: 18px 20px 4px 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact dt { font-size: var(--step--1); color: var(--ink-mute); font-weight: 400; line-height: 1.35; }
.fact dd { margin: 6px 0 0; font-size: var(--figure-size); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fact dd small { display: block; margin-top: 6px; font-size: var(--step--1); font-weight: 400; letter-spacing: 0; color: var(--ink-soft); line-height: 1.35; }

@media (max-width: 900px) {
  .hero-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-panel { position: relative; width: auto; padding: 28px 0 0; border-radius: 0; }
  .hero-panel::before, .hero-panel::after { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .fact dd { font-size: 1.6rem; }
}

/* Sections */
.section { padding-block: var(--section-pad); }
.section-head { max-width: 760px; }
.section-head p { margin-top: 20px; font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.photo { overflow: hidden; border-radius: var(--radius-photo); background: #c9c4b6; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Two ground sections in a row share one gap instead of two */
.section.team + .section.faq, .section.faq + .section.contact { padding-top: calc(var(--section-pad) * 0.5); }
.section.team { padding-bottom: calc(var(--section-pad) * 0.5); }
.section.faq { padding-bottom: calc(var(--section-pad) * 0.5); }

/* Wood chips */
.chips-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.chips-copy p { max-width: 54ch; color: var(--ink-soft); }
.chips-copy h2 { margin-bottom: 28px; max-width: 14ch; }
.spec { margin: 36px 0 32px; border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-mute); font-size: var(--step--1); font-weight: 400; padding-top: 3px; }
.spec dd { margin: 0; font-weight: 600; }
.chips-media { position: relative; }
.chips-media .photo-main { aspect-ratio: 4 / 5; }
.chips-media .photo-inset {
  position: absolute; width: 46%; aspect-ratio: 1; left: -14%; bottom: -10%;
  border: 8px solid var(--ground);
  box-shadow: 0 24px 48px -24px rgba(20, 20, 19, 0.45);
}
@media (max-width: 900px) {
  .chips-grid { grid-template-columns: 1fr; }
  .chips-media { margin-bottom: 40px; }
  .chips-media .photo-main { aspect-ratio: 4 / 3; }
  .chips-media .photo-inset { left: auto; right: 6%; bottom: -12%; width: 38%; }
}
@media (max-width: 560px) {
  .spec div { grid-template-columns: 1fr; gap: 2px; }
}

/* NamPower (dark) */
.on-night { background: var(--night); color: var(--on-night); }
.nampower { border-radius: var(--radius-photo); margin-inline: clamp(0px, 1.2vw, 16px); }
.nampower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.nampower h2 { max-width: 16ch; }
.nampower .lede { margin-top: 28px; font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.015em; font-weight: 400; max-width: 26ch; }
.nampower .lede strong { color: var(--lime); font-weight: 600; }
.nampower p.body { margin-top: 24px; color: var(--on-night-soft); max-width: 52ch; }
.nampower .roles { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid #3a3934; }
.nampower .roles div { padding: 18px 20px 0 0; }
.nampower .roles div + div { padding-left: 20px; border-left: 1px solid #3a3934; }
.nampower .roles dt { font-weight: 600; }
.nampower .roles dd { margin: 6px 0 0; color: var(--on-night-soft); font-size: var(--step--1); line-height: 1.5; }
.nampower .photo { aspect-ratio: 4 / 5; background: var(--night-2); }
@media (max-width: 900px) {
  .nampower-grid { grid-template-columns: 1fr; }
  .nampower .photo { aspect-ratio: 4 / 3; order: -1; }
}
@media (max-width: 520px) {
  .nampower .roles { grid-template-columns: 1fr; }
  .nampower .roles div + div { padding-left: 0; border-left: 0; border-top: 1px solid #3a3934; margin-top: 18px; }
}

/* Harvesting process */
.process { margin-top: clamp(48px, 6vw, 80px); position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.process::before, .process::after {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line);
}
.process::after { background: var(--ink); transform: scaleX(var(--progress, 0)); transform-origin: 0 50%; transition: transform .2s linear; }
.step { position: relative; }
.step-num {
  position: relative; z-index: 1;
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ground); border: 2px solid var(--line); color: var(--ink-mute);
  font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), color .4s var(--ease-out);
}
.step.is-reached .step-num { background: var(--lime); border-color: var(--ink); color: var(--ink); }
.step .photo { margin-top: 24px; aspect-ratio: 4 / 3; border-radius: calc(var(--radius-photo) * 0.6); }
.step h3 { margin-top: 20px; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; }
.process-note { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px); padding-top: 32px; border-top: 1px solid var(--ink); }
.process-note .big { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.process-note p:not(.big) { color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 980px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process::before, .process::after { display: none; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .step .photo { aspect-ratio: 16 / 9; }
  .process-note { grid-template-columns: 1fr; }
}

/* Why bush */
.bush { padding-top: 0; }
.bush-banner { position: relative; border-radius: var(--radius-photo); overflow: hidden; min-height: clamp(420px, 56vw, 640px); display: flex; align-items: flex-end; }
.bush-banner picture, .bush-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bush-banner .bush-copy {
  position: relative; margin: clamp(16px, 3vw, 40px); max-width: 620px;
  background: var(--paper); border-radius: calc(var(--radius-photo) * 0.7);
  padding: clamp(24px, 3.4vw, 44px);
}
.bush-copy p { margin-top: 18px; color: var(--ink-soft); }
.bush-copy em { font-style: italic; }
.stats { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 18px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat dt { order: 2; margin-top: 6px; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.4; }
.stat dd { margin: 0; font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.stat { display: flex; flex-direction: column; }
.source { margin-top: clamp(32px, 4vw, 56px); font-size: var(--step--1); color: var(--ink-mute); max-width: 70ch; }
.source a { color: var(--ink-soft); }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }
}

/* Farmers (lime field) */
.farmers { background: var(--paper); border-radius: var(--radius-photo); margin-inline: clamp(0px, 1.2vw, 16px); }
.farmers h2::before { content: ""; display: block; width: 48px; height: 6px; border-radius: 3px; background: var(--lime); margin-bottom: 24px; }
.farmers-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.farmers h2 { max-width: 13ch; }
.farmers p { margin-top: 24px; font-size: var(--step-1); line-height: 1.5; max-width: 44ch; color: var(--ink-soft); }
.farmers .btn { margin-top: 32px; background: var(--ink); color: var(--paper); }
.farmers .btn svg { color: var(--lime); }
.farmers .btn:hover { background: #2b2b28; }
.farmers .photo { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .farmers-grid { grid-template-columns: 1fr; }
}

/* Team */
.team { padding-top: clamp(48px, 6vw, 88px); }
.team-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.person { display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: center; }
.person .portrait {
  width: 104px; aspect-ratio: 1; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.person .portrait img { width: 38%; height: auto; }
.person h3 { margin: 0; }
.person p { margin-top: 4px; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .people { grid-template-columns: 1fr; }
  .person { grid-template-columns: 80px 1fr; }
  .person .portrait { width: 80px; }
}

/* FAQ */
.faq { background: var(--ground); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 22px; height: 22px; flex: none; transition: transform .3s var(--ease-out); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--ink-soft); }
.faq-list .answer { padding: 0 48px 24px 0; color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact h2 { margin-bottom: 16px; }
.contact .intro { font-size: var(--step-1); color: var(--ink-soft); }
.form { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .opt { color: var(--ink-mute); font-weight: 400; }
.field input:not([type=radio]), .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid #cfcbbf; border-radius: 14px;
  padding: 14px 16px; min-height: 52px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6f6d66; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a9a598; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(163, 241, 11, 0.55); }
.field select {
  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='%23141413' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px;
}
.field .hint { font-size: var(--step--1); color: var(--ink-mute); }
.field-error { display: none; font-size: var(--step--1); color: #a8320a; font-weight: 600; }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a8320a; }

.who { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px; }
.who legend { margin-bottom: 10px; padding: 0; }
.who label {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px solid #cfcbbf; background: var(--paper); border-radius: var(--radius-ui);
  padding: 12px 18px; font-weight: 400;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.who input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.who label:has(input:checked) { border-color: var(--ink); background: #f7fbe9; }
.who label:hover { border-color: #a9a598; }
.field.has-error .who label { border-color: #a8320a; }
@media (max-width: 680px) {
  .who { grid-template-columns: 1fr; }
}

[data-for][hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-foot .privacy { font-size: var(--step--1); color: var(--ink-mute); max-width: 44ch; }
.form-status { grid-column: 1 / -1; font-size: 0.95rem; }
.form-status.is-error { color: #a8320a; font-weight: 600; }
#form-wrap.is-sent form { display: none; }
#form-success { margin-top: 36px; padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--radius-photo) * 0.7); background: var(--paper); }
#form-success h3::before { content: ""; display: block; width: 48px; height: 6px; border-radius: 3px; background: var(--lime); margin-bottom: 18px; }
#form-success:focus { outline: none; }
#form-success h3 { font-size: var(--step-2); }
#form-success p { margin-top: 10px; }

.contact-card { background: var(--paper); border-radius: calc(var(--radius-photo) * 0.7); padding: clamp(24px, 3vw, 40px); }
.contact-card h3 { font-size: var(--step-1); }
.contact-card address { font-style: normal; margin-top: 12px; color: var(--ink-soft); line-height: 1.6; }
.contact-card .lines { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.contact-card .lines a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: var(--step-1); }
.contact-card .lines a:hover { text-decoration: underline; }
.contact-card .lines svg { width: 20px; height: 20px; flex: none; }
.contact-card .people-mini { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 1rem; }
.contact-card .people-mini span { color: var(--ink-mute); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-brand img { height: 64px; width: auto; }
.footer-brand p { margin-top: 16px; color: var(--ink-soft); font-size: 0.95rem; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.95rem; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { margin-top: 40px; font-size: var(--step--1); color: var(--ink-mute); }

@media (prefers-reduced-motion: reduce) {
  .js .hero-photo img { animation: none; }
  .process::after { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* Legal pages */
.site-header:has(+ main.legal) { position: static; }
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal h1 { font-size: var(--step-3); }
.legal h2 { margin-top: 48px; font-size: var(--step-1); letter-spacing: -0.01em; }
.legal p { margin-top: 16px; color: var(--ink-soft); max-width: 62ch; }
.legal h1 + p { margin-top: 20px; }
