:root {
  color-scheme: light;
  --bg: oklch(0.97 0.012 30);
  --bg-warm: oklch(0.94 0.022 28);
  --ink: oklch(0.16 0.02 25);
  --ink-soft: oklch(0.42 0.03 25);
  --ink-line: oklch(0.16 0.02 25 / 0.14);
  --paper: oklch(0.99 0.005 80);
  --pink: oklch(0.84 0.09 12);
  --pink-deep: oklch(0.66 0.18 14);
  --red: oklch(0.55 0.22 27);
  --red-deep: oklch(0.42 0.21 27);
  --ferrari: oklch(0.5 0.22 27);
  --dark: oklch(0.18 0.02 25);
  --shadow-sm: 0 1px 0 oklch(0.16 0.02 25 / 0.04);
  --shadow-md: 0 18px 40px oklch(0.16 0.05 22 / 0.12);
  --shadow-lg: 0 40px 80px oklch(0.16 0.05 22 / 0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 600px at 110% -20%, oklch(0.84 0.12 18 / 0.32), transparent 60%),
    radial-gradient(800px 700px at -10% 110%, oklch(0.88 0.08 14 / 0.28), transparent 60%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--red);
  color: oklch(0.98 0.01 75);
}

/* ---------- atmospherics ---------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  /* no mix-blend-mode: multiply of this ~9%-alpha near-black noise differs from
     plain alpha by <1% per channel, but forced a full-viewport re-blend on scroll */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -40px;
  width: 14px;
  height: 14px;
  background:
    radial-gradient(circle at 35% 30%, oklch(0.97 0.04 12), oklch(0.78 0.12 8) 70%);
  border-radius: 100% 0 100% 0;
  opacity: 0.78;
  filter: drop-shadow(0 4px 8px oklch(0.32 0.18 14 / 0.18));
  will-change: transform;
  animation: petal-fall var(--dur, 14s) linear var(--delay, 0s) infinite;
  transform: translate3d(var(--x, 0), 0, 0) rotate(0deg);
}

@keyframes petal-fall {
  from {
    transform: translate3d(var(--x), -10vh, 0) rotate(0deg);
  }
  to {
    transform: translate3d(calc(var(--x) + 80px), 110vh, 0) rotate(540deg);
  }
}

/* ---------- shell ---------- */

.nav,
main {
  position: relative;
  z-index: 3;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1240px, 100% - 40px);
  margin: 22px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: oklch(0.99 0.005 80 / 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.92rem;
}

.nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav__mark-glyph {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: oklch(0.98 0.02 75);
  font-family: "Fraunces", serif;
  font-size: 14px;
  font-weight: 700;
}

.nav__mark-name {
  font-family: "Caveat", cursive;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
}

.nav__links {
  display: flex;
  gap: 24px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav__links a {
  position: relative;
  padding: 6px 2px;
  transition: color 200ms ease;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--red);
  transition: right 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav__links a:hover::after {
  right: 0;
}

.nav__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.7 0.15 145);
  box-shadow: 0 0 0 4px oklch(0.7 0.15 145 / 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px oklch(0.7 0.15 145 / 0);
  }
}

main {
  width: min(1240px, 100% - 40px);
  margin: 0 auto;
  padding: 36px 0 120px;
  display: grid;
  gap: clamp(80px, 12vw, 140px);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(20px, 5vw, 56px);
}

.hero__inner {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: oklch(0.99 0.005 80 / 0.6);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.kicker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.kicker__stage {
  display: inline-grid;
  min-width: 0;
}

.kicker__stage > * {
  grid-area: 1 / 1;
}

/* the longest line, unseen, holds the pill's width so typing never reflows it */
.kicker__sizer {
  visibility: hidden;
}

.kicker__text::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--red);
  animation: caret-blink 1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .kicker__text::after {
    animation: none;
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.hero__title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  font-variation-settings: "SOFT" 80;
  color: var(--ink);
  display: grid;
  gap: 4px;
}

.hero__hi {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--ink-soft);
  letter-spacing: 0;
  transform: rotate(-3deg);
  transform-origin: left center;
  margin-left: clamp(8px, 1.4vw, 16px);
}

.hero__name {
  display: inline-block;
  position: relative;
  z-index: 3;
  font-weight: 700;
  font-style: italic;
}

.hero__name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 16%;
  bottom: 0.08em;
  height: 0.08em;
  background: var(--red);
  border-radius: 2px;
  transform-origin: left center;
  animation: underline 1.6s 0.6s cubic-bezier(0.45, 0.05, 0.2, 1) both;
}

/* the car is the beam's head: both run on the same clock, so the red line is
   the path it leaves. Nose ends up past the "u." and the beam stops at its tail. */
.hero__car {
  position: absolute;
  bottom: 0.06em;
  left: 0;
  width: 1.15em;
  height: auto;
  margin-left: -0.05em;
  animation: car 1.6s 0.6s cubic-bezier(0.45, 0.05, 0.2, 1) both;
}

@keyframes underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes car {
  from { left: 0; }
  to { left: 84%; }
}

.hero__lede {
  max-width: 48ch;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero__lede-accent {
  color: var(--red-deep);
  font-weight: 600;
  font-style: italic;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 220ms ease, border-color 220ms ease, color 220ms ease;
  will-change: transform;
}

.btn--primary {
  background: var(--ink);
  color: oklch(0.98 0.01 75);
  border: 1px solid var(--ink);
}

.btn--primary:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.btn--primary svg {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: oklch(0.98 0.01 75);
  transform: translateY(-2px);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--ink-line);
}

