/* ============================================================
   Lyngskärs Bygg & Inredning — homepage redesign (2026-07)
   Ground-up editorial redesign. Warm Nordic craftsman.
   Playfair Display + Inter. Cinematic hero, dark process band.
   ============================================================ */

:root {
  --paper: #f6f1e8;
  --paper-soft: #fffaf2;
  --ash: #e3ddd1;
  --ink: #17150f;
  --ink-soft: #423d33;
  --muted: #7a7263;
  --line: rgba(23, 21, 15, 0.14);
  --line-strong: rgba(23, 21, 15, 0.28);
  --timber: #8a5a2c;
  --timber-dark: #4a3320;
  --moss: #59604a;
  --cream: #f3ece0;
  --white: #fffaf4;
  --shadow: 0 30px 80px rgba(35, 26, 16, 0.18);
  --shadow-deep: 0 50px 120px rgba(24, 18, 11, 0.34);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Manrope", system-ui, sans-serif; font-weight: 700; margin: 0; letter-spacing: -0.035em; }

.wrap { width: min(1360px, 100% - 48px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: 0.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 2px;
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-primary { background: var(--timber); color: var(--white); box-shadow: 0 16px 34px rgba(74, 51, 32, 0.28); }
.btn-primary:hover { background: var(--timber-dark); box-shadow: 0 22px 46px rgba(74, 51, 32, 0.36); }
.btn-ghost { border-color: rgba(243, 236, 224, 0.5); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(243, 236, 224, 0.08); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: rgba(23, 21, 15, 0.04); }

/* ---------- Topbar (over the dark hero) ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(1360px, 100% - 48px); margin-inline: auto; padding-top: 30px;
}
.brand { position: relative; display: inline-flex; align-items: center; padding: 6px 16px 8px 18px; color: var(--cream); }
.brand-frame { position: absolute; inset: 0; pointer-events: none; }
.brand-frame::before, .brand-frame::after { content: ""; position: absolute; bottom: 0; width: 18px; height: 30px; border-color: currentColor; border-style: solid; }
.brand-frame::before { left: 0; border-width: 0 0 2px 2px; }
.brand-frame::after { right: 0; border-width: 0 2px 2px 0; }
.brand-copy { display: grid; gap: 2px; }
.brand-name { font-family: "Manrope", sans-serif; font-size: 1.9rem; font-weight: 600; line-height: 0.9; }
.brand-sub { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.72; white-space: nowrap; }
.brand-sub span:not(.brand-mark) { font-size: 1.2em; line-height: 0; opacity: 0.8; }
.brand-mark { width: 9px; height: 9px; background: currentColor; opacity: 0.7; }

.nav-links { display: flex; align-items: center; gap: 34px; color: var(--cream); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links a { position: relative; padding: 8px 0; opacity: 0.86; transition: opacity 180ms var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 200ms var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid rgba(243, 236, 224, 0.5); border-radius: 2px; color: var(--cream); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: background 200ms var(--ease), border-color 200ms var(--ease); }
.nav-cta:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 15, 9, 0.5) 0%, rgba(20, 15, 9, 0.05) 30%, rgba(20, 15, 9, 0.55) 78%, rgba(20, 15, 9, 0.82) 100%),
    linear-gradient(90deg, rgba(20, 15, 9, 0.55), transparent 62%);
}
.hero-inner { width: min(1360px, 100% - 48px); margin-inline: auto; padding: 0 0 clamp(40px, 6vw, 76px); color: var(--cream); }
.hero .eyebrow { color: var(--cream); opacity: 0.9; }
.hero h1 { margin: 22px 0 0; max-width: 15ch; font-size: clamp(3rem, 8vw, 7rem); line-height: 0.98; color: var(--white); }
.hero-lead { margin: 26px 0 0; max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.6; color: rgba(243, 236, 224, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(243, 236, 224, 0.22); }
.hero-trust div { display: grid; gap: 3px; }
.hero-trust dt { font-family: "Manrope", sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--white); }
.hero-trust dd { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243, 236, 224, 0.68); }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-pad { padding: clamp(84px, 11vw, 150px) 0; }
.kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--timber); }

/* ---------- Statement ---------- */
.statement { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.statement h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.03; }
.statement-body p { margin: 0 0 18px; color: var(--ink-soft); }
.statement-body .kicker { display: block; margin-bottom: 18px; }
.textlink { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 700; font-size: 0.9rem; color: var(--timber-dark); }
.textlink::after { content: "→"; transition: transform 220ms var(--ease); }
.textlink:hover::after { transform: translateX(6px); }

/* ---------- Services (editorial numbered rows) ---------- */
.services { border-top: 1px solid var(--line); }
.services-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(28px, 4vw, 54px); }
.services-head h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.srow {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 60px);
  padding: clamp(28px, 3.6vw, 44px) 0; border-top: 1px solid var(--line);
  transition: padding-left 300ms var(--ease);
}
.srow:last-child { border-bottom: 1px solid var(--line); }
.srow:hover { padding-left: 12px; }
.srow-num { font-family: "Manrope", sans-serif; font-size: 1.1rem; color: var(--timber); }
.srow-main { display: grid; gap: 8px; }
.srow-main h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.04; }
.srow-main p { margin: 0; max-width: 46ch; color: var(--muted); }
.srow-arrow { width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 999px; display: grid; place-items: center; color: var(--timber-dark); transition: background 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease), transform 240ms var(--ease); }
.srow:hover .srow-arrow { background: var(--timber); color: var(--white); border-color: var(--timber); transform: rotate(-45deg); }

