/* ============================================================
   Malinora Studio — styles
   Light body · dark "cosmic" hero & footer · violet accent
   ============================================================ */

/* ---------- Self-hosted fonts (Latin subset woff2; no third-party origin) ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/fraunces-400.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/fraunces-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/fraunces-500.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/fraunces-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); }

/* Metric-matched fallback so the Fraunces swap doesn't shift layout (PERF-2).
   Overrides computed from Fraunces vs local Georgia: size-adjust = Fraunces/Georgia
   avg char width; ascent/descent = Fraunces hhea metrics / upm / size-adjust. */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 126.27%;
  ascent-override: 77.46%;
  descent-override: 20.20%;
  line-gap-override: 0%;
}

:root {
  /* ---- Light body palette ---- */
  --bg:          #fafafc;
  --surface:     #ffffff;
  --surface-alt: #f3f2f8;
  --text:        #16151a;
  --muted:       #6b6a73;
  --muted-2:     #6c6b75;   /* ~4.7:1 on #fff, ~4.6:1 on #fafafc, ~4.4:1 on #f3f2f8 — AA */
  --line:        rgba(22, 21, 26, 0.10);

  /* ---- Brand (violet) ---- */
  --accent:      #7c6cff;
  --accent-2:    #b07bff;
  --accent-ink:  #5a45e0;          /* darker violet for text on light */
  --accent-soft: rgba(124, 108, 255, 0.12);

  /* ---- Dark "cosmic" palette (hero + footer) ---- */
  --dark-bg:     #0a0912;
  --dark-bg-2:   #15101f;
  --dark-text:   #f3f1fa;
  --dark-muted:  #a8a3bd;
  --dark-line:   rgba(255, 255, 255, 0.12);

  --maxw: 1180px;
  --pad: 26px;

  --serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px var(--accent-soft);
  position: relative; flex: none;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 6px;
  border-radius: 3px; background: var(--surface);
}
.brand__name { font-weight: 600; font-size: 18px; letter-spacing: 0.01em; }
.brand__sub { color: var(--muted); font-weight: 500; margin-left: 4px; }

/* ---------- Nav (overlay; transparent over hero, solid after scroll) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav__links { display: flex; gap: 36px; }
.nav__links a {
  font-size: 15px; transition: color 0.2s var(--ease);
}

/* default = over dark hero → light text */
.nav .brand__name { color: var(--dark-text); }
.nav .brand__sub  { color: var(--dark-muted); }
.nav .brand__mark::after { background: var(--dark-bg); }
.nav__links a { color: rgba(243, 241, 250, 0.72); }
.nav__links a:hover { color: #fff; }

/* dark backing = scrolling within the dark hero (keeps light text legible) */
.nav.is-dark {
  background: rgba(10, 9, 18, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--dark-line);
}

/* solid = scrolled past hero → light bg, dark text */
.nav.is-solid {
  background: rgba(250, 250, 252, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 30px rgba(22, 21, 26, 0.05);
}
.nav.is-solid .brand__name { color: var(--text); }
.nav.is-solid .brand__sub  { color: var(--muted); }
.nav.is-solid .brand__mark::after { background: var(--surface); }
.nav.is-solid .nav__links a { color: var(--muted); }
.nav.is-solid .nav__links a:hover { color: var(--text); }

/* progressive enhancement: opaque nav backing where backdrop-filter is unsupported
   (keeps the nav legible over the hero instead of a low-contrast translucent bar) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-dark  { background: rgba(10, 9, 18, 0.94); }
  .nav.is-solid { background: rgba(250, 250, 252, 0.97); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 10px; letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 108, 255, 0.28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(124, 108, 255, 0.42);
}
.btn--sm { padding: 9px 18px; font-size: 14px; border-radius: 9px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Focus visibility (WCAG 2.4.7 / 2.4.11) ---------- */
/* :where() = zero specificity, easy to override; outline (not box-shadow) isn't
   clipped by the overflow:hidden on .hero / .marquee / .acc__panel. */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: inherit;
}
/* light ring where --accent is dim on the dark cosmic surfaces */
.nav .nav__links a:focus-visible,
.hero a:focus-visible,
.hero__cue:focus-visible,
.footer a:focus-visible {
  outline-color: #fff;
}
/* nav after scroll = light bg → keep the violet ring */
.nav.is-solid .nav__links a:focus-visible { outline-color: var(--accent); }

/* ---------- Skip link + screen-reader-only utility (WCAG 2.4.1) ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  transform: translateY(-150%);
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 18px; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(124, 108, 255, 0.4);
  transition: transform 0.2s var(--ease);
}
.skip:focus-visible { transform: none; outline: 2px solid #fff; outline-offset: 2px; }

/* hero "see how we work" / generic ghost link */
.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--dark-text); font-size: 15px; font-weight: 500;
  padding: 13px 4px; position: relative;
  transition: color 0.2s var(--ease);
}
.link-arrow::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease); opacity: 0.6;
}
.link-arrow:hover::after { transform: scaleX(1); }

