/* ===== Himalayan AI — Neural Editorial (amethyst, light + dark) ===== */

:root {
  /* accent */
  --acc: #6D28D9;
  --acc-rgb: 109, 40, 217;
  --acc2: #8B5CF6;
  --link: #6D28D9;          /* nav / inline links / labels */
  --tint: #F1EAFB;
  --tint-border: #DDCBF5;

  /* surfaces */
  --bg: #F8F6FC;
  --card: #FFFFFF;
  --border: #ECE4F5;
  --grid-line: rgba(46, 58, 60, .040);
  --ribbon-bg: rgba(248, 246, 252, .92);
  --hero-glow: rgba(109, 40, 217, .10);

  /* text */
  --ink: #2E3A3C;     /* headings */
  --body: #3C4644;    /* body text */
  --muted: #5A6663;   /* secondary */
  --faint: #8C938E;   /* labels */
  --copy-faint: #9aa0a6;
  --label-faint: #B0B7C0;

  /* lines */
  --hairline: rgba(46, 58, 60, .11);
  --hairline-strong: rgba(46, 58, 60, .13);
  --soon-border: rgba(46, 58, 60, .18);

  /* buttons */
  --btn-text: #F6F8FE;
  --ghost-bg: #FFFFFF;

  /* founder placeholder weave */
  --ph-a: #EFF2F8;
  --ph-b: #E6EBF4;

  /* modal */
  --modal-bg: #FFFFFF;
  --modal-border: #E6EBF2;
  --modal-divider: #EEF1F6;
  --field-bg: #F6F8FC;
  --field-focus-bg: #FFFFFF;
  --field-placeholder: #A2AAB4;
  --modal-x-bg: #F1F4F9;
  --modal-x-bg-hover: #E6EAF1;
  --modal-x-color: #5A6663;
  --form-note: #9AA3AE;
  --error: #B23A2E;
  --error-bg: rgba(178, 58, 46, .07);
  --error-border: rgba(178, 58, 46, .26);

  --max: 1180px;
  --sans: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

:root[data-theme="dark"] {
  --acc: #A855F7;
  --acc-rgb: 168, 85, 247;
  --acc2: #C9A6FB;
  --link: #BD8FF5;
  --tint: rgba(168, 85, 247, .14);
  --tint-border: rgba(201, 166, 251, .4);

  --bg: #100B16;
  --card: #1B1426;
  --border: rgba(238, 241, 236, .12);
  --grid-line: rgba(236, 239, 231, .030);
  --ribbon-bg: rgba(16, 11, 22, .92);
  --hero-glow: rgba(168, 85, 247, .18);

  --ink: #EEF1EC;
  --body: rgba(238, 241, 236, .78);
  --muted: rgba(238, 241, 236, .64);
  --faint: rgba(238, 241, 236, .50);
  --copy-faint: rgba(238, 241, 236, .40);
  --label-faint: rgba(238, 241, 236, .40);

  --hairline: rgba(238, 241, 236, .10);
  --hairline-strong: rgba(238, 241, 236, .12);
  --soon-border: rgba(238, 241, 236, .20);

  --ghost-bg: rgba(238, 241, 236, .04);

  --ph-a: rgba(238, 241, 236, .03);
  --ph-b: rgba(238, 241, 236, .06);

  --modal-bg: #1B1426;
  --modal-border: rgba(238, 241, 236, .12);
  --modal-divider: rgba(238, 241, 236, .10);
  --field-bg: rgba(238, 241, 236, .05);
  --field-focus-bg: rgba(238, 241, 236, .08);
  --field-placeholder: rgba(238, 241, 236, .40);
  --modal-x-bg: rgba(238, 241, 236, .08);
  --modal-x-bg-hover: rgba(238, 241, 236, .14);
  --modal-x-color: rgba(238, 241, 236, .70);
  --form-note: rgba(238, 241, 236, .45);
  --error: #FF9A8B;
  --error-bg: rgba(255, 120, 100, .10);
  --error-border: rgba(255, 120, 100, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}
a { text-decoration: none; color: inherit; }
img { display: block; }
::selection { background: rgba(120, 140, 200, .35); }

.accent { color: var(--acc); }
.accent.strong { font-weight: 700; }
.accent2 { color: var(--acc2); }
.dark { color: var(--ink); }
.muted { text-transform: none; letter-spacing: 0; color: var(--label-faint); }

/* theme-aware logo mark swap */
.mark-dark { display: none; }
:root[data-theme="dark"] .mark-light { display: none; }
:root[data-theme="dark"] .mark-dark { display: block; }

/* ===== Hero wrap ===== */
.hero-wrap { position: relative; overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ===== Nav ===== */
.nav {
  position: relative; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 26px 40px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.brand-name.sm { font-size: 17px; }
.brand-name .accent { color: var(--link); }
.nav-links { display: flex; gap: 24px; align-items: center; font-family: var(--mono); font-size: 13px; }
.nav-links a { color: var(--muted); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { color: var(--link); }
.nav-links .nav-cta:hover { opacity: .8; }

/* theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--ghost-bg); color: var(--ink);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.theme-toggle:hover { border-color: var(--acc); color: var(--acc); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
/* translateZ(0) isolates the canvas on its own compositor layer so its
   per-frame repaints don't invalidate the grid background or content above it. */
.neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; transform: translateZ(0); }
.hero-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, var(--hero-glow), transparent 62%),
    linear-gradient(180deg, transparent 56%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 3; text-align: center; padding: 10px 40px 130px; max-width: 980px; pointer-events: none; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 24px; }
.hero-title { font-size: clamp(46px, 7.5vw, 92px); font-weight: 900; letter-spacing: -.05em; line-height: .97; margin: 0; color: var(--ink); }
.hero-title .grad {
  background: linear-gradient(100deg, var(--ink), var(--acc));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); max-width: 560px; margin: 28px auto 0; line-height: 1.5; }
.hero-actions { display: flex; gap: 13px; justify-content: center; margin-top: 38px; flex-wrap: wrap; pointer-events: auto; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 15px 28px; border-radius: 999px; white-space: nowrap; transition: transform .12s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--acc); color: var(--btn-text); box-shadow: 0 12px 34px rgba(var(--acc-rgb), .26); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(var(--acc-rgb), .32); }
.btn-ghost { background: var(--ghost-bg); border: 1.5px solid var(--border); color: var(--ink); font-weight: 600; padding: 15px 26px; }
.btn-ghost:hover { border-color: var(--acc); }

/* ===== Stat ribbon ===== */
/* No backdrop-filter: blurring the live canvas behind this bar every frame is
   the single most expensive thing on the hero. A near-opaque fill reads the
   same because the hero veil already fades the canvas to --bg down here. */
.ribbon { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4; border-top: 1px solid var(--border); background: var(--ribbon-bg); }
.ribbon-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 20px 40px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.ribbon-inner .sep { opacity: .4; }
.ribbon-link { text-underline-offset: 3px; transition: color .15s ease; }
.ribbon-link:hover { color: var(--acc); text-decoration: underline; }

/* ===== Editorial sections ===== */
.ed-section { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 54px 40px; }
.ed-section.bordered { border-top: 1px solid var(--hairline-strong); }
.ed-grid { display: grid; grid-template-columns: 0.4fr 1.6fr; gap: 40px; }
.ed-num { font-family: var(--mono); }
.ed-num .num { font-size: 46px; font-weight: 700; color: var(--acc); letter-spacing: -.04em; }
.ed-num .num-label { font-size: 12px; letter-spacing: .2em; color: var(--faint); margin-top: 6px; }
.ed-headline { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.12; margin: 0; max-width: 760px; color: var(--ink); }
.ed-headline.narrow { max-width: 680px; font-size: clamp(24px, 2.8vw, 36px); }

.ed-rows { margin-top: 30px; }
.ed-row { display: grid; grid-template-columns: 0.32fr 1.68fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.ed-row:last-child { border-bottom: 1px solid var(--hairline); }
.ed-key { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--link); }
.ed-val { font-size: 16px; color: var(--body); line-height: 1.55; }

/* ===== Products ===== */
.product { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding: 26px 0; }
.product:first-child { padding-top: 8px; }
.product:last-child { padding-bottom: 8px; }
.product.bordered-bottom { border-bottom: 1px solid var(--hairline); }
.product-head { display: flex; align-items: center; gap: 12px; }
.product-name { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; border-radius: 999px; padding: 3px 9px; }
.tag-live { color: var(--acc); border: 1px solid var(--tint-border); }
.tag-soon { color: var(--faint); border: 1px solid var(--soon-border); }
.product-desc { font-size: 16px; color: var(--body); line-height: 1.55; margin: 12px 0 14px; max-width: 520px; }
.product-link { font-family: var(--mono); font-size: 13px; color: var(--link); }
.product-link:hover { text-decoration: underline; }
.product-link.accent2-link { color: var(--acc2); }
.product-aside { text-align: right; }
.stat-num { font-weight: 900; font-size: 34px; color: var(--acc); letter-spacing: -.03em; }
.stat-label { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.aside-mono { font-family: var(--mono); font-size: 12px; color: var(--acc2); letter-spacing: .08em; max-width: 120px; margin-left: auto; }

/* ===== Founder ===== */
.founder { display: grid; grid-template-columns: 140px 1fr; gap: 30px; align-items: start; }
.founder-photo { width: 140px; height: 140px; aspect-ratio: 1; border-radius: 16px; border: 1px solid var(--border); object-fit: cover; background: var(--card); }
.founder-photo.placeholder { background: repeating-linear-gradient(135deg, var(--ph-a), var(--ph-a) 7px, var(--ph-b) 7px, var(--ph-b) 14px); }
.founder-name { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 4px; color: var(--ink); }
.founder-role { font-size: 14px; color: var(--faint); margin-bottom: 14px; }
.founder-bio { font-size: 17px; color: var(--body); line-height: 1.6; margin: 0; max-width: 620px; }

/* ===== Careers ===== */
.careers-sub { font-size: 16px; color: var(--muted); max-width: 660px; margin: 16px 0 24px; line-height: 1.6; }
.role { border-top: 1px solid var(--hairline); }
.role.bordered-bottom { border-bottom: 1px solid var(--hairline); }
.role-head { cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; padding: 20px 0; transition: opacity .15s ease; }
.role-head:hover { opacity: .82; }
.role-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.role-name { font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.role-pill { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--acc2); border: 1px solid var(--tint-border); border-radius: 999px; padding: 3px 8px; }
.role-desc { font-size: 14px; color: var(--muted); margin-top: 5px; }
.role-meta { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 9px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.role-meta .dot { opacity: .4; }
.role-salary { color: var(--link); }
.role-toggle { display: flex; align-items: center; gap: 7px; color: var(--faint); font-family: var(--mono); font-size: 12px; white-space: nowrap; padding-top: 3px; }
.role-toggle svg { transition: transform .2s ease; }
.role.open .role-toggle svg { transform: rotate(180deg); }
.role-detail { padding: 2px 0 26px; animation: hai-fade .22s ease both; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 760px; margin-bottom: 22px; }
.role-h { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin: 0 0 10px; }
.role-h.spaced { margin-top: 18px; }
.role-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.role-list li { font-size: 14.5px; color: var(--body); line-height: 1.45; padding-left: 16px; position: relative; }
.role-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
.role-apply { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none; background: var(--acc); color: var(--btn-text); font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: 999px; white-space: nowrap; box-shadow: 0 10px 26px rgba(var(--acc-rgb), .3); transition: transform .12s ease, box-shadow .15s ease; }
.role-apply:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(var(--acc-rgb), .36); }
.careers-note { font-family: var(--mono); font-size: 13.5px; color: var(--faint); margin-top: 16px; letter-spacing: .02em; }
.careers-note2 { font-size: 14px; color: var(--faint); margin-top: 14px; }
.careers-note2 a { color: var(--link); font-weight: 600; }

/* ===== Footer ===== */
.footer { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 44px 40px 64px; border-top: 1px solid var(--hairline-strong); display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; }
.footer .brand { margin-bottom: 10px; }
.footer .brand img { height: 28px; }
.footer-meta { font-size: 13px; color: var(--faint); line-height: 1.6; }
.footer-meta a { color: var(--link); }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--copy-faint); text-align: right; }

