/* ============================================================================
   Self-hosted variable fonts (latin subsets, SIL OFL — see assets/fonts/LICENSE.txt)
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/spacegrotesk-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================================
   Maxy McMaxFace, LLC — "Borealis"
   A breathing aurora night-sky studio site.
   ========================================================================== */

:root {
  /* palette */
  --bg:        #060912;
  --bg-2:      #05070F;
  --surface:   #0E1526;
  --primary:   #46E5B5;  /* teal   */
  --secondary: #7B6CF6;  /* violet */
  --accent:    #F074C6;  /* pink   */
  --text:      #EAF0FF;
  --muted:     #8A94B2;

  /* glass */
  --glass:        rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(14, 21, 38, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur:   16px;   /* blur cost scales super-linearly; 16 keeps the frost, cuts paint work */

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --grad: linear-gradient(100deg, var(--primary) 0%, var(--secondary) 52%, var(--accent) 100%);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-2);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(123, 108, 246, 0.4); color: #fff; }

.mono { font-family: var(--font-mono); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-underline {
  position: relative; white-space: nowrap;
}
.grad-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.09em;
  border-radius: 2px; background: var(--grad);
  transform: scaleX(1); transform-origin: left;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--glass-border);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  /* transparent outline stays invisible normally, but Windows High-Contrast repaints it */
  outline: 2px solid transparent;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px rgba(70, 229, 181, 0.7);
  border-radius: 8px;
}

/* ===========================================================================
   AURORA NIGHT SKY
   =========================================================================== */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.sky__base {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #0A1024 0%, transparent 55%),
    linear-gradient(180deg, #05070F 0%, #060912 45%, #070B18 100%);
}

/* WebGL canvas (progressive enhancement; hidden until JS activates it) */
.sky__webgl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s ease;
}
.webgl-on .sky__webgl { opacity: 1; }
.webgl-on .sky__blobs { opacity: 0.35; }   /* keep blobs as a soft under-glow */

/* CSS aurora — the guaranteed baseline, beautiful on its own */
.sky__blobs { position: absolute; inset: -10%; transition: opacity 1.2s ease; filter: blur(0); }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.55; will-change: transform;
  mix-blend-mode: screen;
}
.blob--teal {
  width: 60vw; height: 60vw; left: -10vw; top: -12vh;
  background: radial-gradient(circle, var(--primary), transparent 62%);
  animation: drift1 42s var(--ease) infinite;
}
.blob--violet {
  width: 66vw; height: 66vw; right: -14vw; top: -6vh;
  background: radial-gradient(circle, var(--secondary), transparent 60%);
  opacity: 0.6;
  animation: drift2 55s var(--ease) infinite;
}
.blob--pink {
  width: 52vw; height: 52vw; left: 22vw; top: 30vh;
  background: radial-gradient(circle, var(--accent), transparent 60%);
  opacity: 0.4;
  animation: drift3 68s var(--ease) infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(12vw, 8vh, 0) scale(1.18); }
}
@keyframes drift2 {
  0%,100% { transform: translate3d(0,0,0) scale(1.05); }
  50%     { transform: translate3d(-14vw, 12vh, 0) scale(0.9); }
}
@keyframes drift3 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(8vw, -10vh, 0) scale(1.22); }
}

.sky__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }

.sky__grain {
  position: absolute; inset: 0; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sky__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(3,5,12,0.7) 100%);
}

/* ===========================================================================
   NAV
   =========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px clamp(16px, 4vw, 40px);
  transition: padding .35s var(--ease);
}
/* subtle top scrim so nav links stay legible over the brightest aurora frames */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.55), transparent);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 16px; border-radius: 999px;
  border: 1px solid transparent; transition: all .4s var(--ease);
}
.nav.scrolled .nav__inner {
  background: var(--glass-strong);
  border-color: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.nav__brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); }
.nav__logo { filter: drop-shadow(0 3px 10px rgba(123,108,246,0.4)); }
.nav__wordmark { font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; }

