/* Hengtai Raytech — sitewide styles */

/* Self-hosted fonts (SIL Open Font License), Latin subset */
@font-face { font-family: 'Stack Sans Notch'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/stack-sans-notch-latin.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/outfit-latin.woff2') format('woff2'); }

:root {
  --ink: #051230;          /* deep navy */
  --signal: #0368c8;       /* Hengtai brand blue */
  --on-signal: #ffffff;    /* text on brand blue */
  --accent: #4ea3f0;       /* blue for text and lines on navy */
  --signal-soft: #b7cce4;  /* pale blue panels */
  --blush: #eef4fb;        /* off-white page */
  --line: var(--ink);
  --frame: 1200px;
  --gutter: 40px;
  --head: 'Stack Sans Notch', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--blush);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: -0.045em; line-height: .92; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Frame: centred column with rule lines + hatched gutters ---------- */
.band { position: relative; }
.band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 6px);
  opacity: .14;
  pointer-events: none;
}
.frame {
  position: relative;
  max-width: var(--frame);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.pad { padding: 0 var(--gutter); }

.band--signal { background: var(--signal); color: var(--on-signal); }
.band--signal .frame { background: var(--signal); }
.band--soft { background: var(--signal-soft); color: var(--ink); }
.band--soft .frame { background: var(--signal-soft); }
.band--blush { background: var(--blush); color: var(--ink); }
.band--blush .frame { background: var(--blush); }
.band--ink { background: var(--ink); color: var(--accent); --line: var(--accent); }
.band--ink::before { opacity: 0; }
.band--ink .frame { background: var(--ink); border-color: rgba(78, 163, 240, .35); }
.band--ink .lede, .band--ink .eyebrow { color: var(--blush); }

/* ---------- Type ---------- */
.eyebrow { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 18px; }
.display { font-size: clamp(48px, 7.4vw, 104px); }
.title { font-size: clamp(38px, 4.6vw, 64px); }
.title--sm { font-size: clamp(30px, 3.4vw, 46px); }
.lede { font-size: 17px; font-weight: 500; max-width: 470px; margin-top: 20px; }
.band--ink .title, .band--ink .display { color: var(--blush); }

.head-block { padding-top: 120px; padding-bottom: 64px; max-width: 760px; }
.head-block--center { margin: 0 auto; text-align: center; }
.head-block--center .lede { margin-left: auto; margin-right: auto; }

/* word reveal */
.reveal .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal .w > span { display: inline-block; transform: translateY(115%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.reveal.is-in .w > span { transform: none; }
.fade { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal .w > span, .fade { transform: none !important; opacity: 1 !important; transition: none !important; }
  .marquee__track { animation: none !important; }
}

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 26px;
  font-size: 15px; font-weight: 500;
  background: var(--ink); color: var(--blush);
  border: 1px solid var(--ink);
  cursor: pointer;
}
.btn span { position: relative; z-index: 1; transition: color .35s var(--ease); }
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::after { transform: none; }
.btn:hover span { color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line::after { background: var(--ink); }
.btn--line:hover span { color: var(--blush); }
.btn--signal { background: var(--signal); color: var(--ink); border-color: var(--accent); }
.btn--signal::after { background: var(--blush); }
.btn--signal:hover span { color: var(--ink); }
.btn--ghost-signal { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost-signal::after { background: var(--signal); }
.btn--ghost-signal:hover span { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--signal);
  color: var(--on-signal);
  border-bottom: 1px solid var(--ink);
  transition: background .3s, color .3s;
}
.site-header .frame { display: flex; align-items: stretch; height: 52px; background: transparent; }
.brand { display: flex; align-items: center; gap: 10px; padding-left: 16px; font-family: var(--head); font-weight: 600; font-size: 17px; letter-spacing: -0.03em; }
.brand__mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 10px; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 30px; margin: 0 auto; font-size: 15px; font-weight: 500; }
.nav a { position: relative; opacity: .78; transition: opacity .2s; }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; }
.header-cta { display: flex; align-items: center; padding: 0 26px; background: var(--ink); color: var(--blush); font-weight: 500; font-size: 15px; transition: background .3s, color .3s; }
.header-cta:hover { background: var(--blush); color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; border-left: 1px solid var(--ink); padding: 0 20px; font-weight: 600; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; }
.hero .frame { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding-top: 52px; overflow: hidden; }
.hero__body { position: relative; z-index: 2; padding-bottom: 72px; max-width: 900px; }
.hero__body .lede { max-width: 520px; }
.hero__visual { position: absolute; right: -120px; top: 14%; width: min(64vw, 760px); aspect-ratio: 1; z-index: 1; pointer-events: none; }
.hero--short { min-height: 78vh; }
.hero--short .hero__visual { width: min(54vw, 620px); top: 10%; }
.hero__note { position: absolute; z-index: 2; right: var(--gutter); top: 96px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-align: right; line-height: 1.5; }

.globe { width: 100%; height: 100%; }
.globe .spin { transform-origin: 50% 50%; animation: spin 90s linear infinite; }
.globe .orbit { transform-origin: 50% 50%; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee strip ---------- */
.strip { background: var(--ink); color: var(--accent); border-top: 1px solid var(--ink); }
.strip .frame { display: flex; align-items: center; height: 64px; border-color: transparent; background: var(--ink); overflow: hidden; }
.strip__label { flex: none; padding: 0 var(--gutter); font-weight: 500; font-size: 15px; white-space: nowrap; }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__item { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; white-space: nowrap; color: var(--blush); }
.marquee__item::before { content: ''; width: 8px; height: 8px; background: var(--signal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Numbered cards (header strip + body) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 40px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; background: var(--ink); color: var(--accent); min-height: 380px; border: 1px solid var(--ink); }
.card__bar { display: flex; height: 60px; background: var(--signal-soft); color: var(--ink); border-bottom: 1px solid var(--ink); font-weight: 500; font-size: 17px; }
.card__bar b { display: grid; place-items: center; width: 64px; font-weight: 500; border-right: 1px solid var(--ink); }
.card__bar span { display: flex; align-items: center; padding: 0 20px; }
.card__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 20px 26px; gap: 40px; }
.card h3 { font-size: 28px; letter-spacing: -0.05em; }
.card p { color: var(--signal-soft); font-size: 16px; font-weight: 500; }
.card:hover .card__bar { background: var(--blush); }
.card__bar { transition: background .3s; }
.after-cards { padding-bottom: 120px; }

/* ---------- Sticky step stack ---------- */
.steps { border-top: 1px solid rgba(78, 163, 240, .35); }
.step { position: sticky; top: 52px; background: var(--ink); border-bottom: 1px solid rgba(78, 163, 240, .35); }
.step__art { height: 300px; position: relative; overflow: hidden; background: #020a1c; border-bottom: 1px solid rgba(78, 163, 240, .35); }
.step__art::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(78, 163, 240, .3) 1.1px, transparent 1.4px);
  background-size: 6px 6px;
}
.step__art svg { position: absolute; left: 0; bottom: -60px; width: 100%; height: 360px; }
.step__row { display: grid; grid-template-columns: 1fr 1fr; min-height: 104px; }
.step__name { display: flex; align-items: center; gap: 20px; padding: 0; }
.step__name b { display: grid; place-items: center; width: 64px; height: 64px; margin-left: 0; border: 1px solid rgba(78, 163, 240, .35); border-left: 0; font-weight: 500; font-size: 20px; }
.step__name h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.05em; }
.step__desc { background: var(--signal-soft); color: var(--ink); padding: 18px 20px; font-weight: 500; font-size: 16px; display: flex; align-items: center; }
.steps-gap { height: 20px; background: var(--ink); border-bottom: 1px solid rgba(78, 163, 240, .35); }

