/* =========================================================
   Pahor Járműfelépítmények — one-pager
   Palette: graphite / brushed aluminium / workshop-wall red
   ========================================================= */

:root {
  --ink: #0f1113;
  --graphite: #17191c;
  --steel: #2a2e33;
  --line: rgba(255, 255, 255, .12);
  --line-dark: rgba(15, 17, 19, .14);
  --alu: #c9ced3;
  --alu-hi: #eef0f2;
  --paper: #f3f2ef;
  --paper-2: #e8e6e1;
  --text: #15171a;
  --text-mute: #5d636b;
  --text-inv: #eef0f2;
  --text-inv-mute: #8f969e;
  --red: #c8361d;
  --red-hi: #e2482c;
  --red-deep: #9e2914;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(34px, 5.2vw, 76px); font-variation-settings: "wdth" 72; text-transform: uppercase; letter-spacing: -.01em; }
h3 { font-size: clamp(20px, 1.8vw, 26px); }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); font-size: .78em; letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--text-mute); }
.section--dark .muted, .hero .muted, .footer .muted { color: var(--text-inv-mute); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.6em; border: 1.5px solid transparent; border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  font-variation-settings: "wdth" 90;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--red { --bg: var(--red); --fg: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.35); --fg: var(--text-inv); }
.btn--ghost::before { background: var(--alu-hi); }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { padding: .7em 1.1em; font-size: .82rem; }
.btn--block { width: 100%; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60;
  background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--text-inv);
  transition: background .4s var(--ease), backdrop-filter .4s, box-shadow .4s;
}
.header.is-scrolled { background: rgba(15, 17, 19, .82); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 46px; height: auto; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b { font-size: 22px; font-weight: 900; letter-spacing: .04em; font-variation-settings: "wdth" 75; }
.brand__text small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-inv-mute); margin-top: 3px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; text-decoration: none; font-size: .9rem; font-weight: 600;
  color: var(--text-inv-mute); position: relative; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text-inv); }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Fullscreen mobile menu ---------- */
.header.menu-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.menu {
  position: fixed; inset: 0; z-index: 48; color: var(--text-inv);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 20px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: rgba(12, 13, 15, .74);
  backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .4s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__nav { display: grid; border-top: 1px solid var(--line); }
.menu__nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: clamp(32px, 8.6vw, 56px); line-height: 1; font-weight: 900;
  text-transform: uppercase; font-variation-settings: "wdth" 68; letter-spacing: -.005em;
  opacity: 0; transform: translateY(26px);
  transition: transform .6s var(--ease), opacity .45s ease, color .2s;
  transition-delay: calc(var(--i) * 45ms + 90ms);
}
.menu__nav a .mono { font-size: 11px; color: var(--red-hi); font-weight: 500; translate: 0 -.9em; }
.menu__nav a:hover, .menu__nav a:focus-visible { color: var(--red-hi); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu__foot { display: grid; gap: 16px; opacity: 0; transform: translateY(16px); transition: opacity .5s ease .45s, transform .6s var(--ease) .45s; }
.menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu__contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-weight: 700; font-size: 1.1rem; }
.menu__contact a { text-decoration: none; }
.menu__contact a:first-child { color: var(--red-hi); }
.menu__hours { margin: 0; color: var(--text-inv-mute); font-size: 11px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--text-inv);
  padding-top: calc(var(--header-h) + clamp(28px, 6vh, 72px));
  overflow: hidden;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