.nav__links { position: relative; display: flex; gap: 4px; }
.nav__link {
  position: relative; z-index: 1;
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.94rem; color: var(--muted); font-weight: 500;
  transition: color .25s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link--store { display: none; }   /* only surfaces inside the mobile menu */
.nav__lozenge {
  position: absolute; top: 0; left: 0; height: 100%;
  border-radius: 999px; background: var(--glass);
  border: 1px solid var(--glass-border);
  opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .3s ease;
  pointer-events: none;
}
.nav__cta { display: flex; align-items: center; gap: 8px; }

.nav__menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }

/* ===========================================================================
   BUTTONS
   =========================================================================== */
.btn {
  --pad: 12px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.btn--sm { --pad: 9px 18px; font-size: 0.9rem; }
.btn--lg { --pad: 15px 30px; font-size: 1.05rem; }
.btn--primary { color: #051018; background: var(--grad); background-size: 160% 160%; background-position: 0% 50%; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(70,229,181,0.32); background-position: 100% 50%; }
.btn--ghost { color: var(--text); background: var(--glass); border-color: var(--glass-border); backdrop-filter: blur(8px); }
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); }
.btn--primary, .btn--ghost { transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-position .5s var(--ease), border-color .3s; }

.link-arrow { font-family: var(--font-display); font-weight: 600; color: var(--text); position: relative; }
.link-arrow::after { content:""; position:absolute; left:0; bottom:-3px; width:100%; height:1.5px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }

/* ===========================================================================
   LAYOUT / SECTIONS
   =========================================================================== */
main { position: relative; z-index: 1; }
section { padding: clamp(80px, 12vh, 150px) clamp(20px, 5vw, 48px); }
.section-head { max-width: var(--maxw); margin: 0 auto clamp(36px, 6vw, 64px); }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin-bottom: 18px; }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 16ch;
}
.section-lead { color: var(--muted); max-width: 52ch; margin-top: 18px; font-size: 1.06rem; }

/* ---------------------------------------------------------------- HERO */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; padding-top: 120px;
}
.hero__inner { max-width: 900px; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5.5rem); line-height: 1.02; letter-spacing: -0.03em;
  margin: 6px 0 26px;
}
.hero__title .reveal-word { display: inline-block; margin: 0 0.12em; }
.hero__sub { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40ch; margin: 0 auto 34px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__meta { margin-top: 34px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; }

.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); }
.hero__chevron { display: block; width: 18px; height: 18px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: .5; } 50% { transform: rotate(45deg) translate(4px,4px); opacity: 1; } }

/* ---------------------------------------------------------------- APPS */
.apps__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.app-card {
  position: relative; padding: 28px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  transform-style: preserve-3d;
  overflow: hidden;
}
.app-card:hover { will-change: transform; }   /* promote to its own layer only while interacting */
.app-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,0.10), transparent 45%);
  transition: opacity .4s ease;
}
.app-card:hover { border-color: rgba(255,255,255,0.24); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.app-card:hover::before { opacity: 1; }
.app-card__icon {
  width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center;
  margin-bottom: 22px; position: relative;
  background: var(--surface); border: 1px solid var(--glass-border);
}
.app-card__icon::after {
  content: ""; position: absolute; inset: -18px; z-index: -1; border-radius: 30px;
  filter: blur(22px); opacity: 0.55; transition: opacity .4s ease;
}
.app-card__icon--a::after { background: radial-gradient(circle, #F5B87A, transparent 70%); }   /* Whirr: warm fan glow */
.app-card__icon--b::after { background: radial-gradient(circle, #E8A33D, transparent 70%); }   /* MB 88F: brass keys */
.app-card__icon--c::after { background: radial-gradient(circle, var(--secondary), transparent 70%); }
.app-card:hover .app-card__icon::after { opacity: 0.9; }
.app-card__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.app-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }
.app-card__pitch { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }
.app-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }

/* "coming soon" teaser card */
.app-card--soon { border-style: dashed; border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.02); }
.app-card--soon:hover { box-shadow: none; }
.app-card__icon--empty { border-style: dashed; background: rgba(255,255,255,0.03); display: grid; place-items: center; }
.app-card__q { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--muted); opacity: 0.7; }
.soon-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); margin-right: 8px; vertical-align: 1px;
  box-shadow: 0 0 8px rgba(70,229,181,0.8);
  animation: soon-pulse 2.2s ease-in-out infinite;
}
@keyframes soon-pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.app-card__meta { color: var(--muted); font-size: 0.76rem; }
.app-card__go { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--primary); transition: transform .3s var(--ease); }
.app-card:hover .app-card__go { transform: translateX(3px); }
.apps__all { max-width: var(--maxw); margin: 44px auto 0; text-align: center; }

