/* Landing: a dark room with one glass capsule. The capsule carries the material (glass, chrome);
   everything around it stays flat. */
:root {
  --ground: #121416;
  --surface: #1a1d20;
  --raised: #23272b;
  --text: #ecebe8;
  --muted: #9ba1a9;
  --accent: #3fc4b1;
  --accent-ink: #082a26;
  --hand: #aebff5;
  --font: "Hanken Grotesk", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-hand: "Patrick Hand", "Segoe Print", cursive;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 17px/26px var(--font); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.top { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 22px 32px; }
.mark { display: inline-flex; align-items: center; text-decoration: none; }
.mark img { height: 54px; width: auto; display: block; }
.top-link { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; background: var(--raised); }
.top-link:hover { background: #2e3338; }

h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.04; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.06; }
h3 { font: 600 20px/26px var(--font); margin: 0 0 6px; }

main { position: relative; }
.hero, .steps, .inside, .close { position: relative; z-index: 1; }
.hero { display: grid; justify-items: center; text-align: center; max-width: 920px; margin: 0 auto; padding: 36px 24px 112px; }
.lead { max-width: 52ch; margin: 18px auto 0; font-size: 18px; line-height: 28px; color: var(--muted); text-wrap: pretty; }

/* ---------- the capsule: CSS 3D ---------- */
.stage { width: 100%; display: grid; justify-items: center; padding: 28px 0 8px; touch-action: pan-y; }
.box { position: relative; width: calc(700px * var(--k, 0.6)); height: calc(330px * var(--k, 0.6)); }
.scene { position: absolute; left: 0; top: 0; width: 700px; height: 330px; transform: scale(var(--k, 0.6)); transform-origin: 0 0; }
.persp { position: absolute; inset: 0; perspective: 1200px; }
.sway, .tilt, .obj { position: absolute; inset: 0; transform-style: preserve-3d; }
.sway { animation: sway 10s var(--ease-io) infinite alternate; }
@keyframes sway { from { transform: rotateY(-5deg) rotateX(2deg); } to { transform: rotateY(5deg) rotateX(-1.5deg); } }
.tilt { transition: transform 0.5s var(--ease-out); transform-origin: 350px 150px; }
.obj { transform-origin: 350px 150px; }

.obj > span, .obj .cap > span { display: block; position: absolute; }
.glass-slab { left: 30px; top: 30px; width: 640px; height: 240px; border-radius: 120px; border: 3px solid rgb(255 255 255 / 0.2); background: rgb(190 215 228 / 0.05); }
.cap { left: 0; top: 0; width: 700px; height: 300px; transform-style: preserve-3d; transition: transform 1s var(--ease-out); }
.cap-slab { top: 30px; width: 150px; height: 240px; }
.cap-slab-l { left: 30px; border-radius: 120px 0 0 120px; }
.cap-slab-r { left: 520px; border-radius: 0 120px 120px 0; }
.cap-front { overflow: hidden; }
.cap-front::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 30px; background: #d3d7dc; opacity: 0.55; }
.cap-front::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 44px; background: #5d636b; opacity: 0.5; }
.cap-front .band { position: absolute; top: 0; bottom: 0; width: 16px; background: #14171a; }
.cap-slab-l .band { right: 0; }
.cap-slab-r .band { left: 0; }
.led { position: absolute; left: 52px; top: 114px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

.obj > span.rotors { display: flex; left: 190px; top: 60px; width: 320px; height: 180px; display: flex; align-items: center; justify-content: center; gap: 0; perspective: 1100px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 17%, #000 83%, transparent 100%); /* taste-skill-ignore: window of the drums */
  mask-image: linear-gradient(to bottom, transparent 0, #000 17%, #000 83%, transparent 100%); /* taste-skill-ignore: window of the drums */ }
.pair { position: relative; display: flex; gap: 4px; transform-style: preserve-3d; }
.sep { width: 18px; height: 56px; position: relative; flex: none; }
.sep::before, .sep::after { content: ""; position: absolute; left: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.sep::before { top: 18px; } .sep::after { top: 34px; }
.drum { position: relative; display: block; width: 42px; height: 56px; transform-style: preserve-3d; transition: transform 1.5s var(--ease-out); }
.face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; border-radius: 5px; background: linear-gradient(to bottom, #b9b7b2 0, #ecebe8 30%, #ecebe8 70%, #b9b7b2 100%); color: #15181b; font: 700 40px/1 var(--font-display); /* taste-skill-ignore: drum curvature */ }

.refl { left: 30px; top: 30px; width: 640px; height: 240px; transform: translateZ(76px); pointer-events: none; transform-style: flat; }
.refl i { position: absolute; display: block; background: #fff; border-radius: 8px; }
.refl .r1 { left: 160px; top: 20px; width: 320px; height: 12px; opacity: 0.38; }
.refl .r2 { left: 180px; bottom: 22px; width: 280px; height: 5px; opacity: 0.16; }
.refl .r3 { left: 54px; top: 76px; width: 10px; height: 88px; opacity: 0.3; border-radius: 5px; }
.ground { left: 90px; top: 288px; width: 520px; height: 26px; border-radius: 50%; background: #000; opacity: 0.45; transform: translateZ(-140px); }

.unit-labels { position: absolute; left: 200px; top: 292px; width: 300px; display: flex; justify-content: space-between; font-size: 18px; line-height: 24px; color: var(--muted); }
.unit-labels span { width: 88px; text-align: center; }

/* open: the caps part, the drums wind down to zero */
.opened .cap-l { transform: translateX(-70px); }
.opened .cap-r { transform: translateX(70px); }

/* entrance: the transitions run when .intro is removed, so they can be interrupted */
.intro .cap-l { transform: translateX(-110px); }
.intro .cap-r { transform: translateX(110px); }
.intro .glass-slab { opacity: 0; }
.glass-slab { transition: opacity 0.9s var(--ease-out); }
.intro .rotors { opacity: 0; }
.rotors { transition: opacity 0.7s 0.3s var(--ease-out); }

/* ---------- open button and the dummy letter ---------- */
.open-btn { margin-top: 6px; min-height: 46px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); font: 600 16px/20px var(--font); cursor: pointer; transition: background 0.16s, transform 0.16s var(--ease-out); }
.open-btn:hover { background: rgb(63 196 177 / 0.14); }
.open-btn:active { transform: translateY(1px); }
.letter-wrap { display: grid; grid-template-rows: 0fr; width: 100%; max-width: 640px; transition: grid-template-rows 0.6s var(--ease-out); }
.letter-wrap.open { grid-template-rows: 1fr; }
.letter { min-height: 0; overflow: hidden; text-align: left; }
.letter-paper { margin-top: 22px; padding: 22px 28px 26px; border-radius: 16px; background: #f1efe9; color: #1b1e24; opacity: 0; transform: translateY(-28px) scale(0.96); transition: opacity 0.5s 0.12s var(--ease-out), transform 0.6s 0.12s var(--ease-out); }
.letter-wrap.open .letter-paper { opacity: 1; transform: none; }
.letter-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0 0 6px; font-size: 14px; line-height: 20px; color: #565d6b; }
.letter-meta .pill { background: #dfe3ea; color: #3d424d; border-radius: 999px; padding: 0 10px; font-weight: 600; }
.letter-body { margin: 0; font: 400 25px/36px var(--font-hand); color: #1f3c88; background: repeating-linear-gradient(to bottom, transparent 0 35px, #d6dcea 35px 36px); /* taste-skill-ignore: ruled letter paper */ }
.letter-body + .letter-body { margin-top: 36px; }

/* ---------- readout, controls ---------- */
.opens { margin: 22px 0 0; font: 500 28px/34px var(--font-display); letter-spacing: -0.01em; }
.opens-date { margin: 4px 0 24px; color: var(--muted); min-height: 26px; }
.when { border: 0; padding: 0; margin: 0 0 28px; display: grid; justify-items: center; gap: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--raised); color: var(--text); font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.16s, color 0.16s; }
.seg input:hover + span { background: #2e3338; }
.seg input:checked + span { background: var(--text); color: #15181b; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.custom { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.custom[hidden] { display: none; }
.custom input { min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--raised); color: var(--text); font: inherit; color-scheme: dark; }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 600 16px/20px var(--font); transition: background 0.16s, transform 0.16s var(--ease-out); }
.btn:hover { background: #5fd6c5; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--raised); color: var(--text); }
.btn.ghost:hover { background: #2e3338; }

/* ---------- sections ---------- */
.steps, .inside, .close { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.steps { padding-top: 24px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.steps h2 { position: sticky; top: 48px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { background: var(--surface); border-radius: 22px; padding: 26px 28px 28px; }
.steps li p { margin: 0; color: var(--muted); max-width: 46ch; text-wrap: pretty; }

.inside { padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.inside-text p { margin: 16px 0 0; color: var(--muted); max-width: 40ch; text-wrap: pretty; }
.bubble { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: end; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 8px; }
.avatar svg { width: 100%; height: auto; }
.bubble-body { background: var(--raised); border-radius: 22px 22px 22px 6px; padding: 18px 24px 22px; }
.bubble-body b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.hand { margin: 0; font: 400 25px/33px var(--font-hand); color: var(--hand); text-wrap: pretty; }

.close { text-align: center; display: grid; justify-items: center; gap: 28px; padding-bottom: 96px; }
.fine { max-width: 52ch; margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); text-wrap: pretty; }

@media (max-width: 860px) {
  .steps, .inside { grid-template-columns: 1fr; gap: 28px; }
  .steps h2 { position: static; }
  .steps, .inside, .close { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 560px) {
  .top { padding: 16px 20px; }
  .hero { padding: 20px 16px 80px; }
  .cta-row .btn { width: 100%; }
  .opens { font-size: 24px; line-height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .sway { animation: none; }
  .tilt, .cap, .drum, .glass-slab, .rotors, .letter-wrap, .letter-paper { transition-duration: 0.01ms; transition-delay: 0ms; }
}

/* ---------- behind the screen: slow glass rings, warm smudges, one frosted card ---------- */
.hero-bg {
  position: absolute; left: 0; right: 0; top: 0; height: 960px; overflow: hidden; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 62%, transparent 100%); /* taste-skill-ignore: fades into the ground */
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 62%, transparent 100%); /* taste-skill-ignore: fades into the ground */
  opacity: 0; transition: opacity 1.6s 0.2s var(--ease-out);
}
.hero-bg.on { opacity: 1; }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring { transform-box: view-box; transform-origin: 800px 640px; animation: turn var(--t, 180s) linear infinite; }
.r1 { --t: 140s; } .r2 { --t: 210s; animation-direction: reverse; } .r3 { --t: 280s; } .r4 { --t: 360s; animation-direction: reverse; }
.band { fill: none; stroke: rgb(170 205 205 / 0.07); stroke-width: 74; }
.rim { fill: none; stroke: url(#rim); stroke-width: 4; stroke-linecap: round; }
@keyframes turn { to { transform: rotate(360deg); } }
.glow { position: absolute; display: block; border-radius: 50%; filter: blur(46px); will-change: transform; animation: float 16s var(--ease-io) infinite alternate; }
.g1 { left: 14%; top: 300px; width: 420px; height: 120px; background: #e8812f; opacity: 0.4; transform: rotate(-26deg); }
.g2 { right: 12%; top: 560px; width: 380px; height: 110px; background: #d9672b; opacity: 0.32; transform: rotate(-18deg); animation-duration: 20s; animation-direction: alternate-reverse; }
.g3 { left: 38%; top: 120px; width: 360px; height: 160px; background: var(--accent); opacity: 0.12; }
@keyframes float { from { translate: -26px 8px; } to { translate: 30px -14px; } }

.glass-card {
  position: relative; width: min(860px, 100%); padding: 48px 56px 52px; border-radius: 32px; text-align: center;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.025) 45%, rgb(255 255 255 / 0.04)); /* taste-skill-ignore: glass sheen */
  border: 1px solid rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(26px) saturate(1.25); backdrop-filter: blur(26px) saturate(1.25); /* taste-skill-ignore: frosted card requested */
}
@media (max-width: 560px) { .glass-card { padding: 32px 22px 34px; border-radius: 26px; } .hero-bg { height: 860px; } }
@media (prefers-reduced-motion: reduce) { .ring, .glow { animation: none; } .hero-bg { transition-duration: 0.01ms; transition-delay: 0ms; } }
