/* ==========================================================================
   Slaney Livestock & Dairy Consulting
   Design system + site styles
   Palette: deep pine green + warm paper white + restrained harvest gold
   Type: Fraunces (display serif) / Inter (body sans)
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/*  Design tokens                                                             */
/* -------------------------------------------------------------------------- */
:root {
  /* Brand greens */
  --green-900: #0F231A;
  --green-800: #163024;
  --green-700: #1B3A2B;   /* primary brand */
  --green-600: #244A37;
  --green-500: #2E5A42;
  --green-400: #3C6E51;
  --green-300: #5C8A6C;
  --sage-200:  #8CA891;
  --sage-100:  #C4D3C4;

  /* Paper / neutrals */
  --paper:      #FAF7F0;  /* page background */
  --paper-2:    #F3EEE3;  /* alt band */
  --surface:    #FFFFFF;  /* cards */
  --surface-2:  #FBF9F4;

  /* Harvest accent (used sparingly) */
  --gold-600:  #7A5A1E;
  --gold-500:  #C29A54;
  --gold-400:  #D8B978;
  --gold-soft: #F0E4CA;

  /* Ink / text */
  --ink:        #17211B;  /* primary text on paper */
  --ink-2:      #45514A;  /* secondary text */
  --ink-3:      #636E66;  /* muted */
  --on-green:   #F3F0E7;  /* primary text on green */
  --on-green-2: #C0CBBF;  /* secondary text on green */

  /* Lines */
  --line:        rgba(23, 33, 27, 0.12);
  --line-strong: rgba(23, 33, 27, 0.22);
  --line-green:  rgba(243, 240, 231, 0.16);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --fs-xs:   0.75rem;   /* 12 */
  --fs-sm:   0.875rem;  /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-lg:   1.125rem;  /* 18 */
  --fs-xl:   1.25rem;   /* 20 */
  --fs-2xl:  clamp(1.35rem, 1.1rem + 1vw, 1.6rem);
  --fs-3xl:  clamp(1.7rem, 1.3rem + 1.8vw, 2.15rem);
  --fs-4xl:  clamp(2.1rem, 1.5rem + 2.8vw, 3rem);
  --fs-5xl:  clamp(2.6rem, 1.6rem + 4.4vw, 4.25rem);

  /* Spacing (8px base) */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Shadows (soft, earthy — never harsh) */
  --shadow-sm: 0 1px 2px rgba(15, 35, 26, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(15, 35, 26, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 35, 26, 0.28);

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --nav-h: 74px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* -------------------------------------------------------------------------- */
/*  Reset / base                                                              */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@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;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 999;
  background: var(--green-700);
  color: var(--on-green);
  padding: 10px 18px;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 12px; }

/* -------------------------------------------------------------------------- */
/*  Typography                                                                */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-optical-sizing: auto;
}
h1 { font-size: var(--fs-5xl); font-weight: 480; }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
/* Component sub-headings promoted to <h3> for a correct outline, kept visually like h4 */
.subhead { font-family: var(--font-body); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-500);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--gold-500);
}
.on-dark .eyebrow { color: var(--gold-400); }
.on-dark .eyebrow::before { background: var(--gold-500); }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 60ch;
}
.text-serif { font-family: var(--font-display); }

/* -------------------------------------------------------------------------- */
/*  Layout helpers                                                            */
/* -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--s-6); } }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head { max-width: 62ch; margin-bottom: var(--s-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 { margin-top: var(--s-3); }
.section-head p { margin-top: var(--s-4); }

.band-green { background: var(--green-700); color: var(--on-green); }
.band-green h1, .band-green h2, .band-green h3 { color: var(--on-green); }
.band-green p { color: var(--on-green-2); }
.band-paper2 { background: var(--paper-2); }

.grid { display: grid; gap: var(--s-5); }
.divider { height: 1px; background: var(--line); border: 0; }

/* -------------------------------------------------------------------------- */
/*  Buttons                                                                   */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--gold-500);
  color: #241a06;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--dark {
  background: var(--green-700);
  color: var(--on-green);
}
.btn--dark:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-700); background: rgba(46,90,66,0.05); }

