/* Offplan · offplan.tools
   One stylesheet, no build step. Sections pick a theme (.theme-dark / .theme-light)
   and everything inside reads its colours from the theme's custom properties. */

:root {
  --ink: #0b0b0c;
  --paper: #f5f2ec;
  --paper-2: #ede8df;
  --sand: #e4cba9;
  --sand-bright: #efdcc1;
  --bronze: #85633f;
  --avail: #3ecf8e;
  --res: #f2a93b;
  --sold: #ef5a5a;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Themes ---------- */

.theme-dark {
  --bg: var(--ink);
  --fg: #f4f2ee;
  --fg-2: #d9d6d0;
  --muted: #a29f99;
  --line: rgba(255, 255, 255, .09);
  --card: rgba(255, 255, 255, .035);
  --card-line: rgba(255, 255, 255, .08);
  --accent: var(--sand);
  --icon-bg: rgba(255, 255, 255, .06);
  background-color: var(--bg);
  color: var(--fg);
  color-scheme: dark;
}

.theme-light {
  --bg: var(--paper);
  --fg: #121214;
  --fg-2: #2b2a28;
  --muted: #625e57;
  --line: rgba(18, 18, 20, .1);
  --card: #fff;
  --card-line: rgba(18, 18, 20, .07);
  --accent: var(--bronze);
  --icon-bg: #f2ede5;
  background-color: var(--bg);
  color: var(--fg);
  color-scheme: light;
}

.theme-light.alt { --bg: var(--paper-2); --icon-bg: #f4efe7; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: #f4f2ee;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--sand); color: var(--ink); }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 6px; }
.theme-light :focus-visible { outline-color: var(--bronze); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.display {
  font-size: clamp(44px, 8.4vw, 116px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.048em;
}

.h2 {
  max-width: 17ch;
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.042em;
  text-wrap: balance;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
.display .serif, .h2 .serif, .statement .serif { font-size: 1.07em; letter-spacing: -.02em; }
.theme-dark .serif { color: var(--sand); }
.theme-light .serif { color: var(--bronze); }

.lead {
  max-width: 60ch;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.tag-accent { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.tag-dark { border-color: rgba(255, 255, 255, .16); color: #bdb9b2; }

/* ---------- Buttons ---------- */

.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s, opacity .25s;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-light {
  background: #f6f3ee;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 30px -12px rgba(228, 203, 169, .45);
}
.btn-light:hover { background: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 36px -12px rgba(228, 203, 169, .6); }

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .16);
  color: var(--fg);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.btn-ghost:hover .icon { transform: rotate(-24deg); }

.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  color: #f4f2ee;
  transition: background-color .35s, border-color .35s;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, .74);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo-mark { width: 28px; height: 28px; --logo-unit: var(--sand); }
.logo-unit { fill: var(--logo-unit, #e4cba9); }
.logo-word { font-size: 21px; font-weight: 600; line-height: 1; letter-spacing: -.05em; }

.nav-links { display: none; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #c9c6c0;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: calc(var(--nav-h) + clamp(52px, 8.5vw, 116px));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(228, 203, 169, .17), transparent 70%),
    radial-gradient(38% 38% at 88% 58%, rgba(80, 136, 196, .16), transparent 70%),
    radial-gradient(36% 36% at 8% 72%, rgba(228, 203, 169, .09), transparent 70%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(70% 52% at 50% 18%, #000 15%, transparent 75%);
  mask-image: radial-gradient(70% 52% at 50% 18%, #000 15%, transparent 75%);
}

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: #dcd9d3;
  font-size: 13.5px;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.pill:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.pill .icon { width: 14px; height: 14px; color: var(--sand); transition: transform .3s var(--ease); }
.pill:hover .icon { transform: translateX(3px); }

.pill-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--avail);
  box-shadow: 0 0 0 4px rgba(62, 207, 142, .18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(62, 207, 142, .04); } }

.hero .display { max-width: 15ch; }
.hero .display .serif { color: var(--sand-bright); }
.hero-lead { margin-top: 28px; max-width: 58ch; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-proof { margin-top: 26px; font-size: 14px; color: var(--muted); }
.hero-proof a {
  color: var(--fg-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .28);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s, color .2s;
}
.hero-proof a:hover { color: #fff; text-decoration-color: currentColor; }

@media (min-width: 700px) {
  .display .serif { display: block; }
}

.hero-stage { margin-top: clamp(56px, 8vw, 96px); }
.hero-frame-wrap { position: relative; max-width: 1100px; margin-inline: auto; perspective: 1800px; }

.hero-frame {
  position: relative;
  padding: clamp(6px, .8vw, 10px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: clamp(16px, 2vw, 26px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .035) 60%);
  box-shadow: 0 50px 140px -30px rgba(0, 0, 0, .85), 0 30px 90px -40px rgba(228, 203, 169, .28);
  transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1));
  transform-origin: 50% 100%;
  will-change: transform;
}
.hero-frame img { width: 100%; border-radius: clamp(11px, 1.4vw, 18px); }

.chip {
  position: absolute;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  background: rgba(16, 16, 18, .74);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .65);
  color: #f4f2ee;
  font-size: 13.5px;
  line-height: 1.35;
  text-align: left;
  animation: float 7s ease-in-out infinite;
}
.chip .icon { width: 22px; height: 22px; color: var(--sand); }
.chip-title { display: block; font-weight: 500; }
.chip-sub { display: block; font-size: 12.5px; color: #aaa7a1; }
.chip-a { flex-direction: column; align-items: flex-start; gap: 8px; left: 3%; top: 9%; }
.chip-b { right: 3%; top: 42%; animation-delay: -2.5s; }
.chip-c { left: 6%; bottom: 9%; animation-delay: -4.6s; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (min-width: 1000px) {
  .chip { display: flex; }
}
@media (min-width: 1320px) {
  .chip-a { left: -4%; }
  .chip-b { right: -5%; }
}

.legend { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #c8c5bf; white-space: nowrap; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.legend .dot:not(:first-child) { margin-left: 8px; }
.dot-avail { background: var(--avail); box-shadow: 0 0 10px rgba(62, 207, 142, .55); }
.dot-res { background: var(--res); }
.dot-sold { background: var(--sold); }

/* Marquee */
.marquee {
  margin-top: clamp(72px, 9vw, 120px);
  padding-block: 22px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee-list { display: flex; flex: none; }
.marquee-list li {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
  padding-right: clamp(20px, 2.6vw, 36px);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 34px);
  color: #9a978f;
  white-space: nowrap;
}
.marquee-list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise 1s var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: .06s; }
  .hero-inner > :nth-child(3) { animation-delay: .14s; }
  .hero-inner > :nth-child(4) { animation-delay: .22s; }
  .hero-inner > :nth-child(5) { animation-delay: .3s; }
  .hero-frame-wrap { animation: rise-frame 1.4s var(--ease) .3s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-frame { from { opacity: 0; transform: translateY(70px); } }

/* ---------- Sections ---------- */

.section { position: relative; padding-block: clamp(88px, 11vw, 160px); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .h2 { max-width: 19ch; }

.card-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--accent);
}
.card-icon .icon { width: 20px; height: 20px; }

/* Problem */
.compare { display: grid; gap: 20px; align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.compare-card { display: grid; gap: 16px; }
.compare-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 30px 60px -44px rgba(30, 25, 15, .45);
}
.compare-media img { width: 100%; height: 100%; object-fit: cover; }
.compare-plan img { object-fit: contain; padding: 7%; filter: grayscale(1) contrast(1.05); opacity: .85; }
.compare figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.compare-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sand);
  transform: rotate(90deg);
}
.compare-arrow .icon { width: 22px; height: 22px; }

.badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11, 11, 12, .7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.badge .icon { color: var(--sand); }

@media (min-width: 900px) {
  .compare { grid-template-columns: 1fr auto 1fr; gap: 28px; }
  .compare-arrow { transform: none; margin-bottom: 40px; }
}

.problems { display: grid; border-bottom: 1px solid var(--line); }
.problems li { display: grid; align-content: start; gap: 10px; padding: 32px 0; border-top: 1px solid var(--line); }
.problems h3 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.problems p { color: var(--muted); }
.num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); }

@media (min-width: 900px) {
  .problems { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .problems li { padding: 36px 32px; border-top: 0; }
  .problems li + li { border-left: 1px solid var(--line); }
  .problems li:first-child { padding-left: 0; }
  .problems li:last-child { padding-right: 0; }
}

.statement {
  max-width: 24ch;
  margin-top: clamp(48px, 6vw, 80px);
  font-size: clamp(26px, 3.3vw, 44px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.032em;
  text-wrap: balance;
}

/* Product bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }

.card {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(20, 16, 10, .04), 0 24px 48px -38px rgba(20, 16, 10, .3);
}
.card-copy { display: grid; gap: 10px; padding: 28px 28px 0; }
.card-copy .card-icon { margin-bottom: 6px; }
.card h3 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.card-copy p { max-width: 46ch; font-size: 15.5px; color: var(--muted); }
.card-media { margin-top: auto; padding: 28px 28px 0; }
.card-media img {
  width: 100%;
  border: 1px solid var(--card-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -12px 40px -26px rgba(20, 16, 10, .45);
}

@media (min-width: 720px) {
  .c-b, .c-c, .c-d, .c-e, .c-f, .c-g { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .c-a { grid-column: span 7; }
  .c-b { grid-column: span 5; }
  .c-c, .c-d, .c-e { grid-column: span 4; }
  .c-f, .c-g { grid-column: span 6; }
  .c-a .card-copy, .c-a .card-media { padding-inline: 36px; }
  .c-a .card-copy { padding-top: 36px; }
  /* A card beside a taller one fills the spare height with its screenshot. */
  .card-fill .card-media { position: relative; flex: 1 1 0; min-height: 260px; }
  .card-fill .card-media img {
    position: absolute;
    inset: 28px 28px 0;
    width: calc(100% - 56px);
    height: calc(100% - 28px);
    object-fit: cover;
    object-position: 30% 50%;
  }
}

/* Try it: 360 viewer */
.try { overflow: clip; }
.try::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 40% at 50% 62%, rgba(80, 136, 196, .14), transparent 70%);
  pointer-events: none;
}

.viewer { position: relative; }
.viewer-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-xl);
  background: #070708;
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .95);
}
@media (min-width: 640px) { .viewer-stage { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) { .viewer-stage { aspect-ratio: 2 / 1; } }

.viewer-poster, .viewer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer-poster { object-fit: cover; transition: opacity .6s ease; }
.viewer-canvas {
  opacity: 0;
  outline: none;
  cursor: grab;
  touch-action: pan-y;
  transition: opacity .6s ease;
}
.viewer-canvas:active { cursor: grabbing; }
.viewer-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--sand); }
.viewer.is-ready .viewer-canvas { opacity: 1; }
.viewer.is-switching .viewer-canvas { opacity: .25; }

.viewer-hint, .viewer-label, .icon-btn, .viewer-fallback {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(11, 11, 12, .62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
}

.viewer-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .5s;
}
.viewer-hint .icon { width: 20px; height: 20px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.viewer.has-interacted .viewer-hint, .viewer.no-webgl .viewer-hint { opacity: 0; }

.viewer-spinner {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, .22);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: spin .8s linear infinite;
  transition: opacity .3s;
}
.viewer.is-loading .viewer-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.viewer-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 180px);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viewer-controls { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(32, 32, 34, .85); border-color: rgba(255, 255, 255, .32); }
.icon-btn .icon { width: 18px; height: 18px; }
.viewer.no-webgl .viewer-controls { display: none; }
.viewer-fallback {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
}

