/* =========================================================================
   ZG Industrial Automation
   Single stylesheet. No inline styles anywhere - the CSP forbids them.
   ========================================================================= */

/* ---------- Font ---------------------------------------------------------
   One variable woff2 covers weights 100-900, so the whole type scale costs a
   single request. font-display:swap keeps text visible during load.          */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dmsans-latin-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --ink: #0b0e13;
  --ink-2: #141922;
  --ink-3: #1e242f;
  --steel: #5a6472;
  --steel-2: #8b95a3;
  --line: #dfe3e8;
  --line-dark: #2a313d;
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --accent: #d62b1f;
  --accent-dark: #a81d14;
  --accent-soft: #fdeceb;

  --measure: 68ch;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 3px;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.11rem + 0.44vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.75vw, 3.1rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.4vw, 4.4rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.022em; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Accessibility ------------------------------------------------ */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 0; }

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

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

/* ---------- Layout ------------------------------------------------------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }

/* Section eyebrow: a small numbered technical label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}
.section--ink .eyebrow { color: #ff6a5e; }

.lede { font-size: var(--step-1); color: var(--steel); max-width: var(--measure); line-height: 1.5; }
.section--ink .lede { color: #aab3c0; }

.prose { max-width: var(--measure); color: var(--steel); }
.prose p + p { margin-top: 1rem; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  font: inherit;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1em; height: 1em; flex: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

.section--ink .btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.section--ink .btn--ghost:hover { border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ---------- Header ------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 88px; }

/* Brand lockup: the ZG letterform plus the name set in our own type, on one
   row. The supplied logo artwork was a small raster wordmark; using the mark
   with live text keeps it crisp at any size and lets it recolour per surface. */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; color: var(--ink); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text {
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
}
.brand__zg { font-weight: 800; letter-spacing: -0.01em; }
.brand--lg .brand__mark { width: 54px; height: 54px; }
.brand--lg .brand__text { font-size: 1.3rem; }
.brand--light { color: #fff; }

@media (max-width: 560px) {
  .brand__mark { width: 38px; height: 38px; }
  .brand__text { font-size: 0.95rem; }
  .hdr__in { min-height: 76px; }
}
@media (max-width: 380px) {
  .brand__text { font-size: 0; }
  .brand__zg { font-size: 1.15rem; }
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  position: relative;
  padding: 0.6rem 0.9rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
  height: 2px;
  background: var(--accent);
}

.hdr__cta { flex: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
}
.burger svg { width: 20px; height: 20px; }
.burger__close { display: none; }
.burger[aria-expanded='true'] .burger__open { display: none; }
.burger[aria-expanded='true'] .burger__close { display: block; }

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .hdr__cta { display: none; }
  .nav {
    position: fixed;
    inset: 88px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
  }
  .nav[data-open='true'] { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: 0.9rem 0; font-size: var(--step-0); border-bottom: 1px solid var(--line); }
  .nav a[aria-current='page']::after { left: 0; right: auto; width: 24px; bottom: 0.6rem; }
}

/* ---------- Translucent photo band --------------------------------------
   The hero treatment - a workshop photograph dimmed behind a graphite wash -
   generalised so any dark section can carry it. .band__media holds the image,
   the ::after gradient guarantees text contrast no matter how bright the
   photograph is. Reused by the hero, every page header and the CTA bands.    */
.band { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.band__media { position: absolute; inset: 0; z-index: -1; }
.band__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.band__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11, 14, 19, 0.94) 0%, rgba(11, 14, 19, 0.72) 45%, rgba(11, 14, 19, 0.35) 100%);
}
/* Softer wash for shorter bands, where text sits across the full width. */
.band--even .band__media img { opacity: 0.3; }
.band--even .band__media::after {
  background: linear-gradient(180deg, rgba(11, 14, 19, 0.9) 0%, rgba(11, 14, 19, 0.8) 100%);
}

/* ---------- Hero --------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__in { position: relative; padding-block: clamp(4.5rem, 13vw, 9.5rem); }
.hero h1 { font-size: var(--step-4); max-width: 17ch; letter-spacing: -0.035em; }
.hero__sub { margin-top: 1.5rem; font-size: var(--step-1); color: #b9c2ce; max-width: 46ch; line-height: 1.5; }

/* Technical stat strip under the hero */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--line-dark); }
.stats__i { padding: 1.6rem 0 0; }
.stats__n { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.03em; }
.stats__l { font-size: var(--step--1); color: var(--steel-2); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.25rem; }

/* ---------- Cards / grids ------------------------------------------------ */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.15fr 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(11, 14, 19, 0.4); border-color: var(--steel-2); }
.card__media { background: var(--paper-2); aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; }
/* Machine renders sit on a light field; real photographs should fill the
   frame and carry the same graphite wash as the gallery. */
