/* ==========================================================================
   GreenValley — editorial market-research visual system
   Layers: tokens > reset > type > layout > components > utilities > responsive
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* brand */
  --green-900: #08281d;
  --green-800: #0b3325;
  --green-700: #0e4f3d;
  --green-600: #14664c;
  --green-500: #1c7d5e;
  --green-100: #e3efe9;
  --green-50:  #f1f7f4;

  --gold-600: #b8862b;
  --gold-500: #d9a441;
  --gold-400: #e8bd6b;
  --gold-100: #faf3e3;

  /* text & surfaces */
  --ink:      #16211c;
  --ink-soft: #4b5751;
  --ink-mute: #6d7a73;
  --paper:    #fcfbf8;
  --paper-2:  #f5f3ec;
  --paper-3:  #ece9df;
  --white:    #ffffff;
  --line:     #ddd9cd;
  --line-2:   #ebe8de;

  /* status */
  --warn:     #9c1c1c;
  --warn-bg:  #fdecec;
  --note:     #8a5a12;
  --note-bg:  #faf3e3;

  /* type */
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* measure */
  --w-article: 44rem;
  --w-service: 50rem;
  --w-home:    72rem;
  --w-wide:    80rem;
  --w-narrow:  34rem;

  /* forms */
  --radius:    4px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* elevation */
  --sh-1: 0 1px 2px rgba(16, 33, 28, .06);
  --sh-2: 0 2px 8px rgba(16, 33, 28, .07), 0 1px 2px rgba(16, 33, 28, .05);
  --sh-3: 0 10px 30px rgba(16, 33, 28, .11), 0 2px 8px rgba(16, 33, 28, .06);
  --sh-4: 0 22px 60px rgba(8, 40, 29, .22);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .16s var(--ease);
  --t-mid:  .28s var(--ease);
  --t-slow: .55s var(--ease);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
svg { max-width: 100%; }

/* ---------- 3. Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-700);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.012em;
}

h1 {
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.05rem);
  line-height: 1.14;
  margin: 0 0 1.15rem;
}
h2 {
  font-size: clamp(1.4rem, 1.15rem + .8vw, 1.85rem);
  line-height: 1.28;
  margin: 3rem 0 1rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.6rem; }
h3 { font-size: 1.2rem; line-height: 1.4; margin: 2rem 0 .6rem; }
h4 { font-size: 1.06rem; line-height: 1.45; margin: 1.5rem 0 .5rem; }

p { margin: 0 0 1.2rem; }

.lede {
  font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 62ch;
}

.kicker {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  margin: 0 0 .7rem;
}

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--t-fast); }
a:hover { color: var(--green-500); }

strong, b { font-weight: 700; color: var(--ink); }
small, .small { font-size: .875rem; color: var(--ink-soft); }

ul, ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
li { margin-bottom: .45rem; }
li > ul, li > ol { margin-top: .45rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.75rem 0; }

blockquote {
  margin: 2rem 0;
  padding: .5rem 0 .5rem 1.35rem;
  border-left: 3px solid var(--gold-500);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
}
blockquote footer { font-family: var(--font-body); font-style: normal; font-size: .84rem; margin-top: .6rem; color: var(--ink-mute); }

/* ---------- 5. Layout ---------- */
.wrap-home    { max-width: var(--w-home);   margin: 0 auto; padding: 0 1.5rem; }
.wrap-wide    { max-width: var(--w-wide);   margin: 0 auto; padding: 0 1.5rem; }
.wrap-service { max-width: var(--w-service); margin: 0 auto; padding: 0 1.5rem; }
.wrap-article { max-width: var(--w-article); margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow  { max-width: var(--w-narrow);  margin: 0 auto; padding: 0 1.5rem; }

main { padding: 2.75rem 0 4rem; }
main.full-bleed-hero { padding-top: 0; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 251, 248, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}
.site-header.is-scrolled {
  box-shadow: var(--sh-2);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--w-home);
  margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: 38px; height: 38px;
  border-radius: 9px;
  box-shadow: var(--sh-1);
  transition: transform var(--t-mid);
}
.brand:hover img { transform: translateY(-1px) rotate(-2deg); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: .22rem;
}

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .35rem;
}
.main-nav a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  padding: .5rem .8rem;
  border-radius: var(--radius);
  transition: background var(--t-fast), color var(--t-fast);
}
.main-nav a:hover { color: var(--green-700); background: var(--green-50); }
.main-nav a[aria-current="page"] { color: var(--green-700); font-weight: 700; background: var(--green-50); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem .8rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.nav-toggle:hover { border-color: var(--green-600); background: var(--green-50); }
.nav-toggle::before {
  content: "";
  width: 15px; height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

/* ---------- 7. Hero ---------- */
.hero { padding: 3.25rem 0 1rem; }
.hero h1 { max-width: 20ch; }

/* image-backed hero */
.hero-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green-900);
  margin: 0 0 3rem;
  box-shadow: var(--sh-3);
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(6, 30, 22, .93) 0%, rgba(6, 30, 22, .82) 42%, rgba(8, 40, 29, .62) 100%),
    radial-gradient(120% 90% at 12% 100%, rgba(8, 40, 29, .55), transparent 60%);
}
.hero-media-inner {
  position: relative;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(1.5rem, 1rem + 3vw, 3.5rem);
  max-width: 62rem;
}
.hero-media .kicker { color: var(--gold-400); }
.hero-media h1 { color: #fff; max-width: 22ch; text-shadow: 0 1px 24px rgba(0, 0, 0, .3); }
.hero-media .hero-sub { color: rgba(255, 255, 255, .89); }
.hero-media .hero-meta { color: rgba(255, 255, 255, .74); }
.hero-media .hero-meta a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.hero-media .hero-meta a:hover { color: var(--gold-400); }

.hero-sub {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.16rem);
  line-height: 1.65;
  margin-bottom: 0;
}

