/* ============================================================
   Webaze main.css
   - Design tokens + component styles for home + product pages.
   - Ported from webaze-redesign/Website.html + Webaze Mask.html.
   ============================================================ */

:root {
  --bone: #f2efe6;
  --cream: #faf7ef;
  --sand: #e3dcc6;
  --forest: #2d4a3a;
  --moss: #4a6b52;
  --sage: #8aa085;
  --sun: #d99748;
  --ember: #e5b46a;
  --espresso: #1f2621;
  --ink: #1a1f1b;
  --mute: rgba(31, 38, 33, 0.6);
  --hair: rgba(31, 38, 33, 0.12);
  --mx: 0;
  --my: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body {
  margin: 0; padding: 0;
  background: var(--bone); color: var(--espresso);
  font-family: 'Inter Tight', sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
a { color: inherit; }
img, svg { max-width: 100%; }

/* ─── Nav ─── */
header.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--bone) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
header.nav.dark {
  background: color-mix(in oklab, var(--forest) 88%, transparent);
  border-bottom-color: rgba(250, 247, 239, 0.1);
  color: var(--cream);
}
header.nav .bar { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; gap: 16px; }
header.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
header.nav .brand .wordmark { white-space: nowrap; }
header.nav .brand .wordmark { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -0.035em; line-height: 1; color: var(--espresso); }
header.nav.dark .brand .wordmark { color: var(--cream); }
header.nav .links { display: flex; gap: 4px; }
header.nav .links a {
  text-decoration: none; font-size: 14px; padding: 8px 14px;
  border-radius: 999px; opacity: 0.7;
  transition: background .15s, opacity .15s;
}
header.nav .links a:hover { background: var(--sand); opacity: 1; }
header.nav.dark .links a:hover { background: rgba(250, 247, 239, 0.1); }
header.nav .nav-book {
  text-decoration: none; padding: 10px 14px; border-radius: 999px;
  font-size: 14px; opacity: 0.7; white-space: nowrap;
  transition: opacity .15s, background .15s;
}
header.nav .nav-book:hover { opacity: 1; background: var(--sand); }
header.nav .cta {
  background: var(--espresso); color: var(--cream);
  text-decoration: none; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .15s;
}
header.nav .cta:hover { background: var(--forest); }
header.nav.dark .cta { background: var(--ember); color: var(--espresso); }
header.nav.dark .cta:hover { background: var(--sun); }
header.nav .back {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7;
  text-decoration: none; white-space: nowrap;
}
header.nav .back:hover { opacity: 1; }

/* ─── Sections ─── */
section.s { padding: 104px 0; border-bottom: 1px solid var(--hair); }
section.s:last-of-type { border-bottom: none; }
section.s.dark { background: var(--forest); color: var(--cream); border-bottom-color: rgba(250, 247, 239, 0.08); border-top: 1px solid rgba(250, 247, 239, 0.08); }
section.s.bone { background: var(--bone); color: var(--espresso); }
section.s.cream { background: var(--cream); color: var(--espresso); }
/* Inside light sections, force readable text only on the section-level chrome —
   never blanket-override children of cards that set their own (e.g. .path.dark, .product). */
section.s.bone .s-head h2, section.s.cream .s-head h2,
section.s.bone .s-head .intro, section.s.cream .s-head .intro,
section.s.bone .step h4, section.s.bone .step p,
section.s.cream .cta-final h2, section.s.cream .cta-final p { color: var(--espresso); }

.eye {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute);
}
.eye.f { color: var(--forest); }
.eye.s { color: var(--sun); }
.eye.e { color: var(--ember); }

.s-head { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; margin-bottom: 64px; align-items: start; }
.s-head h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 48px; letter-spacing: -0.03em; line-height: 1.05; margin: 14px 0 0; max-width: 12ch; }
.s-head h2 em { font-style: italic; color: var(--forest); }
section.s.dark .s-head h2 em { color: var(--ember); }
.s-head .intro { font-family: 'Newsreader', serif; font-size: 19px; line-height: 1.6; opacity: 0.82; max-width: 58ch; }

/* ─── Buttons ─── */
.btn-primary {
  background: var(--forest); color: var(--cream); text-decoration: none;
  padding: 14px 24px; border-radius: 999px; font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--espresso); }