/* ---------------------------------------------------------------- FLAGSHIP */
.flagship {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center;
}
.flagship__lead { color: var(--muted); margin-top: 20px; font-size: 1.08rem; max-width: 46ch; }
.flagship__features { list-style: none; margin: 26px 0 32px; display: grid; gap: 14px; }
.flagship__features li { display: flex; align-items: center; gap: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(70,229,181,0.6); flex: none; }

.flagship__art { position: relative; height: 520px; display: grid; place-items: center; }
.phone {
  position: absolute; width: 236px; height: 480px; border-radius: 44px;
  background: linear-gradient(160deg, #1a2237, #0b1120);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), inset 0 1px 1px rgba(255,255,255,0.12);
  padding: 12px;
}
.phone--front { animation: float1 9s var(--ease) infinite; z-index: 2; }
.phone--back { transform: rotate(-9deg) translate(-96px, 26px) scale(0.92); opacity: 0.85; animation: float2 11s var(--ease) infinite; }
.phone__screen {
  width: 100%; height: 100%; border-radius: 33px; overflow: hidden; position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(123,108,246,0.5), transparent 60%),
    linear-gradient(180deg, #0c1326, #0a1a2e 55%, #10203a);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #05070f; border-radius: 0 0 16px 16px; z-index: 3; }
.phone__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

@keyframes float1 { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes float2 { 0%,100% { transform: rotate(-9deg) translate(-96px, 26px) scale(0.92); } 50% { transform: rotate(-9deg) translate(-96px, 6px) scale(0.92); } }

/* ---------------------------------------------------------------- STUDIO */
.studio__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.studio__prose, .spec { min-width: 0; }   /* let the code panel scroll instead of forcing the grid wider */
.studio__prose p { color: #C6CEE6; margin-top: 18px; max-width: 60ch; }
.studio__prose em { color: var(--text); font-style: italic; }
.studio__prose strong { color: var(--text); font-weight: 600; }
.studio__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { font-family: var(--font-mono); font-size: 0.8rem; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); color: var(--muted); }

.spec {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-border);
  background: rgba(6,9,18,0.72); backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.spec__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); }
.spec__bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3350; }
.spec__bar span:nth-child(1) { background: #ff5f57; } .spec__bar span:nth-child(2) { background: #febc2e; } .spec__bar span:nth-child(3) { background: #28c840; }
/* the filename is also a <span> in this bar — must out-specify the .spec__bar span dot rule */
.spec__bar span.spec__file { margin-left: auto; color: var(--muted); font-size: 0.78rem; width: auto; height: auto; border-radius: 0; background: none; }
.spec__body { padding: 22px 22px 24px; font-size: 0.9rem; line-height: 2; color: #C6CEE6; overflow-x: auto; }
.c-key { color: var(--primary); } .c-op { color: var(--muted); } .c-str { color: var(--accent); } .c-num { color: var(--secondary); } .c-com { color: #7c86a8; }

/* ---------------------------------------------------------------- CONTACT */
.contact { position: relative; text-align: center; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 50% 45%, rgba(123,108,246,0.22), transparent 70%);
}
.contact__inner { max-width: 780px; margin: 0 auto; }
.contact__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 14px 0 20px; }
.contact__lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 40px; }
.contact__email { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.contact__addr { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 3.6vw, 2rem); }
.copy-btn {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--text);
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: all .25s var(--ease);
}
.copy-btn:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.09); transform: translateY(-1px); }
.copy-btn.copied { color: var(--primary); border-color: rgba(70,229,181,0.5); }
.contact__toast { height: 20px; margin-top: 18px; color: var(--primary); font-size: 0.82rem; opacity: 0; transition: opacity .3s ease; }
.contact__toast.show { opacity: 1; }

