/* =============================================================
   SG MICROCEMENT — style.css
   Inspired by: satine.com Canela Portfolio aesthetic
   Fonts loaded in index.html via Google Fonts
   ============================================================= */

/* ---- TOKENS ---- */
:root {
  --z-content: 1;
  --z-float: 300;
  --z-menu: 400;
  --z-nav: 500;
  --z-preloader: 900;
  --z-cursor-ring: 998;
  --z-cursor: 999;
  --black:   #0b0a08;
  --ink:     #141210;
  --ink2:    #1c1a16;
  --white:   #F4EFE7;
  --white2:  #EDE5D8;
  --gold:    #C8A97C;
  --clay:    #9C6A4E;
  --grey:    #8E897F;
  --lgrey:   #CAC4BA;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);   /* expo-out: reveals */
  --ease-snap: cubic-bezier(0.23, 1, 0.32, 1);  /* strong quint-out: interactions */
}

/* ---- RESET ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}
html { font-size: 16px; scroll-behavior: smooth; background: #0b0a08; }
body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; color: inherit; }
::selection { background: var(--gold); color: var(--black); }

/* =============================================================
   CURSOR
   Two-part: dot (exact) + ring (lerp lag)
   mix-blend-mode: difference = inverts on any background
   ============================================================= */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-200px, -200px);
  mix-blend-mode: difference;
  transition: width .2s var(--ease), height .2s var(--ease), opacity .3s;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor-ring);
  transform: translate(-200px, -200px);
  mix-blend-mode: difference;
  transition:
    width  .32s var(--ease),
    height .32s var(--ease),
    background .3s,
    border-color .3s;
  will-change: transform;
}
/* Hover states */
body.cursor-hover .cursor-ring {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.05);
}
body.cursor-img .cursor-ring {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.6);
}
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring {
  opacity: 0;
}

/* =============================================================
   PRELOADER
   ============================================================= */
html:not(.js) .preloader { display: none; }
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity .9s var(--ease), visibility .9s;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pre-logo {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: .1em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp .8s .2s var(--ease) forwards;
}
.pre-bar {
  width: 0;
  height: 1px;
  background: var(--gold);
  animation: barGrow 1.4s .4s var(--ease) forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes barGrow {
  to { width: 180px; }
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 64px;
  transition: background .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 18px 64px;
  background: rgba(11,10,8,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(244,239,231,.05);
}
.nav-logo {
  height: 26px;
  width: auto;
  display: flex;
  align-items: center;
}
.nav-logo svg {
  height: 100%;
  width: auto;
  fill: var(--white);
  transition: opacity .3s;
}
.nav-logo:hover svg { opacity: .7; }
.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}
.nav-link {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(244,239,231,.65);
  position: relative;
  transition: color .3s;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-snap);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid rgba(244,239,231,.42);
  padding: 11px 24px;
  color: var(--white);
  transition: background .3s, border-color .3s, color .3s;
}
.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
@media (max-width: 900px) {
  .nav { padding: 22px 28px; }
  .nav.is-scrolled { padding: 14px 28px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
  /* Replace with actual photo when ready */
  background:
    linear-gradient(160deg,
      rgba(30,25,18,.95) 0%,
      rgba(20,18,14,.6) 50%,
      rgba(12,10,8,.9) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(200,169,124,.03) 0px,
      rgba(200,169,124,.03) 1px,
      transparent 1px,
      transparent 12px
    );
}
/* Grain overlay — evokes microcement texture */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(11,10,8,.15) 0%,
    rgba(11,10,8,.0) 45%,
    rgba(11,10,8,.7) 100%
  );
}
/* When hero has a real photo, uncomment this:
.hero-bg img { object-position: center 30%; } */

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 64px 80px;
  max-width: 1600px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(244,239,231,.58);
  margin-bottom: 20px;
  overflow: hidden;
}
.hero-eyebrow span {
  display: block;
  transition: transform 1s var(--ease);
}
html.js .hero-eyebrow:not(.is-visible) span { transform: translateY(120%); }
.hero-eyebrow.is-visible span { transform: translateY(0); }
.hero-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(68px, 10vw, 156px);
  line-height: .92;
  letter-spacing: -.015em;
  color: var(--white);
  overflow: hidden;
  margin-bottom: 0;
}
.hero-title-line {
  display: block;
  overflow: hidden;
}
.hero-title-line span {
  display: block;
  transition: transform 1.1s var(--ease);
}
html.js .hero-title:not(.is-visible) .hero-title-line span { transform: translateY(110%); }
.hero-title-line:nth-child(2) span { transition-delay: .1s; }
.hero-title-line:nth-child(3) span { transition-delay: .18s; }
.hero-title em { font-style: italic; font-weight: 200; }
.hero-title.is-visible .hero-title-line span { transform: translateY(0); }
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 44px;
  gap: 20px;
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244,239,231,.52);
  overflow: hidden;
}
.hero-scroll span:last-child {
  display: block;
  transition: transform 1s .5s var(--ease);
}
html.js .hero-scroll:not(.is-visible) span:last-child { transform: translateY(120%); }
.hero-scroll.is-visible span:last-child { transform: translateY(0); }
.hero-scroll-line {
  width: 36px;
  height: 1px;
  background: var(--gold);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
.hero-location {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244,239,231,.48);
}
@media (max-width: 768px) {
  .hero-content { padding: 0 28px 52px; }
  .hero-title { font-size: clamp(52px, 13vw, 88px); }
}

/* =============================================================
   SHARED SECTION UTILITIES
   ============================================================= */
.section-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 64px;
}
@media (max-width: 768px) {
  .section-wrap { padding: 0 28px; }
}
.section-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--clay);
}
.section-num {
  font-family: var(--serif);
  font-size: 11px;
  color: rgba(244,239,231,.35);
  letter-spacing: .06em;
}
.sep { border: none; border-top: 1px solid rgba(244,239,231,.06); width: 100%; }
.sep--light { border-top-color: rgba(14,12,10,.1); }

