/* Ozy Works – site styles.
   Look follows the brand header (Branding/play_header.png): dark navy gradient, faint dot grid,
   warm orange glow, white Poppins type, thin orange rule, letter-spaced lavender labels.
   No frameworks, no build step. Fonts are self-hosted (no third-party requests). */

@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Digits"; src: url("/assets/fonts/nunito-black-digits.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; unicode-range: U+0030-0039; }

/* Animatable theme colours for the puzzle demo */
@property --hz-top { syntax: "<color>"; inherits: true; initial-value: #3B4FC4; }
@property --hz-bottom { syntax: "<color>"; inherits: true; initial-value: #242E8C; }

:root {
  color-scheme: dark;
  --navy-1: #161A40;
  --navy-2: #0A0C22;
  --navy-3: #070818;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .15);
  --text: #F5F6FF;
  --text-2: #BFC3E6;
  --text-3: #8B90BE;
  --orange: #FF9A1F;
  --orange-hi: #FFCD50;
  --orange-lo: #FF8214;
  --orange-ink: #221300;
  --lavender: #C8C4EB;
  --radius: 22px;
  --maxw: 1160px;
  --header-h: 68px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--navy-2);
  background-image:
    radial-gradient(1100px 700px at 50% -8%, rgba(40, 46, 110, .55), transparent 70%),
    linear-gradient(180deg, var(--navy-1) 0, var(--navy-2) 900px, var(--navy-3) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* faint dot grid across the whole site, like the header image */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(200, 205, 255, .075) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35));
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35));
}
img, svg, canvas { max-width: 100%; height: auto; }
a { color: var(--orange-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #FFE08F; }
b, strong { font-weight: 600; color: var(--text); }
::selection { background: rgba(255, 154, 31, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; border-radius: 10px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }
button { font: inherit; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 12px;
  background: var(--orange-hi); color: var(--orange-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
main { flex: 1; width: 100%; min-width: 0; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled, .site-header.is-open {
  background-color: rgba(10, 12, 34, .74);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em;
}
.brand:hover { color: var(--text); }
.brand .mark { width: 36px; height: 36px; flex: none; transition: transform .45s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative; display: inline-block; padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); font-weight: 500; font-size: .94rem; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"], .nav a.is-active { color: var(--text); }
.nav a[aria-current="page"]::after, .nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange-hi), var(--orange-lo));
}
.nav .nav-cta a { margin-left: 6px; color: var(--orange-ink); background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); font-weight: 600; }
.nav .nav-cta a:hover { color: var(--orange-ink); filter: brightness(1.06); }
.nav .nav-cta a::after { display: none; }
.nav-toggle { display: none; }
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--orange-hi), var(--orange-lo)); opacity: .85; pointer-events: none;
}
@media (max-width: 759px) {
  .site-header .wrap { flex-wrap: wrap; }
  .js .site-header .wrap { flex-wrap: nowrap; }
  .js .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .i-close { display: none; }
  .is-open .nav-toggle .i-close { display: block; }
  .is-open .nav-toggle .i-open { display: none; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 6px 16px 20px; background: rgba(10, 12, 34, .97); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .22s, transform .22s var(--ease), visibility 0s .22s;
  }
  .js .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .22s var(--ease); }
  .js .nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .nav a { display: block; padding: 14px 12px; font-size: 1.06rem; border-radius: 12px; }
  .js .nav a::after { left: 12px; right: auto; width: 24px; bottom: 8px; }
  .js .nav .nav-cta a { margin: 10px 0 0; text-align: center; }
  .nav { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- type helpers */
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px;
  color: var(--text-2); font-size: .76rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--orange-hi), var(--orange-lo)); }
