/* ==========================================================================
   KOBIM — Metalne konstrukcije, Zrenjanin
   Design system: "Radionički crtež" (workshop drawing)
   Vanilla CSS. Mobile first.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Warm graphite — matches the logo's black banner, not pure black */
  --ink-900: #101214;
  --ink-800: #15181c;
  --ink-700: #1b1f24;
  --ink-600: #222730;
  --line-dark: #2c333c;
  --line-dark-soft: rgba(255, 255, 255, .08);

  /* Galvanized paper */
  --paper-100: #f5f5f4;
  --paper-200: #eceded;
  --paper-300: #dcdedf;
  --line-paper: #c7cacc;

  /* Type colors */
  --txt-hi: #f2f4f6;
  --txt-mid: #a7b2be;
  --txt-low: #6d7a88;
  --txt-ink: #11171e;
  --txt-ink-mid: #4c5866;

  /* Derived from the logo */
  --molten: #ef4123;   /* primary accent — the red-orange in KOBIM lettering */
  --molten-soft: rgba(239, 65, 35, .14);
  --ember: #f7941d;    /* secondary — the orange in the gradient */
  --spark: #fdb913;    /* amber — the welding sparks; highlights only */
  --spark-soft: rgba(253, 185, 19, .12);
  --brand-grad: linear-gradient(100deg, #ef4123, #f7941d);

  /* Type */
  --f-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --f-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Scale */
  --fs-xs: .6875rem;
  --fs-sm: .8125rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.85rem);
  --fs-3xl: clamp(2.2rem, 1.5rem + 3vw, 4.15rem);
  --fs-hero: clamp(2.35rem, 1.1rem + 5.6vw, 5.05rem);

  /* Space */
  --gut: clamp(1.25rem, .6rem + 2.6vw, 4rem);
  --sect-y: clamp(4.5rem, 3rem + 6vw, 9.5rem);
  --maxw: 1440px;

  /* Motion */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.65, .05, .2, 1);
  --t-fast: .28s;
  --t-mid: .55s;
  --t-slow: .9s;

  --hdr-h: 68px;
}

@media (min-width: 900px) { :root { --hdr-h: 84px; } }

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
}
body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.62;
  color: var(--txt-hi);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--molten); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--molten); color: #fff; }

/* ---------- 3. TYPE PRIMITIVES ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.h-hero { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-hero); line-height: .88; letter-spacing: -.035em; text-transform: uppercase; }
.h-1 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-3xl); line-height: .94; letter-spacing: -.03em; text-transform: uppercase; }
.h-2 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-2xl); line-height: 1; letter-spacing: -.025em; text-transform: uppercase; }
.h-3 { font-size: var(--fs-xl); }

/* Dimension callout — the structural device of the whole site */
.dim {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-low);
  display: inline-flex;
  align-items: center;
  gap: .35em .6em;
  flex-wrap: wrap;
}
.dim::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}
.dim--accent { color: var(--molten); }
.dim--plain::before { display: none; }

.lead { font-size: var(--fs-lg); color: var(--txt-mid); max-width: 58ch; }
.muted { color: var(--txt-mid); }
.mono { font-family: var(--f-mono); font-size: var(--fs-sm); letter-spacing: .04em; }

/* ---------- 4. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sect-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }

/* Paper (light) surfaces */
.paper {
  background: var(--paper-200);
  color: var(--txt-ink);
  --txt-hi: var(--txt-ink);
  --txt-mid: var(--txt-ink-mid);
  --txt-low: #7b8794;
  --line-dark-soft: rgba(16, 18, 20, .1);
  --line-dark: var(--line-paper);
}

/* Engineering hairline grid overlay */
.grid-lines {
  position: absolute; inset: 0;
  pointer-events: none;
  display: none;
}
@media (min-width: 900px) {
  .grid-lines { display: block; }
  .grid-lines i {
    position: absolute; top: 0; bottom: 0; width: 1px;
    background: var(--line-dark-soft);
  }
  .grid-lines i:nth-child(1) { left: 25%; }
  .grid-lines i:nth-child(2) { left: 50%; }
  .grid-lines i:nth-child(3) { left: 75%; }
}

.section-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.2rem, 1.4rem + 3vw, 4.2rem);
  border-top: 1px solid var(--line-dark);
  padding-top: 1.4rem;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
  .section-head .section-head__aside { padding-top: .5rem; }
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  --btn-bg: var(--brand-grad);   /* the one gradient moment — mirrors the logo lettering */
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  padding: 1.05em 1.7em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out);
  will-change: transform;
}
.btn span { position: relative; z-index: 2; }
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: #fff;
  transform: translateY(101%);
  transition: transform .45s var(--e-out);
  z-index: 1;
}
.btn:hover { box-shadow: 0 14px 34px -14px rgba(239, 65, 35, .7); }
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--ink-900); }
.btn:active { transform: scale(.97); }

.btn--ghost {
  --btn-bg: none;   /* ghost stays flat — the gradient belongs to the primary button only */
  --btn-fg: var(--txt-hi);
  border: 1px solid var(--line-dark);
}
.btn--ghost::after { background: var(--txt-hi); }
.btn--ghost:hover { color: var(--ink-900); box-shadow: none; border-color: transparent; }
.paper .btn--ghost::after { background: var(--ink-900); }
.paper .btn--ghost:hover { color: var(--paper-100); }