section.s.dark .btn-primary,
body.is-dark section.s:not(.bone):not(.cream) .btn-primary,
body.is-dark .hero .btn-primary { background: var(--ember); color: var(--espresso); }
section.s.dark .btn-primary:hover,
body.is-dark section.s:not(.bone):not(.cream) .btn-primary:hover,
body.is-dark .hero .btn-primary:hover { background: var(--sun); }
.btn-ghost {
  color: var(--espresso); text-decoration: none; padding: 14px 22px;
  border-radius: 999px; border: 1px solid var(--hair);
  font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, border-color .15s;
  background: transparent; cursor: pointer;
}
.btn-ghost:hover { background: var(--cream); border-color: var(--espresso); }
section.s.dark .btn-ghost,
body.is-dark section.s:not(.bone):not(.cream) .btn-ghost,
body.is-dark .hero .btn-ghost { color: var(--cream); border-color: rgba(250, 247, 239, 0.2); }
section.s.dark .btn-ghost:hover,
body.is-dark section.s:not(.bone):not(.cream) .btn-ghost:hover,
body.is-dark .hero .btn-ghost:hover { background: transparent; border-color: var(--ember); }

/* ─── Hero — centered ─── */
.hero { padding: 140px 0 120px; position: relative; overflow: hidden; }
.hero h1.big {
  font-family: 'Fraunces', serif; font-weight: 400; font-style: italic;
  font-size: clamp(56px, 9vw, 132px); letter-spacing: -0.035em; line-height: 0.98;
  margin: 32px auto; text-align: center; max-width: 14ch;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero h1.big em { font-style: normal; color: var(--sun); }
.hero .lede.center { font-family: 'Newsreader', serif; font-size: 22px; line-height: 1.5; text-align: center; max-width: 52ch; margin: 0 auto 48px; opacity: 0.82; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-mark { position: relative; display: flex; justify-content: center; align-items: center; margin: 0 auto 8px; width: 80px; height: 80px; }
.hero-mark > svg { position: relative; z-index: 1; animation: breathe 7s ease-in-out infinite; }
.hero-mark-glow {
  position: absolute; left: 50%; top: 50%;
  width: 200px; height: 200px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217, 151, 72, 0.42), rgba(217, 151, 72, 0) 60%);
  filter: blur(14px); opacity: 0.7;
  animation: halo 6s ease-in-out infinite; z-index: 0;
}
.hero-status {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-top: 32px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute);
}
.hero-status .blip {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.72 0.14 145);
  box-shadow: 0 0 0 0 oklch(0.72 0.14 145 / 0.5);
  animation: blip 2.6s ease-in-out infinite;
}

/* ─── Hero — split ─── */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; border-bottom: 1px solid var(--hair); }
.hero-split .col { padding: 96px 56px; display: flex; flex-direction: column; justify-content: center; min-height: 600px; }
.hero-split .col.studio { background: var(--bone); }
.hero-split .col.product { background: var(--forest); color: var(--cream); }
.hero-split .col h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(40px, 4.5vw, 64px); letter-spacing: -0.03em; line-height: 1.02; margin: 24px 0 20px; max-width: 14ch; }
.hero-split .col h2 em { font-style: italic; }
.hero-split .col.product h2 em { color: var(--ember); }
.hero-split .col.studio h2 em { color: var(--forest); }
.hero-split .col p { font-family: 'Newsreader', serif; font-size: 19px; line-height: 1.55; opacity: 0.85; max-width: 48ch; margin: 0 0 32px; }

/* ─── Hero — quiet ─── */
.hero-quiet { padding: 160px 0 140px; }
.hero-quiet .mark-row { display: flex; align-items: center; gap: 32px; margin-bottom: 56px; }
.hero-quiet h1 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(48px, 6.5vw, 88px); letter-spacing: -0.028em; line-height: 1.04; margin: 0 0 32px; max-width: 20ch; }
.hero-quiet h1 em { font-style: italic; color: var(--forest); }
.hero-quiet .lede { font-family: 'Newsreader', serif; font-size: 22px; line-height: 1.55; max-width: 60ch; opacity: 0.8; margin: 0 0 44px; }

/* ─── Two paths ─── */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.path { padding: 44px; border-radius: 20px; border: 1px solid var(--hair); background: var(--cream); display: flex; flex-direction: column; min-height: 360px; text-decoration: none; color: inherit; transition: transform .3s ease, box-shadow .3s ease; }
.path:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31, 38, 33, 0.06); }
.path.dark { background: var(--espresso); color: var(--cream); border-color: transparent; }
.path .icon { font-size: 28px; margin-bottom: 8px; }
.path h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 32px; letter-spacing: -0.025em; line-height: 1.18; margin: 20px 0 14px; }
.path p { font-family: 'Newsreader', serif; font-size: 18px; line-height: 1.55; opacity: 0.8; margin: 0 0 20px; max-width: 42ch; }
.path .arrow { margin-top: auto; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; display: inline-flex; align-items: center; gap: 8px; }
.path:hover .arrow { opacity: 1; }

