/* ============================================================
   Demo Plus — concept redesign
   System mirrors the Liveo editorial build, recolored to the
   Demo Plus brand: burnt orange #C1571E · espresso brown · gold
   foil #C39A3D · warm cream. Display serif: Fraunces.
   ============================================================ */

:root {
  --brand: #C1571E;        /* burnt orange (logo) */
  --brand-deep: #9E4517;
  --umber: #2E1C10;        /* espresso brown — dark bands */
  --umber-deep: #1B100A;
  --umber-soft: #4A3120;
  --cream: #FAF5EC;
  --cream-soft: #F1E7D6;
  --sand: #EDE0C8;         /* tinted band (ticker / quote) */
  --gold: #C39A3D;
  --gold-soft: rgba(195, 154, 61, 0.45);
  --ink: #241A12;
  --ink-soft: rgba(36, 26, 18, 0.66);

  --font-display: 'Fraunces', Georgia, serif;
  --font-serif-accent: 'Instrument Serif', Georgia, serif;
  --font-body: 'Instrument Sans', -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id], [id] { scroll-margin-top: 4.5rem; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-family: var(--font-serif-accent); font-style: italic; font-weight: 400; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sand); color: var(--umber-deep); }

/* ---------- Shared atoms ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.eyebrow--gold { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 2rem; border-radius: 99px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.35s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--brand); color: var(--cream); box-shadow: 0 1px 0 rgba(27, 16, 10, 0.2); }
.btn--solid:hover { background: var(--brand-deep); box-shadow: 0 10px 24px -10px rgba(158, 69, 23, 0.6); }
.btn--gold { background: var(--gold); color: var(--umber-deep); }
.btn--gold:hover { background: #D3AC55; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45); }

.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem; color: var(--brand); padding-bottom: 3px;
}
.link-arrow::after { content: '→'; transition: transform 0.3s var(--ease-out); }
.link-arrow::before {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform-origin: right; transition: transform 0.4s var(--ease-out);
}
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow:hover::before { transform: scaleX(0.25); }
.link-arrow--light { color: var(--sand); }

/* Sunburst — gold radial mark */
.sunburst { overflow: visible; }
.sunburst line { stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; }

/* Arched image frame — recurring motif */
.arch {
  position: relative; overflow: hidden;
  border-radius: 100vmax 100vmax 18px 18px; background: var(--cream-soft);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem; background: var(--umber);
}
.preloader-mark { position: relative; width: 130px; height: 130px; display: grid; place-items: center; }
.sunburst--loader { position: absolute; inset: 0; width: 100%; height: 100%; }
.preloader-letter {
  font-family: var(--font-serif-accent); font-style: italic;
  font-size: 3.4rem; color: var(--brand); transform: translateY(-4px);
}
.preloader-tag {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.04em;
  color: var(--cream); opacity: 0.85;
}
.preloader.is-done { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  transition: background-color 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.is-scrolled {
  /* Solid (no backdrop-filter): a filtered ancestor becomes the containing
     block for the fixed mobile drawer, which broke the menu. Keeping the
     header free of filters/transforms guarantees the drawer covers the
     viewport. */
  background: var(--cream);
  box-shadow: 0 2px 14px rgba(46, 28, 16, 0.12);
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.nav-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav-badge {
  height: 46px; width: 46px; border-radius: 12px; object-fit: cover;
  flex: none; transition: height 0.4s, width 0.4s;
}
.nav.is-scrolled .nav-badge { height: 38px; width: 38px; }
.wordmark-sm {
  font-family: var(--font-display); font-weight: 500; font-size: 1.5rem;
  color: var(--brand); letter-spacing: 0.01em; line-height: 1;
  transition: font-size 0.4s;
}
.wordmark-sm span { color: var(--ink); }
.nav.is-scrolled .wordmark-sm { font-size: 1.3rem; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a { position: relative; font-size: 0.92rem; font-weight: 500; color: var(--umber-deep); }
.nav-links > a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links > a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 0.7rem 1.5rem; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: clamp(6.5rem, 12vh, 9rem) var(--gutter) 0;
}
.hero-inner {
  flex: 1; display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  max-width: 1360px; width: 100%; margin: 0 auto;
}
.hero-eyebrow { margin-bottom: 1.6rem; }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.2rem, 8.5vw, 7.4rem); line-height: 0.98;
  letter-spacing: -0.015em; color: var(--umber-deep); margin-bottom: 1.8rem;
}
.hero-title em { color: var(--brand); }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-inner { display: inline-block; will-change: transform; }
.hero-lede {
  max-width: 34rem; font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: var(--ink-soft); margin-bottom: 2.4rem;
}
.hero-cta { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.hero-media { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.arch--hero { aspect-ratio: 4 / 5.1; max-height: 72vh; width: 100%; }
.arch--hero img { transform: scale(1.06); }
.sunburst--hero { position: absolute; top: 2%; left: -3.5rem; width: 130px; height: 130px; z-index: 1; opacity: 0.9; }
.hero-caption {
  margin-top: 0.9rem; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); text-align: right;
}
.hero-meta {
  display: flex; justify-content: space-between; gap: 1rem;
  max-width: 1360px; width: 100%; margin: 2.5rem auto 0; padding: 1.1rem 0 1.3rem;
  border-top: 1px solid rgba(46, 28, 16, 0.16);
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}
.hero-meta a:hover { color: var(--brand); }

/* ---------- Philosophy / approach ---------- */
.philosophy { position: relative; background: var(--umber); color: var(--cream); padding: clamp(6rem, 14vh, 10rem) var(--gutter); }
.philosophy::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
}
.philosophy-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.philosophy .eyebrow { margin-bottom: 2.2rem; }
.philosophy-quote {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.5rem); line-height: 1.18; letter-spacing: 0.005em; margin-bottom: 2.2rem;
}
.philosophy-quote .w { opacity: 0.18; transition: opacity 0.35s linear; }
.philosophy-quote .w.is-lit { opacity: 1; }
.philosophy-body { max-width: 620px; margin: 0 auto 4.5rem; color: rgba(250, 245, 236, 0.78); font-size: 1.02rem; }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: left;
  border-top: 1px solid var(--gold-soft); padding-top: 2.2rem;
}
.pillars li { padding-right: 1rem; }
.pillar-num {
  display: block; font-family: var(--font-serif-accent); font-style: italic;
  font-size: 1.5rem; color: var(--gold); margin-bottom: 0.5rem;
}
.pillars p { font-size: 0.92rem; color: rgba(250, 245, 236, 0.72); }

