/* Olivia's room — From scan to sanctuary.
   Reskinned to the simonberg.ai brand: dark ground, Anton display, Arial body,
   red accent. Immersive editorial layout retained. */

:root {
  --red: #FF1200;
  --dark: #16181B;
  --light: #F5F5FC;
  --blue: #016FC1;
  --lime: #C8EE32;

  --bg: var(--dark);
  --fg: var(--light);
  --fg-muted: rgba(245, 245, 252, 0.55);
  --fg-subtle: rgba(245, 245, 252, 0.28);
  --surface: rgba(245, 245, 252, 0.04);
  --surface-2: rgba(245, 245, 252, 0.06);
  --surface-hover: rgba(245, 245, 252, 0.09);
  --border: rgba(245, 245, 252, 0.12);
  --accent: var(--red);

  --font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  --nav-h: 64px;
  --gutter: clamp(24px, 5vw, 80px);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- shared ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
/* vertical only — never zero the horizontal padding .wrap sets (that was flush-left on mobile) */
.section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; line-height: 0.98; text-transform: uppercase; }
h2 { font-size: clamp(34px, 5.2vw, 64px); margin: 0 0 24px; }
h3 { font-size: clamp(19px, 2vw, 23px); margin: 0 0 10px; letter-spacing: 0.02em; }
p { margin: 0 0 18px; }
em { font-style: normal; color: var(--red); }
.muted { color: var(--fg-muted); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--fg-muted); margin: 0; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

.note {
  margin-top: 40px; padding: 20px 24px;
  border-left: 2px solid var(--red);
  background: var(--surface);
  color: var(--fg-muted); font-size: 15px;
}
.note.dark { border-left-color: var(--lime); }