.hero__meta li {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hero__meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__meta-value {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
}

a.hero__meta-value,
.hero__meta-link {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

a.hero__meta-value:hover,
.hero__meta-link:hover {
  color: var(--red);
}

.hero__secret {
  color: var(--ink-soft);
  font-weight: 400;
}

.hero__art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 1 / 1.05;
  min-height: 0;
}

.hero__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid oklch(0.99 0.005 80 / 0.4);
}

/* the <picture> wrapper must not become a box, or img height: 100% collapses */
.hero__photo picture {
  display: contents;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__photo:hover img {
  transform: scale(1.03);
}

.hero__photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: oklch(0.98 0.01 75);
  text-shadow: 0 1px 8px oklch(0.16 0.02 25 / 0.5);
  letter-spacing: 0.04em;
}

/* the back card of the stack: tilted the other way and pushed out to the right
   so a strip of it reads from behind the other two rather than disappearing */
.hero__photo--tower {
  grid-column: 1 / span 5;
  grid-row: 3 / span 6;
  z-index: 1;
  transform: rotate(-8deg) translate(-9%, 7%);
}

.hero__photo--tower figcaption {
  /* the visible strip is the lower-left corner, so the caption stacks into it */
  right: auto;
  left: 14px;
  bottom: 14px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.hero__photo--blossom {
  grid-column: 1 / span 6;
  grid-row: 1 / span 5;
  z-index: 2;
  transform: rotate(-2deg);
}

.hero__photo--ferrari {
  grid-column: 4 / span 5;
  grid-row: 4 / span 5;
  z-index: 3;
  transform: rotate(3deg);
}

.hero__sticker {
  position: absolute;
  z-index: 4;
  top: 6%;
  right: -2%;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  background: oklch(0.99 0.005 80);
  border: 1px solid var(--ink);
  border-radius: 12px;
  transform: rotate(6deg);
  font-family: "Caveat", cursive;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.hero__sticker-line {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__sticker-big {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
}

.hero__sticker-big--red {
  color: var(--red);
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--ink);
  animation: marquee 52s linear infinite;
  will-change: transform;
}

.marquee__track span:nth-child(even) {
  color: var(--red);
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 700;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section-tag {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.section-title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 22ch;
}

.section-title em {
  font-style: italic;
  color: var(--red-deep);
  font-weight: 500;
}

/* ---------- about ---------- */

.about__grid {
  margin-top: clamp(30px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
}

.about__lead {
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 32ch;
}

.about__facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink-line);
}

.about__facts > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-line);
}

.about__facts dt {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}

.about__facts dd {
  font-size: 1rem;
  color: var(--ink);
}

/* ---------- work / cases ---------- */

.work {
  display: grid;
  gap: clamp(50px, 7vw, 90px);
}

.work__head {
  display: grid;
  gap: 6px;
}

.case {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.case__index {
  position: absolute;
  top: -28px;
  left: 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.case__copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.case__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.case__title {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
}

/* prose only: `.case__copy p` also outranked .case__tag / .case__link / .case__status
   on specificity and flattened them to 16px muted body text */
.case__copy > p:not([class]) {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
}

.case__bullets {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.case__bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink);
}

.case__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 1px;
  background: var(--red);
}

/* proof ledger — the three facts a recruiter or investor scans for, set like a
   timing sheet rather than a stat grid: label, dotted leader, value. The leader
   does the work a card would otherwise do, so the facts sit inside the copy
   column instead of becoming a second component competing with the demo. */
.proof {
  display: grid;
  gap: 11px;
  margin-top: 6px;
  max-width: 32rem;
  padding-top: 16px;
  border-top: 1px solid var(--ink-line);
}

.proof__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.proof__row dt {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* the leader is a flex spacer, so a long label simply eats it rather than
   pushing the value off the row */
.proof__lead {
  flex: 1 1 18px;
  min-width: 14px;
  height: 1px;
  translate: 0 -0.3em;
  background: repeating-linear-gradient(
    to right,
    var(--ink-line) 0 2px,
    transparent 2px 7px
  );
}

.proof__row dd {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.18rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--red);
  white-space: nowrap;
}

.case__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.case__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: oklch(0.16 0.02 25 / 0.055);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.case__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* narrow: a two-line label leaves the leader as a 15px stub, so the rule moves
   under the row instead of between the label and its value */
@media (max-width: 520px) {
  .proof {
    gap: 0;
  }

  .proof__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ink-line);
  }

  .proof__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .proof__lead {
    display: none;
  }
}

.case__link {
  margin-top: 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
}

.case__link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: gap 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 220ms ease;
}

.case__link a:hover {
  gap: 12px;
  color: var(--red);
}

.case__link--light {
  color: var(--ink-soft);
  font-style: italic;
}

.case__link-sep {
  display: inline-block;
  margin: 0 10px;
  color: var(--ink-soft);
}

.case__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, oklch(0.96 0.06 14 / 0.7), transparent 60%),
    linear-gradient(160deg, oklch(0.94 0.04 16), oklch(0.9 0.05 22));
  min-height: 380px;
  overflow: hidden;
}

.case__visual--dark {
  background:
    radial-gradient(circle at 80% 0%, oklch(0.4 0.18 26 / 0.5), transparent 55%),
    linear-gradient(160deg, oklch(0.22 0.04 25), oklch(0.14 0.03 25));
}

/* lit from the other corner and in sakura rather than red, and kept well above
   the panel's own value so the screen reads as a screen sitting on a surface */