.hero-meta {
  margin-top: 1.75rem;
  font-size: .85rem;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
}
.hero-meta > span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta > span + span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  margin-right: .6rem;
}

/* thin full-width panorama band */
.band {
  position: relative;
  margin: 3.5rem 0 0;
  overflow: hidden;
  background: var(--green-900);
}
.band img { display: block; width: 100%; height: clamp(140px, 22vw, 280px); object-fit: cover; object-position: center 60%; }
.band-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.5rem 1rem;
  background: linear-gradient(to top, rgba(6, 30, 22, .88), transparent);
  color: rgba(255, 255, 255, .92);
  font-size: .85rem;
  text-align: center;
}

/* ---------- 8. Buttons ---------- */
.cta-row {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--green-700);
  color: #fff;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid var(--green-700);
  box-shadow: var(--sh-1);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast),
              box-shadow var(--t-mid), transform var(--t-fast);
}
.btn:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn-quiet {
  background: transparent;
  color: var(--green-700);
  border-color: var(--line);
  box-shadow: none;
}
.btn-quiet:hover {
  background: var(--green-50);
  border-color: var(--green-600);
  color: var(--green-700);
  box-shadow: none;
}

.btn-gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--green-900); }

.hero-media .btn { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-900); }
.hero-media .btn:hover { background: var(--gold-400); border-color: var(--gold-400); }
.hero-media .btn-quiet { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .38); color: #fff; }
.hero-media .btn-quiet:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .6); color: #fff; }

