/* How Par works: the page. Every rule starts at .phw (or a phw- class); tokens fall back to
   the opening's values when the Site's shell doesn't define them. Without JavaScript every
   section shows its final state; the modules only add motion under [data-phw-anim]. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/newsreader-400.ttf) format("truetype"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/newsreader-400-italic.ttf) format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/geist-400.ttf) format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/geist-500.ttf) format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/geist-600.ttf) format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-400.ttf) format("truetype"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/dm-sans-600-latin.woff2) format("woff2"); }

.phw {
  --phw-bg: var(--bg, #f7f0e1);
  --phw-bg-deep: var(--bg-deep, #ede1ca);
  --phw-surface: var(--surface, #fffdf8);
  --phw-text: var(--text, #211a10);
  --phw-body: #3d3325;
  --phw-muted: var(--text-muted, #6e6350);
  --phw-faint: #72674f;
  --phw-border: var(--border, #e9dec7);
  --phw-border-strong: var(--border-strong, #d8cbaa);
  --phw-ink: var(--accent, #2b231b);
  --phw-display: var(--font-display, "Newsreader", "Iowan Old Style", Georgia, serif);
  --phw-sans: var(--font-body, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --phw-mono: var(--font-mono, "JetBrains Mono", "SF Mono", Menlo, monospace);
  --phw-ease: var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
  --phw-gutter: var(--gutter, clamp(16px, 5vw, 64px));
  --phw-max: var(--wrap, 1240px);
  --k-person: #c4467b; --k-file: #4b84d6; --k-project: #2f8f7a; --k-memory: #8f7fd1;
  --k-prediction: #d9861f; --k-task: #c8453a; --k-app: var(--phw-ink); --k-map: var(--phw-ink);
  margin: 0;
  background: var(--phw-bg);
  color: var(--phw-text);
  font: 400 16px/1.55 var(--phw-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.phw *, .phw *::before, .phw *::after { box-sizing: border-box; }
.phw :is(h1, h2, h3) { font-family: var(--phw-display); font-weight: 400; margin: 0; color: var(--phw-text); }
.phw :is(h1, h2) em { font-style: italic; color: var(--phw-ink); }
.phw a { color: inherit; }
.phw :focus-visible { outline: 2px solid var(--phw-ink); outline-offset: 3px; border-radius: 4px; }
.phw-wrap { width: 100%; max-width: var(--phw-max); margin: 0 auto; padding-inline: var(--phw-gutter); }
.phw-skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--phw-surface); border-radius: 8px; z-index: 10; }
.phw-skip:focus { top: 12px; }
.phw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Header (the Site's shell replaces this bar) ─────────────────────── */
.phw-bar { padding-top: clamp(14px, 2.4vh, 26px); }
.phw-bar-inner { display: flex; align-items: center; justify-content: space-between; }
.phw-brand { display: inline-flex; align-items: center; gap: 2px; font: 600 28px/1 "DM Sans", var(--phw-sans); letter-spacing: -0.035em; text-decoration: none; }
.phw-brand img { width: 48px; height: 48px; margin: 0 -2px 0 -11px; }
.phw-quiet { font-size: 15px; text-decoration: none; padding: 10px 2px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat; transition: background-size 300ms var(--phw-ease); }
.phw-quiet:hover { background-size: 100% 1px; }

/* The opening's vertical note, here counting the section you are in. */
.phw-rail { display: none; }
@media (min-width: 1200px) {
  .phw-rail { position: fixed; z-index: 2; left: 22px; top: 50%; transform: translateY(-50%); margin: 0; display: flex; align-items: center; gap: 14px; writing-mode: vertical-rl; font: 10.5px/1.2 var(--phw-mono); letter-spacing: 0.08em; color: var(--phw-muted); }
  .phw-rail i { width: 1px; height: 40px; background: var(--phw-border-strong); }
  .phw-rail-count { font-variant-numeric: tabular-nums; }
}