.on-dark .btn--ghost { color: var(--on-green); border-color: var(--line-green); }
/* .ctaband is a dark surface but not marked .on-dark — without this a ghost
   button renders near-black on dark green and is effectively invisible. */
.ctaband .btn--ghost { color: var(--on-green); border-color: var(--line-green); }
.ctaband .btn--ghost:hover { border-color: var(--gold-400); color: #fff; background: rgba(243,240,231,0.06); }
.on-dark .btn--ghost:hover { border-color: var(--gold-400); color: #fff; background: rgba(243,240,231,0.06); }

.btn--lg { padding: 16px 32px; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600;
  color: var(--green-600);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.18s var(--ease), gap 0.18s var(--ease);
  padding-bottom: 1px;
}
.textlink:hover { border-color: var(--gold-500); gap: 12px; }
.on-dark .textlink { color: var(--gold-400); }

/* -------------------------------------------------------------------------- */
/*  Navigation                                                                */
/* -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
@media (min-width: 768px) { .nav__inner { padding-inline: var(--s-6); } }

.nav.scrolled {
  background: rgba(250, 247, 240, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
/* Nav sitting over a dark hero */
.nav--over-hero { color: var(--on-green); }
.nav--over-hero .nav__link { color: var(--on-green-2); }
.nav--over-hero .nav__link:hover { color: #fff; }
.nav--over-hero .brand__name { color: var(--on-green); }
.nav--over-hero .brand__tag { color: var(--on-green-2); }
.nav--over-hero .nav__toggle span { background: var(--on-green); }
.nav--over-hero.scrolled { color: var(--ink); }
.nav--over-hero.scrolled .nav__link { color: var(--ink-2); }
.nav--over-hero.scrolled .nav__link:hover { color: var(--green-700); }
.nav--over-hero.scrolled .brand__name { color: var(--ink); }
.nav--over-hero.scrolled .brand__tag { color: var(--ink-3); }
.nav--over-hero.scrolled .nav__toggle span { background: var(--ink); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 78px; flex: none; line-height: 0; }
.brand__mark img, .brand__mark svg { width: 100%; height: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--s-6);
}
.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.18s var(--ease);
}
.nav__link:hover { color: var(--green-700); }
.nav__link.active { color: var(--green-700); }
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
/* Language switcher — sits between the nav links and the CTA */
.langswitch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--s-4);
  padding: 3px;
  border: 1px solid var(--line-green);
  border-radius: var(--r-pill);
  flex: none;
}
.langswitch a {
  display: block;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--on-green-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.langswitch a:hover { color: var(--on-green); }
.langswitch a[aria-current="true"] { background: var(--gold-500); color: var(--green-900); }
.nav.scrolled .langswitch { border-color: var(--line); }
.nav.scrolled .langswitch a { color: var(--ink-3); }
.nav.scrolled .langswitch a:hover { color: var(--ink); }
.nav.scrolled .langswitch a[aria-current="true"] { background: var(--green-700); color: var(--on-green); }
@media (max-width: 1140px) { .langswitch { display: none; } }

/* Mobile: language options live in the drawer instead */
.drawer__lang {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-green);
}
.drawer__lang a {
  padding: 8px 16px;
  border: 1px solid var(--line-green);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-green-2);
}
.drawer__lang a[aria-current="true"] { background: var(--gold-500); color: var(--green-900); border-color: var(--gold-500); }

.nav__cta { display: none; }

@media (min-width: 920px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
}

/* Mobile toggle */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
@media (min-width: 920px) { .nav__toggle { display: none; } }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--green-800);
  color: var(--on-green);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-8) var(--s-6);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0.45s var(--ease);
}
body.menu-open .drawer { transform: translateY(0); visibility: visible; }
.drawer__links { display: flex; flex-direction: column; gap: 4px; }
.drawer__link {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 500;
  color: var(--on-green);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-green);
  opacity: 0;
  transform: translateY(12px);
  transition: color 0.2s var(--ease);
}
.drawer__link:hover { color: var(--gold-400); }
body.menu-open .drawer__link {
  animation: drawerIn 0.5s var(--ease) forwards;
}
body.menu-open .drawer__link:nth-child(1) { animation-delay: 0.10s; }
body.menu-open .drawer__link:nth-child(2) { animation-delay: 0.16s; }
body.menu-open .drawer__link:nth-child(3) { animation-delay: 0.22s; }
body.menu-open .drawer__link:nth-child(4) { animation-delay: 0.28s; }
body.menu-open .drawer__link:nth-child(5) { animation-delay: 0.34s; }
@keyframes drawerIn { to { opacity: 1; transform: translateY(0); } }
.drawer__foot { margin-top: var(--s-7); display: flex; flex-direction: column; gap: 14px; }
.drawer__foot a { color: var(--on-green-2); font-size: var(--fs-base); }
.drawer__foot .btn { align-self: flex-start; }