/* ─── Services ─── */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service { padding: 36px; border-radius: 18px; background: var(--cream); border: 1px solid var(--hair); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31, 38, 33, 0.06); border-color: var(--sand); }
.service.wide { grid-column: span 2; padding: 44px; background: linear-gradient(135deg, var(--cream) 0%, color-mix(in oklab, var(--sun) 6%, var(--cream)) 100%); border-color: color-mix(in oklab, var(--sun) 20%, var(--hair)); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.service.wide h4 { font-size: 34px; }
.service.wide p { font-size: 17px; line-height: 1.55; }
.service-bullets { margin: 0; padding: 0; list-style: none; }
.service.wide .service-bullets { align-self: stretch; border-left: 1px solid color-mix(in oklab, var(--sun) 25%, var(--hair)); padding-left: 28px; }
.service.wide .service-bullets li { position: relative; padding: 10px 0 10px 26px; font-size: 15px; line-height: 1.5; opacity: 0.85; border-bottom: 1px solid rgba(31, 38, 33, 0.06); }
.service.wide .service-bullets li:last-child { border-bottom: none; }
.service.wide .service-bullets li::before { content: '↳'; position: absolute; left: 0; top: 10px; color: var(--sun); font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.service .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em; color: var(--sun); }
.service h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 28px; margin: 14px 0 12px; letter-spacing: -0.02em; }
.service p { font-size: 15.5px; line-height: 1.6; opacity: 0.78; margin: 0; }

/* ─── Cases ─── */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case { padding: 28px; border: 1px solid var(--hair); border-radius: 16px; background: var(--cream); display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
a.case:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31, 38, 33, 0.06); border-color: var(--sand); }
.case .logo { width: 100%; aspect-ratio: 16/9; background: var(--bone); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-style: italic; font-size: 28px; color: var(--forest); letter-spacing: -0.02em; border: 1px solid var(--hair); overflow: hidden; padding: 18px 28px; }
.case .logo img,
.case .logo svg { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.case .logo svg { color: var(--forest); }
.case .kind { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; color: var(--mute); text-transform: uppercase; }
.case h5 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; margin: 0; letter-spacing: -0.02em; }
.case p { font-size: 14.5px; line-height: 1.55; opacity: 0.75; margin: 0; }
.case a { text-decoration: none; color: inherit; }

/* ─── Products grid ─── */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product { padding: 36px; border-radius: 18px; border: 1px solid var(--hair); background: var(--cream); position: relative; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.product:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(31, 38, 33, 0.08); }
.product.is-soon { opacity: 0.92; }
.product.is-soon:hover { transform: none; box-shadow: none; cursor: default; }
.product .badge { position: absolute; top: 16px; right: 16px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; background: var(--sand); color: var(--espresso); padding: 5px 10px; border-radius: 999px; }
.product .pmark { width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-style: italic; font-size: 40px; font-weight: 500; background: rgba(229, 180, 106, 0.15); color: var(--sun); transition: transform .4s ease; }
.product:hover .pmark { transform: translateY(-4px) scale(1.04); }
.product h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 30px; margin: 0; letter-spacing: -0.025em; }
.product h4 .parent { font-family: 'Inter Tight', sans-serif; font-size: 14px; font-weight: 500; color: var(--mute); display: block; letter-spacing: -0.02em; margin-bottom: 4px; font-style: normal; }
.product .line { font-family: 'Fraunces', serif; font-style: italic; font-size: 17px; opacity: 0.78; line-height: 1.4; }
.product .desc { font-size: 14.5px; line-height: 1.55; opacity: 0.72; }
.product .go { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest); margin-top: auto; }

/* Inline newsletter signup on product cards. */
.product.has-form { cursor: default; }
.product.has-form:hover { transform: none; box-shadow: none; }
.product-signup { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--hair); }
.product-signup input[type="email"] { background: var(--bone); border: 1px solid var(--hair); color: var(--espresso); padding: 10px 14px; border-radius: 999px; font-family: 'Inter Tight', sans-serif; font-size: 14px; outline: none; transition: border-color .15s; }
.product-signup input[type="email"]::placeholder { color: var(--mute); }
.product-signup input[type="email"]:focus { border-color: var(--forest); }
.product-signup button { background: var(--forest); color: var(--cream); border: none; padding: 10px 14px; border-radius: 999px; font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s; }
.product-signup button:hover { background: var(--espresso); }

