/* CPersona site, fifth design (DESIGN.md): the opening is black, with the glass layers beside it; below it the
   ground is white and the content stands in tiles, as on a store front. The days of the problem are typed, as in
   the video, and the comparison's bars grow when they come into view. The curves' control points are powers of
   1/phi. */
@font-face { font-family: 'Hanken Grotesk'; src: url(/fonts/HankenGrotesk-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 114%; }

:root {
  --night: #000000; --fg: #f4f4f4; --fg-2: #cfcfcf; --muted: #a3a3a3; --dim: #5c5c5c; --bar: #737373; --rule-night: #262626;
  --paper: #ffffff; --ink: #0a0a0a; --ink-2: #5a5a5a; --ink-3: #8f8f8f; --rule-paper: #d4d4d4;
  --out: cubic-bezier(.146, .854, .236, 1);
  --move: cubic-bezier(.618, 0, .382, 1);
  --drift: cubic-bezier(.382, 0, .618, 1);
  --arc: cubic-bezier(.764, 0, .236, 1);
  --gut: clamp(20px, 5vw, 80px);
  --bar-h: 56px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-h) + 12px); }
body { margin: 0; background: var(--night); color: var(--fg);
  font: 400 17px/1.75 'Hanken Grotesk', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  font-feature-settings: 'palt'; word-break: auto-phrase; text-autospace: normal; -webkit-font-smoothing: antialiased; }
p, h1, h2, h3, ol, ul, dl, dd, fieldset { margin: 0; }
h1, h2, h3 { font-weight: 750; line-height: 1.2; letter-spacing: -.01em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
code { font: .92em ui-monospace, 'SF Mono', Menlo, monospace; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--fg); color: var(--night); padding: 8px 12px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 2 * var(--gut)); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2 * var(--gut)); margin-left: max(var(--gut), calc((100% - 1180px) / 2)); margin-right: auto; }
html:not(.js) .js-only { display: none; }
.night, .opening { background: var(--night); color: var(--fg); }
.paper, .s { background: var(--paper); color: var(--ink); }
.nb { white-space: nowrap; }
.note { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 780px; margin-top: 10px; }
.paper .note, .s .note { color: var(--ink-2); }
.note a { margin-left: .4em; }
.h2 { font-size: clamp(30px, 4.4vw, 60px); }
.h3 { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.3; font-weight: 700; }
.h4 { font-size: 20px; line-height: 1.4; font-weight: 700; }
.h-lg { font-size: clamp(30px, 4.2vw, 52px); }
.h-sm { font-size: clamp(22px, 2.4vw, 28px); }
.display { font-size: clamp(52px, 9vw, 148px); line-height: 1.05; font-weight: 760; letter-spacing: -.02em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--fg-2); max-width: 36em; margin-top: 16px; }
.paper .lede, .s .lede { color: var(--ink-2); }

