/* ============================================================
   ADINATH SOLAR SYSTEMS
   Built on the DESIGN.md reference system — whisper-light 300
   display type, the 4px square section marker, 80px image
   radii, pill geometry, flat tonal layering and no shadows.
   Palette substitutes the brand's navy + gold on white for
   the reference's monochrome carbon on vellum.
   ============================================================ */

:root {
  /* ---- Surfaces (4 levels, flat tonal layering) ---------- */
  --paper:   #ffffff;   /* 0 — page canvas                  */
  --shell:   #f5f5f3;   /* 1 — alternating section ground   */
  --navy:    #0e2a55;   /* 2 — nav pill, dark sections      */
  --onyx:    #0f0e12;   /* 3 — footer terminator            */

  /* ---- Ink ---------------------------------------------- */
  --ink:     #12294d;   /* headings, primary text           */
  --ink-2:   #4d5a6e;   /* body                             */
  --mercury: #68707e;   /* labels, captions, tertiary — the
                           reference's Mercury darkened to clear
                           4.5:1 on both white and shell         */

  /* ---- Line --------------------------------------------- */
  --line:    #e2e2df;
  --line-on-dark: rgba(255,255,255,0.16);

  /* ---- Accent — one job: the next action ---------------- */
  --gold:    #d99b20;

  /* ---- On dark ------------------------------------------ */
  --on-dark:   rgba(255,255,255,0.74);
  --on-dark-2: rgba(255,255,255,0.5);

  /* ---- Type scale (6) ----------------------------------- */
  --t-label:   12px;
  --t-body-sm: 14px;
  --t-body:    16px;
  --t-sub:     22px;
  --t-head:    clamp(26px, 3.4vw, 32px);
  --t-display: clamp(34px, 5.2vw, 52px);

  /* ---- Weights (2, per the reference) ------------------- */
  --w-light: 300;
  --w-reg:   400;

  /* ---- Spacing scale ------------------------------------ */
  --s-4: 4px;   --s-8: 8px;   --s-12: 12px; --s-16: 16px;
  --s-24: 24px; --s-36: 36px; --s-48: 48px; --s-60: 60px;
  --s-96: 96px; --s-120: 120px;

  /* ---- Radii (the reference's named set) ---------------- */
  --r-small:  8px;
  --r-body:   12px;
  --r-nav:    16px;
  --r-button: 16px;
  --r-card:   80px;   /* image containers — the signature   */
  --r-pill:   100px;

  /* ---- Motion ------------------------------------------- */
  --d-fast: 150ms;
  --d-base: 300ms;
  --d-slow: 600ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* ---- Layout ------------------------------------------- */
  --maxw:   1200px;
  --gutter: clamp(24px, 5vw, 48px);
  --band:   clamp(60px, 9vw, 120px);

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ========================== Base ========================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: var(--w-reg);
  line-height: 1.4;
  letter-spacing: 0.01em;   /* the reference's universal tracking — inherits */
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Display type — weight 300, line-height 1.0. The signature. */
h1, h2 {
  margin: 0;
  font-size: var(--t-display);
  font-weight: var(--w-light);
  line-height: 1;
  color: var(--ink);
  text-wrap: balance;
}
h3 {
  margin: 0;
  font-size: var(--t-sub);
  font-weight: var(--w-reg);
  line-height: 1.3;
  color: var(--ink);
}
h4 { margin: 0; font-size: var(--t-label); font-weight: var(--w-reg); }

::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--s-16); top: -60px; z-index: 200;
  background: var(--navy); color: #fff;
  padding: var(--s-12) var(--s-16); border-radius: var(--r-pill);
}
.skip-link:focus { top: var(--s-16); }

.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;
}