/* =============================================================
   REVEAL ANIMATIONS (triggered by JS IntersectionObserver)
   ============================================================= */
.rv {
  transition: opacity .95s var(--ease), transform .95s var(--ease);
}
html.js .rv:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}
.rv.is-visible { opacity: 1; transform: translateY(0); }
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }
.rv.d4 { transition-delay: .4s; }
.rv.d5 { transition-delay: .5s; }

/* Clip reveal for headlines */
.rv-clip { overflow: hidden; }
.rv-clip > * {
  display: block;
  transition: transform 1s var(--ease);
}
html.js .rv-clip:not(.is-visible) > * { transform: translateY(108%); }
.rv-clip.is-visible > * { transform: translateY(0); }
.rv-clip.d1 > * { transition-delay: .1s; }
.rv-clip.d2 > * { transition-delay: .2s; }
.rv-clip.d3 > * { transition-delay: .3s; }
.rv-img {
  transition: clip-path 1.1s var(--ease);
}
html.js .rv-img:not(.is-visible) { clip-path: inset(100% 0 0 0); }
.rv-img.is-visible { clip-path: inset(0% 0 0 0); }
.rv-img.d1 { transition-delay: .1s; }
.rv-img.d2 { transition-delay: .2s; }

/* =============================================================
   MANIFESTO / INTRO
   ============================================================= */
