/* ==========================================================================
   Aemaris Group — corporate site stylesheet
   Palette and type follow the Aemaris Apex identity package.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Brand palette — the four identity colours, unaltered. */
  --midnight:  #0E1A2B;   /* primary background */
  --charcoal:  #2C3440;   /* raised surfaces on dark, body copy on light */
  --bronze:    #A9825A;   /* the single accent — rules, marks, eyebrows */
  --offwhite:  #F7F5F1;   /* light plate, primary text on dark */

  /* Working tints, all derived from the four above. Bronze is lightened for
     small text on dark surfaces and darkened on the off-white plate; the
     brand bronze itself never clears 4.5:1 against either. */
  --midnight-deep: #091320;
  --surface:       #2C3440;   /* charcoal, used as a raised card ground */
  --bronze-lift:   #C49B6C;   /* small bronze text + hover, on dark */
  --bronze-deep:   #7E5F3E;   /* bronze on the off-white plate */
  --ink:           #F7F5F1;   /* headings and emphasis on dark */
  --ink-mute:      #C2C8D0;   /* body copy on dark — 10:1 on midnight */
  --mute:          #97A0AC;   /* labels and meta on dark — 6.4:1 */
  --charcoal-mute: #4C5563;   /* body copy on the off-white plate */

  --alert:        #E09A85;   /* form errors only — 7.1:1 on midnight */
  --alert-wash:   rgba(224, 154, 133, .09);

  --rule:         rgba(169, 130, 90, .30);
  --rule-strong:  rgba(169, 130, 90, .60);
  --rule-navy:    rgba(44, 52, 64, .18);
  --wash:         rgba(169, 130, 90, .08);

  /* Jost — 300 display, 400 body and lockups, per the identity sheet. */
  --jost: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  font-family: var(--jost);
  font-weight: 400;                /* JOST 400 — body copy */
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: .004em;
  color: var(--ink-mute);
  background: var(--midnight);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bronze-lift); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--bronze-lift); }

/* Headings — Jost 300, the identity's display weight. */
h1, h2, h3, h4 {
  font-family: var(--jost);
  font-weight: 300;                /* JOST 300 — display weight */
  color: var(--ink);
  line-height: 1.24;
  letter-spacing: .01em;
  margin: 0 0 .65em;
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.06rem; letter-spacing: .1em; color: var(--ink); }
h4 { font-size: .94rem; letter-spacing: .12em; color: var(--ink); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--bronze); color: var(--midnight); }

/* --- Layout helpers ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 92px 0; }
.section--tight { padding: 56px 0; }

/* .section--alt = off-white plate.  .section--ink = deep midnight plate.
   Class names kept from the original build; the surfaces are brand colours. */
