/* ==========================================================================
   Elepsium — one-page site
   --------------------------------------------------------------------------
   1. Tokens
   2. Base
   3. Layout utilities
   4. Backdrop
   5. Header / nav
   6. Buttons
   7. Hero
   8. Section furniture
   9. Services
  10. Approach
  11. About
  12. Contact
  13. Footer
  14. Reveal
  15. Responsive
  16. Reduced motion
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */

:root {
  --bg:            #07070a;
  --bg-alt:        #090910;
  --bg-elev:       rgba(255, 255, 255, .022);
  --line:          rgba(255, 255, 255, .085);
  --line-strong:   rgba(255, 255, 255, .17);

  --ink:           #f5f5f7;
  --ink-soft:      rgba(245, 245, 247, .66);
  --ink-faint:     rgba(245, 245, 247, .40);
  --ink-ghost:     rgba(245, 245, 247, .22);

  --accent:        #9ec6ff;
  --accent-soft:   rgba(158, 198, 255, .55);
  --accent-glow:   rgba(158, 198, 255, .28);

  /* Fluid container: the gutter tracks the viewport up to 80px, so content
     fills the screen the way large product sites do, rather than sitting in a
     narrow column. --wrap only caps things on ultrawide displays. */
  --wrap:          1920px;
  --gutter:        clamp(20px, 5vw, 80px);
  --section-y:     clamp(72px, 11vh, 140px);
  --ease:          cubic-bezier(.22, .61, .36, 1);
  --nav-h:         68px;
}

/* 2. Base --------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.12;
}

p { margin: 0; }

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; }

::selection {
  background: rgba(158, 198, 255, .22);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #09090c;
  font-size: 13px;
  text-decoration: none;
  transition: top .25s var(--ease);
}

.skip-link:focus { top: 16px; }

/* 3. Layout utilities --------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.section--alt { background: var(--bg-alt); }

/* 4. Backdrop ----------------------------------------------------------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .34;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

/* 5. Header / nav ------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .45s var(--ease), border-color .45s var(--ease),
              backdrop-filter .45s var(--ease);
}

.nav.is-stuck {
  background: rgba(7, 7, 10, .72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* The supplied wordmark, trimmed to its ink bounds so the height is exact */
.brand__logo {
  height: 17px;
  width: auto;
  opacity: .92;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.brand:hover .brand__logo { opacity: 1; transform: translateY(-1px); }

.brand--footer .brand__logo { height: 21px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
}

.nav__links a {
  position: relative;
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color .35s var(--ease);
}

.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:not(.nav__cta):hover::after,
.nav__links a.is-active:not(.nav__cta)::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }

.nav__cta {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--ink) !important;
  transition: background .35s var(--ease), border-color .35s var(--ease),
              transform .35s var(--ease);
}

.nav__cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #09090c !important;
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  cursor: pointer;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.4px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}

.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child  { bottom: 17px; }

.nav__toggle[aria-expanded="true"] span:first-child { transform: translate(-50%, 6.3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translate(-50%, -6.3px) rotate(-45deg); }

/* 6. Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), color .35s var(--ease);
}

.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--solid {
  background: var(--ink);
  color: #09090c;
  box-shadow: 0 10px 40px -16px rgba(158, 198, 255, .5);
}

.btn--solid:hover { background: #fff; transform: translateY(-2px); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.btn--ghost:hover {
  border-color: var(--ink-ghost);
  background: var(--bg-elev);
  color: var(--ink);
  transform: translateY(-2px);
}

/* 7. Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 90px));
  padding-bottom: clamp(80px, 12vh, 130px);
  overflow: hidden;
}

#field,
.hero__aura,
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#field { z-index: 1; opacity: .8; }

.hero__aura {
  z-index: 0;
  background:
    radial-gradient(58vw 58vw at 14% 8%,  rgba(158, 198, 255, .12), transparent 62%),
    radial-gradient(50vw 50vw at 88% 78%, rgba(186, 166, 255, .09), transparent 60%),
    radial-gradient(80vw 60vw at 50% 42%, rgba(255, 255, 255, .03), transparent 70%);
  filter: blur(10px);
  animation: drift 26s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d( 2%, 1.5%, 0) scale(1.06); }
}

.hero__grid {
  z-index: 0;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: clamp(64px, 9vw, 128px) clamp(64px, 9vw, 128px);
  mask-image: radial-gradient(120% 105% at 50% 40%, #000 15%, transparent 76%);
  -webkit-mask-image: radial-gradient(120% 105% at 50% 40%, #000 15%, transparent 76%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}

.hero__copy { min-width: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 3vh, 30px);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.kicker__dot {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  flex-shrink: 0;
}

.kicker__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: ping 2.8s var(--ease) infinite;
}

@keyframes ping {
  0%   { transform: scale(.6); opacity: .7; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}

.hero__title {
  max-width: 15ch;
  font-size: clamp(42px, 7.4vw, 92px);
  font-weight: 200;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.hero__title em {
  font-style: normal;
  font-weight: 300;
  background: linear-gradient(100deg, #fff 10%, var(--accent) 55%, #cfd9ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 54ch;
  margin-top: clamp(22px, 3.4vh, 34px);
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 4.6vh, 46px);
}

/* Hero visual — brand geometry on an orbit. Pure SVG + CSS, no JS. */

.hero__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(158, 198, 255, .14), transparent 68%);
  animation: breathe 7s var(--ease) infinite alternate;
}