/* ---------- Dark cinematic process band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; color: var(--cream); }
.band-bg { position: absolute; inset: 0; z-index: -2; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 13, 8, 0.86), rgba(18, 13, 8, 0.78)); }
.band .kicker { color: var(--timber); }
.band h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin: 16px 0 0; color: var(--white); max-width: 20ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 66px); }
.step { padding-top: 24px; border-top: 1px solid rgba(243, 236, 224, 0.24); }
.step-num { font-family: "Manrope", sans-serif; font-size: 2.4rem; color: var(--timber); line-height: 1; }
.step h3 { font-size: 1.3rem; margin: 14px 0 8px; color: var(--white); }
.step p { margin: 0; font-size: 0.95rem; color: rgba(243, 236, 224, 0.74); }

/* ---------- About / Martin ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; box-shadow: var(--shadow); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.about-figure:hover img { transform: scale(1.05); }
.about-tag { position: absolute; left: 20px; bottom: 20px; padding: 12px 16px; background: rgba(246, 241, 232, 0.92); backdrop-filter: blur(10px); border-radius: 2px; }
.about-tag span { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.about-tag strong { font-family: "Manrope", sans-serif; font-size: 1.15rem; font-weight: 600; }
.about h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-top: 16px; line-height: 1.05; }
.about p { color: var(--ink-soft); margin: 18px 0 0; max-width: 48ch; }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: var(--cream); text-align: center; }
.cta h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); color: var(--white); max-width: 18ch; margin-inline: auto; }
.cta p { margin: 18px auto 0; max-width: 46ch; color: rgba(243, 236, 224, 0.72); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { background: #100c07; color: rgba(243, 236, 224, 0.72); padding: clamp(56px, 7vw, 90px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h3 { font-family: "Manrope", sans-serif; font-size: 1.5rem; color: var(--cream); }
.footer-brand p { margin: 14px 0 0; max-width: 40ch; font-size: 0.92rem; }
.footer-col span { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 236, 224, 0.5); margin-bottom: 12px; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(243, 236, 224, 0.14); font-size: 0.8rem; }
.sholm-credit { opacity: 0.6; transition: opacity 200ms var(--ease); }
.sholm-credit:hover { opacity: 1; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(4px); transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Mobile nav (hamburger + overlay, built by nav.js) ---------- */
.nav-toggle { display: none; position: relative; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(243, 236, 224, 0.5); border-radius: 999px; background: transparent; cursor: pointer; flex: none; }
.nav-toggle-bars { position: relative; width: 20px; height: 14px; }
.nav-toggle-bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--cream); transition: transform 240ms var(--ease), opacity 150ms var(--ease); }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; justify-content: center; padding: 104px 32px 48px; background: var(--paper); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 280ms var(--ease), transform 280ms var(--ease), visibility 280ms; }
.mobile-nav.open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav-inner { display: flex; flex-direction: column; }
.mobile-nav-inner a { font-family: "Manrope", sans-serif; font-size: clamp(2.1rem, 10vw, 3.1rem); font-weight: 600; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); transition: color 170ms var(--ease), padding-left 220ms var(--ease); }
.mobile-nav-inner a:hover { color: var(--timber); padding-left: 12px; }
.mobile-nav-foot { margin-top: 40px; display: grid; gap: 18px; }
.mobile-nav-cta { width: 100%; justify-content: center; min-height: 56px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; }
.mobile-nav-mail { color: var(--muted); }
body.nav-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .statement, .about { grid-template-columns: 1fr; }
  .about-figure { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 22px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .topbar .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .srow { grid-template-columns: auto 1fr; }
  .srow-arrow { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Inner pages
   ============================================================ */
.page-hero { position: relative; min-height: 58vh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.page-hero .hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,13,8,0.5), rgba(18,13,8,0.2) 42%, rgba(18,13,8,0.74)); }
.page-hero.solid { background: linear-gradient(158deg, #1c1710 0%, #0f0b07 100%); min-height: 48vh; }
.page-hero.solid::after { display: none; }
.page-hero-inner { width: min(1360px, 100% - 48px); margin-inline: auto; padding: 118px 0 clamp(36px, 5vw, 62px); color: var(--cream); }
.page-hero .eyebrow { color: var(--cream); opacity: 0.9; }
.page-hero h1 { margin-top: 18px; max-width: 20ch; font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.03; color: var(--white); }
.page-hero .hero-lead { margin-top: 22px; max-width: 54ch; font-size: clamp(1.02rem, 1.4vw, 1.22rem); color: rgba(243,236,224,0.84); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; color: rgba(243,236,224,0.78); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; }
.back-link::before { content: "\2190"; }
.back-link:hover { color: var(--cream); }

.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.intro h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.06; }
.intro .kicker { display: block; margin-bottom: 16px; }
.intro p { margin: 0; color: var(--ink-soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); border-top: 1px solid var(--line); padding-top: clamp(30px, 4vw, 50px); }
.feature .fnum { font-family: "Manrope", sans-serif; font-weight: 700; color: var(--timber); font-size: 1.1rem; }
.feature h3 { font-size: 1.4rem; margin: 12px 0 8px; }
.feature p { margin: 0; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 8px 0 0; columns: 2; column-gap: 56px; max-width: 780px; }
.checklist li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; break-inside: avoid; font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 21px; width: 14px; height: 1px; background: var(--timber); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.contact-card { border: 1px solid var(--line); border-radius: 2px; padding: clamp(24px, 3vw, 40px); }
.contact-card span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-card a, .contact-card strong { font-family: "Manrope", sans-serif; font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; }
.contact-card a:hover { color: var(--timber); }
.contact-note { margin-top: clamp(28px, 4vw, 44px); color: var(--muted); max-width: 60ch; }

.prose { max-width: 66ch; }
.prose p { color: var(--ink-soft); margin: 0 0 20px; font-size: 1.08rem; }
.prose p:first-child { font-family: "Manrope", sans-serif; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }

.projects { display: grid; }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(28px, 4vw, 52px) 0; border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project:nth-child(even) .project-fig { order: 2; }
.project-fig { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; }
.project-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.project:hover .project-fig img { transform: scale(1.05); }
.project h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.project p { color: var(--muted); margin: 8px 0 0; }

@media (max-width: 900px) {
  .intro, .contact-grid, .project { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .feature { padding: 22px 0; border-top: 1px solid var(--line); }
  .checklist { columns: 1; }
  .project:nth-child(even) .project-fig { order: 0; }
}

/* ============================================================
   Motion signature — "precision line" + tactile sweeps
   ============================================================ */

/* Tactile button fill sweep (no markup change; text sits above bg) */
.btn-primary {
  background: linear-gradient(115deg, var(--timber) 0 50%, var(--timber-dark) 50% 100%);
  background-size: 220% 100%; background-position: 0% 0;
  transition: background-position 460ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.btn-primary:hover { background-position: 100% 0; }
.btn-ghost, .btn-outline {
  background-image: linear-gradient(115deg, transparent 0 50%, rgba(243,236,224,0.14) 50% 100%);
  background-size: 220% 100%; background-position: 0% 0;
  transition: background-position 460ms var(--ease), transform 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease);
}
.btn-outline { background-image: linear-gradient(115deg, transparent 0 50%, rgba(23,21,15,0.06) 50% 100%); }
.btn-ghost:hover, .btn-outline:hover { background-position: 100% 0; }

/* "Measuring line" — the eyebrow hairline draws in on reveal */
.eyebrow::before { transform-origin: left; transition: transform 700ms var(--ease) 120ms; }
.eyebrow.reveal:not(.in)::before { transform: scaleX(0); }

/* Kicker lines also draw a small mark that grows on reveal */
.kicker { position: relative; }

/* Staggered reveal for grouped children */
.hero-inner .reveal:nth-of-type(1), .page-hero-inner .reveal:nth-of-type(1) { transition-delay: 40ms; }
.hero-inner .reveal:nth-of-type(2), .page-hero-inner .reveal:nth-of-type(2) { transition-delay: 130ms; }
.hero-inner .reveal:nth-of-type(3), .page-hero-inner .reveal:nth-of-type(3) { transition-delay: 220ms; }
.hero-inner .reveal:nth-of-type(4), .page-hero-inner .reveal:nth-of-type(4) { transition-delay: 310ms; }
.features .feature:nth-child(2), .steps .step:nth-child(2) { transition-delay: 110ms; }
.features .feature:nth-child(3), .steps .step:nth-child(3) { transition-delay: 220ms; }

/* Living light on the dark solid heros (their answer to the video's motion) */
.page-hero.solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 18% 0%, rgba(138, 90, 44, 0.22), transparent 62%);
  animation: heroDrift 15s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: translate3d(-3%, 0, 0); opacity: 0.65; } to { transform: translate3d(9%, 0, 0); opacity: 1; } }

