/* ==========================================================================
   Edelweiss Facility — Design System
   Concept: a site kept like a well-kept building. Quiet, precise, warm.
   One action colour (forest). Brass is decoration only — never on a CTA.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see assets/fonts/LICENSE.txt) --- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-wght.woff2") format("woff2");
  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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  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;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Colour */
  --paper: #f6f5ef;          /* canvas — never pure white */
  --white: #fffefa;          /* raised surfaces */
  --sage: #e7eee5;
  --ink: #13261e;
  --muted: #55635b;
  --forest: #173c30;         /* the ONE action colour */
  --forest-hover: #20503f;
  --forest-deep: #0f2a21;
  --brass: #c5a269;          /* decoration only */
  --brass-deep: #7c5e2c;     /* brass as small text on light */
  --brass-soft: #e3c797;     /* brass on forest */
  --line: rgb(19 38 30 / .11);
  --line-strong: rgb(19 38 30 / .2);
  --line-inverse: rgb(255 254 250 / .16);
  --focus: #976c34;

  /* Type */
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  /* Layout */
  --container: 77.5rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --edge: clamp(.5rem, 1.2vw, 1rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);

  /* Radius — pills for actions, generous curves for surfaces */
  --r-sm: .625rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-pill: 999px;

  /* Elevation — light from above, layered */
  --shadow-1: 0 1px 2px rgb(19 38 30 / .04), 0 3px 8px -2px rgb(19 38 30 / .05);
  --shadow-2: 0 1px 2px rgb(19 38 30 / .05), 0 8px 18px -6px rgb(19 38 30 / .09), 0 24px 48px -16px rgb(19 38 30 / .14);
  --shadow-3: 0 2px 4px rgb(8 24 18 / .1), 0 16px 32px -10px rgb(8 24 18 / .22), 0 44px 80px -28px rgb(8 24 18 / .38);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Glyphs */
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M35.2 3.5 38 13.1c1.1 6.1-2.6 16.5-5.1 20.5-.7 1.1-1.9 1.1-2.7 0-2.3-3.2-5-7.8-5.2-11.8-.2-3.3 1.1-7.1 2.5-9.2l7.7-9.1ZM56.5 20.2c-2.9 4.7-4.6 7.7-7 9.3-2.8 1.9-8.8 2.9-13.8 5.9-.9.5-1.9-.3-1.4-1.2 2.4-4.4 4.3-7.5 7-9.4 2.9-2.1 9.5-3.8 15.2-4.6ZM60.1 45.2c-6 .3-13.5 1.3-17.2-.2-2.7-1.1-5.7-3.8-8-5.7-.9-.8-.9-2.1.2-2.8 2.4-1.5 6.6-3 9.4-2.6 4.5.7 10.9 5.9 15.6 11.3ZM41.9 60.2c-4.5-3.1-9.8-7.9-11-11.9-.7-2.1.2-5.2 1.1-8 .4-1.3 1.6-1.6 2.6-.8 2.4 1.9 5.6 5.2 6.4 7.7 1 3.2 1 8.4.9 13ZM17.5 55.1c1.1-4.1 1.9-7.8 3.6-10 1.8-2.2 4.5-4.2 7.2-5.8.9-.6 1.8-.1 1.4 1.1-.8 2.9-1.6 7-3.6 9-2.4 2.3-5.2 3.8-8.6 5.7ZM3.5 42.9c4.1-3.4 8.8-7.2 12.5-7.7 3.4-.4 8.3.5 10.5 1.3 1.2.5 1.4 1.8.4 2.6-3 2.4-6.6 5.7-9.7 6.2-3.6.5-9.5-1-13.7-2.4ZM11.1 19.2c5.2 1.2 10.3 3.1 12.7 5.6 2.1 2.1 3.2 5.8 4.5 8.9.4 1-.2 1.7-1.2 1.5-3.3-.8-7.1-1.8-9.6-3.8-2.7-2.2-4.5-7.1-6.4-12.2Z'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355635b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: rgb(19 38 30 / .28) transparent;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.0625rem/1.6 var(--sans);
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { color: var(--white); background: var(--forest); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
section[id], div[id] { scroll-margin-top: 5.5rem; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1, h2 { letter-spacing: -.042em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.04; }
h3 { letter-spacing: -.025em; line-height: 1.15; }
p { text-wrap: pretty; }
h1 em, h2 em {
  font-family: var(--serif);
  font-size: 1.1em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.022em;
  color: var(--forest);
}

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
/* Inset panel: content stays on the container grid, the surface runs wider. */
.panel {
  position: relative;
  isolation: isolate;
  width: min(100% - 2 * var(--edge), var(--container) + 2 * (var(--gutter) - var(--edge)));
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 6.5rem) calc(var(--gutter) - var(--edge));
  border-radius: var(--r-xl);
  overflow: hidden;
}

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--forest);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 1.3em;
  height: 1.3em;
  background: var(--brass);
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}
.eyebrow + h2 { margin-top: 1.25rem; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 20;
  padding: .7rem 1.1rem;
  border-radius: var(--r-pill);
  color: var(--white);
  background: var(--forest);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons & links ----------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  min-height: 3.375rem;
  padding: .5rem 1.6rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--forest);
  color: var(--white);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 1px 2px rgb(8 24 18 / .24), 0 10px 22px -10px rgb(8 24 18 / .5);
  transition: background-color .2s var(--ease-ui), box-shadow .2s var(--ease-ui), transform .15s var(--ease-ui);
}
.button:hover { background-color: var(--forest-hover); }
.button:active { transform: scale(.975); }
.button:disabled { cursor: wait; opacity: .7; }
.button-chip {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.625rem;
  height: 2.625rem;
  margin-right: -1.225rem;
  border-radius: 50%;
  overflow: hidden;
  color: var(--forest);
  background: var(--white);
}
.button-chip .icon { width: 1.125rem; height: 1.125rem; stroke-width: 1.8; }
.button--small { min-height: 2.875rem; padding-inline: 1.3rem; font-size: .875rem; gap: .75rem; }
.button--small .button-chip { width: 2.125rem; height: 2.125rem; margin-right: -.925rem; }
.button--small .button-chip .icon { width: 1rem; height: 1rem; }
.button--outline { color: var(--forest); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.button--outline:hover { background: var(--sage); }

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  padding-block: .2rem;
  color: var(--forest);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}