/* Newsletter block (home + product detail). Compact, side-by-side on desktop. */
section.s.newsletter-block { padding-top: 56px; padding-bottom: 56px; background: var(--cream); color: var(--espresso); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.newsletter-block__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.newsletter-block__head { display: flex; align-items: flex-start; gap: 16px; }
.newsletter-block__head > div { flex: 1; min-width: 0; }
.newsletter-block__heading { font-family: 'Fraunces', serif; font-weight: 400; font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0 8px; }
.newsletter-block__heading em { font-style: italic; color: var(--forest); }
.newsletter-block__body { font-family: 'Newsreader', serif; font-size: 16px; line-height: 1.5; opacity: 0.78; margin: 0; max-width: 50ch; }
.newsletter-block__form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-block__form .signup { max-width: 100%; margin: 0; }
.newsletter-block__form .signup input[type="email"] { background: var(--bone); border: 1px solid var(--hair); color: var(--espresso); }
.newsletter-block__form .signup input[type="email"]::placeholder { color: var(--mute); }
.newsletter-block__form .signup button { background: var(--forest); color: var(--cream); }
.newsletter-block__form .signup button:hover { background: var(--espresso); }
.newsletter-block__fineprint, .newsletter-block__hint { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin: 0; line-height: 1.6; }

@media (max-width: 760px) {
  section.s.newsletter-block { padding-top: 48px; padding-bottom: 48px; }
  .newsletter-block__inner { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-block__heading { font-size: 26px; }
}

/* Newsletter response message (used by signupCta + product card). */
.newsletter-msg { font-family: 'Inter Tight', sans-serif; font-size: 14px; line-height: 1.5; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; }
.newsletter-msg.is-success { background: rgba(217, 151, 72, 0.15); color: var(--forest); }
.newsletter-msg.is-error { background: rgba(255, 100, 100, 0.12); color: #b03a3a; }
.newsletter-form.is-loading button { opacity: 0.6; pointer-events: none; }

/* ─── About ─── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about .photo {
  aspect-ratio: 4/5; border-radius: 16px; border: 1px solid var(--hair);
  background:
    radial-gradient(circle at 50% 40%, rgba(217, 151, 72, 0.3), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(45, 74, 58, 0.08) 9px 10px),
    var(--cream);
  display: flex; align-items: flex-end; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
  padding: 24px; overflow: hidden;
}
.about .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.about h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 40px; letter-spacing: -0.025em; line-height: 1.1; margin: 14px 0 20px; }
.about h3 em { font-style: italic; color: var(--forest); }
.about p { font-family: 'Newsreader', serif; font-size: 19px; line-height: 1.6; opacity: 0.85; margin: 0 0 16px; }
.about blockquote { font-family: 'Fraunces', serif; font-style: italic; font-size: 24px; line-height: 1.4; margin: 28px 0 0; padding-left: 20px; border-left: 3px solid var(--sun); }

/* ─── Contact ─── */
.contact-box { background: var(--espresso); color: var(--cream); border-radius: 24px; padding: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-box.single { grid-template-columns: 1fr; }
.contact-box h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 52px; letter-spacing: -0.03em; line-height: 1.02; margin: 20px 0; }
.contact-box h3 em { color: var(--ember); font-style: italic; }
.contact-box p { font-family: 'Newsreader', serif; font-size: 19px; opacity: 0.75; line-height: 1.55; margin: 0; max-width: 38ch; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250, 247, 239, 0.6); }
.contact-form input, .contact-form textarea { background: transparent; border: none; border-bottom: 1px solid rgba(250, 247, 239, 0.2); color: var(--cream); font-family: 'Inter Tight', sans-serif; font-size: 16px; padding: 14px 0; outline: none; transition: border-color .15s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(250, 247, 239, 0.5); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ember); }
.contact-form textarea { resize: vertical; min-height: 80px; font-family: 'Inter Tight', sans-serif; }
.contact-form button { background: var(--ember); color: var(--espresso); border: none; padding: 14px 20px; border-radius: 999px; font-family: 'Inter Tight', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 8px; align-self: flex-start; transition: background .15s; }
.contact-form button:hover { background: var(--sun); }
.honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.form-success, .form-error, .form-notice { font-family: 'Inter Tight', sans-serif; font-size: 14px; padding: 12px 16px; border-radius: 8px; margin: 0 0 8px; }
.form-success { background: rgba(229, 180, 106, 0.15); color: var(--ember); }
.form-error { background: rgba(255, 100, 100, 0.15); color: #ffb3b3; }
.form-notice { background: rgba(250, 247, 239, 0.08); }
.form-errors { list-style: none; padding: 0; margin: 4px 0 0; font-size: 12px; color: #ffb3b3; }

/* ─── Booking card ─── */
.book-card { background: rgba(250, 247, 239, 0.04); border: 1px solid rgba(250, 247, 239, 0.1); border-radius: 16px; padding: 28px; margin-top: 28px; }
.book-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.book-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(229, 180, 106, 0.2); animation: pulse 2.4s ease-in-out infinite; }
.book-dot-sm { width: 4px; height: 4px; border-radius: 50%; background: rgba(250, 247, 239, 0.4); display: inline-block; }
.book-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 28px; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 10px; color: var(--cream); }
.book-title em { font-style: italic; color: var(--ember); font-weight: 400; }
.book-sub { font-family: 'Newsreader', serif; font-size: 16px; line-height: 1.5; opacity: 0.75; margin-bottom: 20px; max-width: 40ch; }
.book-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; background: var(--cream); color: var(--espresso); text-decoration: none; padding: 16px 22px; border-radius: 12px; font-family: 'Inter Tight', sans-serif; font-size: 16px; font-weight: 500; transition: background .15s, transform .15s; }
.book-btn:hover { background: var(--ember); transform: translateY(-1px); }
.book-btn .book-arrow { font-size: 20px; transition: transform .2s; }
.book-btn:hover .book-arrow { transform: translateX(4px); }
.book-times { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250, 247, 239, 0.5); }
.book-meta-head { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }

/* ─── CTA block ─── */
.cta-final { text-align: center; padding-top: 140px; padding-bottom: 140px; }
.cta-final h2 { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.035em; line-height: 1.02; margin: 20px auto 28px; max-width: 18ch; }
.cta-final h2 em { font-style: normal; color: var(--forest); }
section.s.dark .cta-final h2 em { color: var(--ember); }
/* Dark-page (product detail): cta-final inside any plain section.s should read on forest. */
body.is-dark section.s:not(.bone):not(.cream) .cta-final h2 { color: var(--cream); }
body.is-dark section.s:not(.bone):not(.cream) .cta-final h2 em { color: var(--ember); }
body.is-dark section.s:not(.bone):not(.cream) .cta-final p { color: var(--cream); opacity: 0.85; }
.cta-final p { font-family: 'Newsreader', serif; font-size: 20px; line-height: 1.55; opacity: 0.8; max-width: 46ch; margin: 0 auto 40px; }

/* ─── Product page — problem grid ─── */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
section.s.dark .problem { padding: 32px; border: 1px solid rgba(250, 247, 239, 0.12); border-radius: 16px; background: rgba(250, 247, 239, 0.04); }
.problem .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em; color: var(--ember); margin-bottom: 14px; }
.problem h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 26px; margin: 0 0 12px; letter-spacing: -0.02em; }
.problem p { font-family: 'Inter Tight', sans-serif; font-size: 15px; line-height: 1.55; opacity: 0.78; margin: 0; }

/* ─── How it works (steps) ─── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step .n { font-family: 'Fraunces', serif; font-style: italic; font-size: 80px; line-height: 1; color: var(--forest); opacity: 0.25; margin-bottom: 14px; }
.step h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 28px; margin: 0 0 14px; letter-spacing: -0.02em; }
.step p { font-family: 'Newsreader', serif; font-size: 17px; line-height: 1.55; opacity: 0.78; margin: 0; }

/* ─── Features ─── */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { padding: 32px; border: 1px solid var(--hair); border-radius: 16px; background: var(--cream); }
section.s.dark .feature { border-color: rgba(250, 247, 239, 0.12); background: rgba(250, 247, 239, 0.04); color: var(--cream); }
.feature .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 14px; margin-bottom: 18px; }
section.s.dark .feature .tick { background: var(--ember); color: var(--espresso); }
.feature h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 24px; margin: 0 0 10px; letter-spacing: -0.02em; }
.feature p { font-size: 15px; line-height: 1.55; opacity: 0.78; margin: 0; }

