/* Happily Ordinary — the website. The colours come from the brand look the site is built in (Site/src/look.mjs
   writes them into /css/look.css as variables); everything here only refers to those variables. */

:root {
  --serif: 'Shippori Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', Georgia, serif;
  --sans: 'Zen Kaku Gothic New', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --section: clamp(76px, 10vw, 140px);
  --shadow: 0 1px 2px rgb(var(--shadow-rgb) / 6%), 0 12px 32px -12px rgb(var(--shadow-rgb) / 24%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); }
em { font-style: italic; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--glow); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { display: inline-block; font: 700 0.78rem/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 18px; }

/* ---- Wordmark and mark ---- */
.wordmark { font-family: var(--serif); font-weight: 600; letter-spacing: 0.005em; white-space: nowrap; }
.mark { width: 42px; height: auto; flex: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.btn--primary:hover { background: color-mix(in srgb, var(--ink) 86%, #fff); }
.btn--ghost { border-color: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgb(255 255 255 / 50%); }
.btn--glow { background: linear-gradient(180deg, color-mix(in srgb, var(--glow) 65%, #fff), var(--glow) 55%, color-mix(in srgb, var(--glow) 82%, #b0503a)); color: var(--ink); box-shadow: 0 10px 30px -10px rgb(var(--glow-rgb) / 60%); }
.btn--glow:hover { box-shadow: 0 14px 36px -10px rgb(var(--glow-rgb) / 85%); }
.btn--hero { background: var(--hero-btn); color: var(--hero-btn-ink); box-shadow: 0 12px 30px -12px rgb(0 0 0 / 40%); }
.btn--hero:hover { box-shadow: 0 16px 36px -12px rgb(0 0 0 / 50%); }
.btn--hero-ghost { border-color: color-mix(in srgb, var(--hero-ink) 80%, transparent); color: var(--hero-ink); background: rgb(255 255 255 / 16%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--hero-ghost:hover { border-color: var(--hero-ink); background: rgb(255 255 255 / 18%); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.94rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: ' →'; }
.link-arrow:hover { color: var(--accent); }
.night .link-arrow:hover { color: var(--glow); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px 8px 12px; border-radius: 999px;
  background: rgb(255 255 255 / 78%); border: 1px solid rgb(255 255 255 / 60%); font: 500 0.9rem/1.25 var(--sans); color: var(--ink-2); text-decoration: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-shadow: none;
}
.pill b { color: var(--ink); font-weight: 700; }
.pill .beat { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent-bright); box-shadow: 0 0 0 0 rgb(var(--glow-rgb) / 50%); animation: beat 2.4s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgb(var(--glow-rgb) / 55%); } 70%, 100% { box-shadow: 0 0 0 10px rgb(var(--glow-rgb) / 0%); } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; background: var(--sand); color: var(--ink-2); }
.badge--dev { background: color-mix(in srgb, var(--accent-bright) 22%, #fff); color: var(--accent); }
.badge--live { background: #dff3e4; color: #1f6b3a; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.36rem; color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--accent-bright); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn { margin-left: 10px; color: var(--paper); }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: transform 0.2s; }
@media (max-width: 1040px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgb(var(--shadow-rgb) / 25%); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 18px 0 0; border-bottom: 0; border-radius: 999px; }
  .menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

/* ---- Hero: the brand's painted sky, with the page's own words on it ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(580px, 88vh, 920px); display: flex; justify-content: center; text-align: center; padding-block: clamp(56px, 11vh, 130px) clamp(160px, 24vh, 260px); color: var(--hero-ink); background: var(--night); }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -1; }
.hero-art img { object-fit: cover; object-position: 50% 100%; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
/* "Happily" hangs three descenders (p, p, y), so the title keeps room under it for the tagline. */
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.4rem); line-height: 1.02; margin: 28px 0 26px; text-shadow: var(--hero-shadow); }
.hero .tagline { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.3; margin: 0 0 12px; text-shadow: var(--hero-shadow); }
.hero .lede { color: inherit; margin: 0 auto 32px; text-shadow: var(--hero-shadow); }
.hero .actions { justify-content: center; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hero-veil); pointer-events: none; }
.hero .pill > span { text-wrap: balance; }
.pill .short { display: none; }
@media (max-width: 520px) { .pill .long { display: none; } .pill .short { display: inline; } }
@media (min-width: 701px) and (max-width: 1099px) { .hero { min-height: 0; padding-bottom: max(250px, 34vw); } }
@media (max-width: 700px) { .hero { min-height: 0; padding-top: 40px; padding-bottom: max(270px, 82vw); } .hero .wordmark { white-space: normal; } .hero h1 { line-height: 1.16; margin-bottom: 20px; } }

/* ---- Where the name comes from ---- */
.origin { text-align: center; padding-block: clamp(72px, 10vw, 128px); }
.origin p { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.8vw, 2.8rem); line-height: 1.32; margin: 0 auto; max-width: 20em; text-wrap: balance; }

/* ---- Arches: the first adventure appears through a window ---- */
.arch { position: relative; border-radius: 999px 999px 18px 18px; overflow: hidden; background: var(--night-2); isolation: isolate; display: block; }
.arch > img { width: 100%; height: 100%; object-fit: cover; }
.arch--34 { aspect-ratio: 3 / 4; }

/* ---- Featured project ---- */
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (min-width: 861px) { .feature .arch { position: sticky; top: 104px; } }
.feature .arch { box-shadow: 0 40px 80px -40px rgb(var(--shadow-rgb) / 60%), 0 0 0 1.5px color-mix(in srgb, var(--accent-bright) 55%, transparent); transition: transform 0.35s ease; }
a.arch:hover { transform: translateY(-4px); }
.feature h2 { margin: 12px 0 18px; }
.feature .sub { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); color: var(--ink-2); margin: 0 0 18px; }
.feature .intro { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.38rem); line-height: 1.6; color: var(--ink); margin-bottom: 28px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0 0 32px; padding: 22px 0; border-block: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font: 700 0.74rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 500; }
.preview { margin: 36px 0 0; }
.shot { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.shot img { width: 100%; height: auto; }
figcaption { font-size: 0.86rem; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature .arch { max-width: 380px; width: 100%; margin-inline: auto; } }

/* ---- Night sections ---- */
.night { background: var(--night); color: var(--night-text); position: relative; overflow: hidden; }
.night::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 0%, var(--night-glow-1), transparent), radial-gradient(50% 40% at 0% 100%, var(--night-glow-2), transparent); pointer-events: none; }
.night .wrap { position: relative; }
.night .eyebrow { color: var(--glow); }
.night .lede, .night p, .night figcaption { color: var(--night-muted); }

/* ---- Two people ---- */
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 36px); align-items: start; }
.duo figure { margin: 0; }
.duo .shot { aspect-ratio: 1280 / 884; }
.duo .shot img { width: 100%; height: 100%; object-fit: cover; }
.duo figcaption { margin-top: 10px; font-size: 0.85rem; line-height: 1.5; min-height: 3em; }
.duo .who { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px; }
.duo .who svg { width: 34px; height: 34px; flex: none; }
.duo h3 { font-size: 1.45rem; }
.duo p { margin: 0; }
.duo .and { align-self: start; font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--accent-bright); margin-top: clamp(96px, 10.5vw, 150px); }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } .duo .and { padding: 0; text-align: center; } }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.mode { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.mode h3 { font-size: 1.3rem; margin: 14px 0 8px; }
.mode p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }
.mode--planned { background: transparent; border-style: dashed; }
.mode svg { width: 40px; height: 40px; }
.night .mode { background: rgb(255 255 255 / 6%); border-color: var(--night-line); }
.night .mode--planned { background: transparent; }
.night .mode p { color: var(--night-muted); }
.night .mode .badge { background: rgb(255 255 255 / 10%); color: var(--night-text); }
@media (max-width: 820px) { .modes { grid-template-columns: 1fr; } }

