/* ===================================================================
   ZONE GROUP ENGINEERING & CONSTRUCTION
   -------------------------------------------------------------------
   Sibling build to Zone Real Estate. Same architecture, same layout
   rhythm, same typographic scale, same breakpoints — different DNA.

   WHERE REAL ESTATE FLOWS, THIS ONE MEASURES.
   That build's rule was "down and to the right", and everything in it
   was liquid: waves, a spring gauge, viscous cursor lag. Precision
   doesn't overshoot, so here the rule is: lines DRAW, layers STACK,
   markers SNAP. No bounce anywhere in the easing.

   Real Estate         →   Engineering
   liquid gauge        →   elevation rule (right edge, snaps to section)
   wave dividers       →   section lines with tick marks
   surfacing + blur    →   drafting in: rise, then a copper line sweeps
   wobbling blobs      →   fixed blueprint grid, near-still masses
   viscous pointer     →   crosshair guides, tight to the cursor
   droplet in wordmark →   section marker that draws once
   =================================================================== */

:root {
  /* --- MANDATORY PALETTE. Every colour below derives from these. --- */
  --background: #14110F;
  --surface:    #211C18;
  --primary:    #C78157;
  --secondary:  #D4C2AF;
  --text:       #F7F1EA;

  /* Derived surfaces */
  --surface-2:   #2A231E;
  --surface-sunk: #191512;

  /* Derived text tones — opacity steps off --text */
  --text-mid:  rgba(247, 241, 234, 0.68);
  --text-dim:  rgba(247, 241, 234, 0.44);
  --text-faint: rgba(247, 241, 234, 0.26);

  /* Architectural lines, all derived from --secondary */
  --line:        rgba(212, 194, 175, 0.13);
  --line-strong: rgba(212, 194, 175, 0.26);
  --line-primary: rgba(199, 129, 87, 0.42);

  /* Primary at working opacities */
  --primary-soft:  rgba(199, 129, 87, 0.14);
  --primary-glow:  rgba(199, 129, 87, 0.28);

  --gradient: linear-gradient(100deg, var(--primary), var(--secondary));

  /* Same three families as Zone Real Estate — the type is the family
     resemblance; the palette carries the distinction. */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Outfit", system-ui, sans-serif;
  --font-mono:    "DM Mono", ui-monospace, monospace;

  --shell: 1180px;

  /* Scroll velocity, written by drafting.js. Used sparingly. */
  --drift: 0;

  /* Easing. Note there is no overshoot in either — that is deliberate.
     --draft decelerates hard and stops dead, like a drawn line meeting
     its endpoint. Compare Real Estate's --settle, which is bouncy. */
  --draft: cubic-bezier(0.16, 1, 0.3, 1);
  --measure: cubic-bezier(0.65, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip:focus { left: 24px; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================================
   AMBIENT FIELD
   A blueprint grid, fixed, plus two copper masses that barely move.
   The Real Estate build ran five blobs on 37–61s cycles; this one is
   deliberately close to still. Engineering ambience is a drawing
   board, not a lava lamp.
   =================================================================== */
.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.field__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.5;
  /* Minor lift while scrolling — the grid "breathes" but never moves. */
  transform: scale(calc(1 + var(--drift) * 0.006));
  transition: opacity 0.6s ease, transform 0.8s var(--draft);
}

/* A finer grid inside the coarse one, at quarter strength */
.field__grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.34;
}

.field__mass {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.field__mass--a {
  width: 52vw; height: 52vw;
  left: -12vw; top: 2vh;
  background: radial-gradient(circle at 45% 45%, var(--primary), transparent 68%);
  opacity: 0.16;
  animation: drift-a 74s ease-in-out infinite;
}

.field__mass--b {
  width: 40vw; height: 40vw;
  left: 62vw; top: 44vh;
  background: radial-gradient(circle at 50% 50%, var(--secondary), transparent 66%);
  opacity: 0.07;
  animation: drift-b 91s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(4vw, 6vh, 0) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-5vw, -5vh, 0) scale(1.1); }
}

.field__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================================================================
   DRAFTING GUIDES — crosshairs tracking the cursor over the hero.
   Tight to the pointer, unlike the Real Estate wake which lagged
   heavily on purpose. Lag reads as viscous; this needs to read as
   registered.
   =================================================================== */
