/* Local artwork and system fonts; animation.js controls decorative video only. */
:root {
  color-scheme: light dark;
  --paper: #faf8f3;
  --ink: #1d3028;
  --muted: #667167;
  --line: #d8ddd3;
  --accent: #446951;
  --dark: #172f28;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: #cedfc0; color: #172f28; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-weight: 500; }
.shell { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.mast { display: flex; align-items: center; justify-content: space-between; min-height: 90px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-size: 23px; font-weight: 550; line-height: 1; letter-spacing: -.9px; }
.brand-symbol { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.brand-secondary { display: block; font-size: 11px; font-weight: 400; letter-spacing: 2.2px; margin-top: 7px; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { font-size: 13px; font-weight: 500; text-decoration: none; padding-block: 12px; }
nav a:hover, .text-link:hover { color: var(--accent); }
nav .nav-contact { border: 1px solid var(--line); border-radius: 30px; padding: 10px 20px; }
.nav-contact span { margin-left: 15px; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--ink); color: var(--paper); z-index: 10; }
.skip-link:focus { top: 10px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 35px; padding-block: 45px 55px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: 1.7px; text-transform: uppercase; }
h1 { font-size: clamp(48px, 5.2vw, 74px); line-height: 1.06; letter-spacing: -.06em; margin-top: 22px; }
.serif-word { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.06em; color: var(--accent); }
.hero-description { max-width: 470px; margin-top: 25px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.company-facts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 18px; }
.button { display: inline-flex; align-items: center; gap: 25px; padding: 14px 21px; font-size: 12px; font-weight: 500; text-decoration: none; border-radius: 30px; transition: background .2s, transform .2s; }
.button-dark { background: var(--ink); color: var(--paper); margin-top: 28px; }
.button:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font-size: 12px; font-weight: 500; min-height: 44px; }
.hero-art { position: relative; width: 100%; max-width: 500px; margin-inline: auto; }
.hero-stage { position: relative; isolation: isolate; }
.hero-art picture { display: block; width: 100%; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art figcaption { font-size: 11px; line-height: 1.6; color: var(--muted); text-align: center; margin-top: 6px; }
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.has-video .hero-film { opacity: 1; }
.motion-toggle { position: absolute; bottom: 6px; right: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 80px; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--muted); font: 11px var(--sans); cursor: pointer; transition: color .2s, border-color .2s; }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: var(--ink); border-color: var(--accent); }
.motion-icon { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.is-paused .motion-icon { width: 0; height: 0; border: 5px solid transparent; border-right: 0; border-left: 8px solid currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-art { animation: enter .9s cubic-bezier(.2,.7,.2,1) both; }
  .product-link > span:first-child { transition: transform .25s ease; }
  .product-link:hover > span:first-child { transform: translate(3px, -3px); }
}
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.product-panel { display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: 35px 40px; background: var(--dark); color: #ecf0e4; border-radius: 5px; }
.product-copy .eyebrow { color: #c1d3aa; }
.product-copy h2 { font-size: 36px; line-height: 1.2; letter-spacing: -.04em; margin-top: 10px; }
.product-copy > p:last-child { color: #c0cbbf; font-size: 14px; margin-top: 12px; line-height: 1.8; }
.product-link { display: grid; grid-template-columns: auto auto; column-gap: 25px; row-gap: 5px; flex-shrink: 0; text-decoration: none; font-size: 14px; padding-block: 12px; }
.product-link > span:first-child { font-size: 21px; line-height: 1; }
.product-domain { grid-column: 1 / -1; font-size: 11px; color: #c0cbbf; }
.product-link:hover { color: #c1d3aa; }
.product-panel a:focus-visible { outline-color: #c1d3aa; }
.contact-section { padding-block: 40px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-row h2 { font-size: 20px; letter-spacing: -.4px; }
.contact-row p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.contact-email { display: inline-flex; gap: 25px; align-items: center; font-size: 23px; letter-spacing: -.6px; text-decoration: none; padding-block: 12px; }
.contact-email:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-top > a:last-child { font-size: 12px; text-decoration: none; padding: 12px; margin-right: -12px; }
.footer-top .brand { font-size: 18px; }
.footer-top .brand-symbol { width: 29px; height: 29px; }
.footer-top .brand-secondary { font-size: 9px; letter-spacing: 1.8px; margin-top: 6px; }
.footer-bottom { display: flex; align-items: end; gap: 40px; justify-content: space-between; margin-top: 22px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.footer-bottom p { max-width: 655px; }
.footer-bottom > span { flex-shrink: 0; }
.privacy-main { padding-block: 35px 65px; }
.back-link { color: var(--muted); margin-bottom: 30px; }
.privacy-main h1 { font-size: clamp(44px, 5.5vw, 76px); margin-top: 20px; }
.privacy-content { max-width: 720px; margin-top: 32px; }
.privacy-content .lede { font-size: 19px; color: var(--ink); padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.privacy-content h2 { font-size: 25px; margin-top: 32px; margin-bottom: 15px; letter-spacing: -.04em; line-height: 1.2; }
.privacy-content p { color: var(--muted); font-size: 15px; line-height: 1.85; margin-top: 17px; }
.privacy-content a { color: var(--ink); overflow-wrap: anywhere; }
.signup { max-width: 620px; padding-top: 35px; }
.signup-lede { margin-bottom: 14px; }
.signup-row { display: flex; gap: 10px; }
.signup-row input { min-width: 0; flex: 1; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 14px; font: inherit; }
.signup-row button { background: var(--ink); color: var(--paper); border: 0; border-radius: 8px; padding: 14px 22px; font: inherit; cursor: pointer; }
.consent { display: flex; align-items: start; gap: 10px; margin-top: 18px; font-size: 12px; }
.consent input { margin-top: 5px; flex-shrink: 0; }
.fine { font-size: 11px; color: var(--muted); margin-top: 16px; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-color-scheme: dark) {
  :root { --paper: #111e19; --ink: #e5ebdf; --muted: #a4b2a5; --line: #2c3c31; --accent: #b0c797; --dark: #1b3228; }
  .button:hover { color: #111e19; }
  .product-panel { border: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .shell { width: calc(100% - 56px); }
  .hero { gap: 10px; }
  h1 { font-size: 50px; }
  .hero-description { font-size: 14px; }
  .company-facts { font-size: 10px; }
  .product-panel { padding: 28px; gap: 25px; }
  .product-copy > p:last-child { font-size: 13px; }
  .product-copy > p:last-child br { display: none; }
  .product-link { column-gap: 16px; font-size: 13px; }
  .footer-bottom { gap: 25px; align-items: start; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 40px); }
  .mast { min-height: 80px; gap: 15px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand-symbol { width: 30px; height: 30px; }
  .brand-secondary { font-size: 9px; letter-spacing: 1.4px; margin-top: 5px; }
  nav { gap: 17px; }
  nav a { font-size: 11px; min-height: 44px; display: inline-flex; align-items: center; }
  nav .nav-contact { padding: 10px 0; border: 0; }
  .nav-contact span { display: none; }
  .hero { grid-template-columns: 1fr; gap: 16px; padding-block: 32px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  h1 { font-size: clamp(40px, 10.5vw, 58px); margin-top: 18px; }
  .hero-description { margin-top: 18px; font-size: 14px; }
  .company-facts { gap: 6px; margin-top: 14px; font-size: 10px; }
  .button-dark { margin-top: 20px; }
  .hero-art { width: min(100%, 380px); }
  .hero-art figcaption { font-size: 10px; }
  .product-panel { flex-direction: column; align-items: start; gap: 13px; padding: 25px; }
  .product-copy h2 { font-size: 31px; }
  .product-copy > p:last-child { margin-top: 10px; }
  .product-link { column-gap: 18px; padding-block: 8px; }
  .contact-section { padding-block: 30px; }
  .contact-row { flex-direction: column; align-items: start; gap: 10px; }
  .contact-email { font-size: clamp(18px, 5.1vw, 25px); width: 100%; justify-content: space-between; gap: 10px; }
  .footer-bottom { flex-direction: column; gap: 12px; margin-top: 17px; }
  .site-footer { padding-top: 20px; }
  .privacy-main { padding-block: 25px 50px; }
  .back-link { margin-bottom: 25px; }
  .privacy-main h1 { font-size: 43px; }
  .privacy-content { margin-top: 25px; }
  .privacy-content .lede { font-size: 17px; }
  .privacy-content p { font-size: 14px; }
  .signup-row { flex-direction: column; }
}
@media (max-width: 360px) {
  .mast { gap: 10px; }
  nav { gap: 12px; }
  nav a { font-size: 10px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand-symbol { width: 27px; height: 27px; }
  .brand-secondary { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Native bento composition inspired by Magic UI; provenance in README. */
.landing { --panel-shadow: 0 1px 2px rgb(23 47 40 / 4%), 0 16px 40px rgb(23 47 40 / 6%); }
.landing .hero { gap: 48px; padding-block: 64px; }
.landing .hero-art { padding: 24px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--panel-shadow); }
.instrument-label { display: flex; justify-content: space-between; gap: 16px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.landing .hero-art figcaption { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.landing .button { border-radius: 8px; min-height: 48px; }
.approach-section { border-top: 1px solid var(--line); padding-block: 48px 64px; scroll-margin-top: 24px; }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 24px; }
.approach-grid h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -.04em; }
.approach-grid p { color: var(--muted); max-width: 52ch; }
.landing .product-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; padding: 40px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.development-status { display: inline-flex; border: 1px solid #668575; padding: 4px 12px; border-radius: 24px; font-size: 11px; color: #d9e4d4; margin-bottom: 32px; }
.landing .product-copy h2 { font-size: clamp(40px, 5vw, 64px); margin-top: 16px; }
.landing .product-copy > p:last-child { max-width: 40ch; font-size: 16px; margin-top: 24px; }
.landing .product-link { align-self: start; justify-self: start; border-top: 1px solid #668575; padding-block: 24px; min-width: 220px; }
.product-capture { grid-column: 2; grid-row: 1 / 3; text-align: center; padding: 24px; border: 1px solid #668575; border-radius: 12px; background: rgb(255 255 255 / 4%); }
.product-capture img { display: block; width: min(100%, 224px); height: auto; border-radius: 24px; margin: 0 auto 24px; box-shadow: 0 4px 8px rgb(0 0 0 / 12%), 0 24px 48px rgb(0 0 0 / 16%); }
.product-capture figcaption { font-size: 11px; color: #d9e4d4; }
.product-capture a { display: inline-block; padding-block: 8px; }
.product-footnote { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.product-footnote span { font-family: var(--serif); font-size: 24px; font-style: italic; }
.product-footnote p { font-size: 12px; color: var(--muted); max-width: 55ch; }
.landing .contact-section { padding-block: 48px; }
@media (max-width: 900px) {
 .landing .hero { gap: 24px; }
 .landing .product-panel { gap: 24px; padding: 32px; }
 .approach-grid { gap: 32px; }
}
@media (max-width: 650px) {
 .landing nav { gap: 16px; }
 .landing .hero { padding-block: 40px; }
 .landing .hero-art { padding: 16px; }
 .approach-section { padding-block: 32px 48px; }
 .approach-grid, .landing .product-panel, .product-footnote { grid-template-columns: 1fr; gap: 24px; }
 .landing .product-panel { padding: 24px; }
 .product-capture { grid-column: auto; grid-row: auto; padding: 24px 16px; }
 .development-status { margin-bottom: 24px; }
 .landing .product-link { min-width: 0; }
 .product-footnote { gap: 8px; }
}
/* The dark scheme uses a pale accent: keep hover text on the paper side. */
.landing .button:hover { color: var(--paper); }
.motion-toggle { border-color: var(--accent); }

/* Magic UI Border Beam — Copyright (c) Magic UI, MIT.
   Native port of third-party/magicui-border-beam.tsx at efe76fc5755eca1142dd4f74c1d6f0ace2887e3c.
   Full permission notice ships in THIRD-PARTY-NOTICES.txt. */
.border-beam {
  --beam-size: 64px;
  --beam-duration: 12s;
  display: none;
}
@supports (offset-path: rect(0 auto auto 0 round 64px)) and (mask-composite: intersect) {
  @media (prefers-reduced-motion: no-preference) {
    .border-beam {
      display: block;
      pointer-events: none;
      position: absolute;
      inset: -1px;
      border-radius: inherit;
      border: 1px solid transparent;
      mask-image: linear-gradient(transparent, transparent), linear-gradient(#000, #000);
      mask-composite: intersect;
      mask-clip: padding-box, border-box;
      opacity: 0;
    }
    .border-beam-trail {
      position: absolute;
      width: var(--beam-size);
      aspect-ratio: 1;
      background: linear-gradient(to left, var(--accent), var(--ink), transparent);
      offset-path: rect(0 auto auto 0 round var(--beam-size));
      offset-distance: 0%;
      animation: border-beam-travel var(--beam-duration) linear infinite paused;
    }
    .hero-art.is-animating .border-beam { opacity: 1; }
    .hero-art.is-animating .border-beam-trail { animation-play-state: running; }
  }
}
@keyframes border-beam-travel {
  to { offset-distance: 100%; }
}

/* Film captions stay outside the artwork, readable at every chapter and size. */
.hero-art {
  --film-space-1: 4px;
  --film-space-2: 8px;
  --film-space-3: 12px;
  --film-space-4: 16px;
  --film-type-caption: 11px;
  --film-type-body: 13px;
  --film-type-title: 22px;
  --film-type-formula: 18px;
  --film-target: 44px;
}
.instrument-label > span:last-child { flex-shrink: 0; }
.landing .hero-art .film-caption { text-align: left; font-size: var(--film-type-body); }
.chapter-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--film-space-1) var(--film-space-3); color: var(--ink); }
.chapter-title { font: var(--film-type-title)/1.25 var(--serif); letter-spacing: -.025em; }
.chapter-bound { font: italic var(--film-type-formula)/1.4 var(--serif); color: var(--accent); white-space: nowrap; }
.chapter-detail { margin-top: var(--film-space-2); min-height: 6.4em; max-width: 44ch; text-wrap: pretty; }
.chapter-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--film-space-2); margin-top: var(--film-space-4); }
.chapter-control { display: flex; flex-direction: column; align-items: start; gap: var(--film-space-1); min-height: calc(var(--film-target) + var(--film-space-3)); padding: var(--film-space-2) var(--film-space-1); border: 0; border-top: 2px solid var(--line); background: transparent; color: var(--muted); font: var(--film-type-caption)/1.4 var(--sans); cursor: pointer; }
.chapter-control > span { font-variant-numeric: tabular-nums; }
.chapter-control[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); }
.chapter-control:hover { color: var(--accent); }
.chapter-control:disabled { cursor: default; }
.film-qualification { margin-top: var(--film-space-3); color: var(--muted); font-size: var(--film-type-caption); line-height: 1.6; }
.film-transcript { margin-top: var(--film-space-2); color: var(--muted); font-size: var(--film-type-body); }
.film-transcript summary { display: list-item; cursor: pointer; padding-block: var(--film-space-3); color: var(--accent); min-height: var(--film-target); }
.film-transcript summary:focus-visible { outline: 2px solid var(--accent); outline-offset: var(--film-space-1); }
.film-transcript p { margin-bottom: var(--film-space-3); }
.film-transcript strong { color: var(--ink); font-weight: 500; }
.film-transcript a { color: var(--accent); }
@media (min-width: 601px) and (max-width: 900px) {
  .landing .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 600px; }
}