/* The live miniature */
.mini { margin: 0; }
.mini-stage { position: relative; aspect-ratio: 1280 / 884; border-radius: 14px; overflow: hidden; background: var(--night-2); box-shadow: var(--shadow); }
.mini-stage img, .mini-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-stage canvas { touch-action: none; }
@media (max-width: 700px) { .mini-stage { aspect-ratio: 1 / 1; } }
.mini-go { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap; }
.mini-go:hover { transform: translateX(-50%) translateY(-1px); }
.mini-go svg { flex: none; width: 1.15em; height: 1.15em; }
.mini-hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 0.82rem; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / 70%); pointer-events: none; }

/* ---- Never stop dating ---- */
.blush { background: var(--blush); position: relative; overflow: hidden; }
.statement { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.3; max-width: 22em; }
.blush .wrap { text-align: center; }
.blush .statement { margin-inline: auto; text-wrap: balance; }
.statement p { margin: 0 0 0.7em; }
.statement p:last-child { margin-bottom: 0; }
.statement .soft { color: var(--statement-soft); }
.statement strong { font-weight: 600; color: var(--accent); }

/* ---- Why we exist ---- */
.founder { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.founder blockquote { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.5; }
.founder blockquote p { margin: 0 0 0.8em; }
.founder blockquote .belief { color: var(--accent); }
.founder .letterhead { aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 34%, var(--sky-3) 54%, var(--paper) 72%); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 12% 13%; text-align: center; box-shadow: var(--shadow); }
.founder .letterhead .mark { filter: drop-shadow(0 0 28px rgb(var(--glow-rgb) / 55%)); }
.founder .letterhead .mark { width: 104px; margin: 0 auto 26px; }
.founder .letterhead .wordmark { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.founder .letterhead p { font-family: var(--serif); color: var(--ink-2); margin: 12px 0 0; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder .letterhead { max-width: 300px; width: 100%; margin-inline: auto; aspect-ratio: 5 / 5.6; } }

/* ---- Signup ---- */
.signup { text-align: center; padding-bottom: calc(var(--section) * 0.75); }
.signup h2 { max-width: 15em; margin-inline: auto; }
.signup .lede { margin: 22px auto 34px; }
.signup-mark { width: 112px; margin: 0 auto 28px; filter: drop-shadow(0 0 36px rgb(var(--glow-rgb) / 50%)); }
.signup-mark .mark { width: 100%; }
.form-row { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.form-row input { flex: 1; min-width: 0; }
@media (max-width: 560px) { .form-row { flex-direction: column; } }
input[type='email'], input[type='text'], textarea {
  width: 100%; min-height: 54px; padding: 14px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 400 1.02rem/1.3 var(--sans);
}
textarea { border-radius: 18px; min-height: 160px; resize: vertical; }
.night input[type='email'] { background: rgb(255 255 255 / 8%); border-color: var(--night-line); color: var(--night-text); }
.night input::placeholder { color: var(--night-muted); opacity: 0.7; }
.form-note { font-size: 0.88rem; margin-top: 16px; color: var(--ink-3); }
.form-status { min-height: 1.6em; margin-top: 14px; font-weight: 700; }
.form-status[data-state='ok'] { color: #2d8a51; }
.night .form-status[data-state='ok'] { color: #8fe0ad; }
.form-status[data-state='error'] { color: var(--accent); }
.night .form-status[data-state='error'] { color: #ffb19c; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Share band ---- */
.share-band { text-align: center; padding-block: clamp(56px, 8vw, 96px); }
.share-band .quote { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 10px 0 24px; }
.share-status { display: block; min-height: 1.4em; margin-top: 12px; font-size: 0.92rem; color: var(--ink-3); }

/* ---- Footer ---- */
.site-footer { background: var(--sand); padding-block: clamp(56px, 7vw, 88px) 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { font-size: 1.5rem; }
.footer-grid .tag { font-family: var(--serif); color: var(--ink-2); margin-top: 14px; }
.footer-grid h4 { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-end { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--serif); color: var(--ink-2); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---- Inner pages ---- */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 56px); }
.sky-band { height: clamp(110px, 14vw, 210px); background: var(--night) url(/img/brand/band.jpg) 50% 100% / cover no-repeat; }
.sky-band + .letter { padding-top: clamp(40px, 6vw, 80px); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-bottom: 20px; }
.prose { max-width: 42rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 42rem; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 2em 0 0.6em; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; max-width: 46rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 500 1.2rem/1 var(--serif); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 55%, transparent); }
.steps h3 { font-size: 1.25rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kit > div { padding: 24px; border-radius: var(--radius); background: var(--sand); }
.kit svg { width: 40px; height: 40px; }
.kit h3 { font-size: 1.2rem; margin: 12px 0 6px; }
.kit p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 820px) { .kit { grid-template-columns: 1fr; } }

.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 1.8rem/1 var(--sans); color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--ink-2); max-width: 40rem; }

.journal { list-style: none; padding: 0; margin: 0; max-width: 46rem; display: grid; gap: 0; }
.journal li { position: relative; padding: 0 0 48px 40px; border-left: 1.5px solid var(--line); }
.journal li:last-child { padding-bottom: 0; }
.journal li::before { content: ''; position: absolute; left: -8px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 3px var(--paper); }
.journal time { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.journal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 0 14px; }
.journal p { color: var(--ink-2); }

.contact-form { display: grid; gap: 14px; max-width: 36rem; }
.contact-form label { font-weight: 700; font-size: 0.95rem; display: grid; gap: 8px; }
.contact-form .btn { justify-self: start; }

/* ---- Happily Ordinary VR ---- */
.adv-hero { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.adv-hero .feature { align-items: start; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.role { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.role h3 { font-size: 1.3rem; margin: 12px 0 8px; }
.role p { margin: 0; color: var(--ink-2); }
.role svg { width: 34px; height: 34px; }
@media (max-width: 720px) { .roles { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery .shot { aspect-ratio: 16 / 10; }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr; } }
.trailer-slot { aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1.5px dashed var(--line); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-3); background: rgb(255 255 255 / 40%); }
.trailer-slot:not(:has(iframe)) { aspect-ratio: auto; padding: 36px 24px; }
.trailer-slot iframe { width: 100%; height: 100%; border: 0; border-radius: inherit; }

/* ---- Our Story: a letter, not an About page ---- */
.letter-page { background: linear-gradient(180deg, var(--paper), var(--sand) 60%, var(--paper)); }
.letter { max-width: 38rem; margin-inline: auto; padding: clamp(56px, 9vw, 128px) var(--gutter); }
.letter .eyebrow { display: block; text-align: center; }
.letter h1 { text-align: center; font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin-bottom: clamp(48px, 7vw, 80px); line-height: 1.15; }
.letter .body p { font-family: var(--serif); font-size: clamp(1.12rem, 1.6vw, 1.28rem); line-height: 1.85; margin: 0 0 1.35em; color: var(--letter-ink); }
.letter .body p:first-child::first-letter { float: left; font-size: 3.6em; line-height: 0.9; padding: 0.06em 0.1em 0 0; color: var(--accent); }
.letter .ending { margin-top: clamp(56px, 8vw, 96px); text-align: center; }
.letter .ending p { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.6; margin: 0 auto 1.4em; max-width: 30rem; }
.letter .ending p + p { font-size: clamp(1.4rem, 2.5vw, 1.85rem); color: var(--accent); }
.letter .signoff { margin-top: clamp(48px, 7vw, 80px); display: grid; justify-items: center; gap: 10px; }
.letter .signoff .wordmark { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.letter .signoff .mark { width: 80px; }
.letter .signoff p { font-family: var(--serif); color: var(--ink-2); margin: 0; }
.letter .after { margin-top: clamp(56px, 8vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---- Motion ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
