/* ============================================================
   JOLUK — styles.css
   Near-black canvas + muted cool-steel accent, Apple-style motion.
   Sections are clearly marked; colors live in :root for easy edits.
   ============================================================ */

/* ---------- 0. Design tokens ---------- */
:root {
  /* Surfaces — blacks and near-blacks */
  --bg:        #08090B;   /* base canvas (near-black) */
  --panel:     #121417;   /* raised panels */
  --panel-2:   #050506;   /* darker alt sections */
  --line:      rgba(255, 255, 255, 0.08); /* hairline borders */
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Accent — muted cool steel (subtle, technical) */
  --accent:      #9DB4C8; /* primary accent */
  --accent2:     #C2CDD6; /* lighter steel for secondary marks */
  --accent-soft: rgba(157, 180, 200, 0.14);

  /* Text */
  --ink:       #F5F5F7;   /* near-white */
  --muted:     #8A8F98;   /* secondary gray */
  --paper:     #F4F7F8;   /* light documentation surface */
  --paper-alt: #EAF0F3;   /* alternating light section */
  --paper-card:#FFFFFF;
  --paper-ink: #17232D;
  --paper-muted:#556570;
  --paper-line:#CBD6DC;

  /* Type */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1160px;
  --pad:  clamp(20px, 5vw, 48px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* Apple-like ease-out */
  --dur:  0.7s;
}

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }

/* ---------- 2. Layered atmospheric backdrop ---------- */
/* Blueprint grid: a fine grid + a coarser one so it never reads as flat. */
.grid-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    linear-gradient(to right, rgba(157,180,200,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(157,180,200,0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(157,180,200,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(157,180,200,0.06) 1px, transparent 1px);
  background-size: 58px 58px, 58px 58px, 290px 290px, 290px 290px;
  /* fade toward the hero (upper-right) so the grid melts into the canvas */
  -webkit-mask-image: radial-gradient(ellipse 105% 80% at 68% 0%, #000 18%, transparent 86%);
          mask-image: radial-gradient(ellipse 105% 80% at 68% 0%, #000 18%, transparent 86%);
}

/* Cold radial glow → depth behind the hero block */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 48% at 72% 6%, rgba(157,180,200,0.10), transparent 62%),
    radial-gradient(42% 32% at 46% 2%, rgba(110,140,170,0.06), transparent 72%);
}

/* Edge vignette → keeps focus toward the centre */
.bg-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(125% 100% at 50% 32%, transparent 56%, rgba(0,0,0,0.55) 100%);
}

/* Fine film grain → premium texture (static SVG noise) */
.bg-grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--alt { background: var(--panel-2); border-block: 1px solid var(--line); }
.section--light {
  background: var(--paper);
  color: var(--paper-ink);
  border-block: 1px solid var(--paper-line);
}
.section--light-alt { background: var(--paper-alt); }
.section--light .label,
.section--light .eyebrow,
.section--light .card__num,
.section--light .step__num { color: #58758A; }
.section--light .section__lede,
.section--light .card p,
.section--light .step p,
.section--light .contact__note,
.section--light .field__hint { color: var(--paper-muted); }
.section--light .card {
  color: var(--paper-ink);
  border: 1px solid var(--paper-line);
  background: var(--paper-card);
  box-shadow: 0 18px 38px -32px rgba(23,35,45,0.38);
}
.section--light .card::after {
  background: radial-gradient(230px 230px at var(--mx) var(--my), rgba(88,117,138,0.10), transparent 62%);
}
.section--light .card__num::before { background: #58758A; }
.section--light .tag {
  color: #48677D;
  border-color: var(--paper-line);
  background: #EEF4F6;
}
.section--light .step { border-top-color: #AFC0C9; }
.section--light .compare__caption { color: var(--paper-muted); }
.section--light .btn--primary {
  background: var(--paper-ink);
  color: #FFFFFF;
}
.section--light .btn--primary:hover {
  background: #243746;
  box-shadow: 0 10px 30px -12px rgba(23,35,45,0.45);
}

/* Monospace CAD label */
.label, .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow { display: inline-block; margin-bottom: 22px; }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 16px;
}
.section__lede { color: var(--muted); margin-top: 18px; font-size: clamp(16px, 2vw, 19px); }
.muted { color: var(--muted); }
.ta-right { text-align: right; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--ink);
  color: #0A0A0A;
}
.btn--primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(255,255,255,0.18);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--block { width: 100%; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* On scroll, JS adds .is-scrolled → translucent blurred bar (Apple style) */
.site-header.is-scrolled {
  background: rgba(8, 9, 11, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__mark { color: var(--accent); transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__word {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 18px;
}

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.btn) {
  font-size: 15px;
  color: var(--muted);
  position: relative;
  transition: color .2s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--ink); }
/* animated underline */
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { padding: 9px 20px; font-size: 14px; }

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero (full-bleed photo + dark scrim + type overlay) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: clamp(132px, 18vh, 196px);
  padding-bottom: clamp(72px, 11vh, 130px);
  overflow: hidden;
  isolation: isolate;
}
/* Background photo — secondary, sits at the very back (scaled for parallax room) */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  transform: scale(1.1);
  will-change: transform;
}
/* Dark overlay so the TYPE is the hero and the photo stays underneath */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,9,11,0.95) 0%, rgba(8,9,11,0.80) 36%, rgba(8,9,11,0.46) 68%, rgba(8,9,11,0.30) 100%),
    linear-gradient(0deg, var(--bg) 1%, rgba(8,9,11,0.35) 26%, transparent 58%),
    radial-gradient(125% 95% at 28% 42%, transparent 38%, rgba(0,0,0,0.5) 100%);
}
/* Subtle technical viewport deco over the photo */
.hero__deco { position: absolute; inset: clamp(18px, 3vw, 36px); z-index: 2; pointer-events: none; }
.hero__tag {
  position: absolute; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); opacity: 0.5;
}
.hero__tag--tl { top: -1px; left: 34px; }
.hero__tag--br { bottom: -1px; right: 34px; }

