/* =========================================================================
   Autumnmute, autumnmute.org
   Palette and tone taken from the brand assets in /art
   ========================================================================= */

/* ------------------------------------------------------------------ tokens */
:root {
  /* Palette, sampled from art/color_set.png */
  --rust:      #C03D1A;   /* primary accent, used sparingly */
  --ember:     #E07A1F;   /* secondary accent */
  --amber:     #DDA44A;   /* tertiary accent, hover, highlights */
  --taupe:     #CBB59A;   /* muted supporting tone, borders */
  --espresso:  #3B2414;   /* primary text + dark surfaces (never black) */

  /* Warm grounds, sampled from art/banner.png */
  --cream:     #FBF4EC;
  --cream-2:   #F6EDE1;
  --cream-3:   #F0E4D4;

  /* Derived ink + line */
  --ink:       var(--espresso);
  --ink-70:    rgba(59, 36, 20, 0.74);
  --ink-55:    rgba(59, 36, 20, 0.58);
  --ink-35:    rgba(59, 36, 20, 0.36);
  --line:      rgba(203, 181, 154, 0.62);
  --line-soft: rgba(203, 181, 154, 0.34);

  /* Dark surface */
  --dark:      #34200F;
  --dark-2:    #291809;
  --on-dark:        #F4E9DA;
  --on-dark-70: rgba(244, 233, 218, 0.74);
  --on-dark-45: rgba(244, 233, 218, 0.46);
  --line-dark:  rgba(203, 181, 154, 0.22);

  /* Type */
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --t-display: clamp(2.6rem, 1.35rem + 4.1vw, 5.1rem);
  --t-h1:      clamp(2.2rem, 1.35rem + 2.9vw, 3.9rem);
  --t-h2:      clamp(1.85rem, 1.28rem + 1.9vw, 2.9rem);
  --t-h3:      clamp(1.35rem, 1.12rem + 0.8vw, 1.8rem);
  --t-h4:      clamp(1.08rem, 1rem + 0.3vw, 1.25rem);
  --t-lead:    clamp(1.06rem, 0.99rem + 0.34vw, 1.28rem);
  --t-body:    1.02rem;
  --t-small:   0.9rem;
  --t-micro:   0.76rem;

  /* Spacing scale */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 2.75rem;  --s-8: 3.5rem;
  --s-9: 4.5rem;   --s-10: 6rem;    --s-11: 8rem;    --s-12: 10rem;

  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter:    clamp(1.25rem, 0.6rem + 2.6vw, 3.5rem);
  --measure:   68ch;
  --radius:    3px;
  --radius-lg: 6px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  /* the page is a document, not an editor: text keeps the arrow, and only the
     things you can genuinely act on change the pointer */
  cursor: default;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 var(--s-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--rust); text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

a[href], button, label, select, summary, [role="button"],
input[type="checkbox"], input[type="radio"], input[type="submit"] { cursor: pointer; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
textarea { cursor: text; }

::selection { background: rgba(221, 164, 74, 0.35); color: var(--espresso); }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  background: var(--espresso);
  color: var(--cream);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  font-size: var(--t-small);
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: var(--s-4); }

/* --------------------------------------------------------------- utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 940px; }

.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { display: none; }
.eyebrow--on-dark { color: var(--amber); }
.eyebrow--on-dark::after { background: var(--line-dark); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 60ch;
}

.section-head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head h2 { font-size: var(--t-h2); margin-bottom: var(--s-5); max-width: 20ch; }
.section-head--center { text-align: center; }
.section-head--center h2,
.section-head--center .lead { margin-inline: auto; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* small, deliberate set of helpers, kept minimal so the CSP can stay strict
   and no inline style attributes are needed anywhere in the markup */
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.text-center { text-align: center; }
.center { margin-inline: auto; }

/* ----------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--rust);
  --btn-fg: #FFF8F0;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.95em 1.9em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease),
              background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -14px rgba(59, 36, 20, 0.55); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(0); }

.btn__arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost::before { background: var(--cream-3); }
.btn--ghost:hover { color: var(--espresso); border-color: var(--taupe); }

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  border-color: var(--line-dark);
}
.btn--on-dark::before { background: rgba(244, 233, 218, 0.08); }
.btn--on-dark:hover { border-color: var(--amber); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.btn-row--center { justify-content: center; }

/* text link with an animated rule */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease-out), color 0.3s var(--ease);
}
.link:hover { color: var(--ember); background-size: 100% 1px; }
.link svg { transition: transform 0.35s var(--ease-out); }
.link:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------ header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  height: 66px;
  background: rgba(251, 244, 236, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 30px -26px rgba(59, 36, 20, 0.6);
}