.h-lg { font-size: clamp(2rem, 4.4vw, 3.15rem); }
.h-md { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.grad { background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--text-2); line-height: 1.75; max-width: 40em; }
.muted { color: var(--text-2); }
.small { font-size: .9rem; color: var(--text-3); }
.center { text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s, background-color .2s, border-color .2s, color .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary {
  color: var(--orange-ink); font-weight: 600;
  background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(120, 50, 0, .18), 0 10px 26px -10px rgba(255, 130, 20, .7);
}
.btn-primary:hover { color: var(--orange-ink); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(120, 50, 0, .18), 0 16px 34px -12px rgba(255, 130, 20, .85); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row, .btn-row.center { justify-content: center; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 154, 31, .1); border: 1px solid rgba(255, 154, 31, .28);
  color: #FFD69A; font-size: .78rem; font-weight: 500; letter-spacing: .02em;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------------------------------------------------------------- mark (the Ozy Works tile) */
.mark { display: block; overflow: visible; }
.mark .look { transition: transform .18s ease-out; }
.mark .eyes { transform-box: fill-box; transform-origin: center; }
.mark.is-blink .eyes { animation: blink .16s ease-in-out; }
@keyframes blink { 50% { transform: scaleY(.12); } }
.mark .happy { opacity: 0; transition: opacity .12s; }
.mark .mouth { transform-box: fill-box; transform-origin: 50% 0; transition: transform .25s var(--ease); }
.mark.is-happy .eyes { opacity: 0; }
.mark.is-happy .happy { opacity: 1; }
.mark.is-happy .mouth { transform: scale(1.28, 1.45); }

/* ---------------------------------------------------------------- hero (home) */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  min-height: clamp(620px, 94svh, 920px);
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 56px) 0 112px;
  background:
    radial-gradient(900px 600px at 50% 40%, rgba(30, 36, 90, .6), transparent 70%),
    linear-gradient(180deg, var(--navy-1), var(--navy-2) 85%);
}
.hero::before { /* dot grid without JS; the canvas replaces it */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(200, 205, 255, .14) 1.1px, transparent 1.7px);
  background-size: 28px 28px;
}
.js .hero::before { display: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; background: linear-gradient(180deg, transparent, var(--navy-2)); pointer-events: none; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero-inner { position: relative; }
.lockup {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .28em .36em; font-size: clamp(2.9rem, 8.2vw, 6.4rem); margin: 0;
}
.mark-btn {
  position: relative; display: block; width: 1.42em; height: 1.42em; padding: 0; border: 0; background: none;
  cursor: pointer; border-radius: 28%; -webkit-tap-highlight-color: transparent;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
}
.mark-btn .mark { position: relative; width: 100%; height: 100%; }
.mark-btn:active .mark { transform: translateY(3%) scale(.97); }
.mark-btn.is-squish .mark { animation: squish .5s var(--ease); }
@keyframes squish { 0% { transform: scale(1); } 25% { transform: scale(1.08, .9); } 55% { transform: scale(.95, 1.06); } 100% { transform: scale(1); } }
.mark-glow {
  position: absolute; left: 50%; top: 52%; width: 290%; height: 290%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 140, 40, .3), rgba(255, 120, 30, .1) 45%, transparent 72%);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }
.hero-title { margin: 0; font-size: 1em; font-weight: 600; letter-spacing: -.025em; line-height: 1; text-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.hero-rule {
  display: block; width: 64px; height: 3px; margin: clamp(28px, 4.5vw, 46px) auto 22px; border-radius: 3px;
  background: linear-gradient(90deg, var(--orange-hi), var(--orange-lo)); box-shadow: 0 0 18px rgba(255, 140, 30, .55);
}
.hero-tags { margin: 0 0 30px; padding-left: .42em; color: var(--text-2); font-size: clamp(.9rem, 1.6vw, 1.12rem); font-weight: 500; letter-spacing: .42em; text-transform: uppercase; }
.hero-tags .sep { display: inline-block; width: 6px; height: 6px; margin: 0 .5em 0 .08em; border-radius: 50%; vertical-align: middle; background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); box-shadow: 0 0 10px rgba(255, 140, 30, .75); }
.hero-tagline { margin: 0 0 14px; font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 500; letter-spacing: -.01em; }
.hero .lead { margin: 0 auto 32px; max-width: 34em; }
.hero .btn-row { justify-content: center; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .28);
  display: grid; justify-items: center; padding-top: 8px; transition: border-color .2s;
}
.scroll-cue:hover { border-color: rgba(255, 255, 255, .6); }
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: var(--orange-hi); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
/* load-in */
.intro > * { animation: rise .9s var(--ease) both; }
.intro > *:nth-child(2) { animation-delay: .12s; }
.intro > *:nth-child(3) { animation-delay: .2s; }
.intro > *:nth-child(4) { animation-delay: .28s; }
.intro > *:nth-child(5) { animation-delay: .36s; }
.intro > *:nth-child(6) { animation-delay: .44s; }
.intro .hero-rule { animation-name: grow; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- sections + cards */
.section { position: relative; padding: clamp(64px, 8.5vw, 108px) 0; }
.section-tight { padding-top: clamp(40px, 6vw, 72px); }
.section-head { max-width: 720px; margin: 0 0 clamp(32px, 5vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-bottom: 0; }

.card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  padding: clamp(22px, 3vw, 32px);
  transition: border-color .3s, transform .35s var(--ease);
}
.card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.card p { color: var(--text-2); }
.card > :last-child { margin-bottom: 0; }
/* cursor spotlight: site.js sets --mx / --my */
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 150, 50, .1), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 175, 80, .6), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.spot:hover::before, .spot:hover::after, .spot:focus-within::after { opacity: 1; }
.lift:hover { transform: translateY(-4px); }