.hero::before { /* fade the blueprint grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 40%, transparent 0%, var(--ink) 75%);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px);
  align-items: center; padding-bottom: clamp(48px, 8vh, 96px);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inv-mute); margin-bottom: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(200,54,29,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200,54,29,0); } 100% { box-shadow: 0 0 0 0 rgba(200,54,29,0); } }

.hero__title {
  font-size: clamp(48px, 8.4vw, 132px); line-height: .88; text-transform: uppercase;
  font-weight: 900; font-variation-settings: "wdth" 66; letter-spacing: -.015em; margin-bottom: 28px;
}
.hero__title .line { display: block; overflow: hidden; padding: .16em 0 .04em; margin-top: -.16em; }
.hero__title .line > span { display: inline-block; transform: translateY(140%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .1s; }
.hero__title .line:nth-child(3) > span { animation-delay: .2s; }
.hero__title em {
  font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--alu);
  background: linear-gradient(90deg, var(--red), var(--red-hi)) no-repeat 0 100% / 0 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: fillText 1.1s .9s var(--ease) forwards;
}
@keyframes rise { to { transform: none; } }
@keyframes fillText { to { background-size: 100% 100%; -webkit-text-stroke-color: transparent; } }

.hero__lead { max-width: 34em; font-size: clamp(16px, 1.25vw, 19px); color: var(--alu); opacity: 0; animation: fade .9s .45s var(--ease) forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; opacity: 0; animation: fade .9s .6s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__media { position: relative; margin: 0; padding-bottom: 28px; }
@media (min-width: 861px) {
  .hero__grid { grid-template-columns: 1fr; min-height: clamp(600px, 78vh, 820px); }
  .hero__copy { position: relative; z-index: 2; max-width: 760px; }
  .hero__copy::before { /* soft dark halo keeps the copy readable over the drawing */
    content: ""; position: absolute; inset: -12% -18% -12% -30%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(15,17,19,.82), rgba(15,17,19,.55) 55%, transparent);
  }
  .hero__media {
    position: absolute; z-index: 1; pointer-events: none; padding: 0;
    right: 0; top: 50%; translate: 0 -52%;
    width: min(660px, 45vw);
  }
  .hero__media .cad { width: 100%; margin: 0; }
  .hero__media .hero__cap { left: auto; right: 0; bottom: -30px; }
}
@media (min-width: 861px) and (max-width: 1199px) {
  .cad__title { display: none; }
}

