/* Aether Engineering | site styles
   Palette: plant-room ink, gypsum paper, steel, tag yellow, verified green */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15222c;
  --ink-2: #213340;
  --ink-3: #2d4352;
  --paper: #f1f3f2;
  --white: #ffffff;
  --steel: #56656f;
  --steel-light: #9aa8b1;
  --line: #d3dadc;
  --line-dark: #34495a;
  --tag: #f2c12e;
  --tag-deep: #d9a915;
  --pass: #2e8a57;
  --focus: #1d6fd1;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-s: 3px;
  --radius-m: 6px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
[class$="-photo"] picture, .figure-wide picture { width: 100%; height: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 650; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 106%; line-height: 1.25; letter-spacing: 0; }
h4 { font-size: var(--step-0); font-stretch: 100%; line-height: 1.35; letter-spacing: 0; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--steel); max-width: 60ch; }
.muted { color: var(--steel); }
.small { font-size: var(--step--1); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink .muted, .section--ink .lede { color: var(--steel-light); }
.section-head { display: grid; align-content: start; gap: 0.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 760px; }
.section-head p { margin: 0; color: var(--steel); font-size: var(--step-1); line-height: 1.5; }
.section--ink .section-head p { color: var(--steel-light); }

.skip { position: absolute; left: -999px; top: 0; background: var(--tag); color: var(--ink); padding: 0.6rem 1rem; z-index: 100; font-weight: 650; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.35rem;
  font: inherit; font-weight: 650; font-size: 1rem; font-stretch: 104%;
  border-radius: var(--radius-s); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--tag); color: var(--ink); }
.btn--primary:hover { background: var(--tag-deep); text-decoration: none; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.section--white .btn--ghost:hover, .page-hero .btn--ghost:hover { background: rgba(21,34,44,0.05); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-3); text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 34, 44, 0.97);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(21, 34, 44, 0.9); backdrop-filter: blur(10px); }
}
.site-header .wrap { max-width: 1340px; }
.header-inner { display: flex; align-items: center; gap: 1.1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; flex-shrink: 0; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 38px; height: 38px; }
.brand-name { font-weight: 700; font-stretch: 118%; font-size: 1.12rem; letter-spacing: 0.005em; line-height: 1; }
.brand-name span { display: block; font-weight: 450; font-stretch: 100%; font-size: 0.78rem; color: var(--steel-light); letter-spacing: 0.01em; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { padding: 0.55rem 0.7rem; white-space: nowrap; text-decoration: none; border-radius: var(--radius-s); font-weight: 500; font-size: 0.97rem; color: #dfe6ea; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav a.btn--primary { color: var(--ink); }
.nav a.btn--primary:hover { background: var(--tag-deep); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--tag); border-radius: 0; }
.header-phone { font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--white); }
.header-phone:hover { color: var(--tag); text-decoration: none; }
.header-cta { min-height: 42px; padding: 0.5rem 1rem; white-space: nowrap; }
@media (max-width: 1180px) { .header-phone { display: none; } .brand-name span { display: none; } }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; padding: 10px; cursor: pointer; border-radius: var(--radius-s); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .header-phone, .header-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--tag); padding-left: 0.75rem; }
  .nav .nav-mobile-cta { display: flex; margin-top: 1rem; border: 0; justify-content: center; padding: 0.8rem; }
}
@media (min-width: 1081px) { .nav .nav-mobile-cta { display: none; } }

