/* ============ H2brid one-pager — dark futuristic theme ============ */
:root {
  --cyan: #2EB9F0;
  --cyan-bright: #55C4F4;
  --cyan-soft: #7ED2F8;
  --cyan-dim: rgba(46, 185, 240, 0.14);
  --cyan-line: rgba(46, 185, 240, 0.28);
  --bg: #070B11;
  --bg-2: #0A111A;
  --panel: #0D1520;
  --panel-2: #101A27;
  --line: rgba(255, 255, 255, 0.08);
  --text: #E8EEF5;
  --muted: #93A7BC;
  --faint: #64788D;
  --btn-ink: #04263B;
  --radius: 16px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Exo 2', 'Inter', sans-serif; line-height: 1.15; color: #F2F7FC; }
img, svg { max-width: 100%; }
a { color: var(--cyan-bright); }
::selection { background: rgba(46, 185, 240, 0.3); color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.wordmark { font-family: 'Exo 2', sans-serif; font-weight: 700; letter-spacing: 0.06em; }
.wordmark sub { font-size: 0.62em; color: var(--cyan); font-weight: 700; vertical-align: baseline; position: relative; top: 0.28em; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(5, 8, 13, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  /* the edge appears only once content actually scrolls under the bar */
  border-bottom: 1px solid transparent;
  color: var(--text);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(5, 8, 13, 0.72);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav.scrolled { background: rgba(5, 8, 13, 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.nav .brand { display: flex; align-items: center; text-decoration: none; color: #F8FAFC; }
.nav .brand .wm { height: 24px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 99px; padding: 3px;
  background: rgba(255,255,255,0.03);
}
.lang-switch a, .lang-switch span {
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
  padding: 4px 12px; border-radius: 99px; letter-spacing: 0.03em;
}
.lang-switch .active { background: var(--cyan); color: var(--btn-ink); }
.lang-switch a:not(.active) { color: var(--muted); transition: color 0.2s; }
.lang-switch a:not(.active):hover { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; color: #F8FAFC; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}

/* ---------- Story (ambient looping video hero) ----------
   The hero is one full screen with a seamlessly looping brand film behind the
   headline: the H2brid logotype dissolves into a hydrogen engine and reforms.
   It autoplays muted; reduced motion gets the still logotype poster. */
.story { position: relative; }
.story-stage {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; align-items: center;
  background: var(--bg); color: var(--text);
}
.story-video {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  object-fit: cover; object-position: center;
}
main, footer { position: relative; z-index: 1; }
.story-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,11,17,0.94) 0%, rgba(7,11,17,0.7) 38%, rgba(7,11,17,0.12) 70%, rgba(7,11,17,0.32) 100%),
    linear-gradient(180deg, rgba(7,11,17,0.55) 0%, rgba(7,11,17,0) 26%, rgba(7,11,17,0) 74%, rgba(7,11,17,0.55) 100%);
}
.story-copy { position: relative; z-index: 1; width: 100%; padding-top: var(--nav-h); }
.story-copy h1, .story-copy .lead { max-width: 620px; }
.story-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: 'Exo 2', sans-serif;
  opacity: 1; transition: opacity 0.5s ease;
  animation: hint-bob 2.2s ease-in-out infinite;
}
.story-hint.hidden { opacity: 0; }
@keyframes hint-bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }
/* display size wants tighter tracking + leading than the global heading rule */
.story-copy h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.04; letter-spacing: -0.022em;
  margin-bottom: 22px;
}
.story-copy .lead { font-size: 1.13rem; line-height: 1.62; color: var(--muted); margin-bottom: 30px; max-width: 560px; }

/* factual strip under the lead — sits over moving video, so it needs weight
   and a tracking bump to stay legible rather than flat grey small text */
.hero-meta {
  list-style: none; margin: 0 0 36px; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-family: 'Exo 2', sans-serif; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  /* the strip crosses the bright engine in the video — keep it legible */
  text-shadow: 0 1px 14px rgba(7, 11, 17, 0.85);
}
.hero-meta li { display: flex; align-items: center; gap: 16px; }
/* separator trails its own item, so a wrap never starts a line with a dot */
.hero-meta li:not(:last-child)::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan); opacity: 0.75;
}

.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.link-quiet {
  font-family: 'Exo 2', sans-serif; font-weight: 600; font-size: 0.84rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: 4px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  transition: color 0.2s, border-color 0.2s;
}
.link-quiet:hover { color: #fff; border-color: var(--cyan); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Exo 2', sans-serif; font-weight: 600; font-size: 0.84rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 8px; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s,
              transform 100ms ease-out;
}
/* respond on press, not on release */
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--cyan); color: var(--btn-ink);
  /* light catching the top edge, a grounded shadow below — not an aura */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 10px 28px rgba(46,185,240,0.22);
}
.btn-primary:hover {
  background: var(--cyan-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 12px 32px rgba(46,185,240,0.3);
}

/* ---------- Sections ---------- */
section { padding: 118px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker {
  display: flex; align-items: center; gap: 16px;
  color: var(--cyan); font-weight: 600;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px;
}
.kicker::after {
  content: ""; height: 1px; width: 48px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--cyan-line), transparent);
}
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 58ch; }

/* shared editorial split: narrow heading column, wide prose column */
.split {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 36px 64px; align-items: start;
}
.split .lede h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.015em; }
.split .body p { color: var(--muted); font-size: 1.03rem; line-height: 1.68; }
.split .body p + p { margin-top: 15px; }