/* Arrow nudge on textlinks already handled; add draw to section rule borders */
.srow { position: relative; }
.srow::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%;
  background: var(--timber); transform: scaleX(0); transform-origin: left;
  transition: transform 500ms var(--ease);
}
.srow:hover::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .page-hero.solid::before { animation: none !important; }
  .eyebrow.reveal:not(.in)::before { transform: scaleX(1); }
  .btn-primary, .btn-ghost, .btn-outline { transition: none; }
}

/* ============================================================
   Motion layer v2 — the site as a precision instrument
   ============================================================ */

/* Measuring rule: a scroll-tracked ruler down the right gutter */
.measure-rail { position: fixed; top: 0; right: 0; bottom: 0; width: 40px; z-index: 60; pointer-events: none; }
.measure-rail::before {
  content: ""; position: absolute; top: 14%; bottom: 14%; right: 18px; width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(122,114,99,0.55) 0 1px, transparent 1px 11px);
}
.measure-fill { position: absolute; top: 14%; right: 17px; width: 2px; height: 72%; background: var(--timber); transform: scaleY(0); transform-origin: top; }
.measure-read { position: absolute; right: 6px; bottom: 14%; transform: translateY(50%) rotate(-90deg); transform-origin: right bottom; font-family: "Manrope", sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
@media (max-width: 900px) { .measure-rail { display: none; } }

/* Craft-discipline marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; background: var(--paper-soft); }
.marquee-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marquee 36s linear infinite; }
.marquee-track span { font-family: "Manrope", sans-serif; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.6rem); letter-spacing: -0.025em; color: var(--ink); padding: 0; display: inline-flex; align-items: center; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; background: var(--timber); margin: 0 58px; border-radius: 1px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Proof strip with counting numbers */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof > div { padding: clamp(32px, 4.5vw, 54px) 0; }
.proof dt { font-family: "Manrope", sans-serif; font-size: clamp(2.8rem, 6.5vw, 4.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.proof dd { margin: 14px 0 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .proof { grid-template-columns: 1fr; gap: 0; } .proof > div { padding: 26px 0; border-top: 1px solid var(--line); } .proof > div:first-child { border-top: none; } }

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