/* ============================================================
   ANIWEAVE — Sections (hero, marquee, sticky, carousel, etc.)
   ============================================================ */

/* ============ HERO — common shell ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(72px + var(--s8));
  padding-bottom: var(--s9);
  overflow: hidden;
  isolation: isolate;
}
.hero .hero-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s4); margin-bottom: var(--s6);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--neutral-500);
}
.hero .hero-meta .meta-l { display:flex; gap: var(--s5); align-items: center; }
.hero .hero-meta .meta-r { display:flex; gap: var(--s5); align-items: center; }
.hero .hero-meta .dot { width:6px; height:6px; border-radius:50%; background:var(--accent); }

/* HERO V1 — Split editorial */
.hero-v1 .grid {
  display: grid; grid-template-columns: 1fr 0.85fr;
  gap: var(--s7); align-items: stretch;
}
.hero-v1 .copy { display:flex; flex-direction:column; justify-content:space-between; gap: var(--s6); }
.hero-v1 .display { max-width: 14ch; }
.hero-v1 .display .em { font-style: italic; font-weight: 300; color: var(--neutral-600); }
.hero-v1 .display .acc { color: var(--accent); }
.hero-v1 .actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items:center; }
.hero-v1 .pull {
  display:grid; grid-template-columns: 1fr auto; gap: var(--s5);
  padding-top: var(--s5); border-top: 1px solid var(--border-default);
}
.hero-v1 .pull .lede { max-width: 36ch; }
.hero-v1 .pull .stats { display:grid; gap: var(--s2); text-align:right; }
.hero-v1 .pull .stats .n {
  font-family: 'Roboto Condensed', sans-serif; font-weight: 900;
  font-size: 32px; color: var(--neutral-800); line-height:1; font-variant-numeric: tabular-nums;
}
.hero-v1 .pull .stats .l {
  font-family: 'Roboto Condensed', sans-serif; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--neutral-500);
}

.hero-v1 .scene {
  position: relative;
  perspective: 1400px;
  min-height: 540px;
  border-radius: var(--r-xl);
}
.hero-v1 .scene .stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 600ms var(--ease-out-expo);
}
.hero-v1 .tile {
  position: absolute;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  background: var(--neutral-100);
  transform-style: preserve-3d;
}
.hero-v1 .tile-img { width: 100%; height: 100%; object-fit: cover; display:block; }
.hero-v1 .tile.t1 { left: 4%;  top: 6%;   width: 60%; height: 62%;   z-index: 3; }
.hero-v1 .tile.t2 { right: 0;  top: 28%;  width: 46%; height: 50%;   z-index: 4; }
.hero-v1 .tile.t3 { left: 18%; bottom: 0; width: 36%; height: 28%;   z-index: 5; }
.hero-v1 .tile .badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.92);
  font-family: 'Roboto Condensed', sans-serif; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--neutral-800);
  backdrop-filter: blur(8px);
}
.hero-v1 .tile .badge .pulse { width:6px; height:6px; border-radius:50%; background: var(--accent); }
.hero-v1 .scene .floater {
  position: absolute;
  font-family: 'Roboto Condensed', sans-serif;
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-2);
  z-index: 10;
}
.hero-v1 .scene .floater.fl-1 { right: 8%; top: 8%; }
.hero-v1 .scene .floater.fl-2 { left: -2%; bottom: 18%; }
.hero-v1 .scene .floater .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--neutral-500); }
.hero-v1 .scene .floater .v { font-size: 16px; font-weight: 700; color: var(--neutral-800); }

@media (max-width: 980px) {
  .hero-v1 .grid { grid-template-columns: 1fr; }
  .hero-v1 .scene { min-height: 420px; }
}