.guides {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.guides.is-live { opacity: 1; }

.guides__v, .guides__h {
  position: absolute;
  background: linear-gradient(var(--line-primary), transparent);
  will-change: transform;
}

.guides__v {
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-primary) 45%, transparent);
}

.guides__h {
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-primary) 45%, transparent);
}

/* ===================================================================
   SIGNATURE — THE ELEVATION RULE
   Right edge, desktop. Ticks like a measuring scale; the copper index
   marker tracks scroll position. Where the Real Estate gauge filled
   like a tube and wobbled, this reads a level and holds it.
   =================================================================== */
.rule {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.rule__track {
  position: relative;
  width: 26px;
  height: 200px;
}

/* Tick marks: long every fifth, short otherwise. Drawn by drafting.js */
.rule__ticks {
  position: absolute;
  right: 0;
  top: 0; bottom: 0;
  width: 100%;
}

.rule__tick {
  position: absolute;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.rule__tick--major { width: 13px; background: var(--text-faint); }
.rule__tick--minor { width: 7px; }

.rule__progress {
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 0%;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  transition: height 0.18s linear;
}

/* The index marker: a small copper triangle, like a rule cursor */
.rule__index {
  position: absolute;
  right: -1px;
  top: 0;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 8px solid var(--primary);
  transition: top 0.18s linear;
}

.rule__readout {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

@media (max-width: 1080px) { .rule { display: none; } }

/* ===================================================================
   REVEAL — "drafting in"
   Content rises a short distance and a copper line sweeps across
   beneath it, the way a drawn element is struck onto a sheet. No
   blur, no bounce: the Real Estate build blurred content into focus
   because liquid refracts. Drawings are sharp from the first frame.
   =================================================================== */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.js .reveal.is-drawn {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--measure),
    transform 0.9s var(--draft);
}

.reveal[data-delay="1"].is-drawn { transition-delay: 0.08s; }
.reveal[data-delay="2"].is-drawn { transition-delay: 0.16s; }
.reveal[data-delay="3"].is-drawn { transition-delay: 0.24s; }
.reveal[data-delay="4"].is-drawn { transition-delay: 0.32s; }
.reveal[data-delay="5"].is-drawn { transition-delay: 0.40s; }

/* Lines that draw themselves along their length when revealed */
.js .drawline {
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.js .drawline.is-drawn {
  transform: scaleX(1);
  transition: transform 1.1s var(--measure);
}

/* ===================================================================
   WORDMARK
   The Real Estate mark has a droplet that never stops falling. This
   one has a section marker — a square with a crosshair — that draws
   itself once and then holds. It only moves again on hover.
   =================================================================== */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.wordmark__mark {
  width: 22px;
  height: 22px;
  flex: none;
  display: block;
}

.wordmark__mark svg { width: 100%; height: 100%; display: block; }

.wordmark__box {
  stroke: var(--primary);
  stroke-width: 1.6;
  fill: none;
  stroke-dasharray: 68;
  stroke-dashoffset: 68;
  animation: draw-mark 1.4s var(--measure) 0.2s forwards;
}

.wordmark__cross {
  stroke: var(--secondary);
  stroke-width: 1;
  opacity: 0;
  animation: fade-mark 0.7s ease 1.1s forwards;
  transition: transform 0.7s var(--draft);
  transform-origin: 50% 50%;
}

@keyframes draw-mark { to { stroke-dashoffset: 0; } }
@keyframes fade-mark { to { opacity: 0.85; } }

.wordmark:hover .wordmark__cross { transform: rotate(45deg); }

.wordmark__text { display: flex; flex-direction: column; line-height: 1.05; }

.wordmark__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.055em;
}

.wordmark__sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.19em;
  color: var(--text-dim);
  margin-top: 2px;
}

.wordmark--small .wordmark__name { font-size: 15px; }
.wordmark--small .wordmark__mark { width: 19px; height: 19px; }

/* ===================================================================
   TOP BAR
   =================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(20, 17, 15, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.topbar__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* The header underline is a drawn rule, not a border */
.topbar__line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-mid);
  padding: 8px 14px;
  transition: color 0.4s ease;
}

/* Active/hover state is an extension line beneath, drawn from the left */
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--measure);
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-current::after { transform: scaleX(1); }
.nav__link.is-current { color: var(--text); }

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===================================================================
   BUTTONS
   Same proportions and radius scale as the Real Estate build, squared
   off. Rounded pills read soft; this brand needs edges.
   =================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.5s var(--draft), border-color 0.4s ease, color 0.4s ease;
}

