/* ==========================================================================
   Carver Living — depth, motion & multipage additions (loads after styles.css)
   ========================================================================== */

/* ---------- Atmosphere ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 400; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, -2%); } 100% { transform: translate(0, 0); }
}
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.ambient i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .22;
  background: radial-gradient(circle, rgba(201, 163, 106, .7), rgba(201, 163, 106, 0) 60%);
  animation: drift 26s ease-in-out infinite alternate;
}
.ambient i:nth-child(2) { left: 55%; top: 40%; width: 48vmax; height: 48vmax; opacity: .12; background: radial-gradient(circle, rgba(143, 176, 255, .7), transparent 60%); animation-duration: 34s; animation-delay: -12s; }
.ambient i:nth-child(3) { left: -20%; top: 60%; opacity: .16; animation-duration: 40s; animation-delay: -20s; }
.ambient i:first-child { left: 40%; top: -30%; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-18vw, 14vh) scale(1.25); } }
main, .site-header, footer { position: relative; z-index: 1; }
.section--light { box-shadow: 0 -1px 0 rgba(0, 0, 0, .04); }

/* Ghost words */
.ghost {
  position: absolute; left: 50%; top: 50%; z-index: 0; pointer-events: none; white-space: nowrap; line-height: 1;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(160px, 28vw, 420px);
  color: transparent; -webkit-text-stroke: 1px rgba(243, 238, 230, .08); letter-spacing: -.02em;
  transform: translate(-50%, -50%) translateX(var(--gx, 0));
}
.section--light .ghost { -webkit-text-stroke-color: rgba(23, 25, 28, .07); }
.ghost--hero { top: 62%; -webkit-text-stroke-color: rgba(243, 238, 230, .1); }

/* Page transition veil */
.page-veil { position: fixed; inset: 0; z-index: 998; background: var(--ink); pointer-events: none; transform: translateY(101%); transition: transform .7s var(--ease-in-out); }
.page-veil::after { content: ''; position: absolute; left: 0; right: 0; top: -60px; height: 60px; background: var(--ink); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.is-leaving .page-veil { transform: translateY(0); }
.is-leaving main, .is-leaving .site-header { opacity: .6; transition: opacity .6s; }

/* Split headings */
.js [data-reveal="split"] { opacity: 1; transform: none; }
.sw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.sw > i { display: inline-block; font-style: inherit; transform: translateY(110%) rotate(3deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--w, 0) * 45ms); }
.is-in .sw > i { transform: none; }
.ch { display: inline-block; transform: translateY(115%) rotate(6deg); transform-origin: left bottom; transition: transform 1.2s var(--ease); transition-delay: calc(var(--c, 0) * 22ms + var(--l, 0) * 140ms); }
.is-loaded .ch { transform: none; }
.js .hero__title .line__inner { transform: none; transition: none; }

/* ---------- Hero upgrades ---------- */
.hero { --hp: 0; }
.hero__media { transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(calc(1 + var(--hp) * .18)); transform-origin: 50% 40%; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img--day { filter: brightness(1.02) saturate(.9); opacity: calc(1 - var(--hp) * 1.6); transition: opacity .2s linear; }
.hero__img--dusk { filter: brightness(.62) saturate(1.05) sepia(.18) contrast(1.05); }
.hero__windows { position: absolute; inset: 0; pointer-events: none; }
.hero__windows i {
  position: absolute; left: var(--x); top: var(--y); width: 12vw; height: 12vw; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 190, 110, .55), rgba(255, 170, 80, 0) 60%);
  transform: translate(-50%, -50%); opacity: calc(var(--hp) * 1.4); animation: breathe 5s ease-in-out infinite;
}
.hero__glow { opacity: calc(.4 + var(--hp)); }
.hero__content { transform: translateY(calc(var(--hp) * -90px)); opacity: calc(1 - var(--hp) * 1.1); will-change: transform, opacity; }
.hero__cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hcard {
  position: absolute; left: var(--x); top: var(--y); min-width: 190px; padding: 14px 18px 14px 20px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 23, 28, .72), rgba(20, 23, 28, .4)); border: 1px solid rgba(243, 238, 230, .14);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  display: grid; gap: 6px; opacity: 0; transform: translateY(20px) scale(.96);
  transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(1.3s + var(--d, 0s));
}
.is-loaded .hcard { opacity: 1; transform: none; animation: float 7s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * 2); }
.hcard::before { content: ''; position: absolute; left: -28px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 163, 106, .6); animation: ping 2.4s infinite; animation-delay: var(--d, 0s); }
.hcard::after { content: ''; position: absolute; left: -22px; top: 50%; width: 22px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(201, 163, 106, .2)); }
.hcard__k { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(243, 238, 230, .55); }
.hcard b { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; font-variant-numeric: tabular-nums; }
.hcard b svg { width: 18px; height: 18px; color: var(--gold-2); }
.hcard__bar { display: block; height: 2px; background: rgba(243, 238, 230, .12); border-radius: 2px; overflow: hidden; }
.hcard__bar s { display: block; height: 100%; width: var(--v, 0%); background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 1.2s var(--ease); }
.eq--sm { height: 14px; gap: 2px; }
.eq--sm i { width: 2px; }
.hero__status { opacity: calc(1 - var(--hp) * 1.5); }