/* ========================= Layout ========================= */
.container {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gutter);
}
.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(48px, 6vw, 72px); }
.band--shell { background: var(--shell); }
.band--navy  { background: var(--navy); }
.band--navy, .band--navy p { color: var(--on-dark); }
.band--navy h1, .band--navy h2, .band--navy h3 { color: #fff; }

/* ====================== Type helpers ====================== */
/* Micro-caps label — 12px / 0.12em / uppercase. Defined once and
   shared by every label on the site; only the colour varies. */
.eyebrow, .offer__no, .cell__no, .case__meta, .caption,
.hero__seg, .closer__seg, .footer h4, .dl-contact dt, .acc__no {
  font-size: var(--t-label);
  font-weight: var(--w-reg);
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* The 4px square marker — the reference's signature device */
.eyebrow, .offer__no {
  display: flex; align-items: center; gap: var(--s-12);
  color: var(--ink);
}
.eyebrow::before, .offer__no::before {
  content: ""; flex: none;
  width: var(--s-4); height: var(--s-4);
  background: var(--gold);
}
.eyebrow { margin: 0 0 var(--s-24); }
.band--navy .eyebrow, .hero .eyebrow { color: #fff; }

.lead {
  font-size: var(--t-sub);
  font-weight: var(--w-light);
  line-height: 1.3;
  color: var(--ink);
  max-width: 30ch;
}
.band--navy .lead { color: #fff; }

.measure { max-width: 60ch; }
.dim { color: var(--mercury); }

.head { max-width: 34ch; margin-bottom: var(--s-60); }
.head h2 + p { margin-top: var(--s-24); max-width: 54ch; }

.head--split {
  max-width: none;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-48); align-items: end;
}
.head--split h2 { max-width: 16ch; }
.head--split p { margin: 0; max-width: 52ch; }
@media (max-width: 860px) {
  .head--split { grid-template-columns: 1fr; gap: var(--s-24); align-items: start; }
}

/* Centred statement — type and air only, no box */
.statement {
  max-width: 22ch;
  margin: var(--s-96) auto 0;
  text-align: center;
  font-size: var(--t-head);
  font-weight: var(--w-light);
  line-height: 1.15;
  color: var(--ink);
}
.band--navy .statement { color: #fff; }
.statement--wide { max-width: 30ch; }

.note { max-width: 48ch; margin-inline: auto; text-align: center; }

/* Vertical rhythm inside a text column */
.prose > * + * { margin-top: var(--s-24); }
.prose p { margin-bottom: 0; }
.prose > .actions { margin-top: var(--s-36); }
.prose > .media { margin-top: var(--s-36); }

figure { margin: 0; }
.mt-36 { margin-top: var(--s-36); }
.mt-60 { margin-top: var(--s-60); }

/* ========================= Actions ======================== */
/* Pill geometry. Exactly one filled gold action per screen. */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-8);
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--t-body-sm);
  font-weight: var(--w-reg);
  transition: background var(--d-fast) var(--ease),
              color var(--d-fast) var(--ease),
              border-color var(--d-fast) var(--ease);
}
.btn--gold  { background: var(--gold); color: #23180a; }
.btn--gold:hover { background: #c68d16; }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: #0a2044; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-36); }
.actions--center { justify-content: center; }

/* Text action — the quiet default */
.link {
  display: inline-flex; align-items: center; gap: var(--s-8);
  font-size: var(--t-body-sm);
  font-weight: var(--w-reg);
  color: var(--ink);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--d-fast) var(--ease);
}
.link:hover { border-color: var(--ink); }
.link span { transition: transform var(--d-base) var(--ease); }
.link:hover span { transform: translateX(3px); }
.link--light { color: #fff; border-color: var(--line-on-dark); }
.link--light:hover { border-color: #fff; }

/* ==================== Pill navigation ===================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: var(--s-16) var(--gutter);
  display: flex; justify-content: center;
  pointer-events: none;
  transition: padding var(--d-base) var(--ease);
}
.header__in {
  pointer-events: auto;
  position: relative;
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-24);
  padding: var(--s-16) 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  color: #fff;
  transition: max-width var(--d-slow) var(--ease),
              padding var(--d-base) var(--ease),
              background var(--d-base) var(--ease),
              border-color var(--d-base) var(--ease),
              border-radius var(--d-base) var(--ease);
}
.header.is-stuck { padding-top: var(--s-12); }
.header.is-stuck .header__in,
.header.header--solid .header__in,
.header.is-open .header__in {
  max-width: 1120px;
  padding: 12px var(--s-24);
  background: rgba(11,32,66,0.94);
  border-color: rgba(255,255,255,0.12);
  border-radius: var(--r-pill);
}
@supports (backdrop-filter: blur(10px)) {
  .header.is-stuck .header__in,
  .header.header--solid .header__in,
  .header.is-open .header__in {
    background: rgba(11,32,66,0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: var(--s-12); color: #fff; }
.brand__mark {
  width: 44px; height: 44px; flex: none;
  object-fit: contain;
}
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: var(--t-body); letter-spacing: 0.14em; }
.brand__sub {
  margin-top: 5px;
  font-size: 9px; letter-spacing: 0.3em; color: var(--gold);
}

.nav { display: flex; align-items: center; gap: var(--s-24); }
.nav ul { display: flex; align-items: center; gap: var(--s-24); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: var(--t-body-sm);
  color: rgba(255,255,255,0.74);
  transition: color var(--d-fast) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.nav .nav__cta { display: inline-flex; align-items: center; gap: var(--s-8); color: #fff; }

/* The home masthead begins on a light field. Once the user scrolls,
   the same navigation resolves into the dark floating pill. */
.header:not(.header--solid):not(.is-stuck):not(.is-open) .header__in { color: var(--ink); }
.header:not(.header--solid):not(.is-stuck):not(.is-open) .brand { color: var(--ink); }
.header:not(.header--solid):not(.is-stuck):not(.is-open) .nav a { color: rgba(14,42,85,0.68); }
.header:not(.header--solid):not(.is-stuck):not(.is-open) .nav a:hover,
.header:not(.header--solid):not(.is-stuck):not(.is-open) .nav a[aria-current="page"],
.header:not(.header--solid):not(.is-stuck):not(.is-open) .nav .nav__cta { color: var(--ink); }
.header:not(.header--solid):not(.is-stuck):not(.is-open) .burger i::before,
.header:not(.header--solid):not(.is-stuck):not(.is-open) .burger i::after { background: var(--ink); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.burger i {
  position: absolute; left: 11px; top: 22px;
  width: 22px; height: 1px;
}
.burger i::before, .burger i::after {
  content: ""; position: absolute; right: 0;
  height: 1.5px; background: #fff;
  transition: top var(--d-base) var(--ease),
              width var(--d-base) var(--ease),
              transform var(--d-base) var(--ease);
}
.burger i::before { top: -4px; width: 22px; }
.burger i::after  { top: 4px; width: 14px; }
.is-open .burger i::before,
.is-open .burger i::after { top: 0; width: 22px; }
.is-open .burger i::before { transform: rotate(45deg); }
.is-open .burger i::after  { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .header { padding-inline: var(--s-16); }
  .header__in { padding: var(--s-8) var(--s-4); }
  .header.is-stuck .header__in,
  .header.header--solid .header__in,
  .header.is-open .header__in { padding: 8px var(--s-12); }
  .burger { display: block; }
  .nav {
    position: absolute; inset: calc(100% + 8px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy);
    border-radius: 28px;
    padding: var(--s-12) var(--s-24) var(--s-24);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease);
  }
  .is-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav ul a { display: block; padding: var(--s-16) 0; border-bottom: 1px solid var(--line-on-dark); }
  .nav__cta { padding-top: var(--s-16); }
}

/* =========================== Hero ========================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 124px 0 48px;
  background: var(--shell);
  color: var(--ink);
  overflow: hidden;
}
.hero__container { width: 100%; }
.hero__in {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: flex-start;
}
.hero__copy { padding-block: 0; }
.hero .eyebrow { margin-bottom: var(--s-24); color: var(--ink); }
.hero h1 {
  max-width: 11ch;
  color: var(--ink);
  font-size: clamp(46px, 5.2vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero__copy > p {
  max-width: 44ch;
  margin: var(--s-24) 0 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
}
.hero .actions { margin-top: var(--s-32); }
.hero__facts {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-24);
  margin-top: var(--s-48);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero__facts div { min-width: 0; }
.hero__facts dt {
  font-size: var(--t-label);
  color: var(--mercury);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.hero__facts dd {
  margin: var(--s-8) 0 0;
  color: var(--ink);
  font-size: var(--t-body-sm);
  line-height: 1.45;
}
.hero__visual {
  position: relative;
  height: min(72svh, 700px);
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border-radius: 76px;
}
.hero__visual picture { display: contents; }
.hero__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero__visual:hover img { transform: scale(1.018); }
.hero__visual figcaption {
  position: absolute;
  right: var(--s-16); bottom: var(--s-16); left: var(--s-16);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-16);
  padding: 14px 18px;
  color: var(--ink);
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(14,42,85,0.10);
  border-radius: var(--r-pill);
  font-size: var(--t-label);
  letter-spacing: 0.05em;
}
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-image-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.hero__copy .eyebrow,
.hero__copy h1,
.hero__copy > p,
.hero__copy .actions,
.hero__facts {
  animation: hero-enter 700ms var(--ease) both;
}
.hero__copy h1 { animation-delay: 70ms; }
.hero__copy > p { animation-delay: 130ms; }
.hero__copy .actions { animation-delay: 190ms; }
.hero__facts { animation-delay: 250ms; }
.hero__visual { animation: hero-image-enter 850ms 120ms var(--ease) both; }
@supports (backdrop-filter: blur(10px)) {
  .hero__visual figcaption {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

@media (max-width: 1040px) {
  .hero__in {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: var(--s-36);
  }
  .hero h1 { font-size: clamp(42px, 5.5vw, 58px); }
  .hero__visual { min-height: 480px; border-radius: 60px; }
}

@media (max-width: 780px) {
  .hero {
    min-height: 100svh;
    align-items: flex-start;
    padding: 104px 0 36px;
  }
  .hero__in {
    grid-template-columns: 1fr;
    gap: var(--s-32);
  }
  .hero .eyebrow { margin-bottom: var(--s-16); font-size: 10px; }
  .hero h1 {
    max-width: 12ch;
    font-size: clamp(38px, 10.8vw, 52px);
    line-height: 1;
  }
  .hero__copy > p {
    max-width: 38ch;
    margin-top: var(--s-16);
    font-size: 16px;
    line-height: 1.5;
  }
  .hero .actions {
    flex-wrap: nowrap;
    gap: var(--s-8);
    margin-top: var(--s-24);
  }
  .hero .btn {
    padding: 13px 15px;
    font-size: 11px;
    white-space: nowrap;
  }
  .hero .btn--ghost { padding-inline: var(--s-12); }
  .hero__facts {
    gap: var(--s-16);
    margin-top: var(--s-24);
    padding-top: var(--s-16);
  }
  .hero__facts dd { font-size: 12px; }
  .hero__visual {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 44px;
  }
  .hero__visual figcaption {
    right: var(--s-12); bottom: var(--s-12); left: var(--s-12);
    padding: 11px 14px;
    font-size: 9px;
  }
}

@media (min-width: 521px) and (max-width: 780px) {
  .hero__visual { aspect-ratio: 16 / 9; }
}

@media (max-width: 370px) {
  .hero { padding-top: 92px; padding-bottom: 28px; }
  .hero h1 { font-size: 34px; }
  .hero__copy > p { font-size: 15px; }
  .hero .btn { padding-inline: 11px; font-size: 10px; }
  .hero__facts { grid-template-columns: 1fr 0.8fr; }
  .hero__facts dt { font-size: 9px; }
  .hero__facts dd { font-size: 11px; }
  .hero__visual { border-radius: 36px; }
  .hero__visual figcaption span:last-child { display: none; }
}

@media (max-height: 700px) and (min-width: 781px) {
  .hero { min-height: 700px; padding-top: 100px; padding-bottom: 32px; }
  .hero__visual { height: 540px; min-height: 0; }
  .hero h1 { font-size: 48px; }
  .hero__facts { margin-top: var(--s-24); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy .eyebrow,
  .hero__copy h1,
  .hero__copy > p,
  .hero__copy .actions,
  .hero__facts,
  .hero__visual { animation: none; }
  .hero__visual img { transition: none; }
}

/* Interior masthead — pale, so the dark nav pill reads against it */
.masthead {
  padding-top: 172px;
  padding-bottom: var(--s-60);
  background: var(--paper);
}
.masthead h1 { max-width: 18ch; }
.masthead p { margin-top: var(--s-24); max-width: 54ch; }

/* ========================== Media ========================= */
/* 80px radius, edge to edge, no border, no shadow. */
.media { overflow: hidden; border-radius: var(--r-card); background: var(--shell); }
/* <picture> must not become a layout box between .media and the img */
.media picture { display: contents; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4/5; }
.media--sq   { aspect-ratio: 1/1; }
.media--land { aspect-ratio: 3/2; }
.media--wide { aspect-ratio: 16/9; }
.media--pano { aspect-ratio: 21/8; }
.media--zoom img { transition: transform var(--d-slow) var(--ease); }
.media--zoom:hover img { transform: scale(1.03); }

@media (max-width: 700px) {
  :root { --r-card: 40px; }
  /* A 21:8 crop collapses to a letterbox on a phone — the corner
     radius would then eat most of the picture. */
  .media--pano { aspect-ratio: 16/10; }
  .media--tall { aspect-ratio: 3/4; }
}

.caption { margin-top: var(--s-16); color: var(--mercury); }

/* ========================== Split ========================= */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--text { grid-template-columns: 1.1fr 0.9fr; }
.split--flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .split--text { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

/* ===================== Editorial pair ===================== */
.offer {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-48) clamp(32px, 4vw, 60px);
}
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }
.offer__item > .media { margin-bottom: var(--s-24); }
.offer__item h3 { margin-bottom: var(--s-12); }
.offer__item p { margin-bottom: var(--s-24); max-width: 44ch; }
.offer__no { margin-bottom: var(--s-16); }

/* ==================== Hairline grid ======================= */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-48); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid, .grid--3 { grid-template-columns: 1fr; } }

.cell { border-top: 1px solid var(--line); padding-top: var(--s-24); }
.band--navy .cell { border-top-color: var(--line-on-dark); }
.cell__no { display: block; color: var(--mercury); margin-bottom: var(--s-16); }
.band--navy .cell__no { color: var(--on-dark-2); }
.cell h3 { margin-bottom: var(--s-12); }
.cell p { margin: 0; }

.aside {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.aside__head { position: sticky; top: 128px; }
@media (max-width: 960px) {
  .aside { grid-template-columns: 1fr; }
  .aside__head { position: static; }
}

/* ========================= Projects ======================= */
.case {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: var(--s-60);
  border-top: 1px solid var(--line);
}
.case:last-of-type { border-bottom: 1px solid var(--line); }
.case--flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case--flip > :first-child { order: 0; }
}
.case__meta { color: var(--mercury); margin-bottom: var(--s-16); }
.case h3 { font-size: var(--t-head); font-weight: var(--w-light); line-height: 1.1; margin-bottom: var(--s-24); }
.case dl { margin: 0; }
.case dt { font-size: var(--t-body-sm); color: var(--ink); margin-bottom: var(--s-4); }
.case dd { margin: 0 0 var(--s-16); max-width: 48ch; }
.case .link { margin-top: var(--s-16); }

/* ======================= EPC process ===================== */
.process-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.22fr);
  gap: var(--s-24);
  align-items: stretch;
}
.process-visual { position: relative; min-width: 0; }
.process-visual__media {
  height: 100%;
  min-height: 650px;
  border-radius: 48px;
}
.process-visual__media img { object-position: center; }
.process-visual__caption {
  position: absolute;
  right: var(--s-16); bottom: var(--s-16); left: var(--s-16);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-16);
  padding: 14px 18px;
  color: #fff;
  background: rgba(11,32,66,0.9);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-pill);
}
.process-visual__caption span {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.process-visual__caption strong {
  font-size: var(--t-body-sm);
  font-weight: var(--w-reg);
  text-align: right;
}
.process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-12);
}
.process-grid .cell {
  min-height: 208px;
  padding: var(--s-24);
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line-on-dark);
  border-radius: 28px;
}
.process-grid .cell__no { color: var(--gold); }
.process-grid h3 { font-size: 20px; }
.process-grid p { font-size: var(--t-body-sm); line-height: 1.5; }
.process__action { margin-top: var(--s-36); }

