/* =========================================================================
   aqurate — technical 3D animation for industry
   One shared stylesheet. Plain CSS, no build step.
   Design language: dark CAD-viewport + engineering-drawing annotation.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Color — dark "CAD-viewport" palette (use exactly) */
  /* LIGHT THEME — engineering drawing on drafting paper.
     (Previous dark values kept in styles-dark-backup.css for easy revert.) */
  --bg:          #F3F1EB;   /* drafting off-white */
  --surface:     #FBFAF6;   /* lifted panel / near-white card */
  --surface-2:   #EBE9E1;   /* card / hover surface */
  --line:        #CBCFD4;   /* steel hairline (most rules, ticks) */
  --line-bright: #9AA2AB;   /* emphasis hairline */
  --text:        #16202A;   /* cool near-black ink, primary text */
  --text-dim:    #45515C;   /* secondary text */
  --text-faint:  #737C86;   /* captions, faint labels */
  --accent:      #E32C2E;   /* aqurate brand red (from the q. logo) */
  --accent-soft: rgba(227,44,46,0.10); /* subtle underlays/glows */

  /* Type families */
  --font-display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --font-body:    "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale */
  --fs-hero:    clamp(2.6rem, 6vw, 4.75rem);
  --fs-h2:      clamp(2rem, 3.6vw, 2.75rem);
  --fs-h3:      clamp(1.35rem, 2vw, 1.6rem);
  --fs-body:    clamp(1.05rem, 1.2vw, 1.15rem);
  --fs-mono:    0.75rem;
  --fs-mono-sm: 0.72rem;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;
}

/* -------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

::selection { background: var(--accent); color: #0E1217; }

/* Visible keyboard focus (quality floor) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0E1217;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* -------------------------------------------------------------------------
   4. SIGNATURE: engineering-drawing annotation language
   (built once here, reused everywhere — this is where the boldness is spent)
   ------------------------------------------------------------------------- */

/* Mono eyebrow — the "technical annotation" voice */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
/* The "// SECTION" slash marker sits in accent to tie the eyebrow to the amber system */
.eyebrow .slash { color: var(--accent); }

/* Generic mono label / caption / tag */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.mono-sm { font-size: var(--fs-mono-sm); }
.mono-up { text-transform: uppercase; letter-spacing: 0.1em; }

/* A tag that reads like a callout label pinned to a drawing */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tag::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--line-bright);
  flex: 0 0 auto;
}
.tag--accent::before { background: var(--accent); }
.tag--accent { color: var(--text); }

/* Dimension-tick divider — a measured span between sections.
   Thin rule with short perpendicular end-ticks. */
.dim-divider {
  position: relative;
  height: 1px;
  background: var(--line);
  margin-block: 0;
}
.dim-divider::before,
.dim-divider::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--line-bright);
}
.dim-divider::before { left: 0; }
.dim-divider::after  { right: 0; }

/* Registration / crop marks in the corners of a framed area */
.crop-frame { position: relative; }
.crop-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  color: var(--line-bright);
}
.crop-mark::before,
.crop-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.crop-mark::before { width: 12px; height: 1px; top: 0; left: 0; }
.crop-mark::after  { width: 1px; height: 12px; top: 0; left: 0; }
.crop-mark.tl { top: -1px;  left: -1px;  }
.crop-mark.tr { top: -1px;  right: -1px; transform: scaleX(-1); }
.crop-mark.bl { bottom: -1px; left: -1px;  transform: scaleY(-1); }
.crop-mark.br { bottom: -1px; right: -1px; transform: scale(-1,-1); }

/* Leader line + caption — points from an object to a mono note.
   Structure: <div class="leader"><span class="leader__line"></span>
              <span class="mono">CAPTION</span></div> */
.leader {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.leader__line {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--line-bright);
  flex: 0 0 auto;
}
.leader__line::before { /* end tick (dot at the object end) */
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.leader--muted .leader__line::before { background: var(--line-bright); }

/* Annotated callout stat — a number with a leader line to a mono descriptor.
   Used for the proof band instead of a generic stat grid. */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0 1.1rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}
.callout__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.callout__lead {
  position: relative;
  padding-left: 3rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  align-self: center;
}
.callout__lead::before { /* the leader line into the caption */
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--line-bright);
}
.callout__lead::after { /* accent end-tick */
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - 2px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* -------------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

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

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-bright);
}
.btn--ghost:hover { border-color: var(--text-dim); background: var(--surface); }

.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Plain text link with a mono arrow */
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line-bright);
  padding-bottom: 3px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.textlink:hover { color: var(--accent); border-color: var(--accent); }
.textlink .btn__arrow { transition: transform 0.25s var(--ease); }
.textlink:hover .btn__arrow { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   6. HEADER / NAV
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 18, 23, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}

/* Wordmark with amber registration tick */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.wordmark .tick {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-block: 0.4rem;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--accent);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line-bright);
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.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(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
  }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent); }
  .nav .btn { margin-top: 1rem; width: 100%; justify-content: center; }
}