/* ---------------------------------------------------------------- FOOTER */
.footer { position: relative; z-index: 1; padding: clamp(50px, 8vw, 80px) clamp(20px, 5vw, 48px) 40px; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(4,6,13,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__name { font-family: var(--font-display); font-weight: 600; }
.footer__addr { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.footer__cols { display: flex; gap: clamp(30px, 6vw, 72px); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__h { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.footer__col a { color: #B2BAD4; font-size: 0.94rem; transition: color .2s ease; width: fit-content; }
.footer__col a:hover { color: var(--text); }
.footer__base { max-width: var(--maxw); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__base p { color: var(--muted); font-size: 0.76rem; }

/* ===========================================================================
   SCROLL REVEAL
   =========================================================================== */
.reveal, .reveal-word, .app-card, .spec, .studio__prose, .flagship__copy, .flagship__art {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-word { filter: blur(8px); }
.is-in.reveal, .is-in .reveal, .is-in { opacity: 1; transform: none; }
.is-in.reveal-word, .is-in .reveal-word { opacity: 1; transform: none; filter: blur(0); }
.is-in .app-card { opacity: 1; transform: none; }

/* staggering */
.app-card:nth-child(2) { transition-delay: .08s; } .app-card:nth-child(3) { transition-delay: .16s; }

/* ===========================================================================
   NEXT-LEVEL DETAILS
   =========================================================================== */
/* aurora scroll-progress hairline */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 160;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  will-change: transform; pointer-events: none;
}

/* studio.config lines type themselves in when the panel reveals */
.spec__line {
  display: inline-block; opacity: 0; transform: translateX(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.spec.is-in .spec__line { opacity: 1; transform: none; }
.spec.is-in .spec__line:nth-child(1) { transition-delay: .15s; }
.spec.is-in .spec__line:nth-child(2) { transition-delay: .27s; }
.spec.is-in .spec__line:nth-child(3) { transition-delay: .39s; }
.spec.is-in .spec__line:nth-child(4) { transition-delay: .51s; }
.spec.is-in .spec__line:nth-child(5) { transition-delay: .63s; }
.spec.is-in .spec__line:nth-child(6) { transition-delay: .75s; }
.spec.is-in .spec__line:nth-child(7) { transition-delay: .87s; }
.spec__body::after {
  content: "▍";           /* fallback for engines without alt-text syntax */
  content: "▍" / "";      /* hidden from screen readers where supported */
  color: var(--primary); margin-left: 2px; opacity: .7;
  animation: caret-blink 1.1s steps(2, start) infinite;
}
@keyframes caret-blink { 0%, 100% { opacity: .7; } 50% { opacity: 0; } }

/* pointer-tracked specular sheen on app icons (rides the tilt card's --mx/--my) */
.app-card__icon::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,0.26), transparent 65%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.tilt:hover .app-card__icon::before { opacity: 1; }   /* only the real (tilt) cards get the sheen */

/* lab-status ticker on the "coming soon" card */
.soon-label { transition: opacity .35s ease; }
.soon-label.fading { opacity: 0; }

/* official App Store badge */
.appstore-badge { display: inline-block; transition: transform .25s var(--ease), filter .25s ease; }
.appstore-badge img { height: 54px; width: auto; }
.appstore-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 24px rgba(70,229,181,0.25)); }

/* footer fine print */
.footer__base--fine { border-top: 0; margin-top: 10px; padding-top: 0; }
.footer__base--fine p { font-size: 0.7rem; }   /* size alone de-emphasizes; opacity would fail AA */
.footer__base--fine a { text-decoration: underline; text-underline-offset: 2px; }
.footer__base--fine a:hover { color: var(--text); }

/* print-shop typesetting */
.hero__title, .section-title, .contact__title { text-wrap: balance; }
.hero__sub, .section-lead, .flagship__lead, .studio__prose p, .contact__lead, .app-card__pitch { text-wrap: pretty; }
.app-card__meta, .spec__body { font-variant-numeric: tabular-nums; }

/* smooth cross-fade between pages (Chrome/Safari; others ignore) */
@view-transition { navigation: auto; }

/* ===========================================================================
   GLASS FALLBACK — where backdrop-filter is unsupported/disabled, use solid tints
   =========================================================================== */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .app-card { background: rgba(14, 21, 38, 0.92); }
  .btn--ghost { background: rgba(20, 28, 48, 0.9); }
  .spec, .footer { background: rgba(10, 15, 28, 0.94); }
  .nav.scrolled .nav__inner { background: rgba(10, 15, 28, 0.94); }
  .nav__links.open { background: rgba(10, 15, 28, 0.96); }
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 900px) {
  .flagship { grid-template-columns: 1fr; }
  .flagship__art { height: 440px; margin-top: 20px; }
  .studio__grid { grid-template-columns: 1fr; }
  .apps__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
  .nav__cta .btn--sm { display: none; }   /* avoid colliding with the wordmark; App Store lives in the menu + hero */
  .nav__wordmark { font-size: 1rem; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; right: 0; left: 0;
    background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: 20px;
    padding: 12px; gap: 4px; backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
  }
  .nav__links.open .nav__lozenge { display: none; }
  .nav__links.open .nav__link { padding: 12px 16px; }
  .nav__links.open .nav__link--store { display: block; color: var(--primary); }
  .apps__grid { grid-template-columns: 1fr; }
  .phone { width: 210px; height: 430px; }
  .phone--back { transform: rotate(-9deg) translate(-70px, 24px) scale(0.9); }
  @keyframes float2 { 0%,100% { transform: rotate(-9deg) translate(-70px, 24px) scale(0.9); } 50% { transform: rotate(-9deg) translate(-70px, 6px) scale(0.9); } }
  .footer__base { flex-direction: column; }
}

/* ===========================================================================
   REDUCED MOTION — freeze the sky, keep the beauty
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .blob { animation: none !important; }
  .hero__chevron { animation: none; }
  .reveal, .reveal-word, .app-card, .spec, .studio__prose, .flagship__copy, .flagship__art,
  .spec__line { opacity: 1; transform: none; filter: none; }
  .sky__webgl { display: none; }
  @view-transition { navigation: none; }
}

/* ===========================================================================
   PRINT — the site becomes a clean paper document
   =========================================================================== */
@media print {
  .sky, .nav, .progress, .hero__scroll, .hero__actions, .copy-btn, .contact__toast,
  .apps__all, .appstore-badge, .footer__cols, .soon-dot { display: none !important; }
  body { background: #fff; color: #111; }
  .reveal, .reveal-word, .app-card, .spec, .spec__line, .studio__prose, .flagship__copy, .flagship__art,
  .hero__inner, .section-head, .apps__grid, .contact__inner { opacity: 1 !important; transform: none !important; filter: none !important; }
  h1, h2, h3, .section-title, .hero__title, .contact__title, .app-card__name, .footer__name,
  .grad-text { color: #000 !important; -webkit-text-fill-color: #000 !important; background: none !important; }
  p, li, .hero__sub, .section-lead, .flagship__lead, .app-card__pitch, .studio__prose p,
  .studio__prose em, .studio__prose strong { color: #222 !important; }
  .mono, .eyebrow, .app-card__meta, .chip { color: #555 !important; }
  .chip { border-color: #ddd !important; background: #fff !important; }
  .app-card__go { display: none !important; }
  .app-card, .spec, .scard { background: #fff !important; border: 1px solid #ddd !important; box-shadow: none !important; backdrop-filter: none !important; }
  .spec__body, .c-key, .c-op, .c-str, .c-num, .c-com { color: #333 !important; }
  .spec__body::after { content: none; }
  a[href^="https://"]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #777; }
  .grad-underline::after { background: #000 !important; animation: none !important; }
  section { padding: 24px 0; }
}
