/* ==========================================================================
   David Amezquita — portfolio
   Layout: full-width "sheets" that slide over one another as you scroll, like
   stacked cards. Hero (an orbit of the real app icons) → The Softset Studio →
   Android apps (always dark) → four website packages → Start a project → footer.
   Type: Sora, the same typeface as the Orbit and Rounds apps.
   ========================================================================== */

/* Sora — the typeface Orbit and Rounds use. SIL Open Font License, see assets/fonts/OFL.txt */
@font-face { font-family: "Sora"; src: url("assets/fonts/sora-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("assets/fonts/sora-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("assets/fonts/sora-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("assets/fonts/sora-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* palette: cool white and navy, with one electric indigo accent */
:root {
  /* color */
  --paper: #F5F6FA;
  --surface: #FFFFFF;
  --well: #ECEEF5;
  --ink: #0E1120;
  --muted: #5B6278;
  --line: #DADDE8;
  --brand: #3A43D9;
  --accent: #4A55F5;
  --accent-hi: #3B45E3;
  --on-accent: #FFFFFF;
  --dim: #05060E;
  --glass: rgba(255, 255, 255, .74);
  --glass-line: rgba(14, 17, 32, .08);
  --shadow: 0 1px 2px rgba(14, 17, 32, .06), 0 16px 34px -20px rgba(14, 17, 32, .4);
  --sheet-shadow: 0 -26px 50px -30px rgba(5, 6, 14, .55);
  --glow: rgba(74, 85, 245, .16);
  --dot: #C9CEDF;

  /* the apps section and footer stay dark in both themes */
  --night: #0A0D1A;
  --night-2: #11152A;
  --night-ink: #EEF0FA;
  --night-muted: #A3A9C4;
  --night-line: rgba(238, 240, 250, .12);
  --lav: #A5B4FC;
  --sky: #7DD3FC;

  /* contact section */
  --cta-bg: #4A55F5;
  --cta-ink: #FFFFFF;
  --cta-muted: #ECEEFF;

  /* type */
  --font: "Sora", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --s-tiny: .8rem;
  --s-small: .9rem;
  --s-body: 1rem;
  --s-lede: clamp(1.04rem, .98rem + .3vw, 1.18rem);
  --s-h3: clamp(1.2rem, 1.05rem + .6vw, 1.45rem);
  --s-h2: clamp(2rem, 1.15rem + 3vw, 3.4rem);
  --s-h1: clamp(2.35rem, 1.3rem + 4vw, 4.3rem);

  /* shape + motion */
  --r-sheet: 32px;
  --r-card: 24px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --start: 0s; /* hero animations wait for the splash on a first visit */
  color-scheme: light;
}
.splash-on { --start: 1.15s; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B0E1A;
    --surface: #131729;
    --well: #1A1F35;
    --ink: #E8EAF6;
    --muted: #9AA1BD;
    --line: #262C45;
    --brand: #A3ABFF;
    --accent: #5560FF;
    --accent-hi: #4A55F5;
    --on-accent: #FFFFFF;
    --dim: #000000;
    --glass: rgba(19, 23, 41, .74);
    --glass-line: rgba(232, 234, 246, .1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 34px -20px rgba(0, 0, 0, .85);
    --sheet-shadow: 0 -26px 50px -30px rgba(0, 0, 0, .9);
    --glow: rgba(85, 96, 255, .16);
    --dot: #2C3354;
    --night: #05070F;
    --night-2: #0E1224;
    --cta-bg: #161A3F;
    --cta-ink: #E8EAF6;
    --cta-muted: #B4BAD6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B0E1A;
  --surface: #131729;
  --well: #1A1F35;
  --ink: #E8EAF6;
  --muted: #9AA1BD;
  --line: #262C45;
  --brand: #A3ABFF;
  --accent: #5560FF;
  --accent-hi: #4A55F5;
  --on-accent: #FFFFFF;
  --dim: #000000;
  --glass: rgba(19, 23, 41, .74);
  --glass-line: rgba(232, 234, 246, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 34px -20px rgba(0, 0, 0, .85);
  --sheet-shadow: 0 -26px 50px -30px rgba(0, 0, 0, .9);
  --glow: rgba(85, 96, 255, .16);
  --dot: #2C3354;
  --night: #05070F;
  --night-2: #0E1224;
  --cta-bg: #161A3F;
  --cta-ink: #E8EAF6;
  --cta-muted: #B4BAD6;
  color-scheme: dark;
}

/* ---------- base ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--night); /* shows around a section as it shrinks away */
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--s-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.02em; line-height: 1.04; }
h1 { font-size: var(--s-h1); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: var(--s-h2); font-weight: 700; letter-spacing: -.04em; }
h3 { font-size: var(--s-h3); font-weight: 600; letter-spacing: -.025em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap {
  max-width: 1176px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: fixed; z-index: 100;
  top: calc(env(safe-area-inset-top, 0px) + 10px); left: -999px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* ---------- splash (first visit only) ---------- */
.splash { display: none; }
.splash-on .splash {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--night); color: var(--night-ink);
  clip-path: ellipse(150% 150% at 50% 0%);
  animation: curtain 1s var(--ease-io) 1.05s forwards;
  cursor: pointer;
}
.splash-mark { width: 84px; height: 84px; overflow: visible; }
.splash-tile { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: pop .8s var(--ease-spring) .05s both; }
.splash-d {
  fill: #FFFFFF; fill-opacity: 0; fill-rule: evenodd;
  stroke: #FFFFFF; stroke-width: .7; stroke-dasharray: 90; stroke-dashoffset: 90;
  animation: stroke-in .7s ease .25s forwards, fill-in .3s ease .8s forwards;
}
.splash-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; animation: fade-up .8s var(--ease-out) .4s both; }
@keyframes curtain { to { clip-path: ellipse(150% 0% at 50% 0%); visibility: hidden; } }
@keyframes stroke-in { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; } }

/* ---------- floating header ---------- */
.bar {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
  pointer-events: none;
}
.bar-inner {
  pointer-events: auto;
  max-width: 1120px; margin-inline: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 8px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--shadow);
  position: relative;
}
.bar-inner::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: -1px; height: 2px;
  border-radius: 2px; background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
  font-weight: 700; letter-spacing: -.01em;
}
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.links { position: relative; display: none; align-items: center; margin-left: auto; }
@media (min-width: 760px) { .links { display: flex; } }
.links a {
  position: relative; z-index: 1;
  padding: 9px 15px; border-radius: var(--r-pill);
  text-decoration: none; font-weight: 600; font-size: var(--s-small); color: var(--muted);
  transition: color .3s;
}
.links a:hover, .links a.is-active { color: var(--ink); }
.indicator {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0;
  border-radius: var(--r-pill); background: var(--well); opacity: 0;
  transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s;
}
.theme-btn {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; margin-left: auto; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .25s, translate .35s var(--ease-out);
}
.theme-btn:hover { background: var(--well); }
@media (min-width: 760px) { .theme-btn { margin-left: 4px; } }
.theme-btn svg { width: 22px; height: 22px; overflow: visible; }
/* light mode shows a moon (switch to dark), dark mode shows a sun */
.t-core { transform-box: fill-box; transform-origin: center; transform: scale(1.55); transition: transform .6s var(--ease-spring); }
.t-bite { transform: translate(-6px, 3.5px); transition: transform .6s var(--ease-out); }
.t-rays { transform-box: view-box; transform-origin: 12px 12px; transform: rotate(-45deg) scale(0); opacity: 0; transition: transform .6s var(--ease-out), opacity .3s; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-core, :root:not([data-theme="light"]) .t-bite { transform: none; }
  :root:not([data-theme="light"]) .t-rays { transform: none; opacity: 1; }
}
:root[data-theme="dark"] .t-core, :root[data-theme="dark"] .t-bite { transform: none; }
:root[data-theme="dark"] .t-rays { transform: none; opacity: 1; }
.bar .btn { margin-left: 0; }
.cta-short { display: none; }
@media (max-width: 519px) { .cta-long { display: none; } .cta-short { display: inline; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border: 0; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, box-shadow .25s, translate .35s var(--ease-out), opacity .25s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn:hover { background: var(--accent-hi); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.96); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost::after { display: none; }
.btn-ghost:hover { background: var(--well); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: var(--s-small); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn:disabled:hover { background: var(--accent); }
.btn:disabled::after { display: none; }

/* ---------- sheets ---------- */
main { position: relative; }
.anchor { position: relative; height: 0; }
.sheet {
  --p: 0;
  position: relative;
  padding-top: clamp(96px, 12vw, 148px);
  padding-bottom: clamp(80px, 10vw, 136px);
  background: var(--paper);
  overflow: hidden;
  overflow: clip;
}
.sheet::after {
  content: ""; position: absolute; inset: 0; z-index: 40;
  background: var(--dim); opacity: 0; pointer-events: none;
}
.sheet ~ .sheet {
  margin-top: calc(var(--r-sheet) * -1);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: var(--sheet-shadow);
}
.sheet-hero { z-index: 1; padding-bottom: clamp(96px, 11vw, 150px); }
.sheet-work { z-index: 2; background: var(--surface); }
.sheet-apps { z-index: 3; background: var(--night); color: var(--night-ink); }
.sheet-packages { z-index: 4; background: var(--paper); }
.sheet-contact { z-index: 5; background: var(--cta-bg); color: var(--cta-ink); }

@media (prefers-reduced-motion: no-preference) {
  .js .sheet:not(.sheet-contact) { position: sticky; }
  .js .sheet { transform: scale(calc(1 - var(--p) * .075)); will-change: transform; }
  .js .sheet::after { opacity: calc(var(--p) * .55); will-change: opacity; }
  .js .sheet-hero { border-radius: calc(var(--p) * var(--r-sheet)); }
  .js .sheet.is-covered { visibility: hidden; }
  .js .sheet.is-covered * { animation-play-state: paused !important; }
}

.head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.intro { font-size: var(--s-lede); color: var(--muted); max-width: 56ch; }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--s-small); font-weight: 600; color: var(--brand);
}
.label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

/* word-by-word heading reveal */
.split .w, .reveal-words .w {
  display: inline-block;
  clip-path: inset(-.4em -.3em -.14em -.3em);
}
.split .w > span, .reveal-words .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js h1.split .w > span {
    animation: word-up 1.1s var(--ease-out) both;
    animation-delay: calc(var(--start) + 120ms + var(--i) * 65ms);
  }
  .js .reveal-words .w > span {
    transform: translateY(115%) rotate(5deg);
    transform-origin: 0 100%;
    transition: transform 1.05s var(--ease-out);
    transition-delay: calc(var(--i) * 70ms);
  }
  .js .reveal-words.in .w > span { transform: none; }
}
@keyframes word-up {
  from { transform: translateY(115%) rotate(5deg); }
  to { transform: none; }
}

/* ---------- hero ---------- */
.dots {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 78% at 74% 46%, #000 18%, transparent 74%);
  mask-image: radial-gradient(70% 78% at 74% 46%, #000 18%, transparent 74%);
}
@media (max-width: 959px) {
  .dots {
    -webkit-mask-image: radial-gradient(120% 46% at 50% 24%, #000 25%, transparent 78%);
    mask-image: radial-gradient(120% 46% at 50% 24%, #000 25%, transparent 78%);
  }
}
.sheet-hero > .wrap { position: relative; z-index: 1; }
.hero { display: grid; gap: clamp(20px, 5vw, 64px); align-items: center; }
@media (max-width: 959px) { .hero .orbit { order: -1; width: min(100%, 460px); aspect-ratio: 1 / .72; } }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { max-width: 13.5em; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--shadow);
  font-size: var(--s-small); font-weight: 600;
}
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
.lede { font-size: var(--s-lede); color: var(--muted); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > :not(h1) { animation: fade-up 1s var(--ease-out) both; }
  .js .hero-copy > .status-pill { animation-delay: calc(var(--start) + .05s); }
  .js .hero-copy > .lede { animation-delay: calc(var(--start) + .55s); }
  .js .hero-copy > .actions { animation-delay: calc(var(--start) + .68s); }
  .js .bar-inner { animation: bar-in 1s var(--ease-out) calc(var(--start) + .15s) both; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bar-in { from { opacity: 0; transform: translateY(-24px) scale(.96); } to { opacity: 1; transform: none; } }

/* the orbit: real app icons circling a sun, in 3D */
.orbit {
  --tilt: 64deg;
  position: relative;
  container-type: inline-size;
  width: min(100%, 560px);
  justify-self: center;
  aspect-ratio: 1 / .8;
  perspective: 1100px;
  perspective-origin: 50% 38%;
}
.orbit-stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
}
.core {
  position: absolute; left: 50%; top: 50%;
  width: 17cqw; height: 17cqw; margin: -8.5cqw 0 0 -8.5cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #F3F4FF 0%, #9AA2FF 30%, var(--accent) 64%, #262A8F 100%);
  box-shadow: 0 0 0 9px var(--glow), 0 0 80px 22px var(--glow), 0 22px 40px -18px rgba(24, 28, 120, .6);
  cursor: pointer;
}
.shock {
  position: absolute; left: 50%; top: 50%;
  width: 17cqw; height: 17cqw; margin: -8.5cqw 0 0 -8.5cqw;
  border-radius: 50%; border: 2px solid var(--accent); pointer-events: none;
}
.plane {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt)) rotateZ(0deg);
}
.plane-outer { --R: 40cqw; --dur: 50s; }
.plane-inner { --R: 22cqw; --dur: 24s; }
.ring {
  position: absolute; left: 0; top: 0;
  width: calc(var(--R) * 2); height: calc(var(--R) * 2);
  margin: calc(var(--R) * -1) 0 0 calc(var(--R) * -1);
  border-radius: 50%;
  border: 1.5px solid var(--line);
  pointer-events: none;
}
.plane-inner .ring { border-style: dashed; }
.moon { pointer-events: none; }
.sat, .moon {
  position: absolute; left: 0; top: 0;
  transform-style: preserve-3d;
  transform: rotateZ(var(--a)) translateX(var(--R));
}
.sat { --size: clamp(50px, 13cqw, 76px); text-decoration: none; color: var(--ink); }
.face {
  position: absolute; width: var(--size);
  left: calc(var(--size) / -2); top: calc(var(--size) / -2);
  transform: rotateZ(calc(var(--a) * -1)) rotateX(calc(var(--tilt) * -1));
}
.face img {
  width: 100%; height: auto; aspect-ratio: 1; border-radius: 23%;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease-spring);
}
.face .name {
  position: absolute; top: calc(100% + 7px); left: 50%;
  transform: translateX(-50%);
  padding: 2px 9px; border-radius: var(--r-pill);
  background: var(--glass);
  font-size: .72rem; font-weight: 600; white-space: nowrap;
}
.sat:hover img, .sat:focus-visible img { transform: scale(1.14) translateY(-4px); }
.sat:focus-visible { outline: none; }
.sat:focus-visible img { outline: 3px solid var(--brand); outline-offset: 3px; }
.moon i {
  --size: 12px;
  position: absolute; width: var(--size); height: var(--size);
  left: calc(var(--size) / -2); top: calc(var(--size) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7), transparent 55%), var(--c);
  box-shadow: 0 0 16px var(--c);
  transform: rotateZ(calc(var(--a) * -1)) rotateX(calc(var(--tilt) * -1));
}
@media (prefers-reduced-motion: no-preference) {
  .plane { animation: spin var(--dur) linear infinite; }
  .plane-inner { animation-direction: reverse; }
  .plane-outer .face { animation: counter var(--dur) linear infinite; }
  .moon i { animation: counter 24s linear infinite reverse; }
  .js .core { animation: pop .9s var(--ease-spring) calc(var(--start) + .25s) both, breathe 6s ease-in-out calc(var(--start) + 1.4s) infinite; }
  .js .ring { animation: ring-in 1.3s var(--ease-out) calc(var(--start) + .35s) backwards; }
  .js .sat { animation: sat-in 1.25s var(--ease-spring) backwards; animation-delay: calc(var(--start) + .55s + var(--n) * 90ms); }
  @media (hover: hover) {
    .orbit:hover .plane, .orbit:hover .face, .orbit:hover .moon i { animation-play-state: paused; }
  }
  .orbit:focus-within .plane, .orbit:focus-within .face, .orbit:focus-within .moon i { animation-play-state: paused; }
}
@keyframes spin {
  from { transform: rotateX(var(--tilt)) rotateZ(0deg); }
  to { transform: rotateX(var(--tilt)) rotateZ(360deg); }
}
@keyframes counter {
  from { transform: rotateZ(calc(var(--a) * -1)) rotateX(calc(var(--tilt) * -1)); }
  to { transform: rotateZ(calc(var(--a) * -1 - 360deg)) rotateX(calc(var(--tilt) * -1)); }
}
@keyframes sat-in {
  from { transform: rotateZ(var(--a)) translateX(0) scale(.15); }
}
@keyframes ring-in { from { transform: scale(.2); opacity: 0; } }
@keyframes pop { from { transform: scale(0); } }
@keyframes breathe { 50% { transform: scale(1.05); } }

