/* Vamfyre website. One stylesheet, design language from the Land Forces 2026 booth screen:
   near-black ground, light Montserrat headlines, Open Sans body, cyan only as a thin accent line. */

@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --bg: #0a0a0a;
  --bg-2: #101215;
  --text: #ffffff;
  --body: #e4ebf2;
  --muted: #8892a6;
  --line: rgba(255, 255, 255, 0.10);
  --cyan: #00e6ff;
  --panel: rgba(8, 10, 14, 0.62);
  --gutter: clamp(16px, 5vw, 110px);
  --head: Montserrat, system-ui, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 "Open Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 300; letter-spacing: -0.01em; line-height: 1.08; }
/* One hero size on every page; section headings sit a step below it */
h1, .h1 { font-size: clamp(2rem, 3.4vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.75rem); }
.h1 { margin: 0; font-family: var(--head); font-weight: 300; letter-spacing: -0.01em; line-height: 1.08; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.55; color: var(--body); max-width: 60ch; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 12px 16px; }

/* Labels: uppercase, wide tracking. Tag = short cyan line + label. */
.eyebrow, .label, .tag { font-family: var(--head); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 1.4rem; }
.eyebrow img { height: 0.95rem; width: auto; }
.eyebrow .sep { color: var(--muted); letter-spacing: 0; }
.tag { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.tag::before { content: ""; width: 28px; height: 1px; background: var(--cyan); }

/* Text link with a cyan line, never a boxed button */
.more { display: inline-flex; align-items: center; gap: 18px; font-family: var(--head); font-size: 0.85rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text); }
.more::after { content: ""; width: 56px; height: 1px; background: var(--cyan); transition: width .35s var(--ease); }
.more:hover::after { width: 90px; }

/* Product wordmarks: every logo shares one cap height (--h). Logo SVGs are cropped to their artwork.
   Bluea has no logo file, so it is set in bold Montserrat with the same cap height. */
.wordmark { --h: 24px; display: inline-flex; align-items: flex-start; gap: calc(var(--h) * .12); align-self: flex-start; line-height: 1; color: var(--text); }
.wordmark img { height: var(--h); width: auto; }
.wordmark b { font: 600 calc(var(--h) / .7) / .7 Montserrat, sans-serif; letter-spacing: 0; padding-top: 0; }
.wordmark sup { font: 400 calc(var(--h) * .42) / 1 "Open Sans", sans-serif; margin-top: calc(var(--h) * -.15); }
sup.r { font-size: .4em; line-height: 0; vertical-align: .9em; margin-left: .05em; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .35s var(--ease), border-color .35s var(--ease); border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header.open { background: rgba(10, 10, 10, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand .mark { width: 34px; height: 34px; }
.brand .word { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; height: 84px; border-bottom: 2px solid transparent; font-family: var(--head); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 8px rgba(0,0,0,.35); transition: border-color .25s; }
.nav a:hover { border-bottom-color: rgba(255,255,255,.4); }
.nav a[aria-current] { border-bottom-color: var(--cyan); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text); transition: transform .3s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 27px; }
.open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.open .menu-btn span:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header .wrap { height: 68px; }
  .brand .word { width: 124px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px; background: rgba(10, 10, 10, 0.96); border-bottom: 1px solid var(--line); }
  .open .nav { display: flex; }
  .nav a { height: 58px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current] { border-bottom-color: var(--cyan); }
}

/* Full-bleed hero with protection gradient and a darkened glass panel */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.hero .media, .slide .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: -2px; background: linear-gradient(20deg, rgba(10,10,10,.85) 18%, rgba(10,10,10,.35) 52%, rgba(10,10,10,.1) 75%), linear-gradient(180deg, rgba(10,10,10,.55) 0, transparent 160px); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: clamp(72px, 9vh, 120px); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.glass { background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: clamp(28px, 4vw, 64px) clamp(24px, 4.4vw, 72px); max-width: 860px; display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }
.glass .wordmark { --h: clamp(24px, 2.6vw, 38px); }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 28px; flex-shrink: 0; }
.sheet-open { white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; font-family: var(--head); font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; }
.sheet-open span { color: var(--cyan); font-size: 1.2rem; letter-spacing: 0; }
@media (max-width: 760px) {
  .hero > .wrap { flex-direction: column; align-items: stretch; }
  .hero-side { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Home attract slideshow */
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.on { opacity: 1; }
.slide.on .media { animation: drift 12s linear forwards; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.slide-text { display: grid; }
.slide-text > div { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }
.slide-text > div.on { opacity: 1; visibility: visible; transition: opacity .8s ease .3s, visibility 0s; }
.dots { display: flex; gap: 10px; }
.dots button { width: 44px; height: 24px; position: relative; }
.dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(255,255,255,.3); transition: background .3s; }
.dots button[aria-current="true"]::after { background: var(--cyan); }

/* Sections */
.section { padding: clamp(80px, 11vw, 160px) 0; border-top: 1px solid var(--line); }
.section.flush { border-top: 0; }
.section.alt { background: var(--bg-2); }
.section-head { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: clamp(40px, 5vw, 72px); max-width: 1100px; }
.section-head .eyebrow { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 90px); align-items: center; }
.split.top { align-items: start; }
.split.flip > :first-child { order: 2; }
.stack { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* Framed media with caption */
.frame { margin: 0; }
.frame img, .frame video { width: 100%; border-radius: 6px; border: 1px solid rgba(255,255,255,.08); }
.frame figcaption { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; color: var(--body); }
.frame figcaption .row { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

/* ShadowRay modes: images side by side with a label on each */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.modes figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; }
.modes img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.modes figcaption { position: absolute; left: 20px; bottom: 16px; color: var(--text); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 600px) { .modes { grid-template-columns: 1fr; } }

/* Definition rows: Intent | Plan | ..., spec sheets */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: minmax(120px, 0.38fr) 1fr; gap: 12px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-family: var(--head); font-weight: 300; font-size: clamp(1.3rem, 1.8vw, 1.75rem); line-height: 1.25; }
.rows dd { margin: 0; color: var(--body); }
.rows.small dt { font-weight: 400; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
@media (max-width: 600px) { .rows > div { grid-template-columns: 1fr; gap: 6px; } }

/* Big numbers */
.figures { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.figures > div { flex: 1 1 140px; padding: 24px 28px 0 0; }
.figures > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.figures b { display: block; white-space: nowrap; font-family: var(--head); font-weight: 300; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.1; }
.figures span { font-family: var(--head); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.note { font-size: 0.9rem; color: var(--muted); }

/* Three panels (home) */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 82vh; border-top: 1px solid var(--line); }
.panel { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(28px, 3vw, 54px); min-height: 520px; border-left: 1px solid var(--line); }
.panel:first-child { border-left: 0; }
.panel .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.95) 22%, rgba(10,10,10,.45) 60%, rgba(10,10,10,.25)); z-index: 1; }
.panel:hover .media { transform: scale(1.04); }
.panel > div { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; min-height: 13.5rem; }
.panel .wordmark { --h: clamp(24px, 2.2vw, 34px); }
.panel p { color: var(--body); max-width: 34ch; }
.panel .line { width: 56px; height: 2px; background: var(--cyan); transition: width .35s var(--ease); }
.panel:hover .line { width: 110px; }
@media (max-width: 960px) { .panels { grid-template-columns: 1fr; } .panel { border-left: 0; border-top: 1px solid var(--line); min-height: 64vh; } }