/* ---------- Split: halftone image + grid of tiles ---------- */
.split { display: grid; grid-template-columns: 1fr 2fr; border-top: 1px solid rgba(78, 163, 240, .35); border-bottom: 1px solid rgba(78, 163, 240, .35); }
.split__media { position: relative; min-height: 420px; overflow: hidden; background: var(--signal); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.1); mix-blend-mode: multiply; }
.split__media::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--ink) 1px, transparent 1.3px); background-size: 4px 4px; opacity: .35; mix-blend-mode: multiply; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-content: space-between; }
.tile { margin-bottom: 0; }
.tile__head { display: flex; align-items: center; gap: 12px; height: 46px; padding-left: 12px; border-bottom: 1px solid rgba(78, 163, 240, .35); border-top: 1px solid rgba(78, 163, 240, .35); }
.tile:nth-child(-n+2) .tile__head { border-top: 0; }
.tile__icon { position: relative; width: 24px; height: 24px; background: var(--signal); }
.tile__icon::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--ink); }
.tile__head h3 { font-size: 22px; letter-spacing: -0.05em; color: var(--accent); }
.tile__body { background: var(--signal-soft); color: var(--ink); padding: 16px 20px 22px; font-weight: 500; }
.tile__value { display: block; font-family: var(--head); font-weight: 600; font-size: 48px; letter-spacing: -0.05em; line-height: 1; margin-bottom: 8px; }