/* ---------- Burger ---------- */
.nav__burger {
  display: none;                 /* becomes flex at <=900px */
  width: 44px; height: 44px;     /* full tap target; bars stay 24px */
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav__burger span {
  width: 24px; height: 2px; background: var(--dark-text); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-solid .nav__burger span { background: var(--text); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-7px) rotate(-45deg); }

/* scroll-lock while the mobile menu is open. position:fixed + a JS-saved scrollY
   is required on iOS Safari, where overflow:hidden on body alone doesn't stop the
   touch scroll and loses the position. */
.nav-open, .nav-open body { overflow: hidden; }
body.nav-open { position: fixed; left: 0; right: 0; width: 100%; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow, .section__label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

/* ============================================================
   HERO  (full viewport · dark cosmic · constellation canvas)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(130% 120% at 18% 0%, #1a1330 0%, rgba(26,19,48,0) 55%),
    radial-gradient(120% 120% at 95% 100%, #1d1338 0%, rgba(29,19,56,0) 50%),
    var(--dark-bg);
  color: var(--dark-text);
  overflow: hidden;
}
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(80px);
}
.hero__glow--1 {
  width: 560px; height: 560px; top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.34), transparent 70%);
}
.hero__glow--2 {
  width: 520px; height: 520px; bottom: -200px; right: -140px;
  background: radial-gradient(circle, rgba(176, 123, 255, 0.22), transparent 70%);
}
.hero__canvas {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 45%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 78% at 50% 45%, #000 55%, transparent 100%);
}
.hero__content { position: relative; z-index: 2; padding-block: 120px 90px; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 1.05; letter-spacing: -0.012em;
  margin: 26px 0 30px; max-width: 18ch; color: #fff;
}
.hero__title em { font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .eyebrow { color: var(--dark-muted); }
.hero__lead {
  font-size: clamp(17px, 2vw, 20px); color: var(--dark-muted);
  max-width: 58ch; line-height: 1.65;
}
.hero__actions {
  display: flex; align-items: center; gap: 22px; margin-top: 42px; flex-wrap: wrap;
}
.hero__cue {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px;            /* >=44px tall + wider hit area, away from the edge */
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dark-muted);
  transition: color 0.2s var(--ease);
}
.hero__cue:hover { color: #fff; }
.hero__cue-arrow { display: inline-block; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Trust strip (light) ---------- */
.strip { border-bottom: 1px solid var(--line); padding: 30px 0; background: var(--surface); }
.strip__inner { display: flex; align-items: center; gap: 38px; flex-wrap: wrap; }
.strip__label {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted-2); white-space: nowrap;
}
.strip__logos {
  list-style: none; display: flex; gap: 38px; flex-wrap: wrap;
  font-size: 16px; color: var(--muted); font-weight: 500;
}
.strip__logos li { transition: color 0.2s var(--ease); }
.strip__logos li:hover { color: var(--text); }

/* ---------- Proof strip (pedigree marquee) ---------- */
.strip--proof { padding: 26px 0; }
.strip__label--center { display: flex; justify-content: center; text-align: center; margin-bottom: 18px; }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  list-style: none; display: flex; width: max-content;
  font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em;
  animation: marquee 32s linear infinite;
}
.marquee__track li { white-space: nowrap; margin-right: 56px; transition: color 0.2s var(--ease); }
.marquee__track li:hover { color: var(--accent-ink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }
  .marquee__track li { margin: 6px 18px; }
  .marquee__track li[aria-hidden="true"] { display: none; }
}