@media (max-width: 960px) {
  .process-layout { grid-template-columns: 1fr; gap: var(--s-24); }
  .process-visual__media {
    min-height: 0;
    aspect-ratio: 21/8;
    border-radius: 40px;
  }
}
@media (min-width: 760px) and (max-width: 960px) {
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .process-visual__media { aspect-ratio: 16/10; border-radius: 32px; }
  .process-visual__caption {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--s-4);
    border-radius: 22px;
  }
  .process-visual__caption strong { text-align: left; }
}

/* Compact touch rails: cards stay editorial, but no longer turn a
   phone page into a long stack. The next card peeks in as the cue. */
@media (max-width: 700px) {
  .offer,
  .grid,
  .grid--3 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 330px);
    gap: var(--s-16);
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) var(--s-16);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .offer::-webkit-scrollbar,
  .grid::-webkit-scrollbar { display: none; }
  .offer > *,
  .grid > * {
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .offer__item {
    padding: var(--s-12) var(--s-12) var(--s-24);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 32px;
  }
  .offer__item > .media { border-radius: 22px; }
  .offer__item > :not(.media) { margin-inline: var(--s-8); }
  .grid .cell {
    min-height: 230px;
    padding: var(--s-24);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
  }
  .band--navy .grid .cell {
    background: rgba(255,255,255,0.055);
    border-color: var(--line-on-dark);
  }
  .offer .rise,
  .grid .rise { transform: translateX(18px); }
  .offer .rise.is-in,
  .grid .rise.is-in { transform: none; }
}