.btn--lg { padding: 1.25em 2.2em; }
.btn__arrow { display: inline-block; transition: transform var(--t-fast) var(--e-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Text link with underline sweep */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-bottom: .35em;
}
.tlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; transform-origin: right;
  transform: scaleX(1); transition: transform .5s var(--e-out);
}
.tlink:hover::after { transform: scaleX(0); transform-origin: left; }
.tlink:hover { color: var(--molten); }

/* ---------- 6. PRELOADER ---------- */
.preload {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink-900);
  display: grid; place-items: center;
  transition: opacity .6s var(--e-out), visibility .6s;
}
.preload.is-done { opacity: 0; visibility: hidden; }
.preload__inner { width: min(78vw, 340px); text-align: center; }
.preload__mark { margin-bottom: 1.6rem; display: grid; place-items: center; }
/* Raster lockup — fade + slight scale. A bitmap cannot be stroke-drawn. */
.preload__mark img {
  width: min(100%, 268px); height: auto;
  opacity: 0; transform: scale(.94);
  animation: markIn 1.1s var(--e-out) forwards;
}
@keyframes markIn { to { opacity: 1; transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.preload__bar { height: 2px; background: var(--line-dark); position: relative; overflow: hidden; }
.preload__bar i { position: absolute; inset: 0 100% 0 0; background: var(--molten); transition: right .25s linear; }
.preload__meta { display: flex; justify-content: space-between; margin-top: .7rem; }

/* ---------- 7. CURSOR ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0;
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    pointer-events: none; z-index: 9000;
    transition: width .3s var(--e-out), height .3s var(--e-out), margin .3s var(--e-out), background-color .3s, border-color .3s, opacity .3s;
    will-change: transform;
  }
  .cursor.is-paper { border-color: rgba(16, 18, 20, .4); }
  .cursor.is-hot { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: var(--molten-soft); border-color: var(--molten); }
  .cursor-dot {
    display: block; position: fixed; top: 0; left: 0;
    width: 4px; height: 4px; margin: -2px 0 0 -2px;
    background: var(--molten); border-radius: 50%;
    pointer-events: none; z-index: 9001;
  }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ---------- 8. HEADER ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  height: var(--hdr-h);
  display: flex; align-items: center;
  background: rgba(16, 18, 20, 0);
  transition: background-color .45s var(--e-out), backdrop-filter .45s, border-color .45s, transform .5s var(--e-out);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(16, 18, 20, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line-dark);
}
.hdr.is-hidden { transform: translateY(-101%); }
.hdr__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* The mark is the real KOBIM wordmark (welder inside the O). It carries its own
   dark outline, so the single file reads on --ink-900 and on .paper alike.
   The banner/tagline is NOT baked in — it stays live text, legible at any size. */
.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo__img { height: 28px; width: auto; flex: none; }
@media (min-width: 900px) { .logo__img { height: 34px; } }
.logo__sub {
  display: none;
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .18em;
  color: var(--txt-low); text-transform: uppercase; line-height: 1.2;
  padding-left: .65rem; border-left: 1px solid var(--line-dark);
  max-width: 11ch;
}
@media (min-width: 620px) { .logo__sub { display: block; } }

/* Footer has room for the full lockup, tagline included */
.ftr .logo { display: block; }
.ftr .logo__img { height: auto; width: min(210px, 62vw); }
.ftr .logo__sub { display: none; }

.nav { display: none; }
@media (min-width: 980px) {
  .nav { display: flex; align-items: center; gap: clamp(1.1rem, .4rem + 1.4vw, 2.4rem); }
  .nav a {
    position: relative;
    font-family: var(--f-mono);
    font-size: var(--fs-sm);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--txt-mid);
    padding: .4rem 0;
    transition: color var(--t-fast);
  }
  .nav a::before {
    content: attr(data-idx);
    position: absolute; top: -.55rem; left: 0;
    font-size: .55rem; color: var(--molten); opacity: 0;
    transition: opacity var(--t-fast), transform var(--t-fast);
    transform: translateY(4px);
  }
  .nav a:hover, .nav a.is-active { color: var(--txt-hi); }
  .nav a:hover::before, .nav a.is-active::before { opacity: 1; transform: translateY(0); }
  .nav a.is-active { color: var(--molten); }
}
.hdr__cta { display: none; }
@media (min-width: 1180px) { .hdr__cta { display: inline-flex; } }

/* Language switcher — sits in the header's right cluster, before the CTA */
.hdr__right { display: flex; align-items: center; gap: .7rem; }
.lang {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line-dark); border-radius: 2px;
  overflow: hidden; flex: none;
}
.lang__opt {
  font-family: var(--f-mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .5rem .6rem; line-height: 1;
  color: var(--txt-low); background: transparent;
  transition: color .25s var(--e-out), background-color .25s var(--e-out);
}
.lang__opt + .lang__opt { border-left: 1px solid var(--line-dark); }
.lang__opt:hover:not([aria-disabled="true"]):not([aria-current="true"]) { color: var(--txt-hi); }
.lang__opt[aria-current="true"] { color: #fff; background: var(--molten); }
.lang__opt[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.paper .lang__opt[aria-current="true"] { color: #fff; }

.hdr__prog { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--molten); width: 0; }

/* Burger */
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; align-items: flex-end; }
@media (min-width: 980px) { .burger { display: none; } }
.burger i { display: block; height: 1.5px; width: 26px; background: var(--txt-hi); transition: transform .4s var(--e-out), width .4s var(--e-out), opacity .3s; }
.burger i:nth-child(2) { width: 18px; }
body.menu-open .burger i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .burger i:nth-child(2) { opacity: 0; width: 26px; }
body.menu-open .burger i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); width: 26px; }

/* Mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 790;
  background: var(--ink-800);
  padding: calc(var(--hdr-h) + 2rem) var(--gut) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--e-out);
  overflow-y: auto;
}
body.menu-open .mmenu { clip-path: inset(0 0 0 0); }
body.menu-open { overflow: hidden; }
.mmenu__list li { border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.mmenu__list a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--f-display); font-size: clamp(1.6rem, 1rem + 4vw, 2.6rem);
  text-transform: uppercase; letter-spacing: -.02em; line-height: 1;
  transform: translateY(110%);
  transition: transform .6s var(--e-out), color var(--t-fast);
}
body.menu-open .mmenu__list a { transform: translateY(0); }
.mmenu__list li:nth-child(1) a { transition-delay: .12s; }
.mmenu__list li:nth-child(2) a { transition-delay: .18s; }
.mmenu__list li:nth-child(3) a { transition-delay: .24s; }
.mmenu__list li:nth-child(4) a { transition-delay: .3s; }
.mmenu__list li:nth-child(5) a { transition-delay: .36s; }
.mmenu__list a em { font-family: var(--f-mono); font-style: normal; font-size: .7rem; color: var(--molten); letter-spacing: .1em; }
.mmenu__list a:hover, .mmenu__list a.is-active { color: var(--molten); }
.mmenu__foot { padding-top: 2rem; display: grid; gap: .6rem; }
.mmenu__foot a { font-family: var(--f-mono); font-size: var(--fs-sm); letter-spacing: .06em; }

/* ---------- 9. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--hdr-h) + 2.5rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 6rem);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: var(--ink-900);
}

/* ---- 9a. HERO PHOTO SLIDER ----
   Layers, bottom to top: slides(0) · scrim(1) · spark canvas(2) · content(3) · dots(5) */
.hero__slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.2s var(--e-io);
  will-change: opacity, transform;
}
/* Ken Burns runs exactly as long as the slide is held, so the outgoing frame
   is already at 1.08 when .is-out takes over — no snap mid-crossfade. */
.hero__slide.is-on  { opacity: 1; animation: kenburns 7000ms linear both; }
.hero__slide.is-out { opacity: 0; transform: scale(1.08); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Per-slide scrim boost for photos that are too bright behind the text.
   Applied only to the slides that actually fail measurement. */
.hero__slide::after { content: ""; position: absolute; inset: 0; }
.hero__slide--dim::after { background: rgba(16, 18, 20, .20); }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Mobile: no layer 2, text spans full width. The prescribed .72/.52/.80 measured
     1.8–2.6:1 against these photos (bright hall, sunlit metal, sky), so the stops
     are raised. Mid stays lowest (.62) to keep the photo open where it is best. */
  background: linear-gradient(180deg, rgba(16, 18, 20, .95) 0%, rgba(16, 18, 20, .90) 18%, rgba(16, 18, 20, .62) 46%, rgba(16, 18, 20, .92) 100%);
}
@media (min-width: 900px) {
  .hero__scrim {
    /* text sits left — layer 2 keeps the right side of the photo nearly clean */
    background:
      linear-gradient(90deg, rgba(16, 18, 20, .88) 0%, rgba(16, 18, 20, .55) 46%, rgba(16, 18, 20, .15) 100%),
      linear-gradient(180deg, rgba(16, 18, 20, .72) 0%, rgba(16, 18, 20, .34) 42%, rgba(16, 18, 20, .90) 100%);
  }
}

/* Hero text sits on photography, not flat ink. Tokens tuned for the site's
   flat dark panels do not clear AA here — measured, then raised. */
.hero__eyebrow { color: var(--ember); }


/* Spark motes stay, but low enough not to read as noise over photography */
.hero__canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: .22; }
.hero__inner { position: relative; z-index: 3; width: 100%; }