.hero__inner { position: relative; z-index: 3; }
.hero__copy {
  max-width: 680px;
  text-shadow: 0 1px 32px rgba(0,0,0,0.5);
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero__title span { display: block; }
/* never split "cut-ready." across the hyphen */
.hero__title em { white-space: nowrap; }
.hero__sub {
  margin-top: 26px;
  max-width: 560px;
  font-size: clamp(17px, 2.1vw, 20px);
  color: #c4cad2;
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Corner brackets framing the hero (decorative CAD detail, low opacity) */
.vp__bracket { position: absolute; width: 20px; height: 20px; border: 1px solid var(--accent); opacity: 0.55; }
.vp__bracket--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vp__bracket--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vp__bracket--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vp__bracket--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------- 7. Technical spec rail ---------- */
.trust {
  position: relative;
  background:
    linear-gradient(180deg, rgba(157,180,200,0.035), transparent 45%),
    var(--panel-2);
  border-block: 1px solid transparent;
}
/* refined gradient hairlines top & bottom */
.trust::before, .trust::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(157,180,200,0.28) 22%, rgba(157,180,200,0.28) 78%, transparent);
}
.trust::before { top: 0; }
.trust::after { bottom: 0; }
.trust__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 24px;
  padding-block: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.07em;
  color: #c6ccd3;
}
/* dots become precise vertical tick markers */
.dot { width: 1px; height: 12px; border-radius: 0; background: var(--accent); opacity: 0.5; }

