@font-face { font-family: "Fredoka"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Fredoka-Regular.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Fredoka-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("/assets/fonts/SpaceGrotesk-Regular.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/assets/fonts/SpaceGrotesk-Medium.woff2") format("woff2"); }
@font-face { font-family: "Fredoka Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 104%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 103%; ascent-override: 94%; descent-override: 26%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s-6); }
body { margin: 0; background: var(--cream); color: var(--ink); caret-color: var(--ink); font-family: var(--text); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; position: relative; isolation: isolate; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); background-size: 200px 200px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--butter); color: var(--ink); }
:focus-visible { outline: 2px solid var(--butter); outline-offset: 2px; box-shadow: 0 0 0 1px var(--ink); }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 20; background: var(--ink); color: var(--cream); padding: var(--s-3) var(--s-4); border-radius: var(--r-1); }
.skip:focus { top: var(--s-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-main { flex: 1; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); width: 100%; }
.centre { text-align: center; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-display); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-display); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); line-height: 1.45; }
p + p { margin-top: 1em; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--ochre); }

.chip, .tag { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--pill); padding: 0 var(--s-4); border-radius: 999px; background: var(--white); border: 1px solid var(--border); font-size: var(--fs-ui); font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
a.chip:hover { border-color: var(--ochre); color: var(--ochre); }
.chip-ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
a.chip-ink:hover { background: var(--butter); color: var(--ink); border-color: var(--butter); }
.tag { height: var(--tag); padding: 0 var(--s-3); font-size: var(--fs-small); background: transparent; border-color: var(--ink); }
.tag-butter { background: var(--butter); border-color: var(--butter); }
.chip-butter { background: var(--butter); border-color: var(--butter); }
a.chip-butter:hover { background: var(--butter-hover); border-color: var(--butter-hover); color: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; height: var(--control); padding: 0 var(--s-5); border-radius: 999px; font-family: var(--text); font-size: var(--fs-ui); font-weight: 500; line-height: 1; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.button-primary { background: var(--butter); color: var(--ink); border-color: var(--butter); }
.button-primary:hover { background: var(--butter-hover); border-color: var(--butter-hover); color: var(--ink); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: var(--cream); }
.button-on-dark { color: var(--cream); border-color: var(--cream); }
.button-on-dark:hover { background: var(--cream); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.actions-centre { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: fit-content; margin: var(--s-7) auto 0; }
@media (max-width: 600px) { .actions-centre { grid-auto-flow: row; } }

.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: var(--gutter); padding: var(--s-5) var(--margin) 0; max-width: var(--max); margin-inline: auto; width: 100%; view-transition-name: top; }
.menu ul { display: inline-flex; gap: var(--s-1); padding: var(--s-1); background: var(--ink); border-radius: 999px; }
.menu a { display: inline-flex; align-items: center; height: var(--menu); padding: 0 var(--s-5); border-radius: 999px; color: var(--cream); font-family: var(--display); font-weight: 600; font-size: var(--fs-lead); line-height: 1; text-decoration: none; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.menu a:hover { background: var(--butter); color: var(--ink); }
.menu a[aria-current="page"] { background: var(--butter); color: var(--ink); }
.brand { display: block; text-decoration: none; padding-top: var(--s-1); }
.brand svg { height: 40px; width: auto; }
.chips { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 900px) {
  .top { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: var(--s-6); padding-top: var(--s-5); }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; padding-top: 0; }
  .chips { grid-column: 2; grid-row: 1; }
  .menu { grid-column: 1 / -1; grid-row: 2; }
  .menu ul { display: flex; }
  .menu li { flex: 1; }
  .menu a { justify-content: center; width: 100%; padding: 0 var(--s-3); }
  .brand svg { height: 36px; }
  .chip-version { display: none; }
}

.hero { position: relative; padding-top: var(--s-7); }
.intro { padding-top: var(--s-5); }
.intro h1 { font-size: var(--fs-display); letter-spacing: -0.02em; max-width: 14ch; }
.intro .lead { margin-top: var(--s-5); max-width: 40ch; }
.intro .actions { margin-top: var(--s-6); }
.feature { margin-top: var(--section); }
.tagrow { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.tagrow-left { justify-content: flex-start; margin-top: var(--s-5); }
.page-head { max-width: 880px; margin-inline: auto; }
.page-head .lead { margin-top: var(--s-5); max-width: 60ch; }
.page-head-wide { max-width: var(--max); }
.hero-grid { position: relative; margin-top: var(--s-6); padding-inline: var(--margin); }
.stage-wrap { position: relative; max-width: var(--stage-max); margin-inline: auto; }
.stage { position: relative; background: var(--butter); border-radius: var(--r-3); overflow: hidden; aspect-ratio: 16 / 9; }
.track { display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -4px; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; padding: var(--s-6) var(--s-7) 104px; }
.slide img { width: 100%; max-width: 680px; height: auto; border-radius: var(--r-2); box-shadow: var(--shadow); }
.slide-phones { gap: var(--s-5); align-items: center; }
.slide-phones img { width: auto; max-width: none; height: 100%; max-height: 100%; }
.slide .zoom { display: block; width: 100%; max-width: 680px; height: auto; border-radius: var(--r-2); }
.slide-phones .zoom { width: auto; max-width: none; height: 100%; display: flex; }
.stage-bar { position: absolute; left: 50%; bottom: var(--s-5); transform: translateX(-50%); display: flex; align-items: center; gap: var(--s-3); height: 56px; padding: 0 var(--s-2) 0 var(--s-5); max-width: calc(100% - var(--s-8)); background: var(--white); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); }
.stage-name { font-family: var(--display); font-weight: 600; font-size: var(--fs-h2); white-space: nowrap; }
.stage-caption { font-size: var(--fs-small); font-weight: 500; color: var(--ochre); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 30ch; }
.pips { display: flex; align-items: center; }
.pip { display: grid; place-items: center; width: 20px; height: 32px; }
.pip::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: width var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.pip:hover::before { background: var(--ochre); }
.pip[aria-current="true"] { width: 32px; }
.pip[aria-current="true"]::before { width: 22px; background: var(--ink); }
.arrow { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 0; background: var(--butter); color: var(--ink); cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: var(--ink); color: var(--butter); }
.no-js .arrow { display: none; }
.sticker { position: absolute; left: calc(-1 * var(--s-6)); top: calc(-1 * var(--s-6)); width: 180px; pointer-events: none; }
@media (max-width: 768px) {
  .hero { padding-top: var(--s-5); }
  .tagrow { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-inline: var(--margin); scroll-padding-inline: var(--margin); }
  .tagrow::-webkit-scrollbar { display: none; }
  .tagrow-left { padding-inline: 0; flex-wrap: wrap; overflow: visible; }
  .hero-grid { margin-top: var(--s-5); }
  .stage { aspect-ratio: auto; }
  .track { height: auto; }
  .slide { padding: var(--s-8) var(--s-4) 84px; }
  .slide img { border-radius: var(--r-1); }
  .slide-phones { gap: var(--s-4); }
  .slide-phones img { height: 300px; width: auto; max-height: none; }
  .slide:not(.slide-phones) img { aspect-ratio: 8 / 5; }
  .stage-bar { left: var(--s-3); right: var(--s-3); transform: none; max-width: none; justify-content: space-between; gap: var(--s-1); height: 52px; padding: 0 var(--s-2); }
  .stage-bar .chip { padding: 0 var(--s-3); flex: none; }
  .stage-caption { display: none; }
  .stage-name { font-size: var(--fs-lead); }
  .pip { width: 12px; }
  .pip::before { width: 6px; height: 6px; }
  .pip[aria-current="true"] { width: 22px; }
  .pip[aria-current="true"]::before { width: 16px; }
  .arrow { width: 36px; height: 36px; }
  .sticker { width: 104px; left: calc(-1 * var(--s-3)); top: calc(-1 * var(--s-5)); }
}

.band { padding: var(--section) var(--margin); margin-top: var(--section); }
.band-first { margin-top: var(--s-8); }
.band-butter { background: var(--butter); color: var(--ink); }
.band-night { background: var(--night); color: var(--cream); }
.band-inner { max-width: 1120px; margin-inline: auto; }
.band h1, .band h2 { text-align: center; }
.band-copy { max-width: 760px; margin: var(--s-7) auto 0; font-size: var(--fs-lead); line-height: 1.45; }
.band-night a { color: var(--cream); text-decoration-color: var(--butter); }
.band-night a:not(.button):hover { color: var(--butter); }
.band-night .button-primary, .band-night .button-primary:hover { color: var(--ink); }

.tiles-section { margin-top: var(--section); }
.tiles-section h2 { margin-bottom: var(--s-7); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.tile { display: grid; grid-template-rows: 1fr auto; gap: var(--s-4); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-3); padding: var(--s-5); transition: border-color var(--t-fast) var(--ease); }
.tile:hover { border-color: var(--ochre); }
.tile-media { border-radius: var(--r-2); overflow: hidden; background: var(--cream); aspect-ratio: 16 / 10; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile-big { grid-column: span 2; }
.tile-phone .tile-media { background: var(--butter); display: flex; align-items: center; justify-content: center; }
.tile-phone .tile-media img { width: auto; height: 100%; max-height: 100%; object-fit: contain; padding: var(--s-4) 0; }
.tile figcaption { font-size: var(--fs-ui); line-height: 1.45; }
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .tile-big { grid-column: auto; }
}

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-7); }
.tier { background: var(--ink); border: 1px solid var(--border-dark); border-radius: var(--r-2); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.tier .price { color: var(--butter); font-weight: 500; font-size: var(--fs-lead); }
.tier p + p { margin-top: 0; }
@media (max-width: 768px) { .tiers { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .stage-name { display: none; } }
@media (max-width: 379px) { .pips { display: none; } }

.features { margin-top: var(--section); }
.features h2 { margin-bottom: var(--s-7); }
.feature-list { max-width: 880px; margin-inline: auto; border-top: 1px solid var(--border); }
.feature-list li { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-lead); line-height: 1.45; }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s-6); margin-top: var(--s-7); }
.pick, .next-card { display: grid; gap: var(--s-4); padding: var(--s-4); background: var(--white); border: 1px solid var(--ink); border-radius: var(--r-3); text-decoration: none; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.pick:hover, .next-card:hover { color: var(--ink); border-color: var(--ochre); }
.pick-media, .next-media { position: relative; display: block; border-radius: var(--r-2); overflow: hidden; aspect-ratio: 16 / 10; background: var(--cream); }
.pick-media img, .next-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pick-body { display: grid; gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-1); }
.pick-name { font-family: var(--display); font-weight: 600; font-size: var(--fs-h1); line-height: var(--lh-tight); }
.pick-place { font-size: var(--fs-small); font-weight: 500; color: var(--ochre); }
.pick-blurb { font-size: var(--fs-lead); font-weight: 500; margin-top: var(--s-2); }
.pick-line { font-size: var(--fs-ui); line-height: 1.5; }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-4); }
.pick-foot .tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pick-go { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--butter); color: var(--ink); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.pick-go svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pick:hover .pick-go, .next-card:hover .pick-go { background: var(--ink); color: var(--butter); }
.crumb { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-5); font-size: var(--fs-ui); font-weight: 500; text-decoration: none; }
.crumb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.showcase-head .actions { margin-top: var(--s-6); }
.showcase-lead { margin-top: var(--s-7); }
.showcase-shot { position: relative; isolation: isolate; max-width: var(--stage-max); margin-inline: auto; padding: var(--s-7); background: var(--butter); border-radius: var(--r-3); }
.showcase-shot img { border-radius: var(--r-2); box-shadow: var(--shadow); }
.next { margin-top: var(--section); }
.section-title { font-size: var(--fs-h1); margin-bottom: var(--s-5); }
.next-card { grid-template-columns: minmax(0, 280px) 1fr auto; align-items: center; gap: var(--s-6); }
.next-body { display: grid; gap: var(--s-2); }
.next-body .pick-blurb { margin-top: 0; }
.feature-list-band { margin-top: var(--s-7); border-color: rgba(30, 26, 20, 0.25); }
.feature-list-band li { border-color: rgba(30, 26, 20, 0.25); padding-left: var(--s-6); position: relative; }
.feature-list-band li::before { content: ""; position: absolute; left: 0; top: calc(var(--s-4) + 0.5em); width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.button-ink { background: var(--ink); color: var(--butter); border-color: var(--ink); }
.button-ink:hover { background: var(--cream); color: var(--ink); }
.h3 { font-size: var(--fs-h2); }
@media (max-width: 768px) {
  .showcase-shot { padding: var(--s-4); }
  .next-card { grid-template-columns: 1fr; }
  .next-card .pick-go { justify-self: end; }
  }
.case { margin-top: var(--section); scroll-margin-top: var(--s-6); }
.case .tiles { margin-top: var(--s-7); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case .tile { padding: var(--s-4); gap: var(--s-3); }
.case .tile figcaption { font-size: var(--fs-small); }
.case-logo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; }
.case-logo-art { display: grid; gap: var(--gutter); }
.case-logo .tile-media { aspect-ratio: auto; padding: var(--s-6); background: var(--cream); display: grid; place-items: center; }
.case-logo .tile-media img { max-height: 220px; width: auto; max-width: 100%; }
.case-logo .tile-media img { height: auto; object-fit: contain; }
.case-photos .tile-media { padding: 0; aspect-ratio: 16 / 10; display: block; }
.case-photos .tile-media img { max-height: none; width: 100%; height: 100%; object-fit: cover; }
.case-logo-copy { font-size: var(--fs-lead); line-height: 1.45; }
.case-logo-copy h2, .case-logo-copy h3 { margin-bottom: var(--s-4); }
@media (max-width: 1100px) { .case .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .case .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-logo { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .case .tiles { grid-template-columns: 1fr; } }
.case-sub { margin-top: var(--section); margin-bottom: var(--s-6); }
.endorse { margin-top: var(--section); }
.endorse svg { height: 48px; width: auto; margin-inline: auto; }

.works { margin-top: var(--section); }
.rows { display: grid; gap: var(--s-3); }
.row { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: var(--gutter); padding: var(--s-5); background: var(--white); border: 1px solid var(--ink); border-radius: var(--r-2); text-decoration: none; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.row { transition: background-color var(--t-fast) var(--ease); }
.row:hover { background: var(--butter); color: var(--ink); }
.row-year { font-size: var(--fs-small); font-weight: 500; color: var(--ochre); }
.row:hover .row-year { color: var(--ink); }
.row-main { display: grid; gap: var(--s-1); }
.row-name { font-family: var(--display); font-weight: 600; font-size: var(--fs-h2); line-height: var(--lh-tight); }
.row-desc { font-size: var(--fs-ui); color: var(--ink); }
.row .tags { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; }
@media (max-width: 768px) {
  .row { grid-template-columns: 1fr; gap: var(--s-3); }
  .row .tags { justify-content: flex-start; }
}

.consent { position: fixed; left: var(--margin); bottom: var(--margin); z-index: 50; width: min(100% - 2 * var(--margin), 400px); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-2); box-shadow: var(--shadow); padding: var(--s-5); display: grid; gap: var(--s-4); font-size: var(--fs-ui); line-height: 1.45; animation: welcome-pop var(--t-move) var(--ease) both; }
.consent[hidden] { display: none; }
.consent-mark { width: 48px; height: auto; }
.consent p { margin: 0; }
.prose { max-width: 66ch; }
.prose h2 { font-size: var(--fs-h2); margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose .lead { margin-bottom: var(--s-6); }

.site-footer { background: var(--night); color: var(--cream); margin-top: var(--section); padding-block: var(--s-7); }
.footer-cards { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); align-items: center; }
.fcard { display: flex; align-items: center; gap: var(--s-5); font-size: var(--fs-ui); font-weight: 500; }
.fcard-mark svg { height: 32px; width: auto; }
.fcard a { color: var(--cream); text-decoration: none; }
.fcard a:hover { color: var(--butter); }
.fcard-meta { margin-left: auto; color: var(--cream); }
@media (max-width: 768px) { .fcard { flex-wrap: wrap; gap: var(--s-3) var(--s-5); } .fcard-meta { margin-left: 0; } }

.welcome { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--butter); animation: welcome-out var(--t-move) var(--ease) var(--t-hold) forwards; }
.seen .welcome, .no-js .welcome { display: none; }
.welcome-inner { position: relative; display: grid; justify-items: center; gap: var(--s-6); }
.welcome-mark { width: min(60vw, 340px); clip-path: inset(0 100% 0 0); animation: welcome-draw var(--t-draw) var(--ease) var(--t-fast) forwards; }
.welcome-hello { position: absolute; left: var(--s-2); top: calc(-1 * var(--s-6)); rotate: -12deg; font-family: var(--display); font-weight: 600; font-size: var(--fs-h1); line-height: 1; opacity: 0; transform-origin: 20% 100%; animation: welcome-hello var(--t-hello) var(--ease) calc(var(--t-fast) + var(--t-draw)) forwards; }
.welcome-word { display: block; width: min(52vw, 240px); opacity: 0; animation: welcome-pop var(--t-move) var(--ease) calc(var(--t-draw) - var(--t-fast)) forwards; }
.welcome-word svg { width: 100%; height: auto; }
@keyframes welcome-draw { to { clip-path: inset(0 0 0 0); } }
@keyframes welcome-pop { from { opacity: 0; transform: translateY(var(--s-2)); } to { opacity: 1; transform: none; } }
@keyframes welcome-hello { 0% { opacity: 0; transform: translateY(var(--s-4)) scale(0.7); } 55% { opacity: 1; transform: translateY(calc(-1 * var(--s-1))) scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes welcome-out { to { transform: translateY(-100%); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .welcome { display: none; } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--t-page); animation-timing-function: var(--ease); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
    .reveal-group > :nth-child(1) { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
    .reveal-group > :nth-child(2) { animation: rise linear both; animation-timeline: view(); animation-range: entry 6% entry 36%; }
    .reveal-group > :nth-child(3) { animation: rise linear both; animation-timeline: view(); animation-range: entry 12% entry 42%; }
    .reveal-group > :nth-child(4) { animation: rise linear both; animation-timeline: view(); animation-range: entry 18% entry 48%; }
    @keyframes rise { from { opacity: 0; transform: translateY(var(--rise)); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

.sprite { display: none; }

.zoom { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; border-radius: inherit; }
.zoom img { pointer-events: none; }
.lightbox { max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; padding: var(--s-7) var(--margin) var(--s-6); border: 0; background: transparent; color: var(--ink); display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(250, 245, 234, 0.55); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.lightbox-stage { position: relative; width: min(100%, var(--max)); height: min(calc(100dvh - var(--s-7) - var(--s-6)), 900px); display: grid; grid-template-rows: 1fr; background: var(--butter); border: 1px solid var(--border); border-radius: var(--r-3); box-shadow: var(--shadow); padding: var(--s-7) var(--s-7) calc(56px + var(--s-6) * 2); }
.lightbox-panel { position: relative; margin: 0; min-height: 0; overflow: hidden; touch-action: pan-y; user-select: none; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-2); }
.lightbox-panel img { position: absolute; inset: var(--s-3); width: calc(100% - var(--s-3) * 2); height: calc(100% - var(--s-3) * 2); max-width: none; object-fit: contain; }
.lightbox .stage-bar { left: var(--s-7); right: var(--s-7); bottom: var(--s-6); transform: none; max-width: none; justify-content: flex-start; padding-right: var(--s-2); }
.lightbox [data-close] { gap: var(--s-1); padding-right: var(--s-3); }
.lightbox [data-close] svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: rotate var(--t-fast) var(--ease); }
.lightbox [data-close]:hover, .lightbox [data-close]:focus-visible { background: var(--butter); color: var(--ink); border-color: var(--butter); }
.lightbox [data-close]:hover svg, .lightbox [data-close]:focus-visible svg { rotate: 90deg; }
.lightbox .stage-caption { flex: 1; min-width: 0; max-width: none; }
.lightbox .pip { appearance: none; padding: 0; border: 0; background: none; cursor: pointer; }
.lightbox .sticker { width: 132px; left: calc(-1 * var(--s-5)); top: calc(-1 * var(--s-6)); }
.lightbox .sticker svg { width: 100%; height: auto; }
.lightbox-word { position: absolute; left: 0; bottom: 72%; rotate: -12deg; font-family: var(--display); font-weight: 600; font-size: var(--fs-h3); line-height: 1; white-space: nowrap; opacity: 0; transform-origin: 20% 100%; }
.lightbox-word.is-said { animation: lightbox-say 1.6s var(--ease) both; }
.lightbox[open]::backdrop { animation: lightbox-fade var(--t-page) var(--ease); }
.lightbox[open] .lightbox-stage { animation: lightbox-stage var(--t-move) var(--ease) both; }
.lightbox[open] .lightbox-panel, .lightbox[open] .stage-bar { animation: lightbox-rise var(--t-move) var(--ease) 120ms both; }
.lightbox[open] .sticker { animation: lightbox-bug var(--t-move) cubic-bezier(0.34, 1.56, 0.64, 1) 220ms both; }
@keyframes lightbox-fade { from { opacity: 0; } }
@keyframes lightbox-stage { from { opacity: 0; translate: 0 32px; scale: 0.96; } }
@keyframes lightbox-rise { from { opacity: 0; translate: 0 14px; } }
@keyframes lightbox-bug { from { opacity: 0; translate: 44px 40px; scale: 0.5; rotate: -16deg; } }
@keyframes lightbox-say { 0% { opacity: 0; transform: translateY(var(--s-3)) scale(0.7); } 22% { opacity: 1; transform: translateY(calc(-1 * var(--s-1))) scale(1.08); } 36% { transform: none; } 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 768px) {
  .lightbox { padding: 44px var(--s-5) var(--s-4); }
  .lightbox-stage { height: calc(100dvh - 44px - var(--s-4)); padding: var(--s-4) var(--s-4) calc(52px + var(--s-4) * 2); }
  .lightbox .stage-bar { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); }
  .lightbox .sticker { width: 88px; left: calc(-1 * var(--s-4)); top: calc(-1 * var(--s-6)); }
  .lightbox-word { font-size: var(--fs-ui); }
  .lightbox .pips, .lightbox .stage-name { display: none; }
  .lightbox .stage-bar { height: 52px; }
  .lightbox .stage-caption { display: block; text-align: left; padding-left: var(--s-2); }
}
@media (max-height: 500px) {
  .lightbox { padding: var(--s-3); }
  .lightbox-stage { height: calc(100dvh - var(--s-3) * 2); padding: var(--s-3) var(--s-3) calc(44px + var(--s-3) * 2); }
  .lightbox .stage-bar { left: var(--s-3); right: var(--s-3); bottom: var(--s-3); height: 44px; }
  .lightbox .arrow { width: 34px; height: 34px; }
  .lightbox .sticker { width: 64px; left: calc(-1 * var(--s-3)); top: calc(-1 * var(--s-4)); }
  .lightbox .pips, .lightbox .stage-name { display: none; }
  .lightbox .stage-caption { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox[open]::backdrop, .lightbox[open] .lightbox-stage, .lightbox[open] .lightbox-panel, .lightbox[open] .stage-bar, .lightbox[open] .sticker { animation: none; }
  .lightbox-word.is-said { animation: lightbox-say-still 1.6s linear both; }
  @keyframes lightbox-say-still { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
}

.totop { position: fixed; right: max(var(--s-5), env(safe-area-inset-right)); bottom: max(var(--s-5), env(safe-area-inset-bottom)); z-index: 90; display: grid; place-items: center; width: var(--control); height: var(--control); padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--butter); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); opacity: 0; translate: 0 var(--s-4); visibility: hidden; transition: opacity var(--t-fast) var(--ease), translate var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), visibility 0s linear var(--t-fast); }
.totop.is-shown { opacity: 1; translate: 0 0; visibility: visible; transition-delay: 0s; }
.consent:not([hidden]) ~ .totop { opacity: 0; translate: 0 var(--s-4); visibility: hidden; pointer-events: none; }
.totop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: translate var(--t-fast) var(--ease); }
.totop:hover, .totop:focus-visible { background: var(--ink); color: var(--butter); border-color: var(--ink); }
.totop:hover svg, .totop:focus-visible svg { translate: 0 -3px; }
.totop:active svg { translate: 0 -6px; }
@media (max-width: 768px) { .totop { right: max(var(--s-4), env(safe-area-inset-right)); bottom: max(var(--s-4), env(safe-area-inset-bottom)); } }
@media print { .totop { display: none; } }

.bugs { position: fixed; inset: 0; z-index: 200; overflow: hidden; pointer-events: none; }
.bugs svg { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