.manifesto {
  padding: clamp(90px, 12vw, 170px) 0;
  background: var(--black);
}
.manifesto-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: end;
}
.manifesto-label { padding-bottom: 10px; border-bottom: 1px solid rgba(244,239,231,.06); }
.manifesto-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 50px);
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--white);
}
.manifesto-text em { font-style: italic; color: var(--gold); }
.manifesto-sub {
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.82;
  color: rgba(244,239,231,.58);
  font-weight: 300;
  max-width: 500px;
}
@media (max-width: 900px) {
  .manifesto-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* =============================================================
   SPECS BAND (feature grid)
   ============================================================= */
.specs-band {
  background: #0d0b09;
  border-top: 1px solid rgba(244,239,231,.04);
  border-bottom: 1px solid rgba(244,239,231,.04);
  padding: clamp(48px, 7vw, 90px) 0;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(244,239,231,.04);
  border: 1px solid rgba(244,239,231,.04);
}
.spec-item {
  background: #0d0b09;
  padding: 34px 28px;
  transition: background .3s;
}
.spec-item:hover { background: #161310; }
.spec-glyph { font-size: 20px; opacity: .4; margin-bottom: 16px; }
.spec-name {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
  margin-bottom: 8px;
}
.spec-val {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}
.spec-val small {
  font-size: .65em;
  opacity: .4;
  font-family: var(--sans);
  font-weight: 300;
}
@media (max-width: 900px) { .specs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .specs-grid { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================
   SPLIT SECTIONS
   ============================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; }
.split.is-reversed { direction: rtl; }
.split.is-reversed > * { direction: ltr; }
/* Image side */
.split-img {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: var(--ink2);
}
.split-img img {
  transition: transform .7s var(--ease-snap);
}
.split-img:hover img,
.split-img.img-hover img {
  transform: scale(1.05);
}
/* Content side */
.split-body {
  padding: clamp(64px, 9vw, 130px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  background: var(--black);
}
.split-heading {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--white);
}
.split-heading em { font-style: italic; color: var(--gold); }
.split-body-text {
  font-size: 16px;
  line-height: 1.82;
  color: rgba(244,239,231,.62);
  font-weight: 300;
  max-width: 440px;
}
.split-body-text p + p { margin-top: 14px; }
.split-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(244,239,231,.06);
  flex-wrap: wrap;
}
.stat-n {
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 200;
  color: var(--gold);
  letter-spacing: -.02em;
  line-height: 1;
}
.stat-l {
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(244,239,231,.46);
  margin-top: 5px;
}
/* Image placeholder — CSS microcement texture */
.img-placeholder {
  width: 100%; height: 100%;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #2a2520 0%, #1a1512 40%, #241e18 100%);
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}
/* Variant warm */
.img-placeholder.warm::before {
  background: linear-gradient(135deg, #2e2318 0%, #1e1710 50%, #2a1e14 100%);
}
/* Variant light */
.img-placeholder.cool::before {
  background: linear-gradient(135deg, #222220 0%, #1a1a18 50%, #202018 100%);
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; direction: ltr !important; }
  .split > * { direction: ltr !important; }
  .split-img { min-height: 380px; }
  .split-body { padding: 52px 28px; }
}

/* =============================================================
   FULL-WIDTH IMAGE BREAK
   ============================================================= */
.fullimg {
  height: clamp(300px, 48vw, 660px);
  position: relative;
  overflow: hidden;
  background: var(--ink2);
}
.fullimg img {
  transition: transform 9s ease;
}
.fullimg:hover img { transform: scale(1.04); }
.fullimg .img-placeholder { min-height: 100%; }
.fullimg-caption {
  position: absolute;
  bottom: 52px;
  right: 64px;
  z-index: 4;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(18px, 2.8vw, 40px);
  color: rgba(244,239,231,.75);
  text-align: right;
  max-width: 540px;
  line-height: 1.3;
  letter-spacing: -.01em;
}
@media (max-width: 768px) {
  .fullimg-caption { right: 28px; bottom: 28px; font-size: 18px; }
}

/* =============================================================
   PROCESS
   ============================================================= */
.process { padding: clamp(90px, 12vw, 160px) 0; background: var(--black); }
.process-header { margin-bottom: clamp(52px, 7vw, 90px); }
.process-heading {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(44px, 7vw, 110px);
  line-height: .93;
  letter-spacing: -.02em;
  margin-top: 18px;
  color: var(--white);
}
.process-heading em { font-style: italic; color: var(--gold); }
.process-sub {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244,239,231,.55);
  max-width: 460px;
  font-weight: 300;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(244,239,231,.05);
  border: 1px solid rgba(244,239,231,.05);
}
.process-step {
  background: var(--black);
  padding: 44px 34px;
  position: relative;
  transition: background .38s;
}
.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.process-step:nth-child(1)::before { background: var(--grey); }
.process-step:nth-child(2)::before { background: var(--lgrey); }
.process-step:nth-child(3)::before { background: var(--gold); }
.process-step:nth-child(4)::before { background: var(--clay); }
.process-step:hover { background: #141210; }
.step-num {
  font-family: var(--serif);
  font-size: 12px;
  color: rgba(244,239,231,.35);
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 16px;
}
.step-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(244,239,231,.56);
  font-weight: 300;
}
.step-days {
  margin-top: 26px;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* Mobile: the four-layer process becomes a swipeable, snapping carousel
   so the section stays short instead of stacking four tall cards.
   Desktop keeps the grid above. Dots (injected by initProcessCarousel)
   are hidden everywhere except this breakpoint. */
.process-dots { display: none; }
@media (max-width: 560px) {
  .process-grid {
    display: flex;
    gap: 12px;
    background: transparent;
    border: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .process-grid::-webkit-scrollbar { display: none; }
  .process-step {
    flex: 0 0 84%;
    scroll-snap-align: center;
    border: 1px solid rgba(244,239,231,.09);
    border-radius: 13px;
    overflow: hidden;
  }
  .process-step:last-child { margin-right: 4px; }

  .process-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
  }
  .process-dot {
    width: 8px;
    height: 8px;
    padding: 9px 5px;
    border: 0;
    background: rgba(244,239,231,.32);
    background-clip: content-box;
    border-radius: 999px;
    cursor: pointer;
    transition: width .35s var(--ease), background .35s var(--ease);
  }
  .process-dot.is-active {
    width: 24px;
    background: var(--gold);
    background-clip: content-box;
  }
}

/* =============================================================
   MARQUEE
   ============================================================= */
.marquee {
  overflow: hidden;
  background: #090806;
  padding: clamp(28px, 4.5vw, 60px) 0;
  border-top: 1px solid rgba(244,239,231,.035);
  border-bottom: 1px solid rgba(244,239,231,.035);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marqScroll 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--serif);
  font-weight: 200;
  font-style: italic;
  font-size: clamp(28px, 5vw, 68px);
  color: rgba(244,239,231,.6);
  padding: 0 36px;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .3s;
}
.marquee-item:hover { color: var(--gold); }
.marquee-sep {
  font-size: clamp(14px, 2vw, 26px);
  color: var(--clay);
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
@keyframes marqScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   APPLICATIONS & EDUCATION
   ============================================================= */
.apps {
  padding: clamp(90px, 12vw, 160px) 0;
  background: #0a0907;
}
.apps-header { margin-bottom: clamp(44px, 6vw, 72px); }
.apps-heading {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(44px, 7vw, 110px);
  line-height: .93;
  letter-spacing: -.02em;
  color: var(--white);
  margin-top: 18px;
}
.apps-heading em { font-style: italic; color: var(--gold); }
.apps-sub {
  margin-top: 22px;
  font-size: 15px;
  color: rgba(244,239,231,.55);
  max-width: 460px;
  line-height: 1.8;
  font-weight: 300;
}
.apps-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--clay);
  margin-bottom: 16px;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(244,239,231,.04);
  border: 1px solid rgba(244,239,231,.04);
}
.app-card {
  background: #0a0907;
  padding: 34px 28px;
  transition: background .35s;
}
.app-card:hover { background: #131109; }
.app-name {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}
.app-desc {
  font-size: 13px;
  line-height: 1.78;
  color: rgba(244,239,231,.52);
  font-weight: 300;
}
.know {
  margin-top: clamp(44px, 6vw, 68px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid rgba(244,239,231,.06);
}
.know-title {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 10px;
}
.know-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(244,239,231,.5);
  font-weight: 300;
}
@media (max-width: 1000px) { .apps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .apps-grid { grid-template-columns: 1fr; }
  .know { grid-template-columns: 1fr; gap: 20px; }
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact {
  padding: clamp(90px, 14vw, 180px) 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-heading {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(50px, 8vw, 118px);
  line-height: .88;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 38px;
}
.contact-heading em { font-style: italic; color: var(--gold); }
.contact-body {
  font-size: 16px;
  line-height: 1.82;
  color: rgba(244,239,231,.56);
  font-weight: 300;
  margin-bottom: 46px;
  max-width: 440px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .3s, border-color .3s, color .3s, transform .15s var(--ease);
}
.btn-fill {
  background: var(--gold);
  color: var(--black);
  position: relative;
  overflow: hidden;
}
.btn-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clay);
  transform: translateX(-101%);
  transition: transform .32s var(--ease-snap);
}
.btn-fill span { position: relative; z-index: 1; }
.btn-fill:hover::after { transform: translateX(0); }
.btn-outline {
  border: 1px solid rgba(244,239,231,.35);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.contact-info { display: flex; flex-direction: column; }
.ci {
  padding: 24px 0;
  border-bottom: 1px solid rgba(244,239,231,.05);
}
.ci:first-child { border-top: 1px solid rgba(244,239,231,.05); }
.ci-label {
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,239,231,.42);
  margin-bottom: 7px;
}
.ci-val {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
}
.ci-val a { transition: color .25s; }
.ci-val a:hover { color: var(--gold); }
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 52px; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: #060504;
  padding: 34px 0;
  border-top: 1px solid rgba(244,239,231,.04);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo svg { height: 20px; width: auto; fill: var(--white); opacity: .3; }
.footer-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.footer-links a {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244,239,231,.2);
  transition: color .2s;
}
.footer-links a:hover { color: rgba(244,239,231,.6); }
.footer-copy { font-size: 10.5px; color: rgba(244,239,231,.35); letter-spacing: .03em; }
.footer-social { display: flex; gap: 12px; list-style: none; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 231, .14);
  color: rgba(244, 239, 231, .6);
  transition: color .3s, border-color .3s, background .3s;
}
.footer-social a:hover {
  color: var(--gold);
  border-color: rgba(200, 169, 124, .5);
  background: rgba(200, 169, 124, .08);
}
.footer-social svg { width: 17px; height: 17px; display: block; }
@media (max-width: 640px) {
  .footer-links { display: none; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* =============================================================
   MOBILE MENU (overlay)
   ============================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mobile-menu-links a {
  font-family: var(--serif);
  font-size: clamp(40px, 10vw, 72px);
  font-weight: 200;
  color: rgba(244,239,231,.7);
  letter-spacing: -.01em;
  transition: color .25s;
}
.mobile-menu-links a:hover { color: var(--white); }
.mobile-cta {
  margin-top: 44px;
  align-self: flex-start;
}

/* =============================================================
   FLOATING WHATSAPP BUTTON
   Dark pill, expands on hover, subtle pulse ring
   ============================================================= */
.wa-float {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: var(--z-float);
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  background: #161310;
  border: 1px solid rgba(244,239,231,.1);
  border-radius: 999px;
  padding: 15px;
  box-shadow:
    0 8px 32px rgba(0,0,0,.55),
    0 2px 8px rgba(0,0,0,.3);
  color: var(--white);
  padding: 15px 18px;
  transition:
    background .3s,
    border-color .3s,
    box-shadow .3s,
    transform .5s var(--ease),
    opacity .5s var(--ease);
  text-decoration: none;
}
.wa-float::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  border: 1px solid rgba(200,169,124,.18);
  animation: waPulse 3s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.18); opacity: 0;  }
  100% { transform: scale(1.18); opacity: 0;  }
}
.wa-float:hover {
  gap: 11px;
  background: #1e1b16;
  border-color: rgba(200,169,124,.28);
  box-shadow:
    0 12px 44px rgba(0,0,0,.65),
    0 0 0 1px rgba(200,169,124,.1),
    0 2px 8px rgba(0,0,0,.3);
}
.wa-float:hover::after { animation: none; opacity: 0; }
.wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.wa-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
  transition: transform .3s var(--ease);
}
.wa-float:hover .wa-icon svg { transform: scale(1.08); }
.wa-label {
  font-size: 11.5px;
  letter-spacing: .09em;
  font-weight: 500;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-width .42s var(--ease),
    opacity .28s;
}
.wa-float:hover .wa-label { max-width: 100px; opacity: 1; }
@media (max-width: 768px) {
  .wa-float { bottom: 24px; right: 20px; }
}

