/* ============================================================
   Neurolink, Inc. — rebuilt site
   Palette from the company's own pages: navy #002e6c,
   orange #ff8a00, light grey #ededed, body #413b34.
   Headings: a slab serif in place of the original's Museo Slab.
   ============================================================ */

@font-face {
  font-family: 'Roboto Slab';
  src: url('../font/RobotoSlab.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../font/OpenSans.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #002e6c;
  --navy-2: #013f92;
  --navy-deep: #001d45;
  --orange: #a85400;
  --orange-2: #ff8a00;
  --orange-pale: #fff3e3;
  --ink: #14213d;
  --text: #413b34;
  --soft: #6d7078;
  --line: #e3e5e8;
  --line-2: #cfd3d9;
  --paper: #ffffff;
  --paper-2: #f6f7f8;
  --paper-3: #ededed;
  --wrap: 1120px;
  --r: 6px;
  --r-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; height: auto; max-width: 100%; }
h1, h2, h3, h4 { font-family: 'Roboto Slab', Georgia, serif; color: var(--navy); margin: 0 0 .6rem; line-height: 1.18; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.14rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 780px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.lead { font-size: 1.1rem; max-width: 64ch; }
.small { font-size: .9rem; }
.muted { color: var(--soft); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.8rem; } .mt-4 { margin-top: 2.6rem; }
.mb-0 { margin-bottom: 0; }

.eyebrow {
  display: inline-block; font-family: 'Open Sans', sans-serif; font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin: 0 0 .7rem;
}
.section--navy .eyebrow { color: var(--orange-2); }
.rule { display: block; width: 48px; height: 3px; background: var(--orange); margin-bottom: 1rem; }
.center .rule { margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--navy); color: #fff; padding: .8rem 1.1rem; }
.skip:focus { left: 0; }

/* ---------------------------------------------------------- header */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, .74); font-size: .78rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: space-between; align-items: center; min-height: 34px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--orange-2); }

.site-header { position: sticky; top: 0; z-index: 90; background: var(--navy); border-bottom: 3px solid var(--orange-2); }
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(0, 20, 50, .25); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 44px; width: auto; background: #fff; padding: 6px 9px; border-radius: 4px; }