/* ======================== Accordion ======================= */
.acc-list { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; display: flex; align-items: center; gap: var(--s-16);
  padding: var(--s-24) 0; background: none; border: 0;
  text-align: left; list-style: none; cursor: pointer;
}
.acc__head::-webkit-details-marker { display: none; }
.acc__no { flex: none; width: 2rem; color: var(--mercury); text-transform: none; }
.acc__t { flex: 1; font-size: var(--t-sub); font-weight: var(--w-reg); color: var(--ink); }

/* 40px circular expand button — 1px border, white fill, + / − */
.acc__icon {
  flex: none; position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  transition: background var(--d-fast) var(--ease);
}
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--ink);
  transition: transform var(--d-base) var(--ease), background var(--d-fast) var(--ease);
}
.acc__icon::before { width: 12px; height: 1px; }
.acc__icon::after  { width: 1px; height: 12px; }
.acc[open] .acc__icon { background: var(--ink); }
.acc[open] .acc__icon::before, .acc[open] .acc__icon::after { background: #fff; }
.acc[open] .acc__icon::after { transform: scaleY(0); }

.acc__body { overflow: hidden; }
.acc__body > div { padding: 0 0 var(--s-24) calc(2rem + var(--s-16)); max-width: 58ch; }
.acc__body p { margin: 0; }
.acc__body p + .acc__spec { margin-top: var(--s-12); }
.acc__spec { font-size: var(--t-body-sm); color: var(--mercury); }

/* ========================= Ledger ========================= */
.ledger {
  margin-top: var(--s-60);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-16);
}
.ledger__step {
  position: relative;
  min-width: 0;
  padding-top: var(--s-24);
  font-size: var(--t-body-sm);
  line-height: 1.35;
  color: var(--mercury);
}
.ledger__step::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: var(--s-8); height: var(--s-8);
  background: var(--line);
  border-radius: var(--r-pill);
}
.ledger__step::after {
  content: "";
  position: absolute; top: 3px; left: var(--s-16); right: calc(-1 * var(--s-12));
  height: 1px;
  background: var(--line);
}
.ledger__step:last-child { color: var(--ink); }
.ledger__step:last-child::before { background: var(--gold); }
.ledger__step:last-child::after { display: none; }

