/* Snowbelt Labs — shared styles. Snow, night, and a signal-red accent. */
:root {
  --bg: #e9ebeb;          /* snow */
  --bg-2: #dde1e2;
  --card: #f4f5f5;
  --ink: #0d0f12;
  --ink-2: #363b42;
  --muted: #6b7178;
  --line: #c6cccf;
  --night: #0b0f15;       /* winter night */
  --night-2: #141a23;
  --night-line: #263040;
  --night-ink: #eef2f5;
  --night-muted: #93a0ad;
  --ice: #a9c3d6;
  --accent: #e5291f;
  --accent-ink: #ffffff;
  --display: "Anton", "Oswald", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }

.label { font: 600 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.label.muted { color: var(--muted); }
.red { color: var(--accent); }
.keep-case { text-transform: none !important; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; letter-spacing: .005em; margin: 0; }

.grid-bg {
  background-image: linear-gradient(var(--bg-2) 1px, transparent 1px), linear-gradient(90deg, var(--bg-2) 1px, transparent 1px);
  background-size: 64px 64px;
}
.night { background: var(--night); color: var(--night-ink); }
:is(.night, .night-grid, .showcase, .app-hero) .label.muted { color: var(--night-muted); }
.night-grid {
  color: var(--night-ink);
  background-color: var(--night);
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* snow canvases (added by site.js to any [data-snow] element) */
[data-snow] { position: relative; overflow: hidden; }
.snow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.no-snow .snow-canvas { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink);
  font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 14px 18px;
  text-decoration: none; border: 0; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--ink); transform: translateY(-2px); }
:is(.night, .night-grid, .showcase, .app-hero) .btn:hover, .footer .btn:hover { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
:is(.night, .night-grid, .showcase, .app-hero) .btn.ghost:hover { background: #fff; color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.dark-top .nav:not(.scrolled) { background: color-mix(in srgb, var(--night) 70%, transparent); color: var(--night-ink); border-color: var(--night-line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; font: 400 22px/1 var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: .02em; }
.logo-text span { color: var(--accent); }


.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links > li > a { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 26px 0; display: inline-block; position: relative; }
.nav-links > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { transform: scaleX(1); }
.caret { font-size: 9px; margin-left: 2px; }
.has-menu { position: relative; }
.submenu {
  position: absolute; top: 100%; left: -18px; min-width: 300px; list-style: none; margin: 0; padding: 8px;
  background: var(--night); color: var(--night-ink); border: 1px solid var(--night-line);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease);
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: flex; align-items: center; gap: 12px; padding: 10px; text-decoration: none; transition: background .2s; }
.submenu a:hover { background: var(--night-2); }
.submenu img { width: 36px; height: 36px; border-radius: 22%; }
.submenu b { display: block; font-size: 14px; }
.submenu small { display: block; color: var(--night-muted); font: 500 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.submenu .all a { font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border-top: 1px solid var(--night-line); margin-top: 6px; padding: 14px 10px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.snow-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid currentColor; color: inherit; font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 9px 10px; cursor: pointer; opacity: .75; transition: opacity .2s; }
.snow-toggle:hover { opacity: 1; }
.flake-ico { display: inline-block; font-size: 13px; animation: spin 8s linear infinite; }
.no-snow .flake-ico { animation: none; opacity: .4; }
@keyframes spin { to { transform: rotate(360deg); } }
.menu-btn { display: none; background: none; border: 0; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 10px 0; color: inherit; }

@media (max-width: 960px) {
  .menu-btn { display: block; order: 3; }
  .nav .btn { display: none; }
  .nav-right { margin-left: auto; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); color: var(--night-ink); max-height: calc(100vh - 66px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links > li > a { display: block; padding: 18px var(--gutter); border-top: 1px solid var(--night-line); }
  .nav-links > li > a::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 var(--gutter) 12px; min-width: 0; }
}

/* ---------- motion helpers ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.rise { animation: rise 1s var(--ease) both; }
.line-mask { display: block; overflow: hidden; padding-bottom: .04em; }
.line-mask > span { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .rise, .line-mask > span, .flake-ico, .marquee-track, .scroll-cue::after, .slow-spin { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- home hero ---------- */
.hero { min-height: min(100vh, 900px); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 56px; margin-top: -67px; }
.hero h1 { font-size: clamp(60px, 11vw, 168px); margin: 22px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: end; margin-top: 36px; }
.hero-blurb { font-size: clamp(16px, 1.6vw, 19px); color: var(--night-muted); max-width: 560px; margin: 0; }
.hero-blurb b { color: var(--night-ink); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-side { border-top: 1px solid var(--night-line); }
.hero-side li { list-style: none; display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 12px 0; border-bottom: 1px solid var(--night-line); }
.hero-side li span:first-child { color: var(--accent); }
.hero-side ul { margin: 0; padding: 0; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); text-decoration: none; }
.scroll-cue::after { content: ""; width: 1px; height: 28px; background: var(--accent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--night-line); }
.stat { padding: 22px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--night-line); }
.stat b { display: block; font: 400 clamp(40px, 5vw, 64px)/1 var(--display); }
.stat span { font: 600 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 20px; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--accent); color: #fff; overflow: hidden; border-block: 1px solid var(--ink); position: relative; z-index: 2; }
.marquee.tilt { transform: rotate(-1.2deg) scale(1.02); margin: -14px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font: 400 clamp(22px, 3vw, 34px)/1 var(--display); text-transform: uppercase; padding: 16px 0; white-space: nowrap; }
.marquee span::after { content: "❄"; font-family: var(--body); font-size: .6em; margin: 0 28px; vertical-align: .25em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; border-bottom: 1px solid var(--line); }
.night.section, .section.night { border-color: var(--night-line); }
.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(42px, 6.5vw, 92px); }
.section-head p { color: var(--ink-2); max-width: 580px; margin: 20px 0 0; font-size: 17px; }
:is(.night, .night-grid, .showcase, .app-hero) .section-head p { color: var(--night-muted); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 12px; } }

