/* ==========================================================================
   Umbrela — umbrela.us
   One stylesheet. Colours come from the logo: charcoal tile, cream canopy, rain blue.
   ========================================================================== */

@font-face { font-family: "Outfit"; src: url("/fonts/outfit.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --bg: #121312;
  --bg-2: #171817;
  --panel: #1d1e1c;
  --panel-2: #232422;
  --cream: #fcf5f0;
  --fg: #f3ece4;
  --fg-2: rgba(243, 236, 228, .74);
  --fg-3: rgba(243, 236, 228, .5);
  --line: rgba(243, 236, 228, .1);
  --line-2: rgba(243, 236, 228, .2);
  --rain: #87c6fa;
  --rain-2: #5aa9f0;
  --rain-soft: rgba(135, 198, 250, .14);
  --amber: #f5b06a;
  --live: #5fd08b;
  --mark-blue: #87c6fa;
  --wx-accent: #87c6fa;

  --ff: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --nav-h: 72px;
  --r: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --drop-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 0C12 0 23.5 13 23.5 19.6A11.5 11.5 0 0 1 .5 19.6C.5 13 12 0 12 0Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 350 17px/1.6 var(--ff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { fill: currentColor; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
em { font-style: italic; }
[hidden] { display: none !important; }
::selection { background: var(--rain); color: #0b0c0d; }
:focus-visible { outline: 2px solid var(--rain); outline-offset: 3px; border-radius: 6px; }

/* Film grain over everything, very quiet. */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--cream); color: #111; font-weight: 500; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }
.muted { color: var(--fg-3); }

/* ---------- Type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--ff); letter-spacing: .3em; text-transform: uppercase; color: var(--rain);
}
.label::before { content: ""; width: 9px; height: 11px; background: currentColor; -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; }
.h2 {
  margin: 22px 0 26px; max-width: 16ch;
  font-size: clamp(42px, 6.2vw, 104px); font-weight: 450; line-height: .96; letter-spacing: -.038em;
  text-wrap: balance;
}
.h2 em, .hero__title em, .app__tag em {
  font-family: var(--ff-serif); font-weight: 400; letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--cream) 10%, var(--rain) 55%, var(--cream) 95%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s var(--ease) infinite alternate;
  /* The gradient is only painted inside the element's box, and italic descenders (g, y, p) and
     overhangs reach outside it. Widen the painted area and cancel the extra space with margins. */
  padding: 0 .1em .24em .06em;
  margin: 0 -.1em -.24em -.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.lede { max-width: 46ch; font-size: clamp(18px, 1.5vw, 22.5px); font-weight: 300; line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.eyebrow { display: inline-block; font: 400 13px/1.7 var(--ff); letter-spacing: .24em; text-transform: uppercase; color: var(--fg-2); text-wrap: balance; }
.dot { display: inline-block; width: 4px; height: 4px; margin: 0 .8em; border-radius: 50%; background: var(--rain); vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 54px; padding: 0 26px; border: 0; border-radius: 999px; overflow: hidden; isolation: isolate;
  font: 500 16px/1 var(--ff); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--ease-out), box-shadow .35s var(--ease), background-color .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover svg[data-down], .btn[href="#apps"]:hover svg { transform: translateY(3px); }
.btn--solid { background: var(--cream); color: #121312; }
.btn--solid:hover { box-shadow: 0 0 0 7px rgba(252, 245, 240, .12); }
.btn--ghost { color: var(--fg); background: rgba(18, 19, 18, .35); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--cream), 0 0 0 7px rgba(252, 245, 240, .06); }
.btn--app { background: var(--app-accent); color: var(--app-on-accent, #111); }
.btn--app:hover { box-shadow: 0 0 0 7px color-mix(in srgb, var(--app-accent) 22%, transparent); }
.btn .splash { position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: currentColor; opacity: .28; transform: scale(0); animation: splash .7s var(--ease-out) forwards; pointer-events: none; }
@keyframes splash { to { transform: scale(40); opacity: 0; } }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 9px; border-radius: 999px; font: 500 11px/1 var(--ff-mono); letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 0 0 1px currentColor; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--live { color: var(--live); }
.chip--live::before { animation: pulse 2s ease-out infinite; }
.chip--beta { color: var(--amber); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- Reveal ---------- */
.js .reveal, .js .rise { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(4px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); }
.js .reveal { transition-delay: calc(var(--i, 0) * 80ms); }
.js .rise { transition-delay: calc(var(--d, 0) * 110ms + 250ms); }
.js .reveal.is-in, .js.is-loaded .rise { opacity: 1; transform: none; filter: none; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad);
  transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s;
}
.nav.is-solid { background: rgba(18, 19, 18, .62); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.nav__mark { width: 40px; height: 35px; }
.nav__word { width: 92px; height: 20px; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a { position: relative; padding: 8px 0; font-size: 15px; font-weight: 400; color: var(--fg-2); text-decoration: none; transition: color .25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 6px; height: 8px; margin-left: -3px;
  background: var(--rain); -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat;
  opacity: 0; transform: translateY(-10px) scale(.4); transition: opacity .3s, transform .5s var(--spring);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__links a.is-active::after { opacity: 1; transform: none; }
.nav__tools { display: flex; gap: 8px; }
.tool {
  position: relative; display: grid; grid-auto-flow: column; place-items: center; gap: 2px; min-width: 42px; height: 42px; padding: 0 10px;
  border: 0; border-radius: 999px; background: rgba(18, 19, 18, .3); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2);
  transition: color .25s, box-shadow .25s, background-color .25s;
}
.tool:hover { color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream); }
.tool svg { width: 18px; height: 18px; }
.tool__kbd { font: 500 12px/1 var(--ff-mono); }
.tool__on { display: none; }
.tool[aria-pressed="true"] { color: var(--rain); box-shadow: inset 0 0 0 1px var(--rain); }
.tool[aria-pressed="true"] .tool__on { display: block; }
.tool[aria-pressed="true"] .tool__off { display: none; }
.nav__menu { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding: calc(var(--nav-h) + 24px) var(--pad) 40px; background: var(--bg);
  clip-path: circle(0 at calc(100% - var(--pad) - 21px) calc(var(--nav-h) / 2)); transition: clip-path .7s var(--ease-out);
}
.menu.is-open { clip-path: circle(150% at calc(100% - var(--pad) - 21px) calc(var(--nav-h) / 2)); }
.menu nav { display: grid; gap: 6px; }
.menu nav a { display: flex; align-items: baseline; gap: 18px; font-size: clamp(40px, 11vw, 64px); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; text-decoration: none; }
.menu nav a span { font: 400 13px/1 var(--ff-mono); color: var(--rain); }
.menu__foot { color: var(--fg-2); font-size: 15px; line-height: 1.7; }

/* Rain gauge: scroll progress as rainfall. */
.gauge { position: fixed; right: 22px; top: 50%; z-index: 50; display: grid; justify-items: center; gap: 10px; transform: translateY(-50%); pointer-events: none; transition: opacity .4s; }
.gauge__tube { position: relative; width: 8px; height: 150px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden;
  background: repeating-linear-gradient(to top, transparent 0 14px, var(--line-2) 14px 15px); }
.gauge__water { position: absolute; inset: 0; background: linear-gradient(to top, var(--rain-2), var(--rain)); transform-origin: bottom; transform: scaleY(var(--p, 0)); }
.gauge__read { font: 500 10px/1 var(--ff-mono); color: var(--fg-3); writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .08em; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; background: radial-gradient(120% 70% at 72% 8%, #2a2621 0%, #15181b 45%, #0d0f11 100%); }
.pond { position: absolute; inset: 0; z-index: 0; }
.pond canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pond__water { opacity: 0; transition: opacity 1.4s var(--ease); }
.pond.is-live .pond__water { opacity: 1; }

.hero__mark {
  --mark-w: min(33vw, 43vh, 450px);
  position: absolute; z-index: 2; left: 50%; top: calc(var(--nav-h) + 2.5vh);
  width: var(--mark-w); aspect-ratio: 418 / 366; transform: translateX(-50%);
  color: var(--cream); pointer-events: none;
}
.hero__mark > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__canopy { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.hero__flow { transition: opacity .9s var(--ease); }
.hero__mark.is-drawn .hero__flow { opacity: 0; }
.hero__drops use { transform-box: fill-box; transform-origin: 50% 0; }
.js .hero__canopy { opacity: 0; transition: opacity .6s var(--ease); }
.js .hero__mark.is-drawn .hero__canopy { opacity: 1; }
.js .hero__drops use { opacity: 0; }
.hero.has-water .hero__pool { opacity: 0; transition: opacity 1.2s var(--ease); }

.hero__copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(64px, 10.5vh, 124px); padding: 0 var(--pad); text-align: center; pointer-events: none; }
.hero__copy a, .hero__copy button { pointer-events: auto; }
.hero__title { margin: 18px 0 18px; font-size: clamp(50px, 8.3vw, 152px); font-weight: 450; line-height: .92; letter-spacing: -.045em; text-shadow: 0 10px 50px rgba(0, 0, 0, .35); }
.hero__title .line { display: inline-block; }
.hero__title .line + .line { margin-left: .22em; }
.hero__title .rise { display: inline-block; }
.hero__lede { max-width: 50ch; margin: 0 auto; font-size: clamp(17px, 1.35vw, 21px); font-weight: 300; line-height: 1.5; color: var(--fg-2); text-wrap: balance; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.wx {
  position: absolute; z-index: 3; left: var(--pad); bottom: 26px; display: flex; align-items: center; gap: 10px; max-width: min(460px, 42vw);
  padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(14, 15, 16, .5); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; line-height: 1.35; color: var(--fg-2);
}
.wx strong { font-weight: 500; color: var(--cream); margin-right: 4px; }
.wx__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rain); color: var(--rain); animation: pulse 2.2s ease-out infinite; }
.wx .num { font-family: var(--ff-mono); font-size: 12px; color: var(--cream); }
.hero__hint { position: absolute; z-index: 3; right: var(--pad); bottom: 32px; font: 400 12px/1 var(--ff-mono); letter-spacing: .06em; color: var(--fg-3); }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { padding: 0 28px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 300; letter-spacing: -.02em; color: var(--fg-2); white-space: nowrap; }
.marquee span:nth-of-type(3n+2) { font-family: var(--ff-serif); font-style: italic; color: var(--cream); }
.marquee i { flex: none; width: 12px; height: 15px; background: var(--rain); -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Apps intro
   ========================================================================== */
.canopy { padding: clamp(110px, 13vw, 200px) 0 clamp(80px, 9vw, 140px); background: radial-gradient(80% 60% at 50% 0%, rgba(135, 198, 250, .07), transparent 70%), var(--bg); }
.drops { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 34px); margin-top: clamp(56px, 7vw, 100px); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 18px; text-decoration: none; color: var(--fg-2); transition: color .3s; }
.drop__img {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 150px; aspect-ratio: 24 / 30; padding-top: 37.5%;
  background:
    radial-gradient(46% 30% at 34% 58%, rgba(255, 255, 255, .2), transparent 70%),
    radial-gradient(90% 55% at 50% 100%, color-mix(in srgb, var(--c) 62%, #87c6fa), var(--c) 75%);
  -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat;
  transition: transform .8s var(--spring);
}
.drop__img::after { content: ""; position: absolute; left: 22%; top: 36%; width: 9%; height: 15%; border-radius: 50%; background: rgba(255, 255, 255, .42); filter: blur(1.5px); transform: rotate(20deg); }
.drop__img img { width: 52%; border-radius: 24%; box-shadow: 0 10px 22px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .14); }
.drop__name { font-size: 15px; font-weight: 400; text-align: center; line-height: 1.3; }
.drop:hover { color: var(--cream); }
.drop:hover .drop__img { transform: translateY(-10px); animation: wobble .9s var(--ease-out); }
@keyframes wobble { 0% { scale: 1 1; } 30% { scale: 1.08 .92; } 55% { scale: .95 1.06; } 80% { scale: 1.02 .98; } 100% { scale: 1 1; } }

/* ==========================================================================
   App chapters
   ========================================================================== */
.app {
  --app-bg: #111; --app-fg: #f7f5f2; --app-fg-2: rgba(247, 245, 242, .74); --app-accent: var(--rain); --app-on-accent: #0c0d0e; --app-line: rgba(255, 255, 255, .14);
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(100px, 12vw, 180px) 0; color: var(--app-fg);
}
.app__bg { position: absolute; inset: 0; z-index: -1; background: var(--app-bg); clip-path: circle(calc(var(--reveal, 1) * 142%) at var(--ox, 50%) var(--oy, 0%)); }
.js .app { --reveal: 0; }
.js .app .app__grid { opacity: var(--content, 0); transition: opacity .4s linear; }
.app__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(40px, 7vw, 120px); }
.app__grid--flip .app__copy { order: 2; }
.app__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; font: 500 12px/1 var(--ff-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--app-fg-2); }
.app__num { color: var(--app-accent); }
.app__head { display: flex; align-items: center; gap: 20px; margin: 26px 0 18px; }
.app__icon { flex: none; width: clamp(56px, 5.5vw, 76px); height: auto; border-radius: 23%; box-shadow: 0 14px 30px rgba(0, 0, 0, .3), 0 0 0 1px var(--app-line); }
.app__name { font-size: clamp(40px, 5.2vw, 80px); font-weight: 500; line-height: .95; letter-spacing: -.04em; }
.app__tag { margin-bottom: 22px; font-size: clamp(22px, 2.1vw, 31px); font-weight: 350; line-height: 1.2; letter-spacing: -.02em; }
.app__tag em { background: none; animation: none; color: var(--app-accent); -webkit-background-clip: border-box; background-clip: border-box; }
.app__body { max-width: 54ch; color: var(--app-fg-2); font-size: 17.5px; }
.app__feats { display: grid; gap: 13px; margin: 28px 0 34px; max-width: 56ch; }
.app__feats li { position: relative; padding-left: 26px; color: var(--app-fg-2); font-size: 16px; line-height: 1.5; }
.app__feats li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 10px; height: 12px; background: var(--app-accent); -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; }
.app__feats strong { font-weight: 500; color: var(--app-fg); }
.app__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.app__plat { font: 400 12px/1.4 var(--ff-mono); letter-spacing: .06em; color: var(--app-fg-2); }
.app__try { margin: -8px 0 32px; }
.app__try label { display: block; margin-bottom: 10px; font: 500 12px/1 var(--ff-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--app-fg-2); }
.field--inline { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--app-line); font-size: 18px; }
.field--inline input { width: 9.5em; padding: 8px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); outline: none; font-weight: 500; }
.field--inline input:focus { box-shadow: 0 0 0 2px var(--app-accent); }
.field--inline span:last-child { padding-right: 10px; }
.app__stage { position: relative; display: grid; justify-items: center; }

/* Per-app worlds */
.app--yan { --app-bg: radial-gradient(90% 70% at 85% 10%, #1c3f75 0%, #0c1e3e 55%, #071426 100%); --app-accent: #ff4b58; --app-on-accent: #fff; }
.app--zip { --app-bg: radial-gradient(80% 70% at 15% 15%, #1570b4 0%, #0b3d73 48%, #06264a 100%); --app-accent: #69d1f0; --app-on-accent: #06264a; }
.app--lr {
  --app-bg: radial-gradient(70% 60% at 80% 20%, #fdfbf7 0%, #f7f4ee 50%, #efe9df 100%);
  --app-fg: #1a1a1a; --app-fg-2: rgba(26, 26, 26, .72); --app-accent: #b0413e; --app-on-accent: #fdfbf7; --app-line: rgba(26, 26, 26, .12);
}
.app--lr .chip--live { color: #3f7a4c; }
.app--sky { --app-bg: radial-gradient(70% 60% at 20% 30%, #161a28 0%, #0a0c12 60%, #05060a 100%); --app-fg: #efe9dc; --app-fg-2: rgba(239, 233, 220, .72); --app-accent: #d9be84; --app-on-accent: #0a0c12; }
.app--tide { --app-bg: radial-gradient(80% 70% at 80% 80%, #1c7c8a 0%, #12404a 38%, #0e1a21 78%); --app-fg: #f5f8f8; --app-fg-2: rgba(245, 248, 248, .74); --app-accent: #5fb8c6; --app-on-accent: #0e1a21; }
.app--face { --app-bg: radial-gradient(55% 55% at 22% 30%, rgba(139, 92, 246, .32), transparent 70%), radial-gradient(55% 55% at 80% 75%, rgba(34, 211, 238, .22), transparent 70%), #07080c; --app-fg: #f4f5f9; --app-fg-2: rgba(244, 245, 249, .72); --app-accent: #a78bfa; --app-on-accent: #07080c; }
.sky__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }

/* ---------- Phone ---------- */
.phone { width: min(344px, 84vw); perspective: 1400px; }
.phone__frame {
  position: relative; container-type: inline-size; aspect-ratio: 9 / 19.2; padding: 3.2%; border-radius: 15% / 7.2%;
  background: linear-gradient(145deg, #3a3c3f, #121314 38%, #1c1d1f 70%, #3a3c3f);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 4px #0b0b0c, 0 50px 90px -30px rgba(0, 0, 0, .7), 0 22px 40px -22px rgba(0, 0, 0, .6);
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .7s var(--ease-out); transform-style: preserve-3d;
}
.phone__frame::before { content: ""; position: absolute; right: -2px; top: 24%; width: 3px; height: 11%; border-radius: 2px; background: #2a2b2d; }
.phone__frame::after {
  content: ""; position: absolute; inset: 3.2%; border-radius: 12.5% / 5.9%; pointer-events: none; z-index: 5;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .08) 45%, transparent 60%);
  background-size: 250% 250%; background-position: var(--gx, 50%) 50%; transition: background-position .7s var(--ease-out);
}
.phone--light .phone__frame { background: linear-gradient(145deg, #e8e4dc, #bdb7ad 40%, #d9d4cb 70%, #f2efe9); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6), inset 0 0 0 4px #1a1a1a, 0 50px 90px -30px rgba(60, 40, 20, .45), 0 22px 40px -22px rgba(60, 40, 20, .35); }
.phone__screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 12.5% / 5.9%; font-size: 4.2cqw; line-height: 1.35; }
.phone__status { display: flex; align-items: center; justify-content: space-between; flex: none; height: 3.6em; padding: 0 1.9em 0 2.2em; font-weight: 600; font-size: 1em; }
.phone__island { width: 7.2em; height: 2.1em; border-radius: 2em; background: #000; }
.phone__sig { width: 3.4em; height: .95em; border-radius: .3em; background: linear-gradient(90deg, currentColor 0 60%, transparent 60% 68%, currentColor 68% 76%, transparent 76%); opacity: .85; }
.phone__cap { margin-top: 22px; text-align: center; font: 400 11.5px/1.5 var(--ff-mono); letter-spacing: .04em; color: var(--app-fg-2); }

/* ---------- Demo: Your America Now ---------- */
.yan { background: #f6f7f9; color: #0c1e3e; }
.yan .phone__status { background: #0c1e3e; color: #fff; }
.yan__head { display: flex; align-items: center; gap: .8em; padding: .4em 1.4em 1.1em; background: #0c1e3e; color: #fff; }
.yan__head img { width: 2.3em; height: 2.3em; border-radius: .55em; }
.yan__title { font-size: 1.45em; font-weight: 600; letter-spacing: -.02em; }
.yan__blank { display: inline-block; min-width: 2.2em; padding: 0 .15em; border-bottom: .12em solid #d6202f; color: #fff; }
.yan__blank.is-typing::after { content: ""; display: inline-block; width: .08em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: #fff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.yan__tabs { display: flex; gap: 1.3em; padding: .9em 1.4em 0; background: #fff; border-bottom: 1px solid #dfe3e9; font-size: .9em; font-weight: 500; color: #5b6472; }
.yan__tabs span { padding-bottom: .7em; }
.yan__tabs .on { color: #0c1e3e; box-shadow: inset 0 -.18em 0 #d6202f; }
.yan__feed { display: grid; gap: .7em; padding: .9em 1em; flex: 1; align-content: start; }
.yan__card { padding: .9em 1em; border-radius: .8em; background: #fff; box-shadow: 0 0 0 1px #dfe3e9, 0 .2em .6em rgba(12, 30, 62, .05); animation: cardIn .6s var(--ease-out) both; }
.yan__card:nth-child(2) { animation-delay: .08s; } .yan__card:nth-child(3) { animation-delay: .16s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(.8em); } }
.yan__src { display: flex; align-items: center; gap: .5em; font-size: .78em; color: #5b6472; }
.yan__badge { padding: .2em .5em; border-radius: .35em; background: #fde8ea; color: #b31220; font-weight: 600; font-size: .9em; letter-spacing: .04em; text-transform: uppercase; }
.yan__badge--wx { background: #e6eef9; color: #123056; }
.yan__badge--talk { background: #eef1f5; color: #0c1e3e; }
.yan__h { margin: .45em 0 .55em; font-weight: 600; line-height: 1.25; }
.yan__meta { display: flex; gap: 1.2em; font-size: .8em; color: #5b6472; }
.yan__help b { color: #0c1e3e; }
.yan__rules { padding: .8em 1.4em 1.3em; font-size: .78em; color: #5b6472; text-align: center; }
.yan__poll { display: grid; gap: .35em; }
.yan__poll span { display: flex; justify-content: space-between; padding: .35em .6em; border-radius: .45em; background: linear-gradient(90deg, #dbe6f6 calc(var(--v) * 100%), #f1f3f6 0); font-size: .82em; font-weight: 500; }
.yan__poll b { color: #0c1e3e; }

/* ---------- Demo: ZipTrip ---------- */
.zip { background: linear-gradient(180deg, #071a33, #0b2a52 60%, #0b3561); color: #fff; }
.zip__head { display: flex; align-items: center; gap: .6em; padding: .2em 1.4em .8em; font-size: 1.15em; }
.zip__head img { width: 2em; height: 2em; border-radius: .5em; }
.zip__form { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .3em .6em; margin: 0 1em; padding: .8em 1em; border-radius: .9em; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(105, 209, 240, .22); }
.zip__form p { font-weight: 600; }
.zip__form small { display: block; font-size: .7em; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #69d1f0; }
.zip__arrow { width: 1.2em; height: 1.2em; color: #69d1f0; }
.zip__when { grid-column: 1 / -1; padding-top: .5em; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9em; }
.zip__map { margin: .8em 1em .6em; border-radius: .9em; overflow: hidden; background: #0a2446; box-shadow: inset 0 0 0 1px rgba(105, 209, 240, .18); }
.zip__map svg { width: 100%; height: auto; }
.zip__river { stroke: rgba(105, 209, 240, .28); stroke-width: 9; stroke-linecap: round; }
.zip__route-bg { stroke: rgba(255, 255, 255, .1); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 9; }
.zip__route { stroke: #69d1f0; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--zip, 0)); }
.zip__stop circle { fill: #0a2446; stroke: #5acc68; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--spring); }
.zip__stop.is-on circle { transform: scale(1); }
.zip__pin--a circle:first-child { fill: #de4343; }
.zip__pin .hole { fill: #0a2446; }
.zip__pin--b path { fill: #ffd13f; }
.zip__pin--b { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); transition: transform .6s var(--spring); }
.zip__pin--b.is-on { transform: scale(1); }
.zip__plan { display: grid; gap: .45em; margin: 0 1em; padding: 0; list-style: none; flex: 1; align-content: start; }
.zip__plan li { display: grid; grid-template-columns: auto 1fr; column-gap: .7em; align-items: center; padding: .55em .8em; border-radius: .7em; background: rgba(255, 255, 255, .06); opacity: .12; transform: translateX(-.6em); transition: opacity .45s, transform .6s var(--ease-out); }
.zip__plan li.is-on { opacity: 1; transform: none; }
.zip__plan b { font-weight: 600; font-size: .95em; }
.zip__plan small { grid-column: 2; font-size: .78em; color: rgba(255, 255, 255, .66); }
.zip__tag { grid-row: span 2; padding: .35em .5em; border-radius: .45em; font-size: .68em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #06264a; }
.zip__tag--stay { background: #69d1f0; } .zip__tag--see { background: #5acc68; } .zip__tag--eat { background: #ffd13f; } .zip__tag--sun { background: #ff8a6b; }
.zipper { position: relative; height: 3.6em; margin: .9em 1em 1.4em; border-radius: 2em; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(105, 209, 240, .25); overflow: hidden; touch-action: none; }
.zipper__teeth { position: absolute; left: 1.8em; right: 1.8em; top: 50%; height: .9em; margin-top: -.45em; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 .22em, transparent .22em .44em); }
.zipper__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--zip, 0) * (100% - 3.6em) + 3.6em); border-radius: 2em; background: linear-gradient(90deg, #1b6fa8, #69d1f0); }
.zipper__label { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 2.6em; font-size: .9em; font-weight: 600; letter-spacing: .02em; color: #fff; text-shadow: 0 0 .5em #06264a, 0 0 .2em #06264a; pointer-events: none; }
.zipper__pull { position: absolute; top: .3em; left: calc(var(--zip, 0) * (100% - 3.6em) + .3em); display: grid; place-items: center; width: 3em; height: 3em; padding: 0; border: 0; border-radius: 50%; background: #ffd13f; color: #06264a; box-shadow: 0 .3em .8em rgba(0, 0, 0, .35); cursor: grab; touch-action: none; }
.zipper__pull:active { cursor: grabbing; }
.zipper__pull svg { width: 1.4em; height: 1.4em; }
.zipper.is-done .zipper__pull svg { transform: rotate(0); }

/* ---------- Demo: The Ladies Room ---------- */
.lr { background: #f7f4ee; color: #1a1a1a; }
.lr__head { display: flex; align-items: center; gap: .7em; padding: .2em 1.4em .8em; }
.lr__head img { width: 2.2em; height: 2.2em; border-radius: .55em; }
.lr__head b { display: block; font-weight: 600; font-size: 1.05em; }
.lr__head small { font-size: .74em; letter-spacing: .12em; text-transform: uppercase; color: #7a736b; }
.lr__map { margin: 0 1em; border-radius: .9em; overflow: hidden; background: #efe9df; box-shadow: inset 0 0 0 1px #e3dbcf; }
.lr__map svg { width: 100%; height: auto; }
.lr__pin circle { fill: #c97b7b; }
.lr__pin--on circle { fill: #e2c77f; stroke: #b08a3e; stroke-width: 2; }
.lr__pin--on { animation: bob 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.lr__card { position: relative; margin: -.6em 1em 0; padding: 1em 1.1em; border-radius: 1em; background: #fdfbf7; box-shadow: 0 .5em 1.4em rgba(60, 40, 20, .12), 0 0 0 1px #ece5da; }
.lr__place { display: flex; align-items: baseline; justify-content: space-between; gap: .5em; }
.lr__place b { font-weight: 600; }
.lr__place small { font-size: .78em; color: #7a736b; white-space: nowrap; }
.lr__rate { display: flex; align-items: center; gap: .15em; margin: .6em 0 .3em; }
.lr__rate button { display: grid; place-items: center; width: 2.1em; height: 2.3em; padding: 0; border: 0; border-radius: .5em; background: transparent; color: #d9d0c6; transition: color .2s, transform .35s var(--spring); }
.lr__rate button svg { width: 1.7em; height: 1.7em; }
.lr__rate button.is-hot, .lr__rate button[aria-checked="true"] { color: #b08a3e; }
.lr__rate button:hover { transform: translateY(-.15em) rotate(-8deg); }
.lr__golden { margin-left: .4em; padding: .3em .6em; border-radius: 1em; background: linear-gradient(90deg, #e2c77f, #f6edd6, #e2c77f); background-size: 200% 100%; font-size: .72em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b5220; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--spring); animation: sheen 2.5s linear infinite alternate; }
.lr__golden.is-on { opacity: 1; transform: none; }
.lr__smell { display: grid; grid-template-columns: auto 1fr 4.6em; align-items: center; gap: .6em; margin: .2em 0 .6em; font-size: .85em; }
.lr__smell label { font-weight: 600; }
.lr__smell output { font-weight: 600; text-align: right; color: var(--smell, #7a736b); }
.lr__smell input { -webkit-appearance: none; appearance: none; height: .5em; border-radius: 1em; background: linear-gradient(90deg, #b85c5c, #d0937b, #c9b48e, #8a9a7b, #55624f); }
.lr__smell input::-webkit-slider-thumb { -webkit-appearance: none; width: 1.3em; height: 1.3em; border-radius: 50%; background: #fdfbf7; box-shadow: 0 0 0 .18em #1a1a1a; cursor: pointer; }
.lr__smell input::-moz-range-thumb { width: 1.1em; height: 1.1em; border: .18em solid #1a1a1a; border-radius: 50%; background: #fdfbf7; cursor: pointer; }
.lr__amen { display: flex; flex-wrap: wrap; gap: .35em; }
.lr__amen li { padding: .3em .6em; border-radius: 1em; background: #e3e7dc; color: #3d4838; font-size: .74em; font-weight: 500; }
.lr__safe { display: flex; align-items: center; gap: .4em; margin-top: .6em; font-size: .8em; color: #55624f; }
.lr__safe svg { width: 1.2em; height: 1.2em; }
.lr__stamp { position: absolute; right: .8em; top: 2.6em; padding: .4em .6em; border: .16em solid #b0413e; border-radius: .4em; color: #b0413e; font-size: .72em; font-weight: 800; line-height: 1.05; letter-spacing: .08em; text-align: center; text-transform: uppercase; opacity: 0; transform: rotate(-14deg) scale(2); pointer-events: none; }
.lr__stamp.is-on { animation: stamp .5s var(--ease-out) forwards; }
@keyframes stamp { 60% { opacity: .95; transform: rotate(-14deg) scale(.92); } 100% { opacity: .9; transform: rotate(-14deg) scale(1); } }
.lr__near { margin: .9em 1.1em 0; }
.lr__near-h { margin-bottom: .2em; font-size: .7em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a736b; }
.lr__row { display: grid; grid-template-columns: 1fr auto; column-gap: .6em; padding: .45em 0; border-top: 1px solid #e6dfd4; font-size: .85em; }
.lr__row b { font-weight: 600; }
.lr__row span { display: inline-flex; align-items: center; gap: .15em; color: #b08a3e; font-weight: 700; }
.lr__row span svg { width: 1.15em; height: 1.15em; }
.lr__row small { grid-column: 1 / -1; font-size: .85em; color: #7a736b; }
.lr__rank { margin: auto 1em 1.4em; padding-top: .9em; font-size: .85em; }
.lr__rank span { font-weight: 700; }
.lr__bar { height: .45em; margin: .4em 0 .35em; border-radius: 1em; background: #e6dfd4; overflow: hidden; }
.lr__bar i { display: block; height: 100%; width: var(--rank, 8%); border-radius: inherit; background: linear-gradient(90deg, #c9b48e, #e2c77f); transition: width .6s var(--ease-out); }
.lr__rank small { font-size: .82em; color: #7a736b; }

/* ---------- Demo: What's My Sky ---------- */
.sky { background: radial-gradient(90% 60% at 50% 40%, #131722, #0a0c12 70%); color: #efe9dc; }
.sky__head { display: flex; align-items: center; gap: .7em; padding: .2em 1.4em .4em; }
.sky__head img { width: 2.2em; height: 2.2em; border-radius: .55em; }
.sky__head b { display: block; font-family: var(--ff-serif); font-weight: 400; font-size: 1.35em; color: #ebd9a8; line-height: 1; }
.sky__head small { font: 400 .75em/1.4 var(--ff-mono); color: #8a857a; }
.sky__orrery { width: 100%; aspect-ratio: 1; }
.sky__read { display: grid; gap: .1em; margin: -.2em 1.2em .6em; padding: .7em .9em; border-radius: .8em; background: rgba(19, 23, 34, .8); box-shadow: inset 0 0 0 1px rgba(217, 190, 132, .18); }
.sky__read div { display: flex; justify-content: space-between; gap: .6em; padding: .25em 0; }
.sky__read div + div { border-top: 1px solid rgba(217, 190, 132, .1); }
.sky__read dt { font-size: .8em; color: #b9b3a6; }
.sky__read dd { font: 500 .8em/1.4 var(--ff-mono); color: #ebd9a8; text-align: right; }
.sky__time { display: flex; align-items: center; gap: .6em; margin: auto 1.2em 1.4em; }
.sky__play, .sky__now { flex: none; display: grid; place-items: center; height: 2.4em; border: 0; border-radius: 1.2em; background: rgba(217, 190, 132, .14); color: #d9be84; font-size: .85em; font-weight: 600; }
.sky__play { width: 2.4em; }
.sky__play svg { width: 1.2em; height: 1.2em; }
.sky__now { padding: 0 .9em; }
.sky__time input { flex: 1; min-width: 0; accent-color: #c9a45c; }

/* ---------- Demo: What's My Tide ---------- */
.tide { background: linear-gradient(180deg, #0e1a21 0%, #10262e 100%); color: #f5f8f8; }
.tide__head { display: flex; align-items: center; gap: .7em; padding: .2em 1.4em .6em; }
.tide__head img { width: 2.2em; height: 2.2em; border-radius: .55em; }
.tide__head b { display: block; font-weight: 600; }
.tide__head small { font: 400 .75em/1.4 var(--ff-mono); color: rgba(245, 248, 248, .6); }
.tide__now { padding: .6em 1.4em 0; }
.tide__state { font-size: .85em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5fb8c6; }
.tide__height { display: flex; align-items: baseline; gap: .2em; margin: .1em 0 .2em; font-size: 3.6em; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tide__height small { font-size: .32em; font-weight: 400; letter-spacing: 0; color: rgba(245, 248, 248, .6); }
.tide__next { min-height: 2.7em; font-size: .85em; color: rgba(245, 248, 248, .75); }
.tide__next b { color: #d2ac6e; font-weight: 600; }
.tide__chart { width: 100%; aspect-ratio: 1.25; margin-top: .4em; }
.tide__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; margin: .5em 1.2em 0; }
.tide__stats p { padding: .5em .6em; border-radius: .7em; background: rgba(95, 184, 198, .08); box-shadow: inset 0 0 0 1px rgba(95, 184, 198, .2); }
.tide__stats small { display: block; margin-bottom: .15em; font-size: .62em; letter-spacing: .05em; text-transform: uppercase; color: rgba(245, 248, 248, .55); }
.tide__stats b { font-size: .88em; font-weight: 600; }
.tide__foot { display: flex; align-items: center; justify-content: space-between; gap: .6em; margin: auto 1.2em 1.4em; }
.tide__music { display: inline-flex; align-items: center; gap: .5em; height: 2.6em; padding: 0 1em 0 .8em; border: 0; border-radius: 1.3em; background: rgba(95, 184, 198, .16); box-shadow: inset 0 0 0 1px rgba(95, 184, 198, .45); color: #bfe6ec; font-size: .85em; font-weight: 600; }
.tide__music svg { width: 1.1em; height: 1.1em; }
.tide__music.is-playing { background: #5fb8c6; color: #0e1a21; }
.tide__src { font: 500 .68em/1.3 var(--ff-mono); letter-spacing: .04em; color: rgba(245, 248, 248, .55); text-align: right; }
.tide__src.is-live::before { content: "● "; color: #5fd08b; }

/* ---------- Demo: In Your Face ---------- */
.face { background: radial-gradient(80% 50% at 50% 30%, #161329, #07080c 70%); color: #f4f5f9; }
.face__head { display: flex; align-items: center; gap: .7em; padding: .2em 1.4em .5em; }
.face__head img { width: 2.2em; height: 2.2em; border-radius: .55em; }
.face__head b { display: block; font-weight: 600; }
.face__head small { font: 400 .75em/1.4 var(--ff-mono); color: #9aa3b5; }
.face__stage { position: relative; margin: .2em 1.4em .5em; aspect-ratio: 1; border-radius: 1em; overflow: hidden; background: radial-gradient(60% 60% at 50% 45%, #1a1633, #0c0e15); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .3); }
.face__art { position: absolute; inset: 6%; width: 88%; height: 88%; }
.face__axis { stroke: #22d3ee; stroke-width: 1; stroke-dasharray: 3 4; opacity: .8; }
.face__cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face__stage.is-cam::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(34, 211, 238, .8); }
.face__modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3em; margin: 0 1.4em; padding: .3em; border-radius: .8em; background: #0c0e15; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.face__modes button { height: 2.2em; border: 0; border-radius: .55em; background: transparent; color: #9aa3b5; font-size: .8em; font-weight: 600; transition: background-color .25s, color .25s; }
.face__modes button[aria-checked="true"] { background: linear-gradient(90deg, #8b5cf6, #22d3ee); color: #07080c; }
.face__score { margin: .8em 1.4em 0; }
.face__score p { display: flex; justify-content: space-between; align-items: baseline; }
.face__score p span { font-size: .8em; color: #9aa3b5; text-transform: uppercase; letter-spacing: .1em; }
.face__score b { font-size: 1.5em; font-weight: 600; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #a78bfa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.face__meters { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5em; margin-top: .5em; }
.face__meters span { position: relative; padding-top: .8em; font-size: .66em; color: #9aa3b5; text-align: center; }
.face__meters span::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .35em; border-radius: 1em; background: linear-gradient(90deg, #8b5cf6, #22d3ee) 0 0 / calc(var(--v) * 100%) 100% no-repeat, #1b1e2b; transition: background-size .6s var(--ease-out); }
.face__vars { display: flex; flex-wrap: wrap; gap: .3em; margin: .9em 1.4em 0; }
.face__vars span { padding: .28em .6em; border-radius: 1em; background: rgba(139, 92, 246, .12); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .32); color: #c4b5fd; font-size: .68em; font-weight: 600; }
.face__camera { display: flex; align-items: center; justify-content: center; gap: .5em; height: 2.9em; margin: auto 1.4em 1.4em; border: 0; border-radius: 1.5em; background: linear-gradient(#07080c, #07080c) padding-box, linear-gradient(90deg, #8b5cf6, #22d3ee, #e879f9) border-box; border: .12em solid transparent; color: #f4f5f9; font-size: .9em; font-weight: 600; }
.face__camera svg { width: 1.2em; height: 1.2em; }
.face__camera.is-on { background: linear-gradient(90deg, #8b5cf6, #22d3ee) border-box; color: #07080c; }

/* ==========================================================================
   Numbers
   ========================================================================== */
.numbers { padding: clamp(80px, 9vw, 130px) 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.numbers__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px clamp(18px, 2.5vw, 40px); }
.num b { display: block; font-size: clamp(40px, 4.4vw, 72px); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--cream); font-variant-numeric: tabular-nums; }
.num span { display: block; margin-top: 14px; max-width: 22ch; font-size: 14.5px; line-height: 1.45; color: var(--fg-2); }
.num:nth-child(odd) b { color: var(--rain); }

/* ==========================================================================
   Studio
   ========================================================================== */
.studio { padding: clamp(110px, 13vw, 200px) 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(48px, 6vw, 88px); }
.card {
  position: relative; padding: 34px 32px 36px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease-out), box-shadow .4s;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(135, 198, 250, .13), transparent 60%); opacity: 0; transition: opacity .4s; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2); }
.card:hover::before { opacity: 1; }
.card__icon { width: 34px; height: 34px; color: var(--rain); }
.card__fc { margin: 30px 0 8px; font: 500 11.5px/1.3 var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rain); }
.card h3 { margin-bottom: 12px; font-size: 26px; font-weight: 450; letter-spacing: -.02em; line-height: 1.15; }
.card p:last-child { color: var(--fg-2); font-size: 16px; line-height: 1.55; }

.tenets { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 40px; margin-top: clamp(80px, 10vw, 150px); padding-top: 48px; border-top: 1px solid var(--line); }
.tenets__title { font-family: var(--ff-serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: -.01em; }
.tenets__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; counter-reset: t; }
.tenets__list li { position: relative; padding-top: 44px; color: var(--fg-2); font-size: 16.5px; line-height: 1.55; counter-increment: t; }
.tenets__list li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 500 12px/1 var(--ff-mono); color: var(--rain); letter-spacing: .1em; }
.tenets__list li::after { content: ""; position: absolute; left: 36px; right: 0; top: 6px; height: 1px; background: var(--line); }
.tenets__list b { display: block; margin-bottom: 8px; font-size: 21px; font-weight: 450; color: var(--cream); letter-spacing: -.015em; }

/* ==========================================================================
   Process: five-day forecast
   ========================================================================== */
.process { padding: clamp(110px, 13vw, 200px) 0; background: linear-gradient(180deg, var(--bg) 0%, #151a1f 100%); border-top: 1px solid var(--line); }
.forecast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 88px); }
.day { position: relative; display: flex; flex-direction: column; padding: 26px 24px 26px; border-radius: 22px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .4s, transform .6s var(--ease-out); }
.day:hover { background: rgba(135, 198, 250, .06); transform: translateY(-6px); }
.day__dow { font: 500 12px/1 var(--ff-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); }
.day__wx { width: 64px; height: 64px; margin: 22px 0 14px; color: var(--cream); }
.day:hover .day__wx { animation: float 2.6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px); } }
.day__cond { font-family: var(--ff-serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--rain); }
.day h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.day p:not([class]) { color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.day__temp { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 22px; font-size: 13.5px; color: var(--fg-2); }
.day__temp b { font-size: 34px; font-weight: 300; letter-spacing: -.04em; color: var(--cream); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: clamp(110px, 13vw, 200px) 0 clamp(90px, 10vw, 150px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__direct { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 36px; }
.contact__email { position: relative; font-size: clamp(26px, 3.2vw, 46px); font-weight: 400; letter-spacing: -.03em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease-out), color .3s; }
.contact__email:hover { color: var(--rain); background-size: 0 1px; background-position: 100% 100%; }
.copy { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); font-size: 14px; transition: color .25s, box-shadow .25s; }
.copy:hover { color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream); }
.copy svg { width: 16px; height: 16px; }
.copy.is-done { color: var(--live); box-shadow: inset 0 0 0 1px var(--live); }
.contact__addr { margin-top: 30px; font-style: normal; font-size: 16px; line-height: 1.7; color: var(--fg-2); }
.composer { position: relative; display: grid; gap: 20px; padding: clamp(26px, 3vw, 40px); border-radius: 28px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.composer__title { font-family: var(--ff-serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--cream); }
.composer .field { display: grid; gap: 8px; }
.composer .field label { font: 500 11.5px/1 var(--ff-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.composer input, .composer textarea { width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16.5px; outline: none; resize: vertical; transition: box-shadow .25s, background-color .25s; }
.composer input:focus, .composer textarea:focus { background: rgba(135, 198, 250, .05); box-shadow: inset 0 0 0 1.5px var(--rain); }
.composer [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #f08a7a; }
.composer textarea { min-height: 140px; }
.composer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.composer__note { flex: 1 1 200px; font-size: 13.5px; line-height: 1.45; color: var(--fg-3); }
.composer__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.composer__note.is-sent { color: var(--cream); }
.composer__note.is-error { color: #f08a7a; }
.composer__note a { color: var(--rain); }
.composer .falling { position: absolute; z-index: 5; width: 16px; height: 20px; background: var(--rain); -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; pointer-events: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 28px; background: linear-gradient(180deg, #0d0f11 0%, #0b0d0f 100%); }
.foot .pond { z-index: -1; }
.foot__word { position: relative; width: min(100% - 2 * var(--pad), 1400px); margin: 0 auto; padding-top: clamp(90px, 14vw, 200px); color: var(--cream); pointer-events: none; }
.foot__word svg { width: 100%; height: auto; }
.foot__grid {
  position: relative; display: grid; grid-template-columns: 1.6fr repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: clamp(110px, 16vw, 260px);
  padding: 44px 0 40px; border-top: 1px solid var(--line);
}
.foot__grid::before { content: ""; position: absolute; left: -50vw; right: -50vw; top: 0; bottom: -200px; z-index: -1; background: linear-gradient(180deg, rgba(11, 13, 15, .55), rgba(11, 13, 15, .92) 40%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.foot__logo { display: inline-block; width: 64px; margin-bottom: 18px; color: var(--cream); }
.foot__logo svg { width: 100%; height: auto; }
.foot__brand p { max-width: 36ch; color: var(--fg-2); font-size: 15.5px; line-height: 1.6; }
.foot__brand .foot__motto { margin-bottom: 14px; font-size: 22px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; color: var(--cream); }
.foot__motto em { font-family: var(--ff-serif); color: var(--rain); }
.foot__brand strong { color: var(--cream); font-weight: 500; }
.foot__legal { margin-top: 12px; font-size: 14px !important; }
.foot__legal a, .foot__col a { text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color .25s, text-decoration-color .25s; }
.foot__legal a:hover, .foot__col a:hover { color: var(--rain); text-decoration-color: var(--rain); }
.foot__col h2 { margin-bottom: 18px; font: 500 11.5px/1 var(--ff-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.foot__col, .foot__col address { font-style: normal; color: var(--fg-2); font-size: 15.5px; line-height: 1.75; }
.foot__col ul a { text-decoration: none; }
.foot__col address { margin-top: 10px; }
.foot__web { margin-top: 10px; font-family: var(--ff-mono); font-size: 13px; color: var(--fg-3); }
.foot__bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--fg-3); }
.foot__local { font-family: var(--ff-mono); font-size: 12px; }
.foot__credits { position: relative; margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--fg-3); }
.foot__credits a { color: var(--fg-2); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.foot__credits a:hover { color: var(--rain); }
.foot__top { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--fg-2); }
.foot__top svg { width: 15px; height: 15px; transition: transform .4s var(--ease-out); }
.foot__top:hover { color: var(--cream); }
.foot__top:hover svg { transform: translateY(-3px); }

/* ==========================================================================
   Command palette, toast
   ========================================================================== */
.palette { position: fixed; inset: 0; z-index: 120; display: grid; justify-items: center; align-items: start; padding: 14vh 16px 16px; }
.palette__scrim { position: absolute; inset: 0; background: rgba(8, 9, 10, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .25s var(--ease) both; }
.palette__box { position: relative; width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; border-radius: 20px; background: rgba(28, 29, 27, .94); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px rgba(0, 0, 0, .6); overflow: hidden; animation: pop .35s var(--ease-out) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.palette__search { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.palette__search svg { width: 20px; height: 20px; flex: none; color: var(--fg-3); }
.palette__search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 18px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 11px/1 var(--ff-mono); color: var(--fg-2); }
.palette__list { flex: 1; margin: 0; padding: 8px; list-style: none; overflow-y: auto; }
.palette__group { padding: 12px 12px 6px; font: 500 10.5px/1 var(--ff-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.palette__item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--fg-2); cursor: pointer; }
.palette__item svg, .palette__item img { width: 20px; height: 20px; flex: none; border-radius: 5px; color: var(--fg-3); }
.palette__item span { flex: 1; }
.palette__item small { font: 400 11.5px/1 var(--ff-mono); color: var(--fg-3); }
.palette__item[aria-selected="true"] { background: var(--rain-soft); color: var(--cream); }
.palette__item[aria-selected="true"] svg { color: var(--rain); }
.palette__empty { padding: 22px 12px; color: var(--fg-3); }
.palette__foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3); }
.palette__foot span { display: inline-flex; align-items: center; gap: 5px; }
.palette__foot b { color: var(--rain); font-weight: 500; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: var(--cream); color: #121312; font-size: 14.5px; font-weight: 500; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; transition: transform .5s var(--ease-out), visibility 0s .5s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }

/* Storm: lightning flashes the whole page for a moment. */
.flash { position: fixed; inset: 0; z-index: 95; pointer-events: none; background: #dfe9ff; mix-blend-mode: overlay; opacity: 0; }
.flash.is-on { animation: flash .9s ease-out; }
@keyframes flash { 0% { opacity: .0; } 8% { opacity: .9; } 16% { opacity: .15; } 24% { opacity: .75; } 100% { opacity: 0; } }

/* 404 */
.lost { display: grid; place-items: center; text-align: center; }
.lost__copy { position: relative; z-index: 3; display: grid; justify-items: center; padding: 0 var(--pad); pointer-events: none; }
.lost__copy a { pointer-events: auto; }
.lost__brand { width: clamp(96px, 12vw, 140px); margin-bottom: 30px; color: var(--cream); }
.lost__brand svg { width: 100%; height: auto; }
.lost__foot { margin-top: 56px; font-size: 13px; color: var(--fg-3); }
.lost__foot a { color: var(--fg-2); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .numbers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast { grid-template-columns: repeat(5, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scrollbar-width: none; }
  .forecast::-webkit-scrollbar { display: none; }
  .day { scroll-snap-align: start; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tenets { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__menu { display: grid; }
  .nav__word { width: 84px; }
  .gauge { display: none; }
  .app__grid, .app__grid--flip { grid-template-columns: 1fr; }
  .app__grid--flip .app__copy { order: 0; }
  .app__stage { margin-top: 12px; }
  .contact__grid { grid-template-columns: 1fr; }
  .drops { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .hero__hint { display: none; }
}
@media (max-width: 640px) {
  .nav__tools [data-palette-open] { display: none; }
  .nav__brand { gap: 10px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .18em; }
  .hero__mark { --mark-w: min(66vw, 34vh); top: calc(var(--nav-h) + 3vh); }
  .hero__title { font-size: clamp(46px, 14.5vw, 76px); }
  .hero__title .line { display: block; }
  .hero__title .line + .line { margin-left: 0; }
  .hero__copy { bottom: 74px; }
  .hero__ctas .btn { height: 50px; padding: 0 20px; font-size: 15px; }
  .wx { left: 50%; bottom: 18px; max-width: calc(100% - 32px); width: max-content; transform: translateX(-50%); font-size: 12px; padding: 7px 14px 7px 11px; }
  .js.is-loaded .wx.rise { transform: translateX(-50%); }
  .js .wx.rise { transform: translate3d(-50%, 26px, 0); }
  .wx .wx__more { display: none; }
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .tenets__list { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 32px; }
  .app__name { font-size: clamp(38px, 11vw, 56px); }
  .field--inline { font-size: 16px; }
  .field--inline input { width: 7.5em; }
  .contact__email { font-size: clamp(24px, 7.4vw, 34px); }
}
@media (max-height: 700px) and (min-width: 641px) {
  .hero__mark { --mark-w: min(30vw, 38vh, 450px); }
  .hero__title { font-size: clamp(46px, 7vw, 120px); }
  .hero__ctas { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .rise { opacity: 1; transform: none; filter: none; }
  .marquee__track { animation: none; }
}