.hero__dots {
  position: absolute; z-index: 5;
  right: var(--gut); bottom: clamp(1.1rem, .6rem + 1.6vw, 2rem);
  display: flex; align-items: center; gap: .55rem;
}
.hero__dots button {
  width: 24px; height: 30px; padding: 0;   /* 24px hairline, 30px tap target */
  display: grid; place-items: center;
}
.hero__dots button::before {
  content: ""; display: block;
  width: 24px; height: 2px; border-radius: 1px;
  background: rgba(242, 244, 246, .3);
  transition: background-color .45s var(--e-out), height .3s var(--e-out);
}
.hero__dots button:hover::before { background: rgba(242, 244, 246, .6); }
.hero__dots button[aria-current="true"]::before { background: var(--molten); height: 3px; }
.hero__eyebrow { margin-bottom: 1.4rem; }
.hero__title { margin-bottom: 1.6rem; }
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span { display: block; transform: translateY(105%); transition: transform 1s var(--e-out); }
.is-ready .hero__title .ln > span { transform: translateY(0); }
.hero__title .ln:nth-child(2) > span { transition-delay: .1s; }
.hero__title .ln:nth-child(3) > span { transition-delay: .2s; }
.hero__title .thin {
  -webkit-text-stroke: 1.4px var(--txt-hi);
  color: transparent;
}
.hero__title .hot {
  background: var(--brand-grad);          /* same gradient as the primary button */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero__title .hot { background: none; color: var(--molten); }
}
.hero__body { max-width: 46ch; margin-bottom: 2.2rem; opacity: 0; transform: translateY(18px); transition: opacity .8s var(--e-out) .45s, transform .8s var(--e-out) .45s; }
.is-ready .hero__body { opacity: 1; transform: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; opacity: 0; transform: translateY(18px); transition: opacity .8s var(--e-out) .6s, transform .8s var(--e-out) .6s; }
.is-ready .hero__actions { opacity: 1; transform: none; }

.hero__spec {
  margin-top: clamp(2.4rem, 1.5rem + 4vw, 4.5rem);
  border-top: 1px solid var(--line-dark);
  padding-top: 1.4rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--e-out) .75s, transform .8s var(--e-out) .75s;
}
.is-ready .hero__spec { opacity: 1; transform: none; }
@media (min-width: 760px) { .hero__spec { grid-template-columns: repeat(4, 1fr); } }
.hero__spec b { display: block; white-space: nowrap; font-family: var(--f-display); font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); line-height: 1; letter-spacing: -.02em; }
.hero__spec b sup { font-size: .45em; color: var(--molten); vertical-align: super; }
/* --txt-low fails AA at 11px over the hero photography — measured 2.6:1 */
.hero__spec li > span { display: block; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--txt-mid); margin-top: .4rem; }

.hero__scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: .8rem; z-index: 4;
  display: none; flex-direction: column; align-items: center; gap: .5rem;
}
@media (min-width: 900px) { .hero__scroll { display: flex; } }
.hero__scroll i { display: block; width: 1px; height: 40px; background: linear-gradient(var(--molten), transparent); animation: scrollLine 2.2s var(--e-io) infinite; transform-origin: top; }
@keyframes scrollLine { 0%,100% { transform: scaleY(.3); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* Blueprint assembly figure — only where it has a right column to live in,
   sitting over the photo. Below 1100px the photo carries the hero alone. */
.blueprint { display: none; position: relative; }
@media (min-width: 1100px) {
  .hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; }
  .blueprint { display: block; margin-top: 0; }
}
.blueprint svg { width: 100%; height: auto; overflow: visible; }
.bp-line { fill: none; stroke: var(--spark); stroke-width: 1; opacity: .32; stroke-dasharray: 3 4; }
.bp-member { fill: none; stroke: var(--txt-hi); stroke-width: 2.2; stroke-linecap: square; stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.is-ready .bp-member { animation: draw 1.3s var(--e-out) forwards; }
.bp-node { fill: var(--molten); opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-ready .bp-node { animation: nodeIn .5s var(--e-out) forwards; }
@keyframes nodeIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.bp-txt { font-family: var(--f-mono); font-size: 9px; fill: var(--spark); letter-spacing: .1em; opacity: 0; animation: none; }
.is-ready .bp-txt { animation: fadeIn .6s ease forwards 1.2s; }
@keyframes fadeIn { to { opacity: .55; } }

/* Mobile hero: no side scrim, so copy goes to full-strength ink — that buys
   enough contrast to keep the mid-photo scrim light. The stack is also tightened
   so the stat row finishes above the floating dock buttons.
   (Must come after the section-9 rules it overrides — media queries add no specificity.) */
@media (max-width: 899px) {
  .hero { padding-top: calc(var(--hdr-h) + .5rem); }
  .hero__eyebrow { margin-bottom: 1rem; }
  .hero__title { margin-bottom: 1.1rem; }
  .hero__body { color: var(--txt-hi); margin-bottom: 1.4rem; }
  .hero__actions { gap: .6rem; }
  .hero__actions .btn--lg { padding: 1.05em 1.7em; }
  .hero__spec { margin-top: 1.2rem; padding-top: .9rem; gap: .55rem .9rem; }
  .hero__spec b { font-size: 1.4rem; }
  .hero__spec li > span { color: var(--txt-hi); opacity: .82; margin-top: .25rem; }
}

/* ---------- 10. MARQUEE ---------- */
.marquee {
  border-block: 1px solid var(--line-dark);
  padding-block: .9rem;
  overflow: hidden;
  background: var(--ink-800);
}
.marquee__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 1.4rem;
  padding-inline: 1.4rem;
  font-family: var(--f-display); font-size: clamp(.95rem, .8rem + .7vw, 1.5rem);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--txt-mid);
  white-space: nowrap;
}
.marquee__track span::after { content: ""; width: 6px; height: 6px; background: var(--molten); transform: rotate(45deg); flex: none; }

/* ---------- 11. REVEAL UTILITIES ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--e-out), transform .9s var(--e-out); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; } .rv-d4 { transition-delay: .32s; }
.rv-d5 { transition-delay: .4s; }
.rv-clip { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--e-out); }
.rv-clip.in { clip-path: inset(0 0 0 0); }

/* Word-by-word headline reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split .w > i { display: inline-block; font-style: inherit; transform: translateY(105%); transition: transform .85s var(--e-out); }
.split.in .w > i { transform: translateY(0); }

/* ---------- 12. SERVICES ---------- */
.svc-grid { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc {
  position: relative;
  background: var(--ink-900);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
  display: flex; flex-direction: column; gap: .9rem;
  min-height: 260px;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .5s var(--e-out);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, var(--ink-600), var(--ink-800));
  transform: translateY(100%);
  transition: transform .6s var(--e-out);
}
.svc:hover::before { transform: translateY(0); }
.svc__code { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .16em; color: var(--molten); }
.svc__ico { width: 44px; height: 44px; margin-bottom: .3rem; }
.svc__ico svg { width: 100%; height: 100%; stroke: var(--txt-hi); fill: none; stroke-width: 1.3; }
.svc h3 { font-size: 1.22rem; letter-spacing: -.01em; }
.svc p { font-size: var(--fs-sm); color: var(--txt-mid); line-height: 1.65; }
.svc__more { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--txt-low); transition: color .3s, gap .3s; }
.svc:hover .svc__more { color: var(--molten); gap: .85rem; }
.svc__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--molten); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--e-out); }
.svc:hover .svc__rule { transform: scaleX(1); }

