/* ============ H2brid one-pager ============
   Look follows the project film: deep navy, one bright H2 cyan, heavy geometric
   headings, lower-third caption plates, blue (IGNIS) / yellow (CALOR) coding. */
: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: #060C14;
  --bg-2: #0A1521;
  --bg-deep: #03070C;
  --panel: #0D1520;
  --panel-2: #101A27;
  --line: rgba(170, 205, 235, 0.11);
  --text: #E8EEF5;
  --muted: #93A7BC;
  --faint: #64788D;
  --btn-ink: #04263B;
  --heading: #F2F7FC;
  --accent-text: var(--cyan);
  --yellow: #F2C230;
  --plate-bg: rgba(8, 20, 34, 0.84);
  --plate-line: rgba(126, 210, 248, 0.42);
  --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: 'Montserrat', 'Inter', sans-serif; font-weight: 700; line-height: 1.15; color: var(--heading); }
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: 'Montserrat', 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.11em; 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: 5px; 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 11px; border-radius: 3px; letter-spacing: 0.04em;
}
.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 (film hero) ----------
   One full screen of real footage — the prototypes on a forest road — looped
   behind the headline. Cinematic treatment: a light grade on the footage, a
   cool navy wash, a vignette, and a heavy left/bottom falloff so the copy
   reads over any shot. Autoplays muted; reduced motion gets the still frame. */
.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;
  filter: saturate(0.9) contrast(1.08) brightness(0.96);
}
main, footer { position: relative; z-index: 1; }
.story-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    /* copy side falloff */
    linear-gradient(90deg, rgba(4,9,15,0.86) 0%, rgba(4,9,15,0.56) 34%, rgba(4,9,15,0.04) 66%, rgba(4,9,15,0.1) 100%),
    /* top (under the nav) and bottom (into the page) */
    linear-gradient(180deg, rgba(4,9,15,0.7) 0%, rgba(4,9,15,0) 20%, rgba(4,9,15,0) 66%, rgba(4,9,15,0.8) 100%),
    /* vignette */
    radial-gradient(120% 90% at 62% 46%, rgba(4,9,15,0) 50%, rgba(4,9,15,0.36) 100%),
    /* cool navy wash that ties the autumn footage to the brand colours */
    linear-gradient(rgba(8,26,44,0.18), rgba(8,26,44,0.18));
}
.story-copy { position: relative; z-index: 1; width: 100%; padding-top: var(--nav-h); }
.story-copy h1, .story-copy .lead { max-width: 680px; }
.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: 'Montserrat', 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.15rem, 4.5vw, 3.55rem); font-weight: 800;
  line-height: 1.06; letter-spacing: -0.028em;
  margin-bottom: 22px; text-shadow: 0 2px 34px rgba(4,9,15,0.55);
}
.story-copy .lead { font-size: 1.13rem; line-height: 1.62; color: #C6D3DF; text-shadow: 0 1px 18px rgba(4,9,15,0.7); 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: 'Montserrat', 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: 'Montserrat', 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: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.84rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 4px; 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 8px 22px rgba(0,0,0,0.38);
}
.btn-primary:hover {
  background: var(--cyan-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 10px 26px rgba(0,0,0,0.44);
}

/* ---------- 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(--accent-text); font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.17em; 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.7rem, 3vw, 2.35rem); line-height: 1.1; letter-spacing: -0.022em; 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.7rem, 3vw, 2.35rem); line-height: 1.1; letter-spacing: -0.022em; }
.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: 'Montserrat', 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(--accent-text); display: block; margin-bottom: 14px; }
.applies-row h3 { font-size: 1.02rem; }

/* ---------- Film ----------
   The project film (YouTube). The poster is the film's own title frame; the
   play control is a lower-third caption plate like the name plates in the
   film, hanging off the frame's bottom edge so it never covers the cars. */
.film { background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.film .section-head { max-width: 800px; margin-bottom: 44px; }
.film-frame {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border-radius: 6px; margin-bottom: 30px;
  box-shadow: 0 0 0 1px var(--line), 0 34px 80px rgba(0, 0, 0, 0.55);
}
.film-play {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer; border-radius: 6px;
}
.film-play img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px;
  transition: filter 0.25s ease;
}
.film-play:hover img { filter: brightness(1.07); }
.film-play:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }

.plate {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--plate-bg); border: 1px solid var(--plate-line); border-radius: 4px;
  padding: 10px 20px 10px 10px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.plate-text strong {
  display: block; font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 1rem; line-height: 1.2; color: #fff;
}
.plate-text small {
  display: block; margin-top: 4px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.64rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--cyan-soft);
}
.film-plate {
  position: absolute; left: 28px; bottom: -26px; z-index: 1;
  transition: border-color 0.2s, transform 100ms ease-out;
}
.film-play:hover .film-plate { border-color: var(--cyan); }
.film-play:active .film-plate { transform: scale(0.98); }
.film-icon {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--cyan); color: var(--btn-ink); border-radius: 3px;
}
.film-icon svg { width: 22px; height: 22px; display: block; }
.film-note { margin-top: 52px; color: var(--faint); font-size: 0.86rem; }
.film-frame.playing + .film-note { margin-top: 22px; }
.film-note a { color: var(--muted); text-underline-offset: 3px; }
.film-note a:hover { color: var(--heading); }
@media (prefers-reduced-transparency: reduce) {
  .plate { background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* 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 { --tone: var(--cyan); --tone-text: var(--tone); border-top: 1px solid var(--line); padding-top: 20px; position: relative; }
.proto-calor { --tone: var(--yellow); }
/* short tone bar on the hairline — the livery colour of each car */
.proto::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--tone); }
.proto-name {
  display: block; margin-top: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.5rem;
  letter-spacing: 0.02em; line-height: 1.1; color: var(--heading);
}
.tone-fill { fill: var(--tone); }
.tone-stroke { stroke: var(--tone); }
.proto-label {
  font-family: 'Montserrat', 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.08rem; margin-bottom: 8px; color: var(--tone-text); }
.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: 'Montserrat', 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(--tone-text, 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,21,33,0.97) 0%, rgba(10,21,33,0.88) 48%, rgba(10,21,33,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: 8px;
  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: 6px; 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);
}
.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: 'Montserrat', sans-serif;
}

/* contact */
.contact {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(6,12,20,0.82) 0%, rgba(6,12,20,0.6) 55%, rgba(6,12,20,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 .container { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.022em; 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(4,9,15,0.8) 0%, rgba(4,9,15,0.46) 40%, rgba(4,9,15,0.74) 100%),
      linear-gradient(rgba(8,26,44,0.18), rgba(8,26,44,0.18));
  }
  .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,21,33,0.94) 0%, rgba(10,21,33,0.9) 100%),
      url('../img/bg-facility-sm.webp');
  }
  .contact {
    background-image:
      linear-gradient(rgba(6,12,20,0.8) 0%, rgba(6,12,20,0.66) 55%, rgba(6,12,20,0.85) 100%),
      url('../img/bg-road-sm.webp');
  }
  .proto-grid { grid-template-columns: 1fr; gap: 40px; }
  .film .section-head { margin-bottom: 30px; }
  .film-plate { left: 14px; bottom: -24px; padding: 8px 16px 8px 8px; gap: 12px; }
  .film-icon { width: 38px; height: 38px; }
  .plate-text strong { font-size: 0.94rem; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(6,12,20,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; }
}

/* ==========================================================================
   LIGHT THEME (2026-11-25)
   The content sections are light; the nav, hero, project band and footer stay
   dark navy, because the H2BRID wordmark is white-on-dark and must not change.
   Deleting this whole block returns the site to the all-dark version.
   ========================================================================== */