/* HERO V2 — Centered immersive (dark, mesh) */
.hero-v2 { background: var(--neutral-900); color: var(--white); }
.hero-v2 .mesh {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 40%),
      rgba(128,212,255,.28), rgba(128,212,255,0) 38%),
    radial-gradient(circle at calc(100% - var(--mx, 50%)) calc(80% - var(--my, 40%)),
      rgba(64,106,128,.30), rgba(64,106,128,0) 45%),
    linear-gradient(180deg, #041b26 0%, #07232f 60%, #041b26 100%);
}
.hero-v2 .grain {
  position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events:none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 .9  0 0 0 0 .95  0 0 0 0 1  0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.hero-v2 .ringframe {
  position: absolute; inset: 0; z-index: -1;
  display:flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-v2 .ringframe svg { width: min(120vh, 1200px); height: min(120vh, 1200px); opacity: 0.55; }
.hero-v2 .ringframe .ring { stroke: rgba(128,212,255,.18); fill: none; }
.hero-v2 .center {
  text-align: center;
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: var(--s5);
  padding-top: var(--s7);
}
.hero-v2 .center .eyebrow { color: rgba(166,225,255,.85); }
.hero-v2 .center .eyebrow .dot { background: var(--accent); }
.hero-v2 .display {
  color: var(--white);
  font-size: clamp(56px, 8.5vw, 148px);
}
.hero-v2 .display .em { font-style: italic; font-weight: 200; color: rgba(166,225,255,.85); }
.hero-v2 .lede { color: rgba(255,255,255,.72); max-width: 56ch; margin: 0 auto; font-weight: 300; }
.hero-v2 .actions { display: flex; gap: var(--s3); justify-content: center; margin-top: var(--s4); }
.hero-v2 .badge-strip {
  margin-top: var(--s6); display: flex; gap: var(--s5); justify-content: center; flex-wrap: wrap;
  font-family: 'Roboto Condensed', sans-serif; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.hero-v2 .badge-strip span::before { content:'◆ '; color: var(--accent); }

.hero-v2 .scroll-cue {
  position: absolute; left: 50%; bottom: var(--s5); transform: translateX(-50%);
  font-family: 'Roboto Condensed', sans-serif; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,.55);
  display: grid; gap: 8px; justify-items: center;
}
.hero-v2 .scroll-cue .bar {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), transparent);
  animation: drip 2.4s var(--ease-standard) infinite;
}
@keyframes drip { 0%{transform:scaleY(0); transform-origin:top;} 60%{transform:scaleY(1); transform-origin:top;} 61%{transform-origin:bottom;} 100%{transform:scaleY(0); transform-origin:bottom;} }