/* ---------- Sections (light) ---------- */
.section { padding: clamp(80px, 12vh, 130px) 0; }
.section--alt { background: var(--surface-alt); }
.section__label { margin-bottom: 22px; }
.section__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.8vw, 58px); line-height: 1.12;
  letter-spacing: -0.01em; color: var(--text);
}
.section__head { max-width: 740px; margin-bottom: 64px; }
.section__head-lead { margin-top: 22px; max-width: 52ch; }
.muted { color: var(--muted); }

.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px); align-items: center;
}
.grid-2--top { align-items: start; }

/* ---------- About ---------- */
.about__body p { color: var(--muted); margin-bottom: 18px; max-width: 52ch; }
.about__stats {
  display: flex; gap: 44px; margin-top: 40px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 32px;
}
.about__stats div { display: flex; flex-direction: column; gap: 6px; }
.about__stats strong {
  font-family: var(--serif); font-size: 42px; font-weight: 500; color: var(--text);
  line-height: 1;
}
.about__stats span { font-size: 13.5px; color: var(--muted-2); max-width: 16ch; line-height: 1.4; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 32px;
  box-shadow: 0 1px 3px rgba(16, 15, 26, 0.04);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 108, 255, 0.4);
  box-shadow: 0 16px 40px rgba(16, 15, 26, 0.10);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; font-size: 23px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid rgba(124, 108, 255, 0.22); margin-bottom: 26px;
}
.card h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.card strong { color: var(--text); font-weight: 600; }

/* ---------- Team (the people you work with) ---------- */
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__label { justify-content: center; }
.section__head--center .section__head-lead { margin-inline: auto; }

.team {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 56px);
  max-width: 820px; margin: 0 auto;
}
.team__member { display: flex; }
.team__card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 5px; width: 100%;
}
.team__avatar {
  position: relative; width: 120px; height: 120px; margin-bottom: 20px;
  border-radius: 50%; flex: none;
}
.team__photo {
  display: block; width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; background: var(--surface-alt);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(16, 15, 26, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.team__card:hover .team__photo,
.team__card:focus-visible .team__photo {
  transform: translateY(-4px);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 16px 34px rgba(124, 108, 255, 0.26);
}
.team__badge {
  position: absolute; right: 3px; bottom: 3px;
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  color: #fff; background: #0a66c2;          /* LinkedIn brand blue */
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.35);
  transition: transform 0.3s var(--ease);
}
.team__card:hover .team__badge,
.team__card:focus-visible .team__badge { transform: scale(1.08); }
.team__name {
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  color: var(--text); line-height: 1.2;
}
.team__role {
  font-size: 14px; color: var(--muted-2); max-width: 24ch; line-height: 1.45;
}

/* ---------- Accordion (expertise) ---------- */
.expertise__intro .section__title { margin-bottom: 24px; }
.accordion { list-style: none; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item:first-child { border-top: 1px solid var(--line); }
.acc__head {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 4px; color: var(--text); text-align: left;
  font-family: var(--serif); font-size: clamp(22px, 2.8vw, 30px); font-weight: 500;
  letter-spacing: -0.005em; transition: color 0.2s var(--ease);
}
.acc__head:hover { color: var(--accent-ink); }
.acc__icon {
  font-family: var(--sans); font-size: 20px; color: var(--muted-2); flex: none;
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}
.acc__item.is-open .acc__icon { transform: rotate(90deg); color: var(--accent-ink); }
.acc__panel { max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease); }
.acc__item.is-open .acc__panel { opacity: 1; }
.acc__panel p { color: var(--muted); font-size: 16px; padding: 0 4px 28px; max-width: 60ch; }

/* ---------- Steps (approach) ---------- */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.step { padding: 44px 40px; border-right: 1px solid var(--line); }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; padding-right: 0; }
.step__num {
  font-family: var(--serif); font-size: 40px; font-weight: 500; font-style: italic;
  color: var(--accent-ink);      /* visible fallback: solid number */
  display: block; margin-bottom: 24px;
}
/* outlined numerals only where text-stroke is supported (else they'd be invisible) */
@supports (-webkit-text-stroke: 1px black) {
  .step__num { color: transparent; -webkit-text-stroke: 1px var(--accent); }
}
.step h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq__item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.faq__q {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(19px, 2.4vw, 24px); line-height: 1.25;
  letter-spacing: -0.005em; margin-bottom: 12px; color: var(--text);
}
.faq__a { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 68ch; }

