/* ————————————————————————————————————————————————————————————————
   LAMONT FLOORING — Redesign v2
   Mobile-first, conversion-led, warm editorial
   No glass, no HUD chrome, no decorative SVG slop.
———————————————————————————————————————————————————————————————— */

:root {
  /* Palette — warm editorial, drawn from real flooring materials */
  --paper:      #f4efe6;   /* bone, primary background */
  --paper-2:    #ede7d9;   /* slightly deeper, for sections */
  --paper-3:    #e3dcc9;   /* card raise */
  --ink:        #1a1614;   /* near-black, warm */
  --ink-2:      #3a322d;   /* secondary text */
  --ink-soft:   #6a615a;   /* meta text */
  --ink-faint:  #9a9189;   /* hairlines */
  --rule:       rgba(26,22,20,.12);
  --rule-soft:  rgba(26,22,20,.07);

  /* Single accent — terracotta, used sparingly */
  --accent:     #b8472a;
  --accent-deep:#8e2f17;
  --accent-soft:#e8b9a8;

  /* Brass — for hover/focus rings only */
  --brass:      #a07a3b;

  /* Type */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;

  /* Mobile-first scale */
  --t-eyebrow: 11px;
  --t-meta:    13px;
  --t-body:    16px;
  --t-lead:    18px;
  --t-h3:      22px;
  --t-h2:      30px;
  --t-h1:      40px;
  --t-hero:    52px;

  /* Spacing */
  --pad-x:     20px;       /* mobile gutter */
  --section-y: 72px;
  --gap:       16px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Easing */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 720px) {
  :root {
    --t-body:    17px;
    --t-lead:    20px;
    --t-h3:      26px;
    --t-h2:      40px;
    --t-h1:      56px;
    --t-hero:    80px;
    --pad-x:     48px;
    --section-y: 112px;
  }
}
@media (min-width: 1100px) {
  :root {
    --t-hero:    104px;
    --t-h1:      72px;
    --t-h2:      52px;
    --pad-x:     72px;
    --section-y: 144px;
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  /* iOS safe area + space for sticky bottom bar on mobile */
  padding-bottom: max(72px, env(safe-area-inset-bottom));
  overflow-x: clip;
}
@media (min-width: 1180px) {
  body { padding-bottom: 0; }
}

::selection { background: var(--accent); color: var(--paper); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 400;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.meta {
  font-size: var(--t-meta);
  color: var(--ink-soft);
  letter-spacing: .01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .005em;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-deep); }

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

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

.btn-link {
  background: transparent;
  color: var(--ink);
  height: auto;
  padding: 4px 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

/* Section */
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}
.section--paper2 { background: var(--paper-2); }
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink .display { color: var(--paper); }
.section--ink .lead { color: rgba(244,239,230,.78); }

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* Forms */
.field {
  display: block;
  position: relative;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 18px 16px 16px;
  outline: none;
  transition: border-color .15s var(--ease), background .15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: #fff;
}
.field label {
  position: absolute;
  top: -7px; left: 12px;
  background: var(--paper);
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Sticky mobile bar */
.bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(244,239,230,.94);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--rule);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}
@media (min-width: 1180px) {
  .bar { display: none; }
}

/* Top nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244,239,230,.86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  max-width: 1280px;
  margin: 0 auto;
}
.nav-links {
  display: none;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  flex-wrap: nowrap;
}
.nav-links a:hover { color: var(--ink); }
@media (min-width: 1180px) {
  .nav-links { display: flex; }
}
.nav-cta-mobile { display: flex; }
@media (min-width: 1180px) {
  .nav-cta-mobile { display: none; }
}
.nav-cta-desk { display: none; }
@media (min-width: 1180px) {
  .nav-cta-desk { display: flex; gap: 12px; flex-shrink: 0; }
}
@media (min-width: 1320px) {
  .nav-links { gap: 40px; }
}
.logo { white-space: nowrap; }

/* Logo */
.logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--ink);
}
.logo-mark {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 2px;
}

/* Trust strip */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
@media (min-width: 720px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
}
.trust-item .num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
}
@media (min-width: 720px) {
  .trust-item .num { font-size: 48px; }
}
.trust-item .lbl {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* Sector cards */
.sectors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .sectors { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.sector {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.sector:hover { border-color: var(--ink); }
.sector .num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .14em;
}
.sector h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
}
.sector p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.sector .examples {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Services grid */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 720px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(4, 1fr); }
}
.service {
  background: var(--paper);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  transition: background .15s var(--ease);
}
.service:hover { background: var(--paper-3); }
.service .idx {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
}
.service h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.service p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .step { flex-direction: column; gap: 12px; }
}
.step .num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
  flex-shrink: 0;
  min-width: 48px;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ink);
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Project gallery — featured hero + 2×2 grid */
.projects-feature {
  margin-bottom: 16px;
}
@media (min-width: 720px) {
  .projects-feature { margin-bottom: 24px; }
}
.project--feature {
  aspect-ratio: 21/9 !important;
}
@media (max-width: 719px) {
  .project--feature { aspect-ratio: 4/3 !important; }
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
.projects-grid .project {
  aspect-ratio: 16/10;
}
.project {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  isolation: isolate;
}
.project::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7) 100%);
  z-index: 1;
}
.project .ph {
  position: absolute; inset: 0;
  z-index: 0;
}
.project .ph .label {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: rgba(244,239,230,.55);
  letter-spacing: .04em;
}
.project .meta-bar {
  position: relative; z-index: 2;
  padding: 22px 22px 24px;
  width: 100%;
}
.project .sector {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 8px;
}
.project h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  color: var(--paper);
  letter-spacing: -.01em;
}
.project .stats {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(244,239,230,.7);
  display: flex;
  gap: 16px;
}