/* Page hero */
.phero { min-height: 78vh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 60px) 0 80px; overflow: hidden; background: var(--ink); color: var(--text-light); --hp: 0; }
.phero__media { position: absolute; inset: -6%; transform: scale(calc(1 + var(--hp) * .15)) translateY(calc(var(--hp) * 60px)); }
.phero__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) sepia(.2) saturate(.95); animation: kenburns 30s var(--ease-in-out) infinite alternate; }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(11, 13, 16, .55) 45%, rgba(11, 13, 16, .25) 100%); }
.phero__inner { position: relative; z-index: 1; max-width: 1000px; transform: translateY(calc(var(--hp) * -60px)); opacity: calc(1 - var(--hp) * 1.2); }
.phero__title { font-size: clamp(44px, 7vw, 108px); font-weight: 300; line-height: 1; letter-spacing: -.035em; margin-bottom: 30px; }
.phero__title .serif-italic { color: var(--gold-2); font-size: 1.05em; }
.phero__lead { max-width: 600px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(243, 238, 230, .8); }
.phero__index { position: absolute; right: var(--gutter); bottom: 80px; z-index: 1; display: grid; justify-items: end; gap: 12px; font-size: 13px; letter-spacing: .3em; color: var(--gold); }
.phero__index i { width: 1px; height: 70px; background: linear-gradient(180deg, var(--gold), transparent); }

/* ---------- Stats ---------- */
.stats { padding: 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: linear-gradient(90deg, #0b0d10, #141311 50%, #0b0d10); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 32px; border-left: 1px solid var(--line-light); display: flex; align-items: baseline; gap: 18px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-size: clamp(56px, 6vw, 96px); font-weight: 200; letter-spacing: -.05em; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.stat > span { font-size: 14px; line-height: 1.45; color: var(--muted-light); }
.stat b span { font-size: inherit; color: inherit; }
.stat > span br { display: block; }

/* ---------- Outcomes list ---------- */
.outcomes .container { position: relative; z-index: 1; }
.olist { border-top: 1px solid var(--line-light); }
.oli {
  position: relative; display: grid; grid-template-columns: 80px 1.2fr 1.6fr 44px; align-items: center; gap: 24px;
  padding: 30px 12px; border-bottom: 1px solid var(--line-light); cursor: default; isolation: isolate;
  transition: padding .5s var(--ease), color .4s;
}
.oli::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(201, 163, 106, .14), rgba(201, 163, 106, .02)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.oli:hover::before, .oli.is-active::before { transform: scaleX(1); }
.oli:hover, .oli.is-active { padding-left: 28px; }
.oli__n { font-size: 12px; letter-spacing: .24em; color: var(--gold); }
.oli h3 { font-size: clamp(26px, 2.8vw, 44px); font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.oli p { color: var(--muted-light); font-size: 17px; max-width: 420px; }
.oli__icon { width: 32px; height: 32px; color: rgba(243, 238, 230, .5); transition: color .4s, transform .6s var(--ease); justify-self: end; }
.oli:hover .oli__icon { color: var(--gold-2); transform: rotate(-12deg) scale(1.15); }
.olist__img {
  position: fixed; left: 0; top: 0; z-index: 50; width: 300px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(var(--rot, 0deg)); transition: opacity .35s, transform .5s var(--ease);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); border: 1px solid rgba(243, 238, 230, .15);
}
.olist__img.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--rot, 0deg)); }
.olist__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.olist__img img.is-show { opacity: 1; }