/* HERO V3 — Magazine cover */
.hero-v3 { background: var(--secondary-100); position: relative; }
.hero-v3 .masthead {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: var(--s5); align-items: end;
  padding-bottom: var(--s4);
  border-bottom: 2px solid var(--neutral-900);
  margin-bottom: var(--s7);
}
.hero-v3 .masthead .issue {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 900; font-size: 14px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--neutral-900);
}
.hero-v3 .masthead .barcode { display: flex; gap: 2px; align-items: flex-end; height: 22px; }
.hero-v3 .masthead .barcode i { display: block; width: 2px; background: var(--neutral-900); }
.hero-v3 .masthead .pub {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--neutral-700); text-align: right; line-height: 1.4;
}
.hero-v3 .cover {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s7);
  align-items: end;
}
.hero-v3 .cover .left { display: grid; gap: var(--s5); }
.hero-v3 .cover .display {
  font-size: clamp(64px, 10vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.hero-v3 .cover .display .em { font-style: italic; font-weight: 200; color: var(--neutral-700); }
.hero-v3 .cover .display .underline {
  background-image: linear-gradient(180deg, transparent 75%, var(--accent) 75%);
  background-size: 100% 100%; background-repeat: no-repeat;
  padding: 0 .1em;
}
.hero-v3 .cover .feature-list {
  display: grid; gap: var(--s2);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px; letter-spacing: 0.04em;
  border-top: 1px solid var(--neutral-900); padding-top: var(--s3);
}
.hero-v3 .cover .feature-list .row { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--s3); align-items: baseline; padding: 6px 0; border-bottom: 1px dashed rgba(20,41,51,.18); }
.hero-v3 .cover .feature-list .pg { font-weight: 700; color: var(--neutral-900); font-variant-numeric: tabular-nums; }
.hero-v3 .cover .feature-list .ti { color: var(--neutral-800); }
.hero-v3 .cover .feature-list .au { color: var(--neutral-500); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
.hero-v3 .cover .right { position: relative; min-height: 540px; }
.hero-v3 .cover .right .photo {
  position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--neutral-300);
}
.hero-v3 .cover .right .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-v3 .cover .right .pull {
  position: absolute; left: -8%; bottom: -6%;
  max-width: 320px;
  background: var(--neutral-900); color: var(--white);
  padding: var(--s4) var(--s5); border-radius: var(--r-md);
  box-shadow: var(--shadow-4);
  font-family: 'Roboto', sans-serif; font-size: 17px; line-height: 1.4;
}
.hero-v3 .cover .right .pull .q { color: var(--accent); font-size: 24px; line-height: 0; vertical-align: -6px; margin-right: 4px; }
.hero-v3 .cover .right .pull .att {
  display: block; margin-top: var(--s2);
  font-family: 'Roboto Condensed', sans-serif; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
@media (max-width: 980px) {
  .hero-v3 .cover { grid-template-columns: 1fr; }
  .hero-v3 .cover .right { min-height: 360px; }
}

/* ============ Buttons (aligned to design system) ============
   Sizes:  LG 48 / MD 40 / SM 32   Radius: 10 / 8 / 6
   Variants: primary (neutral-700), ghost (white + 1px inset border),
             light  (white on dark), line (transparent + white border)
   Type: Roboto 700, line-height 1.25, NO uppercase, NO letter-spacing.
*/
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; user-select: none; white-space: nowrap;
  font-family: 'Roboto', sans-serif;
  font-weight: 700; line-height: 1.25;
  height: 48px; padding: 0 24px;
  font-size: 16px; border-radius: 10px;
  gap: 8px;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.btn .arr { width: 20px; height: 20px; transition: transform var(--dur-fast) var(--ease-standard); }
.btn:hover .arr { transform: translateX(3px); }

.btn-md { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 8px; gap: 6px; }
.btn-md .arr { width: 16px; height: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 6px; gap: 4px; }
.btn-sm .arr { width: 14px; height: 14px; }

.btn-primary { background: var(--neutral-700); color: var(--white); }
.btn-primary:hover, .btn-primary:active { background: var(--neutral-900); }

.btn-ghost {
  background: var(--white); color: var(--neutral-700);
  box-shadow: inset 0 0 0 1px var(--neutral-200);
}
.btn-ghost:hover, .btn-ghost:active {
  background: var(--bg-tertiary);
  box-shadow: inset 0 0 0 1px var(--neutral-300);
}

/* On-dark counterparts */
.btn-light { background: var(--white); color: var(--neutral-700); }
.btn-light:hover, .btn-light:active { background: var(--bg-tertiary); color: var(--neutral-900); }

.btn-line {
  background: transparent; color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.btn-line:hover, .btn-line:active {
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}

/* ============ Marquee ============ */
.marquee-section {
  padding: var(--s7) 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
}
.marquee-section .label-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter) var(--s5);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--neutral-500);
}
.marquee {
  display: flex; gap: var(--s7);
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
@media (hover: none) {
  .marquee,
  .marquee.reverse {
    will-change: auto;
  }
}
.marquee.reverse { animation: marquee-rev 46s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee .item {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; font-size: clamp(28px, 3.4vw, 56px);
  letter-spacing: -0.01em; color: var(--neutral-800);
  white-space: nowrap;
}
.marquee .sep {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  align-self: center;
  flex: 0 0 auto;
}
.marquee .item.is-muted { color: var(--neutral-300); font-style: italic; font-weight: 400; }
.marquee-wordrow .word { font-size: clamp(18px, 2vw, 28px); font-weight: 500; color: var(--neutral-600); }

/* Logo marquee */
.marquee-logos .marquee { align-items: center; }
.marquee-logos .logo-item {
  display: inline-flex; align-items: center;
}
.marquee-logos .logo-item img {
  height: 36px; width: auto;
  display: block;
  object-fit: contain;
  filter: grayscale(1) opacity(.8);
  transition: filter .3s ease;
}
.marquee-logos .logo-item img:hover { filter: grayscale(0) opacity(1); }
.marquee-logos .sep {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary-100);
  flex: 0 0 auto;
  align-self: center;
}

/* ============ Sticky Pinning section ============ */
.pin-section { position: relative; background: var(--neutral-900); color: var(--white); }
.pin-section .pin-track { position: relative; height: 400vh; }
.pin-section .pin-stage {
  position: sticky; top: 0;
  height: 100vh;
  display: grid; grid-template-columns: 1fr 1.1fr;
  align-items: center; gap: var(--s7);
  padding: 0 var(--gutter); overflow: hidden;
}
.pin-section .pin-left { position: relative; max-width: 480px; }
.pin-section .pin-eyebrow {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s4);
}
.pin-section .pin-frames { position: relative; min-height: 320px; }
.pin-section .pin-frame {
  position: absolute; inset: 0; opacity: 0; transform: translateY(20px);
  transition: opacity var(--dur-medium) var(--ease-standard), transform var(--dur-medium) var(--ease-standard);
}
.pin-section .pin-frame.is-active { opacity: 1; transform: translateY(0); position: relative; }
.pin-section .pin-frame h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700; font-size: clamp(40px, 5vw, 80px);
  letter-spacing: -0.02em; line-height: 1.2; color: var(--white);
  margin-bottom: var(--s4);
}
.pin-section .pin-frame h2 em { color: var(--accent); font-style: italic; font-weight: 300; }
.pin-section .pin-frame p {
  color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.6; max-width: 44ch;
}
.pin-section .pin-progress { display: grid; gap: 10px; margin-top: var(--s5); }
.pin-section .pin-step {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 14px; align-items: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px; letter-spacing: 0.04em;
  color: rgba(255,255,255,.45);
  cursor: pointer; padding: 8px 0;
  transition: color var(--dur-fast) var(--ease-standard);
}
.pin-section .pin-step .n { font-variant-numeric: tabular-nums; opacity: .6; }
.pin-section .pin-step .bar { position: relative; height: 1px; background: rgba(255,255,255,.15); }
.pin-section .pin-step .bar::after {
  content: ''; position: absolute; inset: 0 100% 0 0;
  background: var(--accent);
  transition: inset var(--dur-medium) var(--ease-standard);
}
.pin-section .pin-step.is-active { color: var(--white); }
.pin-section .pin-step.is-active .n { opacity: 1; color: var(--accent); }
.pin-section .pin-step.is-active .bar::after { inset: 0 0 0 0; }