/* Estimate hero widget */
.estimate-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-top: 28px;
  box-shadow: 0 24px 60px -30px rgba(26,22,20,.25);
}
@media (min-width: 720px) {
  .estimate-card { padding: 28px; margin-top: 36px; }
}
.estimate-card .head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.estimate-card .head .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .55; transform: scale(.85); }
}
.estimate-card .q {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
@media (min-width: 720px) {
  .estimate-card .q { font-size: 26px; }
}
.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 480px) {
  .choices { grid-template-columns: 1fr 1fr; }
}
.choice {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.choice:hover, .choice:focus-visible { border-color: var(--ink); background: #fff; }
.choice .arr { color: var(--ink-soft); transition: transform .2s var(--ease); }
.choice:hover .arr { transform: translateX(3px); color: var(--accent); }

.estimate-card .progress {
  display: flex; gap: 4px;
  margin-bottom: 16px;
}
.estimate-card .progress span {
  height: 3px; flex: 1;
  background: var(--rule);
  border-radius: 2px;
}
.estimate-card .progress span.active { background: var(--accent); }
.estimate-card .progress span.done { background: var(--ink); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
}
.faq:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-size: 16px; color: var(--ink-2);
  margin-top: 2px;
  transition: transform .25s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.faq[open] summary .ico { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 640px;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 32px;
}
.footer a { color: var(--paper); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px; }
}
.footer h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,239,230,.5);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(244,239,230,.85); }
.footer ul a:hover { color: var(--accent-soft); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(244,239,230,.12);
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(244,239,230,.55);
}

/* Hero */
.hero {
  padding-top: 36px;
  padding-bottom: 56px;
}
@media (min-width: 720px) {
  .hero { padding-top: 64px; padding-bottom: 96px; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .95;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .sub {
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
  }
}
.hero-aside {
  display: flex; flex-direction: column; gap: 16px;
}
.hero-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 4/5;
  isolation: isolate;
}
@media (min-width: 900px) {
  .hero-photo { aspect-ratio: 4/5; }
}
.hero-photo .cap {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55) 100%);
}

