/* =========================================================
   Rainone Technologies — Vision Pro spatial · Light · Glass
   Floating glass over warm ivory canvas with pastel orbs.
   ========================================================= */

:root {
  /* Canvas */
  --bg:           #F5F4F0;
  --bg-2:         #FAFAF7;
  --ink:          #1D1D1F;
  --ink-2:        #424245;
  --ink-3:        #6E6E73;
  --ink-4:        #86868B;
  --line:         rgba(0, 0, 0, 0.08);
  --line-2:       rgba(0, 0, 0, 0.14);

  /* Glass system */
  --glass-bg:     rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.80);
  --glass-blur:   blur(40px) saturate(180%);
  --glass-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 30px 60px -24px rgba(28, 30, 50, 0.12),
    0 10px 30px -10px rgba(28, 30, 50, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;

  /* Accent */
  --accent:       #0071E3;
  --accent-hover: #0077ED;
  --accent-soft:  rgba(0, 113, 227, 0.10);
  --live:         #34C759;

  /* Spatial orbs */
  --orb-1: #FFB07A;
  --orb-2: #B48CE6;
  --orb-3: #5E7AE6;
  --orb-4: #6BD9C0;

  --font: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1280px;
  --pad-x: clamp(20px, 6vw, 96px);
  --pad-y: clamp(80px, 12vw, 160px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #FFFFFF; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- A11y ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
/* ---------- Spatial orbs (ambient light) ---------- */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb--1 {
  width: 56vmax; height: 56vmax;
  background: radial-gradient(circle, var(--orb-1) 0%, transparent 65%);
  top: -18vmax; left: -10vmax;
  animation: orb1 28s ease-in-out infinite alternate;
}
.orb--2 {
  width: 50vmax; height: 50vmax;
  background: radial-gradient(circle, var(--orb-2) 0%, transparent 65%);
  top: 10vmax; right: -16vmax;
  animation: orb2 34s ease-in-out infinite alternate;
}
.orb--3 {
  width: 60vmax; height: 60vmax;
  background: radial-gradient(circle, var(--orb-3) 0%, transparent 65%);
  top: 50vh; left: 30vmax;
  opacity: 0.35;
  animation: orb3 42s ease-in-out infinite alternate;
}
.orb--4 {
  width: 48vmax; height: 48vmax;
  background: radial-gradient(circle, var(--orb-4) 0%, transparent 65%);
  bottom: -20vmax; left: 10vmax;
  opacity: 0.40;
  animation: orb4 36s ease-in-out infinite alternate;
}
@keyframes orb1 { from { transform: translate(0,0); } to { transform: translate(6vmax, 4vmax); } }
@keyframes orb2 { from { transform: translate(0,0); } to { transform: translate(-5vmax, 5vmax); } }
@keyframes orb3 { from { transform: translate(0,0); } to { transform: translate(4vmax, -6vmax); } }
@keyframes orb4 { from { transform: translate(0,0); } to { transform: translate(-4vmax, -4vmax); } }

/* Stacking */
.nav, main, .footer { position: relative; z-index: 2; }

/* ---------- Glass utility ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(0, 113, 227, 0.4);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 4px 12px -4px rgba(0,0,0,0.06);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.75); }
.btn--lg { padding: 1.1rem 2rem; font-size: 17px; }

/* ---------- Nav (glass) ---------- */
.nav {
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: .55rem .65rem .55rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 10px 30px -10px rgba(0,0,0,0.10);
  transition: padding .3s var(--ease);
  width: max-content;
  max-width: calc(100vw - 32px);
}
.nav__brand { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; }
.nav__mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.04em;
}
.nav__name {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}
.nav__links {
  display: flex; gap: 1.6rem;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a {
  color: var(--ink-2);
  transition: color .25s var(--ease);
  padding: .4rem .1rem;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: .55rem 1.1rem;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .3s var(--ease);
}
.nav__cta:hover { background: var(--accent); }
.nav__toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--ink);
  position: relative;
  z-index: 1002;
}
.nav__toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform .35s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { bottom: 13px; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

body.menu-open { overflow: hidden; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(245, 244, 240, 0.85);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2rem 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: .4rem; }
.mobile-menu__nav a {
  font-size: clamp(36px, 11vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  padding: .3rem 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
body.menu-open .mobile-menu__nav a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu__nav a:nth-child(1) { transition-delay: .10s; }
body.menu-open .mobile-menu__nav a:nth-child(2) { transition-delay: .16s; }
body.menu-open .mobile-menu__nav a:nth-child(3) { transition-delay: .22s; }
body.menu-open .mobile-menu__nav a:nth-child(4) { transition-delay: .28s; }
body.menu-open .mobile-menu__nav a:nth-child(5) { transition-delay: .34s; }
.mobile-menu__cta {
  margin-top: 2.5rem;
  align-self: flex-start;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease-out) .40s, transform .5s var(--ease-out) .40s;
}
body.menu-open .mobile-menu__cta { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .nav__links, .nav__name, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}
@media (min-width: 1001px) { .mobile-menu { display: none; } }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(120px, 14vh, 180px) var(--pad-x) 6rem;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.hero__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero__h1 {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(44px, 7.0vw, 96px);
  line-height: 1.06;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin-bottom: 1.8rem;
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 auto 2.8rem;
  font-weight: 400;
}
.hero__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}

/* Spatial floating glass cards */
.spatial {
  margin-top: 4rem;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  align-items: stretch;
}
.spatial__card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  padding: 1.4rem 1.6rem 1.6rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-height: 170px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 22px 50px -20px rgba(40, 30, 60, 0.18),
    0 8px 24px -10px rgba(40, 30, 60, 0.10);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.spatial__card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 28px 60px -22px rgba(40, 30, 60, 0.22),
    0 12px 28px -12px rgba(40, 30, 60, 0.12);
}
.spatial__chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.spatial__chip i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
}
.spatial__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: auto;
}
.spatial__tag {
  font-size: 13px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .hero { padding: 130px 1.2rem 4rem; }
  .spatial { grid-template-columns: 1fr; margin-top: 3rem; gap: 12px; }
  .spatial__card { min-height: 120px; transform: none !important; }
}