.viewer-stage:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border: 0; border-radius: 0; }
.viewer-stage:fullscreen .viewer-canvas { touch-action: none; }

.viewer-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (min-width: 760px) { .viewer-rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }

.room {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  color: #d6d3cd;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.room img { flex: none; width: 60px; height: 40px; border-radius: 10px; object-fit: cover; }
.room span { min-width: 0; }
.room:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.room.is-active { border-color: rgba(228, 203, 169, .55); background: rgba(228, 203, 169, .09); color: #fff; }

/* Any device */
.split { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-xl);
  box-shadow: 0 50px 100px -60px rgba(20, 16, 10, .55);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.split-copy .section-head { margin-bottom: 30px; }

@media (min-width: 1024px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split-media { aspect-ratio: 4 / 5; }
  .split-media img { object-position: 57% 50%; }
}

.features li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.features li:last-child { border-bottom: 1px solid var(--line); }
.features h3 { margin-bottom: 4px; font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.features p { font-size: 15.5px; color: var(--muted); }

/* For teams */
.screens { max-width: 1080px; margin-inline: auto; }
.tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: #fff;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.tabs [role="tab"]:hover { color: var(--fg); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }

.screen-frame {
  padding: 0 10px 10px;
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 50px 100px -60px rgba(20, 16, 10, .5);
}
.screen-bar { display: flex; gap: 6px; padding: 12px 6px; }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5dfd5; }
.screen-panel img { width: 100%; border: 1px solid var(--card-line); border-radius: 12px; }
.screen-panel:not([hidden]) { animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; } }

.grid-4 { display: grid; gap: 28px; margin-top: clamp(48px, 6vw, 72px); }
.grid-4 li { display: grid; align-content: start; gap: 8px; }
.grid-4 .card-icon { margin-bottom: 6px; }
.grid-4 h3 { font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.grid-4 p { font-size: 15.5px; color: var(--muted); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* The new Offplan */
.rebuild { overflow: clip; }
.rebuild-bg {
  position: absolute;
  inset: 0;
  background: url("/media/cote-elevated-2400.webp") center 40% / cover no-repeat;
  opacity: .2;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
}
.rebuild .container { position: relative; }

.status-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .status-grid { grid-template-columns: 1fr 1fr; } }

.status-card {
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  background: rgba(19, 19, 21, .78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.status-card-next {
  border-color: rgba(228, 203, 169, .24);
  background: linear-gradient(180deg, rgba(228, 203, 169, .11), rgba(19, 19, 21, .8) 55%);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.status-card h3 { margin-bottom: 22px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.025em; }

.checks { display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--fg-2); }
.checks .icon { width: 18px; height: 18px; margin-top: 3px; stroke-width: 2.2; color: var(--avail); }
.status-card-next .checks .icon { color: var(--sand); }
.status-note { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }

/* AI */
.ai-grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (min-width: 1024px) {
  .ai-grid { grid-template-columns: 1fr 1.08fr; }
  .chat { position: sticky; top: calc(var(--nav-h) + 28px); }
}

.chat {
  padding: 8px;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #f4f2ee;
  box-shadow: 0 50px 100px -50px rgba(20, 16, 10, .65);
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.chat-title { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.chat-title .icon { color: var(--sand); }
.chat-body {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 24px;
  background: #141416;
}
.msg { max-width: 86%; padding: 13px 16px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.msg-buyer { justify-self: end; border-bottom-right-radius: 6px; background: #f4f2ee; color: var(--ink); }
.msg-ai { border: 1px solid rgba(255, 255, 255, .08); border-bottom-left-radius: 6px; background: rgba(255, 255, 255, .06); color: #e8e5df; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-actions span { padding: 7px 12px; border: 1px solid rgba(228, 203, 169, .35); border-radius: 999px; font-size: 13px; color: var(--sand); }
.chat-foot { padding: 14px 16px 10px; font-size: 13px; color: #9b978f; }

@media (prefers-reduced-motion: no-preference) {
  .js .chat .msg, .js .chat .chat-actions { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .chat.is-in .msg-buyer { opacity: 1; transform: none; transition-delay: .35s; }
  .js .chat.is-in .msg-ai { opacity: 1; transform: none; transition-delay: 1.15s; }
  .js .chat.is-in .chat-actions { opacity: 1; transform: none; transition-delay: 1.7s; }
}

.ai-features li { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.ai-features li:first-child { padding-top: 4px; border-top: 0; }
.ai-features h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.ai-features p { font-size: 15.5px; color: var(--muted); }

.ai-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 20px 24px;
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  background: var(--card);
  font-size: 15.5px;
  color: var(--fg-2);
}
.ai-note .icon { margin-top: 3px; color: var(--accent); }

/* Who it's for */
.audience { display: grid; gap: 16px; }
@media (min-width: 900px) { .audience { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aud-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: 0 24px 48px -38px rgba(20, 16, 10, .3);
}
.aud-media { aspect-ratio: 4 / 3; overflow: hidden; }
.aud-media img { width: 100%; height: 100%; object-fit: cover; }
.aud-copy { display: grid; gap: 8px; padding: 26px 28px 30px; }
.aud-copy h3 { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.aud-copy p { font-size: 15.5px; color: var(--muted); }
.aud-copy a { color: var(--fg); text-underline-offset: 3px; }

/* Early access */
.access { overflow: clip; }
.access-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 60% at 12% 28%, rgba(228, 203, 169, .14), transparent 70%),
    radial-gradient(40% 50% at 92% 82%, rgba(80, 136, 196, .13), transparent 70%);
}
.access-grid { position: relative; display: grid; gap: clamp(44px, 6vw, 88px); align-items: start; }
@media (min-width: 1024px) { .access-grid { grid-template-columns: 1fr 1.05fr; } }
.access-copy { display: grid; gap: 22px; align-content: start; }
.perks { margin-top: 10px; }
.access-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 15px; color: var(--muted); }
.access-mail a { color: var(--fg); text-underline-offset: 3px; }

.form-card {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .045);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .85);
}
.form { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 13.5px; font-weight: 500; color: #d9d6d0; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(0, 0, 0, .35);
  color: #f4f2ee;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a29f99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select:invalid { color: #8c8983; }
.field option { color: #f4f2ee; background: #18181b; }
.field input::placeholder, .field textarea::placeholder { color: #77746e; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(228, 203, 169, .7);
  background: rgba(0, 0, 0, .5);
  box-shadow: 0 0 0 4px rgba(228, 203, 169, .14);
}
.field.is-invalid input, .field.is-invalid select { border-color: rgba(239, 90, 90, .85); }
.field-error { font-size: 13px; color: #ff9d9d; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 14px; margin-top: 6px; }
.form-note { font-size: 13px; text-align: center; color: var(--muted); }
.form-note a { color: var(--fg-2); text-underline-offset: 3px; }
.form-status { min-height: 1.4em; font-size: 14px; text-align: center; color: var(--fg-2); }
.form-status:empty { display: none; }
.form-status.is-error { color: #ff9d9d; }

.form-done { display: grid; justify-items: center; gap: 12px; padding: 56px 12px; text-align: center; outline: none; }
.done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(62, 207, 142, .14); color: var(--avail); }
.done-icon .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.form-done h3 { font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.form-done p { max-width: 36ch; color: var(--muted); }

/* Footer */
.footer { padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.footer-brand { grid-column: 1 / -1; display: grid; align-content: start; gap: 14px; }
.footer-brand p { color: var(--muted); }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h2 { margin-bottom: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-col a, .footer-col p { width: fit-content; font-size: 15px; color: #d6d3cd; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-block: 28px 36px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: #85827c;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Secondary pages (privacy, thanks, 404) ---------- */

.page { min-height: 100vh; min-height: 100svh; }
.page-head { border-bottom: 1px solid var(--line); }
.page-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }

.prose { max-width: calc(720px + var(--gutter) * 2); padding-block: clamp(56px, 8vw, 104px); }
.prose .eyebrow { margin-bottom: 18px; }
.prose .lead { margin-top: 18px; }
.prose h2 { margin-top: 44px; margin-bottom: 10px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.prose p { max-width: 68ch; }
.prose p + p { margin-top: 14px; }
.prose a { color: var(--fg); text-underline-offset: 3px; }
.page-foot { padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

.page-center { display: grid; place-items: center; }
.notice { display: grid; justify-items: center; gap: 22px; padding-block: 64px; text-align: center; }
.notice .logo { margin-bottom: 18px; }

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Small screens ---------- */

@media (max-width: 520px) {
  .hero-ctas { width: 100%; flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .pill { font-size: 12.5px; }
  .card-copy, .card-media { padding-inline: 20px; }
  .card-copy { padding-top: 22px; }
  .card-media { padding-top: 22px; }
  .aud-copy { padding: 22px 22px 26px; }
  .viewer-label { max-width: calc(100% - 160px); }
  .icon-btn { width: 36px; height: 36px; }
  .tabs [role="tab"] { padding: 8px 12px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-frame { transform: none; }
}