.section--alt {
  background: var(--offwhite);
  color: var(--charcoal);
}
.section--ink {
  background: var(--midnight-deep);
  border-block: 1px solid var(--rule);
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.center { text-align: center; }
.measure { max-width: 60ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }

/* --- Eyebrow / section heads -------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--jost);
  font-weight: 400;
  font-size: .66rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--bronze-lift);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.center .eyebrow::before { display: none; }

.section-head { margin-bottom: 52px; }
.section-head p { color: var(--ink-mute); }

.section--alt .eyebrow { color: var(--bronze-deep); }
.section--alt h1, .section--alt h2 { color: var(--midnight); }
.section--alt h3, .section--alt h4 { color: var(--midnight); }
.section--alt .section-head p { color: var(--charcoal); }
.section--alt a { color: var(--bronze-deep); }
.section--alt a:hover { color: var(--midnight); }

/* --- Buttons ------------------------------------------------------------
   Outline throughout: bronze rule + bronze text, hovering one step lighter. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--bronze);
  background: transparent;
  font-family: var(--jost);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze-lift);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover {
  color: var(--bronze-lift);
  border-color: var(--bronze-lift);
  background: var(--wash);
}

.btn--ghost { border-color: var(--rule); color: var(--ink-mute); }
.btn--ghost:hover { color: var(--bronze-lift); border-color: var(--bronze-lift); }

.section--alt .btn, .cta .btn {
  border-color: var(--midnight);
  color: var(--midnight);
}
.section--alt .btn:hover, .cta .btn:hover {
  color: var(--bronze-deep);
  border-color: var(--bronze-deep);
  background: rgba(14, 26, 43, .05);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--jost);
  font-weight: 400;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bronze-lift);
}
.arrow-link span { transition: transform .2s ease; }
.arrow-link:hover { color: var(--bronze-lift); }
.arrow-link:hover span { transform: translateX(5px); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 26, 43, .94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

/* Brand lockup — the horizontal apex lockup rebuilt in live type:
   symbol, hairline, AEMARIS at .28em tracking, GROUP in bronze at .42em.
   Clear space on all four sides is held by the header's min-height. */
.brand { display: flex; align-items: center; gap: 18px; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
  color: var(--offwhite);
  stroke-width: 6.5;               /* identity sheet: 48px → stroke 6.5 */
}
.brand-text { display: flex; flex-direction: column; gap: 7px; }
/* The hairline only belongs to the horizontal lockup in the header. */
.brand .brand-text { padding-left: 18px; border-left: 1px solid var(--rule); }
.brand-name {
  font-family: var(--jost);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--offwhite);
  line-height: 1;
}
.brand-line {
  font-family: var(--jost);
  font-weight: 400;
  font-size: .54rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--bronze);
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn), .has-menu > button {
  padding: 10px 15px;
  font-family: var(--jost);
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .18s ease;
}
.nav > a:hover, .has-menu > button:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: 14px; }

/* Dropdown */
.has-menu { position: relative; }
.has-menu > button { display: inline-flex; align-items: center; gap: 9px; }
.has-menu > button svg { width: 9px; height: 9px; transition: transform .2s ease; }
.has-menu[data-open="true"] > button svg { transform: rotate(180deg); }

.menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 300px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-menu[data-open="true"] .menu { opacity: 1; visibility: visible; transform: none; }

.menu a { display: block; padding: 12px 14px; transition: background .18s ease; }
.menu a:hover { background: var(--wash); }
.menu strong {
  display: block;
  font-weight: 400;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.menu a:hover strong { color: var(--bronze-lift); }
.menu small {
  display: block;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--mute);
  line-height: 1.55;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--bronze);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--midnight);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 24%, rgba(169, 130, 90, .16), transparent 46%),
    radial-gradient(circle at 8% 92%, rgba(169, 130, 90, .07), transparent 42%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

/* Centred in the container so the space left over by the 800px cap is split
   evenly, rather than collecting as a gap on the right. Text inside stays
   left-aligned for readability. */
.hero-inner { padding: 116px 0 104px; max-width: 800px; margin-inline: auto; }
.hero h1 { margin-bottom: .5em; }
.hero .lede {
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--ink-mute);
  max-width: 58ch;
  margin-bottom: 38px;
}