/* ── Opening ─────────────────────────────────────────────────────────── */
.phw-intro { padding: clamp(40px, 8vh, 96px) 0 clamp(56px, 8vh, 96px); }
.phw-intro-grid { display: grid; gap: 28px 72px; align-items: end; }
.phw-category { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 13.5px/1.4 var(--phw-mono); }
.phw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--phw-ink); box-shadow: 0 0 14px rgba(43, 35, 27, .2), 0 0 4px var(--phw-ink); }
.phw h1 { font-size: clamp(46px, 9vw, 96px); line-height: 1; letter-spacing: -0.035em; }
.phw-answer { margin: 0; font: 400 clamp(19px, 1.9vw, 23px)/1.48 var(--phw-display); color: var(--phw-text); max-width: 36em; }
.phw-sowhat { margin: 18px 0 0; font: 400 clamp(22px, 2.4vw, 30px)/1.2 var(--phw-display); color: var(--phw-text); letter-spacing: -0.015em; }
.phw-sowhat em { font-style: italic; color: var(--phw-ink); }
.phw-toc { margin-top: clamp(40px, 6vh, 64px); }
.phw-toc ol { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--phw-border-strong); display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 2px 24px; }
.phw-toc a { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; text-decoration: none; font-size: 15px; color: var(--phw-body); }
.phw-toc a span { font: 11px var(--phw-mono); color: var(--phw-muted); min-width: 18px; }
.phw-toc a:hover { color: var(--phw-text); }
@media (min-width: 980px) { .phw-intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }

/* ── Sections ────────────────────────────────────────────────────────── */
.phw-sec { padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--phw-border); scroll-margin-top: 16px; }
.phw-num { margin: 0 0 14px; font: 12px var(--phw-mono); color: var(--phw-muted); letter-spacing: .04em; }
.phw h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.025em; }
.phw h2.phw-h2-long { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.phw-head > p:not(.phw-num) { margin: 22px 0 0; font-size: 17px; line-height: 1.62; color: var(--phw-body); max-width: 34em; }
.phw-split { display: grid; gap: 48px 72px; align-items: center; }
.phw-head > p.phw-dek { margin-top: 16px; font: italic 400 clamp(20px, 2vw, 24px)/1.35 var(--phw-display); color: var(--phw-ink); }
.phw-head > p.phw-more { margin-top: 14px; }
.phw-head > p.phw-closing { margin-top: 28px; font: 400 clamp(24px, 2.6vw, 32px)/1.2 var(--phw-display); color: var(--phw-text); letter-spacing: -0.015em; }
.phw-closing em { font-style: italic; color: var(--phw-ink); }
.phw-head > p.phw-nowhat { margin-top: 22px; font: 500 16.5px/1.5 var(--phw-sans); color: var(--phw-text); max-width: 30em; }
.phw-head--row { display: grid; gap: 0 72px; margin-bottom: clamp(36px, 5vw, 56px); }
.phw-note-ill { margin: 18px 0 0; font: 11.5px/1.6 var(--phw-mono); color: var(--phw-faint); }
.phw figure { margin: 0; }
.phw figcaption { margin-top: 16px; font: 11.5px/1.6 var(--phw-mono); color: var(--phw-faint); }
@media (min-width: 980px) {
  .phw-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .phw-head--row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: end; }
  .phw-head--row .phw-num { grid-column: 1 / -1; }
  .phw-head--row > p:not(.phw-num) { margin: 0; }
}

.phw-card { background: var(--phw-surface); border: 1px solid var(--phw-border-strong); border-radius: 16px; padding: 18px 22px 8px; box-shadow: 0 24px 50px -32px rgba(60, 40, 10, .5); }
.phw-card-top { display: flex; align-items: center; gap: 10px; margin: 0; font: 12px var(--phw-mono); color: var(--phw-muted); }
.phw-pdot { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--phw-ink); }
.phw-pdot svg { width: 15px; height: 15px; }
.phw-pdot path { fill: none; stroke: #fff8ee; stroke-width: 56; stroke-linecap: round; }
.phw-pdot circle { fill: #fff8ee; }

/* ── the core: the AI shapes a collection, asks it, and an app appears ── */
.phw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: none; }
.phw-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; border-radius: 16px; border: 1px solid var(--phw-border-strong); background: var(--phw-surface); }
.phw-step p { margin: 0; }
.phw-step-k { display: flex; align-items: center; gap: 8px; font: 12px var(--phw-mono); color: var(--phw-ink); }
.phw-step-k span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--phw-ink); color: #fff8ee; font-size: 10.5px; }
.phw-step-ask { margin-top: 2px !important; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--phw-bg-deep); font: italic 19px/1.3 var(--phw-display); }
.phw-step-note { font: 11px/1.45 var(--phw-mono); color: var(--phw-muted); margin-top: auto !important; }
.phw-step-code { font: 14px var(--phw-mono); color: var(--phw-text); padding: 8px 10px; border-radius: 8px; background: var(--phw-bg); border: 1px dashed var(--phw-border-strong); overflow-wrap: anywhere; }
.phw-step-code span { display: block; font-size: 10.5px; color: var(--phw-muted); }
.phw-mini { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.phw-mini th { text-align: left; font: 10px var(--phw-mono); color: var(--phw-muted); font-weight: 400; padding: 0 6px 4px 0; }
.phw-mini td { padding: 5px 6px 5px 0; border-top: 1px solid var(--phw-border); }
.phw-mini td:nth-child(2) { font-variant-numeric: tabular-nums; }
.phw-mini td:last-child { white-space: nowrap; }
.phw-step-q { font: 400 17px/1.3 var(--phw-display); }
.phw-bars { margin: 0; display: grid; gap: 7px; }
.phw-bars > div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; }
.phw-bars dt { font: 11px var(--phw-mono); color: var(--phw-muted); }
.phw-bars dd { margin: 0; width: calc(var(--v) * 100%); padding: 4px 8px; border-radius: 6px; background: var(--phw-ink); color: #fff8ee; font: 12px var(--phw-mono); text-align: right; }
@media (min-width: 1100px) {
  .phw-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .phw-step:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 18px; font: 16px var(--phw-sans); color: var(--phw-ink); }
}