/* ---------- Carver One teaser ---------- */
.teaser { padding: clamp(100px, 12vw, 170px) 0; overflow: hidden; }
.teaser__bg { position: absolute; inset: 0; background: radial-gradient(45% 55% at 75% 50%, rgba(201, 163, 106, .18), transparent 70%); }
.teaser__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; position: relative; }
.teaser__copy .h2 { margin-bottom: 24px; }
.teaser__copy .body-lg { margin-bottom: 36px; }
.teaser__device { position: relative; transform-style: preserve-3d; }
.device {
  position: relative; z-index: 1; border-radius: 22px; padding: 26px; background: linear-gradient(160deg, #1c2025, #0e1013);
  border: 1px solid rgba(243, 238, 230, .14); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: float 8s ease-in-out infinite;
}
.device::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .06) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 7s ease-in-out infinite; pointer-events: none; }
.device__top { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 20px; }
.device__top span:last-child { font-size: 13px; letter-spacing: .14em; color: var(--muted-light); }
.device__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.device__tile { display: grid; justify-items: center; gap: 8px; padding: 16px 6px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .05); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); transition: all .6s var(--ease); }
.device__tile svg { width: 22px; height: 22px; }
.device__tile.is-on { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 0 10px 30px -10px rgba(201, 163, 106, .8); }
.device__scene { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04); display: flex; align-items: center; justify-content: space-between; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.device__scene i { width: 40px; height: 22px; border-radius: 11px; background: var(--gold); position: relative; }
.device__scene i::after { content: ''; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.device__orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .6; pointer-events: none; }
.device__orb--1 { width: 220px; height: 220px; right: -60px; top: -60px; background: rgba(201, 163, 106, .5); animation: float 9s ease-in-out infinite reverse; }
.device__orb--2 { width: 160px; height: 160px; left: -40px; bottom: -40px; background: rgba(143, 176, 255, .35); animation: float 11s ease-in-out infinite; }

/* ---------- Spaces accordion ---------- */
.acc { display: flex; gap: 10px; height: clamp(520px, 64vh, 720px); }
.acc__item {
  position: relative; flex: 1; min-width: 0; border-radius: 8px; overflow: hidden; isolation: isolate; display: block;
  transition: flex 1.1s var(--ease-in-out);
}
.acc__item.is-open { flex: 3.4; }
.acc__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) sepia(.15); transition: transform 1.6s var(--ease), filter 1s; transform: scale(1.12); }
.acc__item.is-open img { transform: scale(1); filter: brightness(.72) sepia(.1); }
.acc__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 13, .9), rgba(8, 10, 13, .1) 60%); }
.acc__v { position: absolute; left: 50%; bottom: 36px; z-index: 1; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; transition: opacity .4s; }
.acc__v span { color: var(--gold); font-size: 11px; }
.acc__item.is-open .acc__v { opacity: 0; }
.acc__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 36px; opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) .3s, transform .8s var(--ease) .3s; }
.acc__item.is-open .acc__meta { opacity: 1; transform: none; }
.acc__meta h3 { font-size: clamp(26px, 2.8vw, 42px); font-weight: 300; letter-spacing: -.01em; margin: 6px 0 6px; }
.acc__meta p { color: var(--muted-light); max-width: 440px; }
.acc__item.is-open .space__cta { opacity: 1; transform: none; }