/* ---------- 8. Services cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 30px 28px;
  border: 1px solid transparent;
  /* gradient hairline border + subtle vertical depth fill */
  background:
    linear-gradient(180deg, #141619, #0e1013) padding-box,
    linear-gradient(160deg, rgba(157,180,200,0.22), rgba(255,255,255,0.03) 38%, rgba(157,180,200,0.08)) border-box;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 20px 44px -34px rgba(0,0,0,0.8);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  --mx: 50%; --my: 0%;
}
/* spotlight that follows the cursor (JS sets --mx/--my) */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(230px 230px at var(--mx) var(--my), rgba(157,180,200,0.14), transparent 60%);
}
.card:hover::after { opacity: 1; }
/* corner "+" crosshair — rotates and lights up on hover */
.card::before {
  content: ""; position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 12px; height: 12px; opacity: 0.3;
  background:
    linear-gradient(var(--accent),var(--accent)) center/1.5px 100% no-repeat,
    linear-gradient(var(--accent),var(--accent)) center/100% 1.5px no-repeat;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 32px 60px -30px rgba(0,0,0,0.9);
}
.card:hover::before { opacity: 0.95; transform: rotate(90deg); }
/* keep text above the spotlight layer */
.card > * { position: relative; z-index: 1; }
/* spec-style number with a leading dimension tick */
.card__num {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.card__num::before {
  content: ""; width: 16px; height: 1px; background: var(--accent); opacity: 0.55;
}
.card h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  margin: 14px 0 10px;
  letter-spacing: -0.01em;
}
.card p { color: var(--muted); font-size: 15.5px; }
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.tag--second-line {
  display: inline-block;
  margin: 10px 0 0;
}

/* ---------- 8b. FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; margin-top: 8px; }
.faq {
  border-radius: 14px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #141619, #0e1013) padding-box,
    linear-gradient(160deg, rgba(157,180,200,0.22), rgba(255,255,255,0.03) 38%, rgba(157,180,200,0.08)) border-box;
  overflow: hidden;
}
.faq > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq > summary::-webkit-details-marker { display: none; }
/* crosshair "+" that rotates to "×" when open (matches card motif) */
.faq > summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  background:
    linear-gradient(var(--accent),var(--accent)) center/1.5px 100% no-repeat,
    linear-gradient(var(--accent),var(--accent)) center/100% 1.5px no-repeat;
  opacity: 0.55;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.faq[open] > summary::after { transform: rotate(45deg); opacity: 0.95; }