/* ---------- The Softset Studio ---------- */
.case { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 920px) { .case { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.case-text { display: grid; gap: 18px; justify-items: start; }
.link {
  display: inline-flex; padding-bottom: 5px;
  color: var(--brand); font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.link:hover { background-size: 35% 2px; }
.shot {
  margin: 0; overflow: hidden;
  border-radius: var(--r-card);
  background: var(--well);
  box-shadow: var(--shadow);
}
.shot a { display: block; }
.shot img { width: 100%; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 480px; margin: 2px 0 4px; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 14px 12px 12px; border-radius: 16px; background: var(--well); }
.stats dt { font-size: var(--s-tiny); font-weight: 600; color: var(--muted); line-height: 1.3; }
.stats dd { margin: 0; font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .js .shot { clip-path: inset(12% 14% 12% 14% round 40px); transition: clip-path 1.3s var(--ease-out); }
  .js .shot img { transform: scale(1.25); transition: transform 1.8s var(--ease-out); }
  .js .shot.in { clip-path: inset(0 0 0 0 round var(--r-card)); }
  .js .shot.in img { transform: none; }
}

/* booking demo: a tap-through version of the real flow */
.demo { display: grid; gap: clamp(32px, 5vw, 72px); margin-top: clamp(64px, 9vw, 112px); align-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.demo-intro { display: grid; gap: 16px; align-content: start; }
.demo-note { color: var(--muted); max-width: 42ch; }
html:not(.js) .phone { display: none; }

.stepper { --sp: 0; position: relative; display: flex; justify-content: space-between; margin: 10px 0 0; padding: 0; list-style: none; }
.stepper::before, .stepper::after { content: ""; position: absolute; left: 15px; top: 14px; height: 2px; border-radius: 2px; }
.stepper::before { right: 15px; background: var(--line); }
.stepper::after { width: calc((100% - 30px) * var(--sp)); background: var(--accent); transition: width .6s var(--ease-out), height .6s var(--ease-out); }
.stepper li { position: relative; z-index: 1; }
.n {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color .35s, color .35s, box-shadow .35s, transform .45s var(--ease-spring);
}
.stepper li.is-done .n { background: var(--ink); color: var(--paper); box-shadow: none; }
.stepper li.is-current .n { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 6px var(--glow); transform: scale(1.12); }
.step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) {
  .stepper { flex-direction: column; justify-content: flex-start; }
  .stepper::before, .stepper::after { left: 14px; top: 24px; width: 2px; }
  .stepper::before { right: auto; bottom: 24px; height: auto; }
  .stepper::after { height: calc((100% - 48px) * var(--sp)); }
  .stepper li { display: flex; align-items: center; gap: 16px; padding-block: 9px; }
  .step-name { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-weight: 600; color: var(--muted); transition: color .3s; }
  .stepper li.is-current .step-name, .stepper li.is-done .step-name { color: var(--ink); }
}

.phone {
  position: relative; justify-self: center;
  width: min(100%, 380px); padding: 10px;
  border-radius: 42px;
  background: #0B0E1A; /* the device itself, the same in both themes */
  box-shadow: 0 50px 90px -40px rgba(14, 17, 40, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .1);
}
.phone::before { content: ""; position: absolute; z-index: 2; top: 19px; left: 50%; width: 76px; height: 7px; margin-left: -38px; border-radius: 7px; background: rgba(255, 255, 255, .14); }
.phone-screen { overflow: hidden; border-radius: 33px; background: var(--paper); color: var(--ink); }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 36px 20px 6px; font-size: var(--s-tiny); font-weight: 600; color: var(--muted); }
.screens { position: relative; height: 480px; }
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: 8px 20px 22px;
  opacity: 0; visibility: hidden; transform: translateX(40px);
  transition: opacity .3s ease, transform .55s var(--ease-out), visibility 0s linear .55s;
}
.screen.is-past { transform: translateX(-40px); }
.screen.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease .06s, transform .55s var(--ease-out), visibility 0s; }
.screen-h { margin-bottom: 2px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.035em; }
.opts { display: grid; gap: 10px; }
.opt, .day, .time {
  border: 0; border-radius: 16px;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit; cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .35s var(--ease-spring);
}
.opt { display: grid; gap: 2px; padding: 15px 16px; text-align: left; }
.opt b { font-weight: 600; }
.opt span { color: var(--muted); font-size: var(--s-small); }
.opt:hover, .day:hover, .time:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.opt:active, .day:active, .time:active { transform: scale(.96); }
.opt.is-picked, .day.is-picked, .time.is-picked { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.opt.is-picked span, .day.is-picked span { color: inherit; opacity: .8; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.day { display: grid; justify-items: center; gap: 2px; padding: 10px 0; border-radius: 14px; }
.day span { color: var(--muted); font-size: .72rem; font-weight: 600; }
.day b { font-size: 1.1rem; }
.times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.time { padding: 12px 0; border-radius: 14px; font-size: var(--s-small); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .time { animation: fade-up .45s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); } }
.hint { grid-column: 1 / -1; color: var(--muted); font-size: var(--s-small); }
.demo-next, .demo-pay { width: 100%; margin-top: auto; }
.policy { padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: var(--s-small); }
.sign { display: flex; align-items: center; gap: 10px; font-size: var(--s-small); font-weight: 600; cursor: pointer; }
.sign input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.signature { width: 100%; height: 64px; }
.signature path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 1.3s ease; }
.review { margin: 0; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.review div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: var(--s-small); }
.review div:first-child { border-top: 0; }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 600; text-align: right; }
.pay-card { display: grid; gap: 2px; padding: 18px; border-radius: 18px; background: var(--ink); color: var(--paper); }
.pay-card span { font-size: var(--s-small); opacity: .75; }
.pay-card b { font-size: 2rem; letter-spacing: -.03em; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pay-methods span { padding: 10px 0; border-radius: 12px; text-align: center; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-size: var(--s-tiny); font-weight: 600; }
.pay-methods span:first-child { box-shadow: inset 0 0 0 2px var(--accent); color: var(--brand); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #FFFFFF; animation: spinner .7s linear infinite; }
.demo-pay.is-busy .spinner { display: inline-block; }
@keyframes spinner { to { transform: rotate(360deg); } }
.screen-done { align-items: center; justify-content: center; text-align: center; }
.done-check { width: 88px; height: 88px; overflow: visible; }
.done-check circle { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.done-check path { fill: none; stroke: #FFFFFF; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; }
.screen-done.is-on .done-check circle { animation: pop .6s var(--ease-spring) .1s both; }
.screen-done.is-on .done-check path { animation: stroke-in .5s var(--ease-out) .45s forwards; }
.done-text { max-width: 28ch; color: var(--muted); font-size: var(--s-small); }
.confetti { position: fixed; inset: 0; z-index: 260; width: 100%; height: 100%; pointer-events: none; }

.cols { display: grid; gap: 40px; margin-top: clamp(48px, 7vw, 80px); }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; } }
.cols h3 { margin-bottom: 18px; }
.stack { margin-top: 40px; color: var(--muted); font-size: var(--s-small); }

.ticks { --tick: var(--brand); list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--tick); opacity: .14;
}
.ticks li::after {
  content: ""; position: absolute; left: 8px; top: calc(.18em + 5px);
  width: 5px; height: 9px;
  border: solid var(--tick); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Android apps (dark) ---------- */
.sheet-apps .intro { color: var(--night-muted); }
.sheet-apps .ticks { --tick: var(--lav); }
.sheet-apps :focus-visible { outline-color: var(--lav); }
.apps-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.app {
  --pad: clamp(20px, 3vw, 30px);
  --icon: clamp(58px, 6.5vw, 72px);
  position: relative;
  display: grid; grid-template-columns: var(--icon) minmax(0, 1fr); gap: 18px 20px; align-content: start;
  padding: var(--pad);
  border-radius: var(--r-card);
  background: radial-gradient(120% 90% at 0% 0%, rgba(99, 110, 255, .17), transparent 60%), var(--night-2);
  box-shadow: inset 0 0 0 1px var(--night-line);
  scroll-margin-top: 100px;
}
.app .icon { width: var(--icon); height: var(--icon); border-radius: 23%; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8); }
.app-main { min-width: 0; }
.app-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pitch { margin-top: 8px; font-weight: 600; }
.why { margin-top: 8px; color: var(--night-muted); font-size: var(--s-small); }
.app .ticks { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--night-line); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: var(--s-tiny); font-weight: 600; line-height: 1.2; white-space: nowrap;
  color: var(--night-muted); box-shadow: inset 0 0 0 1px var(--night-line);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.chip-live::before { background: var(--lav); box-shadow: 0 0 10px var(--lav); }
.chip-soon::before { background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.chip-wip::before { box-shadow: inset 0 0 0 1.5px var(--night-muted); }
.app:nth-child(even) { --d: .12s; }
@media (prefers-reduced-motion: no-preference) {
  /* each card opens out of its icon, like launching an app */
  .js .app {
    clip-path: inset(0 calc(100% - var(--pad) * 2 - var(--icon)) calc(100% - var(--pad) * 2 - var(--icon)) 0 round var(--r-card));
    transition: clip-path 1s var(--ease-out) var(--d, 0s);
  }
  .js .app.in { clip-path: inset(0 0 0 0 round var(--r-card)); }
  .js .app > :not(.icon) {
    opacity: 0; transform: translateY(16px);
    transition: opacity .6s ease, transform .9s var(--ease-out);
    transition-delay: calc(var(--d, 0s) + .38s);
  }
  .js .app.in > :not(.icon) { opacity: 1; transform: none; }
  .js .app .icon { transform: scale(.55); transition: transform .8s var(--ease-spring) var(--d, 0s); }
  .js .app.in .icon { transform: none; }
}
.later {
  display: grid; gap: 8px; margin-top: 16px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-card);
  border: 1.5px dashed var(--night-line);
}
.later p { color: var(--night-muted); max-width: 72ch; }

/* ---------- packages ---------- */
.tiers { display: grid; gap: 16px; }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tier {
  --mx: 50%; --my: -30%;
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  padding: 26px 22px 22px;
  border-radius: var(--r-card);
  background: radial-gradient(560px circle at var(--mx) var(--my), var(--glow), transparent 55%), var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .3s;
}
.tier-flag { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tier-flag::before {
  content: ""; position: absolute; inset: 0; z-index: 0; padding: 2px;
  border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 60%, var(--accent) 78%, #C4B5FD 88%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@media (prefers-reduced-motion: no-preference) { .tier-flag::before { animation: beam 4s linear infinite; } }
@keyframes beam { to { --beam: 360deg; } }
.tier-top { display: flex; align-items: center; min-height: 30px; }
.tag {
  position: absolute; z-index: 1; top: -13px; left: 20px;
  white-space: nowrap;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent);
  font-size: var(--s-tiny); font-weight: 700; line-height: 1.2;
}
.price { display: grid; gap: 4px; }
.price-label { font-size: var(--s-tiny); font-weight: 600; color: var(--muted); }
.amt {
  display: inline-flex;
  font-size: clamp(2.4rem, 2rem + 1.2vw, 3rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.reel { display: inline-block; height: 1em; clip-path: inset(0 -.2em); }
.strip { display: flex; flex-direction: column; }
.strip > span { display: block; height: 1em; }
.for { font-weight: 600; }
.plus { margin-bottom: -6px; color: var(--muted); font-size: var(--s-small); font-weight: 600; }
.terms {
  margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.terms div { display: grid; gap: 2px; }
.terms dt { font-size: var(--s-tiny); font-weight: 600; color: var(--muted); }
.terms dd { margin: 0; font-size: var(--s-small); font-weight: 700; }
.choose { width: 100%; }
.fine { margin-top: 28px; max-width: 72ch; color: var(--muted); font-size: var(--s-small); }
.fine + .fine { margin-top: 8px; }
.tier:nth-child(even) { --rot: 3deg; --d: .1s; }
@media (prefers-reduced-motion: no-preference) {
  /* cards are dealt onto the table, then the prices roll in */
  .js .tier {
    opacity: 0; translate: 0 70px; rotate: var(--rot, -3deg);
    transition: transform .5s var(--ease-out), box-shadow .3s, opacity .7s ease var(--d, 0s), translate 1.1s var(--ease-out) var(--d, 0s), rotate 1.1s var(--ease-out) var(--d, 0s);
  }
  .js .tier.in { opacity: 1; translate: none; rotate: none; }
  .js .strip { transition: transform 1.9s var(--ease-out); transition-delay: calc(var(--d, 0s) + .25s + var(--k) * 110ms); }
  .js .tier.in .strip { transform: translateY(calc(var(--t) * -5%)); }
}
@media (prefers-reduced-motion: reduce) {
  .strip { transform: translateY(calc(var(--t) * -5%)); }
}

/* ---------- contact ---------- */
.sheet-contact .intro { color: var(--cta-muted); }
.sheet-contact :focus-visible { outline-color: var(--cta-ink); }
.contact-grid { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.contact-text { display: grid; gap: 18px; align-content: start; }
.contact-text h2 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem); }
.email-card { display: grid; gap: 10px; justify-items: start; margin-top: 10px; }
.email-label { font-size: var(--s-small); font-weight: 600; color: var(--cta-muted); }
.email {
  font-size: clamp(1.1rem, 1rem + .7vw, 1.45rem); font-weight: 700;
  letter-spacing: -.01em; overflow-wrap: anywhere; user-select: all;
}
.sheet-contact .contact-text .btn-ghost { color: var(--cta-ink); box-shadow: inset 0 0 0 2px var(--cta-ink); }
.sheet-contact .contact-text .btn-ghost:hover { background: color-mix(in srgb, var(--cta-ink) 8%, transparent); }
.brief {
  display: grid; gap: 22px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-card);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 34px 70px -34px rgba(16, 20, 80, .5), inset 0 0 0 1px var(--line);
}
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 12px; padding: 0; font-weight: 600; }
.pkgs { display: flex; flex-wrap: wrap; gap: 8px; }
.pkg { position: relative; }
.pkg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pkg span {
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: var(--s-small); font-weight: 600;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .35s var(--ease-spring);
}
.pkg:hover span { box-shadow: inset 0 0 0 1.5px var(--muted); }
.pkg input:checked + span { background: var(--accent); color: var(--on-accent); box-shadow: none; transform: scale(1.05); }
.pkg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.fields { display: grid; gap: 16px; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; font-size: var(--s-small); font-weight: 600; }
.field input, .field textarea, .copy-area {
  width: 100%; padding: 13px 15px;
  border: 0; border-radius: 14px;
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit; font-size: 1rem; font-weight: 400;
  transition: box-shadow .2s;
}
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.field textarea { min-height: 120px; resize: vertical; }
.copy-area { min-height: 170px; resize: vertical; }
::placeholder { color: var(--muted); opacity: .75; }
.send { display: flex; flex-wrap: wrap; gap: 10px; }
.status {
  display: flex; align-items: center; gap: 8px; min-height: 1.5em;
  color: var(--brand); font-size: var(--s-small); font-weight: 600;
}
.email-card .status { color: var(--cta-ink); }
.status svg { flex: none; width: 18px; height: 18px; }
.status svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .55s var(--ease-out) .05s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- portal: an orbit icon opens into its project ---------- */
.portal { position: fixed; inset: 0; z-index: 250; }
.portal-ghost {
  position: fixed; z-index: 251; margin: 0;
  border-radius: 23%; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
  pointer-events: none; transform-origin: center; will-change: transform;
}

/* ---------- cursor (mouse only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
.cursor-ring {
  position: absolute; left: -36px; top: -36px;
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  transform: scale(.4);
  transition: transform .4s var(--ease-out), background-color .3s, border-color .3s;
}
.cursor.is-hover .cursor-ring { transform: scale(.75); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.cursor.has-label .cursor-ring { transform: scale(1); background: var(--accent); border-color: var(--accent); }
.cursor.on-dark:not(.has-label) .cursor-ring { border-color: rgba(255, 255, 255, .9); }
.cursor-label { color: var(--on-accent); font-size: .78rem; font-weight: 700; opacity: 0; transition: opacity .2s; }
.cursor.has-label .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 6;
  background: var(--night); color: var(--night-muted);
  padding-top: 56px;
  padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
}
.foot-inner { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot-inner { grid-template-columns: 1fr auto; align-items: end; } }
.foot-brand, .foot-meta { display: grid; gap: 10px; }
.foot .brand { color: var(--night-ink); }
.foot p { font-size: var(--s-small); }
@media (min-width: 760px) { .foot-meta { text-align: right; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pulse::after { display: none; }
}