.btn--sm { padding: 10px 18px; font-size: 12.5px; }

.btn--primary {
  background: var(--primary);
  color: var(--background);
  font-weight: 500;
}

/* Hover runs primary → secondary, the sanctioned gradient */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.5s var(--measure);
}

.btn--primary:hover { transform: translateY(-2px); }
.btn--primary:hover::before { opacity: 1; }
.btn--primary > * { position: relative; z-index: 1; }

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

.btn--ghost:hover {
  border-color: var(--secondary);
  color: var(--text);
  transform: translateY(-2px);
}

/* A measurement tick that extends across the ghost button on hover */
.btn--ghost::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--measure);
}

.btn--ghost:hover::after { transform: scaleX(1); }

/* Burger — two rules that converge into an X */
.burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  position: relative;
}

.burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform 0.45s var(--draft), opacity 0.3s ease;
}

.burger span:first-child { top: 16px; }
.burger span:last-child { top: 22px; }

.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobilenav {
  position: sticky;
  top: 68px;
  z-index: 29;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
}

.mobilenav[hidden] { display: none; }

.mobilenav__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px 16px;
  display: flex;
  flex-direction: column;
}

.mobilenav__inner .nav__link {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.mobilenav__inner .nav__link::after { left: 0; right: auto; width: 34px; bottom: 0; }

@media (max-width: 940px) {
  .nav { display: none; }
  .burger { display: block; }
  .topbar__cta { display: none; }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  z-index: 2;
  padding: 96px 0 80px;
}

.hero__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: 60px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero { padding: 62px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 52px; }
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin: 0 0 24px;
  padding-left: 34px;
  position: relative;
}

/* Eyebrow gets a leader line, like a callout on a drawing */
.hero__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--primary);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 7.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 26px;
}

.hero__line { display: block; }

.hero__line--accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  max-width: 520px;
  color: var(--text-mid);
  font-size: 17px;
  margin: 0 0 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 0;
  margin: 54px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.fact {
  margin: 0;
  padding: 18px 30px 0 0;
  position: relative;
}

.fact + .fact { padding-left: 30px; }
.fact + .fact::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 2px;
  width: 1px;
  background: var(--line);
}

.fact dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.fact dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--secondary);
}

/* -------------------------------------------------------------------
   The structural plate. Where Real Estate had a wobbling liquid bead
   holding a photo, this is a framed technical drawing with crop marks
   at the corners and a dimension label above it. Nothing deforms.
   ------------------------------------------------------------------- */
.plate {
  position: relative;
  padding: 26px;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}

.plate__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-sunk);
  aspect-ratio: 1 / 1.02;
}

.plate__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A single copper line that sweeps down the drawing once on load,
   like a plotter pass. It does not loop. */
.plate__scan {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 78px;
  background: linear-gradient(180deg, transparent, var(--primary-soft) 60%, transparent);
  animation: scan 2.6s var(--measure) 0.5s 1 forwards;
  opacity: 0;
}

@keyframes scan {
  0%   { opacity: 0; transform: translateY(-90px); }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(560px); }
}

/* Crop marks — the corners of a drawing sheet */
.plate__corner {
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--primary);
  opacity: 0.7;
}

.plate__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.plate__corner--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.plate__corner--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.plate__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* Dimension label with extension lines running out either side */
.plate__dim {
  position: absolute;
  left: 26px; right: 26px;
  top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plate__dim i { flex: 1; height: 1px; background: var(--line-strong); }

.plate__dim b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

@media (max-width: 940px) {
  .plate { justify-self: start; max-width: 420px; }
}

/* ===================================================================
   SECTION LINES
   The Real Estate build separated sections with travelling waves.
   Here they are drawn rules with a tick at the centre — a section
   marker on a drawing. Static: the precision is the point.
   =================================================================== */
.sectionline {
  position: relative;
  display: block;
  height: 1px;
  max-width: var(--shell);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--line-strong) 15%, var(--line-strong) 85%, transparent);
}

.sectionline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  border: 1px solid var(--line-primary);
  background: var(--background);
  transform: rotate(45deg);
}

/* ===================================================================
   SECTION SHELL + HEADINGS
   =================================================================== */