/* ---------- Section base ---------- */
.section {
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.section__head {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.section__title {
  font-family: var(--font);
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.2rem;
  padding-bottom: 0.08em;
}
.section__sub {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 52ch;
  margin: 0 auto;
}

/* ---------- PROJECT — feature spotlight glass card ---------- */
.project {
  margin-bottom: 2rem;
}
.project__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 4rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 32px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 40px 80px -32px rgba(40, 30, 60, 0.18),
    0 12px 36px -16px rgba(40, 30, 60, 0.08);
  align-items: center;
  transition: transform .6s var(--ease);
}
.project__card:hover { transform: translateY(-4px); }
.project--reverse .project__card { direction: rtl; }
.project--reverse .project__text { direction: ltr; text-align: left; }
.project--reverse .project__visual { direction: ltr; }

.project__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.project__visual svg {
  width: 100%; height: 100%;
}
.project__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.project__name {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: .8rem;
  padding-bottom: 0.04em;
}
.project__tag {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.project__desc {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}

@media (max-width: 1000px) {
  .project__card { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.8rem; }
  .project--reverse .project__card { direction: ltr; }
  .project__visual { max-width: 480px; margin: 0 auto; }
}

/* ---------- STUDIO ---------- */
.studio {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}
.founder {
  padding: 2rem;
  position: sticky;
  top: 6rem;
}
.founder__avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.20), rgba(180, 140, 230, 0.20));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.founder__avatar span {
  font-family: var(--font);
  font-weight: 700;
  font-size: 44px;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.founder__role {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .35rem;
}
.founder__name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.founder__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.founder__list > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
}
.founder__list dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.founder__list dd {
  color: var(--ink);
  text-align: right;
  font-weight: 500;
}