.header__inner {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; transition: transform 0.5s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__word {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  padding-top: 2px;
}
/* "autumn" in ink, "mute" in the accent: the two halves of the name read
   apart at a glance instead of running together as one long word */
.brand__word-accent { color: var(--rust); }
.brand__mark--round { width: 34px; height: 34px; border-radius: 50%; }
.footer .brand__word-accent { color: var(--amber); }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 0.4rem + 1.6vw, 2.2rem); }
.nav__link {
  position: relative;
  font-size: var(--t-small);
  font-weight: 450;
  letter-spacing: 0.02em;
  color: var(--ink-70);
  padding-block: 6px;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--ink); }

.nav__cta { margin-left: var(--s-2); padding: 0.7em 1.4em; font-size: var(--t-micro); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.25s var(--ease), width 0.4s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 22px; width: 15px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 22px; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* -------------------------------------------------------------- mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--cream);
  padding: calc(var(--header-h) + var(--s-7)) var(--gutter) var(--s-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out), visibility 0.4s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-nav__list { display: flex; flex-direction: column; gap: var(--s-2); }
.mobile-nav__list a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 2.6rem);
  font-weight: 500;
  color: var(--ink);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(14px);
}
.mobile-nav.is-open .mobile-nav__list a {
  animation: nav-in 0.55s var(--ease-out) forwards;
}
.mobile-nav.is-open .mobile-nav__list li:nth-child(1) a { animation-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(2) a { animation-delay: 0.14s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(3) a { animation-delay: 0.20s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(4) a { animation-delay: 0.26s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(5) a { animation-delay: 0.32s; }
@keyframes nav-in { to { opacity: 1; transform: none; } }

.mobile-nav__foot {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding-top: var(--s-6);
}

body.is-locked { overflow: hidden; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(94vh, 940px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--s-8));
  padding-bottom: var(--s-9);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 40%;
  background-image: url("../hero.jpg");
  background-image: -webkit-image-set(url("../hero.jpg") 1x, url("../hero-2x.jpg") 2x);
  background-image: image-set(url("../hero.jpg") 1x, url("../hero-2x.jpg") 2x);
  background-size: cover;
  background-position: 62% 50%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 16%, #000 46%),
    linear-gradient(to bottom, #000 62%, transparent 99%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 16%, #000 46%),
    linear-gradient(to bottom, #000 62%, transparent 99%);
  mask-composite: intersect;
}

/* warm wash so the photo never fights the cream page */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(120% 90% at 0% 40%, var(--cream) 26%, rgba(251, 244, 236, 0) 62%),
    linear-gradient(to bottom, rgba(251, 244, 236, 0) 72%, var(--cream) 100%);
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__content { max-width: 40rem; }

/* live brand lockup
   The mark is a lowercase "a" with a leaf, so set flat against the wordmark it
   reads as a stray letter: "a autumnmute". A hairline rule separates the two so
   the mark reads as a mark. Alignment is by baseline, not by box: the PNG
   carries 4.5% transparent padding below the glyph (alpha box ends at 489/512),
   so the mark is nudged down by exactly that to seat its baseline on the
   wordmark's. */
.lockup { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: var(--s-6); }
.lockup__mark {
  width: clamp(48px, 5vw, 62px);
  height: auto;
  flex: none;
  transform: translateY(4.5%);
}
.lockup__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
}
.lockup__word {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--espresso);
}
.lockup__word-accent { color: var(--rust); }

.hero h1 {
  font-size: var(--t-h1);
  line-height: 1.08;
  margin-bottom: var(--s-5);
  max-width: 15ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--rust);
}
.hero .lead { margin-bottom: var(--s-7); max-width: 46ch; }
.hero .btn-row { margin-bottom: var(--s-8); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: var(--s-6);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--t-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-35);
  z-index: 1;
}
.scroll-cue::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(to right, var(--taupe), transparent);
  animation: cue 2.6s var(--ease) infinite;
  transform-origin: left;
}
@keyframes cue {
  0%, 100% { transform: scaleX(0.4); opacity: 0.5; }
  50%      { transform: scaleX(1);   opacity: 1; }
}

