/* Shared by the Our story and Credits pages: the homepage's header, switches, buttons, store badges, notes, tape and
   footer, drawn from its page.css and laid out for a plain responsive page (phone, tablet, desktop). Colours and faces come
   from tokens.css; light is loose-leaf, dark is the chalkboard, and the two change roles only, never a box. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { color: var(--ink); font-family: var(--hand); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-width: 320px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 4px; }
p { text-wrap: pretty; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.9em; letter-spacing: -0.01em; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- the ground: loose-leaf the page long (no margin rule), the chalkboard fixed behind it in dark ---------- */
body { background-color: var(--paper); background-image: url("assets/art/paper-wide-cap.webp"), url("assets/art/paper-wide-tile.webp"); background-size: var(--plate-w, 100%) auto, var(--plate-w, 100%) auto; background-repeat: no-repeat, repeat-y; background-position: 0 0, 0 var(--tile-y, 172px); }
.ground { position: fixed; inset: 0; z-index: -1; display: none; background: var(--paper) url("assets/art/chalk-wide.webp") left top / cover no-repeat; }
:root[data-theme="dark"] body { background-image: none; }
:root[data-theme="dark"] .ground { display: block; }
@media (max-width: 699px) {
  body { background-image: url("assets/art/paper-real-cap.webp"), url("assets/art/paper-real-tile.webp"); }
  .ground { background-image: url("assets/art/chalk-real.webp"); }
}
:root { --gutter: clamp(76px, 6vw, 110px); }
@media (max-width: 1099px) { :root { --gutter: 76px; } }
@media (max-width: 699px) { :root { --gutter: 26px; } }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 12px 18px; background: var(--slab) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-slab); font-family: var(--press); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.page, .top, .foot__in { width: 100%; max-width: calc(1360px + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.page { overflow-x: clip; }

/* ---------- the top bar: switches left, Feedback & ideas and Log in right ---------- */
.top { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; row-gap: 10px; min-height: 76px; padding-top: 14px; }
.toggles { display: flex; gap: 22px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--press); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pencil); white-space: nowrap; }
.toggle:first-child { gap: 22px; }
.toggle__box { width: 40px; height: 22px; overflow: visible; }
.toggle__frame { fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linecap: round; }
.toggle__dot { fill: var(--pencil); transition: transform 0.2s ease; }
.toggle[aria-checked="true"] .toggle__frame { stroke: var(--ink); }
.toggle[aria-checked="true"] .toggle__dot { fill: var(--ink); transform: translateX(18px); }
.toggle[aria-checked="true"] .toggle__word { color: var(--ink); }
.toggle__word > span { display: inline-block; min-width: 3.2ch; }
.ink-path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.slab { position: relative; display: inline-flex; align-items: center; min-height: 50px; background: var(--slab) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-slab); text-decoration: none; }
:root[data-theme="dark"] .slab, :root[data-theme="dark"] .store { background-image: url("assets/art/card-stock-dark.webp"); }
.slab-frame { position: absolute; left: 3px; top: 3px; width: calc(100% - 6px); height: calc(100% - 6px); pointer-events: none; color: var(--on-slab); opacity: 0.8; }
.slab-frame .ink-path { stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.feedback { margin-left: auto; margin-right: 14px; min-height: 48px; padding: 0 20px; transform: rotate(-1deg); box-shadow: var(--sh-card); }
.feedback span { position: relative; font-family: var(--press); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.feedback:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.feedback::after, .login::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, 44px); transform: translateY(-50%); }