/* ---------- Services ---------- */
.services { padding: clamp(6rem, 13vh, 9rem) var(--gutter) clamp(4rem, 9vh, 7rem); max-width: 1360px; margin: 0 auto; }
.services-head { margin-bottom: clamp(3rem, 7vh, 5rem); }
.services-head .eyebrow { margin-bottom: 1.2rem; }
.services-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; color: var(--umber-deep);
}
.services-title em { color: var(--brand); }

.preview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.6vw, 2rem);
  max-width: 1360px; margin: 0 auto;
}
.preview-card { display: flex; flex-direction: column; }
.preview-media {
  overflow: hidden; border-radius: 100vmax 100vmax 14px 14px;
  aspect-ratio: 3 / 4; margin-bottom: 1rem; background: var(--cream-soft);
}
.preview-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.85s var(--ease-out); }
.preview-card:hover .preview-media img { transform: scale(1.05); }
.preview-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--umber-deep); margin-bottom: 0.3rem;
}
.preview-card p { font-size: 0.9rem; color: var(--ink-soft); }

.center-cta { text-align: center; padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) 0; }

/* ---------- Ticker ---------- */
.ticker { background: var(--sand); padding: 1.35rem 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; animation: ticker 40s linear infinite; }
.ticker-track span { font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.7rem); color: var(--umber); letter-spacing: 0.02em; }
.ticker-track i { font-style: normal; color: var(--brand); padding: 0 1.1rem; font-size: 0.8em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Duo ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); max-width: 1360px; margin: 0 auto; padding: clamp(5rem, 12vh, 8.5rem) var(--gutter); }
.duo-card { display: flex; flex-direction: column; }
.duo-media { overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; margin-bottom: 1.8rem; }
.duo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.duo-card:hover .duo-media img { transform: scale(1.045); }
.duo-body .eyebrow { margin-bottom: 0.9rem; }
.duo-body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--umber-deep); margin-bottom: 0.8rem; }
.duo-body p { color: var(--ink-soft); font-size: 0.98rem; max-width: 30rem; margin-bottom: 1.4rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; padding: clamp(5rem, 12vh, 8rem) var(--gutter); }
.faq-head { text-align: center; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.faq-head .eyebrow { display: inline-flex; margin-bottom: 1rem; }
.faq-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.2rem); color: var(--umber-deep); }
.faq-item { border-top: 1px solid rgba(46, 28, 16, 0.18); }
.faq-item:last-child { border-bottom: 1px solid rgba(46, 28, 16, 0.18); }
.faq-item > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0;
  font-size: clamp(1.02rem, 2vw, 1.28rem); font-weight: 500; color: var(--umber-deep);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--brand); border-radius: 2px; transition: transform 0.4s var(--ease-out); }
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 1.6px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; width: 1.6px; height: 100%; transform: translateX(-50%); }
.faq-item[open] .faq-icon::after { transform: translateX(-50%) scaleY(0); }
.faq-a { padding: 0 0 1.7rem; color: var(--ink-soft); font-size: 1rem; max-width: 62ch; }
.faq-a a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Quote band (signup) ---------- */
.signup { background: var(--sand); padding: clamp(3.5rem, 9vh, 6rem) var(--gutter); text-align: center; }
.signup-inner { max-width: 620px; margin: 0 auto; }
.signup h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--umber-deep); margin: 0.8rem 0 0.9rem; }
.signup p { color: var(--ink-soft); margin-bottom: 2rem; }
.signup-form { display: flex; gap: 0.7rem; max-width: 540px; margin: 0 auto; flex-wrap: wrap; }
.signup-form input {
  flex: 1; min-width: 0; padding: 0.95rem 1.3rem;
  border: 1px solid rgba(46, 28, 16, 0.28); border-radius: 99px; background: var(--cream);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
}
.quote-form input { flex: 1 1 40%; }
.signup-form input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.signup-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--brand); min-height: 1.2em; }
.signup-alt { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-soft); }
.signup-alt a { color: var(--brand); font-weight: 600; }

