@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy-950: #020d24;
  --navy-900: #061a3b;
  --navy-800: #0a2a57;
  --navy-700: #103c72;
  --gold-500: #d5a521;
  --gold-400: #e7bd45;
  --gold-200: #f4dda0;
  --cream: #fffaf0;
  --paper: #f7f5ef;
  --white: #ffffff;
  --ink: #07162d;
  --muted: #5b6677;
  --line: rgba(7, 22, 45, 0.14);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 38px;
  --shadow: 0 28px 70px rgba(2, 13, 36, 0.14);
  --wrap: min(1180px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; padding: 10px 14px; background: var(--gold-400); color: var(--navy-950); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: var(--gold-500); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow--dark { color: var(--navy-800); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; }
h1 { font-size: clamp(3rem, 6.7vw, 6.7rem); font-weight: 780; }
h2 { font-size: clamp(2.2rem, 4.2vw, 4.25rem); font-weight: 720; }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
.lead { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-800); font-weight: 750; text-decoration: none; }
.text-link::after { content: "↗"; color: var(--gold-500); transition: transform .2s ease; }
.text-link:hover::after { transform: translate(3px, -3px); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px; background: var(--gold-400); color: var(--navy-950); font-size: .86rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: #f0ca59; box-shadow: 0 16px 36px rgba(213, 165, 33, .23); }
.button--ghost { border-color: rgba(255,255,255,.34); background: transparent; color: var(--white); }
.button--ghost:hover { background: rgba(255,255,255,.08); }
.button--navy { background: var(--navy-900); color: var(--white); }
.button--navy:hover { background: var(--navy-800); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 30; color: var(--white); }
.nav-shell { width: var(--wrap); min-height: 94px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.2); }
.brand { display: inline-flex; align-items: center; background: url("../images/stellarbites-logo-light.png") left center / contain no-repeat; text-decoration: none; }
.brand img { width: 218px; height: auto; opacity: 0; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { position: relative; color: rgba(255,255,255,.82); font-size: .83rem; font-weight: 700; text-decoration: none; }
.site-nav a:not(.button)::after { content: ""; position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; background: var(--gold-400); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: transparent; color: var(--white); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; }

.hero { position: relative; min-height: 790px; overflow: hidden; background: var(--navy-950); color: var(--white); }
.hero::before { content: ""; position: absolute; top: -22vw; left: -18vw; width: 48vw; aspect-ratio: 1; border: 1px solid rgba(231,189,69,.3); border-radius: 50%; box-shadow: 0 0 0 7vw rgba(231,189,69,.035), 0 0 0 14vw rgba(231,189,69,.02); }
.hero-grid { position: relative; z-index: 2; width: var(--wrap); min-height: 790px; margin-inline: auto; display: grid; grid-template-columns: 1.03fr .97fr; align-items: end; gap: clamp(28px, 5vw, 80px); padding: 174px 0 82px; }
.hero-copy { align-self: center; padding-top: 40px; }
.hero h1 { max-width: 740px; margin-bottom: 24px; }
.hero h1 em { color: var(--gold-400); font-family: Georgia, serif; font-weight: 400; }
.hero-copy > p:not(.eyebrow) { max-width: 640px; color: rgba(255,255,255,.72); font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-visual { position: relative; align-self: stretch; min-height: 610px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 180px 0 0 0; }
.hero-visual::after { content: ""; position: absolute; inset: 0; border-radius: 180px 0 0 0; background: linear-gradient(180deg, transparent 50%, rgba(2,13,36,.62)); }
.hero-note { position: absolute; right: 0; bottom: 0; z-index: 2; width: min(340px, 82%); padding: 24px 26px; background: var(--gold-400); color: var(--navy-950); }
.hero-note strong { display: block; font-size: 1.2rem; }
.hero-note span { font-size: .85rem; }

.proof-strip { background: var(--gold-400); color: var(--navy-950); }
.proof-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); }
.proof-item { min-height: 132px; padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(2,13,36,.18); }
.proof-item:first-child { border-left: 0; }
.proof-item strong { display: block; font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.2; }
.proof-item span { margin-top: 5px; font-size: .76rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }

.section { padding: clamp(84px, 10vw, 144px) 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-950); color: var(--white); }
.section-heading { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; align-items: end; margin-bottom: 58px; }
.section-heading h2 { margin: 0; }
.section-heading .lead { justify-self: end; margin-bottom: 4px; }

.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path-card { position: relative; min-height: 480px; overflow: hidden; border-radius: var(--radius-lg); color: var(--white); box-shadow: var(--shadow); }
.path-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.path-card:hover img { transform: scale(1.035); }
.path-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,13,36,.05) 25%, rgba(2,13,36,.92) 100%); }
.path-card__copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 34px; }
.path-card__copy span { display: block; margin-bottom: 10px; color: var(--gold-400); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.path-card__copy h3 { max-width: 480px; margin-bottom: 14px; font-size: clamp(2rem, 3.5vw, 3.5rem); }
.path-card__copy p { max-width: 520px; color: rgba(255,255,255,.75); }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); }
.category-card { min-height: 230px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: var(--navy-950); color: var(--white); text-decoration: none; transition: background .25s ease; }
.category-card:hover { background: var(--navy-800); }
.category-card__number { color: var(--gold-400); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.category-card h3 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -.02em; }
.category-card p { margin: 0; color: rgba(255,255,255,.62); font-size: .9rem; }

.editorial-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.editorial-image { position: relative; min-height: 620px; }
.editorial-image img { width: calc(100% - 54px); height: 560px; object-fit: cover; border-radius: 0 140px 0 0; }
.editorial-image .inset { position: absolute; right: 0; bottom: 0; width: 48%; height: 270px; border: 14px solid var(--paper); border-radius: 0; }
.editorial-copy h2 { margin-bottom: 24px; }
.editorial-copy p { color: var(--muted); }
.check-list { margin: 30px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 14px 0 14px 35px; border-top: 1px solid var(--line); font-weight: 650; }
.check-list li::before { content: "✦"; position: absolute; left: 3px; color: var(--gold-500); }

.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding: clamp(38px, 6vw, 74px); border-radius: var(--radius-lg); background: var(--navy-900); color: var(--white); }
.cta-panel::after { content: "✦"; position: absolute; right: 4%; bottom: -45%; color: rgba(231,189,69,.08); font-size: 24rem; line-height: 1; }
.cta-panel h2 { position: relative; z-index: 1; margin-bottom: 0; }
.cta-panel__action { position: relative; z-index: 1; text-align: right; }
.cta-panel__action p { color: rgba(255,255,255,.7); }