.pin-section .pin-right { position: relative; height: 70vh; max-height: 720px; }
.pin-section .pin-visual {
  position: absolute; inset: 0;
  border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(135deg, #0d2a36, #1a3d4d);
  border: 1px solid rgba(255,255,255,.08);
  opacity: 0; transform: scale(.98);
  transition: opacity var(--dur-medium) var(--ease-standard), transform var(--dur-slow) var(--ease-out-expo);
}
.pin-section .pin-visual.is-active { opacity: 1; transform: scale(1); }

.pv-pano { background: url('assets/sample-bedroom.png') center/cover no-repeat; }
.pv-pano::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 50%, rgba(4,27,38,.85));
}
.pv-pano .hud {
  position: absolute; left: 24px; top: 24px;
  display: flex; gap: 8px;
  font-family: 'Roboto Condensed', sans-serif; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pv-pano .hud .chip { background: rgba(255,255,255,.92); color: var(--neutral-900); padding: 5px 10px; border-radius: var(--r-pill); }
.pv-pano .hud .chip.dark { background: rgba(4,27,38,.7); color: var(--accent); }
.pv-pano .crosshair {
  position: absolute; left:50%; top:50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%;
}
.pv-pano .crosshair::before, .pv-pano .crosshair::after { content:''; position:absolute; background: rgba(255,255,255,.7); }
.pv-pano .crosshair::before { left:50%; top:-10px; bottom:-10px; width:1px; }
.pv-pano .crosshair::after  { top:50%; left:-10px; right:-10px; height:1px; }
.pv-pano .footer-bar {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--white);
  font-family: 'Roboto Condensed', sans-serif; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pv-pano .footer-bar .lat { color: var(--accent); }

.pv-chat {
  background: #07232f; padding: 28px;
  display: grid; gap: 12px;
  font-family: 'Roboto Condensed', sans-serif;
}
.pv-chat .msg {
  border-radius: var(--r-md); padding: 12px 16px;
  max-width: 78%; font-size: 14px; line-height: 1.5;
  animation: pinUp .5s var(--ease-standard) backwards;
}
.pv-chat .msg.user {
  background: var(--accent); color: var(--neutral-900);
  justify-self: end; border-bottom-right-radius: 4px; animation-delay: .1s;
}
.pv-chat .msg.bot {
  background: rgba(255,255,255,.06); color: var(--white);
  border: 1px solid rgba(255,255,255,.08);
  border-bottom-left-radius: 4px; animation-delay: .35s;
}
.pv-chat .msg.bot strong { color: var(--accent); font-weight: 700; }
@keyframes pinUp { from{ opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.pv-grid { background: #0a2531; padding: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pv-grid .card {
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  aspect-ratio: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px;
  color: rgba(255,255,255,.7);
  font-family: 'Roboto Condensed', sans-serif;
}
.pv-grid .card .n { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pv-grid .card .v { font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.pv-grid .card.fill { background: var(--accent); color: var(--neutral-900); border: none; }
.pv-grid .card.fill .n, .pv-grid .card.fill .v { color: var(--neutral-900); }

.pv-files { background: #07232f; padding: 32px; display: grid; gap: 10px; font-family: 'Roboto Condensed', sans-serif; }
.pv-files .file {
  display: grid; grid-template-columns: 36px 1fr auto;
  align-items: center; gap: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-md);
  color: var(--white);
}
.pv-files .file .ext {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: rgba(128,212,255,.12); color: var(--accent);
}
.pv-files .file .name { font-size: 14px; font-weight: 500; }
.pv-files .file .meta { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.pv-files .file.ok .meta { color: var(--accent); }
.pv-files .file.ok { border-color: rgba(128,212,255,.3); }

@media (max-width: 980px) {
  .pin-section .pin-track { height: auto; }
  .pin-section .pin-stage { position: relative; height: auto; grid-template-columns: 1fr; padding-top: var(--s7); padding-bottom: var(--s7); }
  .pin-section .pin-right { height: 50vh; }
}

/* ============ Horizontal carousel ============ */
.carousel-section { padding: var(--s9) 0; background: var(--bg-secondary); overflow: hidden; }
.carousel-section .header {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s5); align-items: end;
  margin-bottom: var(--s6);
}
.carousel-section .header h2 { max-width: 16ch; }
.carousel-section .controls { display: flex; gap: 10px; }
.carousel-section .controls button {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--white); color: var(--neutral-700);
  box-shadow: inset 0 0 0 1px var(--neutral-200);
  display: grid; place-items: center;
  transition: background var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.carousel-section .controls button:hover { background: var(--bg-tertiary); color: var(--neutral-900); box-shadow: inset 0 0 0 1px var(--neutral-300); }
.carousel-section .controls button[disabled] { opacity: .35; pointer-events: none; }

.scroller {
  display: flex; gap: var(--s4);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 var(--gutter) var(--s4);
  margin: 0 calc(-1 * var(--gutter));
  scroll-padding-left: var(--gutter);
}
.scroller::-webkit-scrollbar { display: none; }
.cap-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s5);
  border: 1px solid var(--border-default);
  display: grid; gap: var(--s4);
  align-content: start;
  min-height: 460px;
  transition: transform var(--dur-medium) var(--ease-standard), box-shadow var(--dur-medium) var(--ease-standard), border-color var(--dur-medium) var(--ease-standard);
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--accent); }
.cap-card .num {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 900; font-size: 13px; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.cap-card .ico {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--neutral-900);
}
.cap-card h3 { font-size: 22px; line-height: 1.2; color: var(--neutral-900); letter-spacing: -0.01em; }
.cap-card p { color: var(--neutral-500); line-height: 1.55; font-size: 15px; }
.cap-card .tag {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--bg-tertiary);
  font-family: 'Roboto Condensed', sans-serif; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--neutral-700);
  width: fit-content;
}
.cap-card.is-feature { background: var(--neutral-900); color: var(--white); border-color: var(--neutral-900); }
.cap-card.is-feature h3 { color: var(--white); }
.cap-card.is-feature p { color: rgba(255,255,255,.7); }
.cap-card.is-feature .num { color: var(--accent); }
.cap-card.is-feature .ico { background: rgba(128,212,255,.15); color: var(--accent); }
.cap-card.is-feature .tag { background: rgba(255,255,255,.08); color: var(--accent); }