.faq__a {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 72ch;
}
.section--light .faq {
  border-color: var(--paper-line);
  background: var(--paper-card);
}
.section--light .faq > summary { color: var(--paper-ink); }
.section--light .faq > summary::after {
  background:
    linear-gradient(#58758A,#58758A) center/1.5px 100% no-repeat,
    linear-gradient(#58758A,#58758A) center/100% 1.5px no-repeat;
}
.section--light .faq__a { color: var(--paper-muted); }

/* ---------- 9. Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 24px;
  margin: 16px 0 12px;
  letter-spacing: -0.01em;
}
.step p { color: var(--muted); }
.steps--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.steps--five .step h3 { font-size: 21px; }

/* ---------- 10. Before / After compare slider ---------- */
.compare {
  position: relative;
  margin-top: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  user-select: none;
  touch-action: pan-y;
}
.compare + .compare { margin-top: 22px; }
/* Drawing pair: light-line technical drawings (transparent bg) float on a dark
   "model space" — full drawing shown (no crop) at its ~3:2 ratio. */
.compare--drawing {
  aspect-ratio: 3 / 2;
  background:
    linear-gradient(to right, rgba(157,180,200,0.045) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(to bottom, rgba(157,180,200,0.045) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(120% 100% at 50% 50%, #0c0e12, #07080a);
}
.compare--drawing .compare__img { object-fit: contain; }
.compare__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.compare__after { z-index: 1; }
/* the before layer is full-size and revealed via clip-path (set by JS),
   so before & after always render at the exact same scale */
.compare__before-wrap {
  position: absolute; inset: 0;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.compare__handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%;
  z-index: 3;
  width: 44px;
  transform: translateX(-50%);
  cursor: ew-resize;
  display: grid; place-items: center;
}
.compare__handle::before { /* the vertical line */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: var(--accent);
}
.compare__knob {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(8,9,11,0.85);
  border: 1.5px solid var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.compare__knob svg { width: 22px; height: 22px; color: var(--accent); }
.compare__pill {
  position: absolute; z-index: 3; top: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px;
  background: rgba(8,9,11,0.7); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.compare__pill--before { left: 14px; color: var(--muted); }
.compare__pill--after  { right: 14px; color: var(--accent); }
/* caption sits below the slider so the drawing area stays clear and readable */
.compare__caption {
  margin: 14px 0 4px;
  padding: 0 2px;
}
/* keep spacing right when a caption sits between two sliders */
.compare__caption + .compare { margin-top: 30px; }

/* ---------- 11. About ---------- */
.about__inner { max-width: 820px; }
.about__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(32px, 5.5vw, 60px);
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
  line-height: 1.05;
}
.about__body { font-size: clamp(17px, 2.2vw, 22px); color: var(--ink); opacity: 0.9; }
.assurances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.assurance__value {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.assurance p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  max-width: 27ch;
}

/* ---------- 13. Testimonials (optional) ---------- */
.quote blockquote { font-size: 17px; line-height: 1.6; }
.quote figcaption { margin-top: 16px; color: var(--accent); font-family: var(--font-mono); font-size: 13px; }

/* ---------- 14. Contact form ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact__title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.025em;
  margin: 16px 0 18px; line-height: 1.05;
}
.contact__sub { color: var(--ink); opacity: 0.85; font-size: 19px; }
.contact__note { color: var(--muted); margin-top: 18px; font-size: 15px; }
.section--light .contact__sub { color: var(--paper-ink); }

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3.5vw, 36px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; }
.field input[type="file"] { padding: 10px; font-size: 13px; color: var(--muted); }
.field__hint { font-size: 12px; color: var(--muted); }
.section--light .quote-form {
  background: var(--paper-card);
  border-color: var(--paper-line);
  box-shadow: 0 22px 50px -38px rgba(23,35,45,0.5);
}
.section--light .field label { color: var(--paper-muted); }
.section--light .field input,
.section--light .field select,
.section--light .field textarea {
  background: #F8FAFB;
  border-color: #B7C6CE;
  color: var(--paper-ink);
}
.section--light .field input:focus,
.section--light .field select:focus,
.section--light .field textarea:focus {
  border-color: #58758A;
  box-shadow: 0 0 0 3px rgba(88,117,138,0.15);
}
.form-status { margin-top: 12px; font-size: 14px; min-height: 1.2em; }
.form-status.is-ok { color: var(--accent2); }
.form-status.is-err { color: #ff7a7a; }

/* ---------- 15. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--panel-2); padding-block: 48px; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
}
.brand--footer .brand__word { font-size: 16px; }
.footer__email { color: var(--accent); font-family: var(--font-mono); font-size: 14px; }
.footer__email:hover { text-decoration: underline; }
.footer__tag { color: var(--muted); font-size: 14px; }
.footer__legal { color: var(--muted); font-size: 13px; margin-left: auto; font-family: var(--font-mono); }

/* ============================================================
   16. Scroll-reveal motion (Apple-style fade/slide up)
   JS adds .is-visible when the element enters the viewport.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger using data-delay (0–3) set in markup */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ============================================================
   16b. Hero entrance — slow, staggered cinematic cascade.
   Order: eyebrow → "From template" → "to cut-ready." → subhead → buttons.
   Each element rises and focuses in (blur clears) one after another.
   ============================================================ */
.hero .reveal {
  transform: translateY(34px);
  filter: blur(8px);
  transition:
    opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero .reveal.is-visible { transform: none; filter: blur(0); }

/* sequential delays — each waits a beat for the previous */
.hero .eyebrow.reveal                    { transition-delay: 0.15s; }
.hero__title span.reveal                 { transition-delay: 0.30s; }
.hero__title span.reveal[data-delay="1"] { transition-delay: 0.50s; }
.hero__sub.reveal                        { transition-delay: 0.70s; }
.hero__actions.reveal                    { transition-delay: 0.90s; }

/* the photo settles in underneath while the type cascades (animate the
   wrapper only, so it never fights the JS parallax on the inner <img>) */
.hero__bg { animation: heroBgIn 1.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes heroBgIn {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}
/* the technical deco fades in last, gently */
.hero__deco { animation: heroDecoIn 0.9s ease both 1.1s; }
@keyframes heroDecoIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero .reveal { filter: none; transition: none; }
  .hero__bg, .hero__deco { animation: none; }
}

/* ============================================================
   17. Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero { min-height: 82vh; }
  /* darker, more even scrim so left-aligned type reads over the photo */
  .hero__scrim {
    background:
      linear-gradient(0deg, var(--bg) 2%, rgba(8,9,11,0.62) 32%, rgba(8,9,11,0.5) 100%),
      linear-gradient(90deg, rgba(8,9,11,0.7), rgba(8,9,11,0.42));
  }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding-block: 28px; }
  .contact__grid { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8,9,11,0.96);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 24px;
    transform: translateY(-120%);
    transition: transform .4s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; text-align: center; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .compare { aspect-ratio: 4 / 5; }
  .compare--drawing { aspect-ratio: 3 / 2; }
  .quote-form { grid-template-columns: 1fr; }
  .footer__legal { margin-left: 0; width: 100%; }
  .assurances { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   18. Accessibility — respect reduced motion
   ============================================================ */
@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Focus visibility for keyboard users */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   19. Premium polish — header, section transitions, depth
   ============================================================ */

/* ---- Header: softer blur + a fading hairline that appears on scroll ---- */
.site-header.is-scrolled {
  background: rgba(8, 9, 11, 0.6);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(157,180,200,0.22), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.site-header.is-scrolled::after { opacity: 1; }
.brand__word { letter-spacing: 0.2em; }
.nav__links { gap: 34px; }
.nav__cta { box-shadow: 0 0 0 1px rgba(157,180,200,0.18); }
.nav__cta:hover { transform: translateY(-1px); }

/* ---- Section transitions: soft technical boundaries on alt sections ---- */
.section--alt {
  border-block-color: transparent;
  background:
    radial-gradient(92% 60% at 50% -8%, rgba(157,180,200,0.045), transparent 62%),
    var(--panel-2);
}
.section--alt::before, .section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(157,180,200,0.16) 26%, rgba(157,180,200,0.16) 74%, transparent);
}
.section--alt::before { top: -1px; }
.section--alt::after  { bottom: -1px; }

/* ---- Mobile: keep it clean — drop the finer overlays, ease the atmosphere ---- */
@media (max-width: 900px) {
  .hero__tag { display: none; }
  .bg-grain { opacity: 0.04; }
  .bg-vignette { background: radial-gradient(135% 100% at 50% 30%, transparent 60%, rgba(0,0,0,0.5) 100%); }
}

/* ---- Reduced motion: no parallax, no cursor spotlight drift ---- */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-img { transform: scale(1.06) !important; }
  .card::after { display: none; }
}

/* ============================================================
   20. Motion layer — scroll progress, self-drawing blueprint,
   marquee ticker, split titles, counters, watermark, tilt.
   ============================================================ */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0.9;
}

/* ---- Header hides on scroll down, returns on scroll up ---- */
.site-header { transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease), transform .45s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }

/* ---- Blueprint grid drifts almost imperceptibly ---- */
.grid-backdrop { animation: gridDrift 120s linear infinite; }
@keyframes gridDrift {
  to { background-position: 290px 290px, 290px 290px, 290px 290px, 290px 290px; }
}

/* ---- Hero: self-drawing countertop blueprint (desktop only) ---- */
.hero__blueprint {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 5vw, 84px);
  top: 50%;
  /* near-square drawing — keep it narrower so it fits inside the hero height */
  width: clamp(320px, 28vw, 450px);
  height: auto;
  transform: translateY(-52%);
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 0 28px rgba(157, 180, 200, 0.14));
  animation: bpFloat 9s ease-in-out infinite alternate 4.5s;
}
@keyframes bpFloat {
  from { transform: translateY(-52%); }
  to   { transform: translateY(-48%); }
}
/* every .bp path traces itself in (pathLength=1 normalises the dash) */
.hero__blueprint .bp {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: bpDraw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero__blueprint .bp--w15   { stroke-width: 1.6; }
.hero__blueprint .bp--faint { opacity: 0.45; }
.hero__blueprint .bp--dim   { stroke-width: 0.75; opacity: 0.8; }
.hero__blueprint .bp--seam  { opacity: 0.7; }
/* staggered draw order: outline → offset → sink → cooktop → seam/top dim → rest */
.hero__blueprint .bp--d1 { animation-delay: 1.1s; }
.hero__blueprint .bp--d2 { animation-delay: 1.7s; }
.hero__blueprint .bp--d3 { animation-delay: 2.1s; }
.hero__blueprint .bp--d4 { animation-delay: 2.5s; }
.hero__blueprint .bp--d5 { animation-delay: 2.9s; }
.hero__blueprint .bp--d6 { animation-delay: 3.2s; }
@keyframes bpDraw { to { stroke-dashoffset: 0; } }
/* dimension labels fade in once the lines are drawn */
.hero__blueprint .bp-txt {
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0;
  animation: bpFade 0.9s ease forwards 3.6s;
}
.hero__blueprint .bp-txt--mid { text-anchor: middle; }
.hero__blueprint .bp-txt--sm  { font-size: 9px; letter-spacing: 0.08em; }
@keyframes bpFade { to { opacity: 0.85; } }
@media (max-width: 1080px) { .hero__blueprint { display: none; } }

/* ---- Hero scroll cue ---- */
.hero__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: heroDecoIn 1s ease both 3.4s;
}
.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}
.hero__scroll-line {
  width: 1px; height: 46px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--accent);
  animation: scrollDrop 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes scrollDrop {
  0%        { top: -40%; }
  65%, 100% { top: 110%; }
}
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* ---- Trust strip → infinite marquee ticker ---- */
.ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerMove 32s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 22px 18px 22px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.07em;
  color: #c6ccd3;
  white-space: nowrap;
}
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* ---- Split section titles: each word rises out of a clipped slot ---- */
.split.reveal { transform: none; }
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* room for descenders inside the clip */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.split .w > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.85s var(--ease);
  transition-delay: calc(var(--wi, 0) * 70ms);
}
.split.is-visible .w > span { transform: none; }