/* ===== Apply modal ===== */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  overflow: auto; padding: 48px 20px;
  /* A plain dim instead of backdrop-filter: a full-screen blur is re-computed
     on every keystroke/caret blink behind it, which is what made typing lag. */
  background: rgba(8, 5, 14, .66);
  animation: hai-fade .2s ease both;
}
.modal-scrim[hidden] { display: none; }
.modal {
  width: 100%; max-width: 540px; background: var(--modal-bg);
  border: 1px solid var(--modal-border); border-radius: 24px;
  box-shadow: 0 44px 110px rgba(8, 6, 20, .5); overflow: hidden;
  animation: hai-pop .26s cubic-bezier(.2, .8, .25, 1) both;
  /* Own compositor layer so typing repaints stay inside the card. */
  transform: translateZ(0);
}
.modal-head { padding: 30px 32px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--modal-divider); }
.modal-kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); }
.modal-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 9px 0 2px; color: var(--ink); }
.modal-sub { font-size: 13px; color: var(--faint); }
.modal-x { border: none; background: var(--modal-x-bg); color: var(--modal-x-color); cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; flex-shrink: 0; transition: background .15s ease, color .15s ease; }
.modal-x:hover { background: var(--modal-x-bg-hover); color: var(--ink); }

.apply-form { padding: 24px 32px 30px; display: flex; flex-direction: column; gap: 18px; }
.apply-form[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-lab { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 7px; }
.field-lab b { color: var(--acc); font-weight: 700; }
.field {
  display: block; width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field:focus { border-color: var(--acc); background: var(--field-focus-bg); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .15); }
.field::placeholder { color: var(--field-placeholder); }
textarea.field { resize: vertical; min-height: 110px; line-height: 1.5; }

/* file upload */
.file-field { display: flex; align-items: center; gap: 8px; background: var(--field-bg); border: 1px dashed var(--border); border-radius: 12px; padding-right: 6px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.file-field:hover { border-color: var(--acc); }
.file-field:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .15); }
.file-field.has-file { border-style: solid; background: var(--field-focus-bg); }
.file-field.invalid { border-color: var(--error); border-style: solid; }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.file-cta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.file-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--faint); }
.file-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-field.has-file .file-text { color: var(--ink); font-weight: 500; }
.file-clear { display: none; border: none; background: var(--modal-x-bg); color: var(--modal-x-color); cursor: pointer; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; font-size: 13px; line-height: 1; flex-shrink: 0; transition: background .15s ease, color .15s ease; }
.file-field.has-file .file-clear { display: flex; }
.file-clear:hover { background: var(--modal-x-bg-hover); color: var(--ink); }
.field-msg { font-size: 12px; color: var(--error); margin-top: 7px; }
.field-msg[hidden] { display: none; }