/* ---------- the marker button: the token orange cut to a real marker swath, hopping on a beat ---------- */
.marker { position: relative; isolation: isolate; display: inline-flex; align-items: center; height: 76px; padding: 0 30px 0 26px; transform-origin: 50% 100%; font-family: var(--press); font-weight: 900; font-size: 24px; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; color: var(--on-marker); transform: rotate(-1deg); animation: hop 2.6s linear 1.2s infinite; }
.marker__ink { position: absolute; inset: 0; z-index: -1; background: var(--marker); -webkit-mask: url("assets/art/marker-mask.webp") center / 100% 100% no-repeat; mask: url("assets/art/marker-mask.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 3px 0 color-mix(in srgb, var(--marker) 50%, #000)); }
.marker__label { position: relative; white-space: nowrap; }
.marker:active { transform: rotate(-1deg) scale(0.96); animation: none; }
@keyframes hop {
  0%, 44%, 100% { transform: rotate(-1deg); animation-timing-function: ease-out; }
  50% { transform: rotate(1deg) scale(1.1, 0.84); animation-timing-function: cubic-bezier(0.2, 0.9, 0.4, 1); }
  58% { transform: translateY(-4px) rotate(-1deg) scale(0.94, 1.06); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.5); }
  66% { transform: rotate(-3deg) scale(1.14, 0.82); animation-timing-function: ease-out; }
  72% { transform: translateY(-2px) rotate(-1deg) scale(0.97, 1.03); animation-timing-function: ease-in; }
  78% { transform: rotate(-1deg) scale(1.05, 0.95); }
  83% { transform: rotate(1.2deg); }
  88% { transform: rotate(-2deg); }
  93% { transform: rotate(-0.6deg); }
}
.login-entry { position: relative; }
.login-entry .login { height: auto; min-height: 50px; padding: 0 24px; transform: rotate(1deg); }
.login-entry .login .marker__label { font-size: 15px; letter-spacing: 0.1em; font-weight: 800; }
.login:hover .marker__label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.login-callout { position: absolute; right: calc(50% + 64px); top: 100%; width: 168px; margin: 8px 0 0; color: var(--ink); font: 17px/1.3 var(--hand); text-align: right; pointer-events: none; }
.login-arrow { position: absolute; width: 68px; height: auto; left: 50%; margin-left: -57.8px; top: calc(100% + 6px); overflow: visible; pointer-events: none; transform-origin: 85% 0; animation: login-point 2.6s ease-in-out 1.2s infinite; }
.login-arrow path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes login-point { 0%, 55%, 100% { transform: none; } 62% { transform: translate(-3px, 4px) rotate(-4deg); } 70% { transform: none; } 78% { transform: translate(-2px, 3px) rotate(-3deg); } }

/* ---------- the stores: each mark at its true geometry inside the page's own button frame ---------- */
.stores { display: contents; }
.store { position: relative; display: flex; align-items: center; gap: 13px; height: 76px; padding: 0 22px 0 17px; background: var(--slab) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-slab); text-decoration: none; box-shadow: var(--sh-card); }
.store__frame { position: absolute; left: 4px; top: 4px; width: calc(100% - 8px); height: calc(100% - 8px); pointer-events: none; opacity: 0.8; }
.store__frame .ink-path { stroke: var(--on-slab); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.store__glyph { position: relative; flex: none; }
.store__glyph--apple { width: 31px; height: 38px; }
.store__glyph--play { width: 33px; height: 36px; }
.store__glyph--microsoft { width: 30px; height: 30px; }
.store__txt { position: relative; text-align: left; }
.store__k { display: block; font-family: var(--press); font-weight: 800; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--on-slab) 72%, transparent); white-space: nowrap; }
.store__n { display: block; margin-top: 4px; font-family: var(--display); font-size: 24px; line-height: 1.05; color: var(--on-slab); white-space: nowrap; }
.store:active { translate: 0 2px; }
/* The four ways in: four equal cells in a square, the button and the three badges the same size. */
.get { --cell: 224px; --cell-h: 60px; display: grid; grid-template-columns: repeat(2, minmax(0, var(--cell))); gap: 12px; width: max-content; max-width: 100%; }
.get .marker, .get .store { width: 100%; height: var(--cell-h); min-height: 46px; margin: 0; padding: 0 12px; justify-content: center; transform: none; }
.get .marker { font-size: 21px; }
.get--row { margin-left: auto; margin-right: auto; }
@media (max-width: 1099px) {
  .get { --cell: 196px; --cell-h: 58px; }
  .get .marker { font-size: 19px; }
  .get .store { gap: 10px; }
  .get .store__glyph--apple { width: 26px; height: 32px; }
  .get .store__glyph--play { width: 28px; height: 30px; }
  .get .store__glyph--microsoft { width: 25px; height: 25px; }
  .get .store__k { font-size: 8.5px; }
  .get .store__n { font-size: 20px; }
}
@media (max-width: 699px) {
  .get { --cell: 162px; --cell-h: 54px; gap: 10px; }
  .get .marker { font-size: 15.5px; padding: 0 8px; }
  .get .store { gap: 6px; padding-left: 8px; padding-right: 6px; }
  .get .store__glyph--apple { width: 16px; height: 20px; }
  .get .store__glyph--play { width: 17px; height: 19px; }
  .get .store__glyph--microsoft { width: 16px; height: 16px; }
  .get .store__k { display: none; }
  .get .store__n { margin-top: 0; font-size: 16px; }
  .top { min-height: 60px; padding-top: 8px; column-gap: 8px; }
  .toggles { flex-direction: column; align-items: flex-start; gap: 0; }
  .feedback { flex: 1 1 0; min-width: min-content; padding: 0 10px; margin-right: 8px; margin-left: 8px; min-height: 44px; }
  .feedback span { font-size: 11.5px; letter-spacing: 0.02em; white-space: normal; }
  .login-entry { margin-left: auto; }
  .login-callout { right: calc(50% + 44px); width: 157px; font-size: 13px; }
  .login-arrow { width: 48px; margin-left: -40.8px; }
}