@keyframes breathe {
  from { transform: scale(.94); opacity: .75; }
  to   { transform: scale(1.06); opacity: 1; }
}

.orbit {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit__ring {
  stroke: rgba(255, 255, 255, .16);
  stroke-width: 1;
}

.orbit__ring--mid { stroke: rgba(158, 198, 255, .26); }

.orbit__ring--in {
  stroke: rgba(255, 255, 255, .09);
  stroke-dasharray: none;
}

.orbit__lattice {
  stroke: rgba(255, 255, 255, .055);
  stroke-width: 1;
}

.orbit__spin circle {
  fill: #dfe8ff;
  filter: drop-shadow(0 0 6px rgba(158, 198, 255, .7));
}

.orbit__spin {
  transform-box: view-box;
  transform-origin: 200px 200px;
}

.orbit__spin--slow   { animation: spin 46s linear infinite; }
.orbit__spin--fast   { animation: spin 28s linear infinite reverse; }
.orbit__spin--inner  { animation: spin 17s linear infinite; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.orbit__core {
  fill: rgba(10, 10, 16, .72);
  stroke: rgba(158, 198, 255, .3);
  stroke-width: 1;
}

.orbit__mark {
  fill: #eef3ff;
  filter: drop-shadow(0 0 14px rgba(158, 198, 255, .45));
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink-ghost);
  transition: color .35s var(--ease);
}

.scroll-cue:hover { color: var(--ink-soft); }

.scroll-cue__text {
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.scroll-cue__line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, var(--line-strong));
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 14px;
  background: var(--accent);
  animation: cue 2.6s var(--ease) infinite;
}

@keyframes cue {
  0%   { transform: translateY(-16px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(44px); opacity: 0; }
}

/* 8. Section furniture -------------------------------------------------- */

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(42px, 6vh, 72px);
}

.section__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.section__label span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.section__label::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent);
}

.section__title {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 200;
  letter-spacing: -.03em;
}

.section__lede {
  max-width: 56ch;
  margin-top: 20px;
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 9. Services ----------------------------------------------------------- */

.cards {
  display: grid;
  /* Fixed at three columns: auto-fit would run to six on a wide container */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.card {
  position: relative;
  padding: clamp(26px, 3.2vw, 40px);
  background: var(--bg);
  transition: background .45s var(--ease);
}

.section--alt .card { background: var(--bg-alt); }

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 0%, rgba(158, 198, 255, .09), transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}

.card:hover { background: #0b0b11; }
.card:hover::before { opacity: 1; }

.card__index {
  position: absolute;
  top: clamp(26px, 3.2vw, 40px);
  right: clamp(26px, 3.2vw, 40px);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-ghost);
  font-variant-numeric: tabular-nums;
}

.card__icon {
  width: 26px;
  height: 26px;
  margin-bottom: 22px;
  color: var(--accent);
  opacity: .85;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}

.card:hover .card__icon { transform: translateY(-2px); opacity: 1; }

.card__title {
  margin-bottom: 12px;
  font-size: 18.5px;
  font-weight: 400;
  letter-spacing: -.01em;
}

.card__text {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}

/* 10. Approach ---------------------------------------------------------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: minmax(70px, 110px) 1fr;
  gap: clamp(16px, 4vw, 56px);
  padding-block: clamp(26px, 3.6vh, 40px);
  border-bottom: 1px solid var(--line);
  transition: background .45s var(--ease);
}

.step:hover { background: rgba(255, 255, 255, .015); }

.step__num {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 200;
  letter-spacing: -.02em;
  color: var(--ink-ghost);
  font-variant-numeric: tabular-nums;
  transition: color .45s var(--ease);
}

.step:hover .step__num { color: var(--accent-soft); }

.step__body { max-width: 62ch; }

.step__title {
  margin-bottom: 10px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 300;
}

.step__text {
  font-size: 14.75px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 11. About ------------------------------------------------------------- */

.about {
  display: grid;
  /* The panel is held to a readable width; the copy column takes the slack */
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 480px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about__text {
  max-width: 60ch;
  margin-top: 20px;
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.8;
  color: var(--ink-soft);
}

.values {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.values li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}

.values li span { color: var(--accent); }

.about__panel {
  position: relative;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  overflow: hidden;
}

.about__panel::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 160px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(158, 198, 255, .14), transparent 70%);
  pointer-events: none;
}