.text-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  opacity: .28;
  transition: opacity .25s var(--ease-ui);
}
.text-link:hover::after { opacity: 1; }
.text-link .icon { transition: transform .3s var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }

/* Arrow leaves, the same arrow returns — a small loop that rewards the hover. */
@keyframes arrow-loop {
  0% { transform: translate(0, 0); }
  48% { transform: translate(calc(var(--ax, 1) * 170%), calc(var(--ay, 0) * 170%)); }
  48.01% { transform: translate(calc(var(--ax, 1) * -170%), calc(var(--ay, 0) * -170%)); }
  100% { transform: translate(0, 0); }
}
.is-diagonal { --ax: 1; --ay: -1; }

/* ---------- Header -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(246 245 239 / .8);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .3s var(--ease-ui), background-color .3s var(--ease-ui);
}
.site-header.is-scrolled { background: rgb(246 245 239 / .88); box-shadow: 0 1px 0 var(--line), 0 12px 32px -22px rgb(19 38 30 / .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { display: inline-flex; width: fit-content; flex: 0 0 auto; border-radius: .25rem; }
.brand img { width: 190px; height: auto; }
.header-nav, .header-actions { display: flex; align-items: center; }
.header-nav { gap: clamp(1.25rem, 2.8vw, 2.75rem); }
.header-nav a {
  position: relative;
  padding-block: .55rem;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s var(--ease-ui);
}
.header-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 .3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.header-nav a:hover, .header-nav a[aria-current] { color: var(--ink); }
.header-nav a:hover::after, .header-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.header-nav .nav-cta { display: none; }
.header-actions { gap: .6rem; }
.menu-toggle {
  display: none;
  align-content: center;
  justify-items: center;
  gap: 6px;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  color: var(--forest);
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .2s var(--ease-ui);
}
.menu-toggle:hover { background: var(--sage); }
.menu-toggle span { width: 18px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .35s var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Hero ---------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(2.5rem, 5.5vw, 5.5rem) clamp(3rem, 6vw, 6rem); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(58rem circle at 88% 8% in oklab, rgb(231 238 229 / .95), rgb(231 238 229 / 0) 62%);
  pointer-events: none;
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero h1 { margin-block: 1.75rem 1.6rem; font-size: clamp(2.75rem, 5.9vw, 5.5rem); line-height: 1; }
.hero-title .line { display: block; overflow: hidden; padding: .08em .08em .17em; margin: -.08em -.08em -.17em; }
.hero-title .line > * { display: block; }
.hero-description { max-width: 33ch; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.hero-phone { min-height: 2.75rem; font-variant-numeric: tabular-nums; }
.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.35rem;
  padding: 1.5rem 0 0;
  margin: clamp(2rem, 4vw, 3.25rem) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: .84375rem;
  white-space: nowrap;
}
.hero-assurances li { display: flex; align-items: center; gap: .5rem; }
.hero-assurances .icon { width: 1rem; height: 1rem; color: var(--forest); stroke-width: 2; }

.hero-visual { position: relative; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.hero-image, .about-image { position: relative; display: block; overflow: hidden; background: var(--sage); }
.hero-image { aspect-ratio: 1.16; border-radius: inherit; }
.hero-image::after, .about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16);
  pointer-events: none;
}
.hero-image img, .about-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image img { object-position: 60% center; }
.hero-chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  max-width: calc(100% - 2rem);
  padding: .6rem 1.05rem .6rem .7rem;
  border-radius: var(--r-pill);
  color: var(--ink);
  background: rgb(255 254 250 / .8);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55), 0 8px 24px -10px rgb(8 24 18 / .45);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.3;
}
.hero-chip::before {
  content: "";
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--forest);
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}
.hero-chip i { font-style: normal; color: var(--brass-deep); padding-inline: .15em; }

/* ---------- Section intro ------------------------------------------------- */
.section-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 1.5rem clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.section-intro > p { max-width: 36ch; justify-self: end; color: var(--muted); }

