/* =====================================================================
   Darilux Studio — landing page (v0.2)
   Bright, airy, gallery-like. Warm white ground, ink type, logotype red
   used only as a small signal. Generous space; very little chrome.
   Type: Playfair Display (titles) · Liter (body) · DM Mono (tags)
         · Bodoni Moda italic (step numerals, pilot count)
   ===================================================================== */

:root {
  color-scheme: light;

  --ground: #fbf9f5;
  --ground-2: #f4efe7;
  --ground-3: #ebe4d8;
  --white: #ffffff;
  --ink: #1f1b16;
  --ink-2: #5d554b;
  --ink-3: #978d80;
  --rule: rgba(31, 27, 22, 0.11);
  --rule-strong: rgba(31, 27, 22, 0.22);
  --red: #b8392e;
  --red-hi: #a3302a;

  --f-display: "Playfair Display", "Didot", Georgia, "Times New Roman", serif;
  --f-body: "Liter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-numeral: "Bodoni Moda", "Didot", "Playfair Display", Georgia, serif;
  --brass: #b98a4e;

  --t-hero: clamp(2.7rem, 6vw, 5.6rem);
  --t-h2: clamp(2.1rem, 4.2vw, 3.6rem);
  --t-h3: 1.45rem;
  --t-body: 1.0625rem;
  --t-small: 0.9rem;
  --t-tag: 0.74rem;

  --gutter: clamp(16px, 5vw, 64px);
  --maxw: 1280px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
em.brand { font-style: italic; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--ground); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Tags (DM Mono) */
.tag {
  font-family: var(--f-mono); font-size: var(--t-tag); font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
  display: flex; align-items: center; gap: 10px; line-height: 1.5;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex: none; }
.tag--quiet { color: var(--ink-3); }
.tag--quiet::before, .caption::before, .venue__tags::before, .terms__k::before, .footer__k::before,
.poster__meta::before, .viewer__hint::before, .viewer__card-kicker::before, .footer__base::before,
.footer__brand .tag::before, .pilot__slots .tag::before { display: none; }

.caption { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-body); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); color: var(--ground); }
.btn--ink:hover { background: #3a332b; }
.btn--red { background: var(--red); color: #fffaf3; }
.btn--red:hover { background: var(--red-hi); }
.btn--line { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(184, 57, 46, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(184, 57, 46, 0); } }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font-size: 0.88rem; font-weight: 500; text-align: left; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule-strong); }
.linkbtn:hover { text-decoration-color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(251, 249, 245, 0);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.nav.is-solid { background: rgba(251, 249, 245, 0.9); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.nav__inner { max-width: var(--maxw); margin-inline: auto; padding: 20px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { color: var(--ink); display: block; }
.logotype { width: 120px; height: auto; aspect-ratio: 580.48 / 129.77; }
.logotype--lg { width: min(260px, 64vw); }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 0.93rem; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 1px solid var(--rule-strong); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__bars, .nav__bars::before, .nav__bars::after { position: absolute; left: 50%; width: 16px; height: 1.5px; background: var(--ink); transform: translateX(-50%); transition: transform .3s var(--ease); }
.nav__bars { top: 50%; }
.nav__bars::before, .nav__bars::after { content: ""; left: 0; transform: none; }
.nav__bars::before { top: -5px; }
.nav__bars::after { top: 5px; }
.nav.is-open .nav__bars { background: transparent; }
.nav.is-open .nav__bars::before { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero (text over the live capture) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(94vh, 920px); min-height: min(94svh, 920px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 130px; background: var(--ground-2);
}
.hero__stage { position: absolute; inset: 0; z-index: -1; }
.hero__canvas, .hero__fallback, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback {
  display: none;
  background:
    radial-gradient(22% 45% at 70% 52%, rgba(255, 236, 205, .95), transparent 70%),
    radial-gradient(8% 28% at 88% 45%, rgba(255, 255, 255, .8), transparent 70%),
    linear-gradient(180deg, #efe6d6, #d9c7ab);
}
.no-webgl .hero__fallback { display: block; }
.no-webgl .hero__canvas { display: none; }
.hero__shade {
  background:
    linear-gradient(180deg, rgba(251, 249, 245, .75) 0%, rgba(251, 249, 245, 0) 20%),
    linear-gradient(90deg, rgba(251, 249, 245, .94) 0%, rgba(251, 249, 245, .82) 30%, rgba(251, 249, 245, .35) 50%, rgba(251, 249, 245, 0) 66%),
    linear-gradient(0deg, var(--ground-2) 0%, rgba(244, 239, 231, 0) 22%);
}
.hero__content { display: grid; gap: 24px; padding-bottom: 20px; }
.hero__title { font-family: var(--f-display); font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.015em; font-weight: 400; max-width: 16ch; }
.hero__title em { font-style: italic; }
.hero__lede { color: var(--ink-2); font-size: 1.1rem; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__foot { display: flex; justify-content: flex-end; padding-bottom: 28px; }
.hero__foot .tag::before { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(96px, 12vw, 168px); }
.section--tint { background: var(--ground-2); }
.section__head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); max-width: 860px; }
.section__head h2, .pilot h2, .integrate h2, .faq h2 {
  font-family: var(--f-display); font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.01em;
}
.section__head--split { max-width: none; grid-template-columns: 1fr minmax(0, 400px); align-items: end; gap: 22px 64px; }
.section__title { display: grid; gap: 22px; }
.section__aside { color: var(--ink-2); }
.section__label { margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Demo / viewer ---------- */
.demo__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.viewer { margin: 0; }
.viewer__frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 100%;
  border-radius: var(--radius); overflow: hidden; background: var(--ground-3);
  box-shadow: 0 40px 80px -56px rgba(60, 42, 20, .5);
}
.viewer__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.viewer__canvas:active { cursor: grabbing; }
.viewer__poster { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg, #f1e9dc 0%, #e6d8c2 100%); transition: opacity .5s var(--ease); }
.viewer.is-live .viewer__poster { opacity: 0; pointer-events: none; }
.poster__arch {
  position: absolute; left: 50%; top: 12%; width: 24%; aspect-ratio: 1 / 1.35; transform: translateX(-50%);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #cbd6e4 0%, #fbe7c6 55%, #a9b58f 62%, #8d9a70 100%);
  filter: blur(5px); opacity: .9; box-shadow: 0 0 140px 50px rgba(255, 238, 208, .8);
}
.poster__arch::before, .poster__arch::after {
  content: ""; position: absolute; top: 18%; width: 42%; aspect-ratio: 1 / 2.2; border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, #fffaf0, #f6e4c7); filter: blur(4px);
}
.poster__arch::before { right: 200%; }
.poster__arch::after { left: 200%; }
.poster__body { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; margin-top: 22%; }

.viewer__pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; pointer-events: auto; background: none; border: 0; padding: 6px; cursor: pointer; }
.pin__dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, .45), 0 2px 8px rgba(0, 0, 0, .25); transition: transform .2s, background .2s; }
.pin:hover .pin__dot, .pin:focus-visible .pin__dot { transform: scale(1.3); background: var(--red); }
.pin__label { position: absolute; left: 28px; top: 50%; margin-top: -12px; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: rgba(255, 255, 255, .92); padding: 4px 9px; border-radius: 4px; white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.pin:hover .pin__label, .pin:focus-visible .pin__label { opacity: 1; transform: none; }
.viewer.is-flying .viewer__pins { opacity: 0; }

.viewer__card {
  position: absolute; left: 18px; bottom: 18px; width: min(340px, calc(100% - 36px));
  background: rgba(251, 249, 245, .9); backdrop-filter: blur(14px);
  border-radius: 12px; padding: 20px 22px; display: grid; gap: 8px; animation: rise .35s var(--ease);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35);
}
.viewer__card h3 { font-family: var(--f-display); font-size: 1.45rem; }
.viewer__card p { color: var(--ink-2); font-size: 0.93rem; line-height: 1.55; }
.viewer__card .viewer__card-kicker { color: var(--ink-3); font-size: var(--t-tag); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.viewer__exit { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(251, 249, 245, .88); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.viewer__hint { position: absolute; top: 18px; left: 18px; color: var(--ink); background: rgba(251, 249, 245, .85); padding: 5px 10px; border-radius: 999px; pointer-events: none; }

.details { display: grid; gap: 20px; }
.details__list { border-top: 1px solid var(--rule-strong); }
.details__list li { border-bottom: 1px solid var(--rule); }
.details__list button { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 0; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 8px; }
.details__list .d-num { font-family: var(--f-mono); font-size: var(--t-tag); letter-spacing: .1em; color: var(--ink-3); }
.details__list .d-name { font-family: var(--f-display); font-size: 1.25rem; transition: color .2s; }
.details__list .d-go { color: var(--ink-3); transition: transform .2s, color .2s; }
.details__list button:hover .d-name, .details__list button[aria-current="true"] .d-name { font-style: italic; }
.details__list button:hover .d-go { transform: translateX(3px); color: var(--ink); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 72px); }
.step { display: grid; gap: 16px; align-content: start; }
.step__num { font-family: var(--f-numeral); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--brass); font-variation-settings: "opsz" 96; }
.step h3 { font-family: var(--f-display); font-size: 2rem; }
.step p { color: var(--ink-2); max-width: 36ch; }

/* ---------- Enhance ---------- */
.integrate__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 110px); }
.integrate__lead { display: grid; gap: 22px; align-content: start; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 56px) clamp(32px, 4vw, 56px); }
.features li { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--rule-strong); }
.features h3 { font-family: var(--f-display); font-size: var(--t-h3); }
.features p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- Venues ---------- */
.venue-list { border-top: 1px solid var(--rule-strong); }
.venue { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: 16px 48px; padding-block: 38px; border-bottom: 1px solid var(--rule); align-items: start; }
.venue h3 { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; transition: transform .35s var(--ease); }
.venue:hover h3 { font-style: italic; transform: translateX(6px); }
.venue p { color: var(--ink-2); max-width: 46ch; }
.venue__tags { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 6px; padding-top: 6px; }