/* ---------- Feature panels (sticky, stacked) ---------- */
.feature { position: sticky; top: 52px; min-height: calc(100vh - 52px); }
.feature .frame { min-height: calc(100vh - 52px); display: grid; grid-template-rows: auto 1fr auto; }
.feature__top { padding: 56px var(--gutter) 0; }
.feature__mid { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; padding: 40px var(--gutter); gap: 40px; margin-top: 40px; }
.feature__mid h2 { font-size: clamp(42px, 5.6vw, 84px); }
.feature__mid p { font-size: 17px; font-weight: 500; max-width: 440px; }
.feature__bottom { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; padding: 32px var(--gutter) 48px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; align-self: start; }
.chip { border: 1px solid var(--ink); padding: 6px 12px; font-size: 14px; font-weight: 500; }
.feature__note { font-weight: 500; font-size: 15px; max-width: 420px; }
.feature--a { z-index: 1; } .feature--b { z-index: 2; } .feature--c { z-index: 3; }

/* ---------- Spec table ---------- */
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.spec div { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 16px 18px 20px; }
.spec dt { font-size: 13px; font-weight: 500; opacity: .8; }
.spec dd { margin: 6px 0 0; font-family: var(--head); font-weight: 600; font-size: 26px; letter-spacing: -0.04em; line-height: 1; }
.band--ink .spec, .band--ink .spec div { border-color: rgba(78, 163, 240, .35); }
.band--ink .spec dd { color: var(--blush); }

/* ---------- System rows (technology page) ---------- */
.system { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.system__copy { padding: 64px var(--gutter); border-right: 1px solid var(--line); }
.system__copy p + p { margin-top: 14px; }
.system__copy .lede { margin-bottom: 16px; }
.system__aside { display: flex; flex-direction: column; justify-content: space-between; }
.system__art { position: relative; flex: 1; min-height: 280px; overflow: hidden; background: #020a1c; }
.system__art::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(78, 163, 240, .3) 1.1px, transparent 1.4px); background-size: 6px 6px; }
.system__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.system__aside .spec { border-left: 0; }

.bots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 20px; }
.bot { border: 1px solid var(--ink); background: var(--blush); }
.bot__bar { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 20px; background: var(--ink); color: var(--accent); }
.bot__bar h3 { font-size: 32px; color: var(--blush); }
.bot__bar span { font-weight: 500; }
.bot p { padding: 22px 20px 28px; font-weight: 500; font-size: 17px; }