/* Space detail */
.sdetail { padding: clamp(90px, 10vw, 150px) 0; }
.sdetail__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sd { padding: 40px 34px; background: var(--paper); border-radius: 8px; border: 1px solid var(--line-dark); transition: transform .6s var(--ease), box-shadow .6s; }
.sd:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(23, 25, 28, .35); }
.sd__n { font-size: 12px; letter-spacing: .24em; color: var(--gold); }
.sd h3 { font-size: 28px; font-weight: 300; letter-spacing: -.01em; margin: 8px 0 12px; }
.sd p { color: var(--muted-dark); margin-bottom: 22px; }
.sd ul { display: grid; gap: 10px; font-size: 15px; }
.sd li { padding-left: 20px; position: relative; }
.sd li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--gold); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(120px, 16vw, 220px) 0; overflow: hidden; }
.cta__media { position: absolute; inset: -20% 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.3) sepia(.3); transform: translateY(var(--py, 0)); }
.cta::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, rgba(11, 13, 16, .2), rgba(11, 13, 16, .85)); }
.cta__inner { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.cta__inner .h2 { margin-bottom: 20px; }
.cta__inner .eyebrow { justify-content: center; }
.cta__inner .eyebrow::before { display: none; }
.cta__actions { margin-top: 40px; }

/* ---------- Demo hotspots ---------- */
.hotspot { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.hotspot i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 0 rgba(230, 199, 147, .6); animation: ping 2.6s infinite; animation-delay: var(--d, 0s); }
.hotspot span { padding: 8px 12px; border-radius: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: rgba(11, 13, 16, .55); border: 1px solid var(--line-light); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }
.hotspot span b { font-weight: 500; color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* ---------- Moments skew on scroll velocity ---------- */
.day__track { transform: translate3d(var(--tx, 0), 0, 0) skewX(var(--skew, 0deg)); transition: none; }

/* ---------- Footer marquee + letters ---------- */
.footer__marquee { overflow: hidden; padding: 22px 0; border-bottom: 1px solid var(--line-light); margin-bottom: 90px; }
.footer__track { display: flex; gap: 40px; align-items: center; width: max-content; animation: marquee 40s linear infinite; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-light); }
.footer__track i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.footer { padding-top: 0; }
.wordmark--lg .lt { display: inline-block; transition: transform .5s var(--ease), color .5s; }
.wordmark--lg:hover .lt { color: var(--gold-2); transform: translateY(calc(var(--k) * -1px)); }

/* Process numbers as big outlines */
.step__n { font-size: 44px; font-weight: 200; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--gold); padding-top: 0; line-height: 1; }
.step.is-active .step__n { color: var(--gold); }

/* Tier cards: gradient hairline that follows the cursor glow */
.tier::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(201, 163, 106, .2), transparent 60%); }
.tier:hover::after { opacity: 1; }

/* Contact page intro adjustments */
body[data-page="contact"] .contact { padding-top: 40px; }