/* =============================================================
   HAMBURGER → X ANIMATION
   ============================================================= */
.nav-hamburger { transition: opacity .2s; }
.nav-hamburger span { transition: transform .35s var(--ease), opacity .2s; }
.nav-hamburger.is-active span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-hamburger.is-active span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* =============================================================
   MOBILE — global improvements
   ============================================================= */
@media (max-width: 768px) {
  /* Hero */
  .hero-content { padding-left: 28px !important; padding-right: 28px !important; padding-bottom: 52px; }
  .hero-title { font-size: clamp(52px, 13.5vw, 88px); }
  .hero-foot { margin-top: 28px; }
  .hero-location { display: none; }

  /* Manifesto */
  .manifesto { padding: clamp(64px, 10vw, 100px) 0; }
  .manifesto-text { font-size: clamp(24px, 7vw, 38px); }
  .manifesto-inner { gap: 24px; }

  /* Specs */
  .specs-band { padding: 40px 0; }

  /* Split sections */
  .split-body { padding: 48px 28px; gap: 22px; }
  .split-heading { font-size: clamp(36px, 9vw, 56px); }
  .split-body-text { font-size: 15px; }
  .split-img { min-height: 72vw; }
  .split-stats { gap: 28px; }
  .stat-n { font-size: clamp(34px, 9vw, 50px); }

  /* Full-bleed */
  .fullimg { height: 72vw; min-height: 260px; }
  .fullimg-caption { font-size: clamp(16px, 4.5vw, 22px); bottom: 22px; right: 28px; }

  /* Process */
  .process { padding: clamp(64px, 10vw, 100px) 0; }
  .process-heading { font-size: clamp(40px, 11vw, 72px); }
  .process-step { padding: 32px 24px; }
  .step-title { font-size: clamp(20px, 5.5vw, 28px); }

  /* Marquee */
  .marquee-item { font-size: clamp(24px, 7vw, 44px); padding: 0 24px; }

  /* Contact */
  .contact { padding: clamp(64px, 10vw, 100px) 0; }
  .contact-heading { font-size: clamp(44px, 11vw, 72px); }
  .contact-body { font-size: 15px; }
  .btn { padding: 14px 26px; font-size: 10.5px; }

  /* Footer */
  .footer { padding: 28px 0; }
}

/* Extra small (≤ 420px) */
@media (max-width: 420px) {
  .hero-title { font-size: clamp(44px, 14vw, 68px); }
  .section-wrap { padding: 0 20px; }
  .split-body { padding: 40px 20px; }
  .process-step { padding: 28px 20px; }
}

/* Ensure all touch targets are ≥ 44px */
.nav-link, .nav-cta, .nav-hamburger,
.footer-links a, .ci-val a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-hamburger { min-width: 44px; justify-content: center; }

/* Mobile menu — better typography */
@media (max-width: 480px) {
  .mobile-menu { padding: 80px 28px; }
  .mobile-menu-links a { font-size: clamp(36px, 12vw, 60px); }
}