/* -------------------------------------------------------------------------- */
/*  Hero                                                                      */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--green-800);
  color: var(--on-green);
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(60,110,81,0.55) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(15,35,26,0.9) 0%, transparent 60%),
    linear-gradient(160deg, var(--green-700) 0%, var(--green-800) 45%, var(--green-900) 100%);
}
/* Brand emblem as a soft backdrop behind the hero */
.hero__emblem {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("/assets/img/logo-mark.png?v=4");
  background-repeat: no-repeat;
  background-position: center 62%;
  background-size: min(1150px, 104%) auto;
  opacity: 0.08;
}
@media (max-width: 900px) {
  .hero__emblem { background-size: 165% auto; background-position: center 52%; opacity: 0.10; }
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero__grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}
.hero h1 { color: var(--on-green); margin-top: 0; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--gold-400); }
/* The "what he actually does" line — must land inside five seconds */
.hero__lead {
  color: var(--on-green);
  font-size: var(--fs-2xl);
  line-height: 1.48;
  max-width: 44ch;
  margin-top: var(--s-3);   /* runs on from the h1 — keep them close */
}
.hero__body { color: var(--on-green-2); font-size: var(--fs-base); line-height: 1.7; max-width: 52ch; margin-top: var(--s-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }

.hero__panel {
  background: rgba(15, 35, 26, 0.58);
  border: 1px solid var(--line-green);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-6) var(--s-5);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero__panel h2, .hero__panel h3 { color: var(--on-green); margin-bottom: var(--s-4); }
/* Equal billing with the h1 — this is the "what he actually does" block */
.hero__panel h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: var(--s-5);
}
.hero__panel-list { display: flex; flex-direction: column; gap: 2px; }
.hero__panel-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-green);
  color: var(--on-green-2);
  font-size: var(--fs-base);
  line-height: 1.55;
}
.hero__panel-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__panel-list svg { width: 26px; height: 26px; color: var(--gold-400); flex: none; }
.hero__panel-list strong { color: var(--on-green); display: block; font-family: var(--font-body); font-size: var(--fs-lg); font-weight: 600; margin-bottom: 2px; }

/* Stat strip */
.statstrip {
  border-top: 1px solid var(--line-green);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
@media (min-width: 640px) { .statstrip { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.7rem);
  font-weight: 500;
  color: #fff;
  line-height: 1;
}
.stat__num span { color: var(--gold-400); }
.stat__label { margin-top: 8px; font-size: var(--fs-sm); color: var(--on-green-2); }

/* -------------------------------------------------------------------------- */
/*  Page header (interior pages)                                              */
/* -------------------------------------------------------------------------- */
.pagehead {
  position: relative;
  background: var(--green-800);
  color: var(--on-green);
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(48px, 6vw, 84px);
  overflow: hidden;
  isolation: isolate;
}
.pagehead__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(60,110,81,0.5) 0%, transparent 55%),
    linear-gradient(160deg, var(--green-700), var(--green-900));
}
/* Same logo watermark as the homepage hero, sized for the shorter page head */
.pagehead__emblem {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("/assets/img/logo-mark.png?v=20");
  background-repeat: no-repeat;
  background-position: center 58%;
  background-size: min(700px, 108%) auto;
  opacity: 0.055;
}
@media (min-width: 768px) {
  /* pushed right so it never sits under the left-aligned headline and lead */
  .pagehead__emblem { background-size: min(880px, 62%) auto; background-position: right -4% center; opacity: 0.07; }
}
.pagehead h1 { color: var(--on-green); max-width: 18ch; }
.pagehead .lead { color: var(--on-green-2); margin-top: var(--s-4); }
.breadcrumb { display: flex; gap: 8px; font-size: var(--fs-sm); color: var(--on-green-2); margin-bottom: var(--s-4); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb span { color: var(--gold-400); }

/* -------------------------------------------------------------------------- */
/*  Cards & feature grids                                                     */
/* -------------------------------------------------------------------------- */
.cards { display: grid; gap: var(--s-5); }
.cards--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage-200); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--green-600), var(--green-800));
  color: var(--gold-400);
  margin-bottom: var(--s-5);
}
.card__icon svg { width: 26px; height: 26px; }
.card__num {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold-600);
  letter-spacing: 0.05em;
}
.card h3 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.card p { font-size: var(--fs-base); }
.card__link { margin-top: var(--s-5); }