/* studio / about */
.about-grid { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 40px; }
.about-grid h2 { font-size: clamp(42px, 6vw, 84px); margin-bottom: 26px; }
.about-grid p { margin: 0 0 16px; color: var(--ink-2); font-size: 17px; }
.panel { background: var(--night); color: var(--night-ink); padding: 30px; position: relative; overflow: hidden; min-height: 300px; }
.panel h3 { font-size: 36px; position: relative; z-index: 1; }
.panel ul { list-style: none; padding: 0; margin: 22px 0 0; position: relative; z-index: 1; }
.panel li { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 13px 0; border-top: 1px solid var(--night-line); display: flex; gap: 12px; }
.panel li::before { content: "❄"; color: var(--accent); font-family: var(--body); }
.panel .big-flake { position: absolute; right: -60px; bottom: -70px; width: 260px; opacity: .07; z-index: 0; }
.slow-spin { animation: spin 60s linear infinite; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.pillar { position: relative; padding: 28px 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; min-height: 330px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; isolation: isolate; transition: color .35s; }
.pillar::before { content: ""; position: absolute; inset: 0; background: var(--night); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.pillar:hover { color: var(--night-ink); }
.pillar:hover::before { transform: none; }
.pillar:hover p { color: var(--night-muted); }
.pillar .num { font: 600 12px/1 var(--mono); color: var(--accent); }
.pillar svg { width: 44px; height: 44px; stroke: currentColor; stroke-width: 1.5; fill: none; margin: 6px 0; }
.pillar h3 { font-size: clamp(28px, 2.6vw, 38px); }
.pillar p { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1; transition: color .35s; }
.pillar .arrow { color: var(--accent); font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } }

/* process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 20px 0 0; position: relative; }
.step::before { content: ""; display: block; height: 2px; background: var(--night-line); margin-bottom: 22px; }
.step::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 1.2s var(--ease); transition-delay: var(--d, 0s); }
.step.in::after { width: calc(100% - 20px); }
.step b { font: 600 12px/1 var(--mono); color: var(--accent); }
.step h3 { font-size: 30px; margin: 12px 0 10px; }
.step p { margin: 0; font-size: 15px; color: var(--night-muted); }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; gap: 36px 0; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* lab teaser (typographic links to app pages) */
.lab-list { border-top: 1px solid var(--ink); }
.lab-row { display: grid; grid-template-columns: 64px 1fr auto 40px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
.lab-row img { width: 52px; height: 52px; border-radius: 22%; transition: transform .4s var(--ease); }
.lab-row h3 { font-size: clamp(40px, 6vw, 84px); transition: transform .4s var(--ease), color .3s; }
.lab-row .status { justify-self: end; }
.lab-row .go { font-size: 28px; color: var(--accent); transition: transform .4s var(--ease); }
.lab-row:hover h3 { transform: translateX(14px); color: var(--accent); }
.lab-row:hover img { transform: rotate(-8deg) scale(1.08); }
.lab-row:hover .go { transform: translateX(6px) rotate(-45deg); }
@media (max-width: 700px) { .lab-row { grid-template-columns: 48px 1fr; } .lab-row img { width: 44px; height: 44px; } .lab-row .status { grid-column: 2; justify-self: start; } .lab-row .go { display: none; } }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
:is(.night, .night-grid, .showcase, .app-hero) .status, .showcase .status { color: inherit; opacity: .8; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(229,41,31,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(229,41,31,0); } }

/* contact */
.contact-big { display: inline-block; font: 400 clamp(34px, 7vw, 104px)/1 var(--display); text-transform: uppercase; text-decoration: none; word-break: break-word; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 6px no-repeat; transition: background-size .5s var(--ease); }
.contact-big:hover { background-size: 100% 6px; }
.inboxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--night-line); margin-top: 56px; border: 1px solid var(--night-line); }
.inbox { background: var(--night); padding: 24px; transition: background .3s; }
.inbox:hover { background: var(--night-2); }
.inbox a { font: 500 14px/1.4 var(--mono); text-decoration: none; word-break: break-all; }
.inbox a:hover { color: var(--accent); }
.inbox p { color: var(--night-muted); font-size: 14px; margin: 10px 0 0; }
@media (max-width: 860px) { .inboxes { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--night-muted); padding: 72px 0 28px; border-top: 1px solid var(--night-line); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer ul { list-style: none; margin: 16px 0 0; padding: 0; }
.footer li { margin: 8px 0; font-size: 14px; }
.footer a { text-decoration: none; color: var(--night-ink); transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer-word { font: 400 clamp(56px, 13.5vw, 196px)/.85 var(--display); text-transform: uppercase; color: var(--night-ink); opacity: .9; margin: 64px 0 18px; white-space: nowrap; letter-spacing: -.005em; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 500 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--night-line); padding-top: 20px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- page heroes ---------- */
.page-hero { padding: clamp(72px, 11vw, 150px) 0 64px; margin-top: -67px; padding-top: calc(clamp(72px, 11vw, 150px) + 67px); }
.page-hero h1 { font-size: clamp(64px, 12vw, 180px); margin-top: 18px; }
.page-hero p.lead { font-size: clamp(17px, 1.8vw, 21px); max-width: 620px; margin: 24px 0 0; color: var(--night-muted); }
.crumbs { font: 600 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
:is(.night, .night-grid, .showcase, .app-hero) .crumbs { color: var(--night-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.jump a { font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 11px 14px; border: 1px solid var(--night-line); transition: all .2s; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- services page ---------- */
.svc { display: grid; grid-template-columns: 220px 1.2fr 1fr; gap: 40px; padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.svc:first-child { padding-top: 0; }
.svc .num { font: 400 72px/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--ink); }
.svc h2 { font-size: clamp(40px, 5vw, 72px); }
.svc p { color: var(--ink-2); font-size: 17px; margin: 18px 0 0; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.svc .tags span { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; border: 1px solid var(--line); }
.includes { background: var(--card); border: 1px solid var(--line); padding: 26px; align-self: start; }
.includes ul { list-style: none; margin: 14px 0 0; padding: 0; }
.includes li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; gap: 12px; }
.includes li::before { content: "→"; color: var(--accent); }
@media (max-width: 960px) { .svc { grid-template-columns: 1fr; gap: 18px; } }
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.extra { background: var(--night-2); border: 1px solid var(--night-line); padding: 24px; transition: transform .35s var(--ease), border-color .3s; }
.extra:hover { transform: translateY(-6px); border-color: var(--accent); }
.extra h3 { font-size: 26px; margin: 12px 0 10px; }
.extra p { margin: 0; color: var(--night-muted); font-size: 15px; }
@media (max-width: 960px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .extras { grid-template-columns: 1fr; } }

/* ---------- apps page ---------- */
.showcase { color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.showcase .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.showcase.flip .wrap > :first-child { order: 2; }
.showcase .idx { font: 600 12px/1 var(--mono); letter-spacing: .14em; opacity: .7; }
.showcase h2 { font-size: clamp(64px, 10vw, 150px); margin: 18px 0 12px; }
.showcase .tagline { font-size: clamp(18px, 2vw, 24px); margin: 0 0 18px; max-width: 520px; }
.showcase p { opacity: .82; max-width: 520px; margin: 0 0 22px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; max-width: 560px; }
.feature-list li { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.18); }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.app-actions .btn.ghost:hover { background: #fff; color: var(--ink); }
.phone-stage { display: grid; place-items: center; perspective: 1000px; }
.phone {
  width: min(300px, 70vw); aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 12px; background: #050608;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 50px 100px rgba(0,0,0,.45);
  transform-style: preserve-3d; transition: transform .2s ease-out; position: relative;
}
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; position: relative; }
.phone-screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 90px; height: 26px; background: #050608; border-radius: 20px; transform: translateX(-50%); }
.phone-screen img { width: 42%; border-radius: 22%; box-shadow: 0 18px 40px rgba(0,0,0,.4); transform: translateZ(40px); }
.phone-screen b { font: 400 30px/1 var(--display); text-transform: none; letter-spacing: .01em; }
.phone-screen small { font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.phone-glare { position: absolute; inset: 0; border-radius: 46px; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.18), transparent 50%); pointer-events: none; }
@media (max-width: 900px) {
  .showcase .wrap { grid-template-columns: 1fr; }
  .showcase.flip .wrap > :first-child { order: 0; }
  .phone-stage { order: -1; }
  .phone { width: min(230px, 60vw); }
}
.legal-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.legal-table a, .legal-table .na, .legal-table td:first-child { white-space: nowrap; }
.legal-table th, .legal-table td { text-align: left; padding: 18px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.legal-table th { font: 600 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.legal-table td:first-child { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 17px; }
.legal-table img { width: 40px; height: 40px; border-radius: 22%; }
.legal-table a { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.legal-table a:hover { text-decoration: underline; }
.legal-table .na { color: var(--muted); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--ink); }
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(48px, 8vw, 120px); }
.cta-band p { color: var(--night-muted); max-width: 520px; margin: 20px auto 30px; font-size: 17px; }

/* ---------- app hub ---------- */
.app-hero .wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: end; }
.app-hero h1 { font-size: clamp(72px, 12vw, 170px); margin-top: 18px; }
.app-hero p.lead { color: inherit; opacity: .85; }
.app-hero .icon-big { width: 100%; max-width: 260px; border-radius: 22%; box-shadow: 0 30px 70px rgba(0,0,0,.4); justify-self: end; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--card); border: 1px solid var(--line); padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 14px; min-height: 220px; position: relative; overflow: hidden; isolation: isolate; transition: color .35s; }
.tile::before { content: ""; position: absolute; inset: 0; background: var(--night); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.tile:hover { color: var(--night-ink); }
.tile:hover::before { transform: none; }
.tile:hover p { color: var(--night-muted); }
.tile h3 { font-size: 36px; }
.tile p { margin: 0; color: var(--ink-2); flex: 1; transition: color .35s; }
.tile .arrow { color: var(--accent); font-size: 24px; }
@media (max-width: 860px) {
  .app-hero .wrap { grid-template-columns: 1fr; }
  .app-hero .icon-big { justify-self: start; max-width: 120px; order: -1; }
  .tiles { grid-template-columns: 1fr; }
}

/* ---------- document pages (privacy / support / terms) ---------- */
.doc-hero { padding: clamp(56px, 7vw, 96px) 0 44px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(52px, 8.5vw, 120px); margin-top: 20px; }
.doc-hero .meta { margin-top: 20px; display: flex; gap: 24px; flex-wrap: wrap; }
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 56px; padding: 56px var(--gutter) 104px; }
.toc { position: sticky; top: 90px; align-self: start; list-style: none; padding: 0; margin: 0; }
.toc li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--ink-2); transition: color .2s, padding .2s; }
.toc li a:hover, .toc li a.on { color: var(--accent); padding-left: 6px; }
.prose { max-width: 740px; }
.prose h2 { font-size: 34px; margin: 52px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font: 700 16px/1.4 var(--body); text-transform: none; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 600 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.callout { background: var(--night); color: var(--night-ink); padding: 22px 24px; margin: 0 0 32px; border-left: 3px solid var(--accent); }
.callout p { color: var(--night-ink); margin: 0; }
.callout b { color: var(--accent); }
.callout a { color: #fff; }
.scope { font: 500 12px/1.6 var(--mono); color: var(--muted); border: 1px dashed var(--line); padding: 12px 14px; margin: 0 0 28px; }
.scope a { color: var(--accent); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font: 400 22px/1 var(--body); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } }

/* ---------- simple dropdown (Studio) ---------- */
.submenu.simple { min-width: 200px; }
.submenu.simple a { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 14px 12px; }
.submenu.simple a::after { content: "→"; margin-left: auto; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: all .2s var(--ease); }
.submenu.simple a:hover::after { opacity: 1; transform: none; }
.mobile-only { display: none; }
@media (max-width: 960px) {
  .mobile-only { display: block; }
  .nav-links .has-menu > a .caret { display: none; }
  .nav-links .has-menu > a { color: var(--night-muted); font-size: 10px; padding-bottom: 6px; }
  .submenu.simple a { padding: 12px 0; }
}

/* ---------- per-app tab bar (Overview / Support / Privacy / Terms) ---------- */
.app-tabs { position: sticky; top: 66px; z-index: 40; background: var(--app, var(--night)); color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.app-tabs .wrap { display: flex; align-items: center; gap: 24px; min-height: 56px; }
.app-tabs-name { display: flex; align-items: center; gap: 10px; font: 400 20px/1 var(--display); text-decoration: none; white-space: nowrap; }
.app-tabs-name img { width: 28px; height: 28px; border-radius: 22%; }
.app-tabs-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.app-tabs-links::-webkit-scrollbar { display: none; }
.app-tabs-links a { font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 12px 14px; white-space: nowrap; border: 1px solid transparent; opacity: .75; transition: all .2s; }
.app-tabs-links a:hover { opacity: 1; border-color: rgba(255,255,255,.35); }
.app-tabs-links a.on { opacity: 1; background: #fff; color: var(--ink); }
.app-tabs + main > .page-hero:first-child { margin-top: 0; padding-top: clamp(64px, 9vw, 120px); }
.app-tabs ~ main .toc { top: 140px; }
.app-tabs ~ main .prose h2 { scroll-margin-top: 140px; }
@media (max-width: 700px) {
  .app-tabs .wrap { gap: 12px; }
  .app-tabs-name { font-size: 16px; }
  .app-tabs-name img { width: 24px; height: 24px; }
  .app-tabs-links { margin-left: 0; }
}

/* ---------- logo mark ---------- */
.logo-mark { width: 34px; height: 34px; stroke: none; flex: none; transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-mark .drip, .footer-mark .drip { animation: drip-fall 3.2s cubic-bezier(.5, 0, .9, .4) infinite; transform-box: fill-box; }
@keyframes drip-fall {
  0%, 55% { transform: translateY(0) scale(0.4); opacity: 0; }
  62% { transform: translateY(0) scale(1); opacity: 1; }
  92% { transform: translateY(46px) scale(1); opacity: 1; }
  100% { transform: translateY(52px) scale(1.2, 0.3); opacity: 0; }
}
.footer-brand { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); margin: 64px 0 18px; }
.footer-brand .footer-word { margin: 0; }
.footer-mark { width: clamp(64px, 12vw, 168px); height: auto; flex: none; }
@media (prefers-reduced-motion: reduce) { .logo-mark .drip, .footer-mark .drip { animation: none; } }
.footer-brand .footer-word { font-size: clamp(34px, 10vw, 160px); min-width: 0; }