/* ---- About: count-up stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.stat__value { display: flex; align-items: baseline; gap: 6px; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__unit {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.stat p {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; gap: 22px; } }

/* ---- About: huge outlined watermark behind the copy ---- */
.about { overflow: hidden; }
.about__watermark {
  position: absolute;
  z-index: 0;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(140px, 26vw, 320px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(157, 180, 200, 0.09);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ---- Cards: gentle 3D tilt on top of the spotlight ---- */
.cards { perspective: 1100px; }
.card:hover {
  transform: translateY(-5px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

/* ---- Compare slider: pulsing ring invites the first drag ---- */
.compare__knob::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: knobPulse 2.4s ease-out infinite 1.2s;
}
.compare.was-used .compare__knob::after { animation: none; }
@keyframes knobPulse {
  0%        { transform: scale(0.72); opacity: 0.7; }
  70%, 100% { transform: scale(1.28); opacity: 0; }
}

/* ---- Contact form: soft glow while the visitor is typing ---- */
.quote-form { transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.quote-form:focus-within {
  border-color: rgba(157, 180, 200, 0.35);
  box-shadow: 0 0 70px -28px rgba(157, 180, 200, 0.3);
}

/* ---- Reduced motion: everything above degrades to static ---- */
@media (prefers-reduced-motion: reduce) {
  .grid-backdrop, .ticker__track, .hero__blueprint, .hero__blueprint .bp,
  .hero__scroll-line::after, .compare__knob::after { animation: none; }
  .hero__blueprint .bp { stroke-dashoffset: 0; }
  .hero__blueprint .bp-txt { opacity: 0.85; animation: none; }
  .split .w > span { transform: none; transition: none; }
  .site-header.is-hidden { transform: none; }
}