/* ─── FAQ ─── */
.faq { max-width: 760px; }
.faq details { padding: 24px 0; border-bottom: 1px solid var(--hair); cursor: pointer; }
section.s.dark .faq details { border-bottom-color: rgba(250, 247, 239, 0.12); }
.faq details[open] { padding-bottom: 28px; }
.faq summary { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; letter-spacing: -0.015em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'Fraunces', serif; font-size: 28px; opacity: 0.5; transition: transform .2s, opacity .2s; }
.faq details[open] summary::after { transform: rotate(45deg); opacity: 1; }
.faq details p { font-family: 'Newsreader', serif; font-size: 18px; line-height: 1.55; margin: 16px 0 0; opacity: 0.8; max-width: 60ch; }

/* ─── Signup CTA ─── */
.signup { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.signup input { flex: 1; background: rgba(250, 247, 239, 0.08); border: 1px solid rgba(250, 247, 239, 0.15); color: var(--cream); padding: 14px 18px; border-radius: 999px; font-family: 'Inter Tight', sans-serif; font-size: 15px; outline: none; transition: border-color .15s; }
.signup input::placeholder { color: rgba(250, 247, 239, 0.5); }
.signup input:focus { border-color: var(--ember); }
.signup button { background: var(--ember); color: var(--espresso); border: none; padding: 14px 20px; border-radius: 999px; font-family: 'Inter Tight', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; }
.cta-final .signup input { background: var(--cream); border-color: var(--hair); color: var(--espresso); }
.cta-final .signup input::placeholder { color: var(--mute); }

/* ─── Footer ─── */
footer.f { padding: 64px 0 56px; border-top: 1px solid var(--hair); background: var(--bone); }
footer.f.dark { background: var(--espresso); color: var(--cream); border-top-color: rgba(250, 247, 239, 0.08); }
footer.f .row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
footer.f .brand { display: flex; align-items: center; gap: 12px; }
footer.f .brand .wordmark { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 24px; letter-spacing: -0.035em; line-height: 1; color: var(--espresso); }
footer.f.dark .brand .wordmark { color: var(--cream); }
footer.f .mono { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.12em; color: var(--mute); line-height: 1.8; text-transform: uppercase; }
footer.f.dark .mono { color: rgba(250, 247, 239, 0.6); }
footer.f .cols { display: flex; gap: 56px; flex-wrap: wrap; }
footer.f .col h6 { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; font-weight: 500; }
footer.f .col a { display: block; color: inherit; text-decoration: none; font-size: 14.5px; padding: 4px 0; opacity: 0.8; }
footer.f .col a:hover { opacity: 1; }
footer.f .legal { font-size: 12.5px; opacity: 0.65; line-height: 1.7; max-width: 60ch; margin-top: 12px; }
footer.f .socials { display: flex; gap: 16px; margin-top: 12px; }
footer.f .socials a { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; text-decoration: none; }
footer.f .socials a:hover { opacity: 1; }

/* ─── Cookie banner ─── */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 640px; margin: 0 auto; background: var(--espresso); color: var(--cream); padding: 18px 22px; border-radius: 14px; box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; z-index: 30; font-size: 14px; }
.cookie-banner.is-hidden { display: none !important; }
.cookie-banner p { margin: 0; opacity: 0.85; flex: 1; min-width: 240px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { padding: 10px 18px; border-radius: 999px; font-weight: 500; font-family: inherit; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.cookie-btn--primary { background: var(--ember); color: var(--espresso); border-color: var(--ember); }
.cookie-btn--primary:hover { background: var(--sun); border-color: var(--sun); }
.cookie-btn--ghost { background: transparent; color: var(--cream); border-color: rgba(250, 247, 239, 0.3); }
.cookie-btn--ghost:hover { background: rgba(250, 247, 239, 0.08); border-color: var(--cream); }

/* ─── Animations ─── */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.035); opacity: 1; }
}
@keyframes halo {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
  50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 0.85; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(229, 180, 106, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(229, 180, 106, 0); }
}
@keyframes blip {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.72 0.14 145 / 0.5); }
  60%      { box-shadow: 0 0 0 10px oklch(0.72 0.14 145 / 0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── Ambient backdrop (centered hero) ─── */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg .sky-wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 520px 360px at 50% 22%, rgba(217, 151, 72, 0.18), transparent 65%),
    radial-gradient(ellipse 380px 260px at 50% 22%, rgba(229, 180, 106, 0.14), transparent 70%);
}
.hero-bg .aurora {
  position: absolute; left: 50%; top: 30px;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  pointer-events: none;
}
.hero-bg .aurora svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-bg .aurora .arc { opacity: 0; transform-origin: 300px 180px; transform-box: fill-box; }
.hero-bg .rays { position: absolute; left: 50%; top: 110px; width: 0; height: 0; pointer-events: none; }
.hero-bg .ray {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 180px;
  margin-left: -0.5px; margin-top: -200px;
  background: linear-gradient(to bottom, rgba(217, 151, 72, 0) 0%, rgba(217, 151, 72, 0.35) 35%, rgba(217, 151, 72, 0) 100%);
  transform-origin: 0.5px 200px;
  transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 22deg));
  opacity: 0;
}
.hero-bg .embers { position: absolute; inset: 0; overflow: hidden; }
.hero-bg .ember {
  position: absolute; left: var(--x); bottom: -10px;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 180, 106, 0.85), rgba(229, 180, 106, 0.15) 70%, transparent);
  opacity: 0;
}