/* ---------- type ---------- */
.h1, .h2 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 0.98; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; }
.h2 { font-size: 56px; }
.h3 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1.15; }
.h2 .num, .h1 .num { font-family: inherit; font-size: 1em; letter-spacing: inherit; }
.swipe { background: url("assets/art/highlighter.webp") 0 31% / 100% 190% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 6px; margin: 0 -6px; color: var(--on-card); }
.tape { position: absolute; top: 0; left: 40%; width: 96px; height: auto; aspect-ratio: 512 / 50; transform: translateY(-50%) rotate(-3deg); opacity: 0.92; pointer-events: none; z-index: 2; }

/* ---------- a torn note: paper in both themes, ink on it in both ---------- */
.note { position: relative; isolation: isolate; padding: 38px 28px 28px; color: var(--on-card); }
.note::before { content: ""; position: absolute; inset: 0; z-index: -1; border-style: solid; border-width: 34px 8px 6px 8px; border-image: url("assets/art/note-flat.webp") 90 20 12 20 fill / 34px 8px 6px 8px stretch round; filter: drop-shadow(0 1px 1px rgba(var(--sh-rgb), 0.34)) drop-shadow(0 10px 18px rgba(var(--sh-rgb), 0.3)); }
.note p { margin: 8px 0 0; font-family: var(--hand); font-size: 17.5px; line-height: 1.4; }
.note p:first-of-type { margin-top: 0; }

/* The mark, as a vinyl sticker. It never moves. */
.sticker { position: relative; width: 190px; aspect-ratio: 1.568; transform: rotate(-3deg); }
.sticker img { position: absolute; width: 118.3%; left: -9.47%; top: -50.8%; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(var(--sh-vinyl)); }

/* A cast member stands on the paper on a soft contact shadow; under the pointer, it hops. */
.stand { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; }
.stand img { height: 330px; width: auto; transform-origin: 50% 100%; filter: drop-shadow(0 6px 5px rgba(var(--sh-rgb), 0.22)); pointer-events: auto; }
.stand__shadow { width: 76%; height: 14px; margin-top: -8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--sh-rgb), 0.34), rgba(var(--sh-rgb), 0)); pointer-events: none; }
.stand img:hover { animation: hop 1.3s linear infinite; }