/* ── 01 · windows ────────────────────────────────────────────────────── */
.phw-windows { --k: 1; position: relative; }
.phw-wins { list-style: none; margin: 0; padding: 0; }
.phw-win { position: relative; width: 76%; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(60, 40, 10, .55); }
.phw-win img { display: block; width: 100%; height: auto; }
.phw-win + .phw-win { margin-top: -2%; }
.phw-win:nth-child(1) { transform: rotate(-2deg); }
.phw-win:nth-child(2) { margin-left: auto; z-index: 1; transform: rotate(1.5deg); }
.phw-win:nth-child(3) { z-index: 2; transform: rotate(-1deg); }
.phw-band { position: relative; margin-top: 26px; padding: 14px 0 12px; border-block: 1px solid var(--phw-border-strong); }
.phw-band p { margin: 10px 0 0; font: 11px var(--phw-mono); color: var(--phw-muted); }
.phw-threads { display: none; }
.phw-dots { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.phw-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--k-person); }
.phw-dots i:nth-child(5n + 2) { background: var(--k-file); }
.phw-dots i:nth-child(5n + 3) { background: var(--k-project); }
.phw-dots i:nth-child(5n + 4) { background: var(--k-memory); }
.phw-dots i:nth-child(5n) { background: var(--k-prediction); }
.phw-ops { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.phw-ops li { background: var(--phw-surface); border: 1px solid var(--phw-border-strong); border-radius: 10px; padding: 8px 14px; font-size: 13.5px; }
.phw-ops span { display: block; font: 10.5px var(--phw-mono); color: var(--phw-muted); }
@media (min-width: 640px) {
  .phw-wins { position: relative; padding-top: calc(50px + min(250px, 34%)); }
  .phw-win, .phw-win + .phw-win { position: absolute; width: min(250px, 34%); margin: 0; z-index: auto; transition: transform 700ms var(--phw-ease); }
  .phw-win:nth-child(1) { left: 0; top: 18px; z-index: 1; transform: translate(calc((1 - var(--k)) * 34%), calc((1 - var(--k)) * 6px)) rotate(-2deg); }
  .phw-win:nth-child(2) { left: 33%; top: 46px; transform: rotate(1.5deg); }
  .phw-win:nth-child(3) { right: 0; top: 0; z-index: 1; transform: translate(calc((1 - var(--k)) * -34%), calc((1 - var(--k)) * 20px)) rotate(-1deg); }
  .phw-band { margin-top: 64px; }
  .phw-threads { display: block; position: absolute; inset: -64px 0 auto; height: 64px; pointer-events: none; }
  .phw-threads i { position: absolute; top: 0; height: 100%; border-left: 1.5px dashed rgba(43, 35, 27, .45); transform-origin: top; transform: scaleY(var(--k)); transition: transform 700ms var(--phw-ease); }
  .phw-threads i:nth-child(1) { left: 18%; }
  .phw-threads i:nth-child(2) { left: 50%; }
  .phw-threads i:nth-child(3) { left: 82%; }
}

/* ── 03 · what lives in it ───────────────────────────────────────────── */
.phw-kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 14px; }
.phw-kinds li { background: var(--phw-surface); border: 1px solid var(--phw-border-strong); border-radius: 14px; padding: 16px 18px 18px; }
.phw-kinds h3 { display: flex; align-items: center; gap: 8px; font-size: 21px; }
.phw-kinds h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--k, var(--phw-ink)); }
.phw-kinds p { margin: 6px 0 0; font-size: 14.5px; color: var(--phw-body); }
.phw-kinds li[data-kind="map"] { background: var(--phw-ink); border-color: var(--phw-ink); }
.phw-kinds li[data-kind="map"] :is(h3, p) { color: #fff8ee; }
.phw-kinds li[data-kind="map"] h3::before { background: #fff8ee; }
[data-kind="person"] { --k: var(--k-person); } [data-kind="file"] { --k: var(--k-file); } [data-kind="project"] { --k: var(--k-project); }
[data-kind="memory"] { --k: var(--k-memory); } [data-kind="prediction"] { --k: var(--k-prediction); }
[data-kind="task"] { --k: var(--k-task); } [data-kind="app"] { --k: var(--k-app); }

/* ── 04 · the margin ─────────────────────────────────────────────────── */
.phw-feature { display: grid; gap: 48px 64px; }
@media (min-width: 1100px) { .phw-feature { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); align-items: start; } .phw-feature > .phw-head { position: sticky; top: 48px; } }
.phw-usual { margin-top: 30px !important; padding-top: 16px; border-top: 1px dashed var(--phw-border-strong); }
.phw-usual span { display: block; font: 11px var(--phw-mono); color: var(--phw-faint); margin-bottom: 4px; }
.phw-usual del { font: italic 19px/1.35 var(--phw-display); color: var(--phw-faint); text-decoration-color: #b3a689; }
.phw-read { margin-top: 12px !important; font: 12px var(--phw-mono) !important; color: var(--phw-ink) !important; }

.phw-margin { position: relative; }
.phw-said { margin: 0; padding: 0; display: flex; flex-direction: column-reverse; }
.phw-said p { margin: 0; font: italic 400 clamp(26px, 3.3vw, 40px)/1.25 var(--phw-display); color: var(--phw-text); }
.phw-said mark { background: linear-gradient(var(--phw-ink), var(--phw-ink)) 0 100% / 100% 1.5px no-repeat; color: inherit; padding-bottom: 2px; transition: background-size 600ms var(--phw-ease); }
.phw-said footer { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 12px var(--phw-mono); color: var(--phw-muted); }
.phw-notes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.phw-mem { position: relative; background: var(--phw-surface); border: 1px solid var(--phw-border-strong); border-radius: 11px; padding: 10px 13px 11px; box-shadow: 0 1px 0 rgba(60, 40, 10, .05), 0 10px 24px -16px rgba(60, 40, 10, .4); }
.phw-mem p { margin: 0; }
.phw-mem-k { display: flex; justify-content: space-between; gap: 8px; font: 10.5px var(--phw-mono); color: var(--phw-muted); }
.phw-mem-k span:first-child { display: inline-flex; align-items: center; gap: 6px; text-transform: lowercase; }
.phw-mem-k span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.phw-mem-k span:last-child { color: var(--phw-faint); }
.phw-mem-t { font: 400 18px/1.2 var(--phw-display); margin-top: 3px !important; }
.phw-mem-b { font-size: 13px; line-height: 1.42; color: #4a3f2e; margin-top: 2px !important; }
.phw-mem-src { font: 10.5px var(--phw-mono); color: var(--phw-faint); margin-top: 6px !important; }
.phw-mem-how { font: 10.5px var(--phw-mono); color: var(--phw-ink); margin-top: 3px !important; }
.phw-mem--app { border-color: var(--phw-ink); }
.phw-legend { display: none; }
.phw-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.phw-lines path { fill: none; stroke: var(--phw-ink); stroke-width: 1.3; stroke-opacity: .7; }
.phw-lines .is-saved { stroke-width: 1.5; stroke-opacity: 1; stroke-dasharray: 1.5 4.5; stroke-linecap: round; }
.phw-lines circle { fill: var(--phw-ink); }

/* The margin layout: three notes above her sentence, four below, the links drawn between. */
@supports (grid-template-columns: subgrid) {
  @container phw-margin (min-width: 620px) {
    .phw-margin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; column-gap: 22px; }
    .phw-margin-grid .phw-said { grid-column: 1 / -1; grid-row: 2; padding: 64px 0 76px; position: relative; z-index: 1; }
    .phw-margin-grid .phw-notes { grid-column: 1 / -1; grid-row: 1 / 5; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; gap: 0 22px; margin: 0; }
    .phw-margin-grid .phw-mem[data-id="book"] { grid-area: 1 / 1; }
    .phw-margin-grid .phw-mem[data-id="lurdes"] { grid-area: 1 / 2; }
    .phw-margin-grid .phw-mem[data-id="cod"] { grid-area: 1 / 3; }
    .phw-margin-grid .phw-mem[data-id="lunch"] { grid-area: 3 / 1; align-self: start; }
    .phw-margin-grid .phw-mem[data-id="card"] { grid-area: 3 / 2; align-self: start; }
    .phw-margin-grid .phw-mem[data-id="oven"] { grid-area: 3 / 3; align-self: start; }
    .phw-margin-grid .phw-mem[data-id="kitchen"] { grid-area: 4 / 3; margin-top: 26px; }
    .phw-margin-grid .phw-legend { display: flex; grid-column: 1 / 3; grid-row: 4; align-self: end; flex-direction: column; gap: 4px; margin: 0; font: 11px var(--phw-mono); color: var(--phw-muted); }
    .phw-margin-grid .phw-legend span::before { content: ""; display: inline-block; width: 28px; margin-right: 10px; vertical-align: middle; border-top: 1.4px solid var(--phw-ink); }
    .phw-margin-grid .phw-legend .is-saved::before { border-top-style: dotted; border-top-width: 2px; }
    .phw-margin-grid { --phw-lines: 1; position: relative; }
    .phw-margin-grid .phw-mem-how { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  }
}
.phw-margin { container: phw-margin / inline-size; }

/* ── 05 · learn it once ──────────────────────────────────────────────── */
/* The columns follow the drawing above them at every width: the AI without a memory on the left,
   under its pile of papers; Par on the right, under the brain. The source keeps Par first in each
   row, so a screen reader hears the question, Par's answer, then the other AI's. */
.phw-once-heads { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 16px; margin: 0 0 12px; font: 11px var(--phw-mono); color: var(--phw-muted); }
.phw-once-heads > :first-child { display: none; }
.phw-once-list { list-style: none; margin: 0; padding: 0; }
.phw-once-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 16px; padding: 16px 0; border-top: 1px dashed var(--phw-border-strong); }
.phw-once-when, .phw-tally-k { grid-column: 1 / -1; }
.phw-once-other, .phw-tally del { grid-column: 1; grid-row: 2; }
.phw-once-par, .phw-tally-par { grid-column: 2; grid-row: 2; }
.phw-once-row:first-child { border-top: 0; padding-top: 0; }
.phw-once-when { margin: 0; font: 12px/1.5 var(--phw-mono); color: var(--phw-muted); }
.phw-once-when time { color: var(--phw-ink); margin-right: 8px; }
@media (min-width: 760px) { .phw-once-when time { display: block; } }
.phw-once-par { position: relative; }
.phw-once-par p { margin: 0; }
.phw-q { font-size: 14px; color: var(--phw-muted); }
.phw-a { font: 400 20px/1.3 var(--phw-display); margin-top: 3px !important; }
.phw-cite { font: 11px var(--phw-mono); color: var(--phw-ink); margin-top: 6px !important; }
.phw-once-other { margin: 0; font: italic 16px/1.3 var(--phw-display); color: var(--phw-faint); }
.phw-once-other del { text-decoration-color: #b3a689; }
.phw-mem--inline { max-width: 340px; }
.phw-stamp { display: inline-block; margin-top: 7px !important; padding: 1px 6px; border: 1px solid var(--phw-ink); border-radius: 4px; font: 10px var(--phw-mono); color: var(--phw-ink); }
.phw-save-img { display: block; width: 112px; height: auto; margin-top: 8px; transform-origin: 30% 80%; transition: opacity 600ms var(--phw-ease), transform 700ms var(--phw-ease); }
.phw-tally { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 16px; margin: 18px 0 0; padding-top: 16px; border-top: 1.5px solid var(--phw-ink); }
.phw-tally-k { font: 11px var(--phw-mono); color: var(--phw-muted); }
.phw-tally-par { font: 400 clamp(22px, 2.4vw, 28px)/1.15 var(--phw-display); }
.phw-tally del { font: italic 20px var(--phw-display); color: var(--phw-faint); text-decoration-color: #b3a689; }
@media (min-width: 760px) {
  .phw-once-heads, .phw-once-row, .phw-tally { grid-template-columns: 112px minmax(0, 2fr) minmax(0, 3fr); gap: 22px; }
  .phw-once-heads > :first-child { display: block; }
  .phw-once-row { align-items: start; }
  .phw-once-when, .phw-tally-k { grid-column: 1; grid-row: 1; }
  .phw-once-other, .phw-tally del { grid-column: 2; grid-row: 1; }
  .phw-once-par, .phw-tally-par { grid-column: 3; grid-row: 1; }
  .phw-once-other { padding-top: 20px; }
  .phw-once-row--learn .phw-once-other { padding-top: 26px; }
  .phw-tally { align-items: end; }
}

/* ── 06 · a real database ────────────────────────────────────────────── */
.phw-verbs { margin: 10px 0 0; }
.phw-verbs > div { padding: 12px 0; border-top: 1px solid var(--phw-border); }
.phw-verbs dt { font: 11px var(--phw-mono); color: var(--phw-muted); }
.phw-verbs dd { margin: 2px 0 0; font: 400 19px/1.3 var(--phw-display); }
.phw-verbs .phw-q { display: block; font: 14px/1.4 var(--phw-sans); }
.phw-h3 { margin: clamp(56px, 7vw, 88px) 0 18px !important; font-size: clamp(24px, 2.6vw, 32px) !important; letter-spacing: -0.015em; }
.phw-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.42; }
.phw-split + .phw-table { margin-top: clamp(48px, 6vw, 80px); }
.phw-table th, .phw-table td { text-align: left; vertical-align: top; padding: 13px 14px; border-top: 1px solid var(--phw-border-strong); }
.phw-table thead th { font: 400 19px var(--phw-display); border-top: 0; padding-bottom: 10px; }
.phw-table thead td { border-top: 0; }
.phw-table thead th.is-par { background: var(--phw-ink); color: #fff8ee; border-radius: 10px 10px 0 0; }
.phw-table tbody th { font: 12px/1.45 var(--phw-mono); color: var(--phw-muted); font-weight: 400; width: 17%; }
.phw-table td { color: var(--phw-muted); }
.phw-table td.is-par { color: var(--phw-text); background: rgba(43, 35, 27, .05); width: 24%; }
@media (max-width: 859px) {
  .phw-table, .phw-table tbody, .phw-table tr, .phw-table th, .phw-table td { display: block; width: auto !important; }
  .phw-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .phw-table tr { padding: 4px 0 10px; border-top: 1px solid var(--phw-border-strong); }
  .phw-table tbody th { border-top: 0; padding: 12px 0 4px; font-size: 12px; color: var(--phw-text); }
  .phw-table td { border-top: 0; padding: 6px 0 6px 132px; position: relative; min-height: 28px; }
  .phw-table td::before { content: attr(data-col); position: absolute; left: 0; top: 7px; width: 120px; font: 11px/1.4 var(--phw-mono); color: var(--phw-muted); }
  .phw-table td.is-par { padding: 9px 12px 9px 132px; border-radius: 8px; }
  .phw-table td.is-par::before { left: 12px; top: 10px; color: var(--phw-ink); }
}
@media (max-width: 419px) {
  .phw-table td, .phw-table td.is-par { padding: 22px 0 6px; }
  .phw-table td.is-par { padding: 24px 12px 9px; }
  .phw-table td::before { top: 4px; width: auto; }
  .phw-table td.is-par::before { top: 7px; }
}

/* ── 07 · better data, better answers: three blocks, each read at a glance ── */
.phw-block { display: grid; gap: 28px 72px; align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px dashed var(--phw-border-strong); }
.phw-head--row + .phw-block { border-top: 0; padding-top: 0; }
.phw-block-head h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.02em; }
.phw-block-head p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.58; color: var(--phw-body); max-width: 32em; }
.phw-block-head .phw-sources { font: 11.5px/1.7 var(--phw-mono); color: var(--phw-muted); }
.phw-sources a { color: var(--phw-ink); text-underline-offset: 3px; }
@media (min-width: 980px) { .phw-block { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

.phw-reads-q { margin: 0 0 12px; font: italic 22px/1.25 var(--phw-display); }
.phw-reads-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.phw-reads-side { display: flex; flex-direction: column; gap: 10px; border-radius: 14px; padding: 16px 18px; border: 1px solid var(--phw-border-strong); background: var(--phw-surface); }
.phw-reads-side.is-pile { background: transparent; border-style: dashed; }
.phw-reads-k { margin: 0; font: 11px var(--phw-mono); color: var(--phw-muted); }
.is-par .phw-reads-k { color: var(--phw-ink); }
.phw-pile-img { display: block; width: auto; max-width: 100%; height: 190px; margin: 0 auto; }
.phw-found-img { display: block; width: 92px; height: auto; margin: 2px auto 0; }
.phw-recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.phw-recs li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--phw-border-strong); font: 400 15px var(--phw-display); background: var(--phw-bg); }
.phw-recs li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.phw-reads-what { margin: 0; font: 11px/1.45 var(--phw-mono); color: var(--phw-muted); }
.phw-reads-a { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--phw-border); font: 400 19px/1.3 var(--phw-display); }
.is-pile .phw-reads-a { color: var(--phw-muted); }

.phw-doors { position: relative; }
.phw-doors ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 96px; }
.phw-doors li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--phw-border-strong); background: var(--phw-surface); font: 400 19px var(--phw-display); text-align: center; }
.phw-doors-mid { position: absolute; left: 50%; top: 0; height: calc(100% - 40px); transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: 11px var(--phw-mono); color: var(--phw-ink); white-space: nowrap; }
.phw-doors-mid .phw-pdot { width: 40px; height: 40px; box-shadow: 0 0 0 8px rgba(43, 35, 27, .06), 0 0 0 18px rgba(43, 35, 27, .03); }
.phw-doors-mid .phw-pdot svg { width: 24px; height: 24px; }
@media (max-width: 519px) {
  .phw-doors ul { grid-template-columns: 1fr; gap: 8px; }
  .phw-doors-mid { position: static; transform: none; height: auto; flex-direction: row; margin-top: 14px; }
}