.case__visual--carbon {
  background:
    radial-gradient(circle at 14% 4%, oklch(0.68 0.15 12 / 0.42), transparent 62%),
    linear-gradient(150deg, oklch(0.31 0.07 18), oklch(0.19 0.05 20));
}

/* yuno: browser-window mock of the live homepage */
.case__visual--blossom {
  background:
    radial-gradient(circle at 80% 10%, oklch(0.97 0.05 8 / 0.8), transparent 55%),
    linear-gradient(160deg, oklch(0.93 0.05 8), oklch(0.88 0.07 12));
}

.site {
  width: min(520px, 100%);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--ink-line);
  transform: rotate(1.5deg);
}

.site__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--ink-line);
}

.site__dots {
  display: flex;
  gap: 6px;
}

.site__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-line);
}

.site__url {
  flex: 1;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.site__page {
  position: relative;
  aspect-ratio: 16 / 10;
  background: oklch(0.82 0.06 150);
}

.site__page img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site__page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.2 0.04 20 / 0.5), transparent 60%);
}

.site__kicker,
.site__title {
  position: absolute;
  left: 7%;
  z-index: 1;
  margin: 0;
  color: #fff;
}

.site__kicker {
  top: 12%;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site__title {
  top: 22%;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site__title em {
  font-family: "Fraunces", serif;
  font-weight: 400;
}

/* phone mockup */
/* min-height, not aspect-ratio: a fixed-height box with overflow:hidden clips
   its own content once a user stylesheet bumps text spacing (WCAG 1.4.12) */
.phone {
  position: relative;
  display: flex;
  width: min(260px, 100%);
  min-height: calc(min(260px, 100%) * 2);
  background: oklch(0.16 0.02 25);
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 30px 60px oklch(0.16 0.05 22 / 0.32),
    inset 0 0 0 2px oklch(0.32 0.02 25);
  transform: rotate(-3deg);
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: oklch(0.06 0.01 25);
  border-radius: 999px;
  z-index: 2;
}

.phone__screen {
  flex: 1;
  width: 100%;
  border-radius: 28px;
  background: linear-gradient(180deg, oklch(0.97 0.025 16), oklch(0.93 0.04 14));
  padding: 36px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  font-size: 0.76rem;
}

.phone__topbar {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: -10px;
}

.phone__greeting {
  margin-top: 6px;
}

.phone__hello {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.phone__name {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.phone__pill {
  position: relative;
  display: grid;
  grid-template-columns: 8px 1fr 26px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 12px 12px 14px;
  background: oklch(0.99 0.01 60);
  border: 0;
  border-radius: 16px;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: 0 6px 16px oklch(0.32 0.18 14 / 0.12);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 300ms var(--ease-out-quart),
    box-shadow 220ms var(--ease-out-quart),
    transform 140ms var(--ease-out-quart);
}

.demo.is-interactive .phone__pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px oklch(0.32 0.18 14 / 0.18);
}

.demo.is-interactive .phone__pill:active {
  transform: translateY(0) scale(0.985);
}

/* pink while it waits, red once you act — an alert colour pulsing at someone
   with dementia is exactly the "scary alert" this product refuses to be */
.phone__pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-deep);
  transition: background-color 300ms var(--ease-out-quart);
}

.demo[data-step="0"] .phone__pill-dot {
  animation: dose-pulse 2.6s var(--ease-out-quart) infinite;
}

@keyframes dose-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 oklch(0.66 0.18 14 / 0.4);
  }
  60% {
    box-shadow: 0 0 0 7px oklch(0.66 0.18 14 / 0);
  }
}

.phone__pill-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.phone__pill-title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.phone__pill-meta {
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-soft);
}

