:root {
  color-scheme: dark;
  --blue: #2348f4;
  --ink: #fff8e9;
  --peach: #ffc697;
  --muted: #c3ceff;
  --line: rgb(255 248 233 / 22%);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  background: var(--blue);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--peach); outline-offset: 8px; }
::selection { color: var(--blue); background: var(--peach); }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 100; padding: 12px 20px; color: var(--blue); background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 18px; }

.site-shell { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 760px; height: 100svh; overflow: hidden; }
.site-shell::after { content: ""; position: absolute; z-index: 45; inset: 0; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.9' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.site-header { position: relative; z-index: 50; display: flex; align-items: center; justify-content: space-between; margin: 0 3.8vw; height: 105px; flex: 0 0 105px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: 11px; align-items: center; font-size: 30px; font-weight: 700; letter-spacing: -1.5px; }
.brand-spark { font-size: 37px; line-height: 1; color: var(--peach); }
.site-status { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 4px rgb(255 198 151 / 10%); }
.site-header nav { display: flex; gap: 36px; font-size: 16px; }
.site-header nav a { padding: 10px 0; }
.site-header nav a span { display: inline-block; margin-left: 6px; transition: transform .2s ease; color: var(--peach); }
.site-header nav a:hover span { transform: translate(3px, -3px); }

.stage { position: relative; flex: 1; min-height: 589px; }
.hero-heading { position: absolute; z-index: 30; top: 8.5%; left: 50%; width: min(78vw, 1120px); transform: translateX(-50%); text-align: center; pointer-events: none; }
.eyebrow { margin: 0 0 21px; font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 2.4px; }
h1 { margin: 0; font-weight: 800; }
.adjective-slot { display: flex; align-items: baseline; justify-content: center; height: clamp(96px, calc((100svh - 171px) * .18), 140px); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(96px, calc((100svh - 171px) * .18), 140px); line-height: .9; font-style: italic; font-weight: 400; color: var(--peach); letter-spacing: -.065em; white-space: nowrap; }
.adjective { display: inline-block; transition: opacity .26s ease, transform .35s cubic-bezier(.2,.7,.2,1), filter .25s ease; }
.adjective.leaving { opacity: 0; transform: translateY(-20px) rotate(-3deg); filter: blur(7px); }
.adjective.arriving { opacity: 0; transform: translateY(22px) rotate(3deg); filter: blur(7px); transition: none; }
.surname { position: relative; display: block; font-size: clamp(128px, calc((100svh - 171px) * .25), 200px); line-height: .99; letter-spacing: -.08em; padding-right: .08em; }

.orbit { position: absolute; z-index: -1; left: 50%; top: 55%; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 87vw; height: 43vw; max-height: 620px; transform: translate(-50%, -50%) rotate(-17deg); }
.orbit-two { width: 70vw; height: 25vw; max-height: 390px; transform: translate(-50%, -35%) rotate(18deg); opacity: .35; }
.stage-spark { position: absolute; left: 9%; top: 28%; font-size: 69px; font-weight: 400; line-height: 1; color: var(--peach); transform: rotate(-12deg); }
.character { position: absolute; z-index: 25; width: clamp(380px, min(36vw, calc((100svh - 171px) * .75)), 540px); left: 58.7%; top: 50.5%; transform: translateX(-50%); pointer-events: none; }
.character img { display: block; width: 100%; height: auto; }
.character .character-portrait { position: relative; z-index: 1; }
.puppet-canvas { position: absolute; z-index: 35; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.cutout-ready .puppet-canvas { opacity: 1; }
.cutout-ready .character { display: none; }
.intro-note { position: absolute; z-index: 38; left: 7.2%; bottom: 12.5%; display: flex; gap: 14px; align-items: flex-start; }
.tiny-spark { display: inline-block; margin-top: 4px; color: var(--peach); font-size: 21px; line-height: 1; }
.intro-note p { margin: 0; font-size: clamp(18px, 1.65vw, 25px); line-height: 1.38; letter-spacing: -.035em; }
.site-footer { z-index: 50; position: relative; display: flex; align-items: center; justify-content: space-between; flex: 0 0 66px; height: 66px; margin: 0 3.8vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.pastry-cursor { position: fixed; z-index: 100; left: 0; top: 0; width: 60px; height: 60px; margin: -30px 0 0 -30px; opacity: 0; pointer-events: none; will-change: transform; filter: drop-shadow(1px 5px 5px rgb(17 27 65 / 25%)); }
.pastry-cursor img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.pastry-cursor.over-control img { transform: scale(.72) rotate(-12deg); }
.pastry-cursor.visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .cursor-ready, .cursor-ready a, .cursor-ready button { cursor: none; }
}
.crumbs { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.crumb { position: absolute; width: 5px; height: 5px; background: #eab373; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mobile-playground, .mobile-playground[hidden] { display: none; }
.mobile-pie { position: absolute; width: 68px; height: 68px; padding: 3px; border: 0; background: none; transform: translate(-50%, -50%); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.mobile-pie img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 5px 4px rgb(14 29 100 / 22%)); transform: rotate(-12deg); }
.mobile-pie.is-inviting img { animation: pie-invite 5.5s ease-in-out 2s infinite; }
.mobile-pie.is-dragging { cursor: grabbing; }
.mobile-pie.is-dragging img { transform: rotate(-4deg) scale(1.08); }
.mobile-pie.is-bitten img { mask-image: radial-gradient(circle 13px at 70% 25%, transparent 98%, #000 100%); transform: rotate(-12deg) scale(.72); transition: transform .2s ease; }
.mobile-pie.is-eaten { opacity: 0; pointer-events: none; }
@keyframes pie-invite {
  0%, 79%, 100% { transform: translateY(0) rotate(-12deg); }
  84% { transform: translateY(-5px) rotate(-22deg); }
  89% { transform: translateY(-5px) rotate(0deg); }
  94% { transform: translateY(0) rotate(-16deg); }
}

/* Shared coming-soon pages. */
.stub-stage { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 24px; padding: 50px 24px 65px; }
.stub-eyebrow { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin: 0; color: var(--peach); }
.stub-heading { font-size: clamp(70px, 10vw, 148px); letter-spacing: -.075em; font-weight: 800; line-height: .94; }
.stub-heading em { color: var(--peach); font-family: Georgia, serif; font-weight: 400; }
.stub-copy { font-size: 18px; line-height: 1.5; margin: 0; max-width: 420px; color: var(--muted); }
.stub-pastry { width: 125px; height: 125px; object-fit: contain; transform: rotate(-12deg); }
.back-link { display: inline-flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--ink); padding: 12px 0; margin-top: 6px; font-size: 16px; }
.back-link:hover { color: var(--peach); }
.site-header nav a[aria-current="page"] { color: var(--peach); }

/* Compact desktop and tablet framing. */
@media (max-width: 800px) {
  .site-shell { min-height: 740px; }
  .site-header { height: 84px; flex-basis: 84px; margin: 0 24px; }
  .wordmark { font-size: 25px; }
  .brand-spark { font-size: 30px; }
  .site-status { display: none; }
  .site-header nav { gap: 22px; font-size: 14px; }
  .stage { min-height: 590px; }
  .hero-heading { top: 8.5%; width: 96%; }
  .eyebrow { font-size: 12px; letter-spacing: 1.6px; margin-bottom: 18px; }
  .adjective-slot { height: 11vw; font-size: 11vw; }
  .surname { font-size: 17vw; }
  .stage-spark { display: none; }
  .character { width: 460px; left: 56%; top: auto; bottom: -100px; }
  .intro-note { left: 24px; bottom: 17px; }
  .intro-note p { font-size: 16px; }
  .tiny-spark { font-size: 16px; }
  .orbit-one { width: 150%; height: 75%; }
  .orbit-two { width: 110%; height: 45%; }
  .site-footer { margin: 0 24px; font-size: 12px; }
  .stub-stage { min-height: 570px; }
  .stub-copy { font-size: 16px; }
}
/* Touch has its own stage: a compact title above a roomy, contained feeding area. */
@media (max-width: 600px), (hover: none) and (pointer: coarse) {
  .home .site-shell { min-height: 520px; height: 100svh; }
  .home .site-header { height: calc(68px + env(safe-area-inset-top)); flex-basis: calc(68px + env(safe-area-inset-top)); margin: 0 20px; padding-top: env(safe-area-inset-top); }
  .home .wordmark { font-size: 24px; gap: 8px; }
  .home .brand-spark { font-size: 28px; }
  .home .site-status { display: none; }
  .home .site-header nav { gap: 20px; font-size: 13px; }
  .home .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .home .site-header nav a span { margin-left: 4px; }
  .home .stage { min-height: 0; }
  .home .hero-heading { top: clamp(24px, 4svh, 38px); width: calc(100% - 32px); }
  .home .eyebrow { font-size: 9px; letter-spacing: 1.7px; margin-bottom: 19px; }
  .home .adjective-slot { height: clamp(51px, 14.3vw, 76px); font-size: clamp(51px, 14.3vw, 76px); }
  .home .surname { font-size: clamp(69px, 20.4vw, 108px); line-height: 1.02; }
  .home .stage-spark, .home .orbit-two { display: none; }
  .home .orbit-one { width: 125%; height: 62%; top: 65%; opacity: .45; transform: translate(-50%, -50%) rotate(-14deg); }
  .home .mobile-playground:not([hidden]) { display: block; position: absolute; z-index: 40; left: 8px; right: 8px; top: max(clamp(182px, 27svh, 222px), calc(clamp(24px, 4svh, 38px) + 41px + clamp(51px, 14.3vw, 76px) + clamp(70.38px, 20.808vw, 110.16px))); bottom: 68px; touch-action: none; user-select: none; -webkit-user-select: none; }
  .home .intro-note { left: 20px; right: 20px; bottom: 14px; justify-content: center; gap: 9px; text-align: center; pointer-events: none; }
  .home .intro-note p { font-size: 14px; line-height: 1.4; letter-spacing: -.025em; }
  .home .tiny-spark { font-size: 17px; }
  .home .site-footer { height: calc(40px + env(safe-area-inset-bottom)); flex-basis: calc(40px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); margin: 0 20px; font-size: 10px; }
  .home .character { width: 300px; left: 54%; bottom: 64px; }
  .home .pastry-cursor { display: none; }
  .home.cursor-ready, .home.cursor-ready a, .home.cursor-ready button { cursor: auto; }

  /* On a rotated phone, the title and character share the width instead. */
  @media (orientation: landscape) and (max-height: 500px) {
    .home .site-shell { min-height: 320px; }
    .home .site-header { height: calc(56px + env(safe-area-inset-top)); flex-basis: calc(56px + env(safe-area-inset-top)); margin-left: max(20px, env(safe-area-inset-left)); margin-right: max(20px, env(safe-area-inset-right)); }
    .home .hero-heading { top: 28px; left: 24%; width: 44%; }
    .home .eyebrow { font-size: 8px; letter-spacing: 1px; margin-bottom: 16px; }
    .home .adjective-slot { height: clamp(38px, 7.5vw, 56px); font-size: clamp(38px, 7.5vw, 56px); }
    .home .surname { font-size: clamp(50px, 9.8vw, 76px); }
    .home .mobile-playground:not([hidden]) { left: 48%; right: max(8px, env(safe-area-inset-right)); top: 8px; bottom: 8px; }
    .home .intro-note { left: 16px; right: 54%; bottom: 22px; }
    .home .intro-note p { font-size: 12px; }
    .home .site-footer { height: calc(32px + env(safe-area-inset-bottom)); flex-basis: calc(32px + env(safe-area-inset-bottom)); }
  }
}
@media (max-width: 360px) {
  .home .site-header { margin: 0 16px; }
  .home .site-header nav { gap: 13px; }
  .home .wordmark { font-size: 22px; }
  .home .brand-spark { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
  .mobile-pie img { animation: none !important; }
}