.phw-keeps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.phw-keeps li { padding: 16px 18px 18px; border-radius: 14px; border: 1px solid var(--phw-border-strong); background: var(--phw-surface); font: 400 19px/1.3 var(--phw-display); }
.phw-keeps li span { display: block; margin-bottom: 6px; font: 11px var(--phw-mono); color: var(--phw-ink); }

/* ── 07 · what you already do ────────────────────────────────────────── */
.phw-horizons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.phw-horizons li { background: var(--phw-surface); border: 1px solid var(--phw-border-strong); border-radius: 16px; padding: 20px 22px 22px; display: flex; flex-direction: column; }
.phw-horizons h3 { font-size: 26px; letter-spacing: -0.01em; }
.phw-use { margin: 2px 0 14px; font: 11.5px var(--phw-mono); color: var(--phw-muted); }
.phw-par { margin: 0; font: 400 19px/1.38 var(--phw-display); flex: 1; }
.phw-typical { margin: 18px 0 0; padding-top: 12px; border-top: 1px dashed var(--phw-border-strong); font-size: 13.5px; color: var(--phw-muted); }
.phw-typical span { display: block; font: 10.5px var(--phw-mono); color: var(--phw-faint); margin-bottom: 3px; }

/* ── 08 · North Star ─────────────────────────────────────────────────── */
.phw-ask { margin: 0 0 14px auto; width: fit-content; max-width: 90%; padding: 10px 16px; border-radius: 16px 16px 4px 16px; background: var(--phw-bg-deep); font: italic 19px/1.3 var(--phw-display); }
.phw-ask-who { display: block; font: 10.5px var(--phw-mono); font-style: normal; color: var(--phw-muted); margin-bottom: 2px; }
.phw-brief dl { margin: 12px 0 0; }
.phw-brief dl > div { padding: 12px 0; border-top: 1px solid var(--phw-border); }
.phw-brief dt { font: 11px var(--phw-mono); color: var(--phw-muted); }
.phw-brief dd { margin: 3px 0 0; font: 400 20px/1.35 var(--phw-display); }
.phw-brief .is-quiet dd { color: var(--phw-muted); }
.phw-brief .is-next dd { color: var(--phw-ink); }
.phw-brief .is-next dd::before { content: "→ "; font-family: var(--phw-sans); }
.phw-brief figcaption { margin: 0 0 12px; }