/* about */
.about { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.applies { margin-top: 54px; border-top: 1px solid var(--line); padding-top: 28px; }
.applies-label {
  display: block; margin-bottom: 22px;
  font-family: 'Exo 2', sans-serif; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}
.applies-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.applies-row > div { padding-left: 28px; border-left: 1px solid var(--line); }
.applies-row > div:first-child { padding-left: 0; border-left: 0; }
.applies-row svg { width: 24px; height: 24px; color: var(--cyan); display: block; margin-bottom: 14px; }
.applies-row h3 { font-size: 1.02rem; }

/* prototypes — spec sheets on the page, not floating cards */
/* land deep enough that the whole spec table (incl. the engine row) is in the
   first view even on shorter laptop screens; the kicker stays just below the
   nav — going further would hide the section heading under the bar */
#prototipai, #prototypes { scroll-margin-top: -128px; }
/* tighter internals for the same reason — every saved px moves the spec
   tables above the fold on laptop screens */
#prototipai .section-head, #prototypes .section-head { margin-bottom: 40px; }
.proto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.proto { border-top: 1px solid var(--line); padding-top: 20px; }
.proto-label {
  font-family: 'Exo 2', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
}
.proto .car { width: 100%; height: auto; display: block; margin: 16px 0 18px; }
.proto h3 { font-size: 1.3rem; margin-bottom: 8px; }
.proto > p { color: var(--muted); font-size: 0.97rem; line-height: 1.65; margin-bottom: 22px; }
.spec { display: grid; grid-template-columns: minmax(88px, auto) 1fr; }
.spec dt, .spec dd {
  margin: 0; padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 0.94rem; align-self: center;
}
.spec dt {
  font-family: 'Exo 2', sans-serif; font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.spec dd { color: var(--text); }
.spec dd.hl { color: var(--cyan); font-weight: 600; }

/* why — stacked rows beside the heading, no cards; carries the darker band
   so section backgrounds keep alternating after the how-it-works removal */
#kodel, #why { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-list { border-top: 1px solid var(--line); }
.why-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.why-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 0.97rem; line-height: 1.65; }

/* project */
.project {
  background-color: var(--bg-2);
  background-image:
    linear-gradient(90deg, rgba(10,17,26,0.97) 0%, rgba(10,17,26,0.88) 48%, rgba(10,17,26,0.55) 100%),
    url('../img/bg-facility.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid var(--line);
}
.project-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.project-info p { color: var(--muted); margin-bottom: 16px; }
.project-facts { list-style: none; margin-top: 8px; }
.project-facts li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; color: var(--text);
}
.project-facts li:last-child { border-bottom: 0; }
.project-facts svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; margin-top: 5px; }
/* glass over the facility photo — a real material, not a flat panel */
.partner-box {
  background: rgba(13, 21, 32, 0.62);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 60px rgba(0,0,0,0.35);
}
@media (prefers-reduced-transparency: reduce) {
  .partner-box { background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.partner-box h3 {
  font-size: 0.9rem; margin-bottom: 18px; color: var(--faint); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.partner-slot {
  border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; margin-bottom: 14px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.25s;
}
.partner-slot:hover { border-color: var(--cyan-line); }
.partner-logo { height: 26px; width: auto; display: block; }
.partner-logo.vt {
  height: 58px;
  /* official mark is brand blue — render it white to sit on the dark panel */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.partner-note {
  color: var(--faint); font-size: 0.82rem; letter-spacing: 0.04em;
  font-family: 'Exo 2', sans-serif;
}

/* contact */
.contact {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(7,11,17,0.82) 0%, rgba(7,11,17,0.6) 55%, rgba(7,11,17,0.85) 100%),
    url('../img/bg-road.webp');
  background-size: cover;
  background-position: center 65%;
  background-repeat: no-repeat;
  text-align: center; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 340px at 50% 100%, rgba(46,185,240,0.12), transparent 70%);
}
.contact .container { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.015em; margin-bottom: 16px; }
.contact p { color: var(--muted); max-width: 52ch; margin: 0 auto 36px; }

/* footer */
footer { background: #05080D; color: var(--faint); padding: 46px 0; font-size: 0.86rem; letter-spacing: 0.01em; border-top: 1px solid var(--line); }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .brand { display: flex; align-items: center; color: #F8FAFC; }
footer .brand .wm { height: 16px; width: auto; display: block; }
footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--cyan-bright); }
footer .domains { display: flex; gap: 18px; flex-wrap: wrap; }

/* reveal animation — small travel, decisive ease-out, light stagger in groups */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.proto-grid .proto:nth-child(2) { transition-delay: 90ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .story-hint { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .story-shade {
    background:
      linear-gradient(180deg, rgba(7,11,17,0.82) 0%, rgba(7,11,17,0.55) 45%, rgba(7,11,17,0.7) 100%);
  }
  .split { grid-template-columns: 1fr; gap: 22px; }
  .applies-row { grid-template-columns: 1fr; }
  .applies-row > div, .applies-row > div:first-child {
    padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line);
  }
  .applies-row > div:first-child { border-top: 0; padding-top: 0; }
  .applies-row svg { margin-bottom: 10px; }
  .project-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  section { padding: 78px 0; }
  .project {
    background-image:
      linear-gradient(rgba(10,17,26,0.94) 0%, rgba(10,17,26,0.9) 100%),
      url('../img/bg-facility-sm.webp');
  }
  .contact {
    background-image:
      linear-gradient(rgba(7,11,17,0.8) 0%, rgba(7,11,17,0.66) 55%, rgba(7,11,17,0.85) 100%),
      url('../img/bg-road-sm.webp');
  }
  .proto-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(7,11,17,0.97);
    border-bottom: 1px solid var(--line); padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-toggle { display: inline-flex; }
}