/* Nav active state */
.nav__list a[aria-current="page"] { opacity: 1; }
.nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding: 36px 28px; }
  .olist__img { display: none; }
  .oli { grid-template-columns: 56px 1fr 40px; }
  .oli p { grid-column: 2; }
}
@media (max-width: 1024px) {
  .teaser__grid { grid-template-columns: 1fr; }
  .sdetail__grid { grid-template-columns: 1fr; }
  .hcard { min-width: 150px; padding: 10px 14px 10px 16px; }
  .hcard b { font-size: 13px; }
}
@media (max-width: 720px) {
  .ghost { font-size: 160px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 16px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat b { font-size: 52px; }
  .hero__cards .hcard { display: none; }
  .hero__cards .hcard[data-hc="light"] { display: grid; left: auto; right: var(--gutter); top: 18%; }
  .oli { grid-template-columns: 40px 1fr 32px; gap: 10px 14px; padding: 22px 0; }
  .oli:hover { padding-left: 0; }
  .oli h3 { font-size: 26px; }
  .oli p { font-size: 15px; }
  .acc { flex-direction: column; height: auto; }
  .acc__item { flex: none; height: 110px; transition: height 1s var(--ease-in-out); }
  .acc__item.is-open { flex: none; height: 440px; }
  .acc__v { writing-mode: horizontal-tb; transform: none; left: 24px; bottom: auto; top: 50%; translate: 0 -50%; }
  .acc__meta { padding: 24px; }
  .phero { min-height: 70vh; padding-bottom: 60px; }
  .phero__index { display: none; }
  .device__grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .device__tile { padding: 12px 4px; font-size: 9px; }
  .step__n { font-size: 32px; }
  .hotspot span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .ambient { display: none; }
  .sw > i, .ch, .hcard { transform: none !important; opacity: 1 !important; }
  .hero__content, .phero__inner, .hero__media, .phero__media { transform: none !important; opacity: 1 !important; }
}
.net__dev.is-fire .dot { r: 8; filter: drop-shadow(0 0 8px var(--c)); }
.page-veil { visibility: hidden; transition: transform .7s var(--ease-in-out), visibility 0s .7s; }
.is-leaving .page-veil { visibility: visible; transition: transform .7s var(--ease-in-out); }

/* ==========================================================================
   Homepage "alive" pass
   ========================================================================== */

/* Loader */
.preloader__count { position: absolute; left: var(--gutter); bottom: 40px; display: grid; gap: 6px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-light); }
.preloader__count span { font-size: clamp(48px, 8vw, 120px); font-weight: 200; letter-spacing: -.04em; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.preloader__count em { font-style: normal; font-size: 11px; }
.preloader__sweep { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(201, 163, 106, .12) 50%, transparent 60%); background-size: 300% 100%; animation: sheen 1.6s ease-in-out infinite; }
.preloader { transition: clip-path 1.2s var(--ease-in-out), visibility 0s 1.2s; }
.is-loaded .preloader { clip-path: inset(0 0 100% 0); }

/* Cursor spotlight */
.spot { position: fixed; left: 0; top: 0; width: 70vmax; height: 70vmax; border-radius: 50%; pointer-events: none; z-index: 2; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(circle, rgba(201, 163, 106, .16), rgba(201, 163, 106, 0) 55%); transform: translate(-50%, -50%); transition: opacity .8s; will-change: transform; }
.has-cursor .spot { opacity: 1; }

/* Blur-in reveals */
/* Blur only while hidden; once revealed the filter is removed entirely so text stays crisp (any active filter rasterises the element). */
.js [data-reveal]:not([data-reveal="clip"]):not([data-reveal="split"]):not(.is-in) { filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter .9s var(--ease); }
.js [data-reveal].is-in { filter: none; transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter .9s var(--ease); }
.js [data-reveal].is-in.is-settled { transition: none; }

/* ---------- Pinned hero ---------- */
.hero--pin { min-height: 0; height: 320vh; padding: 0; display: block; overflow: visible; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hero--pin .hero__content { position: relative; display: grid; width: 100%; transform: none; opacity: 1; }
.hero--pin .chapter { grid-area: 1 / 1; opacity: var(--o, 0); transform: translateY(var(--ty, 40px)); pointer-events: none; will-change: opacity, transform; }
.hero--pin .chapter.is-on { pointer-events: auto; }
.hero--pin .chapter .hero__title { margin-bottom: 30px; }
.hero--pin .hero__media { transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(calc(1 + var(--hp) * .22)); }
.hero--pin .hero__img--day { opacity: var(--day, 1); transition: none; }
.hero--pin .hero__windows i { opacity: var(--win, 0); transition: opacity .6s var(--ease); transition-delay: calc(var(--k) * .12s); }
.hero__night { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 22, .85), rgba(4, 6, 12, .6)); mix-blend-mode: multiply; opacity: var(--night, 0); }
.hero--pin .hero__net { opacity: calc(.2 + var(--net, 0) * .7); }
.hero--pin .hero__glow { opacity: calc(.3 + var(--win, 0) * .9); }
.hero--pin .hcard { opacity: 0; transform: translateY(24px) scale(.95); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); animation: none; }
.hero--pin.is-evening .hcard { opacity: 1; transform: none; animation: float 7s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * 2); }
.hero--pin .hero__status { opacity: 1; }
.hero--pin .scroll-cue { opacity: calc(1 - var(--hp) * 4); }
.hero__steps { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 22px; }
.hero__steps li { display: flex; align-items: center; gap: 12px; justify-content: flex-end; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 238, 230, .4); transition: color .5s; }
.hero__steps li i { width: 28px; height: 1px; background: rgba(243, 238, 230, .25); position: relative; overflow: hidden; }
.hero__steps li i::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.hero__steps li.is-on { color: var(--gold-2); }
.hero__steps li.is-on i::after { transform: scaleX(1); }
.hero--pin .ch { transform: translateY(115%) rotate(6deg); }
.is-loaded .hero--pin .chapter.is-on .ch { transform: none; }
.hero--pin .chapter:not(.is-on) .ch { transition-delay: 0s; transition-duration: .6s; }