/* ── 09 · your Par stays, and the call to action ─────────────────────── */
.phw-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px !important; }
.phw-btn { --b: oklch(0.81 0.11 258); position: relative; display: inline-flex; align-items: center; justify-content: center; font: 600 15px/1 var(--phw-sans); padding: 13px 22px; border-radius: 8px; text-decoration: none; color: oklch(0.34 0.16 258); background-image: linear-gradient(180deg, color-mix(in oklch, var(--b) 88%, transparent), var(--b)); box-shadow: 0 3px 6px -1px rgba(0, 0, 0, .13), 0 14px 28px -6px rgba(0, 0, 0, .17); transition: transform 180ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 280ms ease; }
.phw-btn:hover { transform: translateY(-1px) scale(1.025); }
.phw-btn:active { transform: translateY(1px) scale(.96); }

/* ── Questions ───────────────────────────────────────────────────────── */
.phw-faq { display: grid; gap: 0 56px; }
.phw-faq > div { padding: 20px 0; border-top: 1px solid var(--phw-border-strong); }
.phw-faq h3 { font-size: 22px; line-height: 1.25; }
.phw-faq p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--phw-body); }
@media (min-width: 900px) { .phw-faq { grid-template-columns: 1fr 1fr; } }

.phw-foot { padding: 40px 0 56px; border-top: 1px solid var(--phw-border); font: 11.5px/1.6 var(--phw-mono); color: var(--phw-faint); }
.phw-foot p { margin: 0; }