/* -------------------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  /* Ultimate fallback background if video + poster are both absent:
     a faint CAD grid on charcoal so the section never looks broken. */
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  background-position: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Vignette + gradient so overlay text stays legible over any video */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,18,23,0.55) 0%, rgba(14,18,23,0.15) 35%, rgba(14,18,23,0.8) 100%),
    radial-gradient(120% 80% at 20% 90%, rgba(14,18,23,0.85), transparent 60%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  padding-top: 6rem;
}
.hero__content { max-width: 40rem; }
.hero__title {
  font-size: var(--fs-hero);
  margin: 0.5rem 0 1.4rem;
}
.hero__sub {
  color: var(--text-dim);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Hero annotation — leader line drawn from the engine to a mono caption.
   Positioned bottom-right, drawn in once on load. */
.hero__annotation {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 7vw, 6rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 60%;
}
.hero__annotation .anno-svg { width: 90px; height: 20px; flex: 0 0 auto; }
.hero__annotation .anno-svg line,
.hero__annotation .anno-svg circle { stroke: var(--accent); }
.hero__annotation .mono { color: var(--text); }
@media (max-width: 720px) {
  .hero__annotation { display: none; } /* keep mobile hero uncluttered */
}

/* -------------------------------------------------------------------------
   8. GENERIC SECTION HEADINGS
   ------------------------------------------------------------------------- */
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--text-dim); margin-top: 1rem; max-width: 42rem; }

.lead { color: var(--text-dim); }

/* -------------------------------------------------------------------------
   9. PROOF BAND
   ------------------------------------------------------------------------- */
.proof__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  max-width: 20ch;
  margin-bottom: 1.25rem;
}
.proof__body { color: var(--text-dim); max-width: 46rem; margin-bottom: 2.5rem; }
.proof__callouts { max-width: 46rem; border-bottom: 1px solid var(--line); }

/* -------------------------------------------------------------------------
   10. VIDEO EMBEDS (responsive 16:9, lazy façade)
   ------------------------------------------------------------------------- */
.embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;      /* 16:9 */
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.embed iframe,
.embed .embed__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Click-to-load façade so no iframe (and no cookies) load until asked */
.embed__facade {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background:
    radial-gradient(80% 80% at 50% 45%, var(--surface-2), var(--surface));
  color: var(--text);
  transition: background 0.4s var(--ease);
}
.embed__facade:hover { background: radial-gradient(80% 80% at 50% 45%, #20293300, var(--surface-2)); }
.embed__play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  pointer-events: none;
}
.embed__play .disc {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.embed__facade:hover .disc { transform: scale(1.06); background: rgba(227,44,46,0.22); }
.embed__play .disc svg { width: 20px; height: 20px; margin-left: 3px; fill: var(--accent); }
.embed__play .label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* A framed work piece: embed + leader-line tag + caption */
.piece { }
.piece__frame { position: relative; }
.piece__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}
.piece__caption { color: var(--text-dim); max-width: 52ch; }
.piece__index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.piece + .piece { margin-top: clamp(3rem, 6vw, 5rem); }

/* Two-up featured grid on Home */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------------------
   11. PROCESS (numbered — the one honest sequence)
   ------------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: 1fr; gap: 0; }
.process__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.process__step:last-child { border-bottom: 1px solid var(--line); }
.process__num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.35rem;
}
.process__body h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.process__body p { color: var(--text-dim); max-width: 52ch; }

/* -------------------------------------------------------------------------
   12. CTA BANDS
   ------------------------------------------------------------------------- */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.cta-band__inner { max-width: 46rem; }
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.cta-band p { color: var(--text-dim); margin-bottom: 2rem; }

/* -------------------------------------------------------------------------
   13. ABOUT (Home)
   ------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 820px) {
  .about--with-photo { grid-template-columns: 220px 1fr; align-items: start; }
}
.about h2 { font-size: var(--fs-h2); margin-bottom: 1.25rem; }
.about p { color: var(--text-dim); max-width: 60ch; }
.about__photo {
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

/* -------------------------------------------------------------------------
   14. SERVICES / CARDS / INDUSTRIES / FAQ  (used on services.html)
   ------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 780px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.card__tag { margin-bottom: 1.5rem; }
.card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.card__desc { color: var(--text-dim); font-size: 1rem; margin-bottom: 1.5rem; flex: 1; }
.card__price {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.industries {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 2;
  word-spacing: 0.2em;
}
.industries .sep { color: var(--accent); margin-inline: 0.5rem; }

.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.faq__q .plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.faq__q .plus::before,
.faq__q .plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  left: 50%;
  top: 50%;
  transition: transform 0.3s var(--ease);
}
.faq__q .plus::before { width: 14px; height: 1.5px; transform: translate(-50%,-50%); }
.faq__q .plus::after  { width: 1.5px; height: 14px; transform: translate(-50%,-50%); }
.faq__q[aria-expanded="true"] .plus::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}
.faq__a-inner { padding: 0 0 1.5rem; color: var(--text-dim); max-width: 60ch; }

.why { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 720px) { .why { grid-template-columns: 1fr 1fr; } }
.why__item h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.why__item p { color: var(--text-dim); max-width: 48ch; }

/* -------------------------------------------------------------------------
   15. CONTACT
   ------------------------------------------------------------------------- */