.scroller-progress { display: flex; gap: 6px; margin-top: var(--s5); }
.scroller-progress .pip {
  height: 2px; flex: 1; background: var(--neutral-200);
  position: relative; overflow: hidden;
}
.scroller-progress .pip::after {
  content: ''; position: absolute; inset: 0 100% 0 0;
  background: var(--neutral-900);
  transition: inset 240ms var(--ease-standard);
}
.scroller-progress .pip.is-active::after { inset: 0; }

/* ============ Two-up ============ */
.twoup-section { padding: var(--s9) 0; }
.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.twoup .panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: var(--s7);
  min-height: 540px;
  overflow: hidden;
  display: grid; align-content: space-between; gap: var(--s5);
}
.twoup .panel .photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1);
  transition: transform 1.2s var(--ease-out-expo);
}
.twoup .panel:hover .photo { transform: scale(1.04); }
.twoup .panel::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(4,27,38,.05) 0%, rgba(4,27,38,.78) 100%);
}
.twoup .panel > * { position: relative; z-index: 2; }
.twoup .panel .num {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 900; font-size: 12px; letter-spacing: 0.22em;
  color: var(--accent); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.twoup .panel .num::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.twoup .panel h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700; font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.02em; color: var(--white); line-height: 1.05;
  max-width: 14ch;
}
.twoup .panel p { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.55; max-width: 36ch; }
.twoup .panel .arr-link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--white);
  font-family: 'Roboto Condensed', sans-serif; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; width: fit-content;
}
.twoup .panel .arr-link svg { transition: transform var(--dur-fast) var(--ease-standard); }
.twoup .panel:hover .arr-link svg { transform: translateX(6px); }
.twoup .panel.p-touring .photo {
  background:
    linear-gradient(135deg, rgba(7,35,47,.4), rgba(4,27,38,.6)),
    url('assets/sample-bedroom.png') center/cover no-repeat;
}
.twoup .panel.p-design .photo {
  background:
    linear-gradient(135deg, rgba(7,35,47,.3), rgba(4,27,38,.55)),
    radial-gradient(circle at 30% 30%, #406a80, transparent 50%),
    radial-gradient(circle at 70% 70%, #80d4ff, transparent 40%),
    linear-gradient(135deg, #1a3d4d, #07232f);
}
@media (max-width: 880px) {
  .twoup { grid-template-columns: 1fr; }
  .twoup .panel { min-height: 420px; padding: var(--s5); }
}

/* ============ Closing CTA ============ */
.cta-section { padding: var(--s10) 0; background: linear-gradient(150deg, rgba(204,238,255,.38) 0%, rgba(255,255,255,0) 55%, rgba(128,212,255,.12) 100%); color: var(--neutral-900); position: relative; overflow: hidden; }
.cta-section .parallax-layer {
  position: absolute; inset: -10% -10%;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(128,212,255,.22), transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(128,212,255,.55), transparent 45%);
  z-index: 0; pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section .display {
  color: var(--neutral-900); max-width: 16ch;
  font-size: clamp(48px, 7vw, 120px);
}
.cta-section .display em { font-style: italic; font-weight: 200; color: var(--accent); }
.cta-section .row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s5); align-items: end;
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid rgba(0,0,0,.1);
}
.cta-section .row p { max-width: 50ch; color: var(--neutral-600); font-size: 17px; }
@media (max-width: 768px) {
  .cta-section .row { grid-template-columns: 1fr; }
}

/* ============ Scroll-reveal ============ */
.reveal { opacity: 0; transform: translateY(var(--reveal-dist)); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-d="100"] { transition-delay: 100ms; }
.reveal[data-d="200"] { transition-delay: 200ms; }
.reveal[data-d="300"] { transition-delay: 300ms; }
.reveal[data-d="400"] { transition-delay: 400ms; }

.reveal-chars { display: inline-block; }
.reveal-chars .reveal-line { display: block; }
.reveal-chars .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Extend clipping below baseline so descenders (g, y, p...) aren't cut off.
     Negative margin keeps total layout height the same. */
  padding-bottom: 0.3em;
  margin-bottom: -0.3em;
  line-height: 1;
}
.reveal-chars .word span {
  display: inline-block;
  transform: translateY(130%);
  transition: transform 380ms var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 14ms);
}
.reveal-chars.in .word span { transform: translateY(0); }