.submit {
  cursor: pointer; border: none; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--acc); color: var(--btn-text); font-family: var(--sans); font-weight: 700; font-size: 16px;
  padding: 15px 24px; border-radius: 14px; box-shadow: 0 12px 28px rgba(var(--acc-rgb), .28);
  transition: transform .12s ease, box-shadow .15s ease; text-decoration: none;
}
.submit:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(var(--acc-rgb), .34); }
.submit:disabled { cursor: default; opacity: .9; transform: none; box-shadow: 0 12px 28px rgba(var(--acc-rgb), .2); }
.form-note { font-size: 12.5px; color: var(--form-note); text-align: center; margin: 0; line-height: 1.5; }
.strong-muted { color: var(--muted); font-weight: 600; }

/* honeypot — pulled off-screen, never shown to humans */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* inline error banner (data preserved, Retry below) */
.form-error { font-size: 13.5px; line-height: 1.5; color: var(--error); background: var(--error-bg); border: 1px solid var(--error-border); border-radius: 12px; padding: 11px 14px; }
.form-error[hidden] { display: none; }
.form-error a { color: inherit; font-weight: 700; text-decoration: underline; }

/* submit loading state */
.submit-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(246, 248, 254, .35); border-top-color: var(--btn-text); animation: hai-spin .7s linear infinite; display: none; }
.submit.is-loading .submit-spinner { display: inline-block; }
.submit.is-loading .submit-arrow { display: none; }
@keyframes hai-spin { to { transform: rotate(360deg); } }

