/* Seasay — the studio's own look: light, calm, a bit of sea air. Sky on top, sand underneath,
   coral from the logo for the things you can press. The game keeps its own dark site.css. */
@font-face { font-family: "BeVN"; src: url("/fonts/BeVietnamPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BeVN"; src: url("/fonts/BeVietnamPro-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --sand: #fbf7f0;
  --sand2: #f4ede1;
  --card: #ffffff;
  --sky: #dff1f7;
  --sky2: #eef8fb;
  --sea: #3aa7bd;
  --sea2: #7cc9d6;
  --sea3: #b8e3ea;
  --deep: #17384c;
  --ink: #1f3a4b;
  --muted: #627987;
  --line: #e9e1d4;
  --coral: #f0684b;
  --coral2: #ff8f6b;
  --coral-ink: #c2472d;
  --sun: #ffd27e;
  --mint: #d8f1e8;
  --r: 22px;
  --shadow: 0 1px 2px rgba(23, 56, 76, 0.05), 0 12px 32px -12px rgba(23, 56, 76, 0.16);
  --shadow-lg: 0 2px 4px rgba(23, 56, 76, 0.05), 0 30px 60px -24px rgba(23, 56, 76, 0.28);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "BeVN", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 16.5px/1.7 var(--sans); overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--coral); }
img { max-width: 100%; display: block; }
svg { flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--deep); line-height: 1.22; margin: 0 0 0.5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sea2); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- buttons, chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 600 15px var(--sans); border: 0; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s; text-decoration: none; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.coral { background: var(--coral); color: #fff; box-shadow: 0 10px 22px -10px rgba(240, 104, 75, 0.8); }
.btn.coral:hover { background: var(--coral-ink); color: #fff; transform: translateY(-2px); }
.btn.line { background: rgba(255, 255, 255, 0.7); color: var(--deep); box-shadow: inset 0 0 0 1.5px rgba(23, 56, 76, 0.16); backdrop-filter: blur(6px); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--coral); color: var(--coral-ink); transform: translateY(-2px); }
.btn.ghost { background: none; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { color: var(--coral-ink); }
.btn.wide { width: 100%; justify-content: center; }
.btn.big { padding: 15px 28px; font-size: 16px; }
.btn.line svg[viewBox] path[d^="M8 5.5"], .btn svg path[d^="M8 5.5"] { fill: currentColor; stroke: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--sky); color: #1f6f82; letter-spacing: 0.01em; }
.chip.soft { background: #fdeee4; color: var(--coral-ink); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: #1f6f82; }
.tag.t-log { background: var(--mint); color: #2b7a5f; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin: 0 0 10px; }

/* ---------------------------------------------------------------- header */
.top { position: fixed; z-index: 40; top: 12px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 24px), 1240px); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 16px; border-radius: 999px; transition: background 0.3s, box-shadow 0.3s; }
.top.solid { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--deep); font: 600 22px var(--serif); letter-spacing: 0.01em; }
.brand:hover { color: var(--deep); }
.brand img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 6px 14px -6px rgba(23, 56, 76, 0.5); }
.menu { display: flex; align-items: center; gap: 2px; }
.menu a { color: var(--ink); font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.menu a:hover { background: rgba(58, 167, 189, 0.1); color: var(--deep); }
.menu a.on { color: var(--coral-ink); background: #fdeee4; }
.menu .pill-link { color: var(--coral-ink); }
.menu .pill-link svg { width: 16px; height: 16px; fill: var(--coral); stroke: none; }
.menu .me { background: var(--deep); color: #fff; margin-left: 6px; }
.menu .me:hover { background: var(--sea); color: #fff; }
.menu .me i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; font-size: 12px; margin-left: -6px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--deep); transition: transform 0.3s, opacity 0.3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.notice { position: relative; z-index: 2; margin: 84px auto -60px; width: fit-content; max-width: calc(100% - 32px); background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14px; box-shadow: var(--shadow); text-align: center; }
.home .notice { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; top: 80px; }
.notice a { font-weight: 600; color: var(--coral-ink); white-space: nowrap; }

/* ---------------------------------------------------------------- waves */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; pointer-events: none; overflow: hidden; }
.waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.waves path { fill: var(--sand); }
.waves .w1 { opacity: 0.35; animation: drift 22s linear infinite; bottom: 18px; }
.waves .w1 path { fill: var(--sea2); }
.waves .w2 { opacity: 0.45; animation: drift 15s linear infinite reverse; bottom: 8px; }
.waves .w2 path { fill: var(--sea3); }
.waves .w3 { animation: drift 30s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* the paths only cover 1440 units: draw them twice so the drift never shows an edge */
.waves svg { background: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(100vh, 900px); padding: 140px 24px 170px; background: linear-gradient(180deg, #cfeaf3 0%, #e6f5f9 42%, #fbf3e8 100%); overflow: hidden; display: flex; align-items: center; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; width: 230px; height: 230px; right: 9%; top: 15%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff3cf, #ffd682 55%, #ffc46a); box-shadow: 0 0 120px 40px rgba(255, 210, 126, 0.45); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); box-shadow: 0 0 150px 55px rgba(255, 210, 126, 0.5); } }
.cloud { position: absolute; height: 46px; border-radius: 999px; background: #fff; opacity: 0.9; filter: drop-shadow(0 10px 18px rgba(23, 56, 76, 0.06)); animation: float-x linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 56%; height: 150%; left: 14%; bottom: 20%; }
.cloud::after { width: 38%; height: 120%; right: 12%; bottom: 25%; }
.c1 { width: 170px; top: 18%; left: -200px; animation-duration: 70s; }
.c2 { width: 120px; top: 34%; left: -200px; animation-duration: 95s; animation-delay: -40s; opacity: 0.75; transform: scale(0.8); }
.c3 { width: 210px; top: 9%; left: -260px; animation-duration: 120s; animation-delay: -80s; opacity: 0.7; }
@keyframes float-x { from { translate: 0 0; } to { translate: calc(100vw + 300px) 0; } }
.bird { position: absolute; width: 22px; height: 10px; border-top: 2px solid rgba(23, 56, 76, 0.45); border-radius: 50% 50% 0 0; animation: fly 26s linear infinite; }
.bird::after { content: ""; position: absolute; left: 10px; top: -2px; width: 22px; height: 10px; border-top: 2px solid rgba(23, 56, 76, 0.45); border-radius: 50% 50% 0 0; }
.b1 { top: 22%; left: -40px; }
.b2 { top: 27%; left: -80px; animation-delay: -9s; scale: 0.7; }
@keyframes fly { 0% { translate: 0 0; } 50% { translate: 55vw -30px; } 100% { translate: 110vw 10px; } }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #1f6f82; background: rgba(255, 255, 255, 0.72); padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow); margin: 0 0 24px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ccf91; box-shadow: 0 0 0 4px rgba(60, 207, 145, 0.2); animation: ping 2.4s ease-in-out infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 8px rgba(60, 207, 145, 0.05); } }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); letter-spacing: -0.01em; margin-bottom: 20px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: #3e5868; max-width: 560px; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; height: 440px; }
.polaroid { position: absolute; width: 74%; background: #fff; padding: 10px 10px 14px; border-radius: 18px; box-shadow: var(--shadow-lg); color: var(--deep); font: 500 15px var(--serif); text-align: center; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0s; animation: bob 7s ease-in-out infinite; }
.polaroid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 11px; margin-bottom: 10px; }
.polaroid.p0 { right: 0; top: 30px; rotate: 4deg; z-index: 3; }
.polaroid.p1 { left: 0; top: 150px; rotate: -6deg; z-index: 2; animation-delay: -2.5s; }
.polaroid.p2 { right: 12%; top: 230px; rotate: 9deg; z-index: 1; animation-delay: -5s; width: 58%; }
.polaroid:hover { transform: translateY(-10px) scale(1.03); z-index: 5; color: var(--coral-ink); }
@keyframes bob { 50% { translate: 0 -10px; } }
.boat { position: absolute; z-index: 3; bottom: 64px; left: 12%; width: 96px; animation: sail 30s ease-in-out infinite, rock 4s ease-in-out infinite; }
.boat .hull { fill: #fff; stroke: rgba(23, 56, 76, 0.25); stroke-width: 1.5; }
.boat .sail { fill: var(--coral); }
.boat .sail2 { fill: #ffe0d3; }
@keyframes sail { 0%, 100% { translate: 0 0; } 50% { translate: 50vw 0; } }
@keyframes rock { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
.hero .waves { height: 150px; z-index: 2; }

/* ---------------------------------------------------------------- sections */
.sec { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 96px 24px; }
.sec.narrow { max-width: 860px; }
.sec-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.sec-head p:last-child { color: var(--muted); font-size: 17px; }
.sec-head.row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; text-align: left; flex-wrap: wrap; }

/* product rows on the home page */
.prows { display: flex; flex-direction: column; gap: 72px; }
.prow { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.prow.rev .prow-img { order: 2; }
.prow-img { position: relative; display: block; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; background: var(--sky); rotate: -1.2deg; transition: rotate 0.5s, transform 0.5s; }
.prow.rev .prow-img { rotate: 1.2deg; }
.prow-img:hover { rotate: 0deg; transform: translateY(-6px); }
.prow-img > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.prow-img:hover > img:first-child { transform: scale(1.05); }
.prow-logo { position: absolute; left: 18px; bottom: 18px; width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.6); }
.prow-text h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 2px; }
.en { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 0 0 14px; }
.tagline { font-size: 18px; color: #3e5868; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #2b7a5f; background: var(--mint); padding: 6px 14px; border-radius: 999px; }
.live svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.prow-text .actions { margin-top: 22px; }
.prow-next { display: flex; gap: 20px; align-items: center; padding: 26px 30px; border-radius: var(--r); border: 2px dashed #d9cfbf; background: rgba(255, 255, 255, 0.5); max-width: 760px; margin: 0 auto; }
.prow-next h3 { font-size: 21px; margin-bottom: 4px; }
.prow-next p { margin: 0; color: var(--muted); }
.bubble { width: 54px; height: 54px; border-radius: 18px; background: #fdeee4; display: grid; place-items: center; flex: none; }
.bubble svg { width: 26px; height: 26px; fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bubble.big { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 24px; }
.bubble.big svg { width: 34px; height: 34px; }

/* the studio's story */
.story { max-width: none; background: linear-gradient(180deg, var(--sand) 0%, #f1e9da 50%, var(--sand) 100%); }
.story-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: start; }
.story-card { position: relative; background: var(--card); border-radius: 28px; padding: 48px 52px; box-shadow: var(--shadow); }
.story-card::before { content: "“"; position: absolute; top: -22px; left: 34px; font: 600 120px/1 var(--serif); color: var(--sun); }
.story-card h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.story-card p { color: #3e5868; font-size: 17px; }
.sign { font-family: var(--serif); font-style: italic; color: var(--coral-ink) !important; margin: 18px 0 0; }
.story-side { display: flex; flex-direction: column; gap: 14px; }
.stat { background: var(--card); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 18px; }
.stat b { font: 600 40px/1 var(--serif); color: var(--sea); min-width: 46px; text-align: center; }
.stat:nth-child(2) b { color: var(--coral); }
.stat:nth-child(3) b { color: #e2a43a; }
.stat span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.crafts { list-style: none; margin: 0; padding: 18px 20px; background: var(--deep); border-radius: var(--r); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.crafts li { display: flex; gap: 10px; align-items: flex-start; color: #fff; }
.crafts svg { width: 22px; height: 22px; fill: none; stroke: var(--sea2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.crafts b { display: block; font-size: 14px; }
.crafts span { font-size: 12.5px; color: #a9c3cf; }

/* ways to help */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.help-grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.hcard { display: block; text-align: left; background: var(--card); border: 0; border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow); color: var(--ink); font: inherit; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.hcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.hcard h3 { font-size: 20px; margin: 16px 0 6px; }
.hcard p { margin: 0; color: var(--muted); font-size: 15px; }
.hic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--sky); }
.hic svg { width: 24px; height: 24px; fill: none; stroke: #1f6f82; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hcard:nth-child(2) .hic { background: var(--mint); }
.hcard:nth-child(2) .hic svg { stroke: #2b7a5f; }
.hcard:nth-child(3) .hic { background: #fff3d6; }
.hcard:nth-child(3) .hic svg { stroke: #b07a17; }
.hcard.warm { background: linear-gradient(160deg, #ff8f6b, #f0684b); color: #fff; }
.hcard.warm h3, .hcard.warm p { color: #fff; }
.hcard.warm .hic { background: rgba(255, 255, 255, 0.22); }
.hcard.warm .hic svg { stroke: #fff; fill: rgba(255, 255, 255, 0.3); }
.done { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: #2b7a5f; }

/* news cards */
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ncard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform 0.3s, box-shadow 0.3s; }
.ncard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.ncard-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky); }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.ncard:hover .ncard-img img { transform: scale(1.06); }
.ncard-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ncard .tag { align-self: flex-start; }
.ncard h3 { font-size: 20px; margin: 12px 0 6px; }
.ncard p { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 12px; }
.ncard time { font-size: 13px; color: #94a6b0; }

/* product grid (the products page) */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; background: var(--card); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform 0.3s, box-shadow 0.3s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.pcard-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.pcard-img > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.pcard:hover .pcard-img > img:first-child { transform: scale(1.05); }
.pcard-logo { position: absolute; left: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 14px; }
.pcard-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 { font-size: 24px; margin-bottom: 2px; }
.pcard p { color: var(--muted); font-size: 15.5px; }
.go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--coral-ink); }
.go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s; }
.pcard:hover .go svg { transform: translateX(4px); }

/* newsletter */
.letter { padding-bottom: 150px; }
.letter-card { position: relative; max-width: 720px; margin: 0 auto; text-align: center; background: var(--card); border-radius: 30px; padding: 54px 48px 46px; box-shadow: var(--shadow-lg); background-image: repeating-linear-gradient(135deg, var(--coral) 0 14px, #fff 14px 26px, var(--sea) 26px 40px, #fff 40px 52px); background-size: 100% 8px; background-repeat: no-repeat; }
.letter-card h2 { font-size: clamp(28px, 3.4vw, 40px); }
.letter-card > p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.stamp { position: absolute; top: 22px; right: 26px; width: 58px; height: 66px; display: grid; place-items: center; background: #fff3d6; border: 2px dashed #e7c27a; border-radius: 6px; rotate: 8deg; }
.stamp svg { width: 28px; height: 28px; fill: none; stroke: #b07a17; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.subscribe { max-width: 500px; margin: 0 auto; }
.sub-row { display: flex; gap: 8px; background: var(--sand); padding: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.sub-row:focus-within { box-shadow: inset 0 0 0 2px var(--sea2); }
.sub-row input { flex: 1; min-width: 0; background: none; border: 0; padding: 10px 16px; font: 16px var(--sans); color: var(--ink); outline: none; }
.subscribe .msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14.5px; color: #2b7a5f; }
.subscribe .msg.err { color: var(--coral-ink); }

/* ---------------------------------------------------------------- inner pages */
.phead { position: relative; padding: 150px 24px 130px; text-align: center; background: linear-gradient(180deg, #cfeaf3 0%, #e9f6f9 60%, var(--sand) 100%); overflow: hidden; }
.phead-in { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.phead h1 { font-size: clamp(36px, 5vw, 58px); }
.phead p:last-child { color: #3e5868; font-size: 18px; margin: 0; }
.phead .waves { height: 100px; }
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.tab { padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: var(--shadow); font-size: 15px; }
.tab.on { background: var(--deep); color: #fff; }

.art { padding-top: 110px; }
.art-hero { max-width: 980px; margin: 0 auto; padding: 30px 24px 10px; text-align: center; }
.art-hero-in { max-width: 760px; margin: 0 auto 30px; }
.art-hero .chips { justify-content: center; }
.art-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 14px 0 8px; }
.art-hero .lead { font-size: 19px; color: #3e5868; }
.back { display: inline-block; font-size: 14px; margin-bottom: 16px; color: var(--muted); }
.art-cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.prose { max-width: 720px; margin: 0 auto; padding: 40px 24px 20px; font-size: 18px; }
.prose h2 { font-size: 30px; margin-top: 1.6em; }
.prose h3 { font-size: 23px; margin-top: 1.4em; }
.prose img { border-radius: 18px; margin: 1.6em auto; box-shadow: var(--shadow); }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; background: #fff; border-left: 4px solid var(--coral); border-radius: 0 16px 16px 0; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--deep); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--coral); }
.share { max-width: 720px; margin: 10px auto 40px; padding: 18px 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); }
.share span { color: var(--muted); font-size: 14px; }
.share a, .share button { font: 600 14px var(--sans); padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--deep); box-shadow: var(--shadow); border: 0; cursor: pointer; }

/* support page */
.give { display: flex; gap: 28px; align-items: center; background: var(--card); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); margin-top: 24px; }
.qr { margin: 0; flex: none; text-align: center; }
.qr img { width: 200px; height: 200px; object-fit: contain; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 8px; }
.qr figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.give-text { flex: 1; }
.note-box { background: var(--sand); border-radius: 16px; padding: 14px 20px; margin-bottom: 18px; }
.note-box p { margin: 0.4em 0; }

/* forms */
.card-form, .auth-card form { display: flex; flex-direction: column; gap: 16px; }
.card-form { background: var(--card); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--deep); }
input, textarea, select { font: 16px var(--sans); color: var(--ink); background: var(--sand); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border 0.2s, background 0.2s; width: 100%; }
input:focus, textarea:focus { outline: none; border-color: var(--sea2); background: #fff; }
textarea { resize: vertical; }
.chk { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.chk input { width: 18px; height: 18px; accent-color: var(--coral); }
.ok { background: var(--mint); color: #22654f; padding: 12px 18px; border-radius: 14px; }
.err { background: #fdeae5; color: var(--coral-ink); padding: 12px 18px; border-radius: 14px; }
.auth-wrap { min-height: 100vh; padding: 130px 16px 80px; display: grid; place-items: center; background: radial-gradient(ellipse at 20% 0%, #d6eef5, transparent 60%), radial-gradient(ellipse at 90% 30%, #fde6d6, transparent 50%), var(--sand); }
.auth-card { width: min(440px, 100%); background: var(--card); border-radius: 30px; padding: 40px 36px; box-shadow: var(--shadow-lg); text-align: center; }
.auth-card form { text-align: left; margin: 22px 0 16px; }
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.auth-logo { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 18px; }
.avatar { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--coral2), var(--coral)); color: #fff; display: grid; place-items: center; font: 600 28px var(--serif); }
.acc-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.acc-actions form { margin: 0; }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; background: var(--deep); color: #c5d7df; padding: 50px 24px 26px; margin-top: 130px; }
.foot .foot-waves { top: -119px; bottom: auto; height: 120px; }
.foot-waves .w3 path { fill: var(--deep); }
.foot-in { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot p { font-size: 15px; }
.foot .small { color: #8fabb8; }
.foot h4 { margin: 4px 0 14px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sea2); }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col a { color: #c5d7df; font-size: 15px; word-break: break-word; }
.foot-col a:hover { color: #fff; }
.copy { position: relative; z-index: 2; max-width: var(--wrap); margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #8fabb8; }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1000px) {
  .hero { padding-top: 170px; }
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { height: 300px; max-width: 520px; width: 100%; margin: 0 auto; }
  .polaroid.p1 { top: 90px; }
  .polaroid.p2 { top: 150px; }
  .sun { width: 150px; height: 150px; right: 6%; top: 10%; }
  .prow, .prow.rev { grid-template-columns: 1fr; gap: 26px; }
  .prow.rev .prow-img { order: 0; }
  .story-in { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr 1fr; }
  .ngrid { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .burger { display: flex; }
  .menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(14px); border-radius: 24px; padding: 10px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s; }
  .menu.open { opacity: 1; pointer-events: auto; transform: none; }
  .menu a { padding: 12px 16px; }
  .menu .me { margin: 6px 0 0; justify-content: center; }
  .top { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
  .home .notice { top: 76px; width: calc(100% - 32px); border-radius: 16px; font-size: 13px; padding: 7px 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 130px 16px 150px; min-height: auto; }
  .home .notice + main .hero, .home .notice ~ main .hero { padding-top: 170px; }
  .hero-art { height: 240px; }
  .polaroid { padding: 7px 7px 10px; font-size: 13px; border-radius: 14px; }
  .sec { padding: 64px 16px; }
  .sec-head { margin-bottom: 32px; }
  .prows { gap: 52px; }
  .prow-next { flex-direction: column; text-align: center; padding: 22px; }
  .story-card { padding: 36px 24px 28px; }
  .crafts { grid-template-columns: 1fr; }
  .help-grid, .help-grid.three, .ngrid { grid-template-columns: 1fr; }
  .letter-card { padding: 50px 20px 32px; }
  .stamp { width: 46px; height: 52px; top: 16px; right: 16px; }
  .sub-row { flex-direction: column; border-radius: 20px; }
  .sub-row .btn { justify-content: center; }
  .phead { padding: 130px 16px 100px; }
  .give { flex-direction: column; text-align: center; padding: 24px; }
  .two { grid-template-columns: 1fr; }
  .card-form { padding: 24px 18px; }
  .auth-card { padding: 32px 20px; }
  .foot-in { grid-template-columns: 1fr; gap: 26px; }
  .boat { width: 70px; bottom: 54px; }
}
/* ================================================================ accounts */
.menu .adm { background: #e3f3f8; color: #1f6f82; font-weight: 600; }
.menu .adm:hover { background: var(--sea); color: #fff; }
.menu .me img { width: 24px; height: 24px; border-radius: 50%; margin-left: -6px; object-fit: cover; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 18px; border-radius: 999px; background: #fff; color: #1f1f1f; font: 600 15.5px var(--sans); box-shadow: inset 0 0 0 1.5px #dadce0, 0 2px 6px rgba(23, 56, 76, 0.06); transition: box-shadow 0.2s, transform 0.2s; margin: 18px 0 4px; }
.gbtn:hover { color: #1f1f1f; box-shadow: inset 0 0 0 1.5px var(--sea2), 0 8px 18px -8px rgba(23, 56, 76, 0.3); transform: translateY(-1px); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card.wide { width: min(520px, 100%); }
.avatar.img { object-fit: cover; padding: 0; box-shadow: 0 0 0 4px #fff, 0 10px 24px -10px rgba(23, 56, 76, 0.5); }
.sid-card { position: relative; margin: 18px 0; padding: 18px 20px 16px; border-radius: 20px; background: linear-gradient(135deg, var(--deep), #24556f); color: #fff; text-align: left; overflow: hidden; }
.sid-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 104, 75, 0.55), transparent 70%); }
.sid-label { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea2); }
.sid-label svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sid { display: block; font: 600 26px/1.3 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: 0.08em; margin: 6px 0 4px; }
.sid-copy { position: absolute; right: 16px; top: 16px; z-index: 1; background: rgba(255, 255, 255, 0.14); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font: 600 12px var(--sans); cursor: pointer; }
.sid-copy:hover { background: rgba(255, 255, 255, 0.25); }
.sid-card p { margin: 0; font-size: 13.5px; color: #b9d3de; position: relative; z-index: 1; }
.acc-info { margin: 0 0 16px; display: grid; gap: 8px; text-align: left; }
.acc-info div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 4px; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.acc-info dt { color: var(--muted); }
.acc-info dd { margin: 0; text-align: right; word-break: break-all; }
.ver { font-size: 12px; color: #2b7a5f; background: var(--mint); padding: 2px 8px; border-radius: 999px; }

/* ================================================================ the oil lamp */
.lamp { overflow: visible; }
.lamp .lamp-halo { transform-origin: 60px 72px; animation: halo 3.2s ease-in-out infinite; opacity: 0.75; }
.lamp .lamp-flame, .lamp .lamp-core { transform-origin: 60px 74px; animation: flick 1.6s ease-in-out infinite; }
.lamp .lamp-core { animation-duration: 1.1s; }
@keyframes flick { 0%, 100% { transform: scale(1, 1) rotate(0deg); } 25% { transform: scale(0.96, 1.06) rotate(-2deg); } 50% { transform: scale(1.03, 0.95) rotate(1.5deg); } 75% { transform: scale(0.98, 1.04) rotate(-1deg); } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 0.9; } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffcf6e; box-shadow: 0 0 0 0 rgba(255, 207, 110, 0.7); animation: livepulse 2s infinite; display: inline-block; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 10px rgba(255, 207, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 207, 110, 0); } }
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; bottom: -12px; left: var(--x); width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #fff3c4, #ffb54a 60%, transparent 70%); box-shadow: 0 0 10px 2px rgba(255, 181, 74, 0.6); opacity: 0; transform: scale(var(--s)); animation: ember var(--t) linear var(--d) infinite; }
@keyframes ember { 0% { translate: 0 0; opacity: 0; } 10% { opacity: 1; } 50% { translate: 18px -170px; } 85% { opacity: 0.7; } 100% { translate: -12px -360px; opacity: 0; } }

/* ================================================================ pre-registration banner (home) */
.pr-banner-wrap { position: relative; max-width: var(--wrap); margin: -40px auto 0; padding: 0 24px; z-index: 3; }
.pr-banner { position: relative; overflow: hidden; border-radius: 32px; min-height: 340px; display: grid; grid-template-columns: 0.75fr 1.25fr; align-items: center; gap: 20px; padding: 40px 48px; color: #f7ecd9; background: #0f2233; box-shadow: 0 40px 80px -36px rgba(15, 34, 51, 0.65); isolation: isolate; }
.prb-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; opacity: 0.45; z-index: -2; animation: kenburns 30s ease-in-out infinite alternate; }
.pr-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 22% 55%, rgba(255, 178, 84, 0.35), transparent 55%), linear-gradient(100deg, rgba(10, 24, 37, 0.55) 0%, rgba(10, 24, 37, 0.92) 55%); }
.pr-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; background: linear-gradient(120deg, rgba(255, 207, 110, 0.7), transparent 40%, transparent 60%, rgba(124, 201, 214, 0.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translateX(-2%); } }
.prb-lamp { display: grid; place-items: center; }
.prb-lamp .lamp { width: min(190px, 100%); filter: drop-shadow(0 20px 40px rgba(255, 170, 70, 0.35)); animation: sway 6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes sway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
.prb-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #ffcf6e; margin: 0 0 10px; }
.prb-text h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); margin-bottom: 8px; text-shadow: 0 0 40px rgba(255, 190, 100, 0.35); }
.prb-text > p { color: #d6c9b4; max-width: 560px; }
.prb-count { font-size: 15px; }
.prb-count b { font: 600 28px var(--serif); color: #ffcf6e; margin-right: 6px; }
.prb-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #9fd6e0; font-weight: 600; font-size: 14.5px; }
.prb-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.prb-more:hover { color: #fff; }

/* the form (banner + page) */
.pr-form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.pr-form input, .pr-form select { background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 255, 255, 0.18); color: #fff; border-radius: 14px; }
.pr-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.pr-form input:focus, .pr-form select:focus { border-color: #ffcf6e; background: rgba(255, 255, 255, 0.12); outline: none; }
.pr-form select option { color: var(--ink); }
.pr-row { display: flex; gap: 8px; }
.pr-row input { flex: 1; min-width: 0; }
.pr-btn { position: relative; overflow: hidden; border: 0; cursor: pointer; padding: 0 24px; border-radius: 14px; font: 600 15.5px var(--sans); color: #2a1606; background: linear-gradient(135deg, #ffe08f, #ffb04c); box-shadow: 0 10px 30px -8px rgba(255, 176, 76, 0.75); white-space: nowrap; transition: transform 0.2s, box-shadow 0.2s; min-height: 48px; }
.pr-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.pr-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 176, 76, 0.9); }
.pr-btn:disabled { opacity: 0.7; cursor: wait; }
.pr-opts { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 14px; color: #d6c9b4; }
.pr-opts label { color: #d6c9b4; font-weight: 400; flex-direction: row; align-items: center; gap: 8px; }
.pr-opts select { padding: 6px 10px; width: auto; }
.pr-msg { min-height: 1.3em; margin: 2px 0 0; font-size: 14.5px; color: #9fe3c4; }
.pr-msg.err { color: #ffb3a1; }
.pr-msg b { color: #ffcf6e; }

/* ================================================================ pre-registration page */
.prereg-page { background: #0b1826; }
.prereg-page .top:not(.solid) .brand, .prereg-page .top:not(.solid) .menu a:not(.me):not(.adm):not(.pill-link):not(.on) { color: #f2e7d4; }
.prereg-page .top:not(.solid) .burger span { background: #f2e7d4; }
.prereg-page .top.solid { background: rgba(11, 24, 38, 0.82); }
.prereg-page .top.solid .brand, .prereg-page .top.solid .menu a:not(.me):not(.adm):not(.pill-link):not(.on) { color: #f2e7d4; }
.pr-hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 130px 24px 110px; overflow: hidden; color: #f2e7d4; background: radial-gradient(ellipse at 30% 70%, #2b2416 0%, transparent 55%), linear-gradient(180deg, #08131f 0%, #0d2131 55%, #13293a 100%); isolation: isolate; }
.pr-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.22; z-index: -2; animation: kenburns 40s ease-in-out infinite alternate; }
#pr-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.pr-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; background: linear-gradient(180deg, transparent, rgba(11, 24, 38, 0.95)); }
.pr-in { width: 100%; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.pr-lamp { position: relative; display: grid; place-items: center; }
.pr-lamp .lamp { width: min(300px, 70vw); animation: sway 7s ease-in-out infinite; transform-origin: 50% 0; filter: drop-shadow(0 30px 60px rgba(255, 170, 70, 0.3)); transition: filter 1s; }
.pr-lamp.lit .lamp { filter: drop-shadow(0 0 70px rgba(255, 200, 110, 0.85)); }
.pr-lamp.lit .lamp-halo { animation: halo-lit 2.4s ease-in-out infinite; }
@keyframes halo-lit { 0%, 100% { transform: scale(1.4); opacity: 0.95; } 50% { transform: scale(1.55); opacity: 1; } }
.ripple { position: absolute; left: 50%; bottom: -10px; width: 220px; height: 40px; margin-left: -110px; border-radius: 50%; border: 1.5px solid rgba(255, 207, 110, 0.4); opacity: 0; animation: ripple 5s ease-out infinite; }
.ripple.r2 { animation-delay: 1.6s; }
.ripple.r3 { animation-delay: 3.2s; }
@keyframes ripple { 0% { transform: scale(0.3); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }
.pr-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #ffcf6e; margin: 0 0 14px; }
.pr-title { margin: 0 0 14px; color: #fff; }
.pr-title span { display: block; font-size: clamp(44px, 6.5vw, 84px); line-height: 1.08; padding-bottom: 0.06em; background: linear-gradient(180deg, #fff6e0 30%, #ffc66b); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pr-title small { display: block; font: italic 500 clamp(18px, 2vw, 24px) var(--serif); color: #b9a98f; margin-top: 6px; animation: rise 1.2s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.pr-lead { color: #d6c9b4; font-size: 18px; max-width: 560px; animation: rise 1.2s 0.3s both; }
.pr-count { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; animation: rise 1.2s 0.4s both; }
.pr-count b { font: 600 46px/1 var(--serif); color: #ffcf6e; text-shadow: 0 0 30px rgba(255, 207, 110, 0.5); }
.pr-count span { color: #b9a98f; }
.pr-card { position: relative; max-width: 560px; perspective: 1400px; animation: rise 1.2s 0.5s both; }
.pr-front, .pr-back { border-radius: 26px; padding: 28px 28px 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.9s cubic-bezier(0.3, 1.3, 0.4, 1); }
.pr-front h2, .pr-back h2 { color: #fff; font-size: 24px; }
.pr-back { position: absolute; inset: 0; transform: rotateY(180deg); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(255, 207, 110, 0.18), rgba(255, 255, 255, 0.05)); overflow: auto; }
.pr-card.done .pr-front { transform: rotateY(-180deg); }
.pr-card.done .pr-back { transform: rotateY(0); }
.pr-back p { color: #e6dac6; max-width: 420px; }
.pr-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #2a1606; background: linear-gradient(135deg, #ffe08f, #ffb04c); box-shadow: 0 0 40px rgba(255, 190, 90, 0.7); margin-bottom: 10px; flex: none; }
.pr-card.done .pr-check { animation: pop 0.7s 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.pr-num b { font: 600 34px var(--serif); color: #ffcf6e; }
.pr-share { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pr-share .btn.line { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); }
.pr-back .done { color: #9fe3c4; }
.pr-note { font-size: 13.5px; color: #a99c86; margin: 12px 0 0; }
.pr-note a, .pr-note b { color: #ffcf6e; }
.pr-down { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 14px; }
.pr-down span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #ffcf6e; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.burst { position: fixed; z-index: 60; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff6d6, #ffb04c); box-shadow: 0 0 12px #ffcf6e; animation: burst 1.2s cubic-bezier(0.1, 0.7, 0.3, 1) forwards; }
@keyframes burst { to { transform: translate(var(--bx), var(--by)) scale(0.2); opacity: 0; } }

/* sections below the hero (dark) */
.prereg-page main { background: #0b1826; color: #e6dac6; }
.prereg-page .sec-head h2 { color: #fff; }
.prereg-page .sec-head p:last-child { color: #a99c86; }
.prereg-page .eyebrow { color: #ffcf6e; }
.prereg-page .hcard { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: #e6dac6; cursor: default; }
.prereg-page .hcard h3 { color: #fff; }
.prereg-page .hcard p { color: #b9a98f; }
.prereg-page .hcard .hic { background: rgba(255, 207, 110, 0.14); }
.prereg-page .hcard .hic svg { stroke: #ffcf6e; }
.goals { position: relative; padding: 40px 0 10px; }
.goals-track { position: absolute; left: 0; right: 0; top: 52px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.goals-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ffb04c, #ffe08f); box-shadow: 0 0 18px rgba(255, 190, 90, 0.8); transition: width 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
.goals.in .goals-fill { width: var(--p); }
.goals ol { list-style: none; margin: 0; padding: 0; position: relative; height: 110px; }
.goals li { position: absolute; left: var(--at); transform: translateX(-100%); width: min(220px, 30vw); text-align: right; padding-top: 34px; }
.goals li::before { content: ""; position: absolute; right: -9px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #0b1826; border: 3px solid rgba(255, 255, 255, 0.25); }
.goals li.done::before { border-color: #ffcf6e; background: #ffcf6e; box-shadow: 0 0 20px #ffcf6e; }
.goals li b { display: block; font: 600 24px var(--serif); color: #fff; }
.goals li.done b { color: #ffcf6e; }
.goals li span { font-size: 14px; color: #b9a98f; }
.pr-strip { overflow: hidden; padding: 30px 0 90px; background: #0b1826; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.pr-strip-in { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.pr-strip img { height: 180px; width: auto; border-radius: 16px; opacity: 0.85; }
@keyframes marquee { to { transform: translateX(-50%); } }
.prereg-page .foot { margin-top: 0; }
.prereg-page .foot-waves { display: none; }

@media (max-width: 900px) {
  .pr-banner { grid-template-columns: 1fr; padding: 34px 24px; text-align: left; }
  .prb-lamp .lamp { width: 120px; }
  .prb-lamp { justify-content: start; }
  .pr-in { grid-template-columns: 1fr; gap: 10px; }
  .pr-lamp .lamp { width: 150px; }
  .goals ol { height: auto; display: grid; gap: 14px; }
  .goals li { position: static; transform: none; width: auto; text-align: left; padding: 0 0 0 30px; }
  .goals li::before { left: 0; right: auto; }
  .goals-track { display: none; }
}
@media (max-width: 640px) {
  .pr-banner-wrap { padding: 0 12px; margin-top: -30px; }
  .pr-row { flex-direction: column; }
  .pr-btn { min-height: 50px; }
  .pr-hero { padding: 110px 16px 90px; }
  .pr-front, .pr-back { padding: 22px 18px 18px; }
  .pr-strip img { height: 120px; }
}

.small-note { font-size: 13.5px; margin-top: 14px; }
/* ================================================================ phones and small tablets */
.tabbar { display: none; }
a, button { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:active, .hcard:active, .pcard:active, .ncard:active, .tabbar a:active { transform: scale(0.97); }
  .prow-img:hover, .pcard:hover, .ncard:hover, .hcard:hover { transform: none; }
}

@media (max-width: 820px) {
  /* the bottom bar */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -18px rgba(23, 56, 76, 0.35); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 4px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; border-radius: 14px; transition: color 0.2s, transform 0.15s; }
  .tabbar .tb-ic { display: grid; place-items: center; width: 28px; height: 28px; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
  .tabbar a.on { color: var(--coral-ink); }
  .tabbar a.on .tb-ic { background: #fdeee4; border-radius: 10px; }
  .tabbar .tb-main { color: #2a1606; }
  .tabbar .tb-main .tb-ic { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: linear-gradient(135deg, #ffe08f, #ffb04c); box-shadow: 0 8px 20px -6px rgba(255, 150, 60, 0.8), 0 0 0 4px #fff; }
  .tabbar .tb-main svg { width: 26px; height: 26px; stroke: #5a2e0c; fill: rgba(255, 255, 255, 0.45); }
  .tabbar .tb-main.on .tb-ic { background: linear-gradient(135deg, #ffd36e, #ff9a3c); border-radius: 50%; }
  .tabbar .tb-main .tb-t { color: var(--coral-ink); }
  .tabbar .tb-t { white-space: nowrap; font-size: 10.5px; letter-spacing: -0.01em; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .prereg-page .tabbar { background: rgba(11, 24, 38, 0.92); box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08); }
  .prereg-page .tabbar a { color: #a99c86; }
  .prereg-page .tabbar a.on .tb-ic { background: rgba(255, 207, 110, 0.14); }
  .prereg-page .tabbar .tb-main .tb-ic, .prereg-page .tabbar .tb-main.on .tb-ic { background: linear-gradient(135deg, #ffe08f, #ffb04c); box-shadow: 0 0 22px rgba(255, 180, 80, 0.75), 0 0 0 4px #0b1826; }
  .prereg-page .tabbar .tb-main .tb-t { color: #ffcf6e; }
  /* the dark page keeps a dark header on phones */
  .prereg-page .top, .prereg-page .top.solid { background: rgba(11, 24, 38, 0.78); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
  .prereg-page .top .brand { color: #f2e7d4; }
  .prereg-page .top .burger span { background: #f2e7d4; }
  .prereg-page .menu { background: rgba(14, 30, 46, 0.97); }
  .prereg-page .menu a { color: #f2e7d4 !important; }
  .prereg-page .menu a:hover, .prereg-page .menu a.on { background: rgba(255, 207, 110, 0.12); }

  /* the header gets lighter: logo + menu button (the main places are in the bottom bar) */
  .top { top: 8px; width: calc(100% - 16px); padding: 6px 6px 6px 12px; }
  .brand { font-size: 20px; }
  .brand img { width: 32px; height: 32px; border-radius: 10px; }
  .burger { width: 42px; height: 42px; }
  .has-pr .notice { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.65; }
  .notice { margin: 70px 12px -50px; font-size: 13px; border-radius: 14px; }
  .home .notice { top: 64px; }

  /* hero: the words and both buttons in the first screen, the pictures right after */
  .hero { padding: 92px 16px 110px; min-height: 0; }
  .home .hero, .has-pr .notice ~ main .hero { padding-top: 84px; }
  body:not(.has-pr).home .notice ~ main .hero { padding-top: 136px; }
  .kicker { font-size: 12.5px; padding: 6px 12px; margin-bottom: 16px; }
  .hero h1 { font-size: 34px; line-height: 1.15; margin-bottom: 14px; }
  .hero .lead { font-size: 16px; margin-bottom: 22px; }
  .hero .actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
  .hero .actions .btn { justify-content: center; padding: 13px 12px; font-size: 14.5px; }
  .hero-art { height: 210px; margin-top: 18px; }
  .polaroid { width: 70%; }
  .polaroid.p1 { top: 70px; }
  .polaroid.p2 { display: none; }
  .sun { width: 120px; height: 120px; top: 70px; right: -20px; }
  .cloud.c3, .bird.b2 { display: none; }
  .hero .waves { height: 90px; }
  .boat { width: 56px; bottom: 40px; }

  /* sections */
  .sec { padding: 52px 16px; }
  .sec-head { margin-bottom: 26px; }
  .sec-head h2 { font-size: 27px; }
  .sec-head p:last-child { font-size: 15.5px; }
  .eyebrow { font-size: 12px; }
  .sec-head.row { align-items: center; }
  .sec-head.row .btn { padding: 9px 14px; font-size: 13.5px; }

  /* products on the home page: picture, then the words, buttons full width */
  .prows { gap: 40px; }
  .prow-img, .prow.rev .prow-img { rotate: 0deg; border-radius: 20px; }
  .prow-logo { width: 48px; height: 48px; left: 12px; bottom: 12px; border-radius: 12px; }
  .prow-text h3 { font-size: 26px; }
  .tagline { font-size: 16px; }
  .prow-text .actions { display: grid; gap: 10px; }
  .prow-text .actions .btn { justify-content: center; }
  .prow-next { padding: 20px; gap: 12px; }

  /* swipe rows instead of long stacks: ways to help, latest news */
  .help .help-grid, .news .ngrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .help .help-grid::-webkit-scrollbar, .news .ngrid::-webkit-scrollbar { display: none; }
  .help .hcard { flex: 0 0 76%; scroll-snap-align: start; padding: 22px 20px; }
  .news .ncard { flex: 0 0 82%; scroll-snap-align: start; }
  .help .hcard.reveal, .news .ncard.reveal { opacity: 1; transform: none; }
  .swipe-hint { display: block; text-align: center; font-size: 12.5px; color: var(--muted); margin-top: -6px; }

  /* the story: a shorter card, the numbers side by side */
  .story-card { padding: 34px 20px 24px; border-radius: 22px; }
  .story-card::before { font-size: 90px; top: -16px; left: 18px; }
  .story-card p { font-size: 16px; }
  .story-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { flex-direction: column; text-align: center; gap: 6px; padding: 14px 8px; }
  .stat b { font-size: 30px; min-width: 0; }
  .stat span { font-size: 12px; }
  .crafts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }

  /* pre-registration banner: lamp beside the title */
  .pr-banner-wrap { margin-top: -24px; padding: 0 12px; }
  .pr-banner { grid-template-columns: 1fr; padding: 24px 18px 22px; gap: 0; border-radius: 24px; min-height: 0; }
  .prb-lamp { position: absolute; right: 8px; top: 8px; opacity: 0.9; }
  .prb-lamp .lamp { width: 84px; }
  .prb-text h2 { font-size: 30px; padding-right: 80px; }
  .prb-kicker { font-size: 11.5px; }
  .prb-text > p { font-size: 15px; padding-right: 10px; }
  .prb-more { padding: 10px 0; }
  .back { padding: 10px 0; margin-bottom: 4px; }

  /* lists and inner pages */
  .ngrid, .pgrid { gap: 16px; }
  .pgrid { grid-template-columns: 1fr; }
  .phead { padding: 104px 16px 76px; }
  .phead h1 { font-size: 34px; }
  .phead p:last-child { font-size: 16px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -16px 22px; padding: 4px 16px; scrollbar-width: none; }
  .tab { flex: none; }
  .art { padding-top: 80px; }
  .art-hero { padding: 16px 16px 0; }
  .art-hero h1 { font-size: 30px; }
  .art-cover { border-radius: 18px; }
  .prose { padding: 26px 18px 10px; font-size: 17px; }
  .prose blockquote { font-size: 18px; padding: 14px 16px; }
  .share { padding: 14px 18px; }
  .letter { padding-bottom: 80px; }
  .letter-card h2 { font-size: 27px; padding: 0 30px; }

  /* footer: compact, links in two columns */
  .foot { padding: 34px 16px 20px; margin-top: 90px; }
  .foot .foot-waves { top: -79px; height: 80px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .foot-about { grid-column: 1 / -1; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .copy { margin-top: 24px; }

  /* sign-in and account */
  .auth-wrap { padding: 96px 14px 40px; min-height: calc(100vh - 68px); }

  /* pre-registration page */
  .pr-hero { min-height: 0; padding: 88px 16px 70px; }
  .pr-in { gap: 0; }
  .pr-lamp { margin-bottom: -6px; }
  .pr-lamp .lamp { width: 112px; }
  .ripple { width: 140px; margin-left: -70px; }
  .pr-kicker { font-size: 11.5px; margin-bottom: 8px; }
  .pr-title span { font-size: 44px; }
  .pr-title small { font-size: 17px; }
  .pr-lead { font-size: 15.5px; }
  .pr-count b { font-size: 36px; }
  .pr-front h2, .pr-back h2 { font-size: 21px; }
  .pr-opts { gap: 10px; }
  .pr-down { display: none; }
  .goals { padding-top: 10px; }
  .prereg-page .pr-perks .help-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prereg-page .pr-perks .hcard { padding: 16px 14px; }
  .prereg-page .pr-perks .hcard h3 { font-size: 16px; margin-top: 10px; }
  .prereg-page .pr-perks .hcard p { font-size: 13.5px; }
  .pr-strip { padding-bottom: 40px; }
}
@media (min-width: 641px) { .swipe-hint { display: none; } }

/* ================================================================ the game's lamp (3D on the pre-registration page) */
.pr-lamp .glow, .prb-lamp .glow { position: absolute; left: 50%; top: 40%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 140, 0.55) 0%, rgba(255, 160, 60, 0.28) 35%, rgba(255, 140, 40, 0) 70%); filter: blur(6px); animation: glowpulse 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes glowpulse { 0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(0.95); } 45% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 60% { opacity: 0.85; } }
.lamp3d { position: relative; width: min(380px, 80vw); height: min(440px, 92vw); background: transparent; --poster-color: transparent; --progress-bar-color: rgba(255, 207, 110, 0.6); filter: drop-shadow(0 0 30px rgba(255, 180, 90, 0.35)); transition: filter 1s; }
.lamp-poster { width: 60%; height: auto; margin: 10% auto 0; display: block; filter: drop-shadow(0 0 30px rgba(255, 180, 90, 0.6)); }
.pr-lamp .glow { top: 34%; }
.pr-lamp.lit .glow { background: radial-gradient(circle, rgba(255, 230, 170, 0.85) 0%, rgba(255, 170, 70, 0.45) 40%, rgba(255, 140, 40, 0) 72%); width: 95%; }
.pr-lamp.lit .lamp3d { filter: drop-shadow(0 0 50px rgba(255, 200, 110, 0.75)); }
.prb-lamp { position: relative; }
.prb-mark { position: relative; width: min(170px, 100%); height: auto; filter: drop-shadow(0 0 18px rgba(255, 190, 90, 0.75)) drop-shadow(0 0 50px rgba(255, 150, 50, 0.45)); animation: sway 6s ease-in-out infinite; transform-origin: 50% 10%; }
@media (max-width: 900px) { .lamp3d { width: 220px; height: 250px; } }
@media (max-width: 640px) {
  .lamp3d { width: 190px; height: 210px; }
  .prb-lamp .glow { width: 110px; }
  .prb-mark { width: 70px; }
}

/* ================================================================ home page, motion layer */
/* reading progress */
.read-bar { position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.read-bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sea2), var(--coral) 60%, var(--sun)); box-shadow: 0 0 10px rgba(240, 104, 75, 0.45); }

/* headings that rise word by word (and a highlighted ending) */
.rise .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0 0.14em; margin: -0.06em 0 -0.14em; }
.rise .w > span { display: inline-block; transform: translateY(108%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.15s cubic-bezier(0.19, 1, 0.22, 1) calc(var(--i, 0) * 70ms + 80ms); }
.rise.in .w > span, .in .rise .w > span { transform: none; }
.hl { font-style: normal; position: relative; white-space: nowrap; }
.hl .w > span { background: linear-gradient(100deg, var(--coral) 0%, #ff9f6e 30%, var(--sea) 62%, var(--coral) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: hlflow 8s ease-in-out infinite; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.12em; border-radius: 1em; background: linear-gradient(90deg, rgba(240, 104, 75, 0.35), rgba(58, 167, 189, 0.35)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.9s; }
.rise.in .hl::after, .in .rise .hl::after { transform: scaleX(1); }
@keyframes hlflow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* hero: drifting aurora, depth on the pictures, scroll cue, magnetic buttons */
.aurora { position: absolute; inset: -20%; filter: blur(60px); opacity: 0.75; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: drift-a 24s ease-in-out infinite alternate; }
.aurora .a1 { width: 46vw; height: 46vw; left: 4%; top: 6%; background: radial-gradient(circle, rgba(124, 201, 214, 0.55), transparent 65%); }
.aurora .a2 { width: 40vw; height: 40vw; right: 6%; top: 28%; background: radial-gradient(circle, rgba(255, 159, 110, 0.4), transparent 65%); animation-duration: 30s; animation-delay: -8s; }
.aurora .a3 { width: 34vw; height: 34vw; left: 34%; bottom: 0; background: radial-gradient(circle, rgba(255, 214, 140, 0.45), transparent 65%); animation-duration: 36s; animation-delay: -16s; }
@keyframes drift-a { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(6vw, -4vh, 0) scale(1.12); } 100% { transform: translate3d(-4vw, 5vh, 0) scale(0.95); } }
.hero-text .kicker { opacity: 0; transform: translateY(14px); animation: inUp 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.05s forwards; }
.hero-text .lead { opacity: 0; transform: translateY(18px); animation: inUp 1s cubic-bezier(0.19, 1, 0.22, 1) 0.75s forwards; }
.hero-text .actions { opacity: 0; transform: translateY(18px); animation: inUp 1s cubic-bezier(0.19, 1, 0.22, 1) 0.95s forwards; }
@keyframes inUp { to { opacity: 1; transform: none; } }
.hero h1.rise .w > span { transition-delay: calc(var(--i, 0) * 70ms + 200ms); }
.hero-in { transform: translate3d(0, calc(var(--hs, 0) * 90px), 0); opacity: calc(1 - var(--hs, 0) * 1.1); }
.hero-art { perspective: 1200px; }
.polaroid { --pt: translate3d(calc(var(--mx, 0) * var(--depth, 1) * -46px), calc(var(--my, 0) * var(--depth, 1) * -34px + var(--hs, 0) * var(--depth, 1) * -120px), 0) rotate(calc(var(--hs, 0) * var(--depth, 1) * 10deg)); transform: var(--pt); opacity: 0; animation: polaroidIn 1.3s cubic-bezier(0.19, 1, 0.22, 1) forwards, bob 7s ease-in-out 1.3s infinite; }
.polaroid.p0 { animation-delay: 0.35s, 1.6s; }
.polaroid.p1 { animation-delay: 0.55s, 1.8s; }
.polaroid.p2 { animation-delay: 0.75s, 2s; }
@keyframes polaroidIn { from { opacity: 0; translate: 0 60px; scale: 0.9; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero .polaroid:hover { transform: var(--pt); translate: 0 -12px; scale: 1.03; animation-play-state: running, paused; }
.hero .waves .w1 { translate: 0 calc(var(--hs, 0) * 40px); }
.hero .waves .w2 { translate: 0 calc(var(--hs, 0) * 20px); }
.sun { translate: 0 calc(var(--hs, 0) * 120px); }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 112px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid rgba(23, 56, 76, 0.35); opacity: calc(1 - var(--hs, 0) * 6); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--coral); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.magnet { transform: translate3d(var(--tx, 0), var(--ty, 0), 0); transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.3s, background 0.3s, color 0.3s; }
.btn.coral { position: relative; overflow: hidden; isolation: isolate; }
.btn.coral::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -70%; width: 50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: left 0.7s ease; }
.btn.coral:hover::after { left: 130%; }

/* ribbon of words */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 18px 0; margin: 46px 0 -10px; background: var(--deep); transform: rotate(-1.6deg) scale(1.03); box-shadow: 0 20px 40px -24px rgba(23, 56, 76, 0.6); }
.mq-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: mq 38s linear infinite; }
.mq-track span { font: 500 clamp(18px, 2.2vw, 26px) var(--serif); color: #f3ede3; white-space: nowrap; }
.mq-track i { font-style: normal; color: var(--coral); font-size: 14px; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* products: big cards that stack while scrolling */
.pstack { display: flex; flex-direction: column; gap: 40px; }
.pxl { position: sticky; top: calc(96px + var(--n, 0) * 22px); display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; min-height: 440px; background: var(--card); border-radius: 32px; overflow: hidden; box-shadow: 0 2px 4px rgba(23, 56, 76, 0.04), 0 40px 80px -40px rgba(23, 56, 76, 0.35); transform: scale(calc(1 - var(--cover, 0) * 0.06)); transform-origin: 50% 0; filter: brightness(calc(1 - var(--cover, 0) * 0.08)); will-change: transform; }
.pxl:nth-child(even) { grid-template-columns: 0.85fr 1.15fr; }
.pxl:nth-child(even) .pxl-img { order: 2; }
.pxl-img { position: relative; display: block; overflow: hidden; background: var(--sky); }
.pxl-pic { position: absolute; inset: -8% 0; display: block; transform: translate3d(0, var(--py, 0), 0); }
.pxl-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); clip-path: inset(0 0 100% 0); transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.18, 1), transform 2s cubic-bezier(0.19, 1, 0.22, 1); }
.pxl.in .pxl-pic img { clip-path: inset(0 0 0 0); transform: scale(1); }
.pxl-img:hover .pxl-pic img { transform: scale(1.05); }
.pxl-img .prow-logo { z-index: 2; }
.pxl-text { position: relative; padding: 48px 46px; display: flex; flex-direction: column; justify-content: center; }
.pxl-text > * { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1); }
.pxl.in .pxl-text > * { opacity: 1; transform: none; }
.pxl.in .pxl-text > :nth-child(2) { transition-delay: 0.1s; }
.pxl.in .pxl-text > :nth-child(3) { transition-delay: 0.18s; }
.pxl.in .pxl-text > :nth-child(4) { transition-delay: 0.26s; }
.pxl.in .pxl-text > :nth-child(5) { transition-delay: 0.34s; }
.pxl.in .pxl-text > :nth-child(n + 6) { transition-delay: 0.42s; }
.pxl-no { font: 600 15px var(--serif); color: var(--coral); letter-spacing: 0.06em; margin-bottom: 14px; }
.pxl-no i { font-style: normal; color: #b9c6cd; }
.pxl-text h3 { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 4px; }
.pxl-text .actions { margin-top: 22px; }
.prow-next { margin-top: 50px; }

/* the soft light under the pointer */
.spot { position: relative; isolation: isolate; }
.pxl.spot { position: sticky; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(124, 201, 214, 0.22), transparent 70%); transition: opacity 0.4s; }
.spot:hover::before { opacity: 1; }
.hcard.warm.spot::before { background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.28), transparent 70%); }
.pxl.spot::before { z-index: 1; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 214, 140, 0.16), transparent 70%); }
.hgo { position: absolute; right: 20px; top: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); opacity: 0; transform: translate(-6px, 6px) rotate(-45deg); transition: opacity 0.3s, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.hgo svg { width: 16px; height: 16px; fill: none; stroke: var(--deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hcard:hover .hgo { opacity: 1; transform: rotate(-45deg); }
.hcard.warm .hgo { background: rgba(255, 255, 255, 0.25); }
.hcard.warm .hgo svg { stroke: #fff; }
.hcard .hic { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hcard:hover .hic { transform: translateY(-4px) rotate(-6deg) scale(1.08); }

/* the story: lines one after another, a signature that writes itself, numbers that count */
.stagger-in.reveal { opacity: 1; transform: none; }
.stagger-in > * { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease calc(var(--k, 0) * 110ms + 100ms), transform 1.1s cubic-bezier(0.19, 1, 0.22, 1) calc(var(--k, 0) * 110ms + 100ms); }
.stagger-in.in > * { opacity: 1; transform: none; }
.sign { display: inline-flex; flex-direction: column; gap: 2px; }
.sign svg { width: 100%; max-width: 260px; height: 16px; overflow: visible; }
.sign path { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; transition: stroke-dashoffset 1.8s cubic-bezier(0.65, 0, 0.35, 1) 1.2s; }
.story-card.in .sign path { stroke-dashoffset: 0; }
.stat b.inf { display: inline-block; animation: infspin 6s ease-in-out infinite; }
@keyframes infspin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
.crafts li { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease calc(var(--k) * 90ms + 300ms), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) calc(var(--k) * 90ms + 300ms); }
.crafts.in li { opacity: 1; transform: none; }
.stat { transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s; }
.stat:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }

/* news cards: the picture eases in */
.ncard-img img { transform: scale(1.12); transition: transform 1.6s cubic-bezier(0.19, 1, 0.22, 1); }
.ncard.in .ncard-img img { transform: scale(1); }
.ncard.in:hover .ncard-img img { transform: scale(1.06); }

/* the letter: the stamp lands */
.letter-card .stamp { transform: rotate(30deg) scale(1.6); opacity: 0; transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s, opacity 0.4s 0.4s; }
.letter-card.in .stamp { transform: rotate(8deg); opacity: 1; }

@media (max-width: 820px) {
  .pxl, .pxl:nth-child(even), .pxl.spot { position: relative; top: auto; transform: none; filter: none; grid-template-columns: 1fr; min-height: 0; border-radius: 24px; }
  .pxl:nth-child(even) .pxl-img { order: 0; }
  .pxl-img { aspect-ratio: 16 / 10; }
  .pxl-text { padding: 24px 22px 26px; }
  .pxl-text .actions { display: grid; gap: 10px; }
  .pxl-text .actions .btn { justify-content: center; }
  .pstack { gap: 22px; }
  .marquee { margin-top: 30px; padding: 12px 0; }
  .aurora { opacity: 0.55; filter: blur(40px); }
  .aurora .a3 { display: none; }
  .scroll-cue { display: none; }
  .polaroid { --pt: translate3d(0, calc(var(--hs, 0) * var(--depth, 1) * -60px), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-text .kicker, .hero-text .lead, .hero-text .actions, .polaroid, .pxl-text > *, .stagger-in > *, .crafts li { opacity: 1 !important; transform: none !important; }
  .rise .w > span { transform: none !important; }
  .pxl-pic img { clip-path: none; transform: none; }
  .hero-in { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