.page-hero { position: relative; overflow: hidden; padding: 190px 0 90px; background: var(--navy-950); color: var(--white); }
.page-hero::after { content: "✦"; position: absolute; right: 5%; bottom: -55%; color: rgba(231,189,69,.08); font-size: 24rem; line-height: 1; }
.page-hero h1 { max-width: 900px; margin-bottom: 18px; font-size: clamp(3rem, 6vw, 6rem); }
.page-hero p:not(.eyebrow) { max-width: 720px; color: rgba(255,255,255,.7); font-size: 1.16rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 42px; }
.filter-button { min-height: 44px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--navy-900); font-weight: 720; }
.filter-button:hover, .filter-button.is-active { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); }
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.equipment-card { position: relative; display: flex; min-height: 300px; flex-direction: column; justify-content: space-between; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.equipment-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.equipment-card[hidden] { display: none; }
.equipment-card__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--cream); color: var(--gold-500); font-size: 1.4rem; }
.equipment-card__meta { color: var(--gold-500); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.equipment-card h3 { margin: 18px 0 10px; }
.equipment-card p { color: var(--muted); font-size: .92rem; }
.equipment-card .text-link { align-self: flex-start; font-size: .88rem; }

.feature-image { min-height: 490px; overflow: hidden; border-radius: var(--radius-lg); }
.feature-image img { width: 100%; height: 490px; object-fit: cover; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 370px; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: var(--radius-md); background: var(--navy-900); color: var(--white); }
.service-card:nth-child(3n+2) { background: var(--gold-400); color: var(--navy-950); }
.service-card__number { position: absolute; top: 24px; right: 28px; color: currentColor; opacity: .45; font-size: 4rem; font-weight: 250; line-height: 1; }
.service-card p { max-width: 510px; color: rgba(255,255,255,.7); }
.service-card:nth-child(3n+2) p { color: rgba(2,13,36,.72); }
.service-card a { margin-top: 16px; align-self: flex-start; color: inherit; font-weight: 800; }

.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { counter-increment: steps; min-height: 250px; padding: 30px 24px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step::before { content: "0" counter(steps); display: block; margin-bottom: 42px; color: var(--gold-500); font-size: .78rem; font-weight: 850; letter-spacing: .14em; }
.step p { color: var(--muted); font-size: .9rem; }

.story-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(35px, 7vw, 100px); align-items: start; }
.story-grid h2 { margin-bottom: 28px; }
.story-grid p { color: var(--muted); }
.fact-card { position: sticky; top: 30px; padding: 36px; border-radius: var(--radius-md); background: var(--navy-900); color: var(--white); box-shadow: var(--shadow); }
.fact-card dl { margin: 0; }
.fact-card div { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.fact-card div:last-child { border-bottom: 0; }
.fact-card dt { color: var(--gold-400); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fact-card dd { margin: 5px 0 0; font-weight: 650; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { min-height: 310px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.value-card span { color: var(--gold-500); font-size: 2rem; }
.value-card p { color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(34px, 6vw, 86px); align-items: start; }
.contact-info { position: sticky; top: 26px; }
.contact-list { margin: 30px 0 0; padding: 0; list-style: none; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list small { display: block; margin-bottom: 4px; color: var(--gold-500); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.quote-form { padding: clamp(26px, 4vw, 46px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--navy-900); font-size: .82rem; font-weight: 780; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid #cbd0d8; border-radius: var(--radius-sm); background: #fbfbf9; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(213,165,33,.2); border-color: var(--gold-500); }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0; font-size: .84rem; color: var(--muted); }
.checkbox-row input { margin-top: 5px; }
.form-status { display: none; margin-bottom: 22px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 650; }
.form-status.is-visible { display: block; }
.form-status--success { background: #e8f6ec; color: #145c2b; }
.form-status--error { background: #fff0ed; color: #8b271c; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 78px 0 26px; background: var(--navy-950); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 50px; }
.footer-brand { background: url("../images/stellarbites-logo-light.png") left top / 250px auto no-repeat; }
.footer-brand img { width: 250px; opacity: 0; }
.footer-brand p { max-width: 440px; margin-top: 18px; color: rgba(255,255,255,.6); }
.footer-title { margin-bottom: 20px; color: var(--gold-400); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 9px 0; }
.footer-links a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { margin-top: 58px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.48); font-size: .76rem; }
.credit-link { color: rgba(255,255,255,.56); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@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 (max-width: 980px) {
  :root { --wrap: min(100% - 32px, 760px); }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 0; z-index: -1; padding: 120px 28px 40px; display: flex; flex-direction: column; align-items: stretch; background: var(--navy-950); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease; }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { padding: 11px 0; font-size: 1.1rem; }
  .site-nav .button { margin-top: 10px; }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-copy { padding-bottom: 26px; }
  .hero-visual { min-height: 500px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(3) { border-left: 0; }
  .section-heading, .editorial-grid, .story-grid, .contact-layout { grid-template-columns: 1fr; }
  .section-heading .lead { justify-self: start; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .equipment-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .fact-card, .contact-info { position: static; }
}
@media (max-width: 680px) {
  :root { --wrap: min(100% - 24px, 560px); }
  .brand img { width: 178px; }
  .nav-shell { min-height: 78px; }
  .hero-grid { min-height: 0; padding-top: 136px; }
  .hero-visual { min-height: 430px; margin-right: -12px; }
  .hero-visual img, .hero-visual::after { border-radius: 100px 0 0 0; }
  .hero-note { padding: 18px; }
  .proof-grid, .path-grid, .equipment-grid, .service-list, .values-grid, .footer-grid { grid-template-columns: 1fr; }
  .proof-item { min-height: 106px; border-left: 0; border-top: 1px solid rgba(2,13,36,.18); }
  .proof-item:first-child { border-top: 0; }
  .path-card { min-height: 420px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 175px; }
  .editorial-image { min-height: 470px; }
  .editorial-image img { height: 420px; }
  .editorial-image .inset { height: 190px; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel__action { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .footer-bottom { flex-direction: column; }
}