.section {
  position: relative;
  z-index: 2;
  padding: 104px 0;
}

.section--tight { padding: 84px 0; }

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .section--tight { padding: 58px 0; }
}

.sechead { max-width: 720px; margin: 0 0 56px; }

.sechead__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin: 0 0 18px;
  padding-left: 34px;
  position: relative;
}

.sechead__eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--primary);
}

.sechead__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 18px;
}

.sechead__text {
  color: var(--text-mid);
  font-size: 16.5px;
  margin: 0;
  max-width: 640px;
}

/* Placeholder warning, so nobody ships sample projects by accident */
.sechead__note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--secondary);
  background: var(--primary-soft);
  border-left: 2px solid var(--primary);
  padding: 14px 18px;
  margin: 0;
  max-width: 640px;
}

/* ===================================================================
   GRIDS + CARDS
   Card geometry follows the Real Estate build (same min column width,
   same 32px gutter, same lift on hover) with square corners and crop
   marks replacing the asymmetric radius deform.
   =================================================================== */
.grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.grid--services { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); align-items: stretch; }
.grid--projects { grid-template-columns: repeat(auto-fill, minmax(316px, 1fr)); gap: 32px; }
.grid--why      { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition:
    transform 0.6s var(--draft),
    border-color 0.45s ease,
    background 0.45s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-primary);
  background: var(--surface-2);
}

/* A copper rule that draws across the top edge on hover */
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 1px; width: 100%;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--measure);
  z-index: 3;
}

.card:hover::before { transform: scaleX(1); }

/* --- Service card --- */
.scard {
  cursor: pointer;
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.scard__index {
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  transition: color 0.4s ease;
}

.scard:hover .scard__index { color: var(--primary); }

.scard__icon {
  width: 40px; height: 40px;
  margin-bottom: 22px;
  color: var(--primary);
  transition: color 0.4s ease, transform 0.6s var(--draft);
}

.scard__icon svg { width: 100%; height: 100%; display: block; }
.scard__icon svg path,
.scard__icon svg rect,
.scard__icon svg circle,
.scard__icon svg line,
.scard__icon svg polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.scard:hover .scard__icon { color: var(--secondary); }

.scard__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.scard__headline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--secondary);
  margin: 0 0 14px;
}

.scard__text {
  font-size: 14.5px;
  color: var(--text-mid);
  margin: 0 0 22px;
}

.scard__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.4s ease, gap 0.4s var(--draft);
}

.scard:hover .scard__more { color: var(--primary); gap: 14px; }

/* --- Project card --- */
.pcard { cursor: pointer; }

.pcard__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--line);
}

.pcard__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--measure);
}

.pcard:hover .pcard__photo { transform: scale(1.045); }

.pcard__tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--background);
  background: var(--secondary);
  padding: 5px 11px;
  border-radius: 2px;
  z-index: 2;
}

/* Sample entries are flagged in copper so they can't be missed */
.pcard__flag {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--background);
  background: var(--primary);
  padding: 5px 10px;
  border-radius: 2px;
  z-index: 2;
}

.pcard__body { padding: 22px 24px 24px; }

.pcard__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.22;
  margin: 0 0 6px;
}

.pcard__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.pcard__meta span { white-space: nowrap; }
.pcard__meta span + span::before { content: "· "; color: var(--text-faint); }

.pcard__summary {
  font-size: 14.5px;
  color: var(--text-mid);
  margin: 0 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pcard__services { display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--secondary);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 5px 10px;
}

/* --- Why card --- */
.wcard { padding: 26px 24px; }

.wcard__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--primary);
  display: block;
  margin-bottom: 14px;
}

.wcard__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.wcard__text {
  font-size: 14px;
  color: var(--text-mid);
  margin: 0;
}

/* ===================================================================
   TIMELINE — "Nga projekti te realizimi"
   Horizontal on desktop with a rule running through the markers,
   vertical on mobile. The connecting rule draws itself when the
   section is reached.
   =================================================================== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

/* The rule the markers sit on */
.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 7px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.6s var(--measure);
}

.timeline.is-drawn::before { transform: scaleX(1); }

.tstep {
  position: relative;
  padding: 0 12px 0 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.7s var(--draft);
}

.timeline.is-drawn .tstep { opacity: 1; transform: none; }