.phone__pill-cta {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

/* this empty ring is the whole affordance — and the only one left when
   prefers-reduced-motion kills the pulse — so it has to be visible */
.phone__ring-track {
  fill: none;
  stroke: oklch(0.6 0.14 14);
  stroke-width: 2.4;
}

.phone__ring {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 82;
  stroke-dashoffset: 82;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 300ms var(--ease-out-quart);
}

.phone__tick {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 200ms var(--ease-out-quart) 300ms;
}

/* taken */
.demo--pilly[data-step="1"] .phone__ring,
.demo--pilly[data-step="2"] .phone__ring,
.demo--pilly[data-step="1"] .phone__tick,
.demo--pilly[data-step="2"] .phone__tick {
  stroke-dashoffset: 0;
}

.demo--pilly[data-step="1"] .phone__pill,
.demo--pilly[data-step="2"] .phone__pill {
  background: oklch(0.955 0.035 12);
  box-shadow:
    inset 0 0 0 1px oklch(0.16 0.02 25 / 0.06),
    0 1px 4px oklch(0.32 0.18 14 / 0.06);
}

.demo--pilly[data-step="1"] .phone__pill-dot,
.demo--pilly[data-step="2"] .phone__pill-dot {
  background: oklch(0.74 0.08 14);
}

.phone__pill[aria-disabled="true"] {
  cursor: default;
}

.demo.is-interactive .phone__pill[aria-disabled="true"]:hover {
  transform: none;
  box-shadow:
    inset 0 0 0 1px oklch(0.16 0.02 25 / 0.06),
    0 1px 4px oklch(0.32 0.18 14 / 0.06);
}

/* vitals as a sentence, not a pair of metric cards — "a kind nurse, not a chart" */
.phone__vitals {
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.phone__family {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--ink-soft);
  transition: color 300ms var(--ease-out-quart);
}

.demo--pilly[data-step="2"] .phone__family {
  color: var(--ink);
}

/* the family is told first, then the assistant comments on it */
.demo--pilly[data-step="2"] .phone__chat .swap__item.is-active {
  transition-delay: 300ms;
}

.phone__family-check {
  color: var(--red);
  font-weight: 700;
}

/* today's remaining doses — gives the screen a real day, not dead space */
.phone__today {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.phone__today-head {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.phone__today-list {
  display: grid;
  gap: 8px;
}

.phone__today-row {
  display: grid;
  grid-template-columns: 13px auto 1fr;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--ink-soft);
}

.phone__today-tick {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid oklch(0.16 0.02 25 / 0.24);
  font-size: 0.5rem;
  line-height: 1;
  color: oklch(0.99 0.005 80);
}

.phone__today-tick::after {
  content: "✓";
  opacity: 0;
}

.phone__today-time {
  font-variant-numeric: tabular-nums;
}

.phone__today-name {
  color: var(--ink);
}

.phone__today-row--done .phone__today-tick {
  background: oklch(0.78 0.06 14);
  border-color: oklch(0.78 0.06 14);
}

.phone__today-row--done .phone__today-tick::after {
  opacity: 1;
}

.phone__today-row--done .phone__today-name {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: oklch(0.16 0.02 25 / 0.35);
}

/* the day's list confirms AFTER the ring closes — effect must follow cause */
.phone__today-row--dose .phone__today-tick {
  transition:
    background-color 300ms var(--ease-out-quart) 500ms,
    border-color 300ms var(--ease-out-quart) 500ms;
}

.phone__today-row--dose .phone__today-tick::after {
  transition: opacity 200ms var(--ease-out-quart) 600ms;
}

.phone__today-row--dose .phone__today-name {
  text-decoration: line-through;
  text-decoration-color: transparent;
  transition:
    color 200ms var(--ease-out-quart) 620ms,
    text-decoration-color 200ms var(--ease-out-quart) 620ms;
}

.demo--pilly[data-step="1"] .phone__today-row--dose .phone__today-tick,
.demo--pilly[data-step="2"] .phone__today-row--dose .phone__today-tick {
  background: var(--red);
  border-color: var(--red);
}

.demo--pilly[data-step="1"] .phone__today-row--dose .phone__today-tick::after,
.demo--pilly[data-step="2"] .phone__today-row--dose .phone__today-tick::after {
  opacity: 1;
}

.demo--pilly[data-step="1"] .phone__today-row--dose .phone__today-name,
.demo--pilly[data-step="2"] .phone__today-row--dose .phone__today-name {
  color: var(--ink-soft);
  text-decoration-color: oklch(0.16 0.02 25 / 0.35);
}

.phone__chat {
  display: flex;
  margin-top: 0;
}

.phone__chat-bubble {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  background: var(--ink);
  color: oklch(0.98 0.01 75);
  border: 0;
  border-radius: 14px 14px 14px 4px;
  font: inherit;
  font-size: 0.7rem;
  line-height: 1.3;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 200ms var(--ease-out-quart),
    transform 140ms var(--ease-out-quart);
}

/* keep the bubble optically small but give it a real tap target */
.phone__chat-bubble::after {
  content: "";
  position: absolute;
  inset: -9px -6px;
}

.demo.is-interactive .phone__chat-bubble:hover {
  background: oklch(0.26 0.035 25);
}

.demo.is-interactive .phone__chat-bubble:active {
  transform: scale(0.98);
}

/* ---------- interactive demo shell ---------- */

.demo {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.2vw, 20px);
  width: 100%;
}

/* no border-radius here — outlines already follow the element's own radius,
   and setting it would flatten the pill and the chat bubble's tail on focus */
.demo :focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.demo__foot {
  display: none;
}

.demo.is-interactive .demo__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
}

.demo__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-soft);
}

.demo__hint[hidden] {
  display: none;
}

.demo__replay {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid oklch(0.16 0.02 25 / 0.42);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
  transition:
    background-color 200ms var(--ease-out-quart),
    border-color 200ms var(--ease-out-quart),
    transform 140ms var(--ease-out-quart);
  touch-action: manipulation;
}

.demo__replay::after {
  content: "";
  position: absolute;
  inset: -4px;
}

/* replay is a reset, not the next thing to do — it stays quieter than the hint */
.demo__replay:hover {
  background: oklch(1 0 0 / 0.7);
  border-color: oklch(0.16 0.02 25 / 0.28);
  color: var(--ink);
}

.demo__replay:active {
  transform: scale(0.97);
}

.demo__replay[hidden] {
  display: none;
}

.demo__live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* crossfading copy: every variant stacks in one grid cell, so the
   box never resizes when the text changes */
.swap {
  display: grid;
}

/* the outgoing copy clears out before the incoming copy arrives; equal-length
   fades would leave both at 50% opacity on top of each other, unreadable */
.swap > .swap__item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
  /* visibility keeps the inactive copies out of find-in-page and text
     selection, not just out of sight */
  visibility: hidden;
  transition:
    opacity 120ms var(--ease-out-quart),
    transform 120ms var(--ease-out-quart),
    visibility 0s linear 120ms;
}

.swap > .swap__item.is-active {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition:
    opacity 200ms var(--ease-out-quart) 120ms,
    transform 200ms var(--ease-out-quart) 120ms,
    visibility 0s linear 0s;
}

/* dashboard mockup */
.dashboard {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  background: oklch(0.14 0.025 25);
  border: 1px solid oklch(0.5 0.04 25 / 0.4);
  border-radius: 20px;
  color: oklch(0.94 0.02 60);
  box-shadow:
    0 30px 60px oklch(0.05 0.02 22 / 0.6),
    inset 0 1px 0 oklch(0.94 0.02 60 / 0.06);
  transform: rotate(2deg);
}