.apply-done { padding: 34px 32px 32px; text-align: center; }
.apply-done[hidden] { display: none; }
.done-check { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 18px; background: rgba(var(--acc-rgb), .12); color: var(--acc); display: flex; align-items: center; justify-content: center; }
.done-title { font-size: 23px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; color: var(--ink); }
.done-text { font-size: 15.5px; color: var(--muted); line-height: 1.55; margin: 0 auto 24px; max-width: 380px; }
.apply-done .submit { max-width: 340px; margin: 0 auto; }
.done-back { margin-top: 14px; }
.done-back button { border: none; background: none; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--faint); }

@keyframes hai-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hai-pop { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav { padding: 20px 24px; }
  .nav-links { gap: 16px; font-size: 12px; }
  .ed-section { padding: 44px 24px; }
  .ed-grid { grid-template-columns: 1fr; gap: 22px; }
  .ed-num { display: flex; align-items: baseline; gap: 14px; }
  .ed-num .num-label { margin-top: 0; }
  .ed-row { grid-template-columns: 1fr; gap: 8px; }
  .product { grid-template-columns: 1fr; }
  .product-aside { text-align: left; }
  .aside-mono { margin-left: 0; }
  .founder { grid-template-columns: 1fr; }
  .role-head { grid-template-columns: 1fr auto; }
  .role-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-content { padding: 10px 24px 140px; }
  .ribbon-inner { padding: 16px 24px; font-size: 12px; }
  .footer { padding: 40px 24px 56px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .ribbon-inner .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .submit-spinner { display: none !important; }   /* "Sending…" label carries the state */
}
