/* Kuboot landing. Part 1 themes the vendored Scroll World engine (it injects its own base CSS);
   part 2 styles the studio sections that scroll up over the story once it ends. */
@font-face { font-family: 'DM Sans'; src: url('/media/dm-sans.woff2') format('woff2'); font-weight: 100 1000; font-display: swap; }
:root, .sw-root {
  --sw-bg: #efe9f7; --sw-ink: #1e1b3a; --sw-ink-soft: #5a5577; --sw-accent: #a94f31;
  --sw-font-display: 'DM Sans', system-ui, sans-serif; --sw-font-body: 'DM Sans', system-ui, sans-serif;
  --ink: #1e1b3a; --ink-soft: #5a5577; --paper: #efe9f7; --card: #ffffff; --tint: #e6def3; --line: #dcd3ea;
  --accent: #a94f31; --accent-dark: #8f4129; --gold: #f2c14e; --teal: #1aa58f; --radius: 18px;
  --shadow: 0 14px 34px rgba(30, 27, 58, .10);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- 1. Story (engine theme) ---- */
.sw-topbar { padding: 24px 4vw; }
.sw-brand { gap: 1px; text-decoration: none; }
.sw-brand__mark { width: 27px; height: 27px; border-radius: 0; box-shadow: none; background: url('/brand-mark.svg?v=f8aaf436eb') center / contain no-repeat; }
.sw-brand__name { font-weight: 700; letter-spacing: -.02em; font-size: 26px; color: #D97757; }
.sw-topcta { font-size: 13px; font-weight: 700; padding: 11px 20px; background: var(--accent); color: #fff; border-radius: 999px; }
.sw-topcta:hover { background: var(--accent-dark); }
.sw-nav { background: #efe9f7cc; border-color: #1e1b3a1a; backdrop-filter: blur(10px); }
.sw-nav__item { font-size: 12px; padding: 9px 15px; font-weight: 700; }
.sw-copylayer::before { width: 51vw; background: linear-gradient(90deg, #efe9f7 0%, #efe9f7f0 38%, #efe9f780 74%, transparent); }
.sw-copy { top: 28%; left: 6vw; width: min(42vw, 560px); }
.sw-copy__num { display: none; }
.sw-copy__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 22px; color: var(--sw-accent); }
.sw-copy__title { font-size: clamp(44px, 5.4vw, 82px); font-weight: 700; line-height: 1.01; letter-spacing: -.06em; white-space: pre-line; margin: 0 0 22px; text-shadow: none; }
.sw-copy__body { font-size: 15px; line-height: 1.75; max-width: 360px; color: var(--ink-soft); }
.sw-copy__tags { margin-top: 30px; }
.sw-copy__tags li { padding: 0; background: none; border: 0; border-radius: 0; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.sw-btn { font-size: 13px; padding: 13px 20px; font-weight: 700; }
/* our unlayered `a { color: inherit }` would beat the engine's layered button colours */
.sw-btn--primary { color: #fff; background: var(--sw-accent); } .sw-btn--primary:hover { filter: brightness(.92); }
.sw-btn--ghost { color: var(--ink); }
.sw-route { right: 24px; gap: 10px; } .sw-route__dot { min-width: 40px; min-height: 40px; } .sw-route__label { display: none; }
.sw-hint { bottom: 40px; font-size: 10px; letter-spacing: .2em; } .sw-particles { display: none; } .sw-scrollbar { height: 3px; }
body.past-story .sw-topbar { background: #efe9f7e6; backdrop-filter: blur(10px); box-shadow: 0 1px 0 #1e1b3a14; transition: background .25s; }
body.past-story .sw-route, body.past-story .sw-hint, body.past-story .sw-nav, body.past-story .sw-copylayer { opacity: 0; pointer-events: none; transition: opacity .25s; }

/* ---- 2. Studio sections ---- */
.after { position: relative; z-index: 45; background: var(--paper); box-shadow: 0 -30px 60px rgba(30, 27, 58, .10); border-radius: 28px 28px 0 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 22ch; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--accent); margin-bottom: .7em; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; font: 700 1rem/1.2 'DM Sans', system-ui, sans-serif; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-wide { width: 100%; padding: 16px; font-size: 1.05rem; }
.text-link { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.featured { padding: 96px 0 84px; }
.shots { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 16px; margin: 36px 0 28px; }
.shot { margin: 0; background: #1f2a22; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: .85rem; color: #dfe8d8; }
.shot-main { grid-row: span 2; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 84px 0; }
.section-tint { background: var(--tint); }
.grid { display: grid; gap: 18px; margin-top: 36px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--ink-soft); margin: 0; }
.card-accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-accent p { color: #cfcce2; margin-bottom: 14px; }
.card-accent .text-link { color: var(--gold); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.steps p { color: var(--ink-soft); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 16px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--ink-soft); }
details a { color: var(--accent-dark); font-weight: 700; }

.contact { background: var(--ink); color: #fff; }
.contact .eyebrow { color: var(--gold); }
.contact .lede { color: #cfcce2; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { padding: 6px 0 6px 30px; position: relative; color: #e7e4f4; }
.checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 9px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.form { background: var(--card); color: var(--ink); border-radius: 22px; padding: 28px; display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
label .lbl b { color: var(--accent-dark); margin-left: 2px; }
label small { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { font: 400 1rem/1.4 'DM Sans', system-ui, sans-serif; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
textarea { resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c62828; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 700; min-height: 1.4em; }
.form-status.err { color: #c62828; }
.privacy { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.form.sent { text-align: center; padding: 48px 28px; }
.foot { padding: 36px 0 96px; font-size: .92rem; color: var(--ink-soft); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot-row p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.mobile-cta { display: none; }
.no-script { padding: 100px 8vw; } .no-script img { display: block; max-width: 90vw; }

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; } .shot-main { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 860px) {
  .sw-topbar { padding: 18px 6vw; } .sw-brand__name { font-size: 23px; } .sw-brand__mark { width: 24px; height: 24px; } .sw-topcta { font-size: 11px; padding: 9px 14px; }
  .sw-nav { display: none; }
  .sw-stage { inset: 60px 0 auto; height: 51vh; }
  .sw-scene__video, .sw-scene__still { object-fit: contain; object-position: center; }
  .sw-copylayer::before { display: none; }
  .sw-copy { top: auto; bottom: 92px; left: 7vw; width: 84vw; }
  .sw-copy__eyebrow { font-size: 9px; margin-bottom: 12px; }
  .sw-copy__title { font-size: clamp(32px, 8.5vw, 46px); line-height: 1.04; margin-bottom: 12px; }
  .sw-copy__body { font-size: 13px; line-height: 1.6; max-width: 320px; }
  .sw-copy__tags { margin-top: 14px; } .sw-copy__tags li { font-size: 8px; }
  .sw-route { right: 0; top: 38%; } .sw-route__dot { min-width: 36px; min-height: 44px; } .sw-hint { display: none; }
  .sw-copy__cta { margin-top: 14px; } .sw-btn { padding: 10px 13px; font-size: 11px; }
}
@media (max-height: 690px) and (max-width: 860px) {
  .sw-stage { height: 42vh; top: 55px; } .sw-copy { bottom: 74px; } .sw-copy__title { font-size: 29px; }
  .sw-copy__tags { display: none; } .sw-copy__body { font-size: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section, .featured { padding: 60px 0; }
  .grid-3, .steps, .row, .shots { grid-template-columns: 1fr; } .shot-main { grid-column: auto; }
  .mobile-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 46; text-align: center; background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; padding: 15px; border-radius: 999px; box-shadow: 0 8px 24px rgba(169, 79, 49, .35); }
  .mobile-cta.hide { display: none; }
  body:not(.past-story) .mobile-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* section jumps (#crown, #contact, ...) clear the fixed top bar */
.after section { scroll-margin-top: 76px; }