.dashboard__row--top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid oklch(0.94 0.02 60 / 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard__time {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.dashboard__hud {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.dashboard__hud-k {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.94 0.02 60 / 0.6);
}

.dashboard__hud-v {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: oklch(0.94 0.02 60);
}

.dashboard__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  transition: opacity 320ms var(--ease-out-quart);
  padding: 4px 0;
  border-bottom: 1px solid oklch(0.94 0.02 60 / 0.16);
}

/* at rest the chart is last lap's telemetry, dimmed; the live lap lights it up */
.demo--flow[data-step="0"] .dashboard__bars {
  opacity: 0.4;
}

.dashboard__bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  border-radius: 4px 4px 1px 1px;
}

.dashboard__tasks {
  display: grid;
  gap: 6px;
}

.dashboard__task {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 30px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: oklch(0.94 0.02 60);
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* small rows, real tap targets */
.dashboard__task::after {
  content: "";
  position: absolute;
  inset: -7px -8px;
}

.dashboard__task-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid oklch(0.94 0.02 60 / 0.5);
  font-size: 9px;
  line-height: 1;
  color: oklch(0.98 0.01 75);
  transition:
    background-color 200ms var(--ease-out-quart),
    border-color 200ms var(--ease-out-quart);
}

.dashboard__task-box::after {
  content: "✓";
  opacity: 0;
  transition: opacity 160ms var(--ease-out-quart);
}

.dashboard__task-label {
  transition: color 200ms var(--ease-out-quart);
}

.dashboard__task[aria-pressed="true"] .dashboard__task-box {
  background: var(--red);
  border-color: var(--red);
}

.dashboard__task[aria-pressed="true"] .dashboard__task-box::after {
  opacity: 1;
}

.dashboard__task[aria-pressed="true"] .dashboard__task-label {
  color: oklch(0.94 0.02 60 / 0.5);
  text-decoration: line-through;
}

.demo.is-interactive .dashboard__task:hover .dashboard__task-box {
  border-color: var(--red);
}

/* splitting a task: height animates via grid-template-rows, never height */
.dashboard__collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 380ms var(--ease-out-quart);
}

.dashboard__collapse.is-closed {
  grid-template-rows: 0fr;
}

.dashboard__collapse-inner {
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}

.dashboard__claude {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: oklch(0.94 0.02 60 / 0.06);
  border: 1px solid oklch(0.94 0.02 60 / 0.12);
  transition:
    background-color 300ms var(--ease-out-quart),
    border-color 300ms var(--ease-out-quart);
}

/* claude only raises its voice when momentum drops */
.demo--flow[data-nudge="open"] .dashboard__claude {
  background: oklch(0.55 0.22 27 / 0.14);
  border-color: oklch(0.55 0.22 27 / 0.55);
}

.dashboard__claude-action {
  position: relative;
  justify-self: start;
  min-height: 34px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid oklch(0.7 0.16 25);
  border-radius: 999px;
  background: oklch(0.55 0.22 27 / 0.2);
  color: oklch(0.96 0.02 60);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  touch-action: manipulation;
  transition:
    background-color 200ms var(--ease-out-quart),
    transform 140ms var(--ease-out-quart);
}

.dashboard__claude-action::after {
  content: "";
  position: absolute;
  inset: -5px;
}

.dashboard__claude-action:hover {
  background: oklch(0.55 0.22 27 / 0.4);
}

.dashboard__claude-action:active {
  transform: scale(0.97);
}

.dashboard__claude-action[hidden] {
  display: none;
}

.dashboard__start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: oklch(0.98 0.01 75);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 200ms var(--ease-out-quart),
    transform 140ms var(--ease-out-quart);
}

.dashboard__start:hover {
  background: oklch(0.61 0.22 27);
}

.dashboard__start:active {
  transform: scale(0.99);
}

.dashboard__start-icon {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
}

.dashboard__start-icon .ic {
  grid-area: 1 / 1;
}

.dashboard__start .ic--pause {
  display: none;
}

.demo--flow[data-step="1"]:not(.is-paused) .dashboard__start .ic--play {
  display: none;
}

.demo--flow[data-step="1"]:not(.is-paused) .dashboard__start .ic--pause {
  display: block;
}

/* the ring on a dark panel needs to be lighter than brand red to stay legible */
.case__visual--dark .demo :focus-visible {
  outline-color: oklch(0.86 0.11 20);
}

.dashboard__claude-tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.94 0.02 60 / 0.55);
}

.dashboard__claude p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.92rem;
  color: oklch(0.94 0.02 60);
}

/* board mockup */
.board {
  width: min(360px, 100%);
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}

.board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--ink-line);
}