/* ---------- 9. Disclosure strip ---------- */
.disclosure-strip {
  position: relative;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-600);
  background: linear-gradient(to right, var(--green-50), var(--paper-2));
  padding: 1.1rem 1.35rem;
  font-size: .95rem;
  line-height: 1.62;
  color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0 0;
}
.disclosure-strip p { margin: .3rem 0; }
.disclosure-strip p:first-of-type { margin-top: .1rem; }
.disclosure-strip p:last-child { margin-bottom: 0; }
.disclosure-strip a { font-weight: 600; }
.disclosure-strip .ds-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--white);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-pill);
  padding: .2rem .6rem;
  margin-bottom: .55rem;
}
.hero-media .disclosure-strip {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .2);
  border-left: 4px solid var(--gold-500);
  color: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: 62rem;
}
.hero-media .disclosure-strip strong { color: #fff; }
.hero-media .disclosure-strip .ds-label { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: var(--gold-400); }
.hero-media .disclosure-strip a { color: #fff; }

/* ---------- 10. Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--ink-mute); margin-bottom: 2rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); text-decoration: underline; }

/* ---------- 11. Cards & grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line); }
.card-media { position: relative; overflow: hidden; background: var(--paper-3); aspect-ratio: 16 / 10; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--t-slow);
}
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h2, .card-body h3, .card-body h4 {
  margin: 0 0 .55rem;
  border: 0; padding: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}
.card-body h2 a, .card-body h3 a, .card-body h4 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover, .card-body h3 a:hover, .card-body h4 a:hover { color: var(--green-700); }
.card-body p { font-size: .95rem; color: var(--ink-soft); margin-bottom: .8rem; }
.card-body .meta-line { margin-top: auto; }

/* ---------- 12. Tags & meta ---------- */
.tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: .22rem .58rem;
  border-radius: var(--radius-pill);
  margin-bottom: .8rem;
}
.tag-gold { color: var(--note); background: var(--gold-100); border-color: #f0e2c4; }

.meta-line {
  font-size: .8rem;
  color: var(--ink-mute);
  letter-spacing: .01em;
  line-height: 1.55;
  margin: 0;
}
.meta-line time { font-variant-numeric: tabular-nums; }

/* ---------- 13. Annotated list ---------- */
.annotated { list-style: none; padding: 0; margin: 1.5rem 0; }
.annotated li {
  padding: 1.05rem 0;
  border-top: 1px solid var(--line-2);
  margin: 0;
  transition: padding-left var(--t-mid);
}
.annotated li:last-child { border-bottom: 1px solid var(--line-2); }
.annotated li:hover { padding-left: .35rem; }
.annotated .a-title { font-weight: 700; font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); }
.annotated .a-title a { color: var(--ink); text-decoration: none; }
.annotated .a-title a:hover { color: var(--green-700); text-decoration: underline; }
.annotated .a-note { display: block; font-size: .93rem; color: var(--ink-soft); margin-top: .25rem; }

/* ---------- 14. Notice blocks ---------- */
.not-do {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
  box-shadow: var(--sh-1);
}
.not-do h3 { margin-top: 0; font-size: 1.05rem; }
.not-do ul { margin-bottom: 0; }
.not-do li { font-size: .96rem; }

.margin-note {
  border-left: 3px solid var(--gold-500);
  background: var(--gold-100);
  padding: .95rem 1.2rem;
  font-size: .93rem;
  color: #5f4a1a;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.8rem 0;
}
.margin-note p { margin: .3rem 0; }
.margin-note p:first-child { margin-top: 0; }
.margin-note p:last-child { margin-bottom: 0; }
.margin-note strong { color: #4a3a12; }

/* ---------- 15. Steps & timeline ---------- */
.steps { list-style: none; padding: 0; margin: 1.6rem 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.05rem 0 1.05rem 3.1rem;
  border-top: 1px solid var(--line-2);
  margin: 0;
  font-size: .98rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1.05rem;
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 600;
  color: var(--green-600);
}
.steps li:last-child { border-bottom: 1px solid var(--line-2); }
.steps .step-title { display: block; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .2rem; color: var(--ink); }

.timeline { list-style: none; padding: 0 0 0 1.35rem; margin: 1.6rem 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.5rem 1.15rem; margin: 0; font-size: .98rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.62rem; top: .5rem;
  width: .6rem; height: .6rem;
  background: var(--green-600);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--green-100);
}
.timeline .t-date {
  display: block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: .2rem;
}

/* ---------- 16. Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 1.7rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--sh-1);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.55; }
caption {
  caption-side: top;
  text-align: left;
  font-size: .84rem;
  color: var(--ink-mute);
  padding: .85rem 1rem .2rem;
}
th, td { text-align: left; padding: .7rem .95rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  border-bottom: 2px solid var(--green-100);
  white-space: nowrap;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: var(--paper-2); }
tbody th[scope="row"] { font-weight: 700; color: var(--ink); width: 34%; }
td { color: var(--ink-soft); }

/* ---------- 17. Featured / article lists ---------- */
.featured { margin: 3.5rem 0 2rem; }
.article-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  transition: box-shadow var(--t-mid);
}
.article-main:hover { box-shadow: var(--sh-3); }
.article-main-media { position: relative; overflow: hidden; background: var(--paper-3); min-height: 15rem; }
.article-main-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.article-main:hover .article-main-media img { transform: scale(1.04); }
.article-main-body { padding: 2rem 2.1rem 2.1rem; display: flex; flex-direction: column; }
.article-main-body h3 {
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.62rem);
  line-height: 1.28;
  margin: .1rem 0 .7rem;
}
.article-main-body h3 a { color: var(--ink); text-decoration: none; }
.article-main-body h3 a:hover { color: var(--green-700); }
.article-main-body p { color: var(--ink-soft); }
.article-main-body .cta-row { margin-top: auto; padding-top: 1.2rem; }