/* Service (detailed, alternating) */
.svc {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-block: var(--s-7);
  border-top: 1px solid var(--line);
}
.svc:first-of-type { border-top: 0; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .svc--flip .svc__media { order: -1; }
}
.svc__body h2 { font-size: var(--fs-3xl); margin-bottom: var(--s-4); }
.svc__body h3.subhead { margin-bottom: var(--s-3); color: var(--ink); }
.svc__tag {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--gold-600);
  font-weight: 600;
}
.svc__quote {
  margin: var(--s-5) 0 0;
  padding: var(--s-4) 0 var(--s-4) var(--s-5);
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--green-700);
}
.svc__list { margin-top: var(--s-5); display: grid; gap: 12px; }
.svc__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.svc__list svg { width: 20px; height: 20px; color: var(--green-500); flex: none; margin-top: 3px; }

.svc__media {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--green-800);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.svc__media .illus { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* -------------------------------------------------------------------------- */
/*  "Why choose" / value rows                                                 */
/* -------------------------------------------------------------------------- */
.values { display: grid; gap: var(--s-6); }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-md);
  transition: background 0.2s var(--ease);
}
.value:hover { background: var(--surface-2); }
.value__mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-600);
}
.value__mark svg { width: 22px; height: 22px; }
.value h3 { margin-bottom: 6px; }
.value p { font-size: var(--fs-base); }

/* -------------------------------------------------------------------------- */
/*  Process / steps                                                           */
/* -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--s-5); counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: var(--s-6) var(--s-5);
  border: 1px solid var(--line-green);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
}
.step__n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--gold-400);
  line-height: 1;
  display: block;
  margin-bottom: var(--s-4);
}
.step h3 { color: var(--on-green); margin-bottom: 8px; }
.step p { font-size: var(--fs-sm); color: var(--on-green-2); }

/* -------------------------------------------------------------------------- */
/*  Regions / markets                                                         */
/* -------------------------------------------------------------------------- */
.markets { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .markets { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); } }
.markets__map {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--green-800);
  border: 1px solid var(--line);
  aspect-ratio: 5 / 4;
}
.markets__list { display: grid; gap: var(--s-4); }
.market {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.market:last-child { border-bottom: 0; }
.market__dot {
  width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 6px;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.market h3 { margin-bottom: 4px; }
.market p { font-size: var(--fs-sm); }

/* -------------------------------------------------------------------------- */
/*  Project gallery                                                           */
/* -------------------------------------------------------------------------- */
.gallery { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.gallery figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage-200); }
.gallery__img { position: relative; aspect-ratio: 4 / 3; background: var(--green-800); }
.gallery__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { padding: var(--s-5); font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.55; }
.gallery figcaption strong { display: block; color: var(--ink); font-size: var(--fs-base); margin-bottom: 4px; }

/* -------------------------------------------------------------------------- */
/*  Career timeline (Projects)                                                */
/* -------------------------------------------------------------------------- */
.timeline { max-width: 106ch; margin: 0 auto; }
.tl__item {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 52px);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
}
.tl__item:first-child { border-top: 0; padding-top: 0; }
.tl__years {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  line-height: 1.15;
  color: var(--green-700);
}
.tl__place {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tl__credit {
  display: block;
  margin-top: var(--s-5);
  padding-left: var(--s-3);
  border-left: 2px solid var(--gold-soft);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--ink-3);
}
.tl__credit strong { display: block; color: var(--green-700); font-weight: 600; margin-bottom: 2px; }
.tl__logo { display: block; margin-top: var(--s-5); }
.tl__logo img { display: block; height: 104px; width: auto; max-width: 100%; }
@media (max-width: 760px) { .tl__logo { margin-top: var(--s-3); } .tl__logo img { height: 88px; } }
.tl__body > h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.tl__list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.tl__list li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.65; }
.tl__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}
.tl__sub { margin-top: var(--s-5); padding-left: var(--s-5); border-left: 2px solid var(--gold-soft); }
.tl__sub h4 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--green-700);
}
.tl__media {
  grid-column: 1 / -1;          /* break out of the text column, span the whole row */
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
  align-items: start;           /* mixed portrait/landscape sit top-aligned */
}
.tl__media figure { margin: 0; }
/* 3+ photos: flow them in columns so mixed portrait/landscape tile without
   gaps. 1-2 photos keep the grid above, so a single photo still runs full width. */