.icon-badge {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(255, 205, 80, .18), rgba(255, 130, 20, .1));
  border: 1px solid rgba(255, 170, 70, .3); color: var(--orange-hi);
}
.icon-badge svg { width: 24px; height: 24px; }

.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 20px; }
.grid-4 { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* featured app card (home) */
.feature { display: grid; gap: clamp(26px, 4vw, 48px); align-items: center; padding: clamp(22px, 4vw, 44px); }
@media (min-width: 960px) { .feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.feature-info > .chip { margin-bottom: 18px; }
.feature-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.feature-head h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0; }
.app-icon { width: 76px; height: 76px; border-radius: 22px; flex: none; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: .86rem; }
.try-hint { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--text-3); font-size: .9rem; }
.try-hint svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.feature-demo { width: 100%; max-width: 440px; justify-self: center; }

.soon {
  display: grid; place-items: center; text-align: center; min-height: 220px;
  border-style: dashed; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .015);
}
.soon .plus {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 14px;
  border: 1px dashed rgba(255, 175, 80, .5); color: var(--orange-hi); font-size: 1.6rem; font-weight: 500;
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* marquee (languages) */
.marquee { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.marquee li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); font-size: .98rem; white-space: nowrap; font-family: var(--font), "Noto Sans CJK JP", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 32px 0 0; padding: 0; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.stats dt { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.stats dd { margin: 8px 0 0; color: var(--text-2); font-size: .9rem; line-height: 1.4; }

/* contact */
.contact-card { text-align: center; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px); }
.contact-card .mark { width: 72px; height: 72px; margin: 0 auto 22px; }
.contact-card::before { opacity: 1; background: radial-gradient(600px circle at 50% 0%, rgba(255, 140, 40, .14), transparent 60%); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.email-link { font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 500; color: var(--text); text-decoration: none; padding: 6px 4px; border-bottom: 1px solid rgba(255, 175, 80, .45); }
.email-link:hover { color: #fff; border-bottom-color: var(--orange-hi); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); font-size: .88rem; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.email-row.start { justify-content: flex-start; }
.copy-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.copy-btn.is-done { color: #9BF2B5; border-color: rgba(120, 230, 160, .45); }
.copy-btn svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- Bridges page */
.app-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.app-hero .wrap { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 980px) { .app-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); } }
.app-hero h1 { font-size: clamp(2.8rem, 6.4vw, 4.8rem); margin: 18px 0 14px; }
.app-hero .app-icon { width: 96px; height: 96px; border-radius: 26px; }
.app-hero .lead { margin-bottom: 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 186px; padding: 9px 18px 9px 14px; border-radius: 14px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); color: var(--text);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-hi); line-height: 1.3; }
.store span { display: block; font-size: 1.06rem; font-weight: 600; line-height: 1.2; }
.demo-col { width: 100%; max-width: 470px; justify-self: center; }
.theme-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.theme-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2);
  font: 500 .84rem/1 var(--font); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s, transform .2s var(--ease);
}
.theme-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.theme-chip[aria-pressed="true"] { color: var(--text); border-color: var(--orange); background: rgba(255, 154, 31, .1); }
.sw { position: relative; width: 24px; height: 24px; border-radius: 50%; flex: none; background: linear-gradient(180deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.sw::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 3px; background: var(--j); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }

.steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; }
.jewel {
  --j: #34C8F0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  font: 900 1.45rem/1 "Nunito Digits", var(--font); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
  background: radial-gradient(ellipse 60% 32% at 50% 20%, rgba(255, 255, 255, .55), transparent 70%), var(--j);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 6px 18px -6px var(--j);
}
.rules-note { margin: 22px 0 0; color: var(--text-3); font-size: .95rem; }