/* ---------- Visit / footer ---------- */
.visit { position: relative; background: var(--umber-deep); color: var(--cream); text-align: center; padding: clamp(6rem, 14vh, 10rem) var(--gutter) clamp(1.75rem, 4vh, 2.75rem); overflow: hidden; }
.sunburst--visit { position: absolute; top: clamp(2rem, 6vh, 4rem); left: 50%; transform: translateX(-50%); width: 90px; height: 90px; opacity: 0.55; }
.visit-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.98; margin-bottom: 2.4rem; }
.visit-title em { color: var(--gold); }
.visit-cta { display: flex; flex-direction: column; align-items: center; gap: 1.7rem; }
.visit-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  max-width: 1100px; margin: clamp(4rem, 9vh, 6.5rem) auto 0; padding-top: 2.6rem;
  border-top: 1px solid var(--gold-soft); text-align: left;
}
.visit-grid h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.visit-grid p { font-size: 0.95rem; color: rgba(250, 245, 236, 0.8); margin-bottom: 0.6rem; }
.visit-grid a:hover { color: var(--gold); }
.visit-wordmark {
  font-family: var(--font-display); font-size: clamp(5.5rem, 21vw, 20rem); line-height: 0.86;
  letter-spacing: -0.01em; color: transparent; -webkit-text-stroke: 1px var(--gold-soft);
  user-select: none; margin-top: clamp(2.5rem, 7vh, 4.5rem); margin-bottom: clamp(0.5rem, 2.5vh, 1.75rem);
}
.footer {
  position: relative; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 1360px; margin: 0 auto; padding: 1.4rem 0 1.6rem;
  border-top: 1px solid rgba(250, 245, 236, 0.14); font-size: 0.8rem; color: rgba(250, 245, 236, 0.55);
}
.footer-note { color: rgba(195, 154, 61, 0.8); }

[data-reveal] { opacity: 1; }

/* ---------- Nav: hamburger + mobile drawer ---------- */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 11px 10px; background: none; border: none; cursor: pointer; z-index: 60;
}
.nav-toggle span { display: block; width: 100%; height: 1.6px; background: var(--umber-deep); border-radius: 2px; transition: transform 0.4s var(--ease-out), opacity 0.25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
.nav-cta--mobile { display: none; }
body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .nav-links { gap: 1.6rem; } }
@media (max-width: 960px) {
  .hero { padding-top: 6.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-media { max-width: 480px; }
  .arch--hero { aspect-ratio: 4 / 4.4; }
  .sunburst--hero { left: auto; right: -1.5rem; top: -2.5rem; width: 100px; height: 100px; }
  .hero-meta { flex-direction: column; gap: 0.4rem; }
  .pillars { grid-template-columns: 1fr; gap: 1.6rem; }
  .duo { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav > .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 0.2rem; padding: 2rem var(--gutter); background: var(--umber);
    transform: translateX(100%); transition: transform 0.55s var(--ease-out); z-index: 55;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 8vw, 3rem); color: var(--cream); padding: 0.3rem 0; }
  .nav-links > a::after { display: none; }
  .nav-toggle.is-open span { background: var(--cream); }
  .nav-cta--mobile { display: inline-flex; margin-top: 1.6rem; font-family: var(--font-body); font-size: 0.95rem; background: var(--gold); color: var(--umber-deep); }
}
@media (max-width: 520px) {
  .visit-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-cta { gap: 1.2rem; }
  .btn { padding: 0.85rem 1.6rem; }
  .preview-grid { grid-template-columns: 1fr; }
  .signup-form { flex-direction: column; }
  .signup-form .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preloader { display: none; }
  .ticker-track { animation: none; }
  .philosophy-quote .w { opacity: 1; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.15s !important; }
}