@keyframes arcBreathe {
  0%, 100% { transform: scale(1); opacity: var(--o, 0.18); }
  50%      { transform: scale(1.04); opacity: calc(var(--o, 0.18) * 1.8); }
}
@keyframes skyBreathe { 0%, 100% { opacity: 0.88; } 50% { opacity: 1; } }
@keyframes rayPulse  { 0%, 100% { opacity: 0.08; } 50% { opacity: 0.45; } }
@keyframes emberRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}

/* Ambient mode gating */
body.amb-calm .hero-bg .rays,
body.amb-calm .hero-bg .embers { display: none; }
body.amb-calm .hero-bg .aurora .arc-1 { opacity: 0.12; animation: arcBreathe 10s ease-in-out infinite; }
body.amb-calm .hero-bg .aurora .arc-2,
body.amb-calm .hero-bg .aurora .arc-3,
body.amb-calm .hero-bg .aurora .arc-4 { display: none; }
body.amb-calm .hero-mark > svg { animation-duration: 9s; }

body.amb-drift .hero-bg .aurora .arc-1 { opacity: 0.22; animation: arcBreathe  9s ease-in-out infinite; }
body.amb-drift .hero-bg .aurora .arc-2 { opacity: 0.16; animation: arcBreathe 11s ease-in-out infinite -2s; }
body.amb-drift .hero-bg .aurora .arc-3 { opacity: 0.11; animation: arcBreathe 13s ease-in-out infinite -4s; }
body.amb-drift .hero-bg .aurora .arc-4 { opacity: 0.07; animation: arcBreathe 15s ease-in-out infinite -6s; }
body.amb-drift .hero-bg .sky-wash { animation: skyBreathe 12s ease-in-out infinite; }
body.amb-drift .hero-bg .ray { animation: rayPulse 7s ease-in-out infinite; animation-delay: calc(var(--i) * 0.35s); }
body.amb-drift .hero-bg .embers { display: none; }
body.amb-drift .hero-mark > svg { animation-duration: 7s; }

body.amb-embers .hero-bg .aurora .arc-1 { opacity: 0.22; animation: arcBreathe  9s ease-in-out infinite; }
body.amb-embers .hero-bg .aurora .arc-2 { opacity: 0.16; animation: arcBreathe 11s ease-in-out infinite -2s; }
body.amb-embers .hero-bg .aurora .arc-3 { opacity: 0.11; animation: arcBreathe 13s ease-in-out infinite -4s; }
body.amb-embers .hero-bg .ember { animation: emberRise var(--d, 10s) linear infinite; animation-delay: var(--delay, 0s); }

body.amb-reactive .hero-bg .sky-wash {
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 8px));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
body.amb-reactive .hero-mark {
  transform: translate(calc(var(--mx) * -8px), calc(var(--my) * -4px));
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
body.amb-reactive .hero-mark-glow {
  transform: translate(calc(-50% + (var(--mx) * 12px)), calc(-50% + (var(--my) * 8px)));
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
body.amb-reactive .hero-bg .aurora {
  transform: translateX(-50%) translate(calc(var(--mx) * -6px), calc(var(--my) * -3px));
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
body.amb-reactive .hero-bg .aurora .arc-1 { opacity: 0.22; animation: arcBreathe 10s ease-in-out infinite; }
body.amb-reactive .hero-bg .aurora .arc-2 { opacity: 0.14; animation: arcBreathe 13s ease-in-out infinite -3s; }
body.amb-reactive .hero-bg .aurora .arc-3 { opacity: 0.08; animation: arcBreathe 16s ease-in-out infinite -6s; }
body.amb-reactive .hero-bg .ray { opacity: 0.18; }
body.amb-reactive .hero-bg .embers { display: none; }

/* Idle aliveness across modes */
.btn-primary.shimmer { position: relative; overflow: hidden; }
.btn-primary.shimmer::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(250, 247, 239, 0.25), transparent);
  transform: skewX(-20deg);
  animation: shimmer 6s ease-in-out infinite; animation-delay: 2s;
}
@keyframes shimmer { 0%, 85%, 100% { left: -60%; } 92% { left: 120%; } }

header.nav .cta { position: relative; }
header.nav .cta::before {
  content: ''; position: absolute; inset: -2px; border-radius: 999px;
  border: 1px solid rgba(229, 180, 106, 0.5); opacity: 0;
  animation: ctaRing 5s ease-in-out infinite; animation-delay: 3s; pointer-events: none;
}
@keyframes ctaRing {
  0%, 80%, 100% { opacity: 0; transform: scale(1); }
  85%           { opacity: 1; transform: scale(1); }
  100%          { opacity: 0; transform: scale(1.2); }
}

.product .pmark { animation: markTilt 7s ease-in-out infinite; transform-origin: center; }
.product:nth-child(2) .pmark { animation-delay: -2.3s; }
.product:nth-child(3) .pmark { animation-delay: -4.6s; }
@keyframes markTilt { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(-1.2deg) translateY(-2px); } }
.product:hover .pmark { animation-play-state: paused; }