/* Safe-area insets (iPhone notch/home bar) */
.nav { padding-top: max(34px, calc(env(safe-area-inset-top) + 16px)); }
.nav.is-scrolled { padding-top: max(18px, calc(env(safe-area-inset-top) + 10px)); }
.wa-float { bottom: max(36px, calc(env(safe-area-inset-bottom) + 24px)); }
@media (max-width: 768px) {
  .wa-float { bottom: max(24px, calc(env(safe-area-inset-bottom) + 20px)); }
  .hero-content { padding-bottom: max(52px, calc(env(safe-area-inset-bottom) + 36px)) !important; }
}


/* =============================================================
   REDUCED MOTION — gentler, not zero
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; transform: none; }
  .wa-float::after, .hero-scroll-line { animation: none; }
  .rv, .rv-clip > *, .rv-img,
  .hero-eyebrow span, .hero-title-line span, .hero-scroll span:last-child {
    transition-duration: .01ms !important;
  }
  .split-img img, .fullimg img { transition: none; }
  .hero-bg { transform: none !important; }
}

/* =============================================================
   FOCUS VISIBILITY + PRESS FEEDBACK
   ============================================================= */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn, .nav-cta, .wa-float { transition-property: background, border-color, color, transform; }
.btn:active, .nav-cta:active, .wa-float:active { transform: scale(0.97); }
.btn-fill:active::after { transform: translateX(0); }


/* =============================================================
   STAGGERED GROUP REVEALS
   ============================================================= */
html.js .rv-stagger:not(.is-visible) > * {
  opacity: 0;
  transform: translateY(22px);
}
.rv-stagger > * {
  transition: opacity .8s var(--ease), transform .8s var(--ease), background .35s;
}
.rv-stagger.is-visible > *:nth-child(1) { transition-delay: 0s, 0s, 0s; }
.rv-stagger.is-visible > *:nth-child(2) { transition-delay: .06s, .06s, 0s; }
.rv-stagger.is-visible > *:nth-child(3) { transition-delay: .12s, .12s, 0s; }
.rv-stagger.is-visible > *:nth-child(4) { transition-delay: .18s, .18s, 0s; }
.rv-stagger.is-visible > *:nth-child(5) { transition-delay: .24s, .24s, 0s; }
.rv-stagger.is-visible > *:nth-child(6) { transition-delay: .3s, .3s, 0s; }
.rv-stagger.is-visible > *:nth-child(7) { transition-delay: .36s, .36s, 0s; }
.rv-stagger.is-visible > *:nth-child(8) { transition-delay: .42s, .42s, 0s; }
@media (prefers-reduced-motion: reduce) {
  .rv-stagger > * { transition-duration: .01ms !important; transition-delay: 0s !important; }
}


/* =============================================================
   TYPOGRAPHY REFINEMENTS
   ============================================================= */
h1, h2, h3, .split-heading, .process-heading, .apps-heading, .contact-heading {
  text-wrap: balance;
}
p, .manifesto-sub, .split-body-text, .step-desc, .app-desc, .know-desc, .contact-body {
  text-wrap: pretty;
}
section[id] { scroll-margin-top: 96px; }

/* Marquee edge fades */
.marquee {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -60px; left: 16px;
  z-index: var(--z-cursor);
  background: var(--gold);
  color: var(--black);
  padding: 12px 20px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: top .2s var(--ease-snap);
}
.skip-link:focus { top: 16px; }


/* =============================================================
   MEDIA SLOTS — photos/videos layer over placeholders
   ============================================================= */
.img-placeholder { position: relative; }
.img-placeholder > img,
.img-placeholder > video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg > img, .hero-bg > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================================
   MEDIA SLOTS — photos/videos layer over placeholders
   ============================================================= */
.img-placeholder { position: relative; }
.img-placeholder > img,
.img-placeholder > video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg > img, .hero-bg > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =============================================================
   EXPERIENTIAL WALKTHROUGH
   Scroll-driven doorway journey. Pin+scroll is pure enhancement —
   default state (no JS) shows every image and card fully visible,
   just stacked without the zoom/mask motion.
   ============================================================= */
.walk {
  position: relative;
  background: var(--black);
}
.walk-scene {
  position: relative;
  height: 260vh;
}
.walk-scene.walk-entrance { height: 240vh; }
.walk-scene + .walk-scene { margin-top: -100vh; }
.walk-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
/* Real camera frustum. Added by JS so the flat fallback is untouched. */
.walk-pin.walk-3d {
  perspective: 1500px;
  perspective-origin: 50% 52%;
}
@media (max-width: 900px) {
  .walk-pin.walk-3d { perspective: 1150px; }
}
.walk-scene:nth-of-type(1) .walk-pin { z-index: 1; }
.walk-media {
  position: absolute;
  inset: -6%;
  will-change: transform;
}
/* Yaw and pitch swing the plane, so it needs more bleed than the
   flat build did or the frame edge becomes visible at the extremes. */
.walk-3d .walk-media {
  inset: -14%;
  backface-visibility: hidden;
}
.walk-media img { width: 100%; height: 100%; object-fit: cover; }
.walk-grain {
  position: absolute; inset: 0; z-index: 3; opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}
