:root {
  --parchment: #F7F0E4;
  --parchment-deep: #EDE3D4;
  --blush: #E8D9C8;
  --ink: #1C1520;
  --ink-soft: #3D3240;
  --stroke: #5A4A40;
  --gold: #E8A23A;
  --gold-soft: #F3D08A;
  --teal: #2BB8A8;
  --teal-soft: #9FE0D6;
  --violet: #8B6BCF;
  --violet-soft: #D2C2F0;
  --coral: #E86B5A;
  --coral-soft: #F5B3A8;
  --panel: #FFF8EE;
  --max: 1180px;
  --header-h: 72px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 600;
  background: var(--parchment);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--panel);
  border: 2.5px solid var(--stroke);
  padding: 10px 14px;
  border-radius: 12px;
}

/* —— Atmospheric layers —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, #FFF9F0 0%, var(--parchment) 38%, var(--blush) 100%);
}
.atmo-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  will-change: transform;
}
.atmo-gold {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  left: -12%;
  top: -8%;
  background: radial-gradient(circle, rgba(232,162,58,0.55), transparent 68%);
  animation: drift 14s ease-in-out infinite alternate;
}
.atmo-teal {
  width: min(55vw, 560px);
  height: min(55vw, 560px);
  right: -10%;
  top: 18%;
  background: radial-gradient(circle, rgba(43,184,168,0.35), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
.atmo-coral {
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  left: 30%;
  bottom: 5%;
  background: radial-gradient(circle, rgba(232,107,90,0.22), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
.atmo-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(28,21,32,0.14) 100%);
}
.atmo-stairs {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: min(42vw, 420px);
  height: min(48vw, 480px);
  opacity: 0.12;
  background:
    repeating-linear-gradient(
      180deg,
      #C4A07A 0 18px,
      #5A4A40 18px 20px
    );
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  border: 2px solid rgba(90,74,64,0.35);
  display: none;
}
@media (min-width: 981px) {
  .atmo-stairs { display: block; }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, 18px, 0) scale(1.06); }
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  backdrop-filter: blur(14px);
  background: rgba(247, 240, 228, 0.78);
  border-bottom: 1px solid rgba(90, 74, 64, 0.18);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2.5px solid var(--stroke);
  background: var(--panel);
  box-shadow: 0 8px 18px rgba(28, 21, 32, 0.12);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.88;
}
.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 800;
  border: 2.5px solid var(--stroke);
  background: var(--gold-soft);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

/* —— Typography —— */
.brand-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7.2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.hero-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 12px;
  max-width: 22ch;
  color: var(--ink-soft);
}
.hero-sub,
.lede {
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0;
  font-weight: 600;
}
.lede.center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.hero-meta {
  margin: 18px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.9;
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 0 8px;
}

/* —— Buttons —— */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.cta-row.center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 16px;
  border: 2.75px solid var(--stroke);
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 10px 0 rgba(90, 74, 64, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 0 rgba(90, 74, 64, 0.2); }
.btn:active { transform: translateY(2px) scale(0.98); box-shadow: 0 4px 0 rgba(90, 74, 64, 0.2); }
.btn.primary { background: var(--gold); }
.btn.ghost { background: rgba(255, 248, 238, 0.85); }
.btn.tiny { min-height: 40px; padding: 8px 14px; font-size: 0.9rem; box-shadow: 0 6px 0 rgba(90, 74, 64, 0.16); }
.btn-ico { font-size: 1.1rem; line-height: 1; }