.value-close {
  margin-top: var(--s-60);
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 48px;
}
.value-close .eyebrow { margin-bottom: var(--s-16); }
.value-close h3 {
  max-width: 14ch;
  font-size: var(--t-head);
  font-weight: var(--w-light);
  line-height: 1.1;
}
.value-close p { max-width: 52ch; margin-bottom: var(--s-24); }

@media (max-width: 700px) {
  .ledger {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(52vw, 190px);
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) var(--s-12);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .ledger::-webkit-scrollbar { display: none; }
  .ledger__step { scroll-snap-align: start; }
  .value-close {
    grid-template-columns: 1fr;
    border-radius: 32px;
  }
}

/* ========================== Closer ======================== */
.closer { background: var(--navy); text-align: center; }
.closer h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.closer p { margin: var(--s-24) auto 0; max-width: 48ch; color: var(--on-dark); }
.closer .actions { justify-content: center; }
.closer__seg { margin-top: var(--s-36); color: var(--on-dark-2); }

/* ========================== Footer ======================== */
.footer { background: var(--onyx); color: var(--on-dark); padding-block: var(--s-96) 30px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: var(--s-48); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer .brand { margin-bottom: var(--s-24); }
.brand--full {
  width: 172px;
}
.brand__full-logo { width: 100%; height: auto; }
.footer__top p { font-size: var(--t-body-sm); line-height: 1.5; max-width: 34ch; }
.footer h4 { color: #fff; margin-bottom: var(--s-16); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-12); }
.footer a, .footer address {
  font-size: var(--t-body-sm); font-style: normal; line-height: 1.6;
  transition: color var(--d-fast) var(--ease);
}
.footer a:hover { color: #fff; }
.footer__base {
  margin-top: var(--s-60); padding-top: var(--s-24);
  border-top: 1px solid var(--line-on-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-12);
  font-size: var(--t-label); color: var(--on-dark-2);
}

/* ========================= Contact ======================== */
.form { max-width: 34rem; }
.field { margin-bottom: var(--s-24); }
.field > label {
  display: block; font-size: var(--t-body-sm); color: var(--ink); margin-bottom: var(--s-8);
}
.field input, .field select, .field textarea {
  width: 100%; padding: var(--s-16);
  font: inherit; font-size: var(--t-body); color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-body);
  transition: border-color var(--d-fast) var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--navy); }
.field__hint { margin-top: var(--s-8); font-size: var(--t-body-sm); color: var(--mercury); }

/* Spam honeypot — visually gone, still focusable-free for real users */
.hp {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.status {
  margin-top: var(--s-16); padding: var(--s-16) var(--s-24);
  border-radius: 28px;
  background: var(--shell);
  border: 1px solid var(--gold);
  font-size: var(--t-body-sm); color: var(--ink);
  display: none;
}
.status.is-on { display: block; }
.status.is-error { border-color: #b4232a; }

/* Analytics is opt-in. This small, fixed notice does not block rendering. */
.consent {
  position: fixed; z-index: 200; right: var(--s-16); bottom: var(--s-16);
  width: min(34rem, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-24); padding: 12px 12px 12px var(--s-24);
  color: #fff; background: rgba(15,14,18,0.96); border: 1px solid var(--line-on-dark);
  border-radius: var(--r-pill);
  animation: consent-in var(--d-base) var(--ease) both;
}
.consent p { margin: 0; font-size: var(--t-body-sm); line-height: 1.5; }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.consent > div { display: flex; gap: var(--s-8); flex: none; }
.consent button {
  padding: 10px 16px; color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,0.45); border-radius: var(--r-pill);
  font: inherit; cursor: pointer;
}
.consent .consent__accept { color: #23180a; background: var(--gold); border-color: var(--gold); }
@keyframes consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .consent {
    align-items: stretch;
    flex-direction: column;
    gap: var(--s-12);
    padding: var(--s-16);
    border-radius: 28px;
  }
  .consent > div { justify-content: flex-end; }
}

.dl-contact { margin: 0; border-top: 1px solid var(--line); }
.dl-contact > div {
  display: grid; grid-template-columns: 7rem 1fr; gap: var(--s-16);
  padding: var(--s-16) 0; border-bottom: 1px solid var(--line);
}
.dl-contact dt { color: var(--mercury); }
.dl-contact dd { margin: 0; color: var(--ink); }
.dl-contact a:hover { color: var(--navy); }
@media (max-width: 520px) { .dl-contact > div { grid-template-columns: 1fr; gap: var(--s-4); } }

/* ========================== Motion ======================== */
.rise {
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--d-slow) var(--ease), transform var(--d-slow) var(--ease);
}
.rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .header, .header__in, .nav,
  .burger i::before, .burger i::after { transition: none; }
  .consent { animation: none; }
  .media--zoom:hover img { transform: none; }
  .link:hover span { transform: none; }
}