/* ---------- Live feed ---------- */
.feed { border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: #0d0f12; overflow: hidden; }
.feed__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; height: 64px; }
.feed__label { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); white-space: nowrap; }
.feed__list { display: flex; gap: 40px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.feed__list li { flex: none; display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted-light); white-space: nowrap; animation: feedIn .7s var(--ease) both; }
.feed__list li time { font-variant-numeric: tabular-nums; color: var(--text-light); font-size: 12px; letter-spacing: .1em; }
.feed__list li b { font-weight: 400; color: var(--text-light); }
.feed__list li i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--gold)); box-shadow: 0 0 8px var(--c, var(--gold)); }
.feed__list li.is-out { animation: feedOut .5s var(--ease) both; }
@keyframes feedIn { from { opacity: 0; transform: translateX(-24px); max-width: 0; } to { opacity: 1; transform: none; max-width: 600px; } }
@keyframes feedOut { to { opacity: 0; max-width: 0; margin-right: -40px; } }
.feed__hint { font-size: 12px; color: rgba(243, 238, 230, .4); white-space: nowrap; }

/* ---------- Story (pinned room) ---------- */
.story { height: 420vh; --b: .95; --s: 1.05; --sep: .12; --warm: .35; --night: 0; --cinema: 0; --shade: 0; --lamps: .15; }
.story__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story__room { position: absolute; inset: 0; min-height: 0; }
.story__room .demo__photo { animation: slowPan 40s ease-in-out infinite alternate; }
.story__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 10, 13, .92) 0%, rgba(8, 10, 13, .55) 42%, rgba(8, 10, 13, .05) 70%); pointer-events: none; }
.story__ui { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.story__chapters { display: grid; max-width: 560px; }
.schap { grid-area: 1 / 1; opacity: var(--o, 0); transform: translateY(var(--ty, 40px)); }
.schap__n { display: block; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.schap__t { font-size: clamp(48px, 7vw, 110px); font-weight: 300; line-height: .95; letter-spacing: -.035em; margin-bottom: 22px; }
.schap__t em { color: var(--gold-2); font-size: 1.05em; }
.schap__p { font-size: clamp(16px, 1.3vw, 19px); color: rgba(243, 238, 230, .8); max-width: 440px; }
.story__dots { display: flex; gap: 10px; }
.story__dots li { width: 34px; height: 2px; background: rgba(243, 238, 230, .2); position: relative; overflow: hidden; }
.story__dots li::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--f, 0)); transform-origin: left; }
.story__dots li.is-on::after { transform: scaleX(1); }
.story__cta { align-self: flex-start; }
.story__time { position: absolute; right: 36px; top: 36px; display: grid; justify-items: end; gap: 2px; padding: 14px 18px; border-radius: 10px; background: rgba(11, 13, 16, .5); border: 1px solid var(--line-light); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.story__time span { font-size: 34px; font-weight: 200; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold-2); }
.story__time em { font-style: normal; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-light); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type band ---------- */
.band { padding: clamp(60px, 8vw, 120px) 0; overflow: hidden; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: linear-gradient(180deg, #0b0d10, #121110 50%, #0b0d10); }
.band__line { white-space: nowrap; font-size: clamp(56px, 9vw, 150px); font-weight: 200; letter-spacing: -.03em; line-height: 1.05; transform: translateX(var(--bx, 0)); will-change: transform; }
.band__line span { display: inline-block; padding-left: 4vw; }
.band__line--fill { color: var(--text-light); }
.band__line--outline { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: transparent; -webkit-text-stroke: 1px rgba(230, 199, 147, .8); }

/* ---------- Image strip ---------- */
.strip { padding: clamp(60px, 7vw, 100px) 0; overflow: hidden; }
.strip__track { display: flex; gap: 22px; width: max-content; animation: marquee 60s linear infinite; align-items: center; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip figure { position: relative; flex: none; width: clamp(220px, 22vw, 340px); aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; margin: 0; transform: scale(var(--h, 1)) translateY(var(--sy, 0)); transition: transform .8s var(--ease); }
.strip figure img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) sepia(.15); transition: transform 1.4s var(--ease), filter .6s; transform: scale(1.1); }
.strip figure:hover img { transform: scale(1); filter: brightness(.95) sepia(0); }
.strip figcaption { position: absolute; left: 18px; bottom: 16px; font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--text-light); text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }

@media (max-width: 1024px) {
  .hero__steps { display: none; }
  .feed__hint { display: none; }
  .feed__inner { grid-template-columns: auto 1fr; }
  .story__shade { background: linear-gradient(0deg, rgba(8, 10, 13, .95) 0%, rgba(8, 10, 13, .6) 55%, rgba(8, 10, 13, .2) 100%); }
  .story__ui { justify-content: flex-end; padding-bottom: 60px; }
  .story__time { top: 90px; right: var(--gutter); }
}
@media (max-width: 720px) {
  .hero--pin { height: 260vh; }
  .hero--pin .chapter .hero__title { font-size: clamp(38px, 11vw, 60px); }
  .feed__label span:last-child { display: none; }
  .feed__label::after { content: 'Live'; }
  .preloader__count span { font-size: 56px; }
  .schap__t { font-size: 48px; }
  .story { height: 340vh; }
  .story__time span { font-size: 24px; }
  .band__line { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--pin { height: auto; }
  .hero--pin .chapter { display: none; }
  .hero--pin .chapter[data-chapter="0"] { display: block; opacity: 1; transform: none; }
  .story { height: auto; }
  .schap { position: static; opacity: 1; transform: none; grid-area: auto; margin-bottom: 40px; }
  .js [data-reveal] { filter: none !important; }
  .spot { display: none; }
}

/* ==========================================================================
   Mobile pass — lighter, shorter, readable
   ========================================================================== */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  /* Drop GPU-heavy atmosphere on phones */
  .grain, .ambient, .spot, .hero__net, .cursor { display: none !important; }
  .hero__img, .phero__media img, .demo__photo, .story__room .demo__photo, .manifesto__media img { animation: none !important; }
  .js [data-reveal]:not([data-reveal="clip"]):not([data-reveal="split"]):not(.is-in) { filter: none; transform: translateY(18px); }
  .hcard, .hotspot span, .demo__caption, .story__time, .hero__status, .compare__label, .net__tip { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 13, 16, .82); }
  .device::before { display: none; }
  .ghost { display: none; }
}