.board__head-k {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.board__head-v {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

.board__stack {
  display: grid;
  gap: 10px;
}

.board__card {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: oklch(0.99 0.01 60);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px oklch(0.32 0.18 14 / 0.1);
}

.board__card--back {
  transform: rotate(1.5deg);
  opacity: 0.55;
  box-shadow: var(--shadow-sm);
}

.board__card-org {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.board__card-title {
  font-family: "Fraunces", serif;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.board__card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.board__chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.board__stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1.5px dashed var(--red);
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0;
  transform: rotate(-5deg) scale(0.9);
  transition:
    opacity 200ms var(--ease-out-quart),
    transform 260ms var(--ease-out-quart);
}

/* the stamp only exists once a person has actually signed off */
.demo--board[data-step="3"] .board__stamp {
  opacity: 1;
  transform: rotate(-5deg) scale(1);
}

/* who takes it — human and agent are peers, and both end at the same gate */
.board__lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
}

.board__lane {
  position: relative;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  touch-action: manipulation;
  transition:
    background-color 200ms var(--ease-out-quart),
    color 200ms var(--ease-out-quart);
}

.board__lane::after {
  content: "";
  position: absolute;
  inset: -4px;
}

.board__lane[aria-checked="true"] {
  background: var(--ink);
  color: var(--paper);
}

.demo.is-interactive .board__lane[aria-checked="false"]:hover {
  background: oklch(0.16 0.02 25 / 0.06);
  color: var(--ink);
}

/* the journey: posted, claimed, and then a person, every time */
.rail {
  position: relative;
  padding-top: 30px;
}

.rail__track {
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: oklch(0.16 0.02 25 / 0.16);
  border-radius: 2px;
  overflow: hidden;
}

.rail__fill {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(var(--f, 0));
  transform-origin: left center;
  transition: transform 460ms var(--ease-out-quart);
}

.rail__token {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(var(--x, 0px));
  transition:
    transform 520ms var(--ease-out-expo),
    opacity 200ms var(--ease-out-quart);
}

.demo--board:not([data-step="0"]) .rail__token {
  opacity: 1;
}

.rail__stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.rail__stop {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.6rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ink-soft);
  transition: color 200ms var(--ease-out-quart);
}

.rail__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid oklch(0.16 0.02 25 / 0.3);
  transition:
    background-color 260ms var(--ease-out-quart),
    border-color 260ms var(--ease-out-quart),
    box-shadow 260ms var(--ease-out-quart);
}

.rail__stop.is-done .rail__dot {
  background: var(--red);
  border-color: var(--red);
}

.rail__stop.is-current .rail__dot {
  border-color: var(--red);
  box-shadow: 0 0 0 4px oklch(0.55 0.22 27 / 0.16);
}

.rail__stop.is-current {
  color: var(--ink);
  font-weight: 600;
}

.board__agent-line {
  display: block;
  margin-top: 4px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.35;
  color: oklch(0.98 0.01 75);
}

.board__go {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 200ms var(--ease-out-quart),
    color 200ms var(--ease-out-quart),
    transform 140ms var(--ease-out-quart);
}

.demo.is-interactive .board__go:not([aria-disabled="true"]):hover {
  background: var(--red-deep);
}

.board__go:not([aria-disabled="true"]):active {
  transform: scale(0.99);
}

/* you cannot press past the person. that is the product. */
.board__go[aria-disabled="true"] {
  background: transparent;
  border: 1px dashed oklch(0.16 0.02 25 / 0.4);
  color: var(--ink-soft);
  cursor: default;
}

.board__agent {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 10px 24px oklch(0.16 0.05 22 / 0.22);
}

.board__agent-tag {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.94 0.02 60 / 0.55);
}

/* pit wall mockup — the darkest surface on the page, and the only one where
   sakura carries meaning: red is the signal coming in, pink is the read going
   out. Tokens live on the demo, not the panel, so the focus ring can reach them. */
.demo--radio {
  --pit-ink: oklch(0.95 0.015 40);
  --pit-dim: oklch(0.95 0.015 40 / 0.62);
  --pit-faint: oklch(0.95 0.015 40 / 0.4);
  --pit-line: oklch(0.95 0.015 40 / 0.14);
  --pit-signal: var(--red);
  --pit-read: var(--pink);
}

.pit {
  width: min(400px, 100%);
  display: grid;
  gap: 13px;
  padding: 20px;
  background: linear-gradient(180deg, oklch(0.15 0.02 25), oklch(0.09 0.014 25));
  border: 1px solid oklch(0.95 0.015 40 / 0.16);
  border-radius: 18px;
  color: var(--pit-ink);
  box-shadow:
    0 30px 60px oklch(0.05 0.02 22 / 0.66),
    inset 0 1px 0 oklch(0.95 0.015 40 / 0.08);
  transform: rotate(-1.5deg);
}

.pit__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--pit-line);
}

.pit__driver {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pit__num {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--pit-read);
  color: oklch(0.16 0.02 25);
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.pit__stamp {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pit-dim);
  font-variant-numeric: tabular-nums;
}

/* the triage queue: which flagged call is loaded */
.pit__queue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pit__call {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  min-height: 44px;
  border: 1px solid var(--pit-line);
  border-radius: 9px;
  background: oklch(0.95 0.015 40 / 0.03);
  color: var(--pit-dim);
  text-align: left;
  transition:
    border-color 200ms var(--ease-out-quart),
    background-color 200ms var(--ease-out-quart),
    color 200ms var(--ease-out-quart);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.pit__call-lap {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pit__call-z {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

.pit__call[aria-checked="true"] {
  border-color: oklch(0.55 0.22 27 / 0.85);
  background: oklch(0.55 0.22 27 / 0.2);
  color: var(--pit-ink);
}

.demo.is-interactive .pit__call[aria-checked="false"]:hover {
  border-color: oklch(0.95 0.015 40 / 0.36);
  background: oklch(0.95 0.015 40 / 0.07);
  color: var(--pit-ink);
}

/* the clip itself: bars light in sequence as the clip plays through them.
   The lit gradient is painted up front and revealed by opacity, so nothing
   here interpolates a background or a layout property. */
.wave {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 46px;
  padding-bottom: 5px;
}

.wave > span:not(.wave__head) {
  flex: 1;
  height: var(--a);
  min-height: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pit-signal), var(--red-deep));
  /* still clearly unplayed, but a waveform rather than a dotted line */
  transform: scaleY(0.44);
  opacity: 0.5;
}

.demo--radio:not([data-step="0"]) .wave > span:not(.wave__head) {
  animation: waveLit 260ms var(--ease-out-quart) forwards;
  animation-delay: calc(var(--i) * 100ms);
}

@keyframes waveLit {
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* how much of the clip has played, as a line that fills under the bars */
.wave__head {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  border-radius: 1px;
  background: var(--pit-read);
  box-shadow: 0 0 8px oklch(0.84 0.09 12 / 0.7);
  transform: scaleX(0);
  transform-origin: left center;
}

.demo--radio:not([data-step="0"]) .wave__head {
  animation: waveSweep 2560ms linear forwards;
}

@keyframes waveSweep {
  to {
    transform: scaleX(1);
  }
}

/* the transcript is the point of the tool — it stays quiet until the clip runs */
.pit__quote {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.94rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  /* two lines reserved — what the narrowest panel needs — so switching clips
     never resizes the panel under the cursor */
  min-height: 2.7em;
  transition: opacity 300ms var(--ease-out-quart);
}

.demo--radio.is-interactive[data-step="0"] .pit__quote {
  opacity: 0.45;
}

.pit__read {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--pit-line);
  border-bottom: 1px solid var(--pit-line);
}

.pit__k {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pit-dim);
}