/* ---------- List rows (applications / process) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 90px 1fr 1.2fr; align-items: center; gap: 24px; padding: 26px var(--gutter); border-bottom: 1px solid var(--line); transition: background .3s, color .3s; }
.row b { font-weight: 500; font-size: 15px; }
.row h3 { font-size: clamp(24px, 2.6vw, 36px); }
.row p { font-weight: 500; }
.row:hover { background: var(--ink); color: var(--accent); }
.row:hover p { color: var(--blush); }

/* ---------- Statement ---------- */
.statement { padding: 120px var(--gutter); }
.statement p.big { font-family: var(--head); font-weight: 600; font-size: clamp(30px, 3.8vw, 54px); letter-spacing: -0.045em; line-height: 1; max-width: 1000px; }
.statement .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; max-width: 900px; font-weight: 500; font-size: 17px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.faq__intro { display: flex; flex-direction: column; justify-content: flex-end; padding: 40px var(--gutter) 0; }
.faq__intro .btns { margin-bottom: 0; }
.faq__list { background: var(--ink); color: var(--accent); }
.qa { border-bottom: 1px solid rgba(78, 163, 240, .35); }
.qa:last-child { border-bottom: 0; }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px; cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 22px; letter-spacing: -0.045em; line-height: 1.05; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; position: relative; width: 22px; height: 22px; background: var(--signal); }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 5px; right: 5px; top: 10px; height: 2px; background: var(--on-signal); transition: transform .3s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa__a { margin: 0 20px 20px; padding: 16px 18px; background: var(--signal-soft); color: var(--ink); font-weight: 500; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; border-top: 1px solid var(--line); }
.contact__info { padding: 64px var(--gutter); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.contact__info dt { font-size: 14px; font-weight: 500; opacity: .75; }
.contact__info dd { margin: 4px 0 0; font-family: var(--head); font-weight: 600; font-size: 24px; letter-spacing: -0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form { background: var(--ink); color: var(--accent); padding: 40px; display: grid; gap: 18px; }
.form__bar { display: flex; justify-content: space-between; font-weight: 500; color: var(--blush); padding-bottom: 14px; border-bottom: 1px solid rgba(78, 163, 240, .35); }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px;
  background: transparent; color: var(--blush);
  border: 1px solid rgba(78, 163, 240, .5); border-radius: 0;
  outline: none; transition: border-color .2s, background .2s;
}
.form select option { color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: rgba(238, 244, 251, .45); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); background: rgba(78, 163, 240, .08); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Final CTA ---------- */
.cta .frame { min-height: 88vh; display: flex; flex-direction: column; justify-content: space-between; }
.cta .head-block { padding-top: 160px; }
.cta__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.cta__note { background: var(--ink); color: var(--accent); padding: 16px 24px; max-width: 520px; font-weight: 500; }
.cta__bottom .btns { margin: 0; gap: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--accent); }
.footer .frame { border-color: rgba(78, 163, 240, .35); background: var(--ink); }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; padding: 72px var(--gutter) 56px; }
.footer__grid .footer__label { font-family: var(--body); font-size: 14px; letter-spacing: 0; font-weight: 500; color: var(--blush); opacity: .7; margin-bottom: 16px; line-height: 1.2; }
.footer__grid a { display: block; font-weight: 500; margin-bottom: 10px; transition: color .2s; }
.footer__grid a:hover { color: var(--blush); }
.footer__tag { max-width: 300px; font-weight: 500; color: var(--blush); margin-top: 14px; }
.footer__word { font-family: var(--head); font-weight: 600; font-size: clamp(64px, 14.5vw, 210px); letter-spacing: -0.065em; line-height: .9; padding: 0 var(--gutter); color: var(--accent); white-space: nowrap; overflow: hidden; }
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px var(--gutter); border-top: 1px solid rgba(78, 163, 240, .35); font-size: 14px; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .frame { margin: 0 20px; }
}
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 52px; left: 0; right: 0; margin: 0;
    background: var(--ink); color: var(--accent);
  }
  .site-header.is-open .nav a { width: 100%; padding: 18px 24px; border-bottom: 1px solid rgba(78, 163, 240, .35); font-size: 22px; font-family: var(--head); letter-spacing: -0.04em; opacity: 1; }
  .site-header.is-open .nav a.is-active::after { display: none; }
  .cards, .cards--2, .bots { grid-template-columns: 1fr; }
  .card { min-height: 280px; }
  .split, .system, .contact, .faq { grid-template-columns: 1fr; }
  .split__media { min-height: 260px; }
  .system__copy, .contact__info { border-right: 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile:nth-child(2) .tile__head { border-top: 1px solid rgba(78, 163, 240, .35); }
  .feature__mid, .feature__bottom { grid-template-columns: 1fr; gap: 24px; }
  .feature { position: relative; top: 0; min-height: 0; }
  .feature .frame { min-height: 0; }
  .step__row { grid-template-columns: 1fr; }
  .step__art { height: 200px; }
  .step__art svg { height: 260px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .statement .cols { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .faq__intro { padding-bottom: 40px; }
  .hero__visual { right: -30%; top: 12%; width: 110vw; opacity: .75; }
  .hero__note { display: none; }
  .head-block { padding-top: 88px; }
}
@media (max-width: 600px) {
  .frame { margin: 0; border-left: 0; border-right: 0; }
  .strip__label { display: none; }
  .form { padding: 24px; }
  .form .two { grid-template-columns: 1fr; }
  .cta__bottom .btns { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand { padding-left: 16px; }
}

/* Header tone follows the section beneath it */
.site-header[data-tone="ink"] { background: var(--ink); color: var(--accent); border-color: rgba(78, 163, 240, .35); }
.site-header[data-tone="ink"] .header-cta { background: var(--signal); color: var(--on-signal); }
.site-header[data-tone="ink"] .brand__mark { background: var(--signal); color: var(--on-signal); }
.site-header[data-tone="ink"] .menu-toggle { border-color: rgba(78, 163, 240, .35); }
.site-header[data-tone="blush"] { background: var(--blush); color: var(--ink); }
.band--ink .rows, .band--ink .row { border-color: rgba(78, 163, 240, .35); }
.band--ink .row p { color: var(--blush); }
.band--ink .row:hover { background: var(--signal); color: var(--on-signal); }
.band--ink .row:hover p { color: var(--on-signal); }
.band--ink .system__copy p:not(.eyebrow):not(.lede) { color: var(--blush); }
.band--ink .system__copy { border-color: rgba(78, 163, 240, .35); }
.band--ink .system { border-color: rgba(78, 163, 240, .35); }
.footer__grid a.brand { display: flex; }
.contact__info dd { overflow-wrap: anywhere; }

/* ---------- Integration groups ---------- */
.stack { display: grid; grid-template-columns: 1fr 1.1fr; border-top: 1px solid rgba(78, 163, 240, .35); border-bottom: 1px solid rgba(78, 163, 240, .35); }
.stack__intro { padding-top: 64px; padding-bottom: 64px; border-right: 1px solid rgba(78, 163, 240, .35); }
.stack__groups { display: grid; grid-template-columns: 1fr 1fr; }
.group { display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; overflow: hidden; border-bottom: 1px solid rgba(78, 163, 240, .35); }
.group:nth-child(odd) { border-right: 1px solid rgba(78, 163, 240, .35); }
.group:nth-last-child(-n+2) { border-bottom: 0; }
.group__head { display: flex; align-items: center; gap: 12px; height: 46px; padding-right: 16px; width: max-content; background: var(--signal-soft); color: var(--ink); font-weight: 500; border-right: 1px solid var(--ink); }
.group__head i { width: 46px; height: 46px; display: grid; place-items: center; background: var(--signal); border-right: 1px solid var(--ink); }
.group__head i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.group__items { display: flex; flex-wrap: wrap; border-top: 1px solid rgba(78, 163, 240, .35); }
.group__items { margin-bottom: -1px; }
.group__items span { flex: 1 1 auto; text-align: center; white-space: nowrap; padding: 12px 14px; border-right: 1px solid rgba(78, 163, 240, .35); border-bottom: 1px solid rgba(78, 163, 240, .35); color: var(--blush); font-weight: 500; font-size: 14px; transition: background .25s, color .25s; }
.group__items span:hover { background: var(--signal); color: var(--on-signal); }

/* ---------- Accessibility ---------- */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--blush); font-weight: 500; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.band--ink :focus-visible, .footer :focus-visible, .form :focus-visible, .faq__list :focus-visible { outline-color: var(--blush); }
.form select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(-45deg, transparent 50%, var(--accent) 50%); background-position: right 22px center, right 16px center; background-size: 6px 6px; background-repeat: no-repeat; }

@media (max-width: 960px) {
  .stack { grid-template-columns: 1fr; }
  .stack__intro { border-right: 0; border-bottom: 1px solid rgba(78, 163, 240, .35); }
}
@media (max-width: 600px) {
  .stack__groups { grid-template-columns: 1fr; }
  .group { min-height: 150px; border-right: 0 !important; border-bottom: 1px solid rgba(78, 163, 240, .35) !important; }
  .group:last-child { border-bottom: 0 !important; }
}

/* ---------- Brand blue surfaces ---------- */
.band--signal .btn--line { color: var(--on-signal); border-color: var(--on-signal); }
.band--signal .btn--line::after { background: var(--on-signal); }
.band--signal .btn--line:hover span { color: var(--ink); }
.band--signal .chip { border-color: rgba(255, 255, 255, .6); }
.band--signal .faq { border-color: rgba(5, 18, 48, .5); }
.band--signal :focus-visible, .site-header :focus-visible { outline-color: var(--on-signal); }
.site-header[data-tone="blush"] :focus-visible { outline-color: var(--ink); }
::selection { background: var(--signal); color: var(--on-signal); }

/* ---------- Logo ---------- */
.brand__logo { height: 44px; width: auto; }
.brand__logo--blue { display: none; }
.site-header[data-tone="blush"] .brand__logo--white { display: none; }
.site-header[data-tone="blush"] .brand__logo--blue { display: block; }
.footer__grid a.brand--footer { display: inline-block; padding-left: 0; margin-bottom: 0; }
.brand--footer .brand__logo { height: 84px; }

/* Footer wordmark spans the frame */
.footer__word { font-size: clamp(40px, 8.6vw, 124px); letter-spacing: -0.06em; line-height: 1.05; padding-top: 8px; padding-bottom: 4px; }
@media (max-width: 600px) {
  .footer__word { white-space: normal; font-size: 21vw; line-height: .86; }
}

/* ---------- Home hero planet ---------- */
.hero { position: relative; overflow: hidden; }
.planet {
  --size: min(128vh, 1250px);
  position: absolute; z-index: 1; pointer-events: none;
  width: var(--size); aspect-ratio: 1;
  left: calc(100% - var(--size) * .64);
  top: 15vh;
}
.planet__earth { position: absolute; inset: 5%; width: 90%; height: 90%; image-rendering: pixelated; }
.planet__orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Satellite starts at 270° (9 o'clock, the visible side of the Earth) and orbits clockwise */
.planet .orbit { transform-origin: 50% 50%; transform: rotate(270deg); animation: orbit-from-270 40s linear infinite; }
@keyframes orbit-from-270 { from { transform: rotate(270deg); } to { transform: rotate(630deg); } }
@media (prefers-reduced-motion: reduce) { .planet .orbit { animation: none; } }
@media (max-width: 960px) {
  .planet { --size: 130vw; left: calc(100% - var(--size) * .62); top: 70px; opacity: .85; }
}

/* ---------- Photo panels (mission steps, systems) ---------- */
figure.step__art, figure.system__art { margin: 0; }
.step__art--photo img, .system__art--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.step__art--photo::before, .system__art--photo::before { z-index: 1; opacity: .55; }
.step:hover .step__art--photo img, .system:hover .system__art--photo img { transform: scale(1); }
.credit { position: absolute; z-index: 2; right: 10px; bottom: 8px; max-width: 70%; padding: 3px 8px; background: rgba(5, 18, 48, .7); color: var(--blush); font-size: 11px; font-weight: 500; line-height: 1.3; text-align: right; }
@media (prefers-reduced-motion: reduce) { .step__art--photo img, .system__art--photo img { transform: none; transition: none; } }

/* ---------- Robotics photos ---------- */
.fleet { position: relative; margin: 0 0 20px; height: 360px; overflow: hidden; border: 1px solid var(--ink); background: var(--ink); }
.fleet img { width: 100%; height: 100%; object-fit: cover; }
.fleet::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(78, 163, 240, .3) 1.1px, transparent 1.4px); background-size: 6px 6px; opacity: .55; pointer-events: none; }
.bot__media { position: relative; display: grid; place-items: center; height: 340px; padding: 24px; border-bottom: 1px solid var(--ink); background: var(--blush); overflow: hidden; }
.bot__media::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(5, 18, 48, .14) 1px, transparent 1.3px); background-size: 6px 6px; }
.bot__media img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; filter: drop-shadow(0 18px 18px rgba(5, 18, 48, .25)); transition: transform .8s var(--ease); }
.bot:hover .bot__media img { transform: translateY(-6px); }
@media (max-width: 600px) {
  .fleet { height: 220px; }
  .bot__media { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .bot:hover .bot__media img { transform: none; } }

/* ---------- About hero: satellite photo ---------- */
.hero-photo { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 72%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(5, 18, 48, .35) 1px, transparent 1.3px); background-size: 4px 4px; }
.hero--photo .frame { background: transparent; }
@media (max-width: 960px) {
  .hero-photo { left: 0; width: auto; bottom: 30%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hero-photo img { object-position: 50% 40%; }
}

/* ---------- Contact hero: radar, large and fully visible on phones ---------- */
@media (max-width: 960px) {
  .hero--radar .frame { justify-content: flex-start; }
  .hero--radar .hero__visual { position: relative; right: auto; top: auto; width: min(100%, 520px); margin: 40px auto 8px; opacity: 1; }
  .hero--radar .hero__body { padding-bottom: 56px; }
}

/* ---------- Technology hero: MiniSAR flight video ---------- */
.hero-video { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--ink) url('../video/minisar-flight-poster.jpg') center / cover no-repeat; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.hero-video::after { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(5, 18, 48, .3) 1px, transparent 1.3px),
    linear-gradient(90deg, rgba(3, 104, 200, .94) 0%, rgba(3, 104, 200, .72) 34%, rgba(3, 104, 200, 0) 68%);
  background-size: 4px 4px, auto; }
.hero--video .frame { background: transparent; }
.video-toggle { position: absolute; z-index: 3; right: var(--gutter); bottom: 32px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  background: rgba(5, 18, 48, .75); color: var(--on-signal); border: 1px solid rgba(255, 255, 255, .5); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .25s; }
.video-toggle:hover { background: var(--ink); }
.video-toggle::before { content: ''; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.video-toggle[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@media (max-width: 960px) {
  .hero-video { bottom: 30%; -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
  .hero-video video { object-position: 35% 50%; }
  .hero-video::after { background-image: radial-gradient(rgba(5, 18, 48, .3) 1px, transparent 1.3px),
    linear-gradient(180deg, rgba(3, 104, 200, 0) 40%, rgba(3, 104, 200, .7) 100%); }
  .video-toggle { top: 68px; bottom: auto; right: 16px; height: 34px; padding: 0 12px; font-size: 13px; }
}