header.nav .links a { position: relative; }
header.nav .links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--sun); transform: scaleX(0); transform-origin: left center;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
header.nav .links a:hover::after { transform: scaleX(1); }

.book-btn .book-arrow { animation: arrowNudge 4s ease-in-out infinite; }
@keyframes arrowNudge { 0%, 90%, 100% { transform: translateX(0); } 95% { transform: translateX(4px); } }

.service .num { position: relative; }
.service .num::before {
  content: ''; position: absolute; left: -14px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%; background: var(--sun);
  transform: translateY(-50%); animation: numBlink 4s ease-in-out infinite;
}
.service:nth-child(2) .num::before { animation-delay: -1s; }
.service:nth-child(3) .num::before { animation-delay: -2s; }
.service:nth-child(4) .num::before { animation-delay: -3s; }
@keyframes numBlink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  header.nav .bar { padding-top: 16px; padding-bottom: 16px; }
  header.nav .links { display: none; }
  header.nav .nav-book { display: none; }

  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split .col { min-height: auto; padding: 72px 28px; }
  .hero-split .col h2 { font-size: clamp(34px, 8vw, 48px); }

  .hero { padding: 56px 0 80px; }
  .hero h1.big { font-size: clamp(40px, 9vw, 60px); }
  .hero-quiet { padding: 80px 0 72px; }
  .hero-quiet .mark-row { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .hero-quiet h1 { font-size: clamp(34px, 9vw, 52px); }

  section.s { padding: 72px 0; }
  .s-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .s-head h2 { font-size: 34px; }

  .paths, .services, .products, .cases, .problem-grid, .steps, .features { grid-template-columns: 1fr; }
  .service, .path { padding: 28px; }
  .service.wide { grid-column: span 1; grid-template-columns: 1fr; padding: 32px; gap: 24px; }
  .service.wide .service-bullets { border-left: none; border-top: 1px solid color-mix(in oklab, var(--sun) 25%, var(--hair)); padding-left: 0; padding-top: 12px; }

  .about { grid-template-columns: 1fr; gap: 32px; }
  .about .photo { max-width: 320px; }
  .about h3 { font-size: 30px; }
  .path h3 { font-size: 26px; }
  .product h4 { font-size: 26px; }
  .contact-box { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; border-radius: 20px; }
  .contact-box h3 { font-size: 36px; }

  footer.f .row { flex-direction: column; gap: 36px; }
  footer.f .cols { gap: 24px; width: 100%; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .hero-split .col { padding: 56px 24px; }
  .contact-box { padding: 28px 22px; }
  .book-card { padding: 22px; }
  .actions { width: 100%; }
  .actions .btn-primary, .actions .btn-ghost { flex: 1 1 auto; justify-content: center; }
  footer.f .cols { flex-direction: column; gap: 20px; }
  .signup { flex-direction: column; max-width: 100%; }
  .cta-final { padding-top: 96px; padding-bottom: 96px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1 1 auto; }
  /* Product detail hero: scale the letter-mark + product name stack on small screens. */
  .hero .wrap > div[style*="display:flex"][style*="align-items:center"][style*="gap:20px"] > div:first-child { width: 64px !important; height: 64px !important; font-size: 42px !important; border-radius: 16px !important; }
  .hero .wrap > div[style*="display:flex"][style*="align-items:center"][style*="gap:20px"] > div:last-child > div:last-child { font-size: 36px !important; }
}
