/* ==========================================================================
   home-clean.css — the calm pass (2026-11-15, local study)
   --------------------------------------------------------------------------
   Loaded by index.html only, last. It does not redraw anything; it takes
   things away and makes what is left speak one language:

     · one paper, top to bottom (no dark band, no dark scene, no orange
       plane, no pixel field) — dark lives only inside framed screens
     · one type scale: hero 80, section heads 60, ledes 18, labels 13
     · one rhythm: every chapter has the same padding and the same head,
       centred over its figure
     · one action: a dark pill, in the header and at the close
     · orange is an accent only (the send key, a selection, a tick)

   Everything is scoped to .ix (Home's <main>) or to the header on this page,
   so About and the other pages never see it. Theme-aware through the
   existing --ix-* tokens, so System on a dark OS still works.
   ========================================================================== */

/* ---------- 0. Tokens ------------------------------------------------------ */
.ix {
  --c-section: clamp(96px, 10vw, 152px);   /* one rhythm between chapters */
  --c-radius: 20px;                        /* every framed screen */
  --c-frame-line: rgb(20 18 16 / 0.08);
  --c-shadow: 0 1px 2px rgb(20 18 16 / 0.04), 0 24px 64px -24px rgb(20 18 16 / 0.22);
  --c-h: clamp(36px, 4.2vw, 60px);         /* every section head */
  --c-lede: clamp(16px, 1.25vw, 18px);
}
:root[data-theme="dark"] .ix {
  --c-frame-line: rgb(236 236 238 / 0.09);
  --c-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 24px 64px -24px rgb(0 0 0 / 0.7);
}

/* ---------- 1. Header: the site's own header, Light / System switch kept --- */


/* ---------- 2. Hero: the statement, the composer, nothing else ------------- */
.ix .hp-hero {
  min-height: 0;
  padding-top: clamp(148px, 20vh, 200px);
  padding-bottom: clamp(56px, 7vw, 96px);
  --d-page: var(--ix-paper);
}
/* the light: a whisper of warmth at the foot, not a fire */
.ix .hp-amb { background-image: none; }
.ix .hp-hero::after {
  height: 70%;
  background: radial-gradient(60% 55% at 50% 100%, rgb(255 122 61 / 0.10) 0%, rgb(255 122 61 / 0) 70%);
}
:root[data-theme="dark"] .ix .hp-hero::after {
  background: radial-gradient(60% 55% at 50% 100%, rgb(255 122 61 / 0.08) 0%, rgb(255 122 61 / 0) 70%);
}
.sw .hp-title {
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.sw .hp-sub { margin-top: 20px; font-size: clamp(17px, 1.35vw, 19px); color: var(--ix-ink-3); }
.ix .hp-composer { margin-top: 40px; }
.ix .hp-starts { margin-top: 18px; }

/* ---------- 3. The film: a framed screen on the paper ---------------------- */
.ix-band,
:root[data-theme="dark"] .ix-band {
  margin-top: 0;
  padding: 0 0 var(--c-section);
  background: transparent;
  color: var(--ix-ink);
  --sw-ink: var(--ix-ink);
  --sw-muted: var(--ix-ink-3);
  --sw-line: var(--ix-line);
}
.ix-media .pff-frame { border-radius: var(--c-radius); overflow: hidden; box-shadow: var(--c-shadow); }
/* the opening reveal keeps the rounded corners */
.ix-media .pff-frame { clip-path: inset(var(--o-t) var(--o-r) var(--o-b) var(--o-l) round var(--c-radius)); }
.ix-media .pff-frame::after,
:root[data-theme="dark"] .ix-media .pff-frame::after { border-radius: inherit; box-shadow: inset 0 0 0 1px var(--c-frame-line); }
.ix-corners { display: none; }
.ix .ix-media .pff-ch,
:root[data-theme="dark"] .ix .ix-media .pff-ch { color: var(--ix-ink-3); }

/* ---------- 4. Models: a quiet row, not a band ----------------------------- */
.ix .logoloop-section,
:root[data-theme="dark"] .ix .logoloop-section {
  margin-top: 0;
  padding: 0 0 var(--c-section);
  background: transparent;
  color: var(--ix-ink);
  --ink: var(--ix-ink);
  --sw-ink: var(--ix-ink);
  --sw-muted: var(--ix-ink-3);
  --sw-line: transparent;
}
.ix .logoloop-section .sw-rule-row { display: flex; justify-content: center; border: 0; }
.ix .logoloop-heading {
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ix-ink-3);
}
.ix .logoloop__item { opacity: 0.55; }
.ix .logoloop-section .logoloop-note,
:root[data-theme="dark"] .ix .logoloop-section .logoloop-note {
  max-width: 64ch;
  margin-inline: auto;
  text-align: center;
  font-size: 11px;
  color: var(--ix-ink-3);
  opacity: 0.7;
}