body { background: #FFFFFF; }
.film, .about, #prototipai, #prototypes, #kodel, #why, .contact {
  --text: #0B1722;
  --heading: #0B1722;
  --muted: #485A6B;
  --faint: #6B7B8B;
  --line: rgba(11, 23, 34, 0.13);
  --accent-text: #0A74A6;          /* cyan deep enough to read on white */
  --cyan-line: rgba(10, 116, 166, 0.4);
  color: var(--text);
}
.film { background: #F2F5F8; }
.about { background: #FFFFFF; }
#prototipai, #prototypes { background: #F2F5F8; border-top: 1px solid var(--line); }
#kodel, #why { background: #FFFFFF; }
.contact { background: #F2F5F8; background-image: none; border-top: 1px solid var(--line); }

/* the bar now passes over white, so it has to be solid enough to hold the logo */
.nav { background: rgba(6, 12, 20, 0.78); }
.nav.scrolled { background: rgba(6, 12, 20, 0.94); box-shadow: 0 10px 30px rgba(6, 12, 20, 0.18); }

/* film frame: a soft ground shadow instead of the deep one used on black */
.film-frame { box-shadow: 0 0 0 1px rgba(11, 23, 34, 0.12), 0 28px 60px rgba(11, 23, 34, 0.2); }

/* prototypes: bright livery colour for bars and badges, darker ink for text */
.proto-ignis { --tone-text: #0A74A6; }
.proto-calor { --tone-text: #876600; }
.proto .car [stroke="#7E93A8"] { stroke: #5F7386; }
.proto .car [stroke="#DCE7F2"] { stroke: #1D2D3D; }

.contact .btn-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 16px rgba(11, 23, 34, 0.18); }
.contact .btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 8px 20px rgba(11, 23, 34, 0.24); }
::selection { background: rgba(46, 185, 240, 0.35); color: inherit; }

/* ---------- Contact form dialog ----------
   Opened by the "Write to us" button. Native <dialog>: Esc and the backdrop
   close it, focus is trapped by the browser. Light panel, same squared
   corners, hairlines and label style as the rest of the page. */
.contact-dialog {
  --text: #0B1722; --heading: #0B1722; --muted: #485A6B; --faint: #6B7B8B;
  --line: rgba(11, 23, 34, 0.16); --accent-text: #0A74A6; --cyan-line: rgba(10, 116, 166, 0.4);
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: 8px; overflow: auto;
  background: #FFFFFF; color: var(--text);
  box-shadow: 0 40px 100px rgba(3, 7, 12, 0.5);
}
.contact-dialog::backdrop { background: rgba(4, 9, 15, 0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact-dialog[open] { animation: cd-in 0.28s var(--ease-out); }
@keyframes cd-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.contact-form { position: relative; padding: 40px 40px 34px; text-align: left; }
.contact-form h2 { font-size: 1.7rem; letter-spacing: -0.022em; margin-bottom: 8px; }
.cd-intro { color: var(--muted); font-size: 0.97rem; margin-bottom: 26px; }
.cd-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  display: grid; place-items: center; background: none; border: 0; border-radius: 4px;
  color: var(--faint); cursor: pointer; transition: color 0.2s, background-color 0.2s;
}
.cd-close:hover { color: var(--text); background: rgba(11, 23, 34, 0.06); }
.cf-fields label {
  display: block; margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint);
}
.cf-fields input[type="email"], .cf-fields textarea {
  display: block; width: 100%; margin-bottom: 20px; padding: 13px 14px;
  font: inherit; font-size: 1rem; line-height: 1.5; color: var(--text);
  background: #F6F8FA; border: 1px solid var(--line); border-radius: 4px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.cf-fields textarea { resize: vertical; min-height: 132px; }
.cf-fields input::placeholder { color: #98A5B2; }
.cf-fields input[type="email"]:focus, .cf-fields textarea:focus {
  outline: none; background: #FFFFFF; border-color: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(46, 185, 240, 0.25);
}
.cf-fields [aria-invalid="true"] { border-color: #C0392B; }
/* honeypot: off-screen, not display:none, so simple bots still fill it */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-status { min-height: 1.5em; margin-bottom: 14px; font-size: 0.94rem; color: var(--muted); }
.cf-status.is-error { color: #B03A2E; }
.cf-status.is-ok { color: #17693F; font-weight: 500; font-size: 1.02rem; }
.cf-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cf-actions .btn { border: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 16px rgba(11, 23, 34, 0.18); }
.cf-actions .btn[disabled] { opacity: 0.6; cursor: default; }
.cf-actions .link-quiet {
  background: none; border: 0; border-bottom: 1px solid rgba(11, 23, 34, 0.28);
  color: var(--text); cursor: pointer;
}
.cf-actions .link-quiet:hover { color: var(--text); border-color: var(--accent-text); }
.cf-fine { margin-top: 20px; font-size: 0.82rem; color: var(--faint); }
.contact-form.sent .cf-fields, .contact-form.sent .cf-fine, .contact-form.sent .cd-intro,
.contact-form.sent .cf-actions .link-quiet { display: none; }
button.btn { border: 0; }
@media (max-width: 760px) {
  .contact-form { padding: 34px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) { .contact-dialog[open] { animation: none; } }

/* ---------- Phone and tablet pass (2026-11-25) ----------
   Menu collapses earlier (tablet portrait was cramped), tap targets are at
   least ~40px, hero actions stack full-width, and small lists get a tidier
   mobile form. Desktop is untouched by everything in this block. */
@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #060C14;
    border-bottom: 1px solid rgba(170, 205, 235, 0.11); padding: 6px 0 14px;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    box-shadow: 0 24px 40px rgba(3, 7, 12, 0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 24px; font-size: 0.86rem; }
  .nav-toggle { display: inline-flex; }
  /* with the menu open the bar must be solid, or the page shows through it */
  .nav:has(.nav-links.open) { background: #060C14; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 20px; }
  .lang-switch a, .lang-switch span { padding: 8px 13px; }

  .story-stage { min-height: 620px; }
  .story-copy h1 { font-size: clamp(2rem, 8.6vw, 2.5rem); margin-bottom: 18px; }
  .story-copy .lead { font-size: 1.05rem; margin-bottom: 24px; }
  .hero-meta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
    margin-bottom: 28px; letter-spacing: 0.1em; font-size: 0.72rem;
  }
  .hero-meta li { gap: 9px; }
  .hero-meta li:not(:last-child)::after { display: none; }
  .hero-meta li::before {
    content: ""; width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0;
    background: var(--cyan); opacity: 0.8;
  }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn { justify-content: center; padding: 17px 24px; }
  .hero-ctas .link-quiet { align-self: flex-start; padding: 12px 2px 10px; }
  .story-hint { display: none; }

  /* anchors: the desktop offset would tuck the heading under the bar here */
  #prototipai, #prototypes { scroll-margin-top: -30px; }
  section { scroll-margin-top: -30px; }

  .applies { margin-top: 40px; padding-top: 24px; }
  .applies-label { margin-bottom: 8px; }
  .applies-row > div, .applies-row > div:first-child {
    display: flex; align-items: center; gap: 14px; padding: 16px 0;
    border-left: 0; border-top: 1px solid var(--line);
  }
  .applies-row > div:first-child { border-top: 0; }
  .applies-row svg { margin-bottom: 0; flex-shrink: 0; }

  .film-frame { margin-bottom: 34px; }
  .proto-name { font-size: 1.35rem; }
  .spec { grid-template-columns: minmax(84px, auto) 1fr; }
  .partner-box { padding: 24px 18px; }
  .partner-slot { padding: 22px 14px 18px; }

  .contact .btn { width: 100%; max-width: 380px; justify-content: center; padding: 17px 24px; }
  .cf-actions .btn { flex: 1 1 auto; justify-content: center; padding: 16px 24px; }
  .cf-actions .link-quiet { padding: 12px 2px 10px; }

  footer { padding: 38px 0 44px; }
  footer .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  footer .domains { gap: 4px 22px; }
  footer .domains a { display: inline-block; padding: 10px 0; }
}
/* short landscape phones: let the hero grow with its content */
@media (max-height: 520px) and (orientation: landscape) {
  .story-stage { height: auto; min-height: 100svh; padding: calc(var(--nav-h) + 20px) 0 36px; }
  .story-copy { padding-top: 0; }
}
/* touch screens have no hover: don't leave the poster stuck in its hover state */
@media (hover: none) {
  .film-play:hover img { filter: none; }
}