/* Grid of short items (missions, container contents) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.grid > div { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.grid h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); }
.grid p { color: var(--body); }
.grid .label { margin-top: 6px; letter-spacing: 0.16em; font-size: 0.72rem; }

/* Comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; min-width: 720px; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); }
.compare thead th { padding-top: 0; }
.compare thead .wordmark { --h: 18px; }
.compare thead a { display: block; }
.compare tbody th { font-family: var(--head); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); width: 16%; }
.compare td { color: var(--body); }

/* Vehicle block header (logo + tag) */
.vehicle-head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.vehicle-head .wordmark { --h: clamp(22px, 2.2vw, 30px); }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(40px, 5vw, 72px) clamp(32px, 5vw, 80px); }
.partners img { height: 34px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; opacity: .85; filter: brightness(0) invert(1); }
.partners .nvidia { height: 60px; filter: none; opacity: 1; } /* official colours, per NVIDIA brand rules */
.partners .viavi { height: 46px; }
.partners .vicom { height: 44px; }

/* Closing call to action */
.close { position: relative; overflow: hidden; }
.close .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.close::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, rgba(10,10,10,.55) 70%, rgba(10,10,10,.25)); z-index: 1; }
.close .wrap { position: relative; z-index: 2; }
.email { font-family: var(--head); font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2.4rem); letter-spacing: 0; border-bottom: 1px solid var(--cyan); padding-bottom: 6px; align-self: flex-start; word-break: break-word; }

/* Specification sheet: full-screen dialog with tabs */
dialog.sheet { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 10, 14, 0.97); color: var(--text); }
dialog.sheet::backdrop { background: rgba(0,0,0,.6); }
dialog.sheet[open] { display: flex; flex-direction: column; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--gutter) 0; }
.sheet-top .title { display: flex; flex-direction: column; gap: 14px; }
.sheet-top .title .wordmark { --h: 22px; }
.sheet-close { font-family: var(--head); font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; display: inline-flex; gap: 12px; align-items: center; min-height: 44px; }
.sheet-close span { color: var(--cyan); font-size: 1.4rem; letter-spacing: 0; }
.tabs { display: flex; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); overflow-x: auto; margin-top: 24px; flex-shrink: 0; }
.tabs button { height: 64px; border-bottom: 2px solid transparent; font-family: var(--head); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--cyan); }
.sheet-body { flex: 1; overflow-y: auto; padding: 24px var(--gutter) 48px; }
.sheet-body .rows { max-width: 1300px; border-top: 0; }
.sheet-body .note { margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 22px; }
.footer-brand .brand .mark { width: 40px; height: 40px; }
.footer-brand p { color: var(--muted); }
.footer-col h4 { margin: 0 0 18px; font-family: var(--head); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--body); }
.footer-col a:hover, .footer-brand a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Scroll reveal (class added by JS, so content shows without it) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* Hero holding a text stack instead of a glass panel (contact) */
.hero > .wrap.stack { flex-direction: column; align-items: flex-start; justify-content: center; }

/* Intro hero without a full-bleed image (Bluea): text left, framed media right */
.intro { padding-top: clamp(130px, 14vw, 190px); min-height: 92vh; display: flex; align-items: center; }
.intro .wrap { width: 100%; }
.intro .wordmark { --h: clamp(30px, 3vw, 44px); }