/* ---------- 5. Thesis: a chat is a line ---------------------------------
   The city stays (index.js draws it), set calmer: the statement centred in
   sentence case, the second line arriving in grey, the blocks drawn as
   hairline forms with their words as a faint texture, and a shorter pin. */
.ix-thesis-in {
  padding-top: clamp(96px, 14vh, 150px);
  text-align: center;
}
.ix .ix-statement {
  margin: 0 auto;
  font-size: clamp(32px, 3.8vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: none;
}
.ix .ix-st { width: auto; }
.ix .ix-st-b { margin-left: 0; color: var(--ix-ink-3); }
.ix-city {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 70%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 70%, transparent 96%);
}
/* the second line wipes in softly rather than snapping */
.ix-thesis.is-live .ix-st-b { transition: clip-path 1100ms var(--ix-ease); }
/* without scripting there is no city: the section is just the sentence */
html:not(.js) .ix-thesis-stage { min-height: 0; }
html:not(.js) .ix-thesis-in { padding-bottom: var(--c-section); }

/* ---------- 6. Chapters: one head, one rhythm ------------------------------ */
.ix-ch {
  padding-block: var(--c-section);
  border-top: 0;
}
.ix-ch::before { display: none; }
.ix-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: clamp(48px, 5vw, 72px);
  text-align: center;
}
.ix-head .ix-label { order: 0; padding: 0; align-self: center; width: auto; text-align: center; }
.ix-head .ix-h { order: 1; }
.ix-head .ix-lede { order: 2; padding: 0; }
.ix .ix-label {
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ix-accent);
  font-weight: 500;
}
.ix .ix-h {
  margin-top: 14px;
  font-size: var(--c-h);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.ix .ix-head .ix-lede {
  max-width: 46ch;
  margin: 18px auto 0;
  font-size: var(--c-lede);
  line-height: 1.5;
  color: var(--ix-ink-3);
}

/* the demo's tabs: lighter, no rules */
.ix-stage .sw-steps { border-top: 0; margin-bottom: 16px; background: transparent; }
.ix-stage .sw-steps button + button { border-left: 0; }
.ix-stage .sw-steps button > span:nth-child(2) { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.025em; }
.ix-stage .sw-steps button > .eyebrow { color: var(--ix-ink-3); }

/* every demo, folder and figure sits in the same soft frame */
.ix #canvas .demo,
.ix #folder .ff {
  border-radius: var(--c-radius);
  overflow: hidden;
  box-shadow: var(--c-shadow);
  outline: 1px solid var(--c-frame-line);
  outline-offset: -1px;
}