.card__media--photo { position: relative; background: var(--ink); }
.card__media--photo img { object-fit: cover; padding: 0; opacity: 0.9; transition: transform 0.6s var(--ease), opacity 0.4s var(--ease); }
.card__media--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 14, 19, 0) 45%, rgba(11, 14, 19, 0.6) 100%);
}
.card:hover .card__media--photo img { transform: scale(1.05); opacity: 1; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__tag { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card__t { font-size: var(--step-1); }
.card__d { color: var(--steel); font-size: var(--step--1); line-height: 1.6; }
.card__link { margin-top: auto; padding-top: 0.9rem; font-weight: 600; font-size: var(--step--1); text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 0.45rem; }
.card__link svg { width: 0.9em; height: 0.9em; transition: transform 0.25s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Feature tile (why-choose-us) */
.tile { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.tile__n { font-size: var(--step--1); font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.tile__t { font-size: var(--step-1); margin: 0.5rem 0 0.6rem; }
.tile__d { color: var(--steel); font-size: var(--step--1); line-height: 1.65; }
.section--ink .tile { border-top-color: var(--accent); }
.section--ink .tile__d { color: #9aa4b2; }

/* ---------- Product detail ---------------------------------------------- */
.product { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 4rem); margin-top: clamp(2.5rem, 6vw, 4rem); scroll-margin-top: 90px; }
.product:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.product__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 1.25rem; }
.product__model { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.product__t { font-size: var(--step-2); flex-basis: 100%; }
.product__claim { font-weight: 600; color: var(--ink); margin-top: 0.75rem; }
.product__media { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.product__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 1.5rem; }

/* Spec table - deliberately dense and technical */
.spec { margin-top: 1.75rem; font-size: var(--step--1); }
.spec caption { text-align: left; font-weight: 700; font-size: var(--step-0); padding-bottom: 0.75rem; letter-spacing: -0.01em; }
.spec th, .spec td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; font-weight: 600; color: var(--ink); background: var(--paper-2); }
.spec td { color: var(--steel); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.feat { margin-top: 1.75rem; list-style: none; display: grid; gap: 0.7rem; }
.feat li { position: relative; padding-left: 1.7rem; color: var(--steel); font-size: var(--step--1); line-height: 1.6; }
.feat li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 2px;
  background: var(--accent);
}
.feat strong { color: var(--ink); font-weight: 600; }
.feat--tight { margin-top: 0.9rem; gap: 0.45rem; }

/* Sub-heading inside a section */
.sub { font-size: var(--step-1); margin-bottom: 0.4rem; }
.sub--gap { margin-top: 2rem; }

/* Definition list for capabilities: term + one-line explanation */
.deflist { margin-top: 0.9rem; }
.deflist dt {
  font-weight: 600;
  font-size: var(--step-0);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.deflist dt:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.deflist dd { margin: 0.25rem 0 0; color: var(--steel); font-size: var(--step--1); line-height: 1.6; }

.grid--gap { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* Client roll */
.clients { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.6rem; margin-top: 1.75rem; }
.clients li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  background: var(--paper);
}
.section--ink .clients li { border-color: var(--line-dark); background: transparent; color: #cfd6de; }

/* Footer strapline */
.ftr__tag {
  margin-top: 0.9rem;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Gallery ------------------------------------------------------
   Every frame carries a permanent gradient scrim with its label sitting on
   top, so the grid reads as captioned work rather than a wall of thumbnails.
   The scrim also guarantees the caption stays legible over any photograph.   */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.85rem; }
.gal figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  isolation: isolate;
}
.gal img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
/* Always-on gradient: transparent at the top, graphite at the caption. */
.gal figure::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 14, 19, 0) 30%, rgba(11, 14, 19, 0.55) 62%, rgba(11, 14, 19, 0.93) 100%);
  transition: opacity 0.4s var(--ease);
}
.gal figure:hover img, .gal figure:focus-within img { transform: scale(1.05); opacity: 1; }

.gal figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1rem 1.15rem 1.05rem;
  color: #fff;
}
.gal__t {
  display: block;
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: -0.012em;
  line-height: 1.25;
}
/* A short accent rule that grows on hover - motion via transform only. */
.gal__t::before {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 0.55rem;
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.gal figure:hover .gal__t::before, .gal figure:focus-within .gal__t::before { transform: scaleX(2.1); }
.gal__d {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--step--1);
  line-height: 1.5;
  color: #c3cbd6;
}

/* ---------- Lightbox ----------------------------------------------------
   Gallery frames open full size on click. The trigger is a real <button>
   wrapping the figure content, so it is keyboard operable for free.          */
.gal__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 8, 12, 0.94);
}
.lb[data-open='true'] { display: flex; }
.lb__fig { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 0.9rem; }
.lb__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  animation: lbin 0.28s var(--ease);
}
@keyframes lbin { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.lb__cap { color: #fff; max-width: 70ch; }
.lb__cap .gal__t { font-size: var(--step-1); }
.lb__cap .gal__d { color: #b9c2ce; }
.lb__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lb__close:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.lb__close svg { width: 22px; height: 22px; }
body[data-lb='open'] { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lb__img { animation: none; }
}

/* ---------- Crossfading showcase ----------------------------------------
   Slides are stacked and cross-faded with opacity only. Behaviour lives in
   main.js and must: pause when off screen, never start under
   prefers-reduced-motion, and stop permanently once the visitor takes
   control of it.                                                            */
.showcase { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); isolation: isolate; }
.showcase__stage { position: relative; aspect-ratio: 16 / 10; }
.showcase__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.showcase__slide[data-on='true'] { opacity: 1; }
.showcase__slide img { width: 100%; height: 100%; object-fit: cover; }
.showcase__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 14, 19, 0.15) 0%, rgba(11, 14, 19, 0.2) 40%, rgba(11, 14, 19, 0.93) 100%);
}
.showcase__cap { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.5rem 1.6rem 1.3rem; color: #fff; }
.showcase__t { display: block; font-weight: 700; font-size: var(--step-1); letter-spacing: -0.02em; }
.showcase__d { display: block; margin-top: 0.35rem; font-size: var(--step--1); color: #c3cbd6; max-width: 46ch; line-height: 1.55; }
.showcase__dots { display: flex; gap: 0.45rem; padding: 1rem 1.6rem 1.25rem; background: var(--ink); }
.showcase__dot {
  width: 26px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.showcase__dot[aria-selected='true'] { background: var(--accent); transform: scaleY(1.6); }
.showcase__dot:hover { background: rgba(255, 255, 255, 0.65); }

@media (prefers-reduced-motion: reduce) {
  .showcase__slide { transition: none; }
}

/* ---------- Contact ------------------------------------------------------ */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

.detail { border-top: 1px solid var(--line); padding: 1.15rem 0; display: flex; gap: 1rem; align-items: flex-start; }
.detail:first-of-type { border-top: 0; }
.detail svg { width: 20px; height: 20px; flex: none; margin-top: 0.28rem; color: var(--accent); }
.detail__l { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.detail__v { font-weight: 600; margin-top: 0.15rem; }
.detail__v a { text-decoration: none; }
.detail__v a:hover { color: var(--accent); }

.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em; }
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: var(--step-0);
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.field__err { font-size: var(--step--1); color: var(--accent-dark); min-height: 1.2em; }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: var(--accent); background: var(--accent-soft); }

.form-note { font-size: var(--step--1); color: var(--steel); margin-top: 1rem; line-height: 1.6; }

/* ---------- Footer ------------------------------------------------------- */
.ftr { background: var(--ink); color: #fff; padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.ftr__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ftr__logo img { width: 190px; height: auto; }
.ftr__blurb { color: #939eac; font-size: var(--step--1); margin-top: 1rem; max-width: 34ch; line-height: 1.7; }
.ftr h3 { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.ftr ul { list-style: none; display: grid; gap: 0.55rem; }
.ftr a { color: #939eac; text-decoration: none; font-size: var(--step--1); transition: color 0.2s var(--ease); }
.ftr a:hover { color: #fff; }
.ftr__social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.ftr__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.ftr__social a:hover { border-color: var(--accent); background: var(--accent); transform: translateY(-2px); }
.ftr__social svg { width: 18px; height: 18px; }
.ftr__base {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: var(--step--1); color: #6f7a89;
}

/* ---------- Breadcrumb / page head -------------------------------------- */
.phead { background: var(--ink); color: #fff; padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); }
.phead h1 { font-size: var(--step-3); max-width: 20ch; }
.phead .lede { margin-top: 1.1rem; color: #aab3c0; }
.crumb { font-size: var(--step--1); color: var(--steel-2); margin-bottom: 1rem; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: #fff; }

/* ---------- Image placeholder (LQIP host) -------------------------------- */
.ph { background-color: var(--paper-2); }

/* ---------- Motion ------------------------------------------------------- */
.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.rise.in { opacity: 1; transform: none; }

@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;
  }
  .rise { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .gal figure:hover img { transform: none; }
}

/* ---------- Print -------------------------------------------------------- */
@media print {
  .hdr, .ftr, .btn-row, .burger { display: none; }
  body { color: #000; background: #fff; }
  .section { padding-block: 1rem; }
}