/* ---------- CTA ---------- */
.cta { padding: clamp(90px, 15vh, 150px) 0; text-align: center; background: var(--surface); border-top: 1px solid var(--line); }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 6vw, 72px); line-height: 1.08;
  letter-spacing: -0.012em; margin: 24px 0 18px;
}
.cta__lead { color: var(--muted); font-size: 18px; margin-bottom: 38px; }

/* ---------- Mail chooser (contact) ---------- */
.mail { position: relative; display: inline-block; }
.mail__trigger { gap: 10px; }
.mail__chev { font-size: 12px; opacity: 0.85; transition: transform 0.25s var(--ease); }
.mail__trigger[aria-expanded="true"] .mail__chev { transform: rotate(180deg); }
.mail__menu {
  position: absolute; bottom: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 252px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 24px 60px rgba(16, 15, 26, 0.16);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; pointer-events: none; z-index: 30;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.mail__menu.is-open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mail__menu a, .mail__menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 13px 15px; border-radius: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--text);
  background: none; border: 0; cursor: pointer; text-align: left;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.mail__menu a:hover, .mail__menu button:hover { background: var(--surface-alt); }
.mail__ext { color: var(--muted-2); font-size: 13px; flex: none; }
.mail__sep { height: 1px; background: var(--line); margin: 6px 8px; }
.mail__copy.is-copied { color: var(--accent-ink); }

/* ============================================================
   FOOTER (dark / cosmic)
   ============================================================ */
.footer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 80% 0%, #1a1330 0%, rgba(26,19,48,0) 55%),
    var(--dark-bg);
  color: var(--dark-text);
  padding-top: 70px;
}
.footer__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 600px; height: 400px; top: -180px; left: 30%;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.22), transparent 70%);
  filter: blur(80px);
}
.footer__inner, .footer__bottom { position: relative; z-index: 1; }
.footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 54px;
}
.footer .brand__name { color: var(--dark-text); }
.footer .brand__sub  { color: var(--dark-muted); }
.footer .brand__mark::after { background: var(--dark-bg); }
.footer__tag { color: var(--dark-muted); font-size: 15px; margin-top: 18px; max-width: 30ch; }
.footer__links, .footer__social { display: flex; flex-direction: column; gap: 15px; }
.footer__links a, .footer__social a {
  color: var(--dark-muted); font-size: 15px; width: fit-content;
  transition: color 0.2s var(--ease);
}
.footer__links a:hover, .footer__social a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--dark-line); padding-block: 28px; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: var(--dark-muted);
}
.footer__bottom a { color: var(--dark-muted); transition: color 0.2s var(--ease); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* grouped reveals stagger by DOM position — deterministic, and auto-disabled by
   the reduced-motion block (which zeroes transition). Replaces the old JS
   batch-index delay, which depended on scroll speed. */
.cards .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
/* steps: 4-up cramps on 901–1024px (landscape tablets / 11–13" laptops) → 2×2,
   before the 900px nav breakpoint. "Architecture & plan" wraps to two lines while
   the siblings stay one, jagging the row. */
@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step { padding: 36px 32px; }
  .step:nth-child(odd)  { padding-left: 0; }
  .step:nth-child(even) { border-right: 0; padding-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .nav__links {
    position: fixed; inset: 76px 0 0 0;        /* fullscreen overlay → empty area = tap-to-close */
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(10, 9, 18, 0.96); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--dark-line);
    padding: 8px 0; transform: translateY(-12px);
    opacity: 0; pointer-events: none; transition: all 0.3s var(--ease);
    overflow-y: auto;                          /* short screens: the menu scrolls itself */
  }
  /* JS sets [hidden] on the closed mobile menu to drop its links from the tab
     order / a11y tree; this must beat the author `.nav__links{display:flex}` rule
     (UA [hidden]{display:none} alone loses to it). */
  .nav__links[hidden] { display: none; }
  .nav.is-solid .nav__links {
    background: rgba(250, 250, 252, 0.98); border-bottom-color: var(--line);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 16px var(--pad); font-size: 17px; }
  .nav.is-solid .nav__links a { color: var(--text); }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding: 32px 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .about__stats { gap: 30px; }
  .team { grid-template-columns: 1fr; max-width: 340px; gap: 40px; }
  .hero__actions { gap: 16px; }
  .hero__content { padding-block: 96px 72px; }   /* was 120px 90px — more air on phones */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