.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav > li { list-style: none; }
.nav a { display: inline-block; padding: .55rem .75rem; font-size: .87rem; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .85); text-transform: uppercase; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--orange-2); }
.nav-cta { margin-left: .5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: 'Open Sans', sans-serif; font-size: .9rem; font-weight: 700;
  padding: .78rem 1.3rem; border: 2px solid transparent; border-radius: var(--r);
  cursor: pointer; text-align: center; transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn--orange { background: var(--orange-2); color: #241203; }
.btn--orange:hover { background: #ffa333; color: #241203; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--paper-2); }
.btn--on-dark { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--on-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--sm { padding: .5rem .9rem; font-size: .8rem; }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto; padding: 0; background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; cursor: pointer; }
.nav-toggle span { display: block; width: 17px; height: 2px; background: #fff; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 17px; height: 2px; background: #fff; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.drawer { position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(320px, 88vw); background: var(--navy); transform: translateX(102%); transition: transform .26s ease; display: flex; flex-direction: column; padding: 1.1rem 1.3rem 1.6rem; overflow-y: auto; }
.drawer[data-open="true"], .drawer.is-open { transform: translateX(0); }
body.no-scroll { overflow: hidden; }
.drawer-close { align-self: flex-end; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: #fff; cursor: pointer; padding: .2rem .5rem; }
.drawer ul { list-style: none; margin: 1rem 0 1.4rem; padding: 0; }
.drawer a { display: block; padding: .8rem .2rem; font-weight: 600; color: rgba(255,255,255,.86); border-bottom: 1px solid rgba(255,255,255,.14); text-transform: uppercase; font-size: .88rem; letter-spacing: .03em; }
.drawer a[aria-current="page"] { color: #fff; }
.drawer .btn { width: 100%; }
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(0, 20, 50, .55); opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef2f7, #fff 78%); padding: clamp(40px, 5.6vw, 76px) 0 clamp(40px, 5vw, 64px); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 1rem; color: var(--navy); }
.hero h1 b { color: var(--orange); font-weight: inherit; }
.hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-figure { position: relative; justify-self: center; }
.hero-figure img { width: min(340px, 78vw); border-radius: var(--r-lg); box-shadow: 0 22px 50px rgba(0, 30, 70, .18); }
.hero-figure::before { content: ''; position: absolute; inset: -22px -22px auto auto; width: 130px; height: 130px; border-radius: 50%; background: var(--orange-pale); z-index: -1; }

/* ---------------------------------------------------------- sections */
.section { padding: clamp(44px, 6vw, 82px) 0; }
.section--paper { background: var(--paper); }
.section--soft { background: var(--paper-2); }
.section--grey { background: var(--paper-3); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: rgba(255, 255, 255, .88); }
.section--navy .eyebrow { color: var(--orange-2); }
.section-head { max-width: 740px; margin-bottom: clamp(24px, 3.2vw, 40px); }
.section-head.center { margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.split--wide { grid-template-columns: 1.06fr .94fr; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 26px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 24px); }

.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange-2); border-radius: var(--r); padding: clamp(18px, 2.2vw, 26px); }
.card h3 { margin-bottom: .35rem; }
.card p { font-size: .95rem; margin-bottom: 0; }
.card--lift { transition: transform .2s ease, box-shadow .2s ease; }
.card--lift:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 30, 70, .1); }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.figure figcaption { font-size: .8rem; color: var(--soft); margin-top: .6rem; }

.quote { margin: 0; padding: clamp(20px, 3vw, 34px); background: var(--orange-pale); border-left: 5px solid var(--orange-2); border-radius: 0 var(--r) var(--r) 0; }
.quote blockquote { margin: 0; font-family: 'Roboto Slab', Georgia, serif; font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.5; color: var(--navy); }
.quote figcaption { margin-top: .8rem; font-size: .82rem; color: var(--soft); }

.callout { border: 1px solid var(--line); background: var(--paper-2); border-left: 5px solid var(--navy); border-radius: 0 var(--r) var(--r) 0; padding: clamp(16px, 2.2vw, 24px); }
.callout h3, .callout h4 { margin-bottom: .3rem; }
.callout p { font-size: .95rem; }
.notice { border: 1px solid var(--line-2); background: #fff; border-radius: var(--r); padding: 1.05rem 1.2rem; font-size: .93rem; }
.notice--warn { border-color: #f0c98a; background: #fff8ec; }
.notice h4 { margin-bottom: .35rem; color: #8a4b00; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.55rem; margin-bottom: .55rem; font-size: .96rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

.specs { list-style: none; margin: 0; padding: 0; }
.specs li { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs li:first-child { border-top: 1px solid var(--line); }
.specs .k { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding-top: .2rem; }

.person { display: grid; grid-template-columns: 150px 1fr; gap: 1.4rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; }
.person img { width: 150px; height: 200px; object-fit: cover; border-radius: 4px; background: var(--paper-3); }
.person h3 { margin-bottom: .1rem; }
.person .role { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: .5rem; }
.person p { font-size: .92rem; color: var(--text); }
.person .initials { width: 150px; height: 200px; display: flex; align-items: center; justify-content: center; background: var(--paper-3); border-radius: 4px; font-family: 'Roboto Slab', Georgia, serif; font-size: 2.4rem; color: var(--navy); }

/* video */
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 1px solid rgba(255,255,255,.25); cursor: pointer; background: #001d45; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.3)); }
.video-facade .video-play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.video-facade .video-play svg { width: 20px; height: 20px; margin-left: 3px; }
.video-facade .label { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.video-embed video { width: 100%; height: 100%; display: block; }
.figure-note { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: .8rem; text-align: center; }

/* form */
.form { display: grid; gap: .95rem; }
.field { display: grid; gap: .3rem; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; color: var(--ink); padding: .68rem .8rem;
  border: 1.5px solid var(--line-2); border-radius: 4px; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 46, 108, .12); }
.field textarea { min-height: 110px; resize: vertical; }
.field .err { font-size: .78rem; color: #a3231b; min-height: 1em; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #d0918a; background: #fffafa; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.form-status { font-size: .92rem; padding: .85rem 1rem; border-radius: 4px; background: var(--orange-pale); color: var(--ink); }
.form-status.bad { background: #fdecea; color: #8b231c; }
.form-status.ok { background: #eaf5ea; color: #1f5a22; }

.cta-band { background: var(--navy); color: rgba(255, 255, 255, .88); padding: clamp(42px, 5.5vw, 72px) 0; }
.cta-band h2 { color: #fff; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .62); padding: clamp(36px, 5vw, 56px) 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: clamp(20px, 3vw, 38px); padding-bottom: 1.8rem; }
.site-footer h4 { color: #fff; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; font-family: 'Open Sans', sans-serif; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.site-footer li + li { margin-top: .4rem; }
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: var(--orange-2); }
.footer-brand img { height: 40px; width: auto; background: #fff; padding: 6px 9px; border-radius: 4px; margin-bottom: .8rem; }
.footer-brand p { font-size: .87rem; max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; justify-content: space-between; font-size: .78rem; color: rgba(255, 255, 255, .48); }
.footer-bottom .disc { max-width: 64ch; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 42px; height: 42px; border-radius: 4px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(0, 20, 50, .12); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.to-top[data-show="true"] { opacity: 1; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { width: min(260px, 62vw); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 110px 1fr; }
  .person img, .person .initials { width: 110px; height: 147px; }
}
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .specs li { grid-template-columns: 130px 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .specs li { grid-template-columns: 1fr; gap: .2rem; }
  .person { grid-template-columns: 1fr; }
  .person img, .person .initials { width: 110px; height: 147px; }
  .hero { padding-top: 28px; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .topbar, .drawer, .scrim, .to-top { display: none !important; }
  body { color: #000; background: #fff; }
  .section--navy, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  h1, h2, h3, h4 { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}