.walk-veil {
  position: absolute; inset: 0; z-index: 4; background: var(--black); opacity: 0; pointer-events: none;
}
.walk-intro {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 64px 12vh; pointer-events: none;
}
.walk-intro-title {
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(46px, 8vw, 110px); line-height: .95; letter-spacing: -.015em;
  color: var(--white); margin-top: 16px; text-wrap: balance;
}
.walk-intro-title em { font-style: italic; }
.walk-hint {
  display: flex; align-items: center; gap: 12px; margin-top: 26px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244,239,231,.55);
}
.walk-hint-line { width: 34px; height: 1px; background: var(--gold); animation: walkHint 2s ease infinite; }
@keyframes walkHint {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  51% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
.walk-card {
  position: absolute; bottom: 9vh; max-width: 400px; z-index: 5;
  background: rgba(11,10,8,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(244,239,231,.1); padding: 30px 32px;
  will-change: transform, opacity;
}
.walk-card-left { left: 5vw; }
.walk-card-right { right: 5vw; }
.walk-card-num {
  font-family: var(--serif); font-size: 12px; color: var(--gold); letter-spacing: .1em; margin-bottom: 10px;
}
.walk-card-title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05; margin-bottom: 12px; color: var(--white); text-wrap: balance;
}
.walk-card-title em { font-style: italic; color: var(--gold); }
.walk-card-body { font-size: 13.5px; line-height: 1.75; color: rgba(244,239,231,.72); font-weight: 300; }
.walk-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.walk-tag {
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(200,169,124,.35); padding: 5px 10px;
}
.walk-dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 250;
  display: flex; flex-direction: column; gap: 12px; opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.walk-dots.is-active { opacity: 1; }
.walk-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(244,239,231,.28); transition: background .3s, transform .3s; }
.walk-dot.on { background: var(--gold); transform: scale(1.5); }

@media (max-width: 900px) {
  /* Longer scenes give the info card a comfortable, readable dwell on mobile */
  .walk-scene { height: 240vh; }
  .walk-scene.walk-entrance { height: 180vh; }
  .walk-intro { padding: 0 24px max(10vh, calc(env(safe-area-inset-bottom) + 64px)); }
  .walk-intro-title { font-size: clamp(38px, 11vw, 64px); }
  .walk-hint { margin-top: 20px; }
  .walk-card {
    left: 16px !important; right: 16px !important;
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px));
    max-width: none; padding: 22px 22px;
  }
  .walk-card-title { font-size: clamp(22px, 6.5vw, 30px); }
  .walk-card-body { font-size: 13px; line-height: 1.68; }
  .walk-tag { font-size: 8.5px; padding: 4px 9px; }
  .walk-dots { display: none; }
}
@media (max-width: 420px) {
  .walk-scene { height: 220vh; }
  .walk-scene.walk-entrance { height: 170vh; }
  .walk-card { padding: 20px 18px; }
  .walk-card-title { font-size: clamp(20px, 7vw, 26px); }
}

/* No-JS / reduced-motion: fully static, fully visible, no pin/zoom/mask */
@media (prefers-reduced-motion: reduce) {
  .walk-scene { height: auto !important; margin-top: 0 !important; }
  .walk-pin { position: relative !important; height: 100svh; }
  .walk-media { position: absolute; inset: 0; transform: none !important; }
  .walk-media img { clip-path: none !important; }
  .walk-card { position: absolute; opacity: 1 !important; transform: none !important; }
  .walk-veil { display: none; }
  .walk-hint-line { animation: none; }
}
html:not(.js) .walk-scene { height: auto; margin-top: 0; }
html:not(.js) .walk-pin { position: relative; height: 100svh; }

/* =============================================================
   WORD-BY-WORD SCROLL REVEAL
   Used on headline moments (manifesto, applications) for a more
   editorial, flowing entrance as the section scrolls into view.
   ============================================================= */
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.28;
}
.word-inner {
  display: inline-block;
  transform: translateY(112%);
  transition: transform .8s var(--ease);
  will-change: transform;
}
.word-reveal.is-visible .word-inner {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .word-inner { transition-duration: .01ms !important; }
}
/* Before JS runs, text must already be fully visible (progressive enhancement) */
html:not(.js) .word-mask,
html:not(.js) .word-inner {
  display: inline;
  overflow: visible;
  transform: none;
}

/* =============================================================
   WALKTHROUGH DEPTH LAYERS
   Injected by main.js: a warm light that glides across the
   surface, a foreground haze that stands in for depth-of-field,
   and a canvas of dust motes drifting at independent Z depths.
   All are decorative and pointer-transparent.
   ============================================================= */
.walk-light {
  position: absolute;
  inset: -30% -60%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  mix-blend-mode: screen;
  background: linear-gradient(
    100deg,
    rgba(214,183,126,0) 34%,
    rgba(214,183,126,.16) 46%,
    rgba(240,222,186,.30) 50%,
    rgba(214,183,126,.16) 54%,
    rgba(214,183,126,0) 66%
  );
}
.walk-dust {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
  mix-blend-mode: screen;
}
.walk-haze {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  background:
    radial-gradient(120% 80% at 50% 45%, rgba(0,0,0,0) 42%, rgba(0,0,0,.34) 78%, rgba(0,0,0,.62) 100%),
    linear-gradient(to top, rgba(10,9,7,.42) 0%, rgba(10,9,7,0) 34%);
}
/* Copy floats forward of the wall plane. */
.walk-3d .walk-card,
.walk-3d .walk-intro { will-change: transform, opacity; }

/* No 3D on reduced-motion or non-JS: fall back to the flat build. */
@media (prefers-reduced-motion: reduce) {
  .walk-pin.walk-3d { perspective: none; }
  .walk-3d .walk-media { inset: -6%; }
  .walk-light, .walk-dust, .walk-haze { display: none; }
}
html:not(.js) .walk-light,
html:not(.js) .walk-dust,
html:not(.js) .walk-haze { display: none; }

/* =============================================================
   SCROLL-SCRUB HERO — the "horizon" effect, vanilla
   .hero becomes a tall scroll track; .hero-pin pins while the
   video scrubs by scroll position. Enhancement only — driven by
   initHeroScrub() in main.js. No-JS / reduced-motion = normal hero.
   ============================================================= */