.timeline.is-drawn .tstep:nth-child(1) { transition-delay: 0.15s; }
.timeline.is-drawn .tstep:nth-child(2) { transition-delay: 0.34s; }
.timeline.is-drawn .tstep:nth-child(3) { transition-delay: 0.53s; }
.timeline.is-drawn .tstep:nth-child(4) { transition-delay: 0.72s; }
.timeline.is-drawn .tstep:nth-child(5) { transition-delay: 0.91s; }
.timeline.is-drawn .tstep:nth-child(6) { transition-delay: 1.10s; }
.timeline.is-drawn .tstep:nth-child(7) { transition-delay: 1.29s; }

.tstep__marker {
  display: block;
  width: 15px; height: 15px;
  border: 1px solid var(--primary);
  background: var(--background);
  transform: rotate(45deg);
  margin-bottom: 22px;
}

.tstep__marker--last { background: var(--primary); }

.tstep__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 6px;
}

.tstep__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.tstep__note {
  font-size: 12.5px;
  color: var(--text-dim);
  display: block;
  padding-right: 8px;
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }

  .timeline::before {
    left: 7px; right: auto;
    top: 0; bottom: 0;
    width: 1px; height: auto;
    transform: scaleY(0);
    transform-origin: 50% 0;
  }
  .timeline.is-drawn::before { transform: scaleY(1); }

  .tstep {
    padding: 0 0 30px 34px;
  }
  .tstep__marker {
    position: absolute;
    left: 0; top: 2px;
    margin: 0;
  }
  .tstep:last-child { padding-bottom: 0; }
}

/* ===================================================================
   SYSTEMS DIAGRAM
   Five disciplines converging on one coordinated project. The
   connectors draw downward when revealed.
   =================================================================== */
.systems { position: relative; }

.systems__nodes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

.snode {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 22px 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.7s var(--draft), border-color 0.4s ease;
}

.systems.is-drawn .snode { opacity: 1; transform: none; }
.systems.is-drawn .snode:nth-child(1) { transition-delay: 0.05s; }
.systems.is-drawn .snode:nth-child(2) { transition-delay: 0.14s; }
.systems.is-drawn .snode:nth-child(3) { transition-delay: 0.23s; }
.systems.is-drawn .snode:nth-child(4) { transition-delay: 0.32s; }
.systems.is-drawn .snode:nth-child(5) { transition-delay: 0.41s; }

.snode:hover { border-color: var(--line-primary); }

.snode__label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--secondary);
  display: block;
  margin-bottom: 7px;
}

.snode__note {
  font-size: 12.5px;
  color: var(--text-dim);
  display: block;
}

/* Connector: drops from each node into a collector rule, then one line
   down into the result. Built on the SAME grid as the nodes, so the
   drops sit on the node centres by construction — percentages against
   a stretched viewBox never quite landed once the gaps were counted. */
.systems__wire {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--sys-cols, 5), 1fr);
  gap: 16px;
  height: 62px;
}

.systems__drop {
  width: 1px;
  height: 24px;
  margin: 0 auto;
  background: var(--line-strong);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.5s var(--measure);
}

.systems.is-drawn .systems__drop { transform: scaleY(1); }

/* Half a column of margin either side pulls the rule in to the first
   and last drop rather than the full content width. */
.systems__bar {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--line-strong);
  margin: 0 calc((100% - (var(--sys-cols, 5) - 1) * 16px) / (var(--sys-cols, 5) * 2));
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.9s var(--measure) 0.35s;
}

.systems.is-drawn .systems__bar { transform: scaleX(1); }

.systems__stem {
  position: absolute;
  left: 50%;
  top: 25px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), var(--primary));
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.5s var(--measure) 1.1s;
}

.systems.is-drawn .systems__stem { transform: scaleY(1); }

/* Arrowhead where the stem meets the result panel */
.systems__stem::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -1px;
  width: 0; height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 6px solid var(--primary);
}

.systems__result {
  background: var(--surface);
  border: 1px solid var(--line-primary);
  border-radius: 3px;
  padding: 30px 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.9s, transform 0.8s var(--draft) 0.9s;
}

.systems.is-drawn .systems__result { opacity: 1; transform: none; }

.systems__result strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.systems__result span {
  color: var(--text-mid);
  font-size: 15px;
  max-width: 560px;
  display: inline-block;
}

