/* ==========================================================================
   HOME: every section on the landing page, in page order.
   ========================================================================== */

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: 24px;
  min-height: 100dvh;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 32px;
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__copy { position: relative; z-index: 1; grid-column: 1 / 9; grid-row: 1; align-self: center; }

.hero__status {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 16px 0 12px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-small); font-weight: 500;
  color: var(--ink-2);
}
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 4px color-mix(in srgb, var(--positive) 18%, transparent); }

.hero__title {
  max-width: 9.6em;
  margin-top: 32px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--fs-hero);
  line-height: 1.02;
  font-weight: 600;
  font-stretch: 94%;
  letter-spacing: -0.045em;
}
/* The highlight arrives with the thread, from the right */
.hero__mark { background-position: 100% 92%; transition-duration: 900ms; }
.hero__lead { max-width: 520px; margin-top: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero__art { position: relative; z-index: 1; grid-column: 9 / 13; grid-row: 1; align-self: center; }
.hero__ball { width: 100%; aspect-ratio: 1; border-radius: 50%; cursor: grab; touch-action: pan-y; }
.hero__ball.is-grabbing { cursor: grabbing; }
.hero__fig {
  display: flex; justify-content: center; align-items: baseline; gap: 12px;
  margin-top: 8px;
  font-size: var(--fs-small); line-height: 20px; color: var(--ink-2);
}
.hero__fig .t-mono { color: var(--ink-3); }

.hero__meta {
  position: relative; z-index: 1;
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__meta dt { font-size: 13px; line-height: 20px; color: var(--ink-3); }
.hero__meta dd { margin-top: 2px; font-size: 15px; line-height: 24px; font-weight: 500; }

/* Intro: everything settles in, calmly */
.motion [data-intro] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.motion.is-ready [data-intro] { opacity: 1; transform: none; }

@media (width < 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; padding-top: calc(var(--nav-h) + 48px); }
  .hero__copy, .hero__art, .hero__meta { grid-column: 1; grid-row: auto; }
  .hero__title { margin-top: 24px; }
  .hero__art { width: min(100%, 340px); justify-self: center; margin-top: 48px; }
  .hero__meta { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
}

/* ==========================================================================
   WORK: the flowchart
   ========================================================================== */
.router { position: relative; display: grid; gap: 0; }
.router__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wire__line {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: stroke var(--t-slow) var(--ease-out), stroke-width var(--t-slow) var(--ease-out);
}
.wire__end { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; transition: fill var(--t-slow) var(--ease-out), stroke var(--t-slow) var(--ease-out); }
.wire.is-lit .wire__line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 6; animation: flow 900ms linear infinite; }
.wire.is-lit .wire__end { fill: var(--ink); stroke: var(--ink); }
@keyframes flow { to { stroke-dashoffset: -12; } }

.router__q { display: flex; justify-content: center; }
.router__node {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 28px 0 20px;
  border-radius: var(--r-pill);
  background: var(--inverse); color: var(--on-inverse);
  font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
}
.router__diamond { width: 16px; height: 16px; }
.router__diamond path { fill: var(--mark); }

.router__answers {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: 72px;
}
.router__answers li { display: flex; justify-content: center; }
.router__ans {
  position: relative;
  min-height: 48px; padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; line-height: 20px; font-weight: 500;
  text-align: center; text-wrap: balance;
  transition: background-color var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out), color var(--t-slow) var(--ease-out);
}
.router__ans.is-on { background: var(--mark); color: var(--on-mark); box-shadow: inset 0 0 0 1px transparent; }

.router__cards {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: 56px;
}
.router__all { display: flex; justify-content: center; margin-top: 48px; }
.router__all-btn {
  height: 40px; padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small); font-weight: 500; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px;
  transition: color var(--t-base) var(--ease-out), text-decoration-color var(--t-base) var(--ease-out);
}
@media (hover: hover) { .router__all-btn:hover { color: var(--ink); text-decoration-color: var(--mark); } }

/* ---------- Project cards ---------- */
.pcard {
  --room: var(--mint); --room-ink: var(--mint-ink);
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  overflow: hidden;
  transition: transform var(--t-slower) var(--ease-out), box-shadow var(--t-slower) var(--ease-out), opacity var(--t-slower) var(--ease-out);
}
.pcard[data-room="butter"] { --room: var(--butter); --room-ink: var(--butter-ink); }
.pcard[data-room="sky"] { --room: var(--sky); --room-ink: var(--sky-ink); }
.pcard[data-room="lilac"] { --room: var(--lilac); --room-ink: var(--lilac-ink); }
.pcard[data-room="leaf"] { --room: var(--leaf); --room-ink: var(--leaf-ink); }
.router[data-active]:not([data-active=""]):not([data-active="all"]) .pcard:not(.is-on) { opacity: 0.45; }
.pcard.is-on { transform: translateY(-6px); box-shadow: var(--shadow-m), inset 0 0 0 1px var(--line-2); }

.pcard__ans { display: none; }
.pcard__art {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1 / 0.92;
  padding: 24px;
  margin: 8px 8px 0;
  border-radius: var(--r-m);
  background: var(--room);
  color: var(--room-ink);
  overflow: hidden;
}
.pcard__art > * { transition: transform var(--t-slower) var(--ease-out); }
.pcard.is-on .pcard__art > * { transform: translateY(-4px) scale(1.02); }
.pcard__body { display: grid; gap: 6px; padding: 20px 20px 24px; }
.pcard__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.pcard__title {
  margin-top: 4px;
  font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 600; font-stretch: 94%; letter-spacing: -0.03em;
}
.pcard__line { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.pcard__cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-size: var(--fs-small); font-weight: 500;
}
.pcard__cta svg { width: 14px; height: 14px; transition: transform var(--t-base) var(--ease-out); }
.pcard.is-on .pcard__cta svg { transform: translateX(3px); }