/* —— Hero bleed —— */
.hero-bleed {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 22px clamp(48px, 8vw, 88px);
  min-height: calc(100svh - var(--header-h));
  position: relative;
}
.hero-backdrop {
  position: absolute;
  inset: 0 -8% auto;
  height: min(92vh, 920px);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.5;
}
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% top;
  filter: saturate(1.05);
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247,240,228,0.96) 0%, rgba(247,240,228,0.62) 42%, rgba(247,240,228,0.2) 72%),
    linear-gradient(180deg, rgba(247,240,228,0.15), rgba(247,240,228,0.92));
}
.hero-orbit {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.orbit-ring {
  position: absolute;
  width: min(92%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(90, 74, 64, 0.22);
  background:
    radial-gradient(circle at 40% 35%, rgba(243, 208, 138, 0.45), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(159, 224, 214, 0.35), transparent 50%);
  animation: spin-slow 48s linear infinite;
}
.orbit-ring.delay {
  width: min(108%, 540px);
  opacity: 0.55;
  animation-duration: 72s;
  animation-direction: reverse;
  border-style: dashed;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
.device-stage {
  position: relative;
  width: min(100%, 340px);
  z-index: 2;
}
.device {
  position: relative;
  border-radius: 42px;
  border: 11px solid #2f2f31;
  background: #111;
  aspect-ratio: 9 / 19.4;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(28, 21, 32, 0.32),
    0 8px 0 #1a1a1c,
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.device-tilt {
  transform: perspective(1200px) rotateY(-14deg) rotateX(4deg) translateY(0);
  animation: float-phone 5.5s ease-in-out infinite;
}
.device-ghost {
  position: absolute;
  inset: 12% auto auto 42%;
  width: 72%;
  opacity: 0.42;
  transform: perspective(1200px) rotateY(18deg) rotateX(6deg) scale(0.92);
  z-index: -1;
  filter: saturate(0.9);
  pointer-events: none;
}
.device-static {
  width: min(100%, 300px);
  margin-inline: auto;
  transform: perspective(1100px) rotateY(-8deg);
}
.device-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.device-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #0a0a0b;
  border-radius: 20px;
  z-index: 3;
}
.device-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent 42%, transparent 58%, rgba(255,255,255,0.06));
  pointer-events: none;
  z-index: 2;
}
@keyframes float-phone {
  0%, 100% { transform: perspective(1200px) rotateY(-14deg) rotateX(4deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-12deg) rotateX(5deg) translateY(-14px); }
}

/* —— Bands —— */
.band {
  padding: clamp(56px, 9vw, 104px) 0;
  position: relative;
}
.band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}
.section-head { margin-bottom: 28px; max-width: 40rem; }

.demo-band {
  background:
    linear-gradient(180deg, rgba(255,248,238,0.2), rgba(232,217,200,0.55));
}
.demo-frame {
  border: 2.75px solid var(--stroke);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 24px 0 rgba(90, 74, 64, 0.12);
  overflow: hidden;
}
#feed-demo {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  cursor: grab;
  background:
    radial-gradient(circle at 70% 35%, rgba(243,208,138,0.55), transparent 45%),
    linear-gradient(180deg, #FFF8EE, #F0E4D4);
}
#feed-demo:active { cursor: grabbing; }
.demo-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 18px;
  border-top: 2px solid rgba(90, 74, 64, 0.2);
  background: rgba(255, 248, 238, 0.9);
}
.hint {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}