/* ---------- home hero ---------- */
.hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { font-size: clamp(2.4rem, 1.3rem + 3.4vw, 3.9rem); font-stretch: 114%; line-height: 1.02; margin-bottom: 0.45em; }
.hero p.lede { color: #c7d2d8; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
.hero .btn-row { margin-top: 1.75rem; }
.creds { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 2rem 0 0; }
.creds li { margin: 0; font-size: 0.86rem; font-weight: 550; padding: 0.38rem 0.7rem; border: 1px solid var(--line-dark); border-radius: 2px; color: #dfe6ea; background: rgba(255,255,255,0.03); }
.creds li b { color: var(--tag); font-weight: 700; margin-right: 0.3em; }

.hero-visual { position: relative; }
.hero-photo { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--ink-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* the trend card: the site's one signature element */
.trend {
  position: absolute; left: clamp(-3rem, -3.5vw, -1rem); bottom: clamp(-2rem, -2.5vw, -1rem);
  width: min(390px, 78%);
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-m); padding: 1rem 1.1rem 0.8rem;
  box-shadow: 0 18px 40px rgba(5, 12, 18, 0.45);
}
.trend-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 0.35rem; }
.trend-title { font-weight: 650; font-size: 0.92rem; font-stretch: 104%; }
.trend-status { font-size: 0.8rem; font-weight: 650; color: var(--pass); display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.trend-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pass); }
.trend svg { width: 100%; height: auto; overflow: visible; }
.trend .axis { stroke: var(--line); stroke-width: 1; }
.trend .sp { stroke: var(--steel); stroke-width: 1.2; stroke-dasharray: 4 4; fill: none; }
.trend .pv { stroke: var(--ink); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trend .fix { stroke: var(--tag-deep); stroke-width: 1.5; }
.trend text { font-family: var(--font); font-size: 10.5px; fill: var(--steel); font-variant-numeric: tabular-nums; }
.trend .fixlabel { fill: var(--ink); font-weight: 650; }
.trend-foot { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.78rem; color: var(--steel); margin-top: 0.2rem; }

@media (prefers-reduced-motion: no-preference) {
  .trend .pv { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s cubic-bezier(.35,.1,.25,1) 0.5s forwards; }
  .trend .fix, .trend .fixlabel { opacity: 0; animation: appear 0.4s ease 1.65s forwards; }
  .trend-status { opacity: 0; animation: appear 0.5s ease 3s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-bottom: 0.5rem; }
  .trend { position: relative; left: auto; bottom: auto; width: auto; margin: -3rem 0.75rem 0; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); }
.page-hero .btn-row { margin-top: 1.5rem; }
.page-hero-photo { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--plain .page-hero-grid { grid-template-columns: 1fr; }
.crumbs { font-size: var(--step--1); color: var(--steel); margin-bottom: 0.9rem; }
.crumbs a { color: var(--steel); }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-photo { order: -1; aspect-ratio: 16 / 9; }
}

/* ---------- audiences ---------- */
.audiences { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.audience-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.audience-list li { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.audience-list h3 { font-size: 1.06rem; margin: 0; font-stretch: 104%; }
.audience-list p { margin: 0; color: var(--steel); font-size: 0.98rem; }
@media (max-width: 860px) {
  .audiences { grid-template-columns: 1fr; }
  .audience-list li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- service rows ---------- */
.service-rows { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: center; }
.service-row:nth-child(even) .service-photo { order: 2; }
.service-photo { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 3 / 2; background: var(--line); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-row h3 { font-size: var(--step-2); font-stretch: 112%; margin-bottom: 0.4em; }
.need-list { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.need-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5em; }
.need-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 11px; height: 7px; border-left: 2.5px solid var(--pass); border-bottom: 2.5px solid var(--pass); transform: rotate(-45deg); }
.section--ink .need-list li::before { border-color: var(--tag); }
.text-link { font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--tag); text-decoration-thickness: 3px; text-underline-offset: 0.25em; }
.text-link:hover { text-decoration-color: var(--ink); }
.section--ink .text-link { color: var(--white); }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-photo { order: 0; }
}

/* ---------- lifecycle (true sequence: numbered) ---------- */
.lifecycle { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.lifecycle li { counter-increment: step; position: relative; padding: 2.6rem 1.1rem 0 0; margin: 0 0 2rem; }
.lifecycle li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--ink); color: var(--tag); font-weight: 700; font-size: 0.85rem; border-radius: 50%;
  font-variant-numeric: tabular-nums; z-index: 1;
}
.lifecycle li::after { content: ""; position: absolute; top: 14px; left: 30px; right: 0; height: 2px; background: var(--line); }
.lifecycle li:nth-child(5n)::after { right: 1rem; }
.lifecycle h3 { font-size: 1.02rem; margin-bottom: 0.3rem; font-stretch: 104%; }
.lifecycle p { font-size: 0.93rem; color: var(--steel); margin: 0; }
.section--ink .lifecycle li::before { background: var(--tag); color: var(--ink); }
.section--ink .lifecycle li::after { background: var(--line-dark); }
.section--ink .lifecycle p { color: var(--steel-light); }
@media (max-width: 980px) { .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lifecycle li:nth-child(5n)::after { right: 0; } .lifecycle li:nth-child(3n)::after { right: 1rem; } }
@media (max-width: 620px) {
  .lifecycle { grid-template-columns: 1fr; }
  .lifecycle li { padding: 0 0 0 3rem; margin-bottom: 1.5rem; }
  .lifecycle li::after { top: 32px; bottom: -1.5rem; left: 14px; right: auto; width: 2px; height: auto; }
  .lifecycle li:last-child::after { display: none; }
}

/* ---------- project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.project { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; }
.project-photo { aspect-ratio: 16 / 10; background: var(--line); overflow: hidden; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 1.2rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.project-meta { font-size: 0.84rem; color: var(--steel); font-weight: 550; }
.project h3 { font-size: 1.12rem; margin: 0; }
.project p { margin: 0; font-size: 0.96rem; color: var(--ink-2); }
.project-scope { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; padding-top: 0.6rem; }
.project-scope li { margin: 0; font-size: 0.78rem; font-weight: 550; padding: 0.22rem 0.55rem; background: var(--paper); border-radius: 2px; color: var(--ink-2); }
.project-find { border-left: 3px solid var(--tag); padding-left: 0.75rem; font-size: 0.94rem; }
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.filter { font: inherit; font-size: 0.93rem; font-weight: 550; padding: 0.5rem 0.95rem; min-height: 40px; border: 1px solid var(--line); background: var(--white); border-radius: 2px; cursor: pointer; color: var(--ink); }
.filter:hover { border-color: var(--steel); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.project[hidden] { display: none; }
.disclaimer { font-size: var(--step--1); color: var(--steel); margin-top: 2rem; max-width: 80ch; }

/* ---------- reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(2rem, 5vw, 4.5rem); }
.reason h3 { font-size: 1.2rem; display: flex; gap: 0.7rem; align-items: flex-start; }
.reason h3 svg { width: 26px; height: 26px; flex: none; color: var(--tag); margin-top: 0.05em; }
.reason p { color: var(--steel-light); margin: 0; }
.section--white .reason p, .section:not(.section--ink) .reason p { color: var(--steel); }
.section:not(.section--ink) .reason h3 svg { color: var(--pass); }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--tag); color: var(--ink); }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: clamp(2.75rem, 6vw, 4rem); }
.cta-band h2 { margin-bottom: 0.35em; }
.cta-band p { margin: 0; font-size: var(--step-1); line-height: 1.5; color: #3a3216; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .btn--ghost:hover { background: rgba(21,34,44,0.08); }
.cta-direct { font-size: 0.95rem; margin-top: 0.9rem !important; }
.cta-direct a { font-weight: 650; }
@media (max-width: 860px) { .cta-band-inner { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- content blocks on service pages ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.check-cols { columns: 2; column-gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.check-cols li { break-inside: avoid; position: relative; padding-left: 1.6rem; margin-bottom: 0.6em; }
.check-cols li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 11px; height: 7px; border-left: 2.5px solid var(--pass); border-bottom: 2.5px solid var(--pass); transform: rotate(-45deg); }
@media (max-width: 640px) { .check-cols { columns: 1; } }

.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.type { padding: 1.4rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.type + .type { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.type:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.type h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.type p { margin: 0; color: var(--steel); font-size: 0.97rem; }
.type .std { display: block; margin-top: 0.6rem; font-size: 0.83rem; color: var(--ink-2); font-weight: 550; }
@media (max-width: 900px) {
  .types { grid-template-columns: 1fr 1fr; }
  .type:nth-child(3n+1) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .type:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) { .types { grid-template-columns: 1fr; } .type, .type + .type { padding-left: 0; border-left: 0; } }

.matcher { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.matcher th, .matcher td { text-align: left; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.matcher thead th { background: var(--ink); color: var(--white); font-weight: 650; font-size: 0.93rem; font-stretch: 104%; }
.matcher tbody th { font-weight: 500; width: 58%; }
.matcher td a { font-weight: 650; }
.matcher tr:last-child th, .matcher tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .matcher thead { display: none; }
  .matcher tr { display: block; border-bottom: 1px solid var(--line); padding: 0.9rem 1rem; }
  .matcher th, .matcher td { display: block; padding: 0; border: 0; width: auto; }
  .matcher td { margin-top: 0.35rem; }
}

.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 650; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.5rem; top: 1.45rem; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq details > div { padding: 0 0 1.2rem; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

.standards { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.standards li { margin: 0; padding: 0.4rem 0.75rem; border: 1px solid var(--line); background: var(--white); border-radius: 2px; font-size: 0.9rem; font-weight: 550; }

.figure-wide { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 21 / 9; background: var(--line); }
.figure-wide img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .figure-wide { aspect-ratio: 4 / 3; } }

/* ---------- about ---------- */
.principal { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.principal-photo { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); position: sticky; top: calc(var(--header-h) + 1.5rem); }
.principal-photo img { width: 100%; height: 100%; object-fit: cover; }
.cred-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.cred-table th, .cred-table td { text-align: left; padding: 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cred-table th { width: 44%; font-weight: 650; padding-right: 1rem; }
.cred-table td { color: var(--ink-2); }
@media (max-width: 860px) { .principal { grid-template-columns: 1fr; } .principal-photo { position: static; aspect-ratio: 16 / 10; } }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(1.25rem, 3vw, 2.25rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field legend { padding: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field .opt { font-weight: 400; color: var(--steel); }
.field .hint { font-size: 0.85rem; color: var(--steel); margin: 0.3rem 0 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.8rem; min-height: 48px;
  border: 1px solid #b7c2c7; border-radius: var(--radius-s); background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(29,111,209,0.35); outline-offset: 0; border-color: var(--focus); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: 0.86rem; margin: 0.3rem 0 0; font-weight: 550; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.55rem 0.95rem; border: 1px solid #b7c2c7; border-radius: var(--radius-s); cursor: pointer; font-size: 0.95rem; font-weight: 500; background: var(--white); user-select: none; }
.choice span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--steel); border-radius: 2px; flex: none; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.choice input:checked + span::before { background: var(--tag); border-color: var(--tag); box-shadow: inset 0 0 0 2px var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.details-group { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 1.1rem; }
.details-group > summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.details-group > summary::-webkit-details-marker { display: none; }
.details-group > summary span { font-weight: 400; color: var(--steel); font-size: 0.9rem; }
.details-group > summary::after { content: "Show"; font-size: 0.88rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--tag); text-decoration-thickness: 2px; }
.details-group[open] > summary::after { content: "Hide"; }
.details-group .form-grid { margin-top: 1.1rem; }
.file-drop { border: 1.5px dashed #9fb0b8; border-radius: var(--radius-s); padding: 1rem; background: var(--paper); }
.file-drop input { font: inherit; font-size: 0.92rem; width: 100%; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-foot p { margin: 0; font-size: 0.86rem; color: var(--steel); max-width: 42ch; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-s); font-weight: 550; display: none; }
.form-status.is-error { display: block; background: #fbeceb; color: #8c1d16; border: 1px solid #f0c4c0; }
.form-status.is-ok { display: block; background: #e8f4ed; color: #1d5c38; border: 1px solid #bfe0cc; }
button[disabled] { opacity: 0.6; cursor: progress; }

.side-card { background: var(--ink); color: var(--white); border-radius: var(--radius-m); padding: clamp(1.4rem, 3vw, 2rem); }
.side-card h2 { font-size: 1.35rem; }
.side-card a { color: var(--white); }
.direct { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.direct li { margin: 0 0 0.85rem; }
.direct span { display: block; font-size: 0.84rem; color: var(--steel-light); }
.direct a { font-weight: 650; font-size: 1.1rem; text-decoration-color: var(--tag); }
.next-steps { list-style: none; counter-reset: n; padding: 0; margin: 0; }
.next-steps li { counter-increment: n; position: relative; padding-left: 2.4rem; margin-bottom: 1.1rem; color: #c7d2d8; font-size: 0.97rem; }
.next-steps li strong { display: block; color: var(--white); }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--tag); color: var(--ink); font-weight: 700; font-size: 0.82rem; display: grid; place-items: center; }
.side-note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--steel); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c7d2d8; padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h2 { font-size: 0.95rem; color: var(--white); font-stretch: 104%; margin-bottom: 0.9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #dfe6ea; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; }
.footer-legal { border-top: 1px solid var(--line-dark); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.86rem; color: var(--steel-light); }
.footer-legal p { margin: 0; max-width: 80ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 1px solid var(--line-dark);
  }
  .action-bar .btn { min-height: 46px; padding: 0.55rem 0.75rem; font-size: 0.97rem; }
  .action-bar .btn--ghost { color: var(--white); }
  body { padding-bottom: 72px; }
  body.no-action-bar { padding-bottom: 0; }
}

/* ---------- misc ---------- */
.notice { background: var(--white); border-left: 4px solid var(--tag); padding: 1rem 1.25rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.prose h2 { font-size: var(--step-2); margin-top: 2rem; }
.prose { max-width: 760px; }
.center-page { min-height: 55vh; display: grid; align-content: center; }
.stack > * + * { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .action-bar, .site-footer, .cta-band { display: none; }
  body { background: #fff; }
}