/* header: opaque black, fixed */
.top { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--bar-h); background: var(--night); color: var(--fg); border-bottom: 1px solid var(--rule-night); }
.top .wrap { height: 100%; display: flex; align-items: center; gap: 24px; font-size: 14px; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: inherit; text-decoration: none; }
.mark svg { width: 18px; height: 18px; display: block; }
.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
.lang { display: none; border: 1px solid #3a3a3a; border-radius: 6px; overflow: hidden; }
.js .lang, .lang.links { display: inline-flex; }
.lang button { appearance: none; margin: 0; border: 0; background: transparent; color: var(--muted); font: 500 12px/1 'Hanken Grotesk', 'Hiragino Sans', sans-serif; padding: 7px 9px; cursor: pointer; }
.lang button + button { border-left: 1px solid #3a3a3a; }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--night); }
/* Where each language has its own address the switch is two links, usable without JavaScript. It is a
   span, not a nav: the header's nav rules (gap, margin, hidden on phones) must not reach it. */
.lang a { color: var(--muted); font: 500 12px/1 'Hanken Grotesk', 'Hiragino Sans', sans-serif; padding: 7px 9px; text-decoration: none; }
.lang a + a { border-left: 1px solid #3a3a3a; }
.lang a[aria-current="true"] { background: var(--fg); color: var(--night); }
.top .go { color: var(--fg); border: 1px solid var(--fg); padding: 6px 14px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.mark, .lang button, .lang a, .top .go { white-space: nowrap; }
@media (max-width: 640px) { .top nav { display: none; } .top .lang { margin-left: auto; } }
@media (max-width: 360px) { .top .wrap { gap: 10px; } .lang button, .lang a { padding: 7px 6px; } .top .go { padding: 6px 10px; } }

/* buttons: white on black, black on white; no shadow */
.btn { display: inline-block; background: var(--fg); color: var(--night); text-decoration: none; border: 0; font: inherit; font-weight: 650; padding: 14px 24px; border-radius: 6px; cursor: pointer; }
.paper .btn, .s .btn { background: var(--ink); color: var(--paper); }
/* A button turns to glass (glass.js; DESIGN.md sections 6 and 9): the round button at the bottom right, in white glass.
   While glass.js draws, the canvas paints both faces and on white glass the label stays dark. On black glass
   (data-glass with no value) the label is one white run blended by difference: near-black on the white face,
   near-white on the glass. */
.btn-glass { position: relative; isolation: isolate; overflow: hidden; }
.btn-glass canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; visibility: hidden; }
.btn-glass .label { position: relative; }
.btn-glass.is-live { background: transparent; }
.btn-glass.is-live canvas { visibility: visible; }
.btn-glass:not([data-glass="light"]).is-live .label { color: #fff; mix-blend-mode: difference; }
/* Without WebGL: the same two faces, crossfaded. */
@media (hover: hover) and (pointer: fine) {
  .no-webgl .btn-glass { transition: background-color .382s var(--out), color .382s var(--out), box-shadow .382s var(--out); }
  .no-webgl .btn-glass:not([data-glass="light"]):hover { background: #030304; color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
}
.text-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; cursor: pointer; }
.ctas { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: clamp(28px, 4vh, 40px); }
.copy-status { margin-top: 12px; font-size: 14px; color: var(--muted); }
.paper .copy-status { color: var(--ink-2); }

/* home: the opening says what it is, left-aligned, with the name small */
.hero { padding: calc(var(--bar-h) + clamp(56px, 11vh, 128px)) 0 clamp(72px, 12vh, 132px); }
.wordmark { width: clamp(200px, 22vw, 300px); aspect-ratio: 1613 / 171; position: relative; overflow: hidden; margin-bottom: clamp(28px, 5vh, 48px); }
.wordmark img { position: absolute; width: 119.03%; height: auto; left: -9.486%; top: -174.27%; filter: grayscale(1) contrast(1.05); }
.hero h1 { font-size: clamp(34px, 5.4vw, 76px); line-height: 1.16; font-weight: 760; letter-spacing: -.015em; max-width: 15em; }
.hero .lede { margin-top: clamp(20px, 3vh, 30px); }
/* the glass layers stand to the right of the opening and run off its right edge */
.hero { position: relative; overflow: hidden; }
.hero .art { display: none; }
@media (min-width: 900px) {
  .hero .wrap.col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); column-gap: clamp(8px, 2vw, 40px); align-items: center; }
  .hero .wrap.col > :not(.art) { grid-column: 1; }
  .hero .art { display: block; grid-column: 2; grid-row: 1 / span 5; margin-right: calc(-1 * clamp(40px, 9vw, 180px)); }
  .hero .art img { display: block; width: 100%; height: auto; }
  .hero h1 { font-size: clamp(34px, 4vw, 60px); }
}

.choose { padding: clamp(88px, 13vh, 150px) 0 12px; }
.lede-paper { color: var(--ink-2); margin: 12px 0 28px; }

/* home: start */
.start { padding: clamp(96px, 14vh, 170px) 0; }
.start .h2 { margin-bottom: 6px; }
.start .lede { margin-bottom: 28px; }
.prompt-d { margin-top: 28px; }
.prompt-d summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.prompt { white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; font: 14px/1.75 'Hanken Grotesk', 'Hiragino Sans', 'Noto Sans JP', sans-serif; color: var(--fg-2); border-left: 2px solid var(--bar); padding: 2px 0 2px 18px; margin: 10px 0 0; }

/* home: reading */
.read { padding: clamp(88px, 13vh, 150px) 0 clamp(80px, 12vh, 130px); }
.read .h3 { margin-bottom: 22px; }
.qa { border-top: 1px solid var(--rule-paper); }
.qa dt { font-weight: 700; font-size: clamp(16px, 1.5vw, 19px); padding-top: 18px; }
.qa dd { color: var(--ink-2); padding: 6px 0 18px; border-bottom: 1px solid var(--rule-paper); }
.read .how-h { margin-top: clamp(56px, 9vh, 96px); }
.read p { color: var(--ink-2); }
.read p + p { margin-top: 14px; }
.read .links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.read .h4 { margin-top: clamp(48px, 8vh, 80px); margin-bottom: 8px; }
.foot { padding: 48px 0 64px; border-top: 1px solid var(--rule-night); }
.foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 15px; color: var(--muted); }
.foot a { display: inline-block; padding: 6px 0; }

/* the video, fetched only when opened */
dialog { border: 0; border-radius: 10px; padding: 0; width: min(880px, 92vw); background: #000; color: var(--fg); }
dialog::backdrop { background: rgba(0, 0, 0, .8); }
dialog video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
dialog .close { position: absolute; right: 10px; top: 10px; z-index: 1; background: var(--fg); color: var(--night); border: 0; border-radius: 6px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }

/* other pages: partners, not found */
.page-hero { padding: calc(var(--bar-h) + 76px) 0 80px; }
.page-hero h1 { max-width: 18em; }
main.page-hero { min-height: 100vh; }
.page-s { border-top: 1px solid var(--rule-paper); padding: 72px 0; }
.split { display: grid; gap: 14px 48px; }
@media (min-width: 820px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.split p { color: var(--ink-2); margin: 0 0 14px; max-width: 40em; }
.split h2 { font-size: 22px; }
.split h2 + p { margin-top: 12px; }
.roles { list-style: none; padding: 0; border-top: 1px solid var(--rule-paper); }
.roles li { padding: 16px 0; border-bottom: 1px solid var(--rule-paper); }
.roles h3 { font-size: 17px; }
.roles p { margin: 6px 0 0; }
.checklist { padding-left: 1.2em; color: var(--ink-2); }
.checklist li { margin: 0 0 10px; }
.split-roles { display: grid; gap: 12px 32px; margin: 20px 0; }
@media (min-width: 640px) { .split-roles { grid-template-columns: 1fr 1fr; } }
.split-roles dt { font-weight: 650; }
.split-roles dd { margin: 4px 0 0; color: var(--ink-2); }
.split .terms-lead { font-weight: 650; color: var(--ink); }
.page-s .ctas { margin-top: 8px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .wordmark { -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 14%), transparent var(--p)); mask-image: linear-gradient(90deg, #000 calc(var(--p) - 14%), transparent var(--p)); --p: 0%; filter: blur(10px); animation: name 1.618s var(--out) .236s forwards; }
  @keyframes name { to { --p: 114%; filter: blur(0); } }
}
@media (max-width: 480px) {
  .hero { padding-top: calc(var(--bar-h) + 28px); }
  .wordmark { margin-bottom: 18px; }
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 16px; line-height: 1.6; }
  .ctas { margin-top: 22px; }
}

/* home: what you use AI for, as a gallery of tiles; from here down the ground is white.
   The tiles copy apple.com/jp as measured at 1440 px: square corners, 12 px white bands between them and at
   the edges, 702:580 tiles, 53 px from the top to the headline, centred text. Each tile is its photo, edge to
   edge; the headline, one line and a button sit in the empty top third the photo leaves for them. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 12px; margin: clamp(32px, 5vh, 56px) 0 0; }
/* the golden layout: each row splits 1 : 1.618, the wide tile changing sides from row to row. Three columns
   of .382 / .236 / .382 carry both rows; the row height is the one a pair of 702:580 tiles would have, which
   makes the wide tiles 3:2, the photographs' own shape. */
@media (min-width: 761px) {
  .choose .tiles { grid-template-columns: .382fr .236fr .382fr; grid-auto-rows: calc((100vw - 36px) * .4131); }
  .choose .tiles .tile { aspect-ratio: auto; }
  .choose .tiles .tile:nth-child(1) { grid-column: 1; }
  .choose .tiles .tile:nth-child(2) { grid-column: 2 / 4; }
  .choose .tiles .tile:nth-child(3) { grid-column: 1 / 3; }
  .choose .tiles .tile:nth-child(4) { grid-column: 3; }
}
.tile { position: relative; overflow: hidden; aspect-ratio: 702 / 580; padding: 53px 40px 0; text-align: center; }
.tile-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.tile-text { position: relative; display: flex; flex-direction: column; align-items: center; }
.tile-dark { background: #000; color: #f5f5f7; }
.tile-light { background: #f5f5f7; color: #1d1d1f; }
.tile h3 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; font-weight: 600; text-wrap: balance; }
.tile .sub { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.25; letter-spacing: .231px; margin-top: 8px; max-width: 24em; text-wrap: balance; }
/* the action is a line of text with a chevron, as the tiles copied once had it: a filled button sat on the
   photographs as a block of its own. It is set a size and a weight above the line it follows. */
.tile .btn, .tile .text-link { margin-top: 14px; padding: 6px 2px; background: none; color: inherit; border-radius: 0;
  font-size: clamp(19px, 1.65vw, 23px); font-weight: 700; letter-spacing: .01em; text-decoration: none; }
.tile .btn::after, .tile .text-link::after { content: "\203A"; display: inline-block; margin-left: .32em; font-weight: 600; transform: scale(1.25) translateY(-.02em); }
.tile .btn:hover, .tile .text-link:hover { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { aspect-ratio: 4 / 5; padding: 40px 20px 0; }
}
.foot.paper { border-top-color: var(--rule-paper); }
.foot.paper ul { color: var(--ink-2); }

/* from the start section down, the column sits in the middle of the page. Headings, short ledes, buttons and
   link rows are centred; the long answers and paragraphs stay left-aligned inside the centred column. */
.start .wrap.narrow, .read .wrap.narrow { margin-left: auto; margin-right: auto; }
.start .wrap.narrow { text-align: center; }
.start .lede { margin-left: auto; margin-right: auto; }
.start .prompt-panel { display: flex; flex-direction: column; align-items: center; }
.start .prompt { text-align: left; }
.read .h3, .read .h4 { text-align: center; }
.read .links { justify-content: center; }
.foot .wrap ul { justify-content: center; }
/* this photo's subject reaches higher than the others; scaled from its top edge it sits below the text */
.tile-bg-low { transform: scale(1.18); transform-origin: 50% 0; }
.tile-orange { background: #e8742a; }
/* the orange wall's frames begin a little higher than the other photographs leave room for, and this tile's
   line is short, so its link stands on the same line */
.tile .sub-inline .text-link { margin: 0 0 0 .5em; padding: 0; font-size: 1.1em; vertical-align: baseline; }

/* home: the problem, the example and the proof, on white ground and in tiles, as the gallery below them. Large type and high contrast throughout: nothing that carries meaning is grey on black. */
.story { padding: clamp(72px, 11vh, 120px) 0 12px; }
.story-head { text-align: center; }
.story-h { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; color: #1d1d1f; text-wrap: balance; }
.story-sub { max-width: 34em; margin: 16px auto 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: #424245; text-wrap: pretty; }
.story-note { text-align: center; font-size: 14px; color: #6e6e73; margin-top: 14px; }
.story .tiles { margin-top: clamp(28px, 4.5vh, 48px); }
.tile-grey { background: #f5f5f7; color: #1d1d1f; }

/* the problem: one wide tile, the four days typed, then the answer to it */
.tiles-one { grid-template-columns: minmax(0, 1fr); }
.tiles-one .tile { aspect-ratio: auto; height: auto; padding: clamp(48px, 7vh, 80px) clamp(24px, 6vw, 96px); }
.type-days { list-style: none; max-width: 860px; margin: 0 auto; text-align: left; }
.type-days li { display: grid; grid-template-columns: 6.5em 1fr; align-items: baseline; padding: 10px 0; }
.type-days .td { font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; color: #6e6e73; }
.type-days .ts { font-size: clamp(22px, 2.6vw, 36px); font-weight: 700; line-height: 1.3; color: #1d1d1f; transition: color .382s; }
.type-days li.past .ts { color: #86868b; }
.tile-big { font-size: clamp(44px, 7.4vw, 104px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; margin-top: clamp(28px, 5vh, 56px); color: #1d1d1f; }
.js-type .type-days .k { visibility: hidden; }
.js-type .type-days .k.on { visibility: visible; }
.type-caret { display: inline-block; width: 3px; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: currentColor; }
.js-type .tile-big { clip-path: inset(-10% 100% -10% 0); }
.js-type .tile-big.on { clip-path: inset(-10% 0 -10% 0); transition: clip-path .618s cubic-bezier(.146, .854, .236, 1); }

/* the example: Monday on the left, kept in memory; Thursday on the right, recalled */
.tiles-two .tile { aspect-ratio: auto; min-height: clamp(460px, 44vw, 600px); padding: clamp(40px, 5vw, 64px) clamp(24px, 3.5vw, 56px) 0; text-align: left; display: flex; flex-direction: column; }
.ex-day { font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; opacity: .72; }
.ex-say, .ex-ask { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; line-height: 1.3; margin-top: 10px; }
.ex-kept { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; }
.ex-where { font-weight: 400; opacity: .72; margin-left: .4em; }
.ex-glass { display: block; width: 92%; max-width: 520px; height: auto; margin: auto auto 0; }
.ex-rec { margin-top: 26px; padding-left: 16px; border-left: 3px solid #1d1d1f; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: #424245; }
.ex-from { display: block; font-weight: 700; color: #1d1d1f; }
.ex-ans { margin: auto 0 clamp(40px, 5vw, 64px); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.18; font-weight: 800; letter-spacing: -.01em; }

/* the proof: the bars on the wide tile, the recall time on the narrow one */
@media (min-width: 761px) { .tiles-gold { grid-template-columns: .618fr .382fr; } }
.tile-speed { aspect-ratio: auto; height: auto; text-align: left; padding: clamp(36px, 4.5vw, 56px) clamp(24px, 3.5vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.speed-k { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; }
.speed-n { font-size: clamp(72px, 9vw, 132px); line-height: 1; font-weight: 800; letter-spacing: -.03em; margin-top: 14px; }
.speed-n small { font-size: .38em; font-weight: 700; letter-spacing: 0; margin-left: .06em; }
.speed-t { margin-top: 10px; font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; }
/* "How much is that?": the same in-place guide as "What is a token?", on the dark tile and beside the figure it
   explains. The details element sits inline, so its summary follows the sentence and the body opens below it. */
.scale { display: inline; }
/* The gap sits on the sentence's end, not on the summary's start, so a summary that wraps to the next line starts flush. */
.speed-t > span { margin-right: .8em; }
.scale summary { display: inline-block; cursor: pointer; list-style: none; font-size: .72em; font-weight: 700; color: #f5f5f7; padding: 4px 2px; }
.scale summary::-webkit-details-marker { display: none; }
.scale summary::after { content: "\203A"; display: inline-block; margin-left: .3em; transform: scale(1.25) translateY(-.02em); transition: transform .236s; }
.scale[open] summary::after { transform: rotate(90deg) scale(1.25) translateX(-.04em); }
.scale summary:hover { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
.scale summary:focus-visible { outline: 3px solid #f5f5f7; outline-offset: 4px; }
.scale-body { display: block; margin-top: 12px; padding: 18px 20px; background: #1d1d1f; font-size: 15px; font-weight: 400; line-height: 1.7; }
.scale-body p + p { margin-top: 8px; }
.scale-body .scale-note { color: #c7c7cc; font-size: 13px; }
.speed-s { margin-top: 18px; font-size: 15px; line-height: 1.6; color: #c7c7cc; }
.speed-s a { color: #f5f5f7; }
.tile-bars { aspect-ratio: auto; height: auto; text-align: left; padding: clamp(36px, 4.5vw, 56px) clamp(24px, 3.5vw, 52px); }
}
.bars-cap { font-size: 15px; line-height: 1.5; color: #424245; max-width: 36em; }
.bar-row { margin-top: 26px; }
.bar-name { font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; }
.bar-acc { font-weight: 400; color: #6e6e73; margin-left: .5em; }
.bar-track { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.bar { display: block; height: 18px; width: calc(var(--w) * 78%); background: #86868b; border-radius: 2px; transform-origin: 0 50%; }
.bar-row.ours .bar { background: #1d1d1f; }
.bar-row.ours .bar-name { font-weight: 800; }
.bar-val { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; font-variant-numeric: tabular-nums; }
.js-grow .bar { transform: scaleX(0); }
.js-grow.in .bar { transform: scaleX(1); transition: transform 1s cubic-bezier(.146, .854, .236, 1); }
.bars-note { margin-top: 30px; font-size: 13px; line-height: 1.6; color: #6e6e73; }
.bars-note a { color: inherit; }

@media (max-width: 760px) {
  .tiles-two .tile { min-height: 0; }
  .ex-ans { margin-top: 28px; }
  .type-days li { grid-template-columns: 1fr; padding: 8px 0; }
}
/* the chooser's heading joins the centred heads of the sections above it */
.choose .wrap.narrow { margin-left: auto; margin-right: auto; text-align: center; }
.choose .h3 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; color: #1d1d1f; }
.choose .lede-paper { max-width: 34em; margin: 16px auto 0; font-size: clamp(17px, 1.5vw, 21px); color: #424245; }

/* "What is a token?": a line of text that opens a short guide in place. A details element, so it opens without
   JavaScript and with the keyboard; the chevron turns down while it is open. */
.guide { max-width: 40em; margin: 18px auto 0; }
.guide summary { display: inline-block; cursor: pointer; list-style: none; font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; color: #1d1d1f; padding: 6px 2px; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "\203A"; display: inline-block; margin-left: .32em; transform: scale(1.25) translateY(-.02em); transition: transform .236s; }
.guide[open] summary::after { transform: rotate(90deg) scale(1.25) translateX(-.04em); }
.guide summary:hover { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
.guide summary:focus-visible { outline: 3px solid #1d1d1f; outline-offset: 4px; }
.guide-body { margin-top: 14px; padding: 24px 28px; background: #f5f5f7; text-align: left; }
.guide-body p { font-size: 16px; line-height: 1.75; color: #1d1d1f; }
.guide-body p + p { margin-top: 10px; }

/* ---------- Ask CPersona (assist.js; DESIGN.md section 9) ----------
   A round button at the bottom right opens a small conversation on white: the visitor asks, and an AI connected to the
   real CPersona answers from the memories it found. It does not slide in; it fades, and not at all
   with a reduced-motion preference. No shadows: a thin rule separates it from the page. */
.as-open { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; padding: 0; border-radius: 50%; border: 2px solid #d2d2d7; background: #fff; color: #1d1d1f;
  display: grid; place-items: center; cursor: pointer; }
.as-open:hover { border-color: #86868b; }
.as-open.btn-glass { position: fixed; }          /* white glass under a pointer (glass.js); it stays where it is */
.as-open .label { display: grid; place-items: center; }
.as-open:focus-visible { outline: 3px solid #86868b; outline-offset: 3px; }
.as-open svg { display: block; width: 22px; height: 22px; }
.as-open .as-x, .as-on .as-open .as-mark { display: none; }
.as-on .as-open .as-x { display: block; }
.as-panel { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: 88px; z-index: 40;
  width: min(380px, 100vw - 40px); height: min(560px, 100vh - 120px); display: flex; flex-direction: column;
  background: #fff; color: #1d1d1f; border: 1px solid #d2d2d7; border-radius: 12px; overflow: hidden; }
.as-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .as-panel:not([hidden]) { animation: as-in .236s var(--out); }
  @keyframes as-in { from { opacity: 0; } }
}
.as-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px 14px 18px; border-bottom: 1px solid #e8e8ed; }
.as-head > div { flex: 1; }
.as-title { font-size: 16px; font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.as-sub { margin-top: 4px; font-size: 12px; line-height: 1.6; color: #6e6e73; }
/* The note on what is sent stands on its own line, so that it wraps as a whole and not into what is left of the first. */
.as-sub a { display: block; width: fit-content; margin-top: 2px; text-wrap: pretty; color: #424245; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.as-sub a:hover { color: #1d1d1f; }
.as-close { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; color: #6e6e73;
  display: grid; place-items: center; cursor: pointer; }
.as-close:hover { background: #f5f5f7; color: #1d1d1f; }
.as-close svg { width: 18px; height: 18px; }
.as-log { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
.as-msg { max-width: 92%; font-size: 14px; line-height: 1.7; }
.as-msg > * + * { margin-top: 8px; }
.as-cp { align-self: flex-start; }
.as-me { align-self: flex-end; background: #f5f5f7; padding: 8px 12px; border-radius: 10px; }
.as-wait { color: #86868b; }
/* The example questions, one to a line, however short they are. */
.as-ex { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.as-ex button { font: inherit; font-size: 13px; line-height: 1.5; color: #1d1d1f; background: #fff; border: 1px solid #d2d2d7; border-radius: 6px;
  padding: 6px 10px; text-align: left; cursor: pointer; }
.as-ex button:hover { border-color: #86868b; }
.as-mems { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.as-mem { background: #f5f5f7; border-radius: 10px; padding: 10px 12px; }
.as-mem-t { font-size: 14px; font-weight: 650; line-height: 1.5; }
.as-mem-q { margin-top: 2px; font-size: 13px; line-height: 1.65; color: #424245;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Why the memories are the answer, when no written answer could be had. */
.as-ai-note { font-size: 13px; color: #86868b; }
/* The written answer keeps the model's paragraphs. Under it, the memories it drew on, closed until opened, in full. */
.as-ai-text { white-space: pre-line; }
.as-src { font-size: 13px; }
.as-src summary { width: fit-content; color: #6e6e73; cursor: pointer; }
.as-src summary:hover { color: #1d1d1f; }
.as-src .as-mems { margin-top: 8px; }
.as-src .as-mem-q { display: block; -webkit-line-clamp: unset; overflow: visible; }
/* Under an answer to a visitor who needs help: the way to the documentation. */
.as-docs { font-size: 13px; }
.as-docs a { color: #1d1d1f; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
/* The sections an answer drew on, one to a line, under a quiet label. */
.as-docs-h { color: #6e6e73; }
.as-docs ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
/* Under an answer for help: the support address, for when the answer does not solve it. */
.as-mail { font-size: 13px; color: #6e6e73; overflow-wrap: anywhere; }
.as-mail a { color: #1d1d1f; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.as-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e8e8ed; }
.as-q { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: #1d1d1f; background: #fff; border: 1px solid #d2d2d7;
  border-radius: 6px; padding: 10px 12px; }
.as-q:focus { outline: none; border-color: #1d1d1f; }
.as-send { flex: none; width: 42px; padding: 0; border: 0; border-radius: 6px; background: #1d1d1f; color: #fff;
  display: grid; place-items: center; cursor: pointer; }
.as-send:focus-visible { outline: 3px solid #86868b; outline-offset: 2px; }
.as-send svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .as-panel { left: 0; right: 0; bottom: 0; width: 100%; height: min(82vh, 100vh - 60px); border-width: 1px 0 0; border-radius: 12px 12px 0 0; }
  .as-on .as-open { display: none; }
}