/* —— Wings —— */
.wing-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.wing {
  background: var(--panel);
  border: 2.75px solid var(--stroke);
  border-radius: 22px;
  padding: 18px 16px 20px;
  box-shadow: 0 14px 0 rgba(90, 74, 64, 0.1);
  transition: transform 0.2s ease;
}
.wing:hover { transform: translateY(-6px); }
.wing-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 2.5px solid var(--stroke);
  background: var(--wing);
  margin-bottom: 14px;
  color: var(--ink);
}
.wing-icon svg { width: 26px; height: 26px; }
.wing p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* —— Feature splits —— */
.feature-band {
  display: grid;
  gap: clamp(48px, 8vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.feature-split.flip .feature-copy { order: 2; }
.feature-split.flip .feature-device { order: 1; }
.feature-copy p:last-child {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 36ch;
  font-size: 1.05rem;
}
.feature-device { position: relative; }
.feature-device::before {
  content: "";
  position: absolute;
  inset: 8% 12% -6% 8%;
  background: radial-gradient(circle, rgba(232,162,58,0.35), transparent 70%);
  z-index: 0;
  filter: blur(8px);
}
.feature-device .device { position: relative; z-index: 1; }

/* —— Gallery —— */
.gallery-band {
  background: linear-gradient(180deg, transparent, rgba(232, 217, 200, 0.65));
}
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot {
  margin: 0;
  scroll-snap-align: start;
  background: var(--panel);
  border: 2.75px solid var(--stroke);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 0 rgba(90, 74, 64, 0.1);
  transition: transform 0.2s ease;
}
.shot:hover { transform: translateY(-8px) rotate(-1deg); }
.shot img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  background: var(--blush);
}
.shot figcaption {
  padding: 12px 14px 14px;
  font-weight: 800;
  font-size: 0.95rem;
}

/* —— Closing —— */
.closing-band { padding-bottom: 120px; }
.closing-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(32px, 5vw, 48px) 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(243,208,138,0.55), transparent 55%),
    var(--panel);
  border: 2.75px solid var(--stroke);
  border-radius: 32px;
  box-shadow: 0 28px 0 rgba(90, 74, 64, 0.12);
}
.closing-logo {
  margin: 0 auto 16px;
  border-radius: 22px;
  border: 2.75px solid var(--stroke);
}
.closing-panel .brand-mark {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

/* —— Footer / sticky —— */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px 110px;
  color: var(--ink-soft);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-weight: 700;
}
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fine { font-size: 0.92rem; line-height: 1.45; }
.foot-copy { opacity: 0.85; }

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(120%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 18px;
  background: rgba(255, 248, 238, 0.94);
  border: 2.75px solid var(--stroke);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(28, 21, 32, 0.22);
  backdrop-filter: blur(10px);
  transition: transform 0.28s ease;
  font-weight: 800;
  white-space: nowrap;
}
.sticky-cta.is-visible { transform: translateX(-50%) translateY(0); }

/* —— Inner pages —— */
.page-shell main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px 80px;
}
.page-hero, .legal-hero { margin-bottom: 28px; }
.page-hero h1, .legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.panel, .legal-doc, .card-stack .panel {
  background: var(--panel);
  border: 2.75px solid var(--stroke);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 0 rgba(90, 74, 64, 0.08);
}
.card-stack, .split { display: grid; gap: 16px; }
.split { grid-template-columns: 1fr 1fr; }
.legal-doc h2 { font-size: 1.25rem; margin-top: 1.5em; }
.legal-doc p { color: var(--ink-soft); line-height: 1.55; }

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .device-tilt, .orbit-ring, .atmo-glow { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .hero-bleed,
  .feature-split,
  .wing-rail,
  .split {
    grid-template-columns: 1fr;
  }
  .hero-bleed {
    min-height: auto;
    padding-top: 20px;
  }
  .hero-backdrop {
    opacity: 0.28;
    inset: 0;
    height: 100%;
  }
  .hero-backdrop img { object-position: center top; }
  .hero-copy { order: 1; }
  .hero-orbit {
    order: 0;
    min-height: 380px;
    margin-bottom: 8px;
  }
  .device-stage { width: min(100%, 280px); }
  .feature-split.flip .feature-copy,
  .feature-split.flip .feature-device { order: initial; }
  .wing-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wing:last-child { grid-column: 1 / -1; }
  .device-ghost { display: none; }
  .device-tilt { transform: none; animation: float-phone-flat 5s ease-in-out infinite; }
  @keyframes float-phone-flat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 12px;
  }
  .site-nav.open { display: flex; }
  .site-header { flex-wrap: wrap; }
  .brand span { max-width: 48vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-cta span { display: none; }
  .gallery-track { grid-auto-columns: minmax(170px, 78vw); }
}