.pit__v {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 300ms var(--ease-out-quart);
}

.demo--radio[data-step="2"] .pit__v,
.demo--radio[data-step="3"] .pit__v {
  color: var(--pit-read);
}

/* the two numbers sit side by side rather than stacked: stacked, the read row
   ran tall and hollow down the middle of the panel */
.pit__nums {
  display: grid;
  grid-auto-flow: column;
  gap: 18px;
  text-align: right;
}

.pit__nums dt {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pit-dim);
}

.pit__nums dd {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

/* three channels that share no model — they arrive together, once the read exists */
.pit__ch {
  display: grid;
  gap: 5px;
  opacity: 0.3;
  transition: opacity 320ms var(--ease-out-quart);
}

.demo--radio[data-step="3"] .pit__ch {
  opacity: 1;
}

.pit__ch-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: baseline;
}

.pit__ch-k {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pit-dim);
}

/* this row is content, not a label — it keeps a readable size and full ink */
.pit__ch-v {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--pit-ink);
}

.pit__comms {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--pit-line);
  background: oklch(0.95 0.015 40 / 0.04);
  transition:
    border-color 320ms var(--ease-out-quart),
    background-color 320ms var(--ease-out-quart);
}

.demo--radio[data-step="3"] .pit__comms {
  border-color: oklch(0.84 0.09 12 / 0.5);
  background: oklch(0.84 0.09 12 / 0.09);
}

.pit__verdict {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* this line is a sentence, not a label — it matches the channel rows, not the
   uppercase keys above them */
.pit__budget {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--pit-dim);
}

.pit__go {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--pit-signal);
  color: oklch(0.98 0.01 60);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background-color 200ms var(--ease-out-quart),
    transform 140ms var(--ease-out-quart);
  touch-action: manipulation;
}

.demo.is-interactive .pit__go:not([aria-disabled="true"]):hover {
  background: oklch(0.6 0.22 27);
}

.pit__go:not([aria-disabled="true"]):active {
  transform: scale(0.98);
}

.pit__go[aria-disabled="true"] {
  background: transparent;
  border: 1px dashed var(--pit-line);
  color: var(--pit-dim);
  cursor: default;
}

/* the page's red focus ring sits inside this panel's own red UI; pink is the
   one accent here that never means "signal", so it stays unambiguous */
.demo--radio :focus-visible {
  outline: 2px solid var(--pit-read);
  outline-offset: 3px;
}

/* the hint and replay were drawn for a pink visual; on carbon their ink and
   their border are both invisible, so the whole footer re-inks here */
.demo--radio .demo__hint {
  color: var(--pit-ink);
}

.demo--radio .demo__replay {
  border-color: oklch(0.95 0.015 40 / 0.34);
  color: var(--pit-dim);
}

.demo--radio .demo__replay:hover {
  background: oklch(0.95 0.015 40 / 0.1);
  border-color: oklch(0.95 0.015 40 / 0.5);
  color: var(--pit-ink);
}

/* the sweep is pacing, not information: the clip still lands, it just lands at
   once. The step machine keeps running either way, so the read still arrives. */
@media (prefers-reduced-motion: reduce) {
  .demo--radio:not([data-step="0"]) .wave > span:not(.wave__head),
  .demo--radio:not([data-step="0"]) .wave__head {
    animation-duration: 1ms;
    animation-delay: 0s;
  }
}

/* ---------- contact ---------- */

.contact__title {
  max-width: 24ch;
  margin-bottom: 36px;
}

.contact__ask {
  margin-top: -16px;
  margin-bottom: 24px;
  color: var(--red-deep);
}

.contact__links {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink-line);
}

.contact__links li {
  border-bottom: 1px solid var(--ink-line);
}

.contact__links a {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 8px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: padding 240ms cubic-bezier(0.2, 0.8, 0.2, 1), color 240ms ease;
}