/* ---------- Services ------------------------------------------------------ */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 23rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(24rem circle at var(--mx, 50%) var(--my, 0%) in oklab, rgb(197 162 105 / .16), rgb(197 162 105 / 0) 62%);
  opacity: 0;
  transition: opacity .4s var(--ease-ui);
  pointer-events: none;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: auto;
  border-radius: 50%;
  color: var(--forest);
  background: var(--sage);
  transition: color .3s var(--ease-ui), background-color .3s var(--ease-ui);
}
.service-icon .icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.5; }
.service-card h3 { margin-top: 2.5rem; font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -.032em; }
.service-card p { margin-top: .75rem; color: var(--muted); font-size: 1rem; }
.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-top: 1.25rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--forest);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -4px; }
.card-chip {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color .3s var(--ease-ui), background-color .3s var(--ease-ui), box-shadow .3s var(--ease-ui);
}
.card-chip .icon { width: 1.05rem; height: 1.05rem; }

.additional-services { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; padding-top: 2rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.additional-heading h3 { font-size: 1.0625rem; letter-spacing: -.015em; }
.additional-heading p { margin-top: .3rem; color: var(--muted); font-size: .9375rem; }
.additional-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.875rem;
  padding: .5rem 1rem .5rem 1.2rem;
  border-radius: var(--r-pill);
  color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .25s var(--ease-ui), background-color .25s var(--ease-ui), box-shadow .25s var(--ease-ui);
}
.pill-link .icon { width: 1rem; height: 1rem; transition: transform .3s var(--ease-out); }