/* ---------- 7. The game: the dark window on paper -------------------------- */
.ix .hp-scene--game .hp-stage {
  background: var(--ix-paper);
  color: var(--ix-ink);
  --sw-ink: var(--ix-ink);
  --sw-muted: var(--ix-ink-3);
  --sw-line: var(--ix-line);
  --tint-rgb: 20 18 16;
}
:root[data-theme="dark"] .ix .hp-scene--game .hp-stage { --tint-rgb: 236 236 238; }
.ix .hp-gart { display: none; }
.ix .hp-game-head .hp-idx { display: none; }
.sw .hp-game-head .hp-h {
  font-size: var(--c-h);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.sw .hp-game-meta .hp-lede { color: var(--ix-ink-3); font-size: var(--c-lede); }
.ix .hp-gtabs { border-color: var(--ix-line-2); background: transparent; }
.ix .hp-gtabs li { color: var(--ix-ink-3); }
.ix .hp-gtabs li span { color: var(--ix-ink-3); }
.ix .hp-gtabs li.on { background: var(--ix-ink); color: var(--ix-paper); }
.ix .hp-gtabs li.on span { color: var(--ix-accent); }
.ix .hp-win--game {
  border-radius: var(--c-radius);
  border-color: rgb(255 255 255 / 0.06);
  background-color: #0E0F11;
  box-shadow: var(--c-shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---------- 8. On your desktop: paper, not an orange plane ----------------- */
.ix #desktop { overflow: clip; }
.ix #desktop .ix-head { margin-bottom: clamp(32px, 4vw, 56px); }
.ix-desk { align-items: center; }
.ix-laptop { margin-top: 0; }
.ix #desktop .desktop-status { border-color: var(--ix-line-2); color: var(--ix-ink-3); }

/* ---------- 9. Plani: smaller, quieter ------------------------------------- */
.ix .ix-plani--chess { width: clamp(150px, 13vw, 220px); opacity: 0.92; }
@media (min-width: 1120px) {
  .ix .ix-plani--teach { width: clamp(180px, 14vw, 230px); }
}

/* ---------- 10. Close: the statement, one action, Plani beside it ---------- */
.ix-close { min-height: 0; display: block; }
.ix-close-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: var(--c-section) calc(var(--c-section) * 1.1);
}
.ix-close-in > .ix-label { display: none; }
.ix .ix-title--close {
  margin-top: 0;
  font-size: clamp(44px, 5.6vw, 80px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.ix-close-foot {
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 22px;
  width: auto;
}
.ix .ix-close-foot p { font-size: var(--c-lede); color: var(--ix-ink-3); }
.ix .ix-close-foot .button {
  min-width: 0;
  min-height: 48px;
  gap: 10px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ix-ink);
  color: var(--ix-paper);
  font-weight: 500;
  transition: transform 160ms ease, opacity 160ms ease;
}
.ix .ix-close-foot .button:hover { opacity: 0.88; }
.ix .ix-close-foot .button span { font-family: inherit; font-size: 16px; }
/* Plani sits small above the statement, the way a mark sits over a title */
.ix .ix-plani--sit {
  order: -1;
  align-self: center;
  width: clamp(64px, 5vw, 84px);
  margin: 0 0 28px;
  opacity: 1 !important;
}

/* no pixel wordmark under the footer: the page ends on the footer */
.ix .ix-giant { display: none; }

/* ---------- 12. The demos, polished --------------------------------------
   One control language for every demo: chapters and steps read as words,
   not numbers; the chosen one is a dark pill; figure labels whisper. */

/* the film's chapters: six names under six hairlines, no index numbers,
   no second "now playing" line; pause is a small round button */
.ix .fv-foot {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "chapters toggle";
  align-items: center;
  column-gap: 24px;
  margin-top: 6px;
}
.ix .fv-now { display: none; }
.ix .fv-chapters { gap: 12px; }
.ix .fv-ch { min-height: 40px; padding-top: 12px; color: var(--ix-ink-3); }
.ix .fv-ch::before { background: var(--ix-line); }
.ix .fv-ch > i { background: var(--ix-ink); border-radius: 2px; }
.ix .fv-ch > .eyebrow { display: none; }
.ix .fv-ch > span:last-child {
  position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
  display: block; font-size: 13.5px; line-height: 1.3; letter-spacing: -0.01em;
  white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.ix .fv-ch[aria-current="step"], .ix .fv-ch:hover { color: var(--ix-ink); }
.ix .fv-toggle {
  justify-content: center;
  width: 36px; min-height: 36px; height: 36px; margin: 0; padding: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ix-line-2);
  color: var(--ix-ink);
  font-size: 0; letter-spacing: 0;
  transition: background-color 160ms ease;
}
.ix .fv-toggle:hover { text-decoration: none; background: var(--ix-line); }
.ix .fv-toggle svg { width: 10px; height: 10px; }

/* the canvas demo's three steps: a segmented pill with a sliding thumb */
.ix .ix-stage .sw-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(480px, 100%);
  margin: 0 auto 24px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--ix-paper);
  box-shadow: inset 0 0 0 1px var(--ix-line-2);
}
.ix .ix-stage .sw-steps::before {
  content: "";
  display: block;
  position: absolute; z-index: 0;
  left: 4px; top: 4px; bottom: 4px;
  width: calc((100% - 8px) / 3); height: auto;
  border-radius: 999px;
  background: var(--ix-ink);
  transition: transform 520ms var(--ix-ease);
}
.ix .ix-stage .sw-steps button,
.ix .ix-stage .sw-steps button + button {
  z-index: 1;
  display: flex; flex-wrap: nowrap; align-items: center; align-content: center; justify-content: center;
  text-align: center;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}
.ix .ix-stage .sw-steps button > .eyebrow,
.ix .ix-stage .sw-steps .step-arrow,
.ix .ix-stage .sw-steps small { display: none; }
.ix .ix-stage .sw-steps button > span:nth-child(2) {
  width: auto; order: 0;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  color: var(--ix-ink-2);
  transition: color 300ms ease;
}
.ix .ix-stage .sw-steps button[aria-selected="true"] > span:nth-child(2) { color: var(--ix-paper); }
@media (hover: hover) {
  .ix .ix-stage .sw-steps button:hover { background: transparent; }
  .ix .ix-stage .sw-steps button[aria-selected="false"]:hover > span:nth-child(2) { color: var(--ix-ink); }
}
.ix .ix-stage .sw-steps button > i.ix-tick,
.ix .ix-stage .sw-steps button + button > i.ix-tick {
  left: 30%; right: 30%; bottom: 6px; height: 2px; border-radius: 2px;
}
/* a sentence under the pill says what the step is (the old small line) */
.ix #canvas .ix-stage .sw-steps { margin-bottom: 28px; }

/* the folder and anywhere figures: their mono labels drop to a whisper */
.ix .ff-label, .ix .ca-source-label {
  font-family: inherit; font-size: 12px; letter-spacing: 0; text-transform: none;
  color: var(--ix-ink-3);
}
.ix .ix-plani--teach { opacity: 0.9; }

/* the game window: its bar matches the film's quiet chrome */
.ix .hp-win--game .hp-win-bar { border-bottom-color: rgb(255 255 255 / 0.06); background: transparent; }
.ix .hp-win-zoom { opacity: 0.6; }

/* the game's head reads like every other head: centred, then the lede,
   then the same pill control as the canvas demo, without numbers */
.ix .hp-game-head { flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; text-align: center; }
.ix .hp-game-meta { justify-items: center; gap: 18px; }
.sw .hp-game-meta .hp-lede { margin: 0; }
.ix .hp-gtabs li span { display: none; }
.ix .hp-gtabs { padding: 4px; box-shadow: inset 0 0 0 1px var(--ix-line-2); border: 0; }
.ix .hp-gtabs li { height: 36px; padding: 0 20px; font-size: 15px; font-weight: 500; }
.ix .hp-game-in { gap: 20px; }

/* desktop downloads: "Soon" as a small quiet pill */
.ix #desktop .desktop-status {
  padding: 4px 10px; border: 0; border-radius: 999px;
  background: var(--ix-line); color: var(--ix-ink-3);
  font-family: inherit; font-size: 12px; letter-spacing: 0; text-transform: none;
}
.ix #desktop .desktop-list { border-top: 0; }
.ix #desktop .desktop-slot { border-color: var(--ix-line); }