.hero-pin {
  position: relative;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
}
.hero.is-scrub {
  /* Tall track = scroll distance for the ~10s walkthrough scrub.
     Longer video wants a longer track so the journey stays deliberate. */
  height: 460svh;
  min-height: 0;
  overflow: visible;
}
.hero.is-scrub .hero-pin {
  position: sticky;
  top: 0;
}
.hero-video-scrub {
  z-index: 1;
  transform-origin: center;
  will-change: transform;
}
/* Scene 2 — statement revealed as the room pushes in */
.hero-statement {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 8vw;
  opacity: 0;
  pointer-events: none;
}
.hero-statement-text {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(30px, 5vw, 66px);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--white);
  max-width: 20ch;
  text-wrap: balance;
}
.hero-statement-text em { font-style: italic; color: var(--gold); }
/* Progress rail + scene counter */
.hero-progress {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-progress-num,
.hero-progress-total {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(244, 239, 231, .5);
  font-variant-numeric: tabular-nums;
}
.hero-progress-total { color: rgba(244, 239, 231, .3); }
.hero-progress-track {
  width: 1px;
  height: 110px;
  background: rgba(244, 239, 231, .18);
  position: relative;
  overflow: hidden;
}
.hero-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
}
/* Fallback: without the scrub enhancement, show only the standard hero */
.hero:not(.is-scrub) .hero-statement,
.hero:not(.is-scrub) .hero-progress { display: none; }
@media (max-width: 900px) {
  .hero-progress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero.is-scrub { height: 100svh; overflow: hidden; }
  .hero.is-scrub .hero-pin { position: relative; }
  .hero-video-scrub { transform: none !important; }
}

/* =============================================================
   MANIFESTO — background video + legibility scrim
   Video sits behind the content; a layered scrim keeps the serif
   heading and muted body text readable over the motion.
   ============================================================= */
.manifesto { position: relative; overflow: hidden; }
.manifesto-bg { position: absolute; inset: 0; z-index: 0; }
.manifesto-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.manifesto-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 10, 8, .52) 0%, rgba(11, 10, 8, .68) 100%),
    linear-gradient(to right, rgba(11, 10, 8, .20) 0%, rgba(11, 10, 8, .46) 100%);
}
.manifesto .section-wrap { position: relative; z-index: 1; }
/* Readability over the moving footage */
.manifesto-text { text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.manifesto-sub {
  color: rgba(244, 239, 231, .78);
  text-shadow: 0 1px 18px rgba(0, 0, 0, .55);
}
.manifesto-label { border-bottom-color: rgba(244, 239, 231, .16); }
@media (prefers-reduced-motion: reduce) {
  .manifesto-video { display: none; }
}

/* =============================================================
   FEATURE DUOS — 6 points, 2 side-by-side video panels per section
   Each panel: background video + legibility scrim + centred text
   that reveals on scroll. Stacks on mobile.
   ============================================================= */
.feature-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black);
}
.feature-panel {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: grid;
  place-items: center;
  padding: clamp(40px, 6vw, 96px);
}
.feature-panel + .feature-panel { border-left: 1px solid rgba(244, 239, 231, .08); }
.feature-bg { position: absolute; inset: 0; z-index: 0; }
.feature-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 50% 50%, rgba(11, 10, 8, 0) 22%, rgba(11, 10, 8, .55) 100%),
    linear-gradient(to bottom, rgba(11, 10, 8, .48) 0%, rgba(11, 10, 8, .64) 100%);
}
.feature-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 32ch;
}
.feature-eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(18px, 2.2vw, 30px);
}
.feature-value {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(52px, 8vw, 128px);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0, 0, 0, .5);
}
.feature-value em { font-style: italic; color: var(--gold); }
.feature-sub {
  margin-top: clamp(16px, 2vw, 26px);
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: .02em;
  color: rgba(244, 239, 231, .74);
  text-shadow: 0 1px 16px rgba(0, 0, 0, .5);
}
@media (max-width: 900px) {
  .feature-duo { grid-template-columns: 1fr; }
  .feature-panel { min-height: 66vh; }
  .feature-panel + .feature-panel {
    border-left: none;
    border-top: 1px solid rgba(244, 239, 231, .08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature-video { display: none; }
}

/* =============================================================
   THE BUILD-UP — animated layers video section
   Replaces the old showroom walkthrough. Inset heading, full-bleed
   cinematic video whose dark background blends with the section.
   ============================================================= */
.layers {
  background: var(--black);
  padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.layers-head { margin-bottom: clamp(36px, 5vw, 70px); }
.layers-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(42px, 7vw, 104px);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--white);
  margin-top: 14px;
}
.layers-title em { font-style: italic; color: var(--gold); }
.layers-sub {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 560px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 239, 231, .6);
}
.layers-media { width: 100%; background: var(--black); }
.layers-video { display: block; width: 100%; height: auto; }
@media (max-width: 768px) {
  .layers-title { font-size: clamp(38px, 11vw, 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .layers-video { display: block; }
}

/* =============================================================
   MOBILE TUNING
   ============================================================= */
@media (max-width: 768px) {
  /* Shorter hero scrub track so it isn't an endless scroll on phones */
  .hero.is-scrub { height: 300svh; }
}

/* =============================================================
   BENEFIT SECTIONS — 3 single-benefit full-width video sections
   (replaces the 6-panel feature duos). Video behind, centred text.
   ============================================================= */
.benefit {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: clamp(56px, 8vw, 120px) clamp(28px, 6vw, 96px);
  overflow: hidden;
  background: var(--black);
  text-align: center;
}
.benefit-bg { position: absolute; inset: 0; z-index: 0; }
.benefit-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.benefit-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(11, 10, 8, 0) 25%, rgba(11, 10, 8, .55) 100%),
    linear-gradient(to bottom, rgba(11, 10, 8, .5) 0%, rgba(11, 10, 8, .66) 100%);
}
.benefit-content { position: relative; z-index: 1; max-width: 900px; }
.benefit-eyebrow {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(18px, 2.4vw, 32px);
}
.benefit-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(42px, 7vw, 112px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0, 0, 0, .5);
}
.benefit-title em { font-style: italic; color: var(--gold); }
.benefit-sub {
  margin: clamp(22px, 2.6vw, 34px) auto 0;
  max-width: 620px;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.75;
  color: rgba(244, 239, 231, .72);
  text-shadow: 0 1px 16px rgba(0, 0, 0, .5);
}
@media (max-width: 768px) {
  .benefit { min-height: 82vh; }
  .benefit-title { font-size: clamp(38px, 11vw, 64px); }
}
@media (prefers-reduced-motion: reduce) {
  .benefit-video { display: none; }
}