/* ---------- About --------------------------------------------------------- */
.about, .contact { padding-block: var(--edge); }
.about-panel { background: linear-gradient(in oklab, #edf3eb, #e2ebe0); }
.about-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.about-image { aspect-ratio: 4 / 5; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.about-image img { object-position: center 60%; }
.about-copy > p:not(.eyebrow) { max-width: 46ch; margin-top: 1.5rem; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.about-list { display: grid; padding: 0; margin: 2.25rem 0 2.5rem; list-style: none; }
.about-list li { display: flex; align-items: center; gap: .9rem; padding-block: 1rem; border-top: 1px solid var(--line); font-weight: 500; letter-spacing: -.008em; }
.about-list li:last-child { border-bottom: 1px solid var(--line); }
.about-list .icon { box-sizing: content-box; width: .8rem; height: .8rem; padding: .4rem; border-radius: 50%; color: var(--white); background: var(--forest); stroke-width: 2.4; }

/* ---------- Process ------------------------------------------------------- */
.process-grid { --gap: clamp(1.25rem, 2.6vw, 2.75rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.75rem var(--gap); padding: 0; margin: 0; list-style: none; }
.process-grid li { position: relative; padding-top: 2rem; }
.process-grid li::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gap)) auto 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) calc(var(--i, 0) * 140ms);
}
.process-grid li:last-child::before { right: 0; }
.process-grid li::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 5px var(--paper);
  transition: transform .5s var(--ease-out) calc(var(--i, 0) * 140ms), opacity .4s var(--ease-ui) calc(var(--i, 0) * 140ms);
}
.step-number { display: block; margin-bottom: 1.5rem; color: var(--forest); font: italic 400 clamp(2.75rem, 4.4vw, 3.75rem)/1 var(--serif); font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.process-grid h3 { margin-bottom: .6rem; font-size: 1.3125rem; }
.process-grid p { max-width: 28ch; color: var(--muted); font-size: 1rem; }

/* ---------- FAQ ----------------------------------------------------------- */
.faq { padding-top: 0; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); padding-top: var(--section); border-top: 1px solid var(--line); }
.faq-intro { position: sticky; top: 7.5rem; }
.faq-intro > p:not(.eyebrow) { margin-block: 1.25rem 1.75rem; color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.4rem;
  cursor: pointer;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.35;
  list-style: none;
  transition: color .2s var(--ease-ui);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background:
    linear-gradient(currentColor, currentColor) center / .8rem 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px .8rem no-repeat;
  transition: transform .45s var(--ease-out), background-color .25s var(--ease-ui), color .25s var(--ease-ui), box-shadow .25s var(--ease-ui), background-size .3s var(--ease-ui);
}
.faq details[open] summary::after {
  transform: rotate(180deg);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--forest);
  background:
    linear-gradient(currentColor, currentColor) center / .8rem 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 0 no-repeat,
    var(--forest);
}
.faq details p { max-width: 58ch; padding: 0 3.5rem 1.6rem 0; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .5s var(--ease-out), opacity .4s var(--ease-ui), content-visibility .5s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; opacity: 1; }
  }
}