.hero--page .hero-inner { padding: 92px 0 84px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.hero-meta b { font-weight: 500; color: var(--ink); }

/* --- Stat band ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  background: var(--surface);
}
.stat { padding: 34px 30px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-weight: 300;
  font-size: 2.15rem;
  letter-spacing: .04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 12px;
}
.stat span {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}

.stats--pull { margin-top: -60px; position: relative; z-index: 5; }

/* --- Cards -------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--rule);
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
a.card:hover { border-color: var(--bronze-lift); transform: translateY(-3px); }
a.card:hover h3 { color: var(--bronze-lift); }

.card p { font-size: .92rem; line-height: 1.8; color: var(--ink-mute); }
.card .arrow-link { margin-top: auto; padding-top: 24px; }

.card-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border: 1px solid var(--rule-strong);
  color: var(--bronze-lift);
}
.card-mark svg { width: 22px; height: 22px; }

.card-since {
  font-weight: 400;
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 12px;
}

/* Cards on the off-white plate */
.section--alt .card {
  background: rgba(255, 255, 255, .55);
  border-color: var(--rule-navy);
}
.section--alt .card p { color: var(--charcoal-mute); }
.section--alt .card-mark { border-color: rgba(44, 52, 64, .32); color: var(--bronze-deep); }
.section--alt .card-since { color: var(--bronze-deep); }
.section--alt a.card:hover { border-color: var(--bronze-deep); }

/* --- Feature list ------------------------------------------------------- */
.feature { padding-top: 26px; border-top: 1px solid var(--bronze); }
.feature h3 { margin-bottom: .5em; }
.feature p { font-size: .92rem; line-height: 1.8; color: var(--ink-mute); margin: 0; }
.section--alt .feature { border-top-color: var(--bronze-deep); }
.section--alt .feature p { color: var(--charcoal-mute); }

/* --- Checklist ---------------------------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ticks li { position: relative; padding-left: 36px; font-size: .94rem; line-height: 1.8; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 16px;
  height: 8px;
  border-left: 1.5px solid var(--bronze);
  border-bottom: 1.5px solid var(--bronze);
  transform: rotate(-45deg);
}
.ticks strong { font-weight: 500; color: var(--ink); }
.section--alt .ticks li::before { border-color: var(--bronze-deep); }
.section--alt .ticks strong { color: var(--midnight); }

/* --- Numbered steps ----------------------------------------------------- */
.steps { counter-reset: step; }
.step {
  counter-increment: step;
  position: relative;
  padding: 30px 0 30px 74px;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 30px;
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .1em;
  color: var(--bronze-lift);
}
.step h4 { margin-bottom: .4em; }
.step p { font-size: .92rem; line-height: 1.8; color: var(--ink-mute); margin: 0; }

.section--alt .step { border-top-color: var(--rule-navy); }
.section--alt .step:last-child { border-bottom-color: var(--rule-navy); }
.section--alt .step::before { color: var(--bronze-deep); }
.section--alt .step p { color: var(--charcoal-mute); }

/* --- Quote panel -------------------------------------------------------- */
.panel {
  padding: 44px;
  background: var(--wash);
  border-left: 2px solid var(--bronze);
}
.panel p {
  font-size: 1.14rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
}
.panel cite {
  display: block;
  margin-top: 22px;
  font-size: .66rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bronze-lift);
}
.section--alt .panel {
  background: rgba(14, 26, 43, .05);
  border-left-color: var(--bronze-deep);
}
.section--alt .panel p { color: var(--midnight); }
.section--alt .panel cite { color: var(--bronze-deep); }

/* --- Figure block ------------------------------------------------------- */
.figure {
  position: relative;
  min-height: 400px;
  background: var(--midnight-deep);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.figure::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -56%);
  background: url("../img/brand/aemaris-symbol-bronze.svg") center / contain no-repeat;
  opacity: .20;
}
.figure-note {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 34px;
  z-index: 2;
  font-size: 1.04rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
}
.figure-note small {
  display: block;
  margin-top: 14px;
  font-size: .64rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bronze-lift);
}

/* --- CTA band ----------------------------------------------------------- */
.cta {
  padding: 88px 0;
  background: var(--offwhite);
  color: var(--charcoal);
  text-align: center;
}
.cta h2 { color: var(--midnight); }
.cta p { max-width: 54ch; margin-inline: auto; margin-bottom: 34px; }
.cta .btn-row { justify-content: center; }

/* --- Contact ------------------------------------------------------------ */
/* Single stacked column — the enquiry form is the page's only channel, so the
   content reads top to bottom rather than sitting in two competing columns. */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
  max-width: 800px;   /* matches .hero-inner so both share one left edge */
  margin-inline: auto;
}

.contact-item { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.contact-item:first-of-type { border-top: 1px solid var(--rule); }
.contact-item h4 { margin-bottom: .4em; }
.contact-item p { font-size: .92rem; color: var(--ink-mute); margin: 0; }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.field label {
  font-weight: 400;
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bronze-lift);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--jost);
  font-size: .94rem;
  color: var(--offwhite);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--rule);
  transition: border-color .18s ease, background .18s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field select option { background: var(--surface); color: var(--offwhite); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--bronze-lift);
  background: rgba(255, 255, 255, .06);
}
.field input::placeholder, .field textarea::placeholder { color: var(--mute); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.form-note { font-size: .78rem; line-height: 1.75; color: var(--mute); }
.form-note-label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--mute);
}