/* ---------- 13. Questions ------------------------------------------------- */
.ix-faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--ix-line); }
.ix-faq-list details { border-bottom: 1px solid var(--ix-line); }
.ix-faq-list summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ix-ink);
  cursor: pointer;
  list-style: none;
  transition: color 160ms ease;
}
.ix-faq-list summary::-webkit-details-marker { display: none; }
/* the plus: two hairlines that fold into a minus when open */
.ix-faq-list summary::before,
.ix-faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 14px; height: 1.5px;
  border-radius: 2px;
  background: var(--ix-ink-3);
  transition: transform 300ms var(--ix-ease), background-color 160ms ease;
}
.ix-faq-list summary::after { transform: rotate(90deg); }
.ix-faq-list details[open] summary::after { transform: rotate(0deg); }
@media (hover: hover) {
  .ix-faq-list summary:hover::before, .ix-faq-list summary:hover::after { background: var(--ix-ink); }
}
.ix-faq-list summary:focus-visible { outline: 2px solid var(--ix-accent); outline-offset: 4px; border-radius: 6px; }
.ix-faq-list details p {
  max-width: 62ch;
  margin: -6px 0 0;
  padding: 0 48px 24px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ix-ink-2);
}
.ix-faq-list details[open] p { animation: ix-faq-in 420ms var(--ix-ease) both; }
@keyframes ix-faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ix-faq-list a { color: var(--ix-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ix-line-2); }
.ix-faq-list a:hover { text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .ix-faq-list details[open] p { animation: none; }
  .ix-faq-list summary::before, .ix-faq-list summary::after { transition: none; }
}