.article-list { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 1.4rem; }
.article-list li {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 1.55rem 1.7rem;
  margin: 0;
  box-shadow: var(--sh-1);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.article-list li:hover { transform: translateY(-2px); box-shadow: var(--sh-3); border-color: var(--line); }
.article-list h2, .article-list h3 {
  border: 0; padding: 0; margin: .2rem 0 .55rem;
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.36rem);
  line-height: 1.34;
}
.article-list h2 a, .article-list h3 a { color: var(--ink); text-decoration: none; }
.article-list h2 a:hover, .article-list h3 a:hover { color: var(--green-700); }
.article-list p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- 18. FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--line-2);
  padding: 1.3rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.faq-item h3 {
  margin: 0 0 .6rem;
  font-size: 1.1rem;
  position: relative;
  padding-left: 1.7rem;
}
.faq-item h3::before {
  content: "?";
  position: absolute;
  left: 0; top: .05em;
  width: 1.2rem; height: 1.2rem;
  display: grid; place-items: center;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 50%;
}
.faq-item p { margin-bottom: .7rem; font-size: .98rem; color: var(--ink-soft); }
.faq-item p:last-child { margin-bottom: 0; }

/* ---------- 19. Update log ---------- */
.update-log { list-style: none; padding: 0; font-size: .91rem; color: var(--ink-soft); }
.update-log li {
  padding: .6rem 0;
  border-top: 1px solid var(--line-2);
  margin: 0;
}
.update-log li:last-child { border-bottom: 1px solid var(--line-2); }
.update-log time {
  display: inline-block;
  min-width: 7.5rem;
  font-weight: 700;
  color: var(--green-600);
  font-size: .8rem;
  letter-spacing: .03em;
}

/* ---------- 20. Figures ---------- */
figure.figure {
  margin: 2.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--sh-2);
}
figure.figure img { display: block; width: 100%; height: auto; }
.figure figcaption {
  font-size: .84rem;
  color: var(--ink-mute);
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--line-2);
  background: var(--paper-2);
  line-height: 1.55;
}

/* wide "hero" figure that breaks out beyond the text measure */
.figure-wide { margin: 2.25rem 0 3rem; }
@media (min-width: 1000px) {
  .figure-wide {
    width: min(58rem, calc(100vw - 3rem));
    margin-left: calc((100% - min(58rem, calc(100vw - 3rem))) / 2);
  }
}

/* image + text split */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2.25rem;
  align-items: center;
  margin: 2.25rem 0;
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  background: var(--paper-3);
}
.split-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.split-body h2:first-child, .split-body h3:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---------- 21. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
}
.stat { background: var(--white); padding: 1.35rem 1.25rem; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--green-700);
  letter-spacing: -.02em;
}
.stat-label { display: block; font-size: .84rem; color: var(--ink-soft); margin-top: .35rem; line-height: 1.45; }

/* ---------- 22. Article page ---------- */
.article-head { margin-bottom: 2.25rem; }
.article-head h1 { max-width: 30ch; }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem 1.4rem;
  font-size: .87rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
  margin: 1.5rem 0 0;
}
.byline > span { display: inline-flex; align-items: center; gap: .4rem; }

.toc {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  margin: 2.25rem 0;
  font-size: .95rem;
}
.toc strong {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: .6rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .3rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--green-700); text-decoration: underline; }

.references { font-size: .92rem; color: var(--ink-soft); }
.references li { margin-bottom: .7rem; }

.author-box {
  border-top: 2px solid var(--ink);
  margin-top: 3.25rem;
  padding-top: 1.35rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.author-box p { margin-bottom: .6rem; }

.further {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.4rem;
}
.further h2 { border: 0; padding: 0; margin-top: 0; font-size: 1.3rem; }
.further ul { font-size: .96rem; color: var(--ink-soft); }

/* ---------- 23. Forms ---------- */
.form-field { margin-bottom: 1.35rem; }
label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .4rem;
  color: var(--ink);
}
label .req { color: var(--warn); }

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(16, 33, 28, .04);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input:hover, textarea:hover { border-color: var(--ink-mute); }
input:focus, textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px var(--green-100);
  outline: none;
}
textarea { min-height: 150px; resize: vertical; }
.form-help { font-size: .85rem; color: var(--ink-mute); margin: .4rem 0 0; }