/* ============ Hero variation switcher ============ */
.hero-switcher {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 60;
  display: flex; gap: 6px; padding: 6px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border-default);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(12px);
}
.hero-switcher button {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--neutral-500);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.hero-switcher button:hover { color: var(--neutral-900); }
.hero-switcher button.is-active { background: var(--neutral-900); color: var(--white); }

.hero[hidden] { display: none !important; }

/* ============ Progress reading bar ============ */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 100; background: transparent; }
.read-progress .bar { height: 100%; width: 0%; background: var(--accent); transition: width 60ms linear; }

/* ============ Tweaks panel ============ */
.tweaks-fab {
  position: fixed; left: var(--gutter); bottom: var(--gutter);
  z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--neutral-900); color: var(--white);
  display: none; place-items: center;
  box-shadow: var(--shadow-3);
  transition: transform var(--dur-fast) var(--ease-standard);
}
.tweaks-fab.show { display: grid; }
.tweaks-fab:hover { transform: translateY(-2px) rotate(15deg); }

.tweaks-panel {
  position: fixed; left: var(--gutter); bottom: calc(var(--gutter) + 64px);
  z-index: 61;
  width: 300px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-4);
  border: 1px solid var(--border-default);
  padding: var(--s5);
  display: none; gap: var(--s4); grid-template-columns: 1fr;
  animation: tweaksIn .25s var(--ease-out-expo);
}
.tweaks-panel.show { display: grid; }
@keyframes tweaksIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.tweaks-panel header { display: flex; justify-content: space-between; align-items: center; }
.tweaks-panel header h4 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--neutral-800); margin: 0;
}
.tweaks-panel header button {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--neutral-500);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.tweaks-panel header button:hover { background: var(--bg-tertiary); color: var(--neutral-900); }
.tw-group { display: grid; gap: 8px; }
.tw-group .lbl {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--neutral-500);
}
.tw-seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--bg-tertiary); border-radius: var(--r-pill); padding: 3px; gap: 2px;
}
.tw-seg button {
  padding: 7px 6px; border-radius: var(--r-pill);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--neutral-600);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.tw-seg button.is-on { background: var(--neutral-900); color: var(--white); }