/* ---------- the footer: the live site's four groups, on a torn sheet of card in light ---------- */
.foot { position: relative; isolation: isolate; margin-top: 72px; padding: 96px 0 40px; }
.foot::before { content: ""; position: absolute; z-index: -1; inset: 0; border-image: url("assets/art/foot-sheet.webp") 110 0 0 0 fill / 70px 0 0 0 stretch; filter: drop-shadow(0 -1px 3px rgba(var(--sh-rgb), 0.16)); }
:root[data-theme="dark"] .foot::before { display: none; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 34px 30px; }
.foot__h { margin: 0 0 14px; font-family: var(--press); font-weight: 800; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot__col--social ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-family: var(--hand); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; transition: transform 0.18s ease; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transform: translateX(3px); }
.foot__langs, .foot__end { position: relative; margin-top: 38px; padding-top: 30px; }
.foot__langs::before, .foot__end::before { content: ""; position: absolute; left: 0; right: 0; height: 10px; top: -4px; background: var(--pencil); opacity: 0.55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6C90 3 190 8.2 330 4.4S560 2.4 700 6.6S900 3.2 998 5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6C90 3 190 8.2 330 4.4S560 2.4 700 6.6S900 3.2 998 5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
:root[data-theme="dark"] .foot__langs::before, :root[data-theme="dark"] .foot__end::before { opacity: 0.85; }
.foot__lang-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 14px; }
.foot__lang-row li { font-family: var(--hand); font-size: 16px; font-weight: 700; color: var(--ink); }
.foot__lang-row li[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.foot__end { display: flex; align-items: center; gap: 26px; }
.sticker--foot { width: 112px; margin: 0; flex: none; }
.foot__line { margin: 0; font-family: var(--hand); font-size: 16px; font-weight: 700; color: var(--ink); }
.foot__line .num { font-family: inherit; font-weight: inherit; font-size: 1em; letter-spacing: inherit; }
@media (max-width: 699px) {
  .foot { padding-top: 78px; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .foot__col--social { grid-column: 1 / -1; }
  .foot__lang-row { gap: 8px 18px; }
  .foot__end { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sticker--foot { width: 100px; }
}

/* ---------- hover: everything he can touch lifts a little ---------- */
.store, .login, .feedback, .note, .stand img { transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease; }
.get .store:hover, .get .store:focus-visible, .login:hover, .login:focus-visible, .feedback:hover, .feedback:focus-visible { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 10px 14px rgba(var(--sh-rgb), 0.22); }
.get .marker:hover, .get .marker:focus-visible { animation-duration: 1.1s; }
@keyframes lift-bob { 50% { transform: translateY(-12px) rotate(0.6deg); } }
.note:hover { transform: translateY(-6px) rotate(0deg); animation: lift-bob 1.6s ease-in-out 0.25s infinite; }

/* ---------- pop-ins as things scroll in: squash, overshoot, settle ---------- */
.js .pop { opacity: 0; translate: 0 18px; scale: 0.86; }
.js .pop.in { animation: pop-in 0.62s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d, 0s) both; }
@keyframes pop-in {
  0% { opacity: 0; translate: 0 18px; scale: 0.86 0.8; }
  55% { opacity: 1; translate: 0 -6px; scale: 1.05 0.95; }
  78% { translate: 0 1px; scale: 0.98 1.02; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .js .pop { opacity: 1; translate: none; scale: none; }
}

/* ======================================================================================================================
   Our story. Four moments on one loose-leaf page: Pisith waving at the top, why it exists on two notes, a phone you put down
   (the signature: the day finishes on it, then the three things the day was for step into view), and the rules it keeps.
   Words stand on notes and cards, never loose between the ruled lines; only the display headings and the hero line leave them.
   ====================================================================================================================== */

.page > section { position: relative; }
.note { transform: rotate(var(--tilt, 0deg)); }
.note__t { margin: 0 0 10px; font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1.15; }
.note__t--big { font-size: 32px; }
.note .tape { left: 38%; }
.note p { font-size: 19px; line-height: 1.42; }
.note p + p { margin-top: 10px; }

/* ---------- the opening ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; column-gap: 40px; padding: 30px 0 0; }
.hero__words { align-self: center; padding-bottom: 40px; }
.hero__title { font-size: 168px; line-height: 0.92; letter-spacing: 0.015em; }
.hero__title { display: block; }
.hero__line { max-width: 15em; margin: 34px 0 0; font-family: var(--hand); font-weight: 700; font-size: 34px; line-height: 1.5; }
.hero__by { margin: 22px 0 0; font-family: var(--hand); font-size: 21px; line-height: 1.4; }
.hero__him { position: relative; margin: 0; justify-self: center; width: min(100%, 520px); display: flex; flex-direction: column; align-items: center; }
.stand--him img { height: 620px; }
.nametag { position: absolute; left: -4%; bottom: 120px; z-index: 3; width: 212px; padding: 26px 18px 20px; text-align: center; color: var(--on-card); background: url("assets/art/sticky-yellow.webp") center / 100% 100% no-repeat; transform: rotate(-6deg); filter: drop-shadow(0 6px 8px rgba(var(--sh-rgb), 0.28)); }
.nametag .tape { left: 50%; margin-left: -48px; width: 96px; top: 6px; }
.nametag__n { display: block; font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1.1; }
.nametag__r { display: block; margin-top: 6px; font-family: var(--press); font-weight: 800; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-card-dim); }

/* ---------- why it exists ---------- */
.why { margin-top: 56px; }
.why__title, .rules__title { margin-bottom: 34px; }
.why__notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; align-items: start; }
.why__note { padding: 46px 40px 36px; }
.why__note--b { margin-top: 26px; }
.why__note .note__t { font-size: 29px; }
.why__note p { font-size: 21px; }

/* ---------- the signature: the phone you put down ---------- */
.put { margin-top: 110px; }
.put__head { display: flex; align-items: center; justify-content: space-between; gap: 48px; margin-bottom: 44px; }
.put__head .h2 { font-size: 72px; max-width: 8.5em; }
.put__lead { flex: none; width: 340px; margin: 0; padding: 40px 34px 52px; background: url("assets/art/sticky-yellow.webp") center / 100% 100% no-repeat; color: var(--on-card); font-family: var(--hand); font-weight: 700; font-size: 23px; line-height: 1.35; transform: rotate(2deg); filter: drop-shadow(0 8px 10px rgba(var(--sh-rgb), 0.26)); }
.put__stage { display: grid; grid-template-columns: 330px minmax(0, 1fr); column-gap: 56px; align-items: start; }
.put__phonecol { display: flex; flex-direction: column; align-items: center; gap: 30px; padding-top: 6px; }

.phone { position: relative; width: 262px; height: 500px; perspective: 1200px; }
.phone__body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotate(-3deg) rotateY(0deg); transition: transform 0.8s cubic-bezier(0.3, 1.45, 0.5, 1); }
.phone[data-down="true"] .phone__body { transform: rotate(5deg) rotateY(180deg); }
.phone__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 30px 24px 24px; color: var(--on-card); background: var(--card) url("assets/art/card-stock-light.webp") center / cover; box-shadow: var(--sh-card); }
.phone__back { transform: rotateY(180deg); padding: 0; background: var(--kraft); }
.phone__frame { position: absolute; left: 6px; top: 6px; width: calc(100% - 12px); height: calc(100% - 12px); overflow: visible; pointer-events: none; color: var(--on-card); }
.phone__back .phone__frame { color: var(--ink); opacity: 0.8; }
.phone__frame .ink-path { stroke-width: 2.6; vector-effect: non-scaling-stroke; opacity: 0.85; }
.phone__shadow { position: absolute; left: 6%; right: 6%; bottom: -26px; height: 20px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--sh-rgb), 0.34), rgba(var(--sh-rgb), 0)); transition: transform 0.6s cubic-bezier(0.3, 1.45, 0.5, 1); }
.phone[data-down="true"] .phone__shadow { transform: scaleX(1.08); }
.phone__h { margin: 4px 0 18px; font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1; }
.phone__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.phone__row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.phone__name { font-family: var(--hand); font-weight: 700; font-size: 19px; line-height: 1.15; }
.phone__min { font-family: var(--hand); font-size: 16px; color: var(--on-card-dim); white-space: nowrap; }
.tick { position: relative; display: inline-block; flex: none; width: 24px; height: 24px; border: 2.2px solid currentColor; transform: rotate(-3deg) skewX(-2deg); }
.tick svg { position: absolute; left: -3px; top: -9px; width: 32px; height: 32px; overflow: visible; }
.tick path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34; transition: stroke-dashoffset 0.28s ease-out; }
.phone__row.done .tick path { stroke-dashoffset: 0; }
.js .phone__row:not(.done) .phone__name { color: var(--on-card); }
.phone__done { position: absolute; left: 24px; right: 24px; bottom: 26px; margin: 0; font-family: var(--hand); font-weight: 700; font-size: 18px; line-height: 1.3; opacity: 0; transition: opacity 0.3s ease; }
.phone.is-done .phone__done { opacity: 1; }
.phone__cam { position: absolute; left: 22px; top: 22px; width: 64px; height: 64px; color: var(--ink); opacity: 0.8; overflow: visible; }
.phone__cam .ink-path { stroke-width: 2.4; }
.sticker--case { position: absolute; left: 50%; top: 50%; width: 176px; margin: 0; transform: translate(-50%, -50%) rotate(-8deg); }
.put__btn { padding: 0 28px; min-height: 56px; font-family: var(--press); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: var(--sh-card); transform: rotate(-1deg); }
.put__btn:hover, .put__btn:focus-visible { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 10px 14px rgba(var(--sh-rgb), 0.22); }
.put__btn span { position: relative; }