/* ---------- 13. SPLIT / ABOUT ---------- */
.split2 { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
@media (min-width: 900px) { .split2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; } }
.split2--wide { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split2--wide { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

.figure-frame { position: relative; }
.figure-frame::before, .figure-frame::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--molten); opacity: .8;
}
.figure-frame::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.figure-frame::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }
/* Photos are 16:9, the blueprints 4:3 — pin a ratio so mixed sources
   never break the grid, and crop rather than letterbox. */
.figure-frame picture { display: block; }
.figure-frame img, .figure-frame > svg {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
}

.facts { display: grid; gap: 0; border-top: 1px solid var(--line-dark); margin-top: 2rem; }
.facts li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
.facts b { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .14em; color: var(--molten); }
.facts span { font-size: var(--fs-sm); color: var(--txt-mid); }

/* ---------- 14. PROCESS ---------- */
.proc { position: relative; display: grid; gap: 0; }
.proc__line { position: absolute; left: 13px; top: 8px; bottom: 8px; width: 1px; background: var(--line-dark); }
.proc__line i { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--molten); transition: height .2s linear; }
@media (min-width: 900px) { .proc__line { left: 17px; } }
.step { position: relative; padding: 0 0 clamp(2rem, 1rem + 3vw, 3.4rem) 3.2rem; }
@media (min-width: 900px) { .step { padding-left: 4.5rem; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem; } }
.step__dot {
  position: absolute; left: 0; top: 2px;
  width: 27px; height: 27px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: var(--ink-900);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .65rem; color: var(--txt-low);
  transition: border-color .4s, color .4s, background-color .4s, box-shadow .4s;
}
@media (min-width: 900px) { .step__dot { width: 35px; height: 35px; font-size: .72rem; } }
.step.in .step__dot { border-color: var(--molten); color: var(--molten); box-shadow: 0 0 0 5px var(--molten-soft); }
.step h3 { font-size: 1.18rem; margin-bottom: .5rem; }
@media (min-width: 900px) { .step h3 { margin-bottom: 0; } }
.step p { font-size: var(--fs-sm); color: var(--txt-mid); }

/* ---------- 15. STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--ink-900); padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); }
.paper .stat { background: var(--paper-200); }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); line-height: 1; letter-spacing: -.03em; }
.stat b sup { font-size: .38em; vertical-align: super; color: var(--molten); }
.stat > span { display: block; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .13em; text-transform: uppercase; color: var(--txt-low); margin-top: .7rem; }

/* ---------- 16. GALLERY ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filters button {
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
  padding: .6rem 1rem; border: 1px solid var(--line-dark); border-radius: 2px;
  color: var(--txt-low); transition: all .3s var(--e-out);
}
.filters button:hover { color: var(--txt-hi); border-color: var(--txt-low); }
.filters button.is-on { background: var(--molten); border-color: var(--molten); color: #fff; }

.gal { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gal { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
.gal__item {
  position: relative; overflow: hidden; border: 1px solid var(--line-dark);
  background: var(--ink-800); aspect-ratio: 4/3; cursor: pointer;
  transition: opacity .45s var(--e-out), transform .45s var(--e-out), border-color .35s;
}
.gal__item.is-hidden { display: none; }
/* Re-tuned for photographs: the old saturate(.8) brightness(.94) was set for
   flat SVGs and left real photos looking washed and muddy. */