.daily { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .daily { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.countdown { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); text-align: center; }
.countdown .label { margin: 0 0 6px; color: var(--text-3); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; }
.countdown .time { margin: 0; font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.countdown .sub { margin: 6px 0 0; color: var(--text-2); font-size: .9rem; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; }
.streak li { text-align: center; font-size: .72rem; color: var(--text-3); }
.streak .dot {
  display: grid; place-items: center; height: 36px; margin-bottom: 6px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2); font-weight: 600; font-size: .8rem;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.streak li:hover .dot { transform: translateY(-3px); border-color: var(--orange); color: var(--text); }
.streak li.is-big .dot { background: linear-gradient(180deg, rgba(255, 205, 80, .25), rgba(255, 130, 20, .15)); border-color: rgba(255, 175, 80, .6); color: #FFE2A8; }

.theme-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .theme-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .theme-grid { grid-template-columns: repeat(5, 1fr); } }
.theme-card {
  position: relative; display: block; width: 100%; padding: 0; border-radius: 18px; overflow: hidden; text-align: left;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.theme-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .25); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .9); }
.theme-card[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.theme-card .preview { display: block; height: 92px; background: linear-gradient(180deg, var(--a), var(--b)); position: relative; }
.theme-card .preview i { position: absolute; top: 34px; width: 24px; height: 24px; border-radius: var(--tr, 7px); background: radial-gradient(ellipse 60% 32% at 50% 20%, rgba(255, 255, 255, .55), transparent 70%), var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.theme-card .preview i:first-of-type { left: 16%; --c: var(--j); }
.theme-card .preview i:last-of-type { right: 16%; --c: var(--k); }
.theme-card .preview b { position: absolute; top: 43px; left: calc(16% + 22px); right: calc(16% + 22px); height: 6px; border-radius: 3px; background: var(--br); }
.theme-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-weight: 500; font-size: .92rem; }
.theme-card .meta small { color: var(--text-3); font-size: .74rem; display: inline-flex; align-items: center; gap: 4px; }
.theme-card .meta small img { width: 14px; height: 14px; }

.link-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); text-decoration: none; font-weight: 500;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.link-list a:hover { color: var(--text); border-color: rgba(255, 175, 80, .45); background: rgba(255, 154, 31, .06); transform: translateX(3px); }
.link-list a::after { content: "\203A"; color: var(--orange-hi); font-size: 1.4rem; line-height: 1; }