@media (max-width: 860px) {
  .systems__nodes { grid-template-columns: repeat(2, 1fr); }
  .systems__wire { display: none; }
  .systems__result { margin-top: 22px; }
}

@media (max-width: 480px) {
  .systems__nodes { grid-template-columns: 1fr; }
}

/* ===================================================================
   FEATURE SECTIONS — HVAC, fit-out, steel
   =================================================================== */
.feature {
  position: relative;
  z-index: 2;
  padding: 96px 0;
}

.feature__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
}

.feature--reverse .feature__media { order: -1; }

.feature__media {
  position: relative;
  padding: 20px;
}

.feature__media img {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface-sunk);
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}

.feature__media .plate__corner { opacity: 0.55; }

.feature__points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feature__points li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-mid);
}

/* Bullets are section markers, not droplets */
.feature__points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 7px; height: 7px;
  border: 1px solid var(--primary);
  transform: rotate(45deg);
}

/* The shell → finished sequence */
.sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.sequence__step {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: color 0.5s ease;
}

.sequence__step:last-child { color: var(--primary); }

.sequence__arrow { color: var(--text-faint); font-size: 12px; }

@media (max-width: 900px) {
  .feature { padding: 66px 0; }
  .feature__inner { grid-template-columns: 1fr; gap: 40px; }
  .feature--reverse .feature__media { order: 0; }
}

/* ===================================================================
   FILTER BAR
   Carried over from the Real Estate build. The active state there
   flooded in from the left as a gradient; here it fills flat and
   squares off — same mechanic, drafted rather than poured.
   =================================================================== */
.filterbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.filterbar__buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.filter {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 8px 16px;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.filter span { position: relative; z-index: 2; }

.filter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: translateX(-101%);
  transition: transform 0.55s var(--measure);
  z-index: 1;
}

.filter:hover { color: var(--text); border-color: var(--secondary); }

.filter.is-active {
  color: var(--background);
  border-color: var(--primary);
  font-weight: 500;
}

.filter.is-active::before { transform: translateX(0); }

.filterbar__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .filterbar__count { display: none; }
}

.grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13.5px;
}

/* ===================================================================
   SECTORS
   =================================================================== */
.sectors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sectors li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mid);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 17px;
  transition: border-color 0.4s ease, color 0.4s ease, transform 0.5s var(--draft);
}

.sectors li:hover {
  border-color: var(--line-primary);
  color: var(--text);
  transform: translateY(-2px);
}

/* ===================================================================
   PROCESS STEPS — "Si funksionon"
   =================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.step {
  background: var(--surface);
  padding: 28px 24px 30px;
  transition: background 0.45s ease;
}

.step:hover { background: var(--surface-2); }

.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--primary);
  display: block;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.step__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.step__text {
  font-size: 13.5px;
  color: var(--text-mid);
  margin: 0;
}

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ===================================================================
   QUOTE FORM
   =================================================================== */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 940px) {
  .quote { grid-template-columns: 1fr; gap: 40px; }
}

.quote__direct {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.quote__phone {
  font-family: var(--font-mono);
  font-size: 21px;
  color: var(--text);
  transition: color 0.4s ease;
}

.quote__phone:hover { color: var(--primary); }

.quote__email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.4s ease;
}

.quote__email:hover { color: var(--secondary); }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 34px 32px 36px;
}

@media (max-width: 560px) { .form { padding: 26px 20px 28px; } }

.form__row { margin-bottom: 22px; }

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } }

.form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 9px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: var(--surface-sunk);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 13px 15px;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.form__textarea { min-height: 118px; resize: vertical; line-height: 1.6; }

.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-faint); }

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--background);
}

.form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23D4C2AF' stroke-width='1.3' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 11px;
  padding-right: 40px;
  cursor: pointer;
}

.form__select option { background: var(--surface); color: var(--text); }

/* Service selection — chips that toggle */
.form__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chiptoggle {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mid);
  background: var(--surface-sunk);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 9px 14px;
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.chiptoggle:hover { border-color: var(--secondary); color: var(--text); }

.chiptoggle.is-on {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--background);
  font-weight: 500;
}

.form__input.is-invalid,
.form__textarea.is-invalid { border-color: var(--primary); }

.form__error {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--primary);
  margin-top: 8px;
  min-height: 0;
}

.form__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.form__actions .btn { flex: 1; min-width: 180px; }