/* ---------- Hero CAD drawing (generated by tools/build-hero-cad.js) ---------- */
.cad { display: block; width: 112%; max-width: none; height: auto; margin-left: -6%; overflow: visible; }
/* stages (set by cad.js): s-draw → s-solid → s-final */
.cad__grid { opacity: 0; transition: opacity 1.2s ease; }
.cad.s-solid .cad__grid { opacity: .16; }
.cad__grid path { fill: none; stroke: var(--alu); stroke-width: 5; }
.cad .f {
  fill: color-mix(in srgb, var(--alu) calc(var(--sh) * 100%), var(--ink)); fill-opacity: var(--fo, 0);
  stroke: var(--alu-hi); stroke-width: 15; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.cad .f.s { stroke: none; }
.cad .l {
  fill: none; stroke: var(--alu); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.cad.s-draw .f, .cad.s-draw .l { animation: cadDraw 1s var(--ease) var(--d) forwards; }
.cad.s-drawn .f, .cad.s-drawn .l { animation: none; stroke-dashoffset: 0; }
.cad__hidden { fill: none; stroke: var(--alu); stroke-width: 6; stroke-dasharray: 34 26; opacity: 0; transition: opacity 1s ease .3s; }
.cad.s-final .cad__hidden { opacity: .22; }
.cad__centre { fill: none; stroke: var(--red-hi); stroke-width: 5; stroke-dasharray: 120 30 16 30; opacity: 0; transition: opacity .8s ease; }
.cad.s-final .cad__centre { opacity: 1; }
.cad .dim__ext, .cad .dim__line { fill: none; stroke: var(--red-hi); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cad.s-final .dim__ext, .cad.s-final .dim__line { animation: cadDraw .9s var(--ease) var(--d) forwards; }
.cad .dim__ext { stroke-width: 6; opacity: .7; }
.cad .dim__line { stroke-width: 9; }
.cad .dim__label { opacity: 0; }
.cad.s-final .dim__label { animation: cadFade .5s ease calc(var(--d) + .5s) forwards; }
.cad .dim__label rect { fill: var(--ink); stroke: var(--red-hi); stroke-width: 6; }
.cad .dim__label text { fill: var(--red-hi); font-family: var(--mono); font-size: 190px; font-weight: 500; letter-spacing: .02em; }
.cad__axes .ax { stroke: var(--alu); stroke-width: 7; opacity: .7; }
.cad__axes .ax--x { stroke: var(--red-hi); opacity: 1; }
.cad__axes text, .cad__title text { fill: var(--text-inv-mute); font-family: var(--mono); font-size: 120px; letter-spacing: .06em; }
.cad__axes, .cad__title { opacity: 0; transition: opacity .8s ease .4s; }
.cad.s-final .cad__axes, .cad.s-final .cad__title { opacity: 1; }
.cad__title rect, .cad__title path { fill: none; stroke: var(--text-inv-mute); stroke-width: 5; }
.cad__title .cad__t1 { fill: var(--alu-hi); font-weight: 500; }
.hero__cap { opacity: 0; transition: opacity .8s ease .6s; }
.hero-go .hero__cap { opacity: 1; }
.hero__media { will-change: transform; transform-origin: 50% 50%; }

/* hero copy waits for the drawing (html.js = scripts on; html.hero-go = start) */
.eyebrow { opacity: 0; animation: fade .7s var(--ease) forwards; }
.js:not(.hero-go) .hero__title .line > span,
.js:not(.hero-go) .hero__title em,
.js:not(.hero-go) .hero__lead,
.js:not(.hero-go) .hero__actions,
.js:not(.hero-go) .eyebrow { animation-play-state: paused; }
.js:not(.hero-go) .hero__copy::before { opacity: 0; }
.hero__copy::before { transition: opacity .8s ease; }
@keyframes cadDraw { to { stroke-dashoffset: 0; } }
@keyframes cadFill { to { fill-opacity: 1; } }
@keyframes cadFade { to { opacity: 1; } }
@keyframes cadHidden { to { opacity: .22; } }
.hero__cap { position: absolute; left: 0; bottom: 4px; color: var(--text-inv-mute); font-size: 11px; }

/* Ticker */
.ticker { position: relative; border-block: 1px solid var(--line); background: var(--graphite); overflow: hidden; }
.ticker__track {
  display: flex; align-items: center; gap: 28px; width: max-content; padding: 18px 0;
  animation: marquee 38s linear infinite;
}
.ticker span { font-size: clamp(22px, 2.6vw, 36px); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 70; color: var(--alu); white-space: nowrap; }
.ticker i { font-style: normal; color: var(--red); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { background: var(--graphite); color: var(--text-inv); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 52px) clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(40px, 5vw, 72px); font-weight: 900; line-height: 1; font-variation-settings: "wdth" 70; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: .9rem; color: var(--text-inv-mute); max-width: 18em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section--dark { background: var(--ink); color: var(--text-inv); }
.section--paper { background: var(--paper-2); }
.section--red { background: var(--red); color: #fff; }
.section--slim { padding-block: clamp(56px, 7vw, 96px); }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 980px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section__head--row .section__lead { max-width: 30em; margin: 0; }
.section__lead { font-size: clamp(16px, 1.2vw, 19px); color: var(--text-mute); max-width: 40em; margin-top: 22px; }
.section--dark .section__lead { color: var(--text-inv-mute); }
.index { display: flex; align-items: center; gap: 14px; color: var(--red); margin-bottom: 22px; font-weight: 500; }
.section--red .index { color: #fff; }
.index .rule {
  width: 64px; height: 9px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) 0 0 / 100% 100% no-repeat;
  opacity: .8;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Cards (felépítmények) ---------- */
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.card {
  grid-column: span 4; color: inherit; text-decoration: none; position: relative; display: flex; flex-direction: column; text-align: left;
  background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 0; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(15,17,19,.4); border-color: transparent; }
.card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__n { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--alu-hi); padding: 4px 8px; font-family: var(--mono); font-size: 11px; border-radius: 2px; }
.card__count { position: absolute; bottom: 12px; right: 12px; background: rgba(15,17,19,.7); color: #fff; padding: 4px 8px; font-family: var(--mono); font-size: 11px; border-radius: 2px; backdrop-filter: blur(4px); }
.card__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 22px 22px; flex: 1; }
.card__body h3 { text-transform: uppercase; font-variation-settings: "wdth" 78; font-size: clamp(22px, 2vw, 30px); }
.card__body p { margin: 8px 0 0; font-size: .92rem; color: var(--text-mute); line-height: 1.45; }
.card__go {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line-dark); font-size: 18px; transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease);
}
.card:hover .card__go { background: var(--red); color: #fff; border-color: var(--red); transform: rotate(-45deg); }
.card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card:hover::after { transform: scaleX(1); }

/* ---------- Services ---------- */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service__head {
  width: 100%; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px;
  padding: clamp(18px, 2.2vw, 28px) 0; background: none; border: 0; text-align: left; color: inherit;
}
.service__n { color: var(--text-inv-mute); }
.service__title { font-size: clamp(24px, 3.4vw, 50px); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 70; line-height: 1; transition: transform .45s var(--ease), color .3s; }
.service__plus { width: 36px; height: 36px; position: relative; }
.service__plus::before, .service__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: currentColor; translate: -50% -50%; transition: transform .4s var(--ease); }
.service__plus::after { transform: rotate(90deg); }
.service.is-open .service__plus::after { transform: rotate(0); }
.service__head:hover .service__title { transform: translateX(12px); color: var(--red-hi); }
.service__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.service.is-open .service__panel { grid-template-rows: 1fr; }
.service__panel > div { overflow: hidden; }
.service__content { display: grid; grid-template-columns: 70px 1fr 280px; gap: 20px; padding-bottom: 32px; }
.service__content p { color: var(--alu); max-width: 46em; grid-column: 2; margin: 0; }
.service__content ul { grid-column: 2; margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service__content li { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--alu); }
.service__content img { grid-column: 3; grid-row: 1 / span 2; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }

.services__float {
  position: fixed; left: 0; top: 0; z-index: 5; width: 300px; aspect-ratio: 4/3; pointer-events: none;
  border-radius: var(--radius); overflow: hidden; opacity: 0; scale: .8;
  transition: opacity .3s var(--ease), scale .4s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.services__float.is-on { opacity: 1; scale: 1; }
.services__float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about h2 { font-size: clamp(32px, 4.2vw, 62px); margin-bottom: 28px; }
.about__copy p { color: var(--text-mute); }
.about__copy strong { color: var(--text); }
.about__sig { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--red); }
.about__sig .mono { font-size: 14px; font-weight: 500; color: var(--text); }
.about__media { margin: 0; position: relative; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about__media figcaption { margin-top: 12px; color: var(--text-mute); font-size: 11px; }

.tip {
  margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: clamp(24px, 3vw, 40px); background: var(--ink); color: var(--text-inv); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.tip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.tip__label { color: var(--red-hi); padding-top: 6px; }
.tip__text { font-size: clamp(19px, 1.9vw, 28px); line-height: 1.35; margin: 0; font-weight: 500; letter-spacing: -.01em; }
.tip__text em { font-style: normal; color: var(--red-hi); }

.process { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process::before { /* line that draws in */
  content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 2px; background: var(--red);
  transform: scaleX(var(--draw, 0)); transform-origin: left; transition: transform 1.6s var(--ease);
}
.process.is-in::before { --draw: 1; }
.process li { padding-right: 24px; position: relative; }
.process__n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--red); color: var(--red); font-weight: 500; position: relative; z-index: 1; }
.process h3 { margin: 22px 0 10px; text-transform: uppercase; font-variation-settings: "wdth" 80; }
.process p { color: var(--text-mute); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px var(--gutter) 24px;
  scrollbar-width: thin; scrollbar-color: var(--red) transparent; cursor: grab;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.gallery.is-drag, .gallery.is-wheel { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-wheel { cursor: grab; }
.gallery.is-drag .shot { pointer-events: none; }
.shot {
  flex: none; scroll-snap-align: start; height: clamp(260px, 42vw, 520px); margin: 0; padding: 0; border: 0; background: var(--paper);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.shot img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: saturate(.9); }
.shot:hover img { transform: scale(1.04); filter: saturate(1.05); }
.shot span { position: absolute; left: 10px; bottom: 10px; background: rgba(15,17,19,.75); color: #fff; padding: 4px 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; border-radius: 2px; opacity: 0; transform: translateY(6px); transition: .35s var(--ease); }
.shot:hover span, .shot:focus-visible span { opacity: 1; transform: none; }
.gallery__hint { display: flex; justify-content: space-between; align-items: center; color: var(--text-mute); margin-top: 6px; }
.gallery__nav { display: flex; gap: 8px; }
.gallery__nav .slider__btn { border-color: var(--line-dark); color: var(--text); }
.gallery__nav .slider__btn:hover { color: #fff; }
.gallery__nav .slider__btn:disabled { opacity: .3; pointer-events: none; }
@media (hover: none) { .gallery__nav { display: none; } }

/* ---------- Career ---------- */
.career { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.career h2 { margin-bottom: 20px; }
.career { align-items: center; }
.career p { max-width: 34em; margin: 0; }
.career__cta { display: grid; justify-items: start; gap: 14px; }
.career__cta .mono { opacity: .8; font-size: 11px; }
.btn--light { --bg: #fff; --fg: var(--red); padding: 1.2em 2em; font-size: 1.05rem; }
.btn--light:hover { color: #fff; }

/* ---------- CV dialog ---------- */
.cv {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: 6px;
  background: var(--graphite); color: var(--text-inv); overflow-y: auto;
}
.cv::backdrop { background: rgba(10, 11, 13, .82); backdrop-filter: blur(6px); }
.cv[open] { animation: pop .5s var(--ease); }
.cv__form { border: 0; border-radius: 0; }
.cv__form .index { margin-bottom: 12px; }
.cv__title { font-size: clamp(28px, 3.4vw, 44px); text-transform: uppercase; font-variation-settings: "wdth" 70; font-weight: 900; padding-right: 48px; }
.drop {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px;
  padding: 20px; border: 1.5px dashed rgba(255,255,255,.28); border-radius: var(--radius); background: var(--ink);
  cursor: pointer; transition: border-color .25s, background .25s;
}
.drop:hover, .drop.is-over { border-color: var(--red-hi); background: #16120f; }
.drop.is-invalid { border-color: var(--red-hi); }
.drop.has-file { border-style: solid; border-color: #3f8f5a; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop__icon { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 20px; transition: transform .35s var(--ease); }
.drop:hover .drop__icon, .drop.is-over .drop__icon { transform: translateY(-3px); }
.drop__text { display: grid; }
.drop__text small { color: var(--text-inv-mute); }
.drop__file { grid-column: 2; color: #7fd89a; font-size: 12px; word-break: break-all; }
.drop__file:empty { display: none; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(32px, 4.4vw, 64px); }
.contact__list { margin: 36px 0 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact__list > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { color: var(--text-inv-mute); padding-top: 4px; }
.contact__list dd { margin: 0; font-size: 1.1rem; font-weight: 600; }
.contact__list a { text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.contact__list a:hover { background-size: 100% 2px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.social { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--alu); font-weight: 600; }
.social svg { width: 34px; height: 34px; padding: 6px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.social:hover svg { background: var(--red); border-color: var(--red); color: #fff; }

.form { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-inv-mute); padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text-inv); background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-hi); box-shadow: 0 0 0 3px rgba(200,54,29,.25); }
.field textarea::placeholder { color: #5b6168; }
.field .is-invalid { border-color: var(--red-hi); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 100px; font-size: .86rem; color: var(--alu);
  transition: background .25s, border-color .25s, color .25s; cursor: pointer;
}
.chips input:hover + span { border-color: var(--alu); }
.chips input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-inv-mute); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
.check a { color: var(--alu-hi); }
.form__status { margin: 0; min-height: 1.5em; font-size: .95rem; }
.form__status.ok { color: #7fd89a; }
.form__status.err { color: #ff8a73; }
.form.is-sending .btn { opacity: .7; pointer-events: none; }

.map { margin-top: clamp(48px, 6vw, 80px); height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--graphite); }
.map__load {
  position: absolute; inset: 0; width: 100%; border: 0; display: grid; place-content: center; gap: 8px; text-align: center; color: var(--text-inv);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--graphite);
}
.map__load b { font-size: clamp(24px, 3vw, 40px); text-transform: uppercase; font-variation-settings: "wdth" 72; transition: color .25s; }
.map__load:hover b { color: var(--red-hi); }
.map__load .mono { color: var(--red-hi); }
.map__load small { color: var(--text-inv-mute); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.9) invert(.92) contrast(.9); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--text-inv); border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 40px; align-items: start; }
.footer__brand { font-size: 32px; font-weight: 900; font-variation-settings: "wdth" 70; letter-spacing: .03em; line-height: 1; margin-bottom: 14px; }
.footer__brand span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-inv-mute); font-weight: 400; margin-top: 6px; }
.footer__eu summary { cursor: pointer; color: var(--alu); margin-bottom: 12px; }
.footer__eu-body { color: var(--text-inv-mute); font-size: .85rem; }
.footer__infoblokk { width: 220px; border-radius: 2px; margin-top: 8px; }
.footer__links { display: grid; gap: 8px; justify-items: end; text-align: right; }
.footer__links a { text-decoration: none; color: var(--alu); }
.footer__links a:hover { color: var(--red-hi); }

/* ---------- Modal ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; }
.modal {
  width: min(1180px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: 6px;
  background: var(--paper); color: var(--text); overflow: hidden;
}
.modal::backdrop, .lightbox::backdrop { background: rgba(10, 11, 13, .82); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .5s var(--ease); }
.modal[open]::backdrop { animation: fadeIn .4s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
.modal__inner { display: grid; grid-template-columns: 1.35fr 1fr; height: min(760px, calc(100dvh - 32px)); }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--ink); color: #fff; font-size: 16px; transition: background .25s, transform .35s var(--ease);
}
.modal__close:hover { background: var(--red); transform: rotate(90deg); }
.modal__media { position: relative; background: var(--ink); min-height: 0; display: flex; flex-direction: column; }
.slider { position: relative; flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 320px; }
.slider::-webkit-scrollbar { display: none; }
.slider img { flex: none; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.slider__nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; color: var(--alu); background: var(--ink); }
.slider__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; color: #fff; transition: background .25s, border-color .25s; }
.slider__btn:hover { background: var(--red); border-color: var(--red); }
.modal__body { padding: clamp(24px, 3vw, 44px); overflow-y: auto; }
.modal__idx { color: var(--red); margin-bottom: 14px; }
.modal__body h3 { font-size: clamp(30px, 3.4vw, 48px); text-transform: uppercase; font-variation-settings: "wdth" 70; font-weight: 900; margin-bottom: 18px; padding-right: 40px; }
.modal__lead { color: var(--text-mute); }
.modal__body h4 { color: var(--text-mute); margin: 26px 0 10px; font-weight: 500; }
.modal__specs { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line-dark); }
.modal__specs li { padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line-dark); position: relative; font-size: .95rem; }
.modal__specs li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 2px; background: var(--red); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; background: transparent; display: none; place-items: center; overflow: hidden; }
.lightbox[open] { display: grid; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: 4px; animation: pop .45s var(--ease); }
.lightbox__close, .lightbox__btn { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(15,17,19,.6); color: #fff; font-size: 18px; transition: background .25s; }
.lightbox__close:hover, .lightbox__btn:hover { background: var(--red); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__btn--prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__cap { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--alu); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .card { grid-column: span 6; }
  .card:last-child { grid-column: span 12; }
  .card:last-child .card__img { aspect-ratio: 21 / 9; }
  .service__content { grid-template-columns: 1fr 240px; }
  .service__content p, .service__content ul { grid-column: 1; }
  .service__content img { grid-column: 2; }
  .service__head { grid-template-columns: 50px 1fr auto; }
}
@media (max-width: 860px) {
  .hero__grid, .about, .career, .contact, .footer__grid { grid-template-columns: 1fr; }
  .cad { width: 100%; margin-left: 0; }
  .cad__title { display: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tip { grid-template-columns: 1fr; gap: 12px; }
  .career { gap: 28px; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .process::before { display: none; }
  .modal__inner { grid-template-columns: 1fr; overflow-y: auto; height: auto; max-height: calc(100dvh - 32px); }
  .modal__media { height: 50vh; flex: none; }
  .modal__body { overflow: visible; }
  .footer__links { justify-items: start; text-align: left; }
  .about__media img { aspect-ratio: 4/3; }
}
@media (max-width: 640px) {
  .card, .card:last-child { grid-column: span 12; }
  .card:last-child .card__img { aspect-ratio: 4 / 3; }
  .form__row { grid-template-columns: 1fr; }
  .service__head { grid-template-columns: 1fr auto; }
  .service__n { display: none; }
  .service__content { grid-template-columns: 1fr; }
  .service__content img { grid-column: 1; grid-row: auto; order: -1; }
  .contact__list > div { grid-template-columns: 1fr; gap: 4px; }
  .process { grid-template-columns: 1fr; }
  .lightbox img { max-width: calc(100vw - 24px); }
  .lightbox__btn { top: auto; bottom: 14px; translate: none; }
    .map { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu__nav a, .menu__foot { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .cad .f, .cad .l, .cad .dim__ext, .cad .dim__line { stroke-dashoffset: 0; fill-opacity: 1; }
  .cad__centre, .cad .dim__label, .cad__axes, .cad__title, .hero__cap, .eyebrow { opacity: 1; }
  .cad__grid { opacity: .16; }
  .cad__hidden { opacity: .22; }
}

/* ---------- Cookie consent banner ---------- */
.cc {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(560px, calc(100vw - 32px));
  opacity: 0; transform: translateY(24px); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.cc.is-open { opacity: 1; transform: none; }
.cc__box {
  background: var(--graphite); color: var(--text-inv); border: 1px solid var(--line); border-radius: 6px;
  padding: 22px 22px 18px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); position: relative; overflow: hidden;
  max-height: calc(100dvh - 32px); overflow-y: auto;
}
.cc__box::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--red); }
.cc__title { font-size: 22px; font-weight: 900; text-transform: uppercase; font-variation-settings: "wdth" 72; margin: 0 0 8px; }
.cc__text { font-size: .88rem; line-height: 1.55; color: var(--alu); margin: 0 0 16px; }
.cc__text a { color: #fff; }
.cc__prefs { display: grid; gap: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.cc__prefs[hidden] { display: none; }
.cc__opt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.cc__opt b { display: block; font-size: .95rem; }
.cc__opt small { display: block; color: var(--text-inv-mute); font-size: .8rem; line-height: 1.45; margin-top: 2px; }
.cc__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc__opt i { width: 42px; height: 24px; border-radius: 99px; background: var(--steel); position: relative; transition: background .25s; flex: none; }
.cc__opt i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.cc__opt input:checked + i { background: var(--red); }
.cc__opt input:checked + i::after { transform: translateX(18px); }
.cc__opt input:disabled + i { opacity: .55; }
.cc__opt input:focus-visible + i { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.cc__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc__btn {
  flex: 1 1 auto; padding: 11px 14px; border-radius: var(--radius); border: 1.5px solid rgba(255,255,255,.3); background: transparent; color: #fff;
  font-weight: 700; font-size: .82rem; letter-spacing: .02em; text-transform: uppercase; transition: background .25s, border-color .25s, color .25s;
}
.cc__btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cc__btn--primary { background: var(--red); border-color: var(--red); }
.cc__btn--primary:hover { background: var(--red-hi); border-color: var(--red-hi); color: #fff; }
.cc__btn[hidden] { display: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--alu); font: inherit; text-align: inherit; }
.link-btn:hover { color: var(--red-hi); }
@media (max-width: 640px) {
  .cc { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .cc__btn { flex: 1 1 100%; }
}

/* ---------- Reels (vertical videos) ---------- */
.reels-section .section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.reels__nav { display: flex; gap: 8px; }
.reels__nav .slider__btn:disabled { opacity: .3; pointer-events: none; }
.reels {
  display: flex; gap: clamp(10px, 1.2vw, 16px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 8px;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none; cursor: grab;
}
.reels::-webkit-scrollbar { display: none; }
.reels.is-drag { cursor: grabbing; }
.reels.is-drag .reel { pointer-events: none; }
.reel {
  flex: none; width: clamp(200px, 21vw, 290px); aspect-ratio: 9 / 16; scroll-snap-align: start;
  position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--graphite); color: #fff; text-align: left; isolation: isolate;
  transition: transform .5s var(--ease), border-color .3s;
}
.reel:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.3); }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.reel:hover video { transform: scale(1.04); }
.reel::after { /* legibility gradient */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,17,19,.35) 0%, transparent 22%, transparent 55%, rgba(15,17,19,.9) 100%);
}
.reel__badge {
  position: absolute; top: 12px; left: 12px; font-size: 10px; padding: 4px 8px; border-radius: 2px;
  background: var(--red); color: #fff; letter-spacing: .1em; display: none;
}
.reel.is-missing .reel__badge { display: inline-block; }
.reel.is-missing video { filter: grayscale(.6) brightness(.75); }
.reel__play {
  position: absolute; top: 50%; left: 50%; width: 62px; height: 62px; translate: -50% -50%; border-radius: 50%;
  display: grid; place-items: center; background: rgba(15,17,19,.45); border: 1.5px solid rgba(255,255,255,.7);
  backdrop-filter: blur(6px); transition: opacity .35s, transform .45s var(--ease), background .25s;
}
.reel__play svg { width: 24px; height: 24px; margin-left: 3px; }
.reel:hover .reel__play { background: var(--red); border-color: var(--red); transform: scale(1.08); }
.reel.is-playing:not(:hover) .reel__play { opacity: 0; transform: scale(.8); }
.reel__meta { position: absolute; left: 14px; right: 14px; bottom: 18px; display: grid; gap: 4px; }
.reel__meta .mono { font-size: 10px; color: var(--alu); }
.reel__meta b { font-size: 1.02rem; line-height: 1.25; font-weight: 700; }
.reel__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.reel__progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

.reel-player__frame { margin: 0; display: grid; justify-items: center; gap: 12px; }
.reel-player video {
  height: min(calc(100dvh - 120px), 860px); aspect-ratio: 9 / 16; width: auto; max-width: calc(100vw - 140px);
  background: #000; border-radius: 10px; object-fit: contain; animation: pop .45s var(--ease);
}
.reel-player__missing {
  height: min(calc(100dvh - 120px), 860px); aspect-ratio: 9 / 16; display: grid; place-items: center; margin: 0;
  border: 1px dashed rgba(255,255,255,.3); border-radius: 10px; color: var(--alu); max-width: calc(100vw - 140px);
}
.reel-player__missing[hidden] { display: none; }
.reel-player .lightbox__cap { position: static; }
@media (max-width: 640px) {
  .reel { width: 62vw; }
  .reel-player video, .reel-player__missing { max-width: calc(100vw - 24px); height: auto; width: calc(100vw - 24px); max-height: calc(100dvh - 140px); }
}

/* Mouse/trackpad: no snapping in horizontal strips – snapping after a wheel/drag stop made them jump */
@media (hover: hover) and (pointer: fine) {
  .gallery, .gallery.is-wheel, .reels { scroll-snap-type: none; }
}