/* Photo placeholder pattern */
.ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--paper-3), var(--paper-2));
}
.ph[data-tone="warm"]   { background: linear-gradient(160deg, #6e5544 0%, #4a3829 60%, #3a2b1f 100%); }
.ph[data-tone="cool"]   { background: linear-gradient(160deg, #5a6772 0%, #3d4953 60%, #2c343c 100%); }
.ph[data-tone="stone"]  { background: linear-gradient(160deg, #a39687 0%, #756a5d 60%, #4f463c 100%); }
.ph[data-tone="terra"]  { background: linear-gradient(160deg, #c98260 0%, #a0573a 60%, #6e3a23 100%); }
.ph[data-tone="green"]  { background: linear-gradient(160deg, #6f7b5d 0%, #4f5a40 60%, #36402b 100%); }
.ph[data-tone="ink"]    { background: linear-gradient(160deg, #2d2823 0%, #1c1814 60%, #110e0c 100%); }

/* Cta cluster */
.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* Address card */
.address-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 22px;
  display: grid;
  gap: 14px;
}
.address-card .row {
  display: flex; gap: 14px; align-items: flex-start;
}
.address-card .row .ico {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 14px;
}
.address-card .row .v { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.address-card .row .l { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }

/* Mobile menu */
.menu-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  display: grid; place-items: center;
}
.menu-btn .bars { display: flex; flex-direction: column; gap: 4px; }
.menu-btn .bars span { width: 16px; height: 1.5px; background: var(--ink); }

.sheet {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 60;
  padding: 80px var(--pad-x) 32px;
  display: flex; flex-direction: column; gap: 12px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.sheet.open { opacity: 1; transform: none; pointer-events: auto; }
.sheet a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.sheet-close {
  position: absolute;
  top: 16px; right: var(--pad-x);
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font-size: 22px;
  display: grid; place-items: center;
}

/* Lang toggle */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.lang button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-transform: uppercase;
  font: inherit;
}
.lang button.on {
  background: var(--ink);
  color: var(--paper);
}

/* Section heading */
.sh {
  margin-bottom: 36px;
  max-width: 720px;
}
@media (min-width: 720px) { .sh { margin-bottom: 56px; } }
.sh h2 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: 400;
  letter-spacing: -.02em;
  margin: 12px 0 14px;
  line-height: 1.05;
  text-wrap: balance;
}
.sh h2 em { font-style: italic; color: var(--accent); }
.sh p {
  font-size: var(--t-lead);
  color: var(--ink-2);
  margin: 0;
  line-height: 1.45;
  max-width: 580px;
}

/* ————————————————————————————————————————
   JOURNEY — scroll-scrubbed 3D customer journey
   ———————————————————————————————————————— */

.journey {
  position: relative;
  height: 1700vh; /* 7 scenes, scene 6 weighted wider so the floor lays in slow */
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 50%, var(--paper) 100%);
  --accent: #b8472a;
}
.journey-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
  isolation: isolate;
}

/* subtle background gradient that drifts with progress */
.journey-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at calc(50% + (var(--g, 0) - .5) * 60%) calc(50% - 10%),
      rgba(184,71,42, calc(.04 + var(--g, 0) * .06)) 0%, transparent 60%);
  pointer-events: none;
  transition: opacity .6s;
}

/* Progress rail */
.journey-rail {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: max(28px, env(safe-area-inset-bottom));
  width: min(420px, 70vw);
  height: 2px;
  background: rgba(26,22,20,.12);
  border-radius: 2px;
  z-index: 5;
}
.journey-rail-fill {
  position: absolute; inset: 0;
  width: calc(var(--g, 0) * 100%);
  background: var(--accent);
  border-radius: 2px;
  transition: width .15s linear;
}
.journey-rail-dot {
  position: absolute;
  top: 50%; left: calc(var(--i, 0) / 6 * 100%);
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--paper);
  border: 1.5px solid rgba(26,22,20,.3);
  border-radius: 50%;
  transition: background .3s, border-color .3s, transform .3s;
}
.journey-rail-dot:nth-child(2) { /* idx 0 */ }

/* Counter top-right */
.journey-counter {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  z-index: 5;
  display: flex; gap: 4px; align-items: baseline;
}
.jc-num {
  display: inline-flex;
  align-items: baseline;
  font-size: 28px;
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: -.02em;
}
.jc-rolls {
  display: inline-flex;
  flex-direction: column;
  height: 1em;
  overflow: hidden;
  margin-left: -.08em;
}
.jc-rolls span {
  height: 1em;
  line-height: 1;
  transform: translateY(calc(var(--g, 0) * -7em));
  transition: transform .3s var(--ease);
}
.jc-rolls span:first-child { display: none; }
.jc-of { color: var(--ink-faint); margin-left: 2px; }

/* Scene base */
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: clamp(40px, 8vh, 80px) 24px clamp(120px, 16vh, 180px);
  pointer-events: none;
  will-change: opacity, transform;
  transform-style: preserve-3d;
}

/* Caption block — same position every scene, content swaps via opacity */
.scene-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(60px, 11vh, 110px);
  width: min(640px, 86vw);
  text-align: center;
  z-index: 4;
}
.scene-caption .kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.scene-caption h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.scene-caption p {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* ————————— SCENE 1: Browser window tilts into view ————————— */
.scene-1 .s1-stage {
  position: relative;
  width: min(760px, 88vw);
  aspect-ratio: 16 / 10;
  max-height: 56vh;
  perspective: 1600px;
  transform-style: preserve-3d;
}
.s1-window {
  position: absolute;
  inset: 0;
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid rgba(26,22,20,.18);
  box-shadow:
    0 40px 90px -20px rgba(26,22,20,.45),
    0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: 50% 80%;
  transform:
    rotateX(calc(28deg - var(--sp0, 0) * 28deg))
    rotateY(calc(-10deg + var(--sp0, 0) * 10deg))
    translateY(calc((1 - var(--sp0, 0)) * 60px))
    translateZ(calc(var(--sp0, 0) * 20px));
  transition: transform .15s linear;
  opacity: calc(min(1, var(--sp0, 0) * 4));
}
.s1-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -4%;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(26,22,20,.28), transparent 70%);
  filter: blur(8px);
  opacity: calc(var(--sp0, 0) * .7);
  transform: scaleX(calc(.6 + var(--sp0, 0) * .4));
}
.s1-chrome {
  height: 32px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center;
  padding: 0 14px;
  gap: 6px;
  flex-shrink: 0;
}
.s1-chrome span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(26,22,20,.2);
}
.s1-chrome span:first-child { background: #ed6a5e; }
.s1-chrome span:nth-child(2) { background: #f5bf4f; }
.s1-chrome span:nth-child(3) { background: #62c554; }
.s1-url {
  margin-left: 16px;
  background: var(--paper);
  border-radius: 4px;
  font-size: 11px;
  padding: 3px 10px;
  color: var(--ink-soft);
  font-family: var(--font-sans);
}
.s1-content {
  flex: 1;
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.s1-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: .2em;
  opacity: calc((var(--sp0, 0) - .2) * 4);
  transform: translateY(calc((1 - var(--sp0, 0)) * 8px));
}
.s1-h, .s1-h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  opacity: calc((var(--sp0, 0) - .35) * 4);
  transform: translateY(calc((1 - var(--sp0, 0)) * 18px));
}
.s1-h2 {
  font-style: italic;
  color: var(--accent);
  opacity: calc((var(--sp0, 0) - .45) * 4);
}
.s1-cta {
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 999px;
  margin-top: 8px;
  opacity: calc((var(--sp0, 0) - .6) * 4);
  transform: translateY(calc((1 - var(--sp0, 0)) * 24px));
}
.s1-strip {
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  background: var(--paper-3);
  bottom: 32px;
  transform: scaleX(calc(var(--sp0, 0)));
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.s1-strip-2 {
  bottom: 14px;
  background: var(--paper-2);
  transform: scaleX(calc(var(--sp0, 0) * .7));
}
.s1-base--removed {
  display: none;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: 14%;
  background: linear-gradient(180deg, #2a2420, #1a1614);
  border-radius: 4px 4px 14px 14px;
  transform: rotateX(60deg);
  transform-origin: top;
}
.s1-cursor {
  position: absolute;
  width: 22px; height: 22px;
  z-index: 5;
  left: calc(20% + var(--sp0, 0) * 50%);
  top: calc(85% - var(--sp0, 0) * 35%);
  opacity: calc(var(--sp0, 0) * 1.2);
  transform: translate(-50%, -50%) scale(calc(.6 + var(--sp0, 0) * .8));
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.3));
  transition: left .15s linear, top .15s linear;
}

/* ————————— SCENE 2: Quote form on phone ————————— */
.scene-2 .s2-stage {
  position: relative;
  width: min(360px, 80vw);
  height: min(620px, 60vh);
  transform-style: preserve-3d;
}
.s2-phone {
  position: absolute;
  inset: 0;
  background: #1a1614;
  border-radius: 36px;
  padding: 14px;
  box-shadow:
    0 30px 80px -20px rgba(26,22,20,.45),
    0 0 0 1px rgba(0,0,0,.3);
  transform: rotateY(calc(-6deg + var(--sp1, 0) * 4deg)) rotateX(calc(2deg - var(--sp1, 0) * 2deg));
}
.s2-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #1a1614;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.s2-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 24px;
  padding: 36px 22px 22px;
  display: flex; flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.s2-eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}
.s2-q {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  margin-top: 4px;
  opacity: calc(min(1, (var(--sp1, 0) - .05) * 6));
}
.s2-q-2 { opacity: calc(min(1, (var(--sp1, 0) - .35) * 6)); }
.s2-q-3 { opacity: calc(min(1, (var(--sp1, 0) - .6) * 6)); }
.s2-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.s2-pill {
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  opacity: calc(min(1, (var(--sp1, 0) - .12 - var(--d, 0) * .04) * 8));
  transform: translateY(calc(max(0, .25 - var(--sp1, 0)) * 24px));
  transition: background .25s, color .25s, border-color .25s;
}
/* "Bureau" gets selected on stage 2 mid-way */
.scene-2 .s2-pills:first-of-type .s2-pill:first-child {
  background: color-mix(in srgb, var(--accent) calc(var(--sp1, 0) * 100%), var(--paper));
  border-color: var(--accent);
  color: color-mix(in srgb, var(--paper) calc(var(--sp1, 0) * 100%), var(--ink-2));
}
.s2-pill-2 {
  opacity: calc(min(1, (var(--sp1, 0) - .65 - var(--d, 0) * .03) * 8));
}
.scene-2 .s2-pills:last-of-type .s2-pill-2:nth-child(2) {
  background: color-mix(in srgb, var(--accent) calc(max(0, var(--sp1, 0) - .75) * 400%), var(--paper));
  border-color: var(--accent);
  color: color-mix(in srgb, var(--paper) calc(max(0, var(--sp1, 0) - .75) * 400%), var(--ink-2));
}
.s2-input {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  height: 44px;
  display: flex; align-items: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  opacity: calc(min(1, (var(--sp1, 0) - .42) * 6));
}
.s2-typed::after {
  content: "12 400 pi²";
  display: inline-block;
  width: calc(var(--sp1, 0) * 100px);
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
}
.s2-caret {
  display: inline-block;
  width: 1.5px; height: 18px;
  background: var(--accent);
  margin-left: 2px;
  animation: s2blink 1s steps(2) infinite;
}
@keyframes s2blink { 50% { opacity: 0; } }
.s2-submit {
  margin-top: auto;
  background: var(--ink);
  color: var(--paper);
  border: none;
  height: 48px;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  opacity: calc(min(1, (var(--sp1, 0) - .82) * 8));
  transform: scale(calc(.95 + min(1, (var(--sp1, 0) - .82) * 8) * .05));
}
.s2-arrow {
  display: inline-block;
  transform: translateX(calc(var(--sp1, 0) * 4px));
  transition: transform .15s;
}
/* paper plane only after submit */
.s2-plane {
  position: absolute;
  width: 56px; height: 56px;
  bottom: 30%;
  left: 50%;
  transform:
    translate(calc(-50% + max(0, var(--sp1, 0) - .9) * 1200px),
              calc(0px - max(0, var(--sp1, 0) - .9) * 600px))
    rotate(calc(-15deg + max(0, var(--sp1, 0) - .9) * -60deg));
  opacity: calc(max(0, min(1, (var(--sp1, 0) - .9) * 10)));
  filter: drop-shadow(0 6px 16px rgba(26,22,20,.3));
  pointer-events: none;
}
.s2-trail {
  position: absolute;
  left: 50%;
  bottom: 35%;
  width: calc(max(0, var(--sp1, 0) - .9) * 240px);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform: translateX(-100%) rotate(-25deg);
  transform-origin: right;
  opacity: calc(max(0, min(1, (var(--sp1, 0) - .92) * 12)));
}

/* ————————— SCENE 3: AI price flash ————————— */
.scene-3 .s3-stage {
  position: relative;
  width: min(560px, 88vw);
  display: flex;
  align-items: center;
  justify-content: center;
}
.s3-bolt {
  position: absolute;
  inset: 0;
  width: 120%;
  left: -10%;
  height: 200px;
  top: 50%;
  margin-top: -100px;
  stroke-dasharray: 1000;
  stroke-dashoffset: calc(1000 - var(--sp2, 0) * 1000);
  opacity: calc(min(1, var(--sp2, 0) * 4) * (1 - max(0, var(--sp2, 0) - .6) * 2));
  z-index: 1;
}
.s3-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 40px);
  width: 100%;
  box-shadow:
    0 30px 80px -30px rgba(26,22,20,.25),
    0 0 0 1px rgba(184,71,42, calc(var(--sp2, 0) * .15));
  transform:
    perspective(1200px)
    rotateX(calc(8deg - var(--sp2, 0) * 8deg))
    scale(calc(.9 + var(--sp2, 0) * .1));
  z-index: 2;
}
.s3-eyebrow {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.s3-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: s3pulse 1.4s infinite;
}
@keyframes s3pulse {
  0% { box-shadow: 0 0 0 0 rgba(184,71,42,.6); }
  100% { box-shadow: 0 0 0 8px rgba(184,71,42,0); }
}
.s3-row {
  display: flex; justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.s3-row b { color: var(--ink); font-weight: 500; }
.s3-row-1 { transition-delay: .05s; }
.s3-row-2 { transition-delay: .15s; }
.s3-row-3 { transition-delay: .25s; }
.scene-3[style*="opacity: 0"] .s3-row { transition: none; }
.s3-stage:has(~ *) .s3-row { } /* stub */
.scene-3 .s3-row {
  opacity: calc(min(1, max(0, var(--sp2, 0) - .15) * 4));
  transform: translateY(calc(max(0, .4 - var(--sp2, 0)) * 20px));
}
.s3-divider {
  height: 1px;
  background: var(--rule);
  margin: 12px 0;
  transform: scaleX(calc(min(1, var(--sp2, 0) * 1.4)));
  transform-origin: left;
}
.s3-price-label {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.s3-price {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  opacity: calc(min(1, max(0, var(--sp2, 0) - .55) * 4));
  transform: translateY(calc(max(0, .8 - var(--sp2, 0)) * 12px));
}
.s3-currency { font-size: .55em; color: var(--accent); }
.s3-num { font-variant-numeric: tabular-nums; }
.s3-dash { color: var(--ink-faint); }
.s3-foot {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 12px;
  opacity: calc(min(1, max(0, var(--sp2, 0) - .75) * 4));
}
.s3-streak {
  position: absolute;
  width: 30%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  top: calc(20% + var(--i, 0) * 12%);
  left: -30%;
  opacity: calc(max(0, min(1, var(--sp2, 0) * 4)) * (1 - var(--sp2, 0) * .8));
  animation: s3streak 1.6s linear infinite;
  animation-delay: calc(var(--i, 0) * .12s);
}
@keyframes s3streak {
  0%   { transform: translateX(0); }
  100% { transform: translateX(450%); }
}

/* ————————— SCENE 4: Building rises + truck + foreman ————————— */
.scene-4 .s4-stage {
  position: relative;
  width: min(900px, 92vw);
  height: min(540px, 60vh);
  display: flex; align-items: flex-end; justify-content: center;
}
.s4-svg {
  width: 100%; height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(26,22,20,.35);
}
.s4-bldg {
  transform: translateY(calc((1 - var(--sp3, 0)) * 400px));
  transition: transform .15s linear;
  transform-box: fill-box;
  transform-origin: bottom;
}
.s4-bldg-far {
  transform: translateY(calc(max(0, .3 - var(--sp3, 0)) * 800px));
  opacity: calc(min(1, max(0, var(--sp3, 0) - .15) * 3));
}
.s4-truck {
  transform: translateX(calc(-120px + min(1, max(0, var(--sp3, 0) - .15) * 1.4) * 320px));
  transition: transform .15s linear;
}
.s4-foreman {
  transform: translate(
    calc(180px + min(1, max(0, var(--sp3, 0) - .55)) * 80px),
    calc(485px + sin(min(1, max(0, var(--sp3, 0) - .55)) * 8) * 2px)
  );
  opacity: calc(min(1, max(0, var(--sp3, 0) - .55) * 4));
}
.s4-call-1 {
  opacity: calc(min(1, max(0, var(--sp3, 0) - .7) * 4));
  stroke-dasharray: 600;
  stroke-dashoffset: calc(600 - max(0, var(--sp3, 0) - .7) * 600);
}
.s4-call-2 {
  opacity: calc(min(1, max(0, var(--sp3, 0) - .82) * 6));
}

/* ————————— SCENE 5: Plan + signature ————————— */
.scene-5 .s5-stage {
  position: relative;
  width: min(560px, 88vw);
  display: flex; justify-content: center;
}
.s5-paper {
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--rule);
  padding: clamp(24px, 4vw, 40px);
  width: 100%;
  box-shadow:
    0 30px 80px -30px rgba(26,22,20,.3),
    inset 0 0 0 1px rgba(255,255,255,.5);
  transform:
    perspective(1400px)
    rotateX(calc(40deg - var(--sp4, 0) * 35deg))
    rotateZ(calc(-3deg + var(--sp4, 0) * 3deg));
  transform-origin: bottom;
  position: relative;
  background-image:
    linear-gradient(var(--paper) 0%, var(--paper) 100%),
    repeating-linear-gradient(180deg, transparent 0, transparent 22px, var(--rule-soft) 22px, var(--rule-soft) 23px);
  background-size: 100% 100%, 100% 100%;
  background-blend-mode: normal, multiply;
}
.s5-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.s5-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: .15em;
  color: var(--ink);
}
.s5-id {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .1em;
}
.s5-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-bottom: 16px;
}
.s5-grid > div {
  display: flex; flex-direction: column;
  font-size: 12px;
  padding: 6px 0;
}
.s5-grid > div:nth-child(1) { opacity: calc(min(1, max(0, var(--sp4, 0) - .15) * 5)); }
.s5-grid > div:nth-child(2) { opacity: calc(min(1, max(0, var(--sp4, 0) - .22) * 5)); }
.s5-grid > div:nth-child(3) { opacity: calc(min(1, max(0, var(--sp4, 0) - .29) * 5)); }
.s5-grid > div:nth-child(4) { opacity: calc(min(1, max(0, var(--sp4, 0) - .36) * 5)); }
.s5-grid span { color: var(--ink-soft); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.s5-grid b { color: var(--ink); font-weight: 500; font-size: 13px; }
.s5-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin-bottom: 22px;
  opacity: calc(min(1, max(0, var(--sp4, 0) - .45) * 5));
}
.s5-total span { font-size: 11px; color: var(--ink-soft); letter-spacing: .15em; text-transform: uppercase; }
.s5-total b {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -.02em;
}
.s5-sig-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
}
.s5-sig-block { flex: 1; position: relative; }
.s5-sig {
  width: 80%;
  height: 50px;
  display: block;
  margin-bottom: -20px;
  position: relative;
  z-index: 2;
}
.s5-sig path {
  stroke-dasharray: 500;
  stroke-dashoffset: calc(500 - max(0, var(--sp4, 0) - .55) * 1500);
}
.s5-sig-line {
  height: 1px; background: var(--ink); width: 100%;
}
.s5-sig-label {
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.s5-stamp {
  width: 90px; height: 90px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  text-align: center;
  font-family: var(--font-sans);
  transform:
    rotate(calc(-12deg + max(0, var(--sp4, 0) - .8) * -8deg))
    scale(calc(.5 + min(1, max(0, var(--sp4, 0) - .78) * 6) * .6));
  opacity: calc(min(1, max(0, var(--sp4, 0) - .78) * 6));
}
.s5-stamp-inner div:nth-child(1) {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}
.s5-stamp-inner div:nth-child(2) {
  font-size: 9px;
  letter-spacing: .05em;
  margin: 2px 0;
}
.s5-stamp-inner div:nth-child(3) {
  font-size: 8px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.s5-pen {
  position: absolute;
  width: 200px; height: 40px;
  bottom: 28%;
  left: calc(20% + max(0, var(--sp4, 0) - .55) * 50%);
  transform:
    rotate(calc(-25deg + max(0, var(--sp4, 0) - .55) * 20deg))
    translateY(calc((1 - max(0, var(--sp4, 0) - .55)) * 0px));
  opacity: calc(min(1, max(0, var(--sp4, 0) - .5) * 4) * (1 - max(0, var(--sp4, 0) - .92) * 8));
  filter: drop-shadow(0 8px 16px rgba(26,22,20,.25));
  z-index: 3;
  pointer-events: none;
}

/* ————————— SCENE 6: Floor tiles cascade ————————— */
.scene-6 .s6-stage {
  position: relative;
  width: min(900px, 95vw);
  height: min(540px, 60vh);
  perspective: 800px;
  transform-style: preserve-3d;
}
.s6-floor {
  position: absolute;
  inset: 0;
  transform: rotateX(58deg) translateZ(-100px);
  transform-origin: center bottom;
  transform-style: preserve-3d;
}
.s6-grid {
  width: 100%; height: 140%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 1px;
  background: rgba(26,22,20,.2);
  padding: 1px;
  transform-style: preserve-3d;
}
.s6-tile {
  background: color-mix(in srgb, #c9a878 calc(50% + var(--shade) * 14%), #1a1614 0%);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.08)),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(0,0,0,.04) 8px 9px);
  /* tile arrives from above, in waves */
  transform: translateZ(calc((1 - min(1, max(0, var(--sp5, 0) - var(--d) * .6) * 1.4)) * 200px));
  opacity: calc(min(1, max(0, var(--sp5, 0) - var(--d) * .6) * 4));
  transition: transform .25s var(--ease), opacity .25s var(--ease);
  transform-style: preserve-3d;
}
.s6-installer {
  position: absolute;
  width: 70px; height: 105px;
  bottom: 18%;
  left: 38%;
  transform: translate(calc(min(1, max(0, var(--sp5, 0) - .25)) * 80px - 40px), 0);
  opacity: calc(min(1, max(0, var(--sp5, 0) - .15) * 5));
  filter: drop-shadow(0 8px 14px rgba(26,22,20,.3));
  z-index: 2;
}
.s6-meta {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  background: rgba(244,239,230,.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 10px 18px;
  opacity: calc(min(1, max(0, var(--sp5, 0) - .65) * 5));
  z-index: 3;
}
.s6-meta > div { display: flex; flex-direction: column; gap: 0; line-height: 1.1; }
.s6-meta b { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.s6-meta span { font-size: 9px; color: var(--ink-soft); letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

/* ————————— SCENE 7: Handshake + stamp ————————— */
.scene-7 .s7-stage {
  position: relative;
  width: min(720px, 92vw);
  height: min(440px, 50vh);
}
.s7-hands {
  width: 100%; height: 100%;
  display: block;
}
.s7-arm-l {
  transform: translateX(calc((1 - min(1, var(--sp6, 0) * 2)) * -50%));
  transform-box: fill-box;
}
.s7-arm-r {
  transform: translateX(calc((1 - min(1, var(--sp6, 0) * 2)) * 50%));
  transform-box: fill-box;
}
.s7-shadow {
  opacity: calc(min(1, max(0, var(--sp6, 0) - .45) * 5) * .25);
  transform: translateY(calc((1 - min(1, max(0, var(--sp6, 0) - .35) * 4)) * -8px));
  transform-box: fill-box;
}
.s7-stamp {
  position: absolute;
  right: -10px;
  top: -10px;
  width: clamp(140px, 22vw, 200px);
  height: clamp(140px, 22vw, 200px);
  transform:
    rotate(calc(15deg - max(0, var(--sp6, 0) - .55) * 30deg))
    scale(calc(.3 + min(1, max(0, var(--sp6, 0) - .55) * 4) * .8));
  opacity: calc(min(1, max(0, var(--sp6, 0) - .5) * 4));
  filter: drop-shadow(0 10px 20px rgba(184,71,42,.25));
  animation: s7stamp-spin 18s linear infinite;
}
@keyframes s7stamp-spin {
  to { transform: rotate(calc(15deg - max(0, var(--sp6, 0) - .55) * 30deg + 360deg)) scale(calc(.3 + min(1, max(0, var(--sp6, 0) - .55) * 4) * .8)); }
}
.s7-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  top: 50%; left: 50%;
  --angle: calc(var(--i, 0) * 30deg);
  --travel: calc(min(1, max(0, var(--sp6, 0) - .65) * 4) * 220px);
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateX(var(--travel))
    rotate(calc(-1 * var(--angle)));
  opacity: calc(min(1, max(0, var(--sp6, 0) - .65) * 4) * (1 - max(0, var(--sp6, 0) - .9) * 5));
}
.s7-dot:nth-child(odd) { background: var(--ink); }
.s7-dot:nth-child(3n) { width: 4px; height: 4px; border-radius: 1px; transform: translate(-50%,-50%) rotate(var(--angle)) translateX(var(--travel)) rotate(calc(-1 * var(--angle) + 45deg)); }

/* ————————— Mobile tuning ————————— */
@media (max-width: 768px) {
  /* Shorter scrub on mobile — same proportions, less punishing scroll */
  .journey { height: 1300vh; }
  .journey-counter { right: 16px; top: max(70px, env(safe-area-inset-top)); }
  .jc-num { font-size: 22px; }
  .scene-caption { bottom: clamp(80px, 14vh, 120px); width: min(560px, 92vw); }
  .scene-caption h3 { font-size: clamp(22px, 5.6vw, 30px); }
  .scene-caption p { font-size: 13px; }
  .scene { padding: 60px 16px 170px; }
  .s1-stage { aspect-ratio: 4/3; max-height: 44vh; }
  .s2-stage { height: min(520px, 56vh); width: min(320px, 78vw); }
  .s3-card { padding: 22px 20px; }
  .s4-stage { height: min(360px, 44vh); }
  .s5-paper { padding: 20px; }
  .s5-grid b { font-size: 12px; }
  .s5-stamp { width: 70px; height: 70px; }
  .s5-pen { width: 140px; }
  .s6-stage { height: min(380px, 44vh); }
  .s6-meta { gap: 14px; padding: 8px 14px; top: 2%; }
  .s6-meta b { font-size: 16px; }
  /* Hover lifts make no sense on touch — kill the residual hover styles */
  .map-card:hover { transform: none; }
}
@media (max-width: 480px) {
  .scene-caption h3 { font-size: 22px; line-height: 1.15; }
  .projects-grid { grid-template-columns: 1fr; }
  .project--feature { aspect-ratio: 4/3 !important; }
}

/* Reduced motion — show stage 7 final state */
@media (prefers-reduced-motion: reduce) {
  .journey { height: 100vh; }
  .journey-stage { perspective: none; }
  .scene { opacity: 1 !important; }
  .scene-1, .scene-2, .scene-3, .scene-4, .scene-5, .scene-6 { display: none; }
  .s1-window, .s2-phone, .s5-paper, .s7-arm-l, .s7-arm-r { transform: none !important; }
}

/* ————————————————————
   Map card (Contact section)
   ———————————————————— */
.map-card {
  display: block;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  box-shadow: 0 14px 40px -20px rgba(26,22,20,.2);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.map-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px -20px rgba(26,22,20,.28);
}
.map-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.map-pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.map-pin-dot {
  display: block;
  width: 16px; height: 16px;
  background: var(--accent);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(26,22,20,.4);
  position: relative; z-index: 2;
}
.map-pin-pulse {
  position: absolute;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  left: 0; top: 0;
  animation: mappulse 2s ease-out infinite;
  opacity: .6;
}
@keyframes mappulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(3.5); opacity: 0; }
}
.map-cta {
  position: absolute;
  right: 14px; bottom: 14px;
  background: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--rule);
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: transform .3s var(--ease);
}
.map-card:hover .map-cta { transform: translateX(-3px); }

/* ————————————————————
   Section reveal upgrades
   ———————————————————— */
.reveal-tilt {
  opacity: 0;
  transform: perspective(1200px) rotateX(8deg) translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-tilt.in { opacity: 1; transform: none; }

.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease);
}
.reveal-clip.in { clip-path: inset(0 0 0 0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }


/* About — building photo */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1100px;
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
}
.about-text { max-width: 560px; }
.about-photo {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(244,239,230,.15);
  aspect-ratio: 4/3;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  display: block;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}
.about-photo.in img { transform: scale(1); }
.about-photo figcaption {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(26,22,20,.78);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px; align-items: center;
  letter-spacing: .02em;
}
.ap-pin {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(184,71,42,.25);
}


/* ————————————————————————————————————————
   PRELOAD — immersive 3D depth-tunnel opening
   ———————————————————————————————————————— */
.preload {
  position: fixed; inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #1f1a17 0%, #0d0a08 75%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  perspective: 900px;
  transform-style: preserve-3d;
}
.preload-exit { animation: plExit .9s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes plExit {
  to { opacity: 0; clip-path: circle(0% at 50% 50%); transform: scale(1.08); }
}
.pl-tunnel {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
}
.pl-ring {
  position: absolute;
  width: 100vmax; height: 100vmax;
  max-width: 1400px; max-height: 1400px;
  border: 1px solid rgba(184,71,42, .18);
  border-radius: 50%;
  transform: translateZ(calc(var(--i) * -160px)) scale(calc(1 - var(--i) * .08));
  animation: plRing 3.2s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: calc(var(--i) * 80ms);
  opacity: 0;
}
@keyframes plRing {
  0%   { opacity: 0; transform: translateZ(calc(var(--i) * -160px - 600px)) scale(.4) rotate(0deg); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateZ(calc(var(--i) * 200px)) scale(2.6) rotate(360deg); }
}
.pl-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(184,71,42,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,71,42,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(70deg) translateY(20%);
  animation: plGrid 3.2s linear forwards;
  mask-image: radial-gradient(ellipse at 50% 60%, #000 0%, transparent 70%);
}
@keyframes plGrid {
  from { transform: rotateX(70deg) translateY(20%) scale(.8); opacity: 0; }
  20%  { opacity: 1; }
  to   { transform: rotateX(70deg) translateY(60%) scale(1.4); opacity: .4; }
}
.pl-center {
  position: relative;
  text-align: center;
  z-index: 2;
  transform-style: preserve-3d;
  animation: plCenter 3.2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes plCenter {
  0%   { opacity: 0; transform: translateZ(-300px) rotateX(20deg); }
  35%  { opacity: 1; transform: translateZ(0) rotateX(0); }
  85%  { opacity: 1; transform: translateZ(0) rotateX(0); }
  100% { opacity: 1; transform: translateZ(80px) rotateX(0); }
}
.pl-mark {
  width: min(620px, 84vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 30px rgba(184,71,42,.4));
}
.pl-stroke {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: plStroke 1.6s ease-out .15s forwards;
}
@keyframes plStroke { to { stroke-dashoffset: 0; } }
.pl-fill {
  opacity: 0;
  animation: plFill 1s ease-out 1.5s forwards;
}
@keyframes plFill { to { opacity: 1; } }
.pl-tag {
  margin-top: 14px;
  font-family: Inter, sans-serif;
  font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: .5em;
  color: rgba(244,239,230,.55);
  opacity: 0;
  animation: plFade 1s ease-out 1.8s forwards;
}
.pl-bar {
  margin: 24px auto 0;
  width: min(220px, 60vw);
  height: 1px;
  background: rgba(244,239,230,.15);
  overflow: hidden;
  opacity: 0;
  animation: plFade 1s ease-out 2s forwards;
}
.pl-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent, #b8472a);
  animation: plBar 1.4s cubic-bezier(.4,0,.2,1) 1.9s forwards;
}
@keyframes plBar { to { width: 100%; } }
@keyframes plFade { to { opacity: 1; } }

.pl-particle {
  position: absolute;
  width: calc(var(--s) * 4px);
  height: calc(var(--s) * 4px);
  background: var(--accent, #b8472a);
  border-radius: 50%;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  opacity: 0;
  animation: plPart 3s linear forwards;
  animation-delay: calc(var(--d) * 1s);
  filter: blur(.5px);
}
@keyframes plPart {
  0%   { opacity: 0; transform: translateZ(-400px) scale(.2); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateZ(400px) scale(2); }
}

@media (prefers-reduced-motion: reduce) {
  .preload { animation: plExit .3s forwards; }
  .pl-tunnel, .pl-grid, .pl-particle { display: none; }
}

/* Mobile polish — tighten preload + journey */
@media (max-width: 600px) {
  .pl-mark { width: 80vw; }
  .pl-tag { font-size: 9px; letter-spacing: .35em; }
  .pl-ring { animation-duration: 2.6s; }
  .scene { padding: 80px 14px 180px; }
  .scene-caption h3 { font-size: clamp(22px, 6vw, 30px); }
  .scene-caption p { font-size: 13px; }
  .scene-caption .kicker { letter-spacing: .18em; font-size: 10px; margin-bottom: 8px; }
  .journey-counter { right: 12px; }
  .jc-num { font-size: 18px; }
}