.form-status {
  display: none;
  padding: 16px 18px;
  background: var(--wash);
  border: 1px solid var(--rule-strong);
  font-size: .86rem;
  line-height: 1.7;
  color: var(--ink);
}
.form-status.is-visible { display: block; }
.form-status--error {
  background: var(--alert-wash);
  border-color: var(--alert);
  color: var(--alert);
}

/* Honeypot — off-screen rather than display:none, so bots still fill it in. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn[disabled] { opacity: .55; cursor: progress; }
.btn[disabled]:hover { color: var(--bronze-lift); border-color: var(--bronze); background: transparent; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  padding: 76px 0 34px;
  background: var(--midnight-deep);
  border-top: 1px solid var(--rule);
  color: var(--mute);
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.footer-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  color: var(--offwhite);
  stroke-width: 6;
}
.site-footer p { font-size: .86rem; line-height: 1.8; color: var(--mute); }
.site-footer h4 {
  font-weight: 400;
  font-size: .64rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bronze-lift);
  margin-bottom: 20px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.footer-links li { font-size: .84rem; line-height: 1.6; }
.footer-links a { color: var(--ink-mute); }
.footer-links a:hover { color: var(--ink); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 28px;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}
.maple { color: var(--bronze); }

/* --- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split  { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { gap: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .stats--pull { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px var(--gutter) 24px;
    background: var(--midnight);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a, .has-menu > button { padding: 14px 10px; width: 100%; text-align: left; }
  .has-menu > button { justify-content: space-between; }
  .menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    border-left: 1px solid var(--rule);
    margin: 4px 0 10px 10px;
    padding: 0 0 0 10px;
    min-width: 0;
    background: none;
  }
  .has-menu[data-open="true"] .menu { display: block; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
  .section { padding: 66px 0; }
  .hero-inner, .hero--page .hero-inner { padding: 80px 0 72px; }
  .panel { padding: 30px; }
  .site-header .wrap { min-height: 76px; }
  .brand-mark { width: 40px; height: 40px; stroke-width: 7; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .figure { min-height: 300px; }
  .figure::before { width: 240px; height: 240px; }
  .brand-name { font-size: .8rem; letter-spacing: .24em; }
  .step { padding-left: 56px; }
}

/* --- Projects ------------------------------------------------------------
   The work grid. Cards sit on the charcoal surface like .card, but lead with
   a thumbnail and close with a small dates table, so the three dates and the
   derived duration line up column-wise across the row. */
.project-group + .project-group { margin-top: 76px; }

.project-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.project-group-head h2 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.project-count {
  font-size: .66rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  transition: border-color .22s ease, transform .22s ease;
}
.project:hover { border-color: var(--bronze); transform: translateY(-3px); }

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--midnight-deep);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* No image yet — fall back to the apex mark rather than a broken frame. */
.project-thumb--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/brand/aemaris-symbol-bronze.svg") center / 84px no-repeat;
  opacity: .22;
}

.project-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 0; }

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
}
.project-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.project--ongoing .project-status { color: var(--bronze-lift); }

.project h3 { margin-bottom: .35em; }
.project-location {
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.project-summary {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--ink-mute);
  margin: 0 0 22px;
}

.project-dates {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding: 4px 26px 22px;
  margin-inline: -26px;
}
.project-date {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: .74rem;
  border-bottom: 1px solid rgba(169, 130, 90, .12);
}
.project-date:last-child { border-bottom: 0; }
.project-date dt {
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  font-size: .62rem;
}
.project-date dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.project-date--duration dd { color: var(--bronze-lift); }

/* Empty state, shown when a group has no projects in it yet. */
.project-empty {
  padding: 54px 30px;
  border: 1px dashed var(--rule);
  text-align: center;
  color: var(--mute);
  font-size: .9rem;
}

@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-group + .project-group { margin-top: 56px; }
}