.about__mark {
  position: relative;
  width: 24px;
  height: auto;
  margin-bottom: 26px;
  color: var(--accent);
  opacity: .9;
}

.about__quote {
  position: relative;
  margin: 0;
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -.01em;
  color: var(--ink);
}

.about__attr {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* 12. Contact ----------------------------------------------------------- */

.section--contact {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact__aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 70% at 50% 100%, rgba(158, 198, 255, .13), transparent 70%);
}

.contact { position: relative; }

.contact .section__label { justify-content: center; }
.contact .section__label::after { display: none; }

.contact__title {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(30px, 5.2vw, 58px);
  font-weight: 200;
  letter-spacing: -.035em;
}

.contact__lede {
  max-width: 50ch;
  margin: 24px auto 0;
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.75;
  color: var(--ink-soft);
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  margin-top: clamp(34px, 5vh, 54px);
  padding-bottom: 10px;
  font-size: clamp(20px, 3.8vw, 40px);
  font-weight: 200;
  letter-spacing: -.025em;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: color .4s var(--ease);
}

.contact__email svg {
  width: clamp(18px, 2.4vw, 28px);
  height: clamp(18px, 2.4vw, 28px);
  color: var(--accent);
  transition: transform .45s var(--ease);
}

.contact__email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
  transition: background .4s var(--ease);
}

.contact__email:hover { color: #fff; }
.contact__email:hover svg { transform: translateX(5px); }
.contact__email:hover::after { background: var(--accent); }

.contact__note {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* 13. Footer ------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(32px, 5vh, 48px);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 30px);
}

.footer__nav a {
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color .35s var(--ease);
}

.footer__nav a:hover { color: var(--ink); }

.footer__legal {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-ghost);
}

/* 14. Reveal ------------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* 15. Responsive -------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Below this the copy column gets too narrow beside the panel */
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__panel { max-width: 620px; }
}

@media (max-width: 680px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 26px;
    background: #08080d;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links a {
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav__links a:not(.nav__cta)::after { display: none; }

  .nav__cta {
    margin-top: 18px;
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--line-strong);
  }

  .nav.is-open-menu {
    background: #08080d;
    border-bottom-color: transparent;
  }

  /* Dim the page behind an open menu */
  .nav__links::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(5, 5, 8, .74);
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
  }

  .nav__links.is-open::after { opacity: 1; pointer-events: auto; }
}

@media (max-width: 860px) {
  /* Stack: the visual sits below the copy and shrinks */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vh, 52px);
  }

  .hero__visual { max-width: 300px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 62px; }

  .brand__logo { height: 14px; }
  .brand--footer .brand__logo { height: 18px; }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + clamp(28px, 5vh, 56px));
    padding-bottom: clamp(36px, 5vh, 56px);
  }

  /* Keep the whole hero, mark included, inside a phone viewport */
  .hero__inner { gap: clamp(22px, 3.4vh, 34px); }

  .hero__title { max-width: 100%; font-size: clamp(36px, 11vw, 54px); }

  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }

  .hero__visual { max-width: 186px; }

  .scroll-cue { display: none; }

  .cards { border-radius: 14px; }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .step__num { font-size: 13px; letter-spacing: .18em; color: var(--accent-soft); }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* 16. Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__aura,
  .kicker__dot::after,
  .scroll-cue__line::after,
  .hero__visual::before,
  .orbit__spin { animation: none; }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