.contact__role {
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.contact__handle {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact__arrow {
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact__links a:hover {
  padding-left: 24px;
  color: var(--red);
}

.contact__links a:hover .contact__arrow {
  transform: translate(6px, -6px);
}

.contact__footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.contact__footer-jp {
  font-family: "Fraunces", serif;
}

/* ---------- floating music player ---------- */

.player {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.player__fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 16px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: oklch(0.99 0.005 80 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-md);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 220ms ease, border-color 220ms ease;
  will-change: transform;
}

.player__fab:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}

.player__fab-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: oklch(0.98 0.01 75);
  flex: none;
}

.player__fab-label {
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

/* hide the fab once the panel is open */
.player.is-open .player__fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.player__panel {
  width: min(340px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: oklch(0.99 0.005 80 / 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 14px;
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: opacity 240ms ease, transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 240ms;
}

.player.is-open .player__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.player__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player__name {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
}

.player__icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  background: transparent;
  color: var(--ink);
  flex: none;
  transition: background 200ms ease, border-color 200ms ease,
    color 200ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.player__icon-btn svg {
  fill: currentColor;
}

.player__icon-btn:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.player__icon-btn:focus-visible,
.player__bar:focus-visible,
.player__track:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.player__close {
  width: 32px;
  height: 32px;
}

.player__now {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.player__now-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__now-artist {
  font-size: 0.82rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__seek {
  display: grid;
  gap: 6px;
}

.player__bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--ink-line);
  cursor: pointer;
}

.player__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-deep), var(--red));
}

.player__bar-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  transform: translate(50%, -50%);
  box-shadow: 0 2px 6px oklch(0.16 0.05 22 / 0.3);
}

.player__times {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.player__toggle {
  width: 52px;
  height: 52px;
  background: var(--ink);
  border-color: var(--ink);
  color: oklch(0.98 0.01 75);
}

.player__toggle:hover {
  background: var(--red);
  border-color: var(--red);
  color: oklch(0.98 0.01 75);
}

.player__mute {
  margin-left: 4px;
}

/* play / pause + volume / muted icon swapping */
.player .ic--pause,
.player .ic--muted {
  display: none;
}

.player.is-playing .ic--play {
  display: none;
}

.player.is-playing .ic--pause {
  display: block;
}

.player.is-muted .ic--vol {
  display: none;
}

.player.is-muted .ic--muted {
  display: block;
}

.player__list {
  display: grid;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
  margin: 2px -6px -4px;
  padding: 4px 6px;
  border-top: 1px solid var(--ink-line);
  padding-top: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-line) transparent;
}

.player__list::-webkit-scrollbar {
  width: 6px;
}

.player__list::-webkit-scrollbar-thumb {
  background: var(--ink-line);
  border-radius: 999px;
}

.player__track {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: left;
  color: var(--ink);
  transition: background 180ms ease, color 180ms ease;
}

.player__track:hover {
  background: oklch(0.84 0.09 12 / 0.18);
}

.player__track-num {
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.player__track-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.player__track-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__track-artist {
  display: block;
  font-size: 0.74rem;
  line-height: 1.2;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__track-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.player__track-eq span {
  width: 3px;
  border-radius: 2px;
  background: var(--red);
  animation: eq 0.9s ease-in-out infinite;
}

.player__track-eq span:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.player__track-eq span:nth-child(2) { height: 90%; animation-delay: -0.5s; }
.player__track-eq span:nth-child(3) { height: 60%; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.player__track.is-active {
  background: oklch(0.84 0.09 12 / 0.22);
  color: var(--red-deep);
}

.player__track.is-active .player__track-num {
  visibility: hidden;
}

.player__track.is-active .player__track-eq {
  display: flex;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero__art {
    aspect-ratio: 1 / 0.9;
  }
}

@media (max-width: 880px) {
  .nav {
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 12px 16px;
  }

  .nav__status {
    display: none;
  }

  .nav__links {
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 16px;
  }

  .hero__art {
    aspect-ratio: 1 / 0.78;
    max-width: 540px;
  }

  .hero__meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case--aimpact .case__visual,
  .case--focusflow .case__visual {
    order: -1;
  }

  .case__visual {
    min-height: 360px;
  }

  .contact__links a {
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    padding: 18px 4px;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 28px, 1240px);
    padding-bottom: 80px;
  }

  .nav {
    width: min(100% - 28px, 1240px);
  }

  .hero__title {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  .hero__hi {
    transform: rotate(-3deg) translateX(0);
    margin-left: 6px;
  }

  .hero__sticker {
    right: 4%;
    top: 4%;
    padding: 8px 12px;
  }

  .hero__sticker-big {
    font-size: 1.3rem;
  }

  .marquee__track {
    gap: 24px;
  }

  .about__facts > div {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }

  .contact__links a {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    padding: 18px 4px;
  }

  .contact__role {
    grid-column: 1 / -1;
  }

  .contact__handle {
    font-size: 1.6rem;
  }

  /* collapse the player FAB to an icon so it stops covering content */
  .player__fab {
    height: 52px;
    width: 52px;
    padding: 0;
    justify-content: center;
  }

  .player__fab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .player__fab-icon {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    /* delays matter as much as durations: leaving them in reorders the demo
       sequences, so effects would land before their causes */
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .petals { display: none; }
  .marquee__track { animation: none !important; }
}

/* zh.html: Chinese has no italic face, and a synthetic slant only smears it */
:lang(zh) em {
  font-style: normal;
}

/* ---------- newsletter (home + generated blog pages) ---------- */

.newsletter {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: oklch(0.99 0.005 80 / 0.72);
}

.newsletter__title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.newsletter__copy,
.newsletter__soon {
  margin-top: 12px;
  max-width: 56ch;
  color: var(--ink-soft);
}

.newsletter__soon a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--pink-deep);
  text-underline-offset: 3px;
}

/* 7 nav links (incl. blog / work with me) must wrap on phones, not scroll sideways */
@media (max-width: 880px) {
  .nav__links {
    flex-wrap: wrap;
    row-gap: 2px;
  }
}