/* ── Motion: only once a module says it is driving, never without JavaScript.
   It moves pictures and lines, never words. ── */
[data-phw-anim] .phw-lines :is(path, circle) { transition: stroke-dashoffset 800ms var(--phw-ease), opacity 400ms var(--phw-ease); }
.phw-lines .is-found { stroke-dasharray: var(--len); stroke-dashoffset: 0; }
[data-phw-anim][data-step="0"] .phw-said mark { background-size: 0 1.5px; }
[data-phw-anim]:is([data-step="0"], [data-step="1"]) .phw-lines path.is-found { stroke-dashoffset: var(--len); }
[data-phw-anim]:is([data-step="0"], [data-step="1"]) .phw-lines :is(circle, .is-saved),
[data-phw-anim][data-step="2"] .phw-lines .is-saved { opacity: 0; }
/* Rows the reader hasn't reached keep their words; only the other AI's pile waits. */
.phw-other-pile { transition: opacity 500ms var(--phw-ease), transform 600ms var(--phw-ease); transform-origin: 0 100%; }
.phw-once[data-phw-anim] .phw-once-row[data-hidden] .phw-other-pile { opacity: 0; transform: scale(.5); }
.phw-once[data-phw-anim][data-step="0"] .phw-save-img { opacity: 0; transform: translateY(10px) scale(.7); }
/* steps.js figures move images only, never text; without JavaScript, the last state. */
.phw-app-img, .phw-become img { transition: opacity 600ms var(--phw-ease), transform 700ms var(--phw-ease), filter 700ms var(--phw-ease); }
.phw-shape[data-phw-anim][data-step="0"] .phw-app-img { opacity: 0; transform: translateY(18px) scale(.96); }
.phw-team-img { transition: opacity 600ms var(--phw-ease), transform 700ms var(--phw-ease); }
.phw-team-fig[data-phw-anim][data-step="0"] .phw-team-img { opacity: 0; transform: translateY(22px); }
.phw-become { position: relative; height: 128px; margin: 0 0 18px; }
.phw-become img { position: absolute; inset: 0; margin: auto; width: auto; height: 100%; transform-origin: 50% 100%; }
.phw-become .is-from { opacity: 0; }
.phw-keeps[data-phw-anim][data-step="0"] .phw-become .is-from { opacity: 1; }
.phw-keeps[data-phw-anim][data-step="0"] .phw-become .is-to { opacity: 0; transform: scale(.85); }
.phw-keeps[data-phw-anim]:not([data-step="0"]) .phw-become .is-from { opacity: 0; transform: scale(.6); filter: blur(4px); }
.phw-other-pile { display: block; width: calc(var(--n) * 7px); height: auto; margin-bottom: 4px; }
.phw-step-img { display: block; width: auto; max-width: 100%; max-height: 230px; height: auto; margin: 0 auto; }
.phw-team { margin-top: clamp(40px, 5vw, 64px); }
.phw-team-fig { margin: 0; }
.phw-team-img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 22px 44px -26px rgba(60, 40, 10, .55); }
.phw-app-img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 14px 30px -20px rgba(60, 40, 10, .55); }
.phw-mem-img { display: block; width: 100%; height: auto; margin: 6px 0 2px; border-radius: 8px; }
[data-phw-reduced], [data-phw-reduced] * { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .phw *, .phw *::before, .phw *::after { transition: none !important; animation: none !important; }
}

/* ── Crayon drawings (Par illustration kit) ──────────────────────────── */
.phw-intro-diagram { margin-top: clamp(28px, 4vw, 52px); }
.phw-feature-main { min-width: 0; }
.phw-scene { margin: 0 0 clamp(24px, 3vw, 40px); }
/* 04 waits for the real-time demo; until it is wired in, two of Nora's apps in the kit's UI. */
.phw-live-cards { margin: 0; display: grid; gap: 22px; align-items: start; }
.phw-live-cards figcaption { margin-top: 0; }
.phw-live-cards img { height: auto; }
.phw-live { margin: 0; }
@media (min-width: 640px) and (max-width: 979px), (min-width: 1200px) {
  .phw-live-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phw-live-cards .pil-ui + .pil-ui { margin-top: 36px; }
  .phw-live-cards figcaption { grid-column: 1 / -1; }
}
.phw-stays-art { margin: 0; }