/* Pitstop: the Home screen's range card, and the Dynamic Island above it.
   Product colours, as in the app: white card, one ink, one butter. */
.a-ps { display: grid; justify-items: center; gap: 16px; width: 100%; max-width: 300px; font-family: "Figtree", var(--font-sans); }
.a-ps__isl { display: flex; align-items: center; gap: 8px; width: 168px; height: 34px; padding: 0 12px 0 6px; border-radius: 17px; background: #000000; color: #FFFFFF; box-shadow: 0 10px 24px -14px rgba(59, 50, 8, 0.6); transition: width var(--t-slower) cubic-bezier(0.32, 0.72, 0, 1); }
.a-ps__p { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #F2DC7A; color: #1C1C1F; font: 700 11px/1 "Figtree", var(--font-sans); font-style: normal; }
.a-ps__say { flex: 1; overflow: hidden; font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity var(--t-base) var(--ease-out); }
.a-ps__isl b { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.a-ps__isl b svg { width: 12px; height: 12px; opacity: 0.7; }
.pcard.is-on .a-ps__isl { width: 212px; }
.pcard.is-on .a-ps__say { opacity: 1; transition-delay: 160ms; }
.a-ps__card { display: grid; gap: 8px; width: 100%; padding: 14px; border-radius: 14px; background: #FFFFFF; color: #1C1C1F; box-shadow: 0 1px 2px rgba(59, 50, 8, 0.06), 0 16px 32px -20px rgba(59, 50, 8, 0.35); }
.a-ps__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; line-height: 15px; color: #5A5A60; }
.a-ps__chip { padding: 3px 7px; border-radius: 6px; background: #F5F5F2; color: #1C1C1F; font-weight: 600; }
.a-ps__why { font-weight: 600; color: #1C1C1F; }
.a-ps__big { display: flex; align-items: baseline; gap: 8px; }
.a-ps__big b { font-size: 44px; line-height: 44px; font-weight: 700; letter-spacing: -0.03em; }
.a-ps__big span { font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -0.01em; }
.a-ps__tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.a-ps__tiles i { display: grid; place-items: center; height: 26px; border-radius: 7px; border: 1px dashed #8B8B91; color: rgba(139, 139, 145, 0.55); }
.a-ps__tiles i svg { width: 13px; height: 13px; }
.a-ps__tiles i.is-sure { border: 1px solid #1C1C1F; background: #1C1C1F; color: #FFFFFF; }
.a-ps__tiles i.is-maybe { border: 1px solid #F2DC7A; background: #F2DC7A; color: #1C1C1F; }
.pcard.is-on .a-ps__tiles i.is-maybe:nth-child(5) { animation: a-ps-blink 700ms ease-in-out 3; }
@keyframes a-ps-blink { 50% { opacity: 0.35; } }

/* Errand: screen 03's receipt card on the soft glow, with the undo promise above it.
   Product colours, as in the app: white, one ink, green used sparingly. */
.a-er { display: grid; justify-items: center; gap: 16px; width: 100%; max-width: 300px; font-family: "Figtree", var(--font-sans); }
.a-er__undo { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 11px; border-radius: 17px; background: #141615; color: rgba(255, 255, 255, 0.72); box-shadow: 0 10px 24px -14px rgba(31, 58, 22, 0.6); font-size: 12.5px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.a-er__undo b { font-weight: 600; color: #FFFFFF; }
.a-er__undo svg { width: 15px; height: 15px; color: #C6DE97; transition: rotate var(--t-slow) var(--ease-out); }
.pcard.is-on .a-er__undo svg { rotate: -40deg; }
.a-er__rc { position: relative; width: 100%; padding-bottom: 18px; border-radius: 20px; background: linear-gradient(180deg, #FFFFFF 0%, #EEF4E4 42%, #D7E9BD 100%); box-shadow: 0 1px 2px rgba(22, 60, 36, 0.06), 0 18px 34px -22px rgba(22, 60, 36, 0.45); overflow: hidden; }
.a-er__rc::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -30%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, rgba(156, 199, 122, 0.85), rgba(198, 222, 151, 0)); filter: blur(10px); }
.a-er__top { position: relative; display: grid; justify-items: start; gap: 10px; padding: 14px 16px 16px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 10px 22px -12px rgba(20, 22, 21, 0.22); }
.a-er__done { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; background: #E9F1EA; color: #2A5238; font-size: 10.5px; line-height: 14px; font-weight: 600; }
.a-er__done svg { width: 11px; height: 11px; }
.a-er__t { font-size: 18px; line-height: 23px; font-weight: 600; letter-spacing: -0.015em; color: #141615; text-align: left; }
.a-er__chg { position: relative; display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; color: #2A5238; }
.a-er__chg svg { width: 14px; height: 14px; }
.a-er__chg span { padding: 6px 12px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.a-er__chg .is-was { background: #FFFFFF; color: #141615; text-decoration: line-through; opacity: 0.7; }
.a-er__chg .is-now { background: #FFFFFF; color: #141615; transition: box-shadow var(--t-slow) var(--ease-out); }
.pcard.is-on .a-er__chg .is-now { box-shadow: 0 0 0 1.5px #3F7651; }

/* Kin: screen 03's pause, with the one thing it asks her to do */
.a-kn { display: grid; justify-items: center; gap: 0; width: 100%; max-width: 300px; font-family: "Figtree", var(--font-sans); }
.a-kn__card { display: grid; justify-items: start; gap: 10px; width: 100%; padding: 14px 14px 30px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(26, 40, 64, 0.06), 0 18px 34px -22px rgba(26, 40, 64, 0.45); color: #16181D; text-align: left; }
.a-kn__k { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; line-height: 14px; font-weight: 500; color: #4C6A92; }
.a-kn__k svg { width: 13px; height: 13px; }
.a-kn__t { display: grid; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.015em; }
.a-kn__t span { font-weight: 400; color: #5E636E; }
.a-kn__msg { width: 100%; padding: 8px 10px; border-radius: 12px; background: #F4F5F7; font-size: 11.5px; line-height: 20px; color: #16181D; }
.a-kn__msg mark { padding: 1px 4px; border-radius: 4px; white-space: nowrap; background: #E1E8F2; color: #2E4A6E; font-weight: 500; transition: background-color var(--t-slow) var(--ease-out); }
.a-kn__msg i { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 4px; border-radius: 50%; background: #4C6A92; color: #FFFFFF; font-size: 9px; line-height: 1; font-style: normal; font-weight: 600; vertical-align: 1px; }
.pcard.is-on .a-kn__msg mark { background: #CCDAEE; }
.a-kn__ask { position: relative; margin-top: -19px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 5px; border-radius: 19px; background: #16181D; color: #FFFFFF; box-shadow: 0 10px 24px -14px rgba(26, 40, 64, 0.6); font-size: 13px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.a-kn__ask img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); transition: box-shadow var(--t-slow) var(--ease-out); }
.pcard.is-on .a-kn__ask img { box-shadow: 0 0 0 2px #FFFFFF; }

/* Grammar: the date picker's page, the same in Figma and in code */
.a-gr { display: grid; justify-items: center; gap: 0; width: 100%; max-width: 300px; font-family: "Geist", var(--font-sans); }
.a-gr__card { display: grid; justify-items: start; gap: 10px; width: 100%; padding: 14px 14px 30px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(46, 41, 102, 0.06), 0 18px 34px -22px rgba(46, 41, 102, 0.45); color: #1C1C1F; text-align: left; }
.a-gr__k { display: flex; align-items: center; gap: 5px; width: 100%; font: 500 11px/14px "Geist Mono", var(--font-mono); color: #4A41A8; }
.a-gr__k svg { width: 13px; height: 13px; }
.a-gr__k span { margin-left: auto; padding: 1px 6px; border-radius: 5px; background: #F4F3EF; font-size: 10px; line-height: 14px; color: #605E66; }
.a-gr__t { display: grid; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.015em; }
.a-gr__t span { font-weight: 400; color: #605E66; }
.a-gr__rows { display: grid; gap: 4px; width: 100%; padding: 8px 10px; border-radius: 12px; background: #F7F6F3; font-size: 11.5px; line-height: 18px; color: #605E66; }
.a-gr__rows span { display: flex; justify-content: space-between; gap: 8px; }
.a-gr__rows b { padding: 0 5px; border-radius: 4px; font-weight: 500; color: #1C1C1F; transition: background-color var(--t-slow) var(--ease-out), color var(--t-slow) var(--ease-out); }
.pcard.is-on .a-gr__rows b { background: #E2E0F6; color: #4A41A8; }
.a-gr__ok { position: relative; margin-top: -19px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 5px; border-radius: 19px; background: #1C1C1F; color: #FFFFFF; box-shadow: 0 10px 24px -14px rgba(46, 41, 102, 0.6); font-size: 13px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.a-gr__ok i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #5B51C9; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); transition: box-shadow var(--t-slow) var(--ease-out); }
.a-gr__ok svg { width: 14px; height: 14px; }
.pcard.is-on .a-gr__ok i { box-shadow: 0 0 0 2px #FFFFFF; }

@media (width < 1100px) {
  .router__answers, .router__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .router__answers { display: none; }
  .router__wires { display: none; }
  .router__cards { margin-top: 40px; }
  .pcard__ans {
    display: block;
    align-self: flex-start;
    margin: 16px 16px 8px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: var(--bg-2);
    font-size: 13px; line-height: 16px; font-weight: 500;
    transition: background-color var(--t-slow) var(--ease-out);
  }
  .pcard.is-on .pcard__ans { background: var(--mark); color: var(--on-mark); }
  .pcard__art { margin-top: 0; }
}
@media (width < 640px) {
  .router__cards { grid-template-columns: 1fr; }
  .router__node { height: auto; min-height: 52px; padding: 12px 20px; font-size: 18px; }
}

/* ==========================================================================
   SYSTEMS TEASER: one button with more behind it
   ========================================================================== */
.teaser { padding-top: calc(var(--section) * 0.5); }
.teaser__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 80px; align-items: center; }
.teaser__copy { display: grid; gap: 28px; justify-items: start; }
/* Rebuilt from Figma (Site · Home, "Systems teaser"): the systems page's selected button, on its canvas.
   The badge follows the button's real state. */
.teaser__stage {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-l);
  background-color: #F1F1EE;
  background-image: radial-gradient(rgba(28, 28, 31, 0.1) 0.9px, transparent 1.2px);
  background-size: 16px 16px;
  background-position: 8px 8px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  overflow: hidden;
}
.teaser__stage:focus-visible { outline: none; }
.teaser__sel { position: relative; outline: 1.5px solid var(--component); }
.teaser__label { position: absolute; left: 0; bottom: calc(100% + 8px); display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--component); }
.teaser__label svg { width: 10px; height: 10px; }
.teaser__h { position: absolute; width: 8px; height: 8px; border-radius: 1px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--component); }
.teaser__h--tl { left: -4px; top: -4px; } .teaser__h--tr { right: -4px; top: -4px; }
.teaser__h--bl { left: -4px; bottom: -4px; } .teaser__h--br { right: -4px; bottom: -4px; }
.teaser__badge { position: absolute; left: 50%; top: calc(100% + 14px); translate: -50% 0; padding: 4px 8px; border-radius: 6px; background: var(--component); color: #FFFFFF; font-size: 11px; line-height: 14px; font-weight: 500; white-space: nowrap; }
.teaser__btn {
  display: flex; align-items: center;
  height: 56px; padding: 0 32px;
  border-radius: var(--r-pill);
  background: var(--ink); color: #F5F5F2;
  font-size: 18px; line-height: 24px; font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), scale 160ms var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.teaser__btn.is-hover { background: var(--mark); color: var(--on-mark); }
.teaser__btn.is-pressed { background: #E3C95A; color: var(--on-mark); scale: 0.97; }
.teaser__btn.is-focus { box-shadow: 0 0 0 2px #F1F1EE, 0 0 0 3.5px var(--ink); }
.teaser__hint { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: 13px; line-height: 20px; color: var(--ink-3); }

@media (width < 900px) {
  .teaser__grid { grid-template-columns: 1fr; gap: 48px; }
  .teaser__stage { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   APPROACH: the brief, with suggestions
   ========================================================================== */
.brief {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  column-gap: 48px;
}
.brief__sheet {
  grid-column: 1; grid-row: 1 / -1;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow-m), inset 0 0 0 1px var(--line-2);
}
.brief__top, .brief__p, .brief__end { grid-column: 1; position: relative; z-index: 1; }
.brief__top { grid-row: 1; padding: 20px 56px 16px; }
.brief__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin: 0 -32px 40px; padding: 0 0 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.brief__file { color: var(--ink-3); padding-left: 8px; }
.brief__mode { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--bg-2); }
.brief__mode button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.brief__mode button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.brief__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: var(--mark); color: var(--on-mark); font-size: 11px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.brief__title { font-family: var(--font-display); font-size: 36px; line-height: 40px; font-weight: 600; font-stretch: 94%; letter-spacing: -0.03em; }
.brief__meta { margin-top: 8px; font-size: var(--fs-small); color: var(--ink-3); }

.brief__p {
  padding: 14px 56px;
  font-size: 21px; line-height: 34px; letter-spacing: -0.005em;
  color: var(--ink);
}
.brief__p:nth-of-type(1) { padding-top: 24px; }
.brief__end { height: 48px; }
.brief del {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0% 1.5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 600ms var(--ease-out), color 600ms var(--ease-out);
}
.brief.is-suggest del {
  color: var(--ink-3);
  background-size: 100% 1.5px;
  transition-delay: calc(var(--k) * 520ms + 200ms);
}
.brief__p { --k: 0; }
.brief ins {
  text-decoration: none;
  padding: 0 2px;
  border-radius: 3px;
  background: var(--mark-soft);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.brief ins:empty { display: none; }
.brief:not(.is-suggest) .brief__sp { display: none; }
.brief ins.is-typing::after {
  content: ""; display: inline-block;
  width: 2px; height: 1em; margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--ink);
  animation: caret 800ms steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* The Brief check: five questions, ticked off as the suggestions land */
.brief__panel {
  grid-column: 2; grid-row: 1 / -1;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.brief__head, .brief__chk { grid-column: 2; position: relative; z-index: 1; }
.brief__head { grid-row: 1; padding: 20px 24px 0; }
.brief__hbar { display: flex; justify-content: space-between; align-items: center; height: 32px; margin-bottom: 16px; }
.brief__hbar::after { content: ""; position: absolute; left: 24px; right: 24px; top: 68px; border-top: 1px solid var(--line-2); }
.brief__hk { font-size: 11px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.brief__pill { padding: 4px 10px; border-radius: var(--r-pill); background: #F1F1EE; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out); }
.brief__pill.is-clear { background: var(--mark); color: var(--on-mark); }
.brief__score { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.brief__num { font-family: var(--font-display); font-size: 56px; line-height: 56px; font-weight: 600; letter-spacing: -0.04em; }
.brief__sub { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.brief__verdict { margin-top: 2px; font-size: 15px; line-height: 22px; font-weight: 600; }
.brief__segs { display: flex; gap: 4px; margin-top: 20px; }
.brief__segs i { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); transition: background-color 400ms var(--ease-out); }
.brief__segs i.is-on { background: var(--mark); }

.brief__chk {
  align-self: stretch;
  display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px;
  align-content: center; align-items: start;
  margin: 0 12px; padding: 12px;
  border-radius: 12px;
  transition: background-color var(--t-base) var(--ease-out);
}
.brief__chk::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; border-top: 1px solid #F1F1EE; }
.brief__chk.is-hot { background: rgba(182, 172, 142, 0.08); }
.brief__ring {
  position: relative; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #D5D5D0;
  transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.brief__ring b { font: 500 11px/1 var(--font-mono); color: var(--ink-3); transition: opacity 200ms var(--ease-out); }
.brief__ring svg { position: absolute; inset: 0; width: 24px; height: 24px; stroke: var(--on-mark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset 360ms var(--ease-out) 120ms; }
.brief__chk.is-done .brief__ring { background: var(--mark); box-shadow: none; }
.brief__chk.is-done .brief__ring b { opacity: 0; }
.brief__chk.is-done .brief__ring svg { stroke-dashoffset: 0; }
.brief__q { font-size: 16px; line-height: 24px; font-weight: 600; }
.brief__say { margin-top: 2px; font-size: 14px; line-height: 21px; color: var(--ink-3); transition: color 300ms var(--ease-out); }
.brief__chk.is-done .brief__say { color: var(--ink-2); }
.brief ins { transition: background-color var(--t-base) var(--ease-out); }
.brief__p.is-hot ins { background: var(--mark); }

@media (width < 1024px) {
  .brief { grid-template-columns: 1fr; }
  .brief__sheet { display: none; }
  .brief__panel { display: none; }
  .brief__top, .brief__p, .brief__end, .brief__head, .brief__chk { grid-row: auto !important; grid-column: 1; background: var(--surface); }
  .brief__head, .brief__chk { order: 1; }
  .brief__top { border-radius: var(--r-l) var(--r-l) 0 0; padding: 20px 24px 8px; }
  .brief__bar { margin: 0 0 28px; flex-wrap: wrap; }
  .brief__p { padding: 12px 24px; font-size: 19px; line-height: 30px; }
  .brief__end { border-radius: 0 0 var(--r-l) var(--r-l); height: 24px; }
  .brief__head { margin-top: 16px; padding: 20px 24px 12px; border-radius: var(--r-l) var(--r-l) 0 0; }
  .brief__chk { margin: 0; padding: 16px 24px; border-radius: 0; }
  .brief__chk::before { left: 24px; right: 24px; }
  .brief__chk.is-last { padding-bottom: 24px; border-radius: 0 0 var(--r-l) var(--r-l); }
  .brief__chk.is-hot { background: var(--surface); }
}

/* ==========================================================================
   ABOUT: Fig. 2, bio, version history
   ========================================================================== */
/* Fig. 2: the designer as a Figma main component. Canvas on the left, properties on the right. */
.comp__win { display: grid; grid-template-columns: minmax(0, 1fr) 400px; border-radius: var(--r-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.comp__canvas {
  display: grid; place-items: center; padding: 80px 48px;
  background-color: #F1F1EE;
  background-image: radial-gradient(rgba(28, 28, 31, 0.1) 0.9px, transparent 1.2px);
  background-size: 16px 16px; background-position: 8px 8px;
}
.comp__sel { position: relative; width: min(600px, 100%); outline: 1.5px solid var(--component); }
.comp__sel img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.comp__label { position: absolute; left: 0; bottom: calc(100% + 8px); display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--component); }
.comp__label svg { width: 10px; height: 10px; }
.comp__h { position: absolute; width: 8px; height: 8px; border-radius: 1px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--component); }
.comp__h--tl { left: -4px; top: -4px; } .comp__h--tr { right: -4px; top: -4px; }
.comp__h--bl { left: -4px; bottom: -4px; } .comp__h--br { right: -4px; bottom: -4px; }
.comp__badge { position: absolute; left: 50%; top: calc(100% + 12px); translate: -50% 0; padding: 4px 8px; border-radius: 6px; background: var(--component); color: #FFFFFF; font-size: 11px; line-height: 14px; font-weight: 500; white-space: nowrap; }
.motion .comp .comp__label, .motion .comp .comp__h, .motion .comp .comp__badge { opacity: 0; transition: opacity 500ms var(--ease-out) 500ms; }
.motion .comp .comp__sel { outline-color: transparent; transition: outline-color 500ms var(--ease-out) 400ms; }
.motion .comp.is-in .comp__label, .motion .comp.is-in .comp__h, .motion .comp.is-in .comp__badge { opacity: 1; }
.motion .comp.is-in .comp__sel { outline-color: var(--component); }

.comp__side { box-shadow: inset 1px 0 0 var(--line-2); }
.comp__tabs { display: flex; align-items: center; gap: 20px; height: 48px; padding: 0 24px; box-shadow: inset 0 -1px 0 var(--line-2); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-3); }
.comp__tabs .is-on { font-weight: 600; color: var(--ink); }
.comp__tabs .t-mono { margin-left: auto; font-size: 11px; }
.comp__head { display: flex; gap: 10px; align-items: flex-start; padding: 19px 24px 21px; box-shadow: inset 0 -1px 0 var(--line-2); }
.comp__head svg { flex: none; width: 14px; height: 14px; margin-top: 5px; color: var(--component); }
.comp__name { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--component); }
.comp__sub { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.comp__props { padding: 19px 24px 24px; }
.comp__ph { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 12px; line-height: 16px; font-weight: 600; }
.comp__ph .t-mono { font-weight: 400; color: var(--ink-3); }
.comp__row { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: start; }
.comp__row + .comp__row { margin-top: 16px; }
.comp__lbl { font-size: 12px; line-height: 32px; color: var(--ink-2); }
.comp__ctl { min-height: 32px; }
.comp__chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.comp__chip { padding: 4px 8px; border-radius: 6px; background: #F1F1EE; font-size: 12px; line-height: 16px; font-weight: 500; }
.comp__field { display: flex; align-items: center; width: 100%; min-height: 32px; padding: 7px 10px; border-radius: 8px; background: #F1F1EE; font-size: 12px; line-height: 18px; font-weight: 500; }
.comp__status { display: flex; align-items: center; gap: 8px; height: 32px; font-size: 12px; font-weight: 500; }
.comp__status i { width: 8px; height: 8px; border-radius: 50%; background: #2F7A55; }
.specimen__cap { display: flex; gap: 12px; align-items: baseline; margin-top: 16px; font-size: var(--fs-small); color: var(--ink-2); }
.specimen__cap .t-mono { color: var(--ink-3); }

.about__bio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 80px; align-items: end; margin-top: 56px; }
.about__bio-text { display: grid; gap: 16px; }
.about__bio .t-lead { font-size: 18px; line-height: 30px; }
.about__links { display: flex; gap: 24px; padding-bottom: 4px; }

/* ---------- Version history ---------- */
.history { margin-top: 104px; }
.history__title { margin-bottom: 32px; }
.history__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 80px; align-items: start; }

.now-card {
  padding: 32px;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line-2);
}
.now-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink-3); }
.now-card__tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--mark); color: var(--on-mark);
  font-size: 13px; font-weight: 600;
}
.now-card__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.now-card__role { margin-top: 20px; font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 600; font-stretch: 94%; letter-spacing: -0.025em; }
.now-card__org { margin-top: 6px; font-size: 16px; line-height: 24px; font-weight: 500; }
.now-card__org span { display: block; font-size: var(--fs-small); line-height: 20px; font-weight: 400; color: var(--ink-3); }
.now-card__notes { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.now-card__notes li { position: relative; padding-left: 24px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.now-card__notes li::before { content: "+"; position: absolute; left: 0; top: 0; font: 600 14px/24px var(--font-mono); color: var(--ink); }

.history__side { display: grid; gap: 40px; }
.glance { display: grid; gap: 20px; }
.glance > div { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.glance dt { font-family: var(--font-display); font-size: 26px; line-height: 30px; font-weight: 600; font-stretch: 94%; letter-spacing: -0.02em; }
.glance dt a { background-image: linear-gradient(var(--mark), var(--mark)); background-repeat: no-repeat; background-position: 0 90%; background-size: 100% 0.35em; }
.glance dd { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.kit { display: grid; gap: 16px; }
.kit__list { display: flex; flex-wrap: wrap; gap: 8px; }

.history__earlier { margin: 56px 0 8px; }
.versions { display: grid; }
.ver {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 200px 104px;
  gap: 4px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line-2);
}
.ver.is-first { border-top-color: var(--line); }
.ver__year { font-family: var(--font-display); font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-3); }
.ver__role { font-size: 17px; line-height: 26px; font-weight: 600; }
.ver__org { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.ver__note { margin-top: 6px; max-width: 560px; font-size: 14px; line-height: 22px; color: var(--ink-3); }
.ver__when { color: var(--ink-2); }
.ver__kind {
  justify-self: end;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 12px; line-height: 20px; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
}
.ver__kind--learning { background: var(--lilac); color: var(--lilac-ink); box-shadow: none; }
.ver__kind--freelance { background: var(--mint); color: var(--mint-ink); box-shadow: none; }
.ver__kind--work { background: var(--bg-2); color: var(--ink); box-shadow: none; }

@media (width < 1024px) {
  .comp__win { grid-template-columns: minmax(0, 1fr) 340px; }
  .comp__canvas { padding: 64px 32px; }
  .about__bio { column-gap: 48px; }
  .history__top { grid-template-columns: 1fr; }
}
@media (width < 800px) {
  .comp__win { grid-template-columns: 1fr; }
  .comp__canvas { padding: 48px 24px 52px; }
  .comp__side { box-shadow: inset 0 1px 0 var(--line-2); }
  .comp__row { grid-template-columns: 112px minmax(0, 1fr); }
  .about__bio { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .now-card { padding: 24px; }
  .now-card__role { font-size: 26px; line-height: 30px; }
  .ver { grid-template-columns: 56px minmax(0, 1fr); }
  .ver__year { font-size: 18px; }
  .ver__when, .ver__kind { grid-column: 2; justify-self: start; }
}

/* ==========================================================================
   GALLERY: a hallway you walk down by scrolling. about.js projects each
   poster by hand; nothing here uses a shared 3D scene.
   ========================================================================== */
.gallery { position: relative; height: 400vh; margin-bottom: 72px; }
.gallery__pin {
  position: sticky; top: 0;
  height: 100dvh;
  overflow: hidden;
}
/* The floor dissolves into the page at the bottom, so the hall hands over to the footer instead of stopping. */
.gallery__pin::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 24%; background: linear-gradient(rgba(245, 245, 242, 0), var(--bg)); pointer-events: none; }
/* The top 6px of the hall stay page-coloured. Browsers that tint their toolbar from the
   top edge of the page (Safari, Arc, Dia) would otherwise pick up a passing poster. */
.hall { position: absolute; inset: 0; overflow: hidden; clip-path: inset(6px 0 0 0); }
.hall__floor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hall__stage { position: absolute; inset: 0; }
.hx {
  position: absolute; left: 0; top: 0;
  width: max-content;
  transform-origin: 0 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.hx__frame {
  padding: 18px;
  background: #FFFFFF;
  box-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.4);
}
.hx__frame img { display: block; width: auto; max-width: none; height: clamp(360px, 80vh, 820px); background: #ECECE7; }


/* The end of the hall */
.hx--end { display: grid; justify-items: center; gap: 28px; text-align: center; }
.hx--end.is-live .hall__next { pointer-events: auto; }
.hall__exit { font-size: 20px; line-height: 28px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.hall__sign {
  font-family: var(--font-display);
  font-size: 128px; line-height: 1;
  font-weight: 600; font-stretch: 94%;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.hall__next { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--mark); font-size: 30px; line-height: 40px; font-weight: 500; color: var(--ink-2); transition: color var(--t-base) var(--ease-out); }
.hall__next svg { width: 28px; height: 28px; }
@media (hover: hover) { .hall__next:hover { color: var(--ink); } }

.gallery__head { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 64px); }
.gallery__head .t-lead { max-width: 440px; margin-top: 20px; }
.gallery__meter { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; z-index: 2; height: 2px; background: var(--line); }
.gallery__meter i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }

@media (width < 760px) {
  .hx__frame { padding: 12px; }
  .hx__frame img { height: clamp(260px, 52vh, 460px); }
  .hall__sign { width: 320px; font-size: 48px; white-space: normal; }
  .hx--end { gap: 16px; }
  .hall__exit { font-size: 12px; line-height: 16px; }
  .hall__next { margin-top: 4px; font-size: 18px; line-height: 26px; }
  .hall__next svg { width: 18px; height: 18px; }
  .gallery__head { padding-top: calc(var(--nav-h) + 40px); }
}

/* Phones and tablets: a row of posters you swipe through, the closed gift shop as the last card */
.gallery--swipe { height: auto; margin-bottom: 0; padding-block: var(--section) 0; }
.gallery--swipe .gallery__pin { position: static; display: flex; flex-direction: column; height: auto; overflow: visible; }
.gallery--swipe .gallery__pin::after, .gallery--swipe .hall__floor, .gallery--swipe .gallery__meter { display: none; }
.gallery--swipe .gallery__head { order: -1; padding-top: 0; }
.gallery--swipe .hall { position: static; overflow: visible; clip-path: none; }
.gallery--swipe .hall__stage {
  position: static;
  display: flex; align-items: center; gap: 16px;
  margin-top: 32px; padding: 8px var(--gutter) 28px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery--swipe .hall__stage::-webkit-scrollbar { display: none; }
.gallery--swipe .hx { position: static; flex: none; width: auto; opacity: 1 !important; transform: none !important; scroll-snap-align: start; pointer-events: auto; will-change: auto; }
.gallery--swipe .hx__frame { padding: 10px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.35); }
.gallery--swipe .hx__frame img { height: min(52vh, 340px); }
.gallery--swipe .hx--end { width: 240px; gap: 14px; padding: 0 8px; }
.gallery--swipe .hall__sign { width: auto; font-size: 34px; line-height: 38px; white-space: normal; }
.gallery--swipe .hall__exit { font-size: 11px; line-height: 16px; }
.gallery--swipe .hall__next { margin-top: 0; font-size: 16px; line-height: 24px; pointer-events: auto; }
.gallery--swipe .hall__next svg { width: 16px; height: 16px; }

/* No motion: a plain grid of posters, no hallway */
.gallery--flat { height: auto; padding-block: var(--section) 0; }
.gallery--flat .gallery__pin { position: static; height: auto; overflow: visible; }
.gallery--flat .hall { position: static; overflow: visible; }
.gallery--flat .hall__stage { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 56px auto 0; padding: 0 var(--gutter); }
.gallery--flat .hall__floor, .gallery--flat .gallery__meter, .gallery--flat .hx--end { display: none; }
.gallery--flat .hx { position: static; width: auto; opacity: 1; transform: none; }
.gallery--flat .hx__frame img { width: 100%; height: auto; }
.gallery--flat .gallery__head { padding-top: 0; }

/* ==========================================================================
   OFF THE WALL: the things that don't fit in a frame
   ========================================================================== */
.offwall { padding-block: var(--section); }
.offwall__head { display: grid; gap: 16px; max-width: 560px; }
.offwall__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.ow {
  display: grid; grid-template-rows: auto 1fr;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  overflow: hidden;
}
/* Each stage holds the Figma composition (413 x 340), scaled down when the card is narrower; about.js sets --owz. */
.ow__stage { position: relative; display: grid; place-items: center; height: calc(340px * var(--owz, 1)); background: var(--room); overflow: hidden; }
.ow__stage > * { zoom: var(--owz, 1); }
.ow__body { padding: 24px 28px 28px; }
.ow__label { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.ow__title { margin-top: 8px; }
.ow__text { margin-top: 8px; color: var(--ink-2); }

/* Reading: the bookshelf. Six spines of one width on a ledge; each book is a 3D box (spine in front,
   cover on its right side) that turns round to its cover when you point at it. */
.shelf { --room: var(--sky); margin-top: 48px; }
.shelf .ow__stage { aspect-ratio: auto; height: calc(440px * var(--shz, 1)); place-items: center start; padding-inline: 20px; overflow-x: auto; scrollbar-width: none; }
.shelf .ow__stage::-webkit-scrollbar { display: none; }
.shelf__set { flex: none; }
.shelf__set { position: relative; width: 840px; height: 356px; margin-inline: auto; zoom: var(--shz, 1); }
.shelf__row { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; align-items: flex-end; gap: 16px; height: 340px; perspective: 1500px; }
.shelf__ledge { position: absolute; left: -40px; right: -40px; bottom: 6px; height: 10px; border-radius: 2px; background: #BFD0E6; box-shadow: inset 0 1px 0 #E6EEF8, 0 12px 24px -12px rgba(22, 41, 74, 0.35); }
.bk { --t: 56px; --c: 226px; --h: 340px; position: relative; flex: none; width: var(--t); height: var(--h); transition: width 640ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.bk.is-open { width: 234px; }
.bk__btn { display: block; width: 100%; height: 100%; cursor: pointer; }
.bk__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 4px; }
.bk__box {
  position: absolute; left: 50%; top: 0;
  width: var(--t); height: var(--h); margin-left: calc(var(--t) / -2);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--c) / -2)) rotateY(0deg);
  transition: transform 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bk.is-open .bk__box { transform: translateZ(calc(var(--t) / -2 + 70px)) rotateY(-78deg); }
.bk__spine { transition: filter 640ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.bk.is-open .bk__spine { filter: brightness(0.72); }
.bk__spine, .bk__cover { position: absolute; top: 0; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bk__spine {
  left: 0; width: var(--t);
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  padding: 20px 0 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(255, 255, 255, 0.1) 28%, rgba(255, 255, 255, 0) 62%, rgba(0, 0, 0, 0.18)), var(--sp);
  color: var(--ink);
  transform: translateZ(calc(var(--c) / 2));
  writing-mode: vertical-rl;
}
.bk__spine b { font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; }
.bk__spine small { font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.72; }
.bk__cover {
  left: calc((var(--t) - var(--c)) / 2); width: var(--c);
  overflow: hidden;
  border-radius: 2px 4px 4px 2px;
  background: var(--sp);
  transform: rotateY(90deg) translateZ(calc(var(--t) / 2));
}
.bk__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bk__cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.26) 0, rgba(0, 0, 0, 0.04) 3px, rgba(255, 255, 255, 0.18) 6px, rgba(0, 0, 0, 0.12) 9px, transparent 15px),
    linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.08) 58%, transparent 76%);
}
.bk__type { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 26px 22px 22px 26px; color: var(--ink); }
.bk__type b { font-family: var(--font-display); font-size: 30px; line-height: 32px; font-weight: 600; letter-spacing: -0.025em; }
.bk__type small { padding-top: 12px; border-top: 1px solid currentColor; font-size: 12px; line-height: 16px; font-weight: 500; opacity: 0.85; }
/* A soft contact shadow on the ledge, as wide as the book's footprint */
.bk::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -8px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(22, 41, 74, 0.3), transparent); z-index: -1; }
@media (prefers-reduced-motion: reduce) { .bk, .bk__box { transition-duration: 1ms; } }

/* Learning: her Rive file in a Rive-style editor. Artboard left, state machine right (Figma: Card · Learning). */
.owr { position: relative; width: 365px; height: 292px; border-radius: 16px; background: #18181B; color: #E7E7E4; overflow: hidden; box-shadow: 0 20px 40px -12px rgba(18, 60, 48, 0.12); }
.owr__bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; background: #1F1F23; }
.owr__dots { display: flex; gap: 5px; }
.owr__dots i { width: 8px; height: 8px; border-radius: 50%; background: #3A3A40; }
.owr__file { font: 400 11px/1 var(--font-mono); color: #8B8B91; }
.owr__tab { margin-left: auto; padding: 3px 8px; border-radius: 6px; background: #2A2A30; font: 500 10px/14px var(--font-mono); color: #D6EBE2; }
.owr__k { position: absolute; top: 44px; font: 400 10px/14px var(--font-mono); color: #6B6B72; }
.owr__ab { position: absolute; left: 16px; top: 62px; width: 220px; height: 220px; background: #D8FEE9; overflow: hidden; }
.owr__ab canvas, .owr__still { display: block; width: 100%; height: 100%; }
.owr__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.owr__wires path { fill: none; stroke: #55555C; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--t-base) var(--ease-out); }
.owr__wires polygon { fill: #55555C; transition: fill var(--t-base) var(--ease-out); }
.owr__wires g.is-on path { stroke: var(--mark); }
.owr__wires g.is-on polygon { fill: var(--mark); }
.owr__node { position: absolute; left: 250px; display: grid; place-items: center; width: 92px; height: 26px; border-radius: 7px; background: #2C2C32; box-shadow: inset 0 0 0 1px #45454C; font: 500 10px/1 var(--font-mono); color: #E7E7E4; transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.owr__node.is-entry { background: #232328; box-shadow: inset 0 0 0 1px #3A3A40; color: #8B8B91; }
.owr__node.is-on { background: var(--mark); box-shadow: none; color: #1C1C1F; }
.owr__lbl { position: absolute; top: 190px; font: 400 9px/12px var(--font-mono); color: #6B6B72; transition: color var(--t-base) var(--ease-out); }
.owr[data-state="walk"] .owr__lbl:first-of-type { color: var(--mark); }
.owr__state { position: absolute; left: 250px; top: 268px; font: 400 10px/14px var(--font-mono); color: #8B8B91; }

/* Planning: a calendar day on its sixth version; the backup of the backup is only a maybe */
.owt { width: 317px; height: 268px; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(28, 28, 31, 0.05), 0 18px 36px -12px rgba(59, 50, 8, 0.12); overflow: hidden; }
.owt__head { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 16px 0 18px; border-bottom: 1px solid #EFEFEC; }
.owt__day { font-size: 15px; line-height: 20px; font-weight: 600; }
.owt__day span { margin-left: 4px; font-weight: 400; color: var(--ink-3); }
.owt__vs { display: flex; gap: 3px; }
.owt__vs li { padding: 2px 5px; border-radius: 5px; background: #F1F1EE; font-size: 9px; line-height: 12px; font-weight: 500; color: var(--ink-3); }
.owt__vs li.is-on { background: var(--ink); color: var(--surface); }
.owt__grid { position: relative; height: 222px; margin-top: 6px; }
.owt__t { position: absolute; left: 16px; font-size: 10px; line-height: 12px; color: var(--ink-3); }
.owt__rule { position: absolute; left: 60px; right: 16px; height: 1px; background: #F1F1EE; }
.owt__ev { position: absolute; left: 64px; right: 12px; display: flex; align-items: center; gap: 8px; height: 38px; padding-left: 10px; border-radius: 8px; font-size: 13px; line-height: 16px; font-weight: 500; }
.owt__ev.is-0 { background: #F2DC7A; color: #3B3208; }
.owt__ev.is-1 { background: #D6EBE2; color: #123C30; }
.owt__ev.is-2 { background: #D4E1F2; color: #16294A; }
.owt__ev.is-3 { border: 1.25px dashed #C9C9C3; color: var(--ink-2); }
.owt__ev .t-mono { padding: 2px 6px; border-radius: 5px; background: #F1F1EE; font-size: 9px; line-height: 12px; font-weight: 400; color: var(--ink-3); }
.owt__now { position: absolute; left: 56px; right: 12px; height: 1.5px; background: var(--ink); }
.owt__now::before { content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

@media (width < 960px) {
  .offwall__list {
    grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: min(78%, 340px);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .offwall__list::-webkit-scrollbar { display: none; }
  .ow { scroll-snap-align: start; }

}