/* ---------------------------------------------------------------- puzzle demo (assets/hashi.js) */
.hashi {
  --hz-top: #3B4FC4; --hz-bottom: #242E8C;
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px;
  border-radius: 30px; color: #fff; font-family: var(--font);
  background: linear-gradient(180deg, var(--hz-top), var(--hz-bottom));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: --hz-top .6s, --hz-bottom .6s;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.hashi > img.fallback { display: block; width: 100%; height: auto; border-radius: 20px; }
.hashi-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.hashi-level { font-weight: 600; font-size: 1.05rem; text-shadow: 0 2px 0 rgba(0, 0, 0, .22); }
.hashi-timer { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: rgba(0, 0, 0, .24); font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; }
.hashi-timer svg { width: 17px; height: 17px; opacity: .85; }
.hashi-stage { position: relative; border-radius: 22px; overflow: hidden; }
.hashi-ambient { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hashi-board { position: relative; display: block; width: 100%; height: auto; touch-action: none; }
.hashi .island { cursor: pointer; outline: none; }
.hashi .tile { transform-box: fill-box; transform-origin: center; transition: transform .18s var(--ease); }
@media (hover: hover) { .hashi .island:hover .tile { transform: scale(1.07); } }
.hashi .island text { font-family: "Nunito Digits", "Poppins", sans-serif; font-weight: 900; font-size: .6px; paint-order: stroke; stroke: rgba(0, 0, 0, .16); stroke-width: .05px; pointer-events: none; }
.hashi .island.is-done text, .hashi .island.is-over text { stroke: rgba(0, 0, 0, .3); }
.hashi .gloss { opacity: .32; pointer-events: none; }
.hashi .island.is-done .gloss, .hashi .island.is-over .gloss { opacity: .85; }
.hashi .ring { fill: none; stroke: #fff; stroke-width: .07px; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; }
.hashi .island.is-selected .ring, .hashi .island.is-target .ring { opacity: .95; stroke-dasharray: .32px .17px; animation: spin 4s linear infinite; }
.hashi .island:focus-visible .ring { opacity: 1; stroke: #FFCD50; stroke-dasharray: none; animation: none; }
.hashi .island.is-pop .tile { animation: tilepop .4s var(--ease); }
.hashi .island.is-flash .ring { stroke: #fff; animation: ringflash 1s ease-out; }
.hashi .island.is-cut .ring { stroke: #FF9F1C; stroke-width: .12px; animation: ringflash 1s ease-out; }
.hashi .island.is-shake .tile { animation: shake .4s ease-in-out; }
.hashi .preview { stroke: rgba(255, 255, 255, .75); stroke-width: .1px; stroke-dasharray: .2px .14px; stroke-linecap: round; opacity: 0; pointer-events: none; }
.hashi .preview.is-on { opacity: 1; }
.hashi .preview.is-blocked { stroke: #FF6B7A; }
.hashi .bridge.is-new { animation: bridgein .14s ease-out; }
.hashi .foam { animation: foam 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tilepop { 0% { transform: scale(1); } 40% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes ringflash { 0% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes shake { 20%, 60% { transform: translateX(-.08px); } 40%, 80% { transform: translateX(.08px); } }
@keyframes bridgein { from { opacity: 0; } to { opacity: 1; } }
@keyframes foam { to { stroke-dashoffset: -.86px; } }
.hashi-toast {
  position: absolute; left: 50%; top: 12px; z-index: 3; width: max-content; max-width: calc(100% - 24px);
  padding: 9px 16px; border-radius: 14px; border: 1.5px solid #FFC83D; background: rgba(12, 14, 40, .92);
  color: #fff; font-weight: 600; font-size: .88rem; line-height: 1.35; text-align: center;
  opacity: 0; transform: translate(-50%, -8px); transition: opacity .2s, transform .2s var(--ease); pointer-events: none;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7);
}
.hashi-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.hashi-win { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 30, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadein .3s ease-out; }
.hashi-win[hidden] { display: none; }
.hashi-win-card { width: 100%; max-width: 320px; padding: 22px 20px 20px; border-radius: 22px; text-align: center; background: rgba(14, 17, 48, .94); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85); animation: popin .45s var(--ease); }
.hashi .hashi-praise { margin: 0 0 4px; font-size: clamp(1.9rem, 5vw, 2.4rem); font-weight: 600; line-height: 1.1; background: linear-gradient(180deg, #FFE27A, #FFB020); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hashi .hashi-result { margin: 0 0 16px; color: var(--text-2); font-size: .95rem; }
.hashi-win-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@keyframes fadein { from { opacity: 0; } }
@keyframes popin { from { opacity: 0; transform: scale(.85); } }
.hashi-confetti { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.hashi-confetti i { position: absolute; left: var(--x); top: -14px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: confetti var(--d) var(--delay) cubic-bezier(.25, .6, .45, 1) forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--fall, 460px)) rotate(var(--r)); } }
.hashi-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hashi-tool {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, .15); color: #fff; font: 600 .76rem/1 var(--font); cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 2px 0 rgba(0, 0, 0, .12);
  transition: transform .12s, background-color .2s, box-shadow .12s;
}
.hashi-tool svg { width: 22px; height: 22px; }
.hashi-tool:hover { background: rgba(255, 255, 255, .24); }
.hashi-tool:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18); }
.hashi-tool.is-accent { background: linear-gradient(180deg, #FFD65C, #FFB020); color: #3A2400; }
.hashi-tool.is-accent:hover { background: linear-gradient(180deg, #FFDE7A, #FFBA33); }
.hashi-tool:disabled { opacity: .45; cursor: default; transform: none; }
.hashi-tool:focus-visible { outline-offset: 2px; }

/* ---------------------------------------------------------------- legal pages */
.legal-layout { display: grid; gap: 28px; padding: clamp(28px, 5vw, 56px) 0 clamp(64px, 8vw, 104px); }
@media (min-width: 1060px) { .legal-layout { grid-template-columns: 230px minmax(0, 780px); justify-content: center; gap: 56px; } }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; color: var(--text-2); text-decoration: none; font-size: .92rem; }
.crumb:hover { color: var(--text); }
.toc { font-size: .9rem; }
.toc details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .03); padding: 4px 6px; }
.toc summary { cursor: pointer; padding: 10px 12px; color: var(--text); font-weight: 500; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; float: right; color: var(--orange-hi); }
.toc details[open] summary::after { content: "\2212"; }
.toc ol { list-style: none; margin: 0; padding: 0 4px 8px; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--text-3); text-decoration: none; line-height: 1.35; border-left: 2px solid transparent; transition: color .2s, background-color .2s, border-color .2s; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.toc a.is-active { color: var(--text); border-left-color: var(--orange); background: rgba(255, 154, 31, .07); border-radius: 0 10px 10px 0; }
@media (min-width: 1060px) {
  .toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
  .toc details { border: 0; background: none; padding: 0; }
  .js .toc summary { pointer-events: none; }
  .toc summary { padding: 0 10px 10px; color: var(--text-3); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; }
  .toc summary::after { content: none; }
}
.legal-col { min-width: 0; }
.legal { min-width: 0; overflow-wrap: break-word; color: var(--text-2); font-size: 1.01rem; line-height: 1.8; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 6px; }
.legal .meta { color: var(--text-3); margin-bottom: 30px; font-size: .92rem; }
.legal h2 { font-size: 1.28rem; margin: 2.3em 0 .65em; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h2:target { color: var(--orange-hi); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal li::marker { color: var(--orange); }
.legal table { display: block; width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0; margin: 0 0 1.2em; border: 1px solid var(--line-2); border-radius: 16px; font-size: .93rem; line-height: 1.55; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 140px; }
@media (max-width: 639px) { .legal th, .legal td { min-width: 104px; padding: 10px 10px; } }
.legal tr:last-child td { border-bottom: 0; }
.legal th { color: var(--text); font-weight: 600; background: rgba(255, 255, 255, .05); }
.legal td:first-child { color: var(--text); }
.legal a { color: var(--orange-hi); }

/* ---------------------------------------------------------------- 404 */
.notfound { position: relative; display: grid; place-items: center; text-align: center; min-height: 70vh; padding: 64px 0 96px; }
.notfound .mark { width: 110px; height: 110px; margin: 0 auto 18px; }
.notfound .big { margin: 0; font-size: clamp(4.4rem, 16vw, 8rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.notfound h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 10px 0 12px; }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; margin-top: 24px; padding: 64px 0 28px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(7, 8, 24, 0), rgba(7, 8, 24, .65)); color: var(--text-2); font-size: .94rem; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand { font-size: 1.2rem; }
.footer-brand p { margin: 14px 0 0; max-width: 22em; color: var(--text-3); }
.site-footer h2 { margin: 0 0 14px; color: var(--text-3); font-size: .74rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2); cursor: pointer; font-size: .86rem; transition: color .2s, border-color .2s; }
.to-top:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.to-top svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- scroll reveal (site.js adds .is-in) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* failsafe: if site.js never runs, show everything */
.js:not(.js-ready) .reveal { animation: failsafe 0s 2.5s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- motion + print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
}
@media print {
  body { background: #fff; color: #000; }
  body::before, .site-header, .site-footer, .toc, .crumb, .skip { display: none !important; }
  .legal, .legal h1, .legal h2, .legal td, .legal td:first-child, .legal th, .legal b { color: #000; }
  .legal a { color: #000; }
  .legal table { border-color: #999; }
  .legal th, .legal td { border-color: #ccc; background: none; }
}