/* ---------------------------------------------------------------- approach */
.approach { background: linear-gradient(to bottom, var(--cream), var(--cream-2)); }

.approach__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.step {
  background: var(--cream-2);
  padding: clamp(1.75rem, 1rem + 2vw, 3rem) clamp(1.5rem, 0.8rem + 1.8vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: background-color 0.5s var(--ease);
}
.step:hover { background: var(--cream); }

.step__num {
  font-family: var(--serif);
  font-size: var(--t-small);
  font-style: italic;
  color: var(--rust);
  letter-spacing: 0.04em;
}
.step h3 { font-size: var(--t-h3); line-height: 1.24; max-width: 20ch; }
.step p { font-size: var(--t-small); color: var(--ink-70); line-height: 1.75; margin: 0; max-width: 52ch; }

/* --------------------------------------------------------------- solutions */
.solutions { background: var(--cream); }

.solution {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.75rem, 1rem + 4vw, 5rem);
  padding-block: clamp(2.75rem, 1.75rem + 3.5vw, 5rem);
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.solution:last-of-type { border-bottom: 1px solid var(--line-soft); }

.solution__aside { position: sticky; top: calc(var(--header-h) + 2.5rem); }

.solution__icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--s-5);
  color: var(--rust);
}
.solution__icon .accent { color: var(--amber); }
.solution__icon .fill-soft { fill: rgba(221, 164, 74, 0.18); }

.solution__name {
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 500;
  letter-spacing: 0.008em;
  margin-bottom: var(--s-3);
}
.solution__sector {
  display: inline-block;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
  padding: 0.35em 0.85em;
  border: 1px solid var(--line);
  border-radius: 100px;
}

.solution__body p { color: var(--ink-70); margin-bottom: var(--s-4); max-width: 62ch; }
.solution__body p:first-child {
  color: var(--ink);
  font-size: var(--t-lead);
  line-height: 1.56;
}
.solution__body p:first-child strong { font-weight: 500; }

.solution__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
}
.solution__points li {
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.solution__points li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--ember);
  transform: rotate(45deg);
  opacity: 0.7;
}

.solution__link { margin-top: var(--s-5); }

.solutions__thread {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  background: var(--cream-2);
  border-left: 2px solid var(--rust);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.solutions__thread h3 {
  font-size: var(--t-h3);
  margin-bottom: var(--s-4);
}
.solutions__thread p {
  font-family: var(--serif);
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink);
  max-width: 58ch;
}
.solutions__thread p + p { margin-top: var(--s-4); }

/* the four above are a starting shelf, not the catalogue */
.solutions__more {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 0.8rem + 2.6vw, 3.5rem);
  margin-top: clamp(2rem, 1.2rem + 2.4vw, 3rem);
  padding-top: clamp(2rem, 1.2rem + 2.4vw, 3rem);
  border-top: 1px solid var(--line);
}
.solutions__more h3 { font-size: var(--t-h3); }
.solutions__more p { color: var(--ink-70); }

/* -------------------------------------------------------- standards (dark) */
.standards {
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.standards::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 88% 6%, rgba(192, 61, 26, 0.22), transparent 62%);
  pointer-events: none;
}
.standards > * { position: relative; }
.standards h2, .standards h3 { color: var(--on-dark); }
.standards .lead { color: var(--on-dark-70); }

.standards__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  align-items: start;
}