/* ---------- nav (matches the site: bold uppercase links, centered) ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; padding: 0 var(--gutter); background: rgba(22, 24, 27, 0.82); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; max-width: 1280px; margin: 0 auto; }
.nav-inner > a:first-child { grid-column: 1; justify-self: start; display: inline-flex; }
.nav-logo { height: 26px; width: auto; opacity: 0.95; }
.nav-links { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 32px; }
.nav-links a { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--red); }
.nav-right { grid-column: 3; justify-self: end; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; z-index: 201; -webkit-tap-highlight-color: transparent; }
.burger span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease; }
.burger span + span { margin-top: 6px; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: rgba(22, 24, 27, 0.97); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(28px, 8vw, 42px); text-transform: uppercase; color: var(--fg); text-decoration: none; padding: 12px 0; opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease; }
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.16s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.20s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.24s; }
.mobile-menu.open a:nth-child(7) { transition-delay: 0.28s; }
.mobile-menu a:active, .mobile-menu a.active { color: var(--red); }
.mobile-menu-close { position: absolute; top: 18px; right: var(--gutter); background: none; border: none; cursor: pointer; color: var(--fg); padding: 8px; opacity: 0; transition: opacity 0.3s ease; }
.mobile-menu.open .mobile-menu-close { opacity: 0.6; }
.mobile-menu-close:hover { opacity: 1; }
@media (max-width: 900px) { .nav-links { display: none; } .burger { display: flex; flex-direction: column; align-items: center; justify-content: center; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(22,24,27,0.55) 0%, rgba(22,24,27,0.15) 40%, rgba(22,24,27,0.92) 100%); }
.hero-copy { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.hero-copy h1 { font-size: clamp(52px, 11vw, 148px); margin: 8px 0 20px; }
.hero-copy p { font-size: clamp(17px, 2.2vw, 22px); color: rgba(245,245,252,0.85); max-width: 40ch; }
.hero-note { position: absolute; z-index: 2; top: calc(var(--nav-h) + 28px); right: var(--gutter); text-align: right; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); }
.hero-note span { display: block; color: var(--fg-subtle); margin-top: 4px; letter-spacing: 0.1em; }

/* buttons */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  padding: 14px 24px; border: 1px solid var(--border); border-radius: 2px;
  background: var(--surface-2); color: var(--fg);
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.button:hover { background: var(--surface-hover); border-color: var(--fg-subtle); }
.button.cream { background: var(--red); border-color: var(--red); color: #fff; }
.button.cream:hover { background: #e01000; }

/* ---------- intro ---------- */
.intro { padding: clamp(64px, 9vw, 128px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; max-width: var(--maxw); margin: 0 auto; }
.intro .eyebrow { grid-column: 1 / -1; }
.intro h2 { margin: 0; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; } }

/* ---------- chapter nav ---------- */
.chapter-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.chapter-nav a { text-decoration: none; color: var(--fg-muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.15s; }
.chapter-nav a:hover { color: var(--red); }

/* ---------- scan / viewer ---------- */
.scan-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .scan-grid { grid-template-columns: 1fr; } }
.viewer { position: relative; background: #0e0f11; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
model-viewer { width: 100%; height: clamp(340px, 46vw, 520px); background: #0e0f11; --poster-color: #0e0f11; }
.loading { color: var(--fg-muted); font-size: 13px; padding: 12px 16px; }
.viewer-label { padding: 12px 16px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.viewer-label span { color: var(--fg-subtle); letter-spacing: 0.08em; }
.viewer-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.viewer-controls button { font-family: var(--font-body); font-size: 13px; padding: 9px 16px; background: var(--surface-2); color: var(--fg); border: 1px solid var(--border); border-radius: 2px; cursor: pointer; transition: background 0.15s; }
.viewer-controls button:hover { background: var(--surface-hover); }
.step-stack article { padding: 22px 0; border-top: 1px solid var(--border); }
.step-stack article:first-child { border-top: none; padding-top: 0; }
.step-stack b { font-family: var(--font-display); font-size: 22px; color: var(--red); display: block; margin-bottom: 6px; }
.step-stack p { color: var(--fg-muted); margin: 0; font-size: 15px; }

/* ---------- plans band ---------- */
.plans-band { background: #101215; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tabs button { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.04em; padding: 9px 16px; background: transparent; color: var(--fg-muted); border: 1px solid var(--border); border-radius: 2px; cursor: pointer; transition: all 0.15s; }
.tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.plan-canvas { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 3px; background: #fff; cursor: zoom-in; overflow: hidden; }
.plan-canvas img { width: 100%; height: auto; }
.caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--fg-muted); }
.caption a { color: var(--lime); text-decoration: none; }
.caption a:hover { text-decoration: underline; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.three article b { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; color: var(--red); display: block; margin-bottom: 10px; }
.three article p { color: var(--fg-muted); font-size: 15px; margin: 0; }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- style / gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.gallery button { position: relative; padding: 0; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; cursor: zoom-in; background: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery span { position: absolute; left: 0; bottom: 0; right: 0; padding: 10px 12px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent); text-align: left; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.decisions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.decisions p { color: var(--fg-muted); }
@media (max-width: 760px) { .decisions { grid-template-columns: 1fr; } }

/* ---------- render / compare ---------- */
.render-section { background: #0e0f11; }
.compare { position: relative; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; user-select: none; }
.compare > img { width: 100%; display: block; }
.compare #rawLayer { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.compare #rawLayer img { width: 100%; height: 100%; object-fit: cover; }
.compare #divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--red); pointer-events: none; }
.compare-label { position: absolute; top: 14px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.55); padding: 4px 8px; border-radius: 2px; }
.compare-label.left { left: 14px; }
.compare-label.right { right: 14px; }
.compare input[type="range"] { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: calc(100% - 32px); margin: 0 16px; appearance: none; background: transparent; cursor: ew-resize; }
.compare input[type="range"]::-webkit-slider-thumb { appearance: none; width: 32px; height: 32px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.45); cursor: ew-resize; }
.compare input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.45); cursor: ew-resize; }

/* ---------- order / shopping ---------- */
.shopping { border: 1px solid var(--border); border-radius: 3px; overflow: hidden; background: var(--surface); }
.shopping-top, .shopping-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 16px 20px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.shopping-top { border-bottom: 1px solid var(--border); background: var(--surface-2); }
.shopping-bottom { border-top: 1px solid var(--border); }
.shop-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--border); font-size: 15px; transition: opacity 0.2s; }
.shop-row:first-child { border-top: none; }
.shop-row small { display: block; color: var(--fg-subtle); font-size: 12px; letter-spacing: 0.02em; margin-top: 2px; }
.shop-row select { font-family: var(--font-body); font-size: 13px; padding: 6px 10px; background: #0e0f11; color: var(--fg); border: 1px solid var(--border); border-radius: 2px; }
.shop-row.ordered { opacity: 0.4; }
.bonus { margin-top: 64px; padding: 40px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); }
.bonus h3 { font-size: clamp(22px, 3vw, 34px); }
.bonus p { color: var(--fg-muted); }
.bonus small { color: var(--fg-subtle); font-size: 13px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); text-align: center; }
.footer-logo { height: 30px; width: auto; margin: 0 auto 20px; opacity: 0.9; }
.footer-tagline { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); text-transform: uppercase; margin: 0 0 12px; }
.footer-tagline .red { color: var(--red); }
.footer-copy { color: var(--fg-subtle); font-size: 13px; margin: 0; }

/* ---------- lightbox ---------- */
#lightbox { border: none; background: transparent; max-width: 92vw; max-height: 92vh; padding: 0; }
#lightbox::backdrop { background: rgba(10, 11, 12, 0.9); }
#lightbox img { max-width: 92vw; max-height: 82vh; width: auto; border-radius: 3px; }
#closeLightbox { display: block; margin: 0 0 12px auto; background: var(--surface-2); color: var(--fg); border: 1px solid var(--border); border-radius: 2px; padding: 8px 14px; font-size: 13px; cursor: pointer; }

/* ---------- mobile refinements ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .intro { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .section-head { margin-bottom: 32px; }
  .hero { min-height: min(86vh, 700px); }
  .hero-copy { padding-bottom: 44px; }
  .hero-copy h1 { margin-bottom: 16px; }
  .hero-copy .button { width: 100%; justify-content: center; }
  .hero-note { left: var(--gutter); right: var(--gutter); text-align: left; top: calc(var(--nav-h) + 12px); font-size: 9px; letter-spacing: 0.1em; line-height: 1.5; }
  .note { margin-top: 28px; }
  .three { margin-top: 36px; }
  .gallery { margin-bottom: 36px; }
  .chapter-nav { gap: 10px 20px; padding-top: 20px; padding-bottom: 20px; }
  .bonus { padding: 26px 22px; margin-top: 44px; }
  .shop-row { gap: 8px 12px; padding: 14px 16px; }
  .shopping-top, .shopping-bottom { padding: 14px 16px; }
  .shop-row select { padding: 6px 8px; }
}