/* =============================================================
   BRAND LOGO (nav + footer) — image with SGM wordmark fallback
   Drop images/logo-white.png to activate; if it 404s the onerror
   removes the <img> and the SVG wordmark shows instead.
   ============================================================= */
.brand-logo { display: block; width: auto; height: 50px; }
.footer-logo .brand-logo { height: 66px; }
/* Hide the text fallback whenever the image logo is present */
.brand-logo + .brand-fallback { display: none; }
@media (max-width: 768px) {
  .brand-logo { height: 42px; }
}

/* Media-only benefit (Seamless): the clip carries its own text + callouts,
   so lighten the scrim and keep the full frame from cropping on small screens. */
.benefit--media .benefit-scrim {
  background: linear-gradient(to bottom, rgba(11, 10, 8, .16) 0%, rgba(11, 10, 8, .32) 100%);
}
@media (max-width: 768px) {
  .benefit--media { min-height: 58vh; }
  .benefit--media .benefit-video { object-fit: contain; }
}

/* Waterproof clip: on mobile the cover-crop centres and loses the mouldy
   grout tiles on the left. Shift the framing left so the before-state mould
   stays clearly in view. Desktop keeps the full before/after frame centred. */
@media (max-width: 768px) {
  .benefit--wet .benefit-video { object-position: 12% center; }
}

/* =============================================================
   CUSTOMER REVIEWS - Border Beam (Motiq, brand-recoloured) + testimonials-3
   Animated conic-gradient border ring on each card. Gold + clay comets.
   ============================================================= */
.reviews {
  background: var(--black);
  padding: clamp(64px, 9vw, 120px) 0 clamp(80px, 11vw, 150px);
}
.reviews-head { max-width: 620px; margin: 0 auto clamp(48px, 6vw, 84px); text-align: center; }
.reviews-eyebrow {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.reviews-heading {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--white);
  margin-top: 14px;
}
.reviews-heading em { font-style: italic; color: var(--gold); }
.reviews-sub {
  margin-top: 16px;
  color: rgba(244, 239, 231, .55);
  font-size: 15px;
  line-height: 1.7;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.5vw, 22px);
  max-width: 1240px;
  margin: 0 auto;
}
/* Card = border-beam panel */
.review-card {
  position: relative;
  isolation: isolate;
  border-radius: 16px;
  border: 1px solid rgba(244, 239, 231, .08);
  background: rgba(244, 239, 231, .02);
  padding: clamp(28px, 2.4vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  --beam-a: 0deg;
}
@media (min-width: 1001px) {
  .review-card { transform: translateY(calc(1.4rem * var(--t-index))); }
}
.beam-ring, .beam-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(from var(--beam-a),
      transparent 0deg,
      color-mix(in srgb, #C8A97C 4%, transparent) 18deg,
      color-mix(in srgb, #C8A97C 60%, transparent) 46deg,
      #E4CFA0 56deg,
      color-mix(in srgb, #E4CFA0 22%, #fff) 60deg,
      transparent 63deg,
      transparent 198deg,
      color-mix(in srgb, #9C6A4E 4%, transparent) 216deg,
      color-mix(in srgb, #9C6A4E 55%, transparent) 244deg,
      #C88A66 254deg,
      color-mix(in srgb, #C88A66 26%, #fff) 258deg,
      transparent 261deg,
      transparent 360deg);
}
.beam-ring {
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.beam-glow { filter: blur(14px); opacity: .28; z-index: -1; }
.review-quote { display: flex; gap: 14px; }
.review-quote-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold); opacity: .85; }
.review-quote p { font-size: 15px; line-height: 1.7; color: rgba(244, 239, 231, .78); }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(200, 169, 124, .12);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 19px;
  box-shadow: 0 0 0 2px rgba(244, 239, 231, .08);
}
.review-meta { display: flex; flex-direction: column; gap: 2px; }
.review-name { font-style: normal; font-size: 14px; color: var(--white); }
.review-role { font-size: 12px; color: rgba(244, 239, 231, .45); }
@media (max-width: 1000px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; max-width: 640px; }
  .review-card { transform: none; }
}
@media (max-width: 560px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  .beam-glow { opacity: .2; }
}

/* =============================================================
   BORDER BEAM on the application cards — separate the connected
   grid into individual rounded boxes so each ring is clean.
   ============================================================= */
.apps-grid {
  gap: clamp(12px, 1.4vw, 18px);
  background: transparent;
  border: none;
}
.app-card {
  position: relative;
  isolation: isolate;
  --beam-a: 0deg;
  border: 1px solid rgba(244, 239, 231, .08);
  border-radius: 14px;
}
.app-card .beam-glow { opacity: .2; }   /* a touch subtler across the 8 cards */

/* =============================================================
   ACCESSIBILITY
   ============================================================= */
/* Screen-reader-only (visually hidden, still announced + crawlable) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Contrast — lift readable muted text toward WCAG AA (>= 4.5:1 on the dark bg).
   Decorative index numbers (.section-num, .step-num, counters) stay faint. */
.hero-location { color: rgba(244, 239, 231, .62); }
.hero-scroll { color: rgba(244, 239, 231, .6); }
.app-desc { color: rgba(244, 239, 231, .62); }
.know-desc { color: rgba(244, 239, 231, .62); }
.review-role { color: rgba(244, 239, 231, .62); }
.footer-copy { color: rgba(244, 239, 231, .55); }