.tw-swatches { display: flex; gap: 8px; align-items: center; }
.tw-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer; transition: border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.tw-swatch:hover { transform: scale(1.08); }
.tw-swatch.is-on { border-color: var(--neutral-900); }

/* ============ Panoramic horizontal scroll ============ */
.pano-scroll-section {
  position: relative;
  height: 300vh; /* overridden by JS after image loads */
}
.pano-sticky {
  position: sticky;
  top: 72px; /* clear fixed site-nav */
  height: calc(100vh - 72px);
  overflow: hidden;
  box-sizing: border-box;
  padding-top: var(--s5);
  padding-bottom: var(--s4);
}
.pano-track {
  display: flex;
  gap: 0;
  width: max-content;
  height: 100%;
  will-change: transform;
}
.pano-slide {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
}
.pano-slide img {
  display: block;
  flex-shrink: 0;
  height: auto;
  max-height: calc(100vh - 72px - var(--s5) - var(--s4));
  width: auto;
  max-width: 300vw;
  margin: 0;
  padding: 0;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 768px) {
  .pano-scroll-section {
    height: auto !important;
    overflow: visible;
  }
  .pano-sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    display: flex;
    justify-content: center;
    padding: var(--s4) 0 var(--s6);
  }
  .pano-track {
    width: auto;
    max-width: 100%;
    height: auto;
    transform: none !important;
  }
  .pano-slide {
    height: auto;
    overflow: visible;
    font-size: 1rem;
    line-height: normal;
    display: flex;
    justify-content: center;
  }
  .pano-slide picture {
    display: block;
    width: 88vw;
    max-width: 88vw;
  }
  html.official-site-active .pano-scroll-section .pano-slide img {
    display: block;
    width: 88vw;
    max-width: 88vw;
    max-height: none;
    height: auto;
    object-fit: contain;
  }
}
.pano-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s7) var(--s6) var(--s5);
  background: linear-gradient(0deg, rgba(4,27,38,.72) 0%, transparent 100%);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 2;
}
.pano-label .pano-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pano-label .pano-num {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums;
}
.pano-progress {
  position: absolute;
  bottom: var(--s5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.pano-progress .pip {
  width: 48px;
  height: 2px;
  background: rgba(255,255,255,.25);
  border-radius: 1px;
  overflow: hidden;
}
.pano-progress .pip-fill {
  height: 100%;
  background: var(--white);
  width: 0%;
  transition: width 60ms linear;
}