.standards__statement h2 { font-size: var(--t-h2); margin-bottom: var(--s-5); max-width: 18ch; }
.standards__statement p { color: var(--on-dark-70); }
.standards__statement p + p { margin-top: var(--s-4); }

.standards__quote {
  margin: var(--s-7) 0 0;
  padding-left: var(--s-5);
  border-left: 2px solid var(--rust);
  font-family: var(--serif);
  font-size: var(--t-h4);
  font-style: italic;
  line-height: 1.5;
  color: var(--on-dark);
  max-width: 34ch;
}

.standards__list { display: grid; gap: 0; }
.standards__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line-dark);
}
.standards__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.standards__list .marker {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--amber);
  margin-top: 2px;
}
.standards__list h3 {
  font-size: var(--t-h4);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
}
.standards__list p {
  font-size: var(--t-small);
  color: var(--on-dark-70);
  line-height: 1.7;
  margin: 0;
}

/* -------------------------------------------------------------- focus band */
.focus { background: var(--cream-2); border-block: 1px solid var(--line-soft); }

.focus__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.focus h2 { font-size: var(--t-h2); margin-bottom: var(--s-5); }
.focus p { color: var(--ink-70); }
.focus p + p { margin-top: var(--s-4); }

.focus__map {
  margin: 0;
  padding: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.focus__map img { width: 100%; height: auto; }
.focus__map figcaption {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* ------------------------------------------------------------- contact cta */
.cta { background: var(--cream); }
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
  padding: clamp(2.25rem, 1.25rem + 4vw, 4.5rem);
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: "";
  position: absolute;
  inset: auto -60px -120px auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 122, 31, 0.16), transparent 68%);
  pointer-events: none;
}
.cta__inner > * { position: relative; }
.cta h2 { font-size: var(--t-h2); margin-bottom: var(--s-4); max-width: 16ch; }
.cta p { color: var(--ink-70); max-width: 46ch; }

.cta__aside { display: flex; flex-direction: column; gap: var(--s-5); }
.cta__detail { display: flex; flex-direction: column; gap: 0.25rem; }
.cta__detail dt {
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.cta__detail dd {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-h4);
}
.cta__detail dd a { color: var(--ink); transition: color 0.3s var(--ease); }
.cta__detail dd a:hover { color: var(--rust); }

/* ------------------------------------------------------------------ footer */
.footer {
  background: var(--dark-2);
  color: var(--on-dark-70);
  padding-block: var(--s-9) var(--s-6);
  font-size: var(--t-small);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line-dark);
}
.footer .brand { color: var(--on-dark); }
.footer .brand__mark { filter: none; }
.footer__blurb { margin-top: var(--s-4); max-width: 34ch; color: var(--on-dark-45); font-size: var(--t-small); }

.footer h4 {
  font-family: var(--sans);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-45);
  margin-bottom: var(--s-4);
}
.footer__links { display: flex; flex-direction: column; gap: var(--s-3); }
.footer__links a { color: var(--on-dark-70); transition: color 0.3s var(--ease); }
.footer__links a:hover { color: var(--amber); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-6);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  color: var(--on-dark-45);
}

/* ------------------------------------------------------------ contact page */
.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 2rem + 5vw, 6.5rem));
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line-soft);
}
.page-head::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 0 45%;
  background-image: url("../hero.jpg");
  background-image: -webkit-image-set(url("../hero.jpg") 1x, url("../hero-2x.jpg") 2x);
  background-image: image-set(url("../hero.jpg") 1x, url("../hero-2x.jpg") 2x);
  background-size: cover;
  background-position: 70% 40%;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%);
  mask-image: linear-gradient(to right, transparent 0%, #000 55%);
}
.page-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to bottom, rgba(251,244,236,0) 60%, var(--cream) 100%);
  pointer-events: none;
}
.page-head h1 { font-size: var(--t-h1); margin-bottom: var(--s-5); max-width: 16ch; }
.page-head .lead { max-width: 44ch; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  align-items: start;
}

/* form */
.form { display: flex; flex-direction: column; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.field label .req { color: var(--rust); }

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: var(--t-body);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.1rem;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.65; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C03D1A' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px;
  padding-right: 1.75rem;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-35); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-bottom-color: var(--taupe); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--rust);
  background: rgba(240, 228, 212, 0.35);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: var(--rust); }