.put__scenes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: end; }
.scene { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.scene .stand img { height: 450px; }
.cap { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 120px; width: 100%; padding: 12px 14px 16px; text-align: center; color: var(--on-card); border: 11px solid transparent; border-image: url("assets/art/frame-postcard.webp") 80 80 92 80 / 11px 11px 13px 11px stretch; background: var(--card) url("assets/art/card-stock-light.webp") center / cover padding-box; box-shadow: var(--sh-card); transform: rotate(var(--tilt, -1deg)); }
.scene:nth-child(2) .cap { --tilt: 1deg; }
.scene:nth-child(3) .cap { --tilt: -0.5deg; }
.cap__who { display: block; font-family: var(--press); font-weight: 800; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-card-dim); }
.cap__t { margin: 6px 0 0; font-family: var(--hand); font-weight: 700; font-size: 23px; line-height: 1.3; }
/* The highlighter lands on each ability when the phone goes down. */
.js .cap__t .swipe { background-size: 0% 190%; transition: background-size 0.55s ease-out; transition-delay: calc(var(--k, 0) * 0.14s + 0.5s); }
.js .put[data-down="true"] .cap__t .swipe { background-size: 100% 190%; }
.scene:nth-child(2) { --k: 1; } .scene:nth-child(3) { --k: 2; }
.put[data-down="true"] .scene .stand img { animation: cheer 0.9s cubic-bezier(0.3, 1.3, 0.5, 1) calc(var(--k, 0) * 0.14s + 0.45s) 1 both; }
.put[data-down="true"] .scene .stand img:hover { animation: hop 1.3s linear infinite; }
@keyframes cheer { 0% { transform: none; } 22% { transform: scale(1.06, 0.93); } 50% { transform: translateY(-22px) scale(0.96, 1.05); } 72% { transform: scale(1.04, 0.96); } 100% { transform: none; } }