.gal__item picture { display: block; width: 100%; height: 100%; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--e-out), filter .6s; filter: saturate(.92) contrast(1.04); }
.gal__item:hover img { transform: scale(1.05); filter: saturate(1.04) contrast(1.02) brightness(1.05); }
.gal__item:hover { border-color: var(--molten); }
.gal__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .8rem;
  background: linear-gradient(transparent, rgba(16, 18, 20, .92));
  display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem;
  transform: translateY(100%); opacity: 0;
  transition: transform .5s var(--e-out), opacity .4s;
}
.gal__item:hover .gal__cap, .gal__item:focus-visible .gal__cap { transform: translateY(0); opacity: 1; }
.gal__cap b { font-size: var(--fs-sm); font-weight: 700; }
.gal__cap em { font-family: var(--f-mono); font-style: normal; font-size: .6rem; letter-spacing: .12em; color: var(--molten); text-transform: uppercase; }
@media (max-width: 799px) { .gal__cap { transform: none; opacity: 1; position: static; background: var(--ink-700); } .gal__item { aspect-ratio: auto; } .gal__item img { aspect-ratio: 4/3; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 950; background: rgba(10, 12, 14, .95); display: grid; place-items: center; padding: var(--gut); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__box { max-width: 1000px; width: 100%; }
.lb__box img { width: 100%; height: auto; border: 1px solid var(--line-dark); }
.lb__meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: .9rem; }
.lb__close { position: absolute; top: 1rem; right: var(--gut); width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 2px; transition: background-color .3s, border-color .3s; }
.lb__close:hover { background: var(--molten); border-color: var(--molten); }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-dark); transition: background-color .3s; }
.lb__nav:hover { background: var(--molten); }
.lb__nav--prev { left: .5rem; } .lb__nav--next { right: .5rem; }

/* ---------- 17. TABS / SPECS ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line-dark); margin-bottom: 2rem; }
.tabs button {
  position: relative; padding: .9rem 1.2rem .9rem 0; margin-right: 1.6rem;
  font-family: var(--f-mono); font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase;
  color: var(--txt-low); transition: color .3s;
}
.tabs button::after { content: ""; position: absolute; left: 0; right: 1.2rem; bottom: -1px; height: 2px; background: var(--molten); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--e-out); }
.tabs button.is-on { color: var(--txt-hi); }
.tabs button.is-on::after { transform: scaleX(1); }
.panel { display: none; }
.panel.is-on { display: block; animation: panelIn .6s var(--e-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.spec-list { display: grid; gap: 0; }
.spec-list li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.spec-list li span:last-child { font-family: var(--f-mono); font-size: var(--fs-sm); color: var(--molten); }

/* ---------- 18. ACCORDION ---------- */
.acc { border-top: 1px solid var(--line-dark); }
.acc__item { border-bottom: 1px solid var(--line-dark); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.4rem 0; text-align: left; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; transition: color .3s; }
.acc__btn:hover { color: var(--molten); }
.acc__sign { position: relative; flex: none; width: 20px; height: 20px; }
.acc__sign::before, .acc__sign::after { content: ""; position: absolute; background: currentColor; transition: transform .45s var(--e-out), background-color .3s; }
.acc__sign::before { top: 9.5px; left: 0; right: 0; height: 1.5px; }
.acc__sign::after { left: 9.5px; top: 0; bottom: 0; width: 1.5px; }
.acc__item.is-open .acc__sign::after { transform: scaleY(0); }
.acc__item.is-open .acc__sign::before { background: var(--molten); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .55s var(--e-io); }
.acc__panel > div { padding-bottom: 1.5rem; color: var(--txt-mid); font-size: var(--fs-sm); max-width: 70ch; }