.form__callnote {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.form__callnote a { color: var(--secondary); }
.form__callnote a:hover { color: var(--primary); }

.form__success {
  border: 1px solid var(--line-primary);
  background: var(--primary-soft);
  border-radius: 3px;
  padding: 20px 22px;
  margin-top: 22px;
}

.form__success strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.form__success span { font-size: 14px; color: var(--text-mid); }

/* ===================================================================
   DETAIL PANEL
   Real Estate's panel arrived as a blob and rounded out. This one
   arrives square and rises — same timing, no morph.
   =================================================================== */
.detail {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.detail[hidden] { display: none; }

.detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 7, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.4s ease both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.detail__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 940px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(6, 4, 3, 0.7);
  animation: raise 0.6s var(--draft) both;
}

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

.detail__scroll { overflow-y: auto; max-height: min(88vh, 940px); }

.detail__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(20, 17, 15, 0.8);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.5s var(--draft);
}

.detail__close svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.4; }

.detail__close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--background);
  transform: rotate(90deg);
}

.detail__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line-strong);
}

.detail__body { padding: 32px 34px 36px; }

@media (max-width: 560px) { .detail__body { padding: 24px 20px 30px; } }

.detail__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin: 0 0 14px;
}

.detail__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 10px;
}

.detail__headline {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--secondary);
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.detail__text {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-mid);
  margin: 0 0 26px;
}

.detail__subhead {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

@media (max-width: 560px) { .detail__list { grid-template-columns: 1fr; } }

.detail__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--text-mid);
}

.detail__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 7px; height: 7px;
  border: 1px solid var(--primary);
  transform: rotate(45deg);
}

.detail__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 26px;
}

@media (max-width: 560px) { .detail__specs { grid-template-columns: 1fr; } }

.detail__spec { padding: 16px 18px; background: var(--surface-sunk); }

.detail__spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.detail__spec-value {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--secondary);
}

.detail__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail__actions .btn { flex: 1; min-width: 160px; }

.detail__flag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--secondary);
  background: var(--primary-soft);
  border-left: 2px solid var(--primary);
  padding: 12px 16px;
  margin: 0 0 22px;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  position: relative;
  z-index: 2;
  padding-top: 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  padding-top: 64px;
  padding-bottom: 48px;
}

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; }
}

.footer__note {
  color: var(--text-mid);
  font-size: 14px;
  margin: 20px 0 0;
  max-width: 420px;
}

.footer__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.footer__phone {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--text);
  transition: color 0.4s ease;
}

.footer__phone:hover { color: var(--primary); }

.footer__email,
.footer__city {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.footer__email:hover { color: var(--secondary); }

.footer__familynote {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.7;
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}

/* ===================================================================
   RESPONSIVE — breakpoints match the Real Estate build
   =================================================================== */
@media (max-width: 560px) {
  .shell, .hero__inner, .feature__inner { padding-left: 18px; padding-right: 18px; }
  .topbar__inner { padding: 12px 18px; }
  .wordmark__name { font-size: 15px; }
  .wordmark__sub { font-size: 7px; letter-spacing: 0.15em; }
  .hero__actions .btn { flex: 1; min-width: 100%; }
  .fact { padding-right: 22px; }
  .fact + .fact { padding-left: 22px; }
  .mobilenav { top: 62px; }
}

@media (max-width: 430px) {
  .hero__facts { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; }
  .fact + .fact::before { display: none; }
  .fact { border-top: 1px solid var(--line); padding-top: 16px; }
  .hero__facts { border-top: 0; }
}

/* ===================================================================
   REDUCED MOTION
   Everything ambient stops. Nothing is left stuck invisible — the
   drawn-in states are forced on, exactly as the Real Estate build
   forces its surfaced states.
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .js .drawline { transform: none; }
  .timeline::before { transform: scaleX(1); }
  .tstep, .snode, .systems__result { opacity: 1; transform: none; }
  
  .wordmark__box { stroke-dashoffset: 0; }
  .wordmark__cross { opacity: 0.85; }
  .plate__scan { display: none; }
  .guides { display: none; }
  .field__mass { opacity: 0.1; }
  .card:hover { transform: none; }
}

@media (max-width: 900px) {
  .timeline::before { transform: scaleY(0); }
  .timeline.is-drawn::before { transform: scaleY(1); }
}