.field__error {
  font-size: var(--t-micro);
  color: var(--rust);
  letter-spacing: 0.04em;
  min-height: 1em;
  display: none;
}
.field.has-error .field__error { display: block; }

.form__consent {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-size: var(--t-small);
  color: var(--ink-70);
  line-height: 1.6;
}
.form__consent input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--rust);
  cursor: pointer;
}

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); }
.form__note { font-size: var(--t-micro); color: var(--ink-55); letter-spacing: 0.04em; }

.form__status {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  font-size: var(--t-small);
  line-height: 1.6;
  display: none;
}
.form__status.is-visible { display: block; }
.form__status--ok { background: rgba(221, 164, 74, 0.16); border-left: 2px solid var(--amber); color: var(--ink); }
.form__status--err { background: rgba(192, 61, 26, 0.09); border-left: 2px solid var(--rust); color: var(--ink); }

.btn[aria-busy="true"] { opacity: 0.72; pointer-events: none; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* contact aside */
.contact-aside { display: flex; flex-direction: column; gap: var(--s-6); }
.contact-card {
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.contact-card h2, .contact-card h3 { font-size: var(--t-h4); margin-bottom: var(--s-4); }

.timeline { display: flex; flex-direction: column; gap: var(--s-5); }
.timeline li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); }
.timeline .idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-small);
  color: var(--rust);
  padding-top: 2px;
}
.timeline strong { display: block; font-weight: 500; font-size: var(--t-body); margin-bottom: 0.2rem; }
.timeline p { font-size: var(--t-small); color: var(--ink-70); margin: 0; line-height: 1.68; }

.contact-card dl { margin: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.contact-card dt {
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 0.2rem;
}
.contact-card dd { margin: 0; font-size: var(--t-small); }
.contact-card dd a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.contact-card dd a:hover { color: var(--rust); border-color: var(--rust); }

/* ---------------------------------------------------------------- 404 page */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: var(--header-h);
}
.error-page .container { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.error-page h1 { font-size: var(--t-h1); }
.error-page p { margin-inline: auto; text-align: center; }
.error-page__mark { width: 72px; height: auto; }
.footer__bottom--bare { border: 0; padding-top: 0; }

/* ---------------------------------------------------------------- reveals
   Hidden only once head.js has confirmed scripting is alive, so the page is
   readable if the script never runs. `.no-reveal` is the failsafe. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.no-reveal [data-reveal] { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .solution { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .standards__grid { grid-template-columns: 1fr; }
  .standards__quote { max-width: 46ch; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav { display: none; }
  .nav-toggle { display: block; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: var(--s-10); }
  .hero__media {
    inset: 0;
    background-image: url("../hero-mobile.jpg");
    background-image: -webkit-image-set(url("../hero-mobile.jpg") 1x, url("../hero-mobile-2x.jpg") 2x);
    background-image: image-set(url("../hero-mobile.jpg") 1x, url("../hero-mobile-2x.jpg") 2x);
    background-position: 60% 30%;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.35) 62%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.35) 62%, transparent 92%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(251,244,236,0.55) 0%, rgba(251,244,236,0.8) 55%, var(--cream) 100%);
  }
  .hero h1 { max-width: 18ch; }
  .scroll-cue { display: none; }

  .solution { grid-template-columns: 1fr; gap: var(--s-5); }
  .solution__aside { position: static; display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
  .solution__icon { width: 46px; height: 46px; margin-bottom: 0; }
  .solution__name { margin-bottom: 0; }

  .focus__grid { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-head::before { inset: 0; opacity: 0.32; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .approach__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .solutions__more { grid-template-columns: 1fr; }
  .solution__points { flex-direction: column; gap: var(--s-2); }
  .footer__top { grid-template-columns: 1fr; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__canvas { display: none; }
}

/* ---------------------------------------------------------------- printing */
@media print {
  .header, .mobile-nav, .hero__canvas, .scroll-cue, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