.mailto-note {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: .9rem 1.15rem;
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 1.2rem 0 1.6rem;
}

#form-error {
  background: var(--warn-bg);
  border: 1px solid #f3c9c9;
  border-radius: var(--radius);
  padding: .7rem .95rem;
  font-size: .9rem;
  color: var(--warn);
  margin: 0 0 1.2rem;
}

/* ---------- 24. Legal pages ---------- */
.legal-page h2 { font-size: 1.22rem; margin-top: 2.6rem; }
.legal-page p, .legal-page li { font-size: .97rem; }
.legal-page { max-width: 46rem; }

/* ---------- 25. Footer ---------- */
.site-footer {
  border-top: 3px solid var(--green-800);
  margin-top: 4rem;
  padding: 3rem 0 2.75rem;
  font-size: .9rem;
  color: var(--ink-soft);
  background: linear-gradient(to bottom, var(--paper-2), var(--paper));
}
.footer-grid {
  max-width: var(--w-home);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}
.footer-grid p { margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: .7rem 0 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--green-700); text-decoration: underline; }

.footer-col-title {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 .5rem;
}

.footer-legal {
  display: block;
  font-size: .8rem;
  color: var(--ink-mute);
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.footer-legal p { margin-bottom: .5rem; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal a { color: var(--ink-mute); }

/* ---------- 26. Utilities ---------- */
.center-narrow { max-width: var(--w-article); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.section-intro { max-width: 62ch; color: var(--ink-soft); }
.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.5rem;
}
.eyebrow-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* scroll-reveal — only applied when JS is running, so content is never
   hidden for users (or crawlers) without scripting */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* ---------- 27. Responsive ---------- */
@media (max-width: 900px) {
  .article-main { grid-template-columns: 1fr; }
  .article-main-media { min-height: 13rem; aspect-ratio: 16 / 9; }
  .article-main-media img { position: static; height: 100%; }
}

@media (max-width: 760px) {
  body { font-size: 1.02rem; }
  .wrap-home, .wrap-wide, .wrap-service, .wrap-article, .wrap-narrow { padding: 0 1.15rem; }
  .header-inner { padding: .7rem 1.15rem; flex-wrap: wrap; gap: .6rem; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--line-2);
    margin-top: .35rem;
  }
  .main-nav.open { display: block; animation: navIn .22s var(--ease); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
  .main-nav li { border-bottom: 1px solid var(--line-2); margin: 0; }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { padding: .85rem .6rem; border-radius: 0; font-size: .98rem; }

  main { padding: 2rem 0 3rem; }
  .hero { padding: 2rem 0 .5rem; }
  .hero-media { border-radius: var(--radius); margin-bottom: 2.25rem; }
  .hero-media-inner { padding: 2.1rem 1.3rem 2.3rem; }
  .hero-media h1 { max-width: none; }

  h2 { margin-top: 2.4rem; padding-top: 1.5rem; }
  .band img { height: clamp(120px, 34vw, 200px); }
  .band-caption { font-size: .78rem; padding: 2rem 1rem .8rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .article-main-body { padding: 1.5rem 1.35rem 1.7rem; }
  .article-list li { padding: 1.3rem 1.25rem; }
  .cta-row { gap: .65rem; }
  .btn { width: 100%; }
  .cta-row .btn { width: auto; flex: 1 1 auto; }
  .update-log time { min-width: 0; display: block; }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 28. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .article-list li:hover, .btn:hover { transform: none; }
  .card:hover .card-media img, .article-main:hover .article-main-media img { transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-row, .nav-toggle, .toc, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  main { padding: 0; }
  a { color: #000; text-decoration: none; }
  .disclosure-strip, .not-do, .margin-note { border: 1px solid #999; background: #fff; }
  h2 { page-break-after: avoid; }
  figure.figure, .card, .article-list li { page-break-inside: avoid; box-shadow: none; }
}
