@font-face { font-family:Jost; font-weight:400; font-style:normal; font-display:swap; src:url('fonts/Jost-400-Book.otf') format('opentype'); }
@font-face { font-family:Jost; font-weight:600 900; font-style:normal; font-display:swap; src:url('fonts/Jost-600-Semi.otf') format('opentype'); }
/* Theme names, palette tokens and sidebar breakpoints follow Darkwaar. */
:root { --display: Jost,system-ui,-apple-system,'Segoe UI',sans-serif; --mono: ui-monospace,SFMono-Regular,Consolas,monospace; }
body.theme-light { --text-color:#000000; --bg-color:#ffffff; --input-color:#ffffff; --border-color:#eff2f7; --primary-color:#0066cc; --primary-hover-color:#004080; --muted:#576068; --accent:#0066cc; --soft:#eff2f7; --nav-color:#ffffff; color-scheme:light; }
body.theme-sepia { --text-color:#433422; --bg-color:#f1e7d0; --input-color:#eadec2; --border-color:#ded0bf; --primary-color:#0066cc; --primary-hover-color:#004080; --muted:#695236; --accent:#0066cc; --soft:#eadec2; --nav-color:#f1e7d0; color-scheme:light; }
body.theme-dark { --text-color:#ebf4f1; --bg-color:#091a28; --input-color:#0e2233; --border-color:#0f2b3d; --primary-color:#0066cc; --primary-hover-color:#004080; --muted:#adb5bd; --accent:#8ed6fb; --soft:#0e2233; --nav-color:#080808; color-scheme:dark; }
body { --paper:var(--bg-color); --white:var(--input-color); --ink:var(--text-color); --line:var(--border-color); }
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.6 system-ui,sans-serif;
}
a {
  color:inherit;
}
button,input,select {
  font:inherit;
}
button,a,input,select {
  touch-action:manipulation;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px;
}
.site-header,main,footer {
  max-width:1240px;
  margin:auto;
}
.site-header {
  height:94px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:18px;
}
.brand {
  text-decoration:none;
  font-weight:800;
  letter-spacing:.08em;
}
.brand-dot {
  color:var(--accent);
  font-size:28px;
  margin-right:12px;
}
.header-note,.eyebrow,.card-top,.section-heading>span,.source-link {
  font:11px/1.5 var(--mono);
  letter-spacing:.12em;
}
.source-link {
  text-decoration:none;
  border-bottom:1px solid var(--accent);
}
.hero {
  padding:68px 0 50px;
  border-bottom:1px solid var(--line);
}
.eyebrow {
  color:var(--accent);
  font-weight:600;
}
.hero h1 {
  font:500 clamp(38px,6vw,80px)/1.08 system-ui,sans-serif;
  letter-spacing:-.055em;
  margin:26px 0 20px;
}
.serif-line {
  display:block;
  font:600 clamp(52px,8vw,112px)/1.02 var(--display);
  letter-spacing:-.045em;
  margin-top:18px;
}
.hero-bottom {
  display:flex;
  justify-content:space-between;
  align-items:end;
}
.hero-bottom>p {
  max-width:570px;
  color:var(--muted);
  font-size:18px;
}
.big-six {
  font:600 112px/1 var(--display);
  color:var(--accent);
}
.experiences {
  padding-top:38px;
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:25px;
}
.section-heading h2 {
  font:600 28px/1.3 var(--display);
  margin:0;
}
.section-heading>span {
  color:var(--muted);
  text-align:right;
}
.cards {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.demo-card {
  display:flex;
  flex-direction:column;
  padding:26px 24px;
  text-decoration:none;
  border:1px solid var(--line);
  min-height:304px;
  transition:background .15s,border-color .15s;
}
.demo-card:hover {
  background:var(--white);
  border-color:var(--accent);
}
.card-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--muted);
}
.arrow {
  font:24px var(--display);
  color:var(--accent);
}
.service {
  margin-top:30px;
  font:12px var(--mono);
  color:var(--accent);
}
.demo-card h3 {
  font:600 27px/1.15 var(--display);
  margin:10px 0;
}
.demo-card p {
  font-size:14px;
  color:var(--muted);
  margin:0 0 25px;
}
.card-bottom {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:auto;
}
.scope {
  font-size:13px;
  color:var(--muted);
  padding:4px 18px;
  margin:35px 0 55px;
  max-width:850px;
}
footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:24px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}
.demo-nav {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
}
.demo-nav a {
  text-decoration:none;
}
.demo-nav a[aria-current] {
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:6px;
}
.demo-heading {
  padding:45px 0 32px;
}
.demo-heading h1 {
  font:600 clamp(36px,5vw,64px)/1.12 var(--display);
  letter-spacing:-.035em;
  margin:12px 0;
}
.demo-heading>p:last-child {
  font-size:18px;
  color:var(--muted);
}
.workbench {
  background:var(--white);
  border:1px solid var(--line);
  padding:32px;
}
h2 {
  font:600 28px/1.25 var(--display);
}
h3 {
  font:600 22px/1.3 var(--display);
}
.hint {
  font-size:13px;
  color:var(--muted);
  max-width:780px;
}
.search {
  display:flex;
  align-items:end;
  gap:12px;
  flex-wrap:wrap;
}
.search label {
  width:100%;
  font-size:13px;
}
.search input {
  max-width:300px;
}
input:not([type=checkbox]):not([type=range]),select {
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--ink);
  padding:10px 12px;
  border-radius:0;
  max-width:100%;
  min-height:46px;
}
button {
  border:1px solid #0d6efd;
  background:#0d6efd;
  color:#ffffff;
  padding:11px 18px;
  cursor:pointer;
  line-height:1.4;
}
button:hover {
  filter:brightness(.93);
}
button:disabled {
  opacity:.45;
  cursor:default;
}
.secondary {
  background:transparent;
  color:var(--accent);
}
.text-button {
  border-color:transparent;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  text-decoration:underline;
}
form>div:not(.actions) {
  margin-bottom:18px;
}
form>div>label:not([for$=memory]) {
  display:block;
  font-size:13px;
  margin-bottom:6px;
}
form ul {
  color:#ea868f;
}
.actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0;
}
.vertical {
  align-items:start;
  flex-direction:column;
}
.tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font:11px/1.6 var(--mono);
  color:var(--accent);
}
.tags span {
  background:var(--soft);
  padding:4px 8px;
}
.decision {
  margin-top:32px;
  border-top:1px solid var(--line);
  padding-top:28px;
}
.timeline {
  list-style:none;
  border-left:1px solid var(--line);
  margin:30px 0 0 8px;
  padding:0 0 0 24px;
}
.timeline li {
  padding:0 0 22px;
}
.timeline h3 {
  font:18px/1.5 system-ui,sans-serif;
  margin:8px 0;
}
.timeline p {
  font-size:13px;
  color:var(--muted);
}
.mono {
  font:12px var(--mono);
  color:var(--accent);
}
.memory-lanes {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin:28px 0;
}
.memory-lanes article {
  padding:22px;
  border:1px solid var(--line);
}
.memory-lanes p {
  font-size:14px;
  color:var(--muted);
}
.memory-lanes h3 {
  font-size:26px;
}
.two-columns {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}
.steps {
  padding-left:22px;
}
.steps li {
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.run {
  padding:22px 0;
  border-top:1px solid var(--line);
}
.run ol {
  font-size:14px;
}
.knowledge {
  padding:0 20px;
  margin-bottom:28px;
}
.room {
  text-align:center;
  background:var(--soft);
  padding:20px;
}
.door-art {
  height:180px;
  width:110px;
  border-radius:65px 65px 0 0;
  border:10px solid #343a40;
  background:#000000;
  margin:28px auto;
  display:grid;
  place-items:center;
  color:#8ed6fb;
  font:60px system-ui;
}
.door-art.opened {
  background:#8ed6fb;
  color:#000000;
}
.doors button {
  flex:1;
}
.note-grid {
  display:grid;
  grid-template-columns:40px repeat(8,1fr);
  gap:6px;
  margin:26px 0;
}
.note-label {
  font:12px var(--mono);
  align-self:center;
}
.note-cell {
  border:1px solid var(--line);
  background:var(--soft);
  height:52px;
  padding:0;
  color:var(--accent);
}
.note-cell[aria-pressed=true] {
  background:var(--accent);
  border-color:var(--accent);
  color:var(--white);
}
.note-cell.playing {
  outline:3px solid var(--ink);
  outline-offset:1px;
}
.transport {
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}
input[type=range] {
  accent-color:var(--accent);
  max-width:180px;
}
.storyboard {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:30px;
}
.scene {
  border:1px solid var(--line);
  --scene:#b87134;
}
.palette-bleu {
  --scene:#447e9b;
}
.palette-vert {
  --scene:#53734a;
}
.scene-copy {
  padding:16px;
}
.scene-copy h3 {
  margin:8px 0;
}
.scene-copy p {
  font-size:13px;
}
.scene-copy .eyebrow {
  font-size:9px;
}
.scene-art {
  height:160px;
  background:color-mix(in srgb,var(--scene) 22%,var(--white));
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.moon-shape {
  position:absolute;
  width:38px;
  height:44px;
  border-radius:50%;
  background:var(--scene);
  top:20px;
  right:28px;
}
.mountain {
  position:absolute;
  border-left:100px solid transparent;
  border-right:100px solid transparent;
  border-bottom:110px solid var(--scene);
  opacity:.35;
  bottom:0;
  left:5%;
}
.person {
  position:absolute;
  width:24px;
  height:54px;
  border-radius:18px 18px 0 0;
  background:var(--scene);
  bottom:0;
  left:40%;
}
.person:before {
  content:'';
  display:block;
  position:absolute;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--ink);
  top:-26px;
}
.prop {
  position:absolute;
  width:12px;
  height:16px;
  border:2px solid var(--ink);
  bottom:25px;
  left:calc(40% + 30px);
}
.narrative-note {
  padding:24px;
  background:var(--soft);
  align-self:start;
}
.narrative-note p {
  font-size:14px;
}
@media(max-width:1300px) {
  .site-header,main,footer {
    margin-left:0;
    margin-right:0;
  }
}
@media(max-width:850px) {
  .cards {
    grid-template-columns:repeat(2,1fr);
  }
  .two-columns {
    gap:24px;
  }
  .memory-lanes {
    grid-template-columns:1fr;
  }
  .storyboard {
    grid-template-columns:repeat(2,1fr);
  }
}
@media(max-width:600px) {
  .site-header,main,footer {
    margin-left:0;
    margin-right:0;
  }
  .site-header {
    height:76px;
  }
  .header-note {
    display:none;
  }
  .hero {
    padding:38px 0;
  }
  .hero-bottom>p {
    font-size:16px;
  }
  .big-six {
    font-size:70px;
  }
  .hero-bottom {
    gap:12px;
  }
  .cards,.two-columns,.storyboard {
    grid-template-columns:1fr;
  }
  .section-heading {
    align-items:start;
    flex-direction:column;
    gap:8px;
  }
  .section-heading>span {
    text-align:left;
  }
  .demo-card {
    min-height:265px;
  }
  .workbench {
    padding:18px;
  }
  .demo-nav {
    gap:12px;
  }
  footer {
    flex-direction:column;
  }
  .note-grid {
    gap:3px;
    grid-template-columns:24px repeat(8,1fr);
  }
  .note-cell {
    height:44px;
  }
  .source-link {
    font-size:10px;
  }
  .hero h1 {
    margin-top:18px;
  }
  .scope {
    margin-bottom:36px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
  }
}


/* Uniflow Library/Docs: Jost 18px, 1rem gutters and 8px active dots. */
:root { --header-height:61px; --indicator-size:8px; --indicator-gap:12px; }
body { font-family:var(--display); font-size:1.125rem; line-height:1.5; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
.navbar-top { height:var(--header-height); position:sticky; top:0; z-index:30; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:0 16px; background:var(--nav-color); border-bottom:1px solid var(--line); }
.header-brand { display:inline-flex; align-items:center; gap:12px; min-width:0; text-decoration:none; font-weight:600; font-size:18px; }
.logo-surface { display:block; background:#ffffff; border-radius:6px; padding:2px; flex:none; }
.logo-surface img { display:block; width:36px; height:36px; object-fit:contain; }
.top-actions { display:flex; align-items:center; gap:4px; }
.icon-control { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:10px; flex:none; border:0; border-radius:6px; background:transparent; color:var(--ink); text-decoration:none; }
.icon-control:hover { background:var(--soft); color:var(--accent); }
.ui-icon { display:block; width:20px; height:20px; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.app-layout { display:flex; align-items:flex-start; }
.sidebar { position:sticky; top:var(--header-height); height:calc(100dvh - var(--header-height)); overflow-y:auto; flex:none; width:300px; padding:16px; border-right:1px solid var(--line); background:var(--nav-color); overscroll-behavior:contain; }
.sidebar-nav a { position:relative; display:flex; flex-direction:column; justify-content:center; min-height:48px; padding:8px 8px 8px calc(var(--indicator-size) + var(--indicator-gap)); margin:4px 0; text-decoration:none; font-size:18px; border-radius:6px; }
.sidebar-nav a small { font-size:14px; color:var(--muted); }
.sidebar-nav a:hover { background:var(--soft); color:var(--accent); }
.sidebar-nav a[aria-current] { color:var(--accent); font-weight:600; }
.sidebar-nav a::before,.mode-note::before,.scope::before,.knowledge::before { content:''; position:absolute; width:var(--indicator-size); height:var(--indicator-size); border-radius:50%; background:var(--accent); }
.sidebar-nav a::before { left:0; top:calc(8px + .75em - var(--indicator-size)/2); opacity:0; }
.sidebar-nav a[aria-current]::before,.sidebar-nav a:hover::before { opacity:1; }
.nav-caption { font-size:16px; font-weight:600; color:var(--ink); margin:24px 0 12px; }
.mode-note,.scope,.knowledge { position:relative; border-left:0; padding-left:calc(var(--indicator-size) + var(--indicator-gap)); }
.mode-note::before,.scope::before,.knowledge::before { left:0; top:calc(.75em - var(--indicator-size)/2); }
.mode-note { padding-top:12px; padding-bottom:12px; padding-right:16px; background:var(--soft); font-size:14px; }
.mode-note::before { top:calc(12px + .75em - var(--indicator-size)/2); }
.scope { padding-top:0; padding-bottom:0; font-size:14px; }
.knowledge { padding-top:0; }
.knowledge > h2 { margin-top:0; }
.knowledge::before { top:calc(19.2px - var(--indicator-size)/2); }
.page-column { min-width:0; flex:1; }
main,footer { max-width:1280px; margin:0 auto; padding-left:24px; padding-right:24px; }
.hero { padding-top:32px; }
.hero h1,.demo-heading h1 { font:600 clamp(32px,4vw,45px)/1.2 var(--display); letter-spacing:normal; }
.serif-line { font:600 clamp(36px,4vw,54px)/1.15 var(--display); letter-spacing:normal; }
.big-six { font-size:80px; }
h2,.section-heading h2 { font-size:32px; line-height:1.2; }
h3 { font-size:26px; line-height:1.2; }
.timeline h3 { font-family:var(--display); }
.demo-nav { display:none; }
.demo-heading { padding-top:32px; }
.demo-card,.workbench,.memory-lanes article,.narrative-note { border-radius:8px; }
.demo-card { background:var(--white); }
.demo-card:hover { background:var(--soft); }
button,input:not([type=checkbox]):not([type=range]),select { border-radius:6px; }
button { min-height:44px; font-weight:600; background:var(--primary-color); border-color:var(--primary-color); color:#ffffff; }
button:hover { filter:none; background:var(--primary-hover-color); }
button:disabled { opacity:.55; }
button[hidden] { display:none; }
.secondary { background:transparent; color:var(--ink); border-color:#6c757d; }
.secondary:hover { background:var(--soft); color:var(--accent); border-color:var(--accent); }
.icon-control { background:transparent; color:var(--ink); }
.icon-control:hover { background:var(--soft); color:var(--accent); }
.text-button { background:transparent; color:var(--muted); border-color:transparent; }
.text-button:hover { background:transparent; color:var(--ink); }
input:not([type=checkbox]):not([type=range]),select,.note-cell { border-color:#6c757d; }
input[type=checkbox] { accent-color:var(--primary-color); width:20px; height:20px; vertical-align:middle; }
.note-cell { background:var(--soft); color:var(--ink); }
.note-cell:hover { background:var(--input-color); border-color:var(--accent); }
.note-cell[aria-pressed=true],.note-cell[aria-pressed=true]:hover { background:var(--primary-color); color:#ffffff; border-color:var(--primary-color); }
.door-art { border-color:#6c757d; background:var(--bg-color); color:var(--accent); }
.door-art.opened { background:var(--primary-color); color:#ffffff; }
.skip-link { position:fixed; top:8px; left:8px; transform:translateY(-200%); padding:12px; z-index:50; background:var(--primary-color); color:#ffffff; }
.skip-link:focus { transform:none; }
.workbench,.two-columns>*,.memory-lanes>*,.scene { min-width:0; }
.tags,.hint,.scene-copy,.decision { overflow-wrap:anywhere; }
footer { padding-top:24px; padding-bottom:24px; }
.mobile-only { display:none; }
@media(min-width:576px) and (max-width:767px) { .sidebar { width:180px; } main,footer { padding-left:16px; padding-right:16px; } .cards,.two-columns,.storyboard { grid-template-columns:1fr; } }
@media(min-width:768px) and (max-width:991px) { .sidebar { width:240px; } .cards,.two-columns,.storyboard { grid-template-columns:1fr; } }
@media(max-width:1200px) { .cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .two-columns { gap:24px; } .memory-lanes { grid-template-columns:1fr; } }
@media(max-width:991px) { .two-columns { grid-template-columns:1fr; } .storyboard { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) { .cards,.storyboard { grid-template-columns:1fr; } }
@media(max-width:575px) {
  .navbar-top { padding:0 12px; gap:4px; }
  .header-brand { gap:8px; font-size:16px; }
  .header-brand span:last-child { white-space:nowrap; }
  .top-actions { gap:0; }
  .mobile-only { display:inline-flex; align-items:center; }
  .sidebar { position:fixed; z-index:25; inset:var(--header-height) 0 0; width:100%; height:calc(100dvh - var(--header-height)); border:0; padding:16px; visibility:hidden; transform:translateX(-100%); transition:transform .18s,visibility .18s; -webkit-overflow-scrolling:touch; }
  .menu-open { overflow:hidden; }
  .menu-open .sidebar { transform:translateX(0); visibility:visible; }
  .mobile-menu-heading { width:100%; justify-content:space-between; font-weight:600; margin-bottom:12px; }
  .sidebar-nav a { min-height:56px; }
  main,footer { padding-left:16px; padding-right:16px; margin-left:0; margin-right:0; }
  .hero { padding:28px 0; }
  .hero-bottom { gap:12px; align-items:flex-start; }
  .big-six { font-size:46px; }
  .workbench { padding:16px; }
  .workbench:has(.note-grid) { padding:10px; }
  .note-grid { grid-template-columns:24px repeat(8,minmax(24px,1fr)); gap:3px; }
  .note-cell { height:44px; min-width:24px; }
  .demo-heading h1 { font-size:32px; }
  .actions button { max-width:100%; }
}
@media(max-width:359px) { .header-brand span:last-child { display:none; } }
@media(prefers-reduced-motion:reduce) { * { transition:none!important; } }