.contact-lead { max-width: 44rem; }
.contact-lead h1 { font-size: var(--fs-hero); margin: 0.5rem 0 1.4rem; }
.contact-lead p { color: var(--text-dim); margin-bottom: 2.25rem; }
.contact__primary { margin-bottom: 2.5rem; }
.contact__note {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Optional contact form */
.form { display: grid; gap: 1.25rem; max-width: 40rem; margin-top: 2.5rem; }
.form__row { display: grid; gap: 0.5rem; }
.form label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form input, .form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0;
  transition: border-color var(--dur) var(--ease);
}
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea { resize: vertical; min-height: 130px; }

/* -------------------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------------------- */
.site-footer { padding-bottom: 3rem; }
.site-footer__divider { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
.site-footer .wordmark { font-size: 1.2rem; margin-bottom: 0.9rem; }
.site-footer__tag { color: var(--text-dim); font-size: 0.95rem; max-width: 28ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a, .footer-contact a, .footer-contact span {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--dur) var(--ease);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__copy {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* -------------------------------------------------------------------------
   17. MODAL (hero "Watch how it works")
   ------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(8, 11, 14, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal[data-open="true"] { display: flex; }
.modal__dialog {
  position: relative;
  width: min(1000px, 100%);
}
.modal__close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: 1px solid var(--line-bright);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); }

/* -------------------------------------------------------------------------
   18. MOTION — scroll reveals + hero draw-in
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Hero leader-line draw-in (SVG stroke) — runs once on load */
.hero__annotation .anno-svg line,
.hero__annotation .anno-svg circle {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}
.hero.is-drawn .anno-svg line,
.hero.is-drawn .anno-svg circle {
  animation: draw-in 0.6s var(--ease) forwards;
}
.hero.is-drawn .hero__annotation .mono {
  animation: fade-in 0.5s var(--ease) 0.45s forwards;
  opacity: 0;
}
@keyframes draw-in { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* -------------------------------------------------------------------------
   19. REDUCED MOTION — disable autoplay atmosphere + transitions
   ------------------------------------------------------------------------- */
@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__annotation .anno-svg line,
  .hero__annotation .anno-svg circle { stroke-dashoffset: 0; }
  .hero__annotation .mono { opacity: 1; }
}

/* -------------------------------------------------------------------------
   20. WORK GALLERY additions
   ------------------------------------------------------------------------- */
.gallery .piece + .piece { margin-top: clamp(3.5rem, 7vw, 6rem); }

/* Reserved (empty) slot — reads as a blank drawing frame, on purpose */
.slot-empty {
  display: grid;
  place-items: center;
  border-style: dashed;
  border-color: var(--line-bright);
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 14px,
      rgba(255,255,255,0.012) 14px 28px
    ),
    var(--surface);
}
.slot-empty__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Copyable email line on Contact */
.contact__copy {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.contact__addr {
  font-family: var(--font-mono);
  color: var(--text);
  border-bottom: 1px solid var(--line-bright);
  padding-bottom: 1px;
  user-select: all;           /* one click selects the whole address */
}

/* =========================================================================
   21. LIGHT-THEME SCOPING
   The page body is light "drafting paper". The hero stays a dark, immersive
   CAD-viewport block so the engine video keeps its drama. These overrides
   come last so they win over the base rules.
   ========================================================================= */

/* Header: light bar */
.site-header {
  background: rgba(243, 241, 235, 0.85);
  border-bottom: 1px solid var(--line);
}

/* Hero stays dark regardless of the light body */
.hero {
  background-color: #0E1217;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  background-position: center;
}
/* Hero text is light over the dark video */
.hero__title { color: #F4F6F8; }
.hero__sub   { color: #C3CBD3; }
.hero .eyebrow { color: #9AA6B2; }
.hero__annotation .mono { color: #F4F6F8; }
/* Ghost button on the dark hero needs light text/border */
.hero .btn--ghost { color: #F4F6F8; border-color: rgba(255,255,255,0.35); }
.hero .btn--ghost:hover { border-color: #F4F6F8; background: rgba(255,255,255,0.06); }

/* Video embeds: give them a soft dark frame so footage reads well on paper */
.embed { background: #12181F; border-color: #D7D5CD; }
.embed__facade {
  background: radial-gradient(80% 80% at 50% 45%, #1B222B, #12181F);
  color: #E9EEF3;
}
.embed__facade:hover { background: radial-gradient(80% 80% at 50% 45%, #232C36, #161C24); }
.embed__play .label { color: #AEB7C1; }

/* Reserved slot on Work: light dashed frame */
.slot-empty {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,0.02) 14px 28px),
    var(--surface);
}

/* Selection: red with white text reads cleaner on light */
::selection { background: var(--accent); color: #fff; }