/* ---------- Contact ------------------------------------------------------- */
.contact-panel { color: var(--white); background: radial-gradient(64rem circle at 100% 0% in oklab, #24594a, rgb(36 89 74 / 0) 60%), linear-gradient(in oklab, #1a4336, #12332a); }
.contact-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: .09; mix-blend-mode: soft-light; pointer-events: none; }
.contact-mark { position: absolute; z-index: -1; left: -9rem; bottom: -11rem; width: min(38rem, 90vw); height: auto; fill: currentColor; opacity: .04; pointer-events: none; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(2.5rem, 6vw, 6rem); }
.contact-copy .eyebrow { color: var(--brass-soft); }
.contact-copy h2 em { color: var(--brass-soft); }
.contact-copy > p:not(.eyebrow) { max-width: 34ch; margin-top: 1.5rem; color: rgb(255 254 250 / .76); font-size: 1.125rem; }
.contact-direct { display: grid; margin-top: 2.75rem; border-bottom: 1px solid var(--line-inverse); font-style: normal; }
.contact-direct a { display: flex; align-items: center; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line-inverse); font-weight: 500; letter-spacing: -.008em; line-height: 1.4; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-direct .icon { box-sizing: content-box; width: 1.125rem; height: 1.125rem; padding: .75rem; border-radius: 50%; color: var(--brass-soft); box-shadow: inset 0 0 0 1px var(--line-inverse); transition: color .25s var(--ease-ui), background-color .25s var(--ease-ui), box-shadow .25s var(--ease-ui); }

.contact-form { position: relative; min-width: 0; padding: clamp(1.5rem, 3.2vw, 2.75rem); border-radius: var(--r-lg); color: var(--ink); background: var(--white); box-shadow: inset 0 1px 0 #fff, var(--shadow-3); }
.contact-form h3 { font-size: 1.75rem; letter-spacing: -.035em; }
.form-note { margin-top: .4rem; color: var(--muted); font-size: .875rem; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.service-fieldset { min-width: 0; padding: 0; margin: 1.75rem 0 1.5rem; border: 0; }
.service-fieldset legend, .field label { padding: 0; font-size: .875rem; font-weight: 500; letter-spacing: -.005em; }
.service-options { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.service-options label { position: relative; }
.service-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.service-options span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .4rem 1rem .4rem .8rem;
  border-radius: var(--r-pill);
  color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: color .2s var(--ease-ui), background-color .2s var(--ease-ui), box-shadow .2s var(--ease-ui), transform .15s var(--ease-ui);
}
.service-options span::before { content: ""; width: .875rem; height: .875rem; background: currentColor; -webkit-mask: var(--icon-plus) center / contain no-repeat; mask: var(--icon-plus) center / contain no-repeat; opacity: .7; }
.service-options span:active { transform: scale(.97); }
.service-options input:checked + span { color: var(--white); background: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.service-options input:checked + span::before { -webkit-mask-image: var(--icon-check); mask-image: var(--icon-check); opacity: 1; }
.service-options input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; }
.field { display: grid; align-content: start; gap: .45rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .9rem;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--ink);
  background-color: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 2px rgb(19 38 30 / .05);
  font-size: 1rem;
  line-height: 1.4;
  transition: box-shadow .2s var(--ease-ui);
}
.field select { -webkit-appearance: none; appearance: none; padding-right: 2.6rem; background-image: var(--icon-chevron); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.15rem; cursor: pointer; }
.field textarea { min-height: 8rem; resize: vertical; }
.field :is(input, select, textarea):hover { box-shadow: inset 0 0 0 1px rgb(19 38 30 / .36), inset 0 1px 2px rgb(19 38 30 / .05); }
.field :is(input, select, textarea):focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--forest), 0 0 0 4px rgb(23 60 48 / .13); }
.field :is(input, select, textarea):user-invalid { box-shadow: inset 0 0 0 1.5px #a64534, 0 0 0 4px rgb(166 69 52 / .1); }

.privacy-check { display: flex; align-items: flex-start; gap: .75rem; margin-block: 1.5rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.privacy-check input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  flex: 0 0 auto;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  border-radius: .4rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition: background-color .2s var(--ease-ui), box-shadow .2s var(--ease-ui);
}
.privacy-check input::before { content: ""; width: .85rem; height: .85rem; background: var(--white); -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; opacity: 0; transform: scale(.6); transition: opacity .15s var(--ease-ui), transform .25s var(--ease-out); }
.privacy-check input:checked { background: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.privacy-check input:checked::before { opacity: 1; transform: none; }
.privacy-check label { cursor: pointer; }
.privacy-check a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; }
.form-submit p { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .875rem; }
.form-submit p .icon { width: 1rem; height: 1rem; color: var(--forest); stroke-width: 2; }
.form-status:not(:empty) { margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 500; }
.form-status--success { color: #1d4a30; background: #e4eee1; box-shadow: inset 0 0 0 1px rgb(29 74 48 / .16); }
.form-status--error { color: #7a3025; background: #f6e8e4; box-shadow: inset 0 0 0 1px rgb(122 48 37 / .16); }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 2.5rem 2rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.footer-grid > div, .footer-grid address { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; color: var(--muted); font-size: .9375rem; font-style: normal; }
.footer-brand p { max-width: 30ch; margin-top: .75rem; }
.footer-grid h2 { margin-bottom: .6rem; color: var(--ink); font-size: .75rem; font-weight: 600; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.footer-grid a:not(.brand), .footer-legal-links a { width: fit-content; text-decoration: none; transition: color .2s var(--ease-ui); }
.footer-grid a:not(.brand):hover, .footer-legal-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1.5rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }

/* ---------- Legal pages --------------------------------------------------- */
.legal-main { padding-block: clamp(2.5rem, 6vw, 5rem); }
.legal-card { max-width: 50rem; padding: clamp(1.5rem, 5vw, 4rem); margin: 0 auto; overflow-wrap: anywhere; border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.legal-card h1 { margin-top: 1.1rem; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.04; hyphens: auto; }
.legal-card h2 { margin-block: 2.25rem .6rem; font-size: 1.3125rem; letter-spacing: -.022em; line-height: 1.2; }
.legal-card p { margin-top: .75rem; color: var(--muted); }
.legal-card strong { color: var(--ink); font-weight: 600; }
.legal-card a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: .22em; }

/* ---------- Hover (pointer devices only) ---------------------------------- */
@media (hover: hover) {
  .button:hover .button-chip .icon { animation: arrow-loop .55s var(--ease-in-out); }
  .service-card:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-2); }
  .service-card:hover::before { opacity: 1; }
  .service-card:hover .service-icon { color: var(--white); background: var(--forest); }
  .service-card:hover .card-chip { color: var(--white); background: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
  .service-card:hover .card-chip .icon { animation: arrow-loop .55s var(--ease-in-out); }
  .pill-link:hover { color: var(--white); background: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
  .pill-link:hover .icon { transform: translate(2px, -2px); }
  .faq summary:hover { color: var(--forest); }
  .faq details:not([open]) summary:hover::after { background-color: var(--sage); }
  .contact-direct a:hover .icon { color: var(--forest-deep); background: var(--brass-soft); box-shadow: inset 0 0 0 1px var(--brass-soft); }
}

/* ---------- Motion -------------------------------------------------------- */
@keyframes line-up { from { transform: translateY(118%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(1.1rem); } }
@keyframes visual-in { from { opacity: 0; transform: translateY(1.75rem); } }
@keyframes settle { from { scale: 1.12; } }
@keyframes drift { from { translate: 0 -3.5%; } to { translate: 0 3.5%; } }
@keyframes turn { from { rotate: -16deg; } to { rotate: 22deg; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance — pure CSS, runs before any script. */
  .hero-title .line > * { animation: line-up 1.05s var(--ease-out) both; }
  .hero-title .line:nth-child(2) > * { animation-delay: .1s; }
  .hero [data-enter] { animation: fade-up .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .hero-visual { animation: visual-in 1.2s var(--ease-out) both .08s; }
  .hero-image img { animation: settle 1.9s var(--ease-out) both; }

  /* Scroll reveals — only once the script has confirmed it is running. */
  .js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  /* The clip sits on the image, not its frame: a fully clipped frame never reports as intersecting. */
  .js [data-reveal="image"] { opacity: 1; transform: none; background-color: transparent; box-shadow: none; transition: background-color .6s var(--ease-ui) 1s, box-shadow 1.2s var(--ease-ui) .5s; }
  .js [data-reveal="image"].is-visible { background-color: var(--sage); box-shadow: var(--shadow-2); }
  .js [data-reveal="image"] img { clip-path: inset(0 0 100% 0); scale: 1.14; transition: clip-path 1.3s var(--ease-out), scale 1.8s var(--ease-out); }
  .js [data-reveal="image"].is-visible img { clip-path: inset(0 0 0 0); scale: 1; }

  .js [data-split] .word { display: inline-block; clip-path: inset(-.3em -.14em -.17em -.14em); }
  .js [data-split] .word > span { display: inline-block; transform: translateY(125%); transition: transform 1s var(--ease-out) calc(var(--w, 0) * 55ms); }
  .js [data-split].is-visible .word > span { transform: none; }

  .js .process-grid li:not(.is-visible)::before { transform: scaleX(0); }
  .js .process-grid li:not(.is-visible)::after { transform: scale(.4); opacity: 0; }

  /* Scroll-linked depth — progressive enhancement, compositor only. */
  @supports (animation-timeline: view()) {
    .about-image img { position: absolute; inset: -4.5% 0 auto; height: 109%; animation: drift linear both; animation-timeline: view(); }
    .contact-mark { animation: turn linear both; animation-timeline: view(); }
  }
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1040px) {
  .header-nav { gap: 1.35rem; }
  .service-card { min-height: 21rem; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid li:nth-child(2n)::before { right: 0; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 4.25rem; }
  .brand img { width: 172px; }
  .menu-toggle { display: grid; }

  /* Without JS the nav simply wraps below the logo. */
  .header-inner { flex-wrap: wrap; }
  .header-nav { order: 3; width: 100%; flex-wrap: wrap; padding-bottom: .5rem; }
  .header-nav.is-enhanced {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    gap: 0;
    width: auto;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line), 0 28px 44px -28px rgb(19 38 30 / .45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.6rem);
    transition: opacity .25s var(--ease-ui), transform .35s var(--ease-out), visibility 0s linear .35s;
  }
  .header-nav.is-enhanced.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .header-nav.is-enhanced a { display: flex; align-items: center; min-height: 3.5rem; padding-block: .5rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.25rem; letter-spacing: -.02em; }
  .header-nav.is-enhanced a::after { content: none; }
  .header-nav.is-enhanced .nav-cta { display: flex; justify-content: center; min-height: 3.25rem; margin-top: 1.25rem; border: 0; border-radius: var(--r-pill); color: var(--white); background: var(--forest); font-size: 1rem; letter-spacing: -.005em; }

  .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { margin-block: 1.4rem 1.25rem; font-size: clamp(2.6rem, 11.4vw, 5rem); }
  .hero-description { max-width: 38ch; }
  .hero-actions { margin-top: 1.75rem; }
  .hero-image { aspect-ratio: 1.36; }
  .section-intro { grid-template-columns: 1fr; }
  .section-intro > p { max-width: 48ch; justify-self: start; }
  .wide-break { display: none; }
  .service-grid { grid-template-columns: 1fr; gap: .9rem; }
  .service-card { min-height: 0; }
  .service-card h3 { margin-top: 2rem; }
  .additional-services { display: grid; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { order: 2; aspect-ratio: 1.15; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --r-xl: 1.5rem; --r-lg: 1.25rem; }
  h2 { font-size: clamp(1.8rem, 8.6vw, 2.5rem); }
  .header-inner .brand img { width: clamp(132px, 42vw, 166px); }
  .header-actions .button--small { display: none; }
  .hero-chip { left: .75rem; bottom: .75rem; font-size: .75rem; }
  .hero-assurances { gap: .55rem 1.25rem; }
  .faq details p { padding-right: 0; }
  .contact-direct { margin-top: 2rem; }
  .form-submit .button { width: 100%; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .form-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .process-grid li::before { right: 0; }
  .step-number { margin-bottom: 1rem; }
  .process-grid p { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header { position: static; }
  .js [data-reveal], .js [data-split] .word > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