/* ---------- 11. Phones ----------------------------------------------------- */
@media (max-width: 700px) {
  .ix .hp-hero { padding-top: 128px; }
  .ix-head { align-items: flex-start; text-align: left; }
  .ix-head .ix-label { align-self: flex-start; text-align: left; }
  .ix .ix-head .ix-lede { margin-left: 0; }
  .ix-thesis-in { text-align: left; }
  .ix-close-in { align-items: flex-start; text-align: left; }
  .ix-close-foot { align-items: flex-start; }
  .ix .fv-chapters { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .ix .fv-ch > span:last-child { display: none; }
  .ix .fv-ch { min-height: 20px; }
  .ix .ix-stage .sw-steps { width: 100%; }
  .ix .ix-stage .sw-steps button > span:nth-child(2) { font-size: 14px; }
}

/* ---------- 14. Continue anywhere: always lit -------------------------------
   On Home every tool shows its brand's colours and every line is drawn in
   the accent, as if the folder were selected, on phones and desktop alike.
   anywhere.css is shared with About, so the override lives here. */
#anywhere .ca { --ca-line: var(--ca-hot); --ca-edge: var(--ca-hot); }
#anywhere .ca-port { background: var(--ca-hot); box-shadow: none; }
#anywhere .ca-brand { opacity: 1; }
#anywhere .ca-mark[data-brand='colour'] .ca-ink { opacity: 0; }
#anywhere .ca-mark[data-brand='mono'] { color: var(--ca-mono); }
#anywhere .ca.has-active .ca-lines g:not(.is-on) .ca-line,
#anywhere .ca.has-active .ca-item:not(.is-on) .ca-label,
#anywhere .ca.has-active .ca-item:not(.is-on) .ca-port,
#anywhere .ca.has-active .ca-item:not(.is-on)::before,
#anywhere .ca.has-active .ca-item:not(.is-on)::after { opacity: 1; }