/* ---------- 19. CTA BAND ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink-800); border-block: 1px solid var(--line-dark); }
.cta-band__bg { position: absolute; inset: 0; opacity: .14; background-image: repeating-linear-gradient(115deg, var(--molten) 0 2px, transparent 2px 14px); animation: hatch 14s linear infinite; }
@keyframes hatch { to { transform: translateX(-56px); } }
.cta-band__inner { position: relative; z-index: 2; display: grid; gap: 1.8rem; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; } }

/* ---------- 20. FORM ---------- */
.form { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; } }
.field { position: relative; display: block; }
.field > span { display: block; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .13em; text-transform: uppercase; color: var(--txt-low); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .95rem 1rem;
  background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: 2px;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.paper .field input, .paper .field textarea, .paper .field select { background: var(--paper-100); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--molten); box-shadow: 0 0 0 3px var(--molten-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: var(--fs-xs); color: var(--txt-low); font-family: var(--f-mono); letter-spacing: .04em; }
.form__msg { display: none; padding: .9rem 1rem; border-left: 2px solid var(--molten); background: var(--molten-soft); font-size: var(--fs-sm); }
.form__msg.is-on { display: block; animation: panelIn .5s var(--e-out); }
.form__msg.is-err { border-color: #d9534f; background: rgba(217, 83, 79, .12); }

/* ---------- 21. FOOTER ---------- */
.ftr { background: var(--ink-800); border-top: 1px solid var(--line-dark); padding-block: clamp(3rem, 2rem + 3vw, 5rem) 1.6rem; }
.ftr__grid { display: grid; gap: 2.4rem; }
@media (min-width: 800px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.ftr h4 { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-low); margin-bottom: 1.1rem; }
.ftr__links li { margin-bottom: .55rem; }
.ftr__links a { font-size: var(--fs-sm); color: var(--txt-mid); transition: color .25s, padding-left .25s; }
.ftr__links a:hover { color: var(--molten); padding-left: 5px; }
.ftr__bottom { margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; justify-content: space-between; }
.ftr__bottom, .ftr__bottom a { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .06em; color: var(--txt-low); }
.ftr__bottom a:hover { color: var(--molten); }

/* ---------- 22. FLOATING DOCK (AI + top) ---------- */
.dock-btn {
  position: fixed; bottom: 20px; z-index: 880;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 2px;
  border: 1px solid var(--line-dark);
  background: rgba(27, 31, 36, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--txt-hi);
  transition: transform .4s var(--e-out), background-color .3s, border-color .3s, opacity .4s, visibility .4s;
}
.dock-btn:hover { background: var(--molten); border-color: var(--molten); color: #fff; transform: translateY(-3px); }
.dock-btn svg { width: 22px; height: 22px; }
@media (min-width: 700px) { .dock-btn { width: 58px; height: 58px; bottom: 26px; } }

#aiToggle { left: 20px; }
#toTop { right: 20px; opacity: 0; visibility: hidden; }
#toTop.is-on { opacity: 1; visibility: visible; }
@media (min-width: 700px) { #aiToggle { left: 26px; } #toTop { right: 26px; } }

#aiToggle .dock-badge {
  position: absolute; top: -5px; right: -5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--molten); border: 2px solid var(--ink-900);
}
#aiToggle .dock-badge::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--molten); animation: ping 2.4s var(--e-out) infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
body.ai-open #aiToggle .dock-badge { display: none; }

#toTop .ring { position: absolute; inset: 0; }
#toTop .ring circle { fill: none; stroke: var(--molten); stroke-width: 2; }

/* ---------- 23. AI ASSISTANT ---------- */
.ai {
  position: fixed; z-index: 890;
  left: 12px; right: 12px; bottom: 86px;
  max-height: min(72svh, 620px);
  display: flex; flex-direction: column;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8);
  overflow: hidden;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom left;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--e-out), transform .5s var(--e-out), visibility .4s;
}
body.ai-open .ai { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 620px) { .ai { left: 26px; right: auto; width: 390px; bottom: 96px; } }

.ai__hd { display: flex; align-items: center; gap: .8rem; padding: .95rem 1rem; border-bottom: 1px solid var(--line-dark); background: var(--ink-700); }
.ai__avatar { position: relative; width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: var(--molten); border-radius: 2px; }
.ai__avatar svg { width: 18px; height: 18px; }
.ai__hd b { display: block; font-size: .92rem; line-height: 1.2; }
.ai__hd span { display: flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-low); }
.ai__hd span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ecb71; }
.ai__close { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; color: var(--txt-low); transition: color .3s; }
.ai__close:hover { color: var(--molten); }

.ai__body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; scrollbar-width: thin; }
.ai__body::-webkit-scrollbar { width: 5px; }
.ai__body::-webkit-scrollbar-thumb { background: var(--line-dark); }