.studio__story p {
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 1.4rem;
  max-width: 58ch;
}
.studio__lead {
  font-size: clamp(22px, 1.8vw, 30px) !important;
  line-height: 1.35 !important;
  color: var(--ink) !important;
  margin-bottom: 2rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.018em;
}
.studio__skills {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.studio__skills-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.studio__skills-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.studio__skills-grid span {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: all .25s var(--ease);
}
.studio__skills-grid span:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

@media (max-width: 1000px) {
  .studio { grid-template-columns: 1fr; gap: 2.5rem; }
  .founder { position: static; }
  .founder__avatar { width: 100px; height: 100px; }
  .founder__avatar span { font-size: 32px; }
}

/* ---------- CAPACITIES (glass grid) ---------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cap {
  padding: 2rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cap:hover { transform: translateY(-3px); }
.cap h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: .55rem;
  line-height: 1.2;
}
.cap p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .capabilities { grid-template-columns: 1fr; }
}

/* ---------- METHOD ---------- */
.method {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.step {
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: transform .4s var(--ease);
}
.step:hover { transform: translateY(-3px); }
.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.step h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: .3rem;
}
.step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
@media (max-width: 1000px) { .method { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .method { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 5rem 3rem;
  max-width: 880px;
  margin: 0 auto;
}
.cta__title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.4rem;
  padding-bottom: 0.08em;
}
.cta__sub {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 2.4rem;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 700px) { .cta { padding: 3rem 1.8rem; } }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4rem var(--pad-x) 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.footer__inner { max-width: var(--max); margin: 0 auto; }
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer__brand { display: inline-flex; align-items: center; gap: .6rem; }
.footer__mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.04em;
}
.footer__name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.footer__tagline {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 38ch;
  text-align: right;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.footer__col { display: flex; flex-direction: column; gap: .6rem; font-size: 14px; }
.footer__key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .3rem;
}
.footer__col a, .footer__col span { color: var(--ink-2); transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 13px;
  color: var(--ink-3);
}
@media (max-width: 800px) {
  .footer__top { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .footer__tagline { text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: .6rem; align-items: flex-start; }
}

/* Footer apply button */
.footer__apply {
  display: inline-block;
  text-align: left;
  padding: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.footer__apply:hover { color: var(--ink); }

/* ============================================================
   APPLICATION OVERLAY — Y Combinator style, Vision Pro glass
   ============================================================ */
.apply {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(245, 244, 240, 0.94);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
body.apply-open { overflow: hidden; }
body.apply-open .apply {
  opacity: 1;
  visibility: visible;
}

/* Header bar */
.apply__head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(20px, 5vw, 48px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.apply__brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.apply__mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: #FFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.04em;
}
.apply__brand-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.apply__progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 360px;
  margin: 0 auto;
}
.apply__bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.07);
  overflow: hidden;
}
.apply__fill {
  height: 100%;
  width: 12.5%;
  background: var(--ink);
  border-radius: 4px;
  transition: width .5s var(--ease);
}
.apply__count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.apply__close {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: background .25s var(--ease), transform .25s var(--ease);
  flex-shrink: 0;
}
.apply__close:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* Form area */
.apply__form {
  flex: 1;
  position: relative;
  overflow: hidden;
  border: none;
}
.apply__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem clamp(20px, 5vw, 48px);
  max-width: 760px;
  margin: 0 auto;
  border: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  overflow-y: auto;
}
.apply__step.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.apply__step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
}
.apply__label {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: .75rem;
}
.apply__help {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--ink-3);
  margin-bottom: 2rem;
  max-width: 56ch;
  line-height: 1.5;
}
.apply__input,
.apply__textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.011em;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  outline: none;
  font-weight: 400;
}
.apply__input::placeholder,
.apply__textarea::placeholder {
  color: var(--ink-4);
}
.apply__input:focus,
.apply__textarea:focus {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.10);
}
.apply__input.is-invalid,
.apply__textarea.is-invalid {
  border-color: #E5484D;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.10);
}
.apply__textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.55;
}

/* Radio cards */
.apply__radios {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.apply__radio {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.apply__radio:hover {
  background: rgba(255, 255, 255, 0.78);
}
.apply__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.apply__dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  position: relative;
  flex-shrink: 0;
  transition: border-color .25s var(--ease);
}
.apply__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform .22s var(--ease);
}
.apply__radio input:checked ~ .apply__dot { border-color: var(--accent); }
.apply__radio input:checked ~ .apply__dot::after { transform: scale(1); }
.apply__radio:has(input:checked) {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 113, 227, 0.30);
  box-shadow: 0 4px 14px -8px rgba(0, 113, 227, 0.25);
}
.apply__radio-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.apply__radio-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.apply__radio-sub {
  font-size: 13px;
  color: var(--ink-3);
}

/* Contact grid */
.apply__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.apply__field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.apply__field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Footer with nav buttons */
.apply__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem clamp(20px, 5vw, 48px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.apply__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.apply__btn--primary {
  background: var(--ink);
  color: #FFF;
}
.apply__btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(0, 113, 227, 0.4);
}
.apply__btn--primary:disabled {
  background: rgba(0, 0, 0, 0.18);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.apply__btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.8);
}
.apply__btn--ghost:hover { background: rgba(255, 255, 255, 0.85); }
.apply__btn--ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.4);
}

/* Thank you screen */
.apply__thanks {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem clamp(20px, 5vw, 48px);
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.apply__thanks.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.apply__check {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent);
}
.apply__thanks h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.032em;
  margin-bottom: 1rem;
  line-height: 1.08;
  color: var(--ink);
}
.apply__thanks p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 50ch;
  line-height: 1.5;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .apply__head { padding: .85rem 1rem; gap: .8rem; }
  .apply__brand-name { display: none; }
  .apply__progress { max-width: none; margin: 0; }
  .apply__step { padding: 1.4rem 1rem; justify-content: flex-start; padding-top: 2.5rem; }
  .apply__grid { grid-template-columns: 1fr; }
  .apply__foot { padding: 1rem; }
  .apply__btn { padding: .8rem 1.2rem; font-size: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .orb { animation: none !important; }
}
