:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --ink: #252822;
  --muted: #65685e;
  --line: #d5d7cb;
  --soft: #eceee5;
  --accent: #526537;
  --reference: #efeee7;
  --highlight: #e7ebdf;
  --banner: #e6e8dc;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #20221e;
  --ink: #eeeee5;
  --muted: #b0b4a6;
  --line: #41463a;
  --soft: #292d25;
  --accent: #b3c990;
  --reference: #2b2d27;
  --highlight: #303827;
  --banner: #2c3226;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
  color-scheme: dark;
  --paper: #20221e;
  --ink: #eeeee5;
  --muted: #b0b4a6;
  --line: #41463a;
  --soft: #292d25;
  --accent: #b3c990;
  --reference: #2b2d27;
  --highlight: #303827;
  --banner: #2c3226;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
p { line-height: 1.6; }
.site-header, main, footer { max-width: 1440px; margin-inline: auto; }
.site-header { margin-inline: auto; padding: 25px 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 36px; font-weight: 800; letter-spacing: -3px; line-height: 1; }
nav { display: flex; gap: 30px; font-size: 13px; }
nav a { padding-block: 8px; }
nav a:hover, .text-link:hover { color: var(--accent); }
.intro { padding: 64px 5% 62px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: end; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 1.1px; text-transform: uppercase; margin: 0 0 17px; color: var(--muted); }
h1 { font-size: clamp(42px, 5.2vw, 72px); line-height: 1.05; font-weight: 400; letter-spacing: -.055em; margin: 0; }
.intro-copy { max-width: 450px; }
.intro-copy > p { font-size: 17px; margin: 0 0 14px; }
.intro-copy .intro-detail { color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 30px; font-size: 13px; border-bottom: 1px solid var(--ink); padding: 7px 0; margin-top: 3px; }
.story { margin-inline: 5%; padding-block: 37px 65px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
h2 { font-size: clamp(29px, 3vw, 41px); font-weight: 400; line-height: 1.15; letter-spacing: -.04em; margin: 0; }
.example-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 0; }
.story-row { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: 50px; align-items: center; }
.story-row + .story-row { margin-top: 48px; }
.conversation-copy { min-width: 0; padding-block: 12px; }
.message { margin: 0 0 28px; }
.message:last-child { margin-bottom: 0; }
.speaker { display: block; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.message p { margin: 0; }
.folder-context { display: inline-block; padding: 6px 9px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; color: var(--muted); }
.user { border-left: 2px solid #929b7f; padding-left: 17px; }
.user p { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; letter-spacing: -.025em; }
.agent { padding-left: 19px; }
.agent p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.story-image { min-width: 0; }
.story-image > figcaption { font-size: 11px; line-height: 1.5; color: var(--muted); display: flex; gap: 15px; justify-content: space-between; margin-top: 12px; }
.compare-hint { flex-shrink: 0; }
.comparison { position: relative; overflow: hidden; background: #282e2d; isolation: isolate; }
.comparison .before { position: absolute; inset: 0; height: 100%; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.photo-label { position: absolute; top: 14px; color: #fff; background: #192019b8; padding: 6px 8px; font-size: 9px; letter-spacing: .4px; line-height: 1.4; pointer-events: none; }
.left { left: 14px; }
.right { right: 14px; }
.divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 1px; background: #ffffffa8; pointer-events: none; }
.divider span { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 22px; box-shadow: 0 1px 4px #0002; }
.comparison[data-edge="start"] .divider span { transform: translate(0, -50%); }
.comparison[data-edge="end"] .divider span { transform: translate(-100%, -50%); }
.comparison input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparison:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.california-story { padding-top: 40px; }
.gallery-row { align-items: start; }
.gallery-row .conversation-copy { padding-top: 45px; }
.gallery-panel { background: var(--soft); border: 1px solid var(--line); padding: 19px; }
.panel-label { display: flex; justify-content: space-between; gap: 18px; font-size: 10px; color: var(--muted); line-height: 1.5; padding-bottom: 15px; }
.chat-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chat-gallery figure { background: var(--paper); }
.chat-gallery img { aspect-ratio: 3130 / 2075; object-fit: contain; }
.chat-gallery figcaption { font-size: 11px; padding: 12px 10px; display: flex; justify-content: space-between; gap: 6px; }
.chosen-photo { outline: 2px solid #667947; outline-offset: 3px; }
.chosen-photo a { display: block; }
.chosen-photo a:hover { background: var(--soft); }
.chosen-label { color: var(--accent); white-space: nowrap; }
.reference-image { width: min(64%, 520px); margin-inline: auto; padding: 20px; border: 1px solid var(--line); background: var(--reference); }
.reference-image > figcaption { display: block; margin-top: 12px; }
.story-footnote { color: var(--muted); font-size: 11px; max-width: 690px; margin: 23px 0 0 auto; }
.project-section { margin-inline: 5%; padding-block: 46px 60px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.project-intro > p:not(.eyebrow) { font-size: 15px; color: var(--muted); max-width: 420px; }
.project-intro > p.follow-up-example { font-size: 23px; letter-spacing: -.02em; line-height: 1.4; color: var(--ink); margin: 28px 0 16px; }
.project-facts { margin: 0; }
.project-facts > div { padding: 19px 0; border-bottom: 1px solid var(--line); }
.project-facts > div:first-child { padding-top: 0; }
.project-facts dt { font-size: 15px; margin-bottom: 8px; }
.project-facts dd { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.plain-note { font-size: 14px; line-height: 1.7; color: var(--muted); padding-left: 19px; }
.about-section { margin-inline: 5%; padding-block: 42px 55px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.about-intro > p:not(.eyebrow) { font-size: 15px; color: var(--muted); max-width: 420px; }
.about-intro h2 { margin-bottom: 25px; }
.getting-started-prompt { margin: 22px 0; padding: 14px 18px; border-left: 2px solid var(--ink); font-size: 20px; line-height: 1.4; max-width: 420px; }
.questions details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.questions details:first-child { padding-top: 0; }
.questions summary { cursor: pointer; font-size: 15px; line-height: 1.5; }
.questions p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.download { margin-inline: 5%; background: var(--highlight); border: 1px solid var(--line); padding: 33px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.download h2 { font-size: 29px; }
.download p { font-size: 14px; color: var(--muted); margin-block: 0 10px; }
.download .eyebrow { font-size: 11px; }
.download .release-status { color: var(--ink); font-size: 16px; }
.download-button { display: inline-block; padding: 15px 21px; background: var(--ink); color: var(--paper); font-size: 14px; margin-bottom: 14px; }
.release-meta, .checksum { font-size: 12px; }
.checksum { overflow-wrap: anywhere; }
.checksum summary { cursor: pointer; }
footer { padding: 42px 5%; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
footer p, footer > span { font-size: 11px; color: var(--muted); }
.prototype-banner { padding: 9px 5%; background: var(--banner); border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 11px; letter-spacing: .6px; }
.skip { position: fixed; top: -100px; z-index: 10; padding: 12px; background: var(--soft); }
.skip:focus { top: 5px; }
@media (max-width: 1000px) {
  .intro { gap: 36px; }
  .story-row { grid-template-columns: minmax(190px, .8fr) minmax(0, 1.8fr); gap: 30px; }
  .project-section, .about-section { gap: 50px; }
  .reference-image { width: 80%; padding: 15px; }
  .download { gap: 35px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 18px; }
  .site-header { padding: 21px 6%; }
  .wordmark { font-size: 32px; }
  nav { font-size: 11px; gap: 17px; }
  .intro { padding: 39px 6% 38px; grid-template-columns: 1fr; gap: 24px; }
  h1 { font-size: clamp(40px, 9vw, 60px); }
  .intro-copy { max-width: 100%; }
  .intro-copy > p { font-size: 16px; }
  .story { margin-inline: 6%; padding-block: 30px 42px; }
  .section-heading { display: block; margin-bottom: 23px; }
  .example-note { margin-top: 13px; }
  .story-row { grid-template-columns: 1fr; gap: 21px; }
  .story-row + .story-row { margin-top: 37px; }
  .conversation-copy { padding: 0; }
  .message { margin-bottom: 19px; }
  .user p { font-size: 21px; }
  .agent p { font-size: 14px; }
  .story-image > figcaption { font-size: 10px; flex-wrap: wrap; gap: 4px 14px; }
  .photo-label { top: 9px; font-size: 8px; padding: 5px 6px; }
  .left { left: 9px; }
  .right { right: 9px; }
  .divider span { width: 32px; height: 32px; font-size: 20px; }
  .gallery-row .conversation-copy { padding: 0; }
  .gallery-panel { padding: 12px; }
  .panel-label { font-size: 9px; padding-bottom: 12px; }
  .chat-gallery { gap: 11px; }
  .chat-gallery figcaption { font-size: 10px; padding: 10px 7px; flex-wrap: wrap; }
  .reference-image { width: min(84%, 360px); padding: 13px; }
  .story-footnote { font-size: 10px; margin-top: 18px; }
  .project-section, .about-section { margin-inline: 6%; padding-block: 32px 40px; grid-template-columns: 1fr; gap: 25px; }
  .project-intro > p:not(.eyebrow), .about-intro > p:not(.eyebrow) { max-width: none; }
  .project-facts > div { padding-block: 16px; }
  .download { margin-inline: 6%; padding: 24px; grid-template-columns: 1fr; gap: 20px; }
  .download h2 { font-size: 27px; }
  footer { padding: 31px 6%; flex-wrap: wrap; gap: 16px; }
  footer p { order: 3; width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Keep project/contact and independence copy within the existing layout. */
.download .contact-note { margin-top: 20px; }
.contact-link { margin-top: 0; }
footer { flex-wrap: wrap; }
footer .independence-note { flex-basis: 100%; margin: 0; font-size: 11px; }

/* Establish the reference collection before the California example. */
.memory-copy h2 { margin: 0 0 20px; font-size: 28px; font-weight: 400; line-height: 1.15; letter-spacing: -.035em; }
.memory-copy > p:not(.eyebrow) { font-size: 15px; color: var(--muted); }
.memory-copy > p.memory-detail { font-size: 12px; }
.memory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: start; }
.memory-grid figure { min-width: 0; }
.memory-grid img { aspect-ratio: 3 / 2; object-fit: contain; background: var(--paper); }
.memory-grid figcaption { margin-top: 10px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.memory-grid a { display: block; }
.memory-grid a:hover figcaption { color: var(--ink); }
.memory-caption { margin: 18px 0 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
@media (max-width: 700px) {
  .memory-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .memory-copy h2 { font-size: 26px; margin-bottom: 15px; }
  .memory-grid figcaption { font-size: 10px; }
}

.project-recall { margin: 30px 0 0 19px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-recall p { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.project-recall .recall-label { font-size: 10px; margin-top: 20px; letter-spacing: .4px; text-transform: uppercase; }
.project-recall .recall-example { font-size: 16px; color: var(--ink); line-height: 1.45; }

/* Legal pages and persistent footer links. */
.legal-links { flex-wrap: wrap; gap: 10px 24px; }
.legal-links a { text-decoration: underline; text-underline-offset: 4px; }
.legal-page { max-width: 850px; padding: 64px 5% 80px; overflow-wrap: anywhere; }
.legal-page h1 { font-size: clamp(34px, 6vw, 56px); margin-bottom: 40px; }
.legal-page h2 { font-size: 24px; margin: 36px 0 16px; letter-spacing: -.02em; }
.legal-page p { font-size: 16px; }
.legal-page p a { text-decoration: underline; text-underline-offset: 3px; }

/* Quiet appearance control; native disclosure supports keyboard interaction. */
.header-actions { display: flex; align-items: center; gap: 24px; }
.theme-control { position: relative; color: var(--muted); }
.theme-control[hidden] { display: none; }
.theme-control summary { list-style: none; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.theme-control summary:focus-visible { outline-width: 2px; outline-offset: 2px; }
.theme-control summary::-webkit-details-marker { display: none; }
.theme-control summary:hover, .theme-control[open] summary { color: var(--ink); background: var(--soft); }
.theme-options { position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); min-width: 126px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 6px 20px #00000012; }
.theme-options button { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; border-radius: 4px; padding: 9px 10px; font: 12px Arial, sans-serif; text-align: left; color: var(--muted); background: transparent; cursor: pointer; }
.theme-options button[aria-pressed="true"] { color: var(--ink); }
.theme-options button[aria-pressed="true"]::after { content: '✓'; margin-left: 20px; }
.theme-options button:hover { color: var(--ink); background: var(--soft); }
.theme-options button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px; padding-block: 36px 32px; }
.footer-brand { display: flex; align-items: baseline; gap: 20px; }
footer .wordmark { font-size: 28px; letter-spacing: -2px; }
.footer-brand span { font-size: 11px; color: var(--muted); }
footer .legal-links { font-size: 11px; gap: 20px; color: var(--muted); }
footer .legal-links a { text-decoration: none; padding-block: 8px; }
footer .legal-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-notes { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px 30px; }
.footer-notes p, footer .independence-note { margin: 0; font-size: 10px; line-height: 1.6; }
footer .independence-note { flex-basis: auto; max-width: 500px; }
@media (max-width: 700px) {
  .site-header { gap: 14px; }
  .header-actions { gap: 12px; }
  .header-actions nav { gap: 12px; }
  footer { grid-template-columns: 1fr; gap: 16px; }
  .footer-notes { flex-direction: column; gap: 6px; padding-top: 16px; }
  .footer-notes p { width: auto; order: initial; }
}
@media (max-width: 380px) {
  .site-header { flex-wrap: wrap; }
  .header-actions { width: 100%; justify-content: space-between; }
}