.tl__media:has(figure:nth-child(3)) {
  display: block;
  columns: 300px;
  column-gap: var(--s-5);
}
.tl__media:has(figure:nth-child(3)) figure {
  break-inside: avoid;
  margin-bottom: var(--s-5);
}

.tl__media img {
  display: block;
  width: 100%;
  height: auto;                 /* natural aspect — never crop the photo */
  background: var(--green-800);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.tl__media figcaption { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.55; }
.tl__media figcaption .fig-note { display: block; margin-top: 3px; font-style: italic; opacity: 0.8; }
@media (max-width: 760px) {
  .tl__item { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-6) 0; }
  .tl__years { font-size: var(--fs-xl); }
}

/* -------------------------------------------------------------------------- */
/*  Testimonials                                                              */
/* -------------------------------------------------------------------------- */
.quote-feature {
  max-width: 44ch;
}
.quote-feature blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 400;
  line-height: 1.28;
  color: var(--on-green);
  letter-spacing: -0.01em;
}
.quote-feature .mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--gold-500);
  display: block;
  height: 30px;
}
.quote-feature cite {
  display: block;
  margin-top: var(--s-5);
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--on-green-2);
}
.quote-feature cite strong { color: var(--gold-400); }

/* Written references — collapsed rows that expand (Testimonials page) */
.refs { max-width: 74ch; margin: 0 auto; display: grid; gap: var(--s-4); }
.ref {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ref[open] { border-color: var(--sage-200); box-shadow: var(--shadow-md); }
.ref__summary {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s var(--ease);
}
.ref__summary::-webkit-details-marker { display: none; }
.ref__summary:hover { background: var(--surface-2); }
.ref__summary:focus-visible { outline: 2px solid var(--gold-500); outline-offset: -3px; }
.ref__id { flex: 1 1 auto; min-width: 0; }
.ref__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.25;
  color: var(--green-700);
}
.ref__post { font-size: var(--fs-base); color: var(--ink-3); }
.ref__role {
  display: block;
  margin-top: 5px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-3);
}
.ref__cue {
  flex: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-600);
}
.ref[open] .ref__cue { opacity: 0; }
.ref__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green-600);
  transition: transform 0.25s var(--ease), background 0.2s var(--ease);
}
.ref__toggle svg { width: 15px; height: 15px; }
.ref[open] .ref__toggle { transform: rotate(180deg); background: var(--gold-soft); border-color: var(--gold-400); }
.ref__body { padding: var(--s-5) var(--s-6) var(--s-6); border-top: 1px solid var(--line); }
.ref__body p { margin: 0; color: var(--ink-2); line-height: 1.7; }
.ref__body p + p { margin-top: var(--s-4); }
.ref__list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: 10px; }
.ref__list li { position: relative; padding-left: 22px; color: var(--ink-2); line-height: 1.6; }
.ref__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}
.ref__list + p { margin-top: var(--s-4); }
@media (max-width: 640px) {
  .ref__summary { padding: var(--s-4); gap: var(--s-3); }
  .ref__body { padding: var(--s-4); }
  .ref__cue { display: none; }
}