.msg { max-width: 86%; padding: .7rem .9rem; font-size: .875rem; line-height: 1.6; border-radius: 4px; animation: msgIn .45s var(--e-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg--bot { align-self: flex-start; background: var(--ink-600); border: 1px solid var(--line-dark); border-bottom-left-radius: 0; }
.msg--me { align-self: flex-end; background: var(--molten); color: #fff; border-bottom-right-radius: 0; }
.msg a { color: var(--molten); text-decoration: underline; text-underline-offset: 2px; }
.msg--me a { color: #fff; }
.msg strong { font-weight: 700; }

.ai__typing { align-self: flex-start; display: flex; gap: 4px; padding: .8rem .9rem; background: var(--ink-600); border: 1px solid var(--line-dark); border-radius: 4px; border-bottom-left-radius: 0; }
.ai__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--txt-low); animation: blink 1.2s infinite; }
.ai__typing i:nth-child(2) { animation-delay: .18s; }
.ai__typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.ai__chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1rem; border-top: 1px solid var(--line-dark); background: var(--ink-700); }
.ai__chips button {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .45rem .7rem; border: 1px solid var(--line-dark); border-radius: 2px; color: var(--txt-mid);
  transition: all .25s var(--e-out);
}
.ai__chips button:hover { border-color: var(--molten); color: var(--molten); }
.ai__form { display: flex; gap: .5rem; padding: .7rem 1rem 1rem; border-top: 1px solid var(--line-dark); }
.ai__form input { flex: 1; padding: .7rem .85rem; background: var(--ink-900); border: 1px solid var(--line-dark); border-radius: 2px; font-size: .875rem; }
.ai__form input:focus { outline: none; border-color: var(--molten); }
.ai__form button { width: 42px; flex: none; display: grid; place-items: center; background: var(--molten); border-radius: 2px; color: #fff; transition: transform .25s var(--e-out); }
.ai__form button:hover { transform: translateX(2px); }
.ai__foot { padding: 0 1rem .8rem; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .06em; color: var(--txt-low); text-align: center; }

/* ---------- 24. PAGE HEAD (inner pages) ---------- */
.phead {
  position: relative; overflow: hidden;
  padding-top: calc(var(--hdr-h) + clamp(3rem, 2rem + 5vw, 7rem));
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-dark);
}

/* Photo layer — one of the three works, picked at random per load by the
   inline head script, which stamps data-phead on <html> before first paint. */
.phead__bg {
  position: absolute; inset: 0; z-index: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
html[data-phead="0"] .phead__bg {
  background-image: url('../assets/img/nadstresnica-01.jpg');
  background-image: image-set(url('../assets/img/nadstresnica-01.webp') type('image/webp'), url('../assets/img/nadstresnica-01.jpg') type('image/jpeg'));
}
html[data-phead="1"] .phead__bg {
  background-image: url('../assets/img/hala-01.jpg');
  background-image: image-set(url('../assets/img/hala-01.webp') type('image/webp'), url('../assets/img/hala-01.jpg') type('image/jpeg'));
}
html[data-phead="2"] .phead__bg {
  background-image: url('../assets/img/krov-01.jpg');
  background-image: image-set(url('../assets/img/krov-01.webp') type('image/webp'), url('../assets/img/krov-01.jpg') type('image/jpeg'));
}
/* No script / no stamp: fall back to the original flat gradient, never an empty box */
html:not([data-phead]) .phead { background: radial-gradient(110% 120% at 85% 0%, #1b242e 0%, var(--ink-900) 60%); }

/* Same layered approach as the hero: heavy top for the fixed header,
   heavy bottom for the section edge, open in the middle. */
.phead__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 18, 20, .95) 0%, rgba(16, 18, 20, .88) 30%, rgba(16, 18, 20, .70) 62%, rgba(16, 18, 20, .93) 100%);
}
@media (min-width: 900px) {
  .phead__scrim {
    background:
      linear-gradient(90deg, rgba(16, 18, 20, .90) 0%, rgba(16, 18, 20, .62) 52%, rgba(16, 18, 20, .20) 100%),
      linear-gradient(180deg, rgba(16, 18, 20, .90) 0%, rgba(16, 18, 20, .55) 45%, rgba(16, 18, 20, .88) 100%);
  }
}

.phead__canvas { position: absolute; inset: 0; z-index: 2; opacity: .25; }
.phead__inner { position: relative; z-index: 3; }
/* These tokens are tuned for flat panels and miss AA over photography */
.phead .crumb { color: var(--txt-mid); }
.phead .dim--accent { color: var(--ember); }
/* No side scrim below 900px, so the intro copy goes to full-strength ink —
   measured 3.3:1 with --txt-mid, which fails AA. */
@media (max-width: 899px) { .phead .lead { color: var(--txt-hi); } }
.crumb { display: flex; gap: .5rem; align-items: center; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--txt-low); margin-bottom: 1.3rem; }
.crumb a:hover { color: var(--molten); }

/* ---------- 25. MISC ---------- */
.hatch-rule { height: 8px; background-image: repeating-linear-gradient(115deg, var(--line-dark) 0 1px, transparent 1px 9px); }
.card {
  background: var(--ink-800); border: 1px solid var(--line-dark);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  transition: transform .5s var(--e-out), border-color .4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--txt-low); }
.paper .card { background: var(--paper-100); }
.tilt { transform-style: preserve-3d; will-change: transform; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .75rem; border: 1px solid var(--line-dark); border-radius: 100px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--txt-mid); }
.badge i { width: 6px; height: 6px; background: var(--molten); border-radius: 50%; }
.contact-line { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); }
.contact-line svg { width: 20px; height: 20px; flex: none; stroke: var(--molten); fill: none; stroke-width: 1.4; }
.contact-line b { display: block; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .13em; text-transform: uppercase; color: var(--txt-low); font-weight: 500; }
.contact-line a, .contact-line p { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
.contact-line a:hover { color: var(--molten); }
.map-frame { border: 1px solid var(--line-dark); filter: grayscale(1) invert(.92) contrast(.85); }
.paper .map-frame { filter: grayscale(1) contrast(1.05); }
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- 26. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv, .hero__body, .hero__actions, .hero__spec { opacity: 1 !important; transform: none !important; }
  .hero__title .ln > span, .split .w > i { transform: none !important; }
  .bp-member { stroke-dashoffset: 0 !important; }
  .bp-node { opacity: 1 !important; }
  .bp-txt { opacity: .55 !important; }
  .marquee__track { animation: none; }
  .preload__mark img { opacity: 1 !important; transform: none !important; }
  /* Slider: first slide only, no autoplay, no Ken Burns */
  .hero__slide { animation: none !important; transform: none !important; transition: none !important; opacity: 0 !important; }
  .hero__slide:first-child { opacity: 1 !important; }
  .hero__dots { display: none; }
}

/* ---------- 27. PRINT ---------- */
@media print {
  .hdr, .mmenu, .dock-btn, .ai, .preload, .cursor, .cursor-dot, .hero__canvas,
  .hero__slides, .hero__scrim, .hero__dots { display: none !important; }
  body { background: #fff; color: #000; }
}