@media (max-width: 820px) {
  /* Rhythm */
  .outcomes, .connected, .teaser, .spaces, .experience, .balance, .one, .process, .contact, .with-you, .approach, .sdetail { padding-top: 72px; padding-bottom: 72px; }
  .section-head, .section-head--split { margin-bottom: 36px; gap: 18px; }
  .h2 { font-size: clamp(32px, 9vw, 44px); }
  .cta { padding: 96px 0; }

  /* Pinned hero: shorter, tighter type */
  .hero--pin { height: 200vh; }
  .hero__sticky { align-items: flex-end; padding-bottom: 120px; }
  .hero--pin .chapter .hero__title { font-size: clamp(40px, 11.5vw, 56px); margin-bottom: 18px; }
  .hero--pin .chapter .eyebrow { font-size: 10px; letter-spacing: .22em; margin-bottom: 14px; }
  .hero--pin .hero__lead { font-size: 15px; margin-bottom: 0; }
  .hero--pin .chapter { --ty: 24px; }
  .hero__cards .hcard[data-hc="light"] { top: 16%; right: var(--gutter); left: auto; min-width: 0; padding: 10px 12px; }
  .hcard::before, .hcard::after { display: none; }
  .hero__status { bottom: 56px; left: var(--gutter); right: auto; padding: 9px 14px; font-size: 10px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { padding: 14px 22px; font-size: 11px; }

  /* Live feed */
  .feed__inner { height: auto; padding: 12px 0; gap: 14px; }
  .feed__list { gap: 24px; }
  .feed__list li { font-size: 12.5px; gap: 8px; }

  /* Stats */
  .stat b { font-size: 44px; }

  /* Outcomes: thumbnails inline on touch */
  .oli { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; gap: 4px 14px; padding: 18px 0; align-items: start; }
  .oli::before { display: none; }
  .oli__n { grid-row: 1 / 3; width: 56px; aspect-ratio: 1; border-radius: 6px; background: var(--thumb) center / cover; color: transparent; font-size: 0; filter: brightness(.85) sepia(.15); }
  .oli h3 { font-size: 24px; }
  .oli p { font-size: 14.5px; }
  .oli__icon { display: none; }

  /* Story: photo on top, text panel below */
  .story { height: 240vh; }
  .story__room { inset: 0 0 42% 0; }
  .story__shade { background: linear-gradient(180deg, rgba(8, 10, 13, .35) 0%, rgba(8, 10, 13, 0) 20%, rgba(8, 10, 13, 0) 48%, var(--ink) 60%); }
  .story__ui { justify-content: flex-end; padding-bottom: 40px; gap: 18px; }
  .story__ui > .eyebrow { margin-bottom: 0; font-size: 10px; }
  .story__chapters { min-height: 200px; align-items: end; }
  .schap { --ty: 18px; }
  .schap__n { margin-bottom: 8px; }
  .schap__t { font-size: clamp(36px, 11vw, 52px); margin-bottom: 10px; }
  .schap__p { font-size: 15px; }
  .story__room .hotspot { display: none; }
  .story__time { top: 84px; right: var(--gutter); padding: 10px 12px; }
  .story__time span { font-size: 22px; }
  .story__cta { padding: 12px 20px; }

  /* Type band: pure marquee, no scroll-linked offset */
  .band { padding: 40px 0; }
  .band__line { transform: none !important; animation: marquee 22s linear infinite; width: max-content; font-size: 40px; }
  .band__line--outline { animation-direction: reverse; animation-duration: 26s; }
  .band__line span { padding-left: 0; padding-right: 24px; }

  /* Floor plan: scrollable at a readable size */
  .net__stage { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .net__stage::after { content: 'Swipe to explore →'; position: sticky; left: 0; display: block; padding: 8px var(--gutter); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-light); }
  .net__svg { width: 720px; max-width: none; }
  .net__tip { display: none !important; }
  .net__count b { font-size: 56px; }
  .net__info { padding: 20px 0 0; }
  .net__legend { padding-top: 18px; }

  /* Image strip */
  .strip { padding: 48px 0; }
  .strip__track { gap: 12px; animation-duration: 36s; }
  .strip figure { width: 150px; transform: none; }
  .strip figcaption { font-size: 18px; left: 12px; bottom: 10px; }

  /* Teaser device */
  .device { padding: 18px; border-radius: 16px; }
  .device__tile { padding: 12px 4px; }
  .teaser__device { transform: none !important; }

  /* Accordion */
  .acc__item { height: 96px; }
  .acc__item.is-open { height: 380px; }
  .acc__meta p { font-size: 14.5px; }

  /* Manifesto */
  .manifesto { min-height: 70vh; padding: 100px 0; }

  /* Footer */
  .footer__marquee { margin-bottom: 56px; }
  .wordmark--lg { font-size: clamp(36px, 11vw, 56px); }
}