/* ---------- Pilot ---------- */
.pilot { background: var(--ground-3); padding-block: clamp(96px, 12vw, 168px); }
.pilot__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 110px); align-items: start; }
.pilot__text { display: grid; gap: 26px; }
.pilot__text > p { color: var(--ink-2); max-width: 52ch; }
.terms { border-top: 1px solid var(--rule-strong); }
.terms li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-block: 15px; border-bottom: 1px solid var(--rule); }
.terms__k { color: var(--red); padding-top: 3px; }
.pilot__slots { display: flex; align-items: center; gap: 18px; }
.pilot__num { font-family: var(--f-numeral); font-style: italic; font-size: 4.6rem; line-height: 1; color: var(--ink); font-variation-settings: "opsz" 96; }

.form { position: relative; background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 20px; box-shadow: 0 40px 70px -50px rgba(60, 42, 20, .45); }
.form__title { font-family: var(--f-display); font-size: 1.7rem; }
.field { display: grid; gap: 4px; }
.field label { font-family: var(--f-mono); font-size: var(--t-tag); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select {
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong);
  padding: 8px 0 10px; border-radius: 0; width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field input::placeholder { color: var(--ink-3); }
.form__error { color: var(--red); font-size: var(--t-small); }
.form__fine { color: var(--ink-3); font-size: 0.82rem; text-align: center; }
.form__done { position: absolute; inset: 0; background: var(--white); border-radius: inherit; display: grid; place-content: center; text-align: center; gap: 10px; padding: 32px; }
.form__done h3 { font-family: var(--f-display); font-size: 2.3rem; font-style: italic; }
.form__done p { color: var(--ink-2); max-width: 30ch; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 110px); }
.faq__head { display: grid; gap: 22px; align-content: start; position: sticky; top: 120px; }
.faq__list { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 20px; font-family: var(--f-body); font-size: 1.5rem; color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--red); }
.faq details p { color: var(--ink-2); padding-bottom: 26px; max-width: 62ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); padding-top: clamp(64px, 8vw, 110px); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 64px; }
.footer__brand { display: grid; gap: 18px; color: var(--ink); align-content: start; }
.footer__k { margin-bottom: 10px; }
.footer__col p { line-height: 1.9; }
.footer__col a { text-decoration: none; color: var(--ink-2); }
.footer__col a:hover { color: var(--ink); }
.footer__email { font-family: var(--f-display); font-size: 1.3rem; user-select: all; }
.footer__base { justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); }
.footer__base em.brand { text-transform: none; font-family: var(--f-display); font-size: 0.9rem; letter-spacing: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .demo__grid { grid-template-columns: 1fr; }
  .details__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .integrate__grid, .pilot__grid, .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .venue { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 22px; display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open { background: var(--ground); }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .nav__links .btn { margin-top: 18px; }
  .section__head--split { grid-template-columns: 1fr; }
  .viewer__frame { aspect-ratio: 4 / 3; }
  .poster__arch { width: 32%; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: 1fr; }
  .venue { grid-template-columns: minmax(0, 1fr) auto; }
  .venue h3 { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero__shade { background: linear-gradient(180deg, rgba(251, 249, 245, .7) 0%, rgba(251, 249, 245, 0) 18%), linear-gradient(0deg, var(--ground-2) 0%, rgba(251, 249, 245, .9) 45%, rgba(251, 249, 245, .25) 75%, rgba(251, 249, 245, 0) 100%); }
  .hero__foot { justify-content: flex-start; }
  .details__list { grid-template-columns: 1fr; }
  .terms li { grid-template-columns: 1fr; gap: 2px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .viewer__card { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 16px 18px; }
  .viewer__card p:not(.viewer__card-kicker) { font-size: 0.86rem; }
}

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