/* ---------------------------------------------------------------------- */
/*  Preloader — his logo, on brand green, first thing on screen            */
/* ---------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--green-700);
  /* safety net: fades itself out even if main.js never runs */
  animation: plOut 0.6s var(--ease) 5.4s forwards;
}
html.no-js .preloader,
html.preloaded .preloader { display: none; }
.preloader__inner { display: grid; justify-items: center; padding: var(--s-5); }
.preloader__logo {
  display: block;
  width: min(560px, 86vw);
  height: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.972);
  animation: plIn 1s var(--ease) 0.12s forwards;
}
.preloader__rule {
  display: block;
  width: min(560px, 86vw);
  height: 1px;
  margin-top: 26px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  transform: scaleX(0);
  animation: plRule 1.1s var(--ease) 0.5s forwards;
}
.preloader.is-done {
  animation: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0s linear 0.55s;
}
@keyframes plIn   { to { opacity: 1; transform: none; } }
@keyframes plRule { to { transform: scaleX(1); } }
@keyframes plOut  { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .preloader__logo, .preloader__rule { animation-duration: 0.01ms; animation-delay: 0s; opacity: 1; transform: none; }
  .preloader { animation-delay: 1s; }
}
}

.tcards { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .tcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tcards { grid-template-columns: repeat(3, 1fr); } }
.tcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tcard__stars { display: flex; gap: 3px; color: var(--gold-500); margin-bottom: var(--s-4); }
.tcard__stars svg { width: 18px; height: 18px; }
.tcard blockquote {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  flex: 1;
}
.tcard__by { display: flex; align-items: center; gap: 12px; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.tcard__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--green-500), var(--green-800));
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
}
.tcard__by cite { font-style: normal; line-height: 1.35; }
.tcard__by strong { display: block; font-size: var(--fs-sm); color: var(--ink); }
.tcard__by span { font-size: var(--fs-xs); color: var(--ink-3); }

/* -------------------------------------------------------------------------- */
/*  CTA band                                                                  */
/* -------------------------------------------------------------------------- */
.ctaband {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-800);
  color: var(--on-green);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.ctaband h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.ctaband p { color: var(--on-green-2); max-width: 52ch; margin: var(--s-4) auto 0; }
.ctaband__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-7); }

/* -------------------------------------------------------------------------- */
/*  Forms                                                                     */
/* -------------------------------------------------------------------------- */
.form-wrap {
  display: grid;
  gap: var(--s-8);
  align-items: start;
}
@media (min-width: 940px) { .form-wrap { grid-template-columns: 0.85fr 1.15fr; } }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.form__grid { display: grid; gap: var(--s-5); }
@media (min-width: 620px) { .form__grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: var(--gold-600); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2345514A' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(46,90,66,0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field[data-error] input,
.field[data-error] select,
.field[data-error] textarea { border-color: #B4462F; background: #FDF4F1; }
.field .error-msg { display: none; font-size: var(--fs-xs); color: #B4462F; font-weight: 500; }
.field[data-error] .error-msg { display: block; }

.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.form__consent input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; accent-color: var(--green-600); flex: none; }
.form__actions { margin-top: var(--s-6); display: flex; flex-direction: column; gap: 12px; }
.form__note { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; }

.form__success {
  display: none;
  text-align: center;
  padding: var(--s-7) var(--s-5);
}
.form__success.show { display: block; animation: fadeUp 0.5s var(--ease); }
.form.is-success .form__grid,
.form.is-success .form__actions,
.form.is-success .form__consent,
.form.is-success .form__lead { display: none; }
.form__success-mark {
  width: 64px; height: 64px; margin: 0 auto var(--s-5);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-soft); color: var(--green-700);
}
.form__success-mark svg { width: 32px; height: 32px; }
.form__success h3 { margin-bottom: var(--s-3); }

/* Contact aside */
.contact-aside { display: grid; gap: var(--s-5); }
.contact-card {
  background: var(--green-800);
  color: var(--on-green);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-card h3 { color: #fff; margin-bottom: var(--s-5); }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-green); }
.contact-row:last-child { border-bottom: 0; }
.contact-row__icon {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center; border-radius: var(--r-sm);
  background: rgba(243,240,231,0.08); color: var(--gold-400);
}
.contact-row__icon svg { width: 20px; height: 20px; }
.contact-row__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-green-2); }
.contact-row a, .contact-row p { color: var(--on-green); font-size: var(--fs-base); font-weight: 500; word-break: break-word; }
.contact-row a:hover { color: var(--gold-400); }

.mini-list { display: grid; gap: 10px; }
.mini-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.mini-list svg { width: 18px; height: 18px; color: var(--green-500); flex: none; margin-top: 3px; }

/* -------------------------------------------------------------------------- */
/*  About page bits                                                           */
/* -------------------------------------------------------------------------- */
.about-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.portraits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.portraits .portrait { aspect-ratio: 3 / 4; margin: 0; }
.portraits .portrait .illus { object-position: center 28%; }
@media (max-width: 560px) { .portraits { grid-template-columns: 1fr; gap: var(--s-5); } }
.portrait {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  background: var(--green-800);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.portrait .illus { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.portrait__badge {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(250,247,240,0.94);
  backdrop-filter: blur(4px);
  border-radius: var(--r-md);
  padding: 14px 18px;
}
.portrait__badge strong { display: block; font-family: var(--font-display); font-size: var(--fs-xl); color: var(--green-700); }
.portrait__badge span { font-size: var(--fs-xs); color: var(--ink-3); }

.prose > * + * { margin-top: var(--s-4); }
.prose p { font-size: var(--fs-lg); color: var(--ink-2); max-width: 62ch; }

.creds { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .creds { grid-template-columns: repeat(2, 1fr); } }
.cred {
  display: flex; gap: 12px; align-items: flex-start;
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.cred svg { width: 22px; height: 22px; color: var(--green-500); flex: none; margin-top: 2px; }
.cred strong { display: block; color: var(--ink); font-size: var(--fs-base); }
.cred span { font-size: var(--fs-sm); color: var(--ink-3); }

.timeline { border-left: 2px solid var(--line-strong); padding-left: var(--s-6); display: grid; gap: var(--s-6); }
.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; left: calc(-1 * var(--s-6) - 7px); top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-500); box-shadow: 0 0 0 4px var(--paper);
}
.tl__year { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--green-700); font-weight: 600; }
.tl h3 { margin: 4px 0 6px; }
.tl p { font-size: var(--fs-base); }

/* -------------------------------------------------------------------------- */
/*  Footer                                                                    */
/* -------------------------------------------------------------------------- */
.footer {
  background: var(--green-900);
  color: var(--on-green-2);
  padding-top: var(--s-8);
}
.footer__top {
  display: grid;
  gap: var(--s-7);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line-green);
}
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand__name { color: var(--on-green); }
.footer .brand__tag { color: var(--on-green-2); }
.footer__blurb { margin-top: var(--s-4); max-width: 40ch; color: var(--on-green-2); font-size: var(--fs-sm); }
.footer__col h2, .footer__col h5 {
  font-family: var(--font-body); line-height: 1.5;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold-400); margin-bottom: var(--s-4); font-weight: 700;
}
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { color: var(--on-green-2); font-size: var(--fs-sm); transition: color 0.18s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__lang { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-4); }
.footer__lang a { color: var(--on-green-2); font-size: var(--fs-sm); transition: color 0.18s var(--ease); }
.footer__lang a:hover { color: #fff; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  justify-content: space-between; align-items: center;
  padding-block: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--on-green-2);
}
.footer__bottom a:hover { color: #fff; }

/* -------------------------------------------------------------------------- */
/*  Scroll reveal                                                             */
/* -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------------------- */
/*  Utilities                                                                 */
/* -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.center { text-align: center; }
.maxw-prose { max-width: 65ch; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Full company name in the brand lockup — keep it on one line on narrow phones */
.brand__tag { white-space: nowrap; }
@media (max-width: 420px) {
  .brand__mark { width: 64px; }
  .brand__name { font-size: 0.98rem; }
  .brand__tag { font-size: 0.55rem; letter-spacing: 0.09em; }
}