/* ---------- the rules it keeps ---------- */
.rules { margin-top: 120px; }
.rules__notes { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.rules__note { padding: 46px 40px 38px; }
.rules__note:nth-child(2) { margin-top: 44px; }
.rules__note .note__t { font-size: 29px; }
.rules__note p { font-size: 21px; }
.rules__note .rules__not { margin-top: 20px; font-family: var(--press); font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-card-dim); }
.strikes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.strike { position: relative; display: inline-block; padding: 2px 4px; font-family: var(--hand); font-weight: 700; font-size: 31px; line-height: 1.2; color: var(--on-card); }
.strike::after { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 12px; margin-top: -6px; background: var(--on-card); clip-path: inset(0 100% 0 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 12' preserveAspectRatio='none'%3E%3Cpath d='M3 7C70 3 140 9 210 5S340 8 397 4' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 12' preserveAspectRatio='none'%3E%3Cpath d='M3 7C70 3 140 9 210 5S340 8 397 4' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; transition: clip-path 0.5s ease-out; transition-delay: calc(var(--s, 0) * 0.35s + 0.5s); }
.strikes li:nth-child(2) .strike::after { --s: 1; }
.strikes li:nth-child(3) .strike::after { --s: 2; }
.rules__note.in .strike::after, .rules__note:not(.pop) .strike::after { clip-path: inset(0); }

/* ---------- say hello, then the four ways in ---------- */
.hello { margin-top: 120px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hello__note { padding: 48px 38px 36px; }
.hello__note p { font-size: 22px; }
.mail { display: inline-block; min-height: 44px; line-height: 44px; font-family: var(--hand); font-weight: 700; color: var(--on-card); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hello__sig { display: grid; justify-items: center; gap: 12px; text-align: center; }
.hello__t { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 40px; line-height: 1.5; }
.hello__for { margin: 0 0 14px; font-family: var(--hand); font-weight: 700; font-size: 23px; }

/* ---------- tablets ---------- */
@media (max-width: 1099px) {
  .hero__title { font-size: 112px; }
  .hero__line { font-size: 26px; }
  .stand--him img { height: 500px; }
  .nametag { left: 0; bottom: 96px; width: 170px; }
  .why__note { padding: 42px 28px 30px; }
  .put { margin-top: 90px; }
  .put__head .h2 { font-size: 60px; }
  .put__lead { width: 290px; font-size: 21px; }
  .put__stage { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .scene .stand img { height: 360px; }
  .cap__t { font-size: 20px; }
  .rules__notes { gap: 32px; }
  .rules__note { padding: 42px 28px 30px; }
  .strike { font-size: 26px; }
  .hello { gap: 32px; }
  .hello__t { font-size: 32px; }
}

@media (max-width: 899px) {
  .hero__title { font-size: 96px; }
  .why__notes, .rules__notes { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .why__note--b, .rules__note:nth-child(2) { margin-top: 0; }
  .hello { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hello__note { max-width: 520px; }
}

/* ---------- phones (402 wide) ---------- */
@media (max-width: 699px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .hero__words { padding-bottom: 0; }
  .hero__title { font-size: 92px; }
  .hero__line { margin-top: 22px; font-size: 25px; }
  .hero__by { font-size: 19px; }
  .hero__him { margin-top: 22px; }
  .stand--him img { height: 430px; }
  .nametag { left: 0; bottom: 70px; width: 150px; padding: 22px 12px 16px; }
  .nametag__n { font-size: 20px; }
  .why { margin-top: 44px; }
  .why__notes { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .why__note--b { margin-top: 0; }
  .why__note { padding: 40px 22px 28px; }
  .why__note p, .rules__note p, .hello__note p { font-size: 18px; }
  .put { margin-top: 80px; }
  .put__head { flex-direction: column; align-items: flex-start; gap: 26px; }
  .put__head .h2 { font-size: 50px; }
  .put__lead { width: 100%; max-width: 340px; font-size: 21px; padding: 36px 26px 46px; }
  .phone { width: 238px; height: 456px; }
  .phone__cam { position: absolute; left: 22px; top: 22px; width: 64px; height: 64px; color: var(--ink); opacity: 0.8; overflow: visible; }
.phone__cam .ink-path { stroke-width: 2.4; }
.sticker--case { width: 166px; }
  .put__stage { row-gap: 46px; }
  .put__scenes { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .scene { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; column-gap: 16px; }
  .scene .stand img { height: 240px; }
  .rules { margin-top: 90px; }
  .rules__notes { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .rules__note { padding: 40px 22px 28px; }
  .rules__note:nth-child(2) { margin-top: 0; }
  .strike { font-size: 23px; }
  .top { margin-bottom: 40px; }
  .hello { margin-top: 90px; grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hello__note { padding: 40px 24px 28px; }
  .hello__t { font-size: 26px; }
  .hello__for { font-size: 19px; }
}
