/* ==========================================================================
   Cad Production Kft. — v2 "wild"
   Strictly the original palette:
   green #93B82F · accent #A6CE39 · hover #8EB12F · ink #070707
   charcoal #2B2B2B · graphite #353535 · steel #808080 · cream #FBFCF0 · white
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --green: #93b82f;
  --green-accent: #a6ce39;
  --green-hover: #8eb12f;
  --ink: #070707;
  --charcoal: #2b2b2b;
  --graphite: #353535;
  --steel: #808080;
  --cream: #fbfcf0;
  --white: #ffffff;

  --display: 'Saira', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono-font: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --hdr-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* contextual tokens, overridden per section */
  --fg: var(--white);
  --muted: rgb(255 255 255 / .68);
  --line: rgb(255 255 255 / .16);
  --accent: var(--green-accent);
  --focus: var(--green-accent);

  color-scheme: dark;
}

/* light and green contexts */
.blk--cream, .sec--cream, .partners, .contact__form {
  --fg: var(--ink); --muted: var(--graphite); --line: rgb(7 7 7 / .16); --accent: var(--ink); --focus: var(--ink);
  background: var(--cream); color: var(--ink); color-scheme: light;
}
.blk--green, .apply, .marquee {
  --fg: var(--ink); --muted: var(--ink); --line: rgb(7 7 7 / .3); --accent: var(--ink); --focus: var(--ink);
  background: var(--green); color: var(--ink);
}

/* ---------- Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 1.5rem); }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--white); background: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body.nav-open { overflow: hidden; }
::selection { background: var(--green-accent); color: var(--ink); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
abbr[title] { text-decoration: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
main { display: block; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; position: relative; z-index: 1; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--green-accent); color: var(--ink); padding: .8rem 1.2rem; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Type --------------------------------------------------------- */
.mono { font-family: var(--mono-font); font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.tag { display: block; margin-bottom: 1.1rem; color: var(--accent); }
.h-xl, .h-lg, .hero__title, .phero__title, .cta__title {
  font-family: var(--display); font-weight: 800; font-stretch: 64%; text-transform: uppercase;
  line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; overflow-wrap: break-word;
}
.h-xl { font-size: clamp(2.2rem, 5.2vw, 4.6rem); }
.h-lg { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; font-stretch: 72%; line-height: 1; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; margin-top: 1.25rem; }

/* chamfer: top-right + bottom-left cut (the same two corners the old buttons rounded) */
.btn, .shot img, .shot::before, .hdr__toggle, .card > a, .yt, .yt__play, .index__arrow, .rows .icon, .prow__go, .lightbox__btn, .partners__grid li > * {
  clip-path: polygon(0 0, calc(100% - var(--c, 16px)) 0, 100% var(--c, 16px), 100% 100%, var(--c, 16px) 100%, 0 calc(100% - var(--c, 16px)));
}

/* blueprint grid */
.gridlines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; background-position: center top; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 95%); mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
}

/* ---------- Buttons / links --------------------------------------------- */
.btn {
  --c: 14px; --hb: var(--white); --hc: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 54px; padding: .85rem 1.5rem .85rem 1.7rem; border: 0;
  font-family: var(--display); font-weight: 700; font-stretch: 86%; font-size: 1rem; line-height: 1; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink); background: var(--green-accent); text-decoration: none; white-space: nowrap;
  transition: color .3s var(--ease), transform .25s var(--ease-out);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hb); transform: translateX(-101%); transition: transform .45s var(--ease-out); }
.btn:hover { color: var(--hc); }
.btn:hover::before { transform: none; }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease-out); }
.btn:hover .icon { transform: translateX(5px); }
.btn:focus-visible { outline: 3px solid currentColor; outline-offset: -7px; }
.btn--lg { min-height: 64px; padding-inline: 2.1rem 1.9rem; font-size: 1.1rem; }
.btn--ink { background: var(--ink); color: var(--white); --hb: var(--green-accent); --hc: var(--ink); }
.apply .btn--ink { --hb: var(--white); }
.sec--cream .btn:not(.btn--ink) { --hb: var(--ink); --hc: var(--green-accent); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-line {
  display: inline-flex; align-items: center; gap: .55rem; padding-bottom: .3rem;
  font-family: var(--display); font-weight: 700; font-stretch: 86%; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; border-bottom: 2px solid var(--green-accent);
  transition: border-color .25s, gap .25s var(--ease-out);
}
.link-line:hover { border-color: currentColor; gap: .9rem; }
.link-line .icon { width: 1.1em; height: 1.1em; }

/* ---------- Scroll progress (scroll-driven, where supported) ------------ */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; background: var(--green-accent); transform-origin: 0 50%; transform: scaleX(0); animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- Top strip + header ------------------------------------------ */
.strip { background: var(--green); color: var(--ink); }
.strip__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.strip__contact { display: flex; flex-wrap: wrap; gap: .2rem 1.75rem; }
.strip__contact li, .strip__contact a { display: inline-flex; align-items: center; gap: .5rem; }
.strip a { text-decoration: none; }
.strip a:hover { text-decoration: underline; text-decoration-color: var(--ink); }
.strip .icon { width: .95rem; height: .95rem; }
.strip :focus-visible { outline-color: var(--ink); }
.lang { display: flex; }
.lang a { display: grid; place-items: center; min-width: 2.4rem; height: 1.7rem; font-weight: 700; }
.lang a[aria-current] { background: var(--ink); color: var(--green-accent); }
.lang a:not([aria-current]):hover { background: rgb(7 7 7 / .14); text-decoration: none; }
@media (max-width: 760px) { .strip__contact li:not(:first-child) { display: none; } }

.hdr { position: sticky; top: 0; z-index: 50; color: var(--white); border-bottom: 1px solid rgb(255 255 255 / .12); }
/* blur on a pseudo-element so the header does not become the containing block of the fixed mobile menu */
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(7 7 7 / .86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.hdr__in { display: flex; align-items: center; gap: 1.25rem; min-height: var(--hdr-h); }
.hdr__logo { flex: none; }
.hdr__logo img { height: 50px; width: auto; }
.hdr__info { flex: none; display: block; }
.hdr__info img { height: 54px; width: auto; }

.nav ul { display: flex; gap: .1rem; }
.nav ul a {
  position: relative; display: flex; align-items: center; gap: .5rem; padding: .55rem .68rem;
  font-family: var(--display); font-weight: 600; font-stretch: 84%; font-size: .98rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--white); transition: color .2s;
}
.nav ul a::after { content: ""; position: absolute; left: .68rem; right: .68rem; bottom: .2rem; height: 2px; background: var(--green-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease-out); }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--green-accent); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav__n, .nav__extra { display: none; }

.hdr__toggle { --c: 10px; display: none; place-items: center; width: 48px; height: 48px; border: 0; background: var(--green-accent); color: var(--ink); }
.hdr__toggle .icon { width: 24px; height: 24px; }
.hdr__toggle-close { display: none; }
.hdr__toggle[aria-expanded="true"] .hdr__toggle-open { display: none; }
.hdr__toggle[aria-expanded="true"] .hdr__toggle-close { display: block; }
.hdr__toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }

@media (min-width: 1240px) {
  .nav { margin-left: auto; }
}
@media (max-width: 1239.98px) {
  :root { --hdr-h: 68px; }
  .hdr__toggle { display: grid; margin-left: auto; order: 2; }
  .hdr__info { order: 3; }
  .hdr__info img { height: 46px; }
  .hdr__logo img { height: 44px; }
  .nav {
    position: fixed; inset: var(--nav-top, 104px) 0 0 0; z-index: 49;
    display: flex; flex-direction: column; gap: 2.5rem;
    padding: 1.5rem var(--gutter) 3rem; background: var(--ink); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul li { border-bottom: 1px solid rgb(255 255 255 / .14); opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
  .nav.is-open ul li { opacity: 1; transform: none; }
  .nav.is-open ul li:nth-child(1) { transition-delay: .04s; } .nav.is-open ul li:nth-child(2) { transition-delay: .08s; }
  .nav.is-open ul li:nth-child(3) { transition-delay: .12s; } .nav.is-open ul li:nth-child(4) { transition-delay: .16s; }
  .nav.is-open ul li:nth-child(5) { transition-delay: .20s; } .nav.is-open ul li:nth-child(6) { transition-delay: .24s; }
  .nav.is-open ul li:nth-child(7) { transition-delay: .28s; } .nav.is-open ul li:nth-child(8) { transition-delay: .32s; }
  .nav ul a { align-items: baseline; gap: 1rem; padding: .7rem 0; font-weight: 800; font-stretch: 64%; font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1; letter-spacing: 0; }
  .nav ul a::after { display: none; }
  .nav__n { display: inline; color: var(--green-accent); font-size: .78rem; letter-spacing: .06em; }
  .nav__extra { display: grid; gap: 1.5rem; justify-items: start; }
  .nav__extra p { line-height: 2.1; }
}
@media (max-width: 520px) {
  .hdr__in { gap: .75rem; }
  .hdr__logo img { height: 40px; }
  .hdr__info img { height: 42px; }
  .hdr__toggle { width: 44px; height: 44px; }
}
@media (max-width: 370px) { .hdr__info img { height: 34px; } .hdr__logo img { height: 34px; } }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
  min-height: clamp(620px, calc(100svh - 112px), 980px);
  background: var(--ink); color: var(--white);
}
.hero__video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgb(7 7 7 / .9) 0%, rgb(7 7 7 / .55) 55%, rgb(7 7 7 / .3) 100%), linear-gradient(0deg, rgb(7 7 7 / .9) 0%, rgb(7 7 7 / 0) 50%); }
.hero .gridlines { z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%); mask-image: linear-gradient(90deg, transparent 20%, #000 100%); }
.hero__in { align-self: end; padding-block: clamp(4rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .8rem; color: var(--green-accent); margin-bottom: 1.4rem; }
.hero__eyebrow::before { content: ""; width: .7rem; height: .7rem; background: var(--green-accent); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero__title { font-size: clamp(2.5rem, 7.3vw, 7.4rem); line-height: 1; max-width: 12.5em; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.hero__title em { font-style: normal; color: var(--green-accent); }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; }
.hero__eyebrow, .hero__title, .hero__row { animation: rise .9s var(--ease-out) both; }
.hero__title { animation-delay: .08s; }
.hero__row { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(44px); } }

.badge { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 8.5rem; z-index: 2; width: 168px; height: 168px; display: grid; place-items: center; color: var(--white); text-decoration: none; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge__ring text { font-family: var(--mono-font); font-size: 15px; font-weight: 500; letter-spacing: .08em; fill: currentColor; }
.badge__arrow { width: 76px; height: 76px; padding: 22px; border-radius: 50%; background: var(--green-accent); color: var(--ink); stroke-width: 2.2; transition: transform .4s var(--ease-out), background-color .3s; }
.badge:hover .badge__arrow { transform: rotate(45deg) scale(1.08); background: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) { .badge { display: none; } }

.hero__meta { border-top: 1px solid rgb(255 255 255 / .2); background: rgb(7 7 7 / .35); }
.hero__meta-in { display: flex; align-items: stretch; }
.hero__meta p { flex: 1; padding: 1rem 1.25rem 1rem 0; white-space: nowrap; }
.hero__meta p + p { padding-left: 1.25rem; border-left: 1px solid rgb(255 255 255 / .2); }
.hero__meta p span { display: block; color: var(--green-accent); margin-bottom: .15rem; }
.hero__meta a { text-decoration: none; }
.hero__meta a:hover { color: var(--green-accent); }
.hero__toggle { flex: none; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; margin-left: .5rem; border: 1px solid rgb(255 255 255 / .4); background: transparent; color: var(--white); }
.hero__toggle:hover { background: var(--green-accent); color: var(--ink); border-color: var(--green-accent); }
.hero__toggle .icon { width: 16px; height: 16px; }
.hero__toggle-play { display: none; }
.hero__toggle[aria-pressed="true"] .hero__toggle-play { display: block; }
.hero__toggle[aria-pressed="true"] .hero__toggle-pause { display: none; }
@media (max-width: 760px) {
  .hero__meta p:first-child { display: none; }
  .hero__meta p + p { padding-left: 0; border-left: 0; }
  .hero__meta p + p + p { padding-left: 1rem; border-left: 1px solid rgb(255 255 255 / .2); }
  .hero__row .btn { flex: 1 1 100%; }
}

/* ---------- Marquee ------------------------------------------------------ */
.marquee { overflow: hidden; padding-block: .85rem; }
.marquee__track { display: flex; align-items: center; gap: 2.25rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 800; font-stretch: 64%; font-size: clamp(1.6rem, 3.6vw, 3.1rem); line-height: 1.1; text-transform: uppercase; white-space: nowrap; }
.marquee__track i { flex: none; width: .9rem; height: .9rem; background: currentColor; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services index ---------------------------------------------- */
.index { background: var(--ink); padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
.index__list li { border-top: 1px solid var(--line); }
.index__list li:last-child { border-bottom: 1px solid var(--line); }
.index__row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 4.5rem minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(.5rem, 1.5vw, 1.5rem);
  text-decoration: none; color: var(--white); transition: color .35s var(--ease);
}
.index__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--green-accent); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease-out); }
.index__row:hover, .index__row:focus-visible { color: var(--ink); }
.index__row:hover::before, .index__row:focus-visible::before { transform: scaleY(1); }
.index__row:focus-visible { outline-offset: -4px; outline-color: var(--ink); }
.index__n { color: var(--green-accent); transition: color .35s; }
.index__row:hover .index__n, .index__row:focus-visible .index__n { color: var(--ink); }
.index__title { font-family: var(--display); font-weight: 800; font-stretch: 64%; font-size: clamp(1.9rem, 4.6vw, 4.2rem); line-height: 1.02; text-transform: uppercase; transition: transform .5s var(--ease-out); }
.index__row:hover .index__title { transform: translateX(.6rem); }
.index__text { color: var(--muted); transition: color .35s; }
.index__row:hover .index__text, .index__row:focus-visible .index__text { color: var(--ink); }
.index__arrow { --c: 12px; display: grid; place-items: center; width: 60px; height: 60px; background: var(--white); color: var(--ink); transition: background-color .35s, color .35s; }
.index__row:hover .index__arrow { background: var(--ink); color: var(--green-accent); }
.index__arrow .icon { width: 24px; height: 24px; transition: transform .4s var(--ease-out); }
.index__row:hover .index__arrow .icon { transform: translateY(4px); }
@media (max-width: 860px) {
  .index__row { grid-template-columns: 2.5rem 1fr; row-gap: .5rem; }
  .index__text { grid-column: 2; }
  .index__arrow { display: none; }
}

/* ---------- Content blocks (home) --------------------------------------- */
.blk { position: relative; overflow: clip; padding-block: clamp(4.5rem, 10vw, 9rem); }
.blk--ink { background: var(--ink); }
.blk__num {
  position: absolute; top: clamp(1rem, 3vw, 2.5rem); right: var(--gutter); z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 800; font-stretch: 64%; font-size: clamp(9rem, 30vw, 27rem); line-height: .78;
  color: transparent; -webkit-text-stroke: 2px var(--line); opacity: .55;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .blk__num { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: translateY(22%); } to { transform: translateY(-22%); } }
  }
}
.blk__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.blk__grid--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.blk__grid--flip .blk__head { order: 2; }
@media (min-width: 960px) and (min-height: 760px) { .blk__head { position: sticky; top: calc(var(--hdr-h) + 2rem); } }
@media (max-width: 959.98px) {
  .blk__grid, .blk__grid--flip { grid-template-columns: 1fr; }
  .blk__grid--flip .blk__head { order: 0; }
}

.shot { --c: 26px; position: relative; isolation: isolate; margin-top: 2rem; }
.shot::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; background: var(--green); }
.blk--green .shot::before, .apply .shot::before { background: var(--ink); }
.shot img { width: 100%; padding: clamp(.6rem, 1.5vw, 1rem); background: var(--white); }
.shot figcaption { position: absolute; left: 0; top: 0; z-index: 1; padding: .35rem .7rem; background: var(--green-accent); color: var(--ink); }

.specs { display: grid; }
.spec { position: relative; display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); transition: padding-left .4s var(--ease-out); }
.specs > .spec:last-child { border-bottom: 1px solid var(--line); }
.spec::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 3px; background: var(--green); transition: width .5s var(--ease-out); }
.blk--ink .spec::before { background: var(--green-accent); }
.spec:hover { padding-left: .75rem; }
.spec:hover::before { width: 100%; }
.spec__n { padding-top: .45rem; color: var(--accent); }
.spec :is(h3, h4) { font-family: var(--display); font-weight: 700; font-stretch: 80%; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; }
.spec p { margin-top: .35rem; color: var(--muted); }
.spec__sub { margin-top: .5rem; display: grid; gap: .2rem; color: var(--muted); }
.spec__sub li::before { content: "— "; color: var(--accent); }
.groups { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.group .h-lg { margin-bottom: 1.5rem; }
.groups--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); } /* About: references */

.rows li { display: flex; align-items: center; gap: 1.1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-stretch: 86%; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.25; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .icon { --c: 7px; width: 2.1rem; height: 2.1rem; padding: .5rem; background: var(--ink); color: var(--green-accent); stroke-width: 2.4; transition: transform .4s var(--ease-out); }
.rows li:hover .icon { transform: rotate(45deg); }
.rows__title { margin: clamp(2.5rem, 5vw, 4rem) 0 1.25rem; }

/* ---------- Partners ----------------------------------------------------- */
.partners { padding-block: clamp(4rem, 8vw, 7rem); }
.partners__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.partners__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 620px) { .partners__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1140px) { .partners__grid { grid-template-columns: repeat(8, 1fr); } }
.partners__grid li > * { --c: 12px; display: grid; place-items: center; height: 100%; min-height: 112px; padding: 1.1rem; background: var(--white); transition: transform .35s var(--ease-out), background-color .3s; }
.partners__grid img { max-height: 58px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .8; transition: filter .3s, opacity .3s, transform .35s var(--ease-out); }
.partners__grid a:hover, .partners__grid a:focus-visible { transform: translateY(-4px); }
.partners__grid a:hover img, .partners__grid a:focus-visible img { filter: none; opacity: 1; transform: scale(1.06); }
.partners__grid a:focus-visible { outline-offset: -5px; }

/* ---------- CTA ---------------------------------------------------------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(4.5rem, 10vw, 9rem); color: var(--white); background: linear-gradient(rgb(7 7 7 / .86), rgb(7 7 7 / .94)), url("../img/section-machines-1920.webp") center / cover no-repeat var(--ink); }
@media (max-width: 960px) { .cta { background-image: linear-gradient(rgb(7 7 7 / .88), rgb(7 7 7 / .94)), url("../img/section-machines-960.webp"); } }
.cta__title { font-size: clamp(2.9rem, 10.6vw, 10.4rem); line-height: 1; }
.cta__title em { font-style: normal; color: var(--green-accent); }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line); }
.cta__text { flex: 1 1 20rem; max-width: 34rem; color: var(--muted); font-size: 1.1rem; }
.cta__phone { display: inline-flex; align-items: center; gap: .6rem; font-size: 1rem; text-decoration: none; }
.cta__phone:hover { color: var(--green-accent); }

/* ---------- Footer ------------------------------------------------------- */
.ftr { background: var(--graphite); color: #dedede; overflow: hidden; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr__brand img { height: 68px; width: auto; margin-bottom: 1.25rem; }
.ftr__brand address { line-height: 1.8; }
.ftr__brand strong { color: var(--white); }
.ftr__title { color: var(--green-accent); margin-bottom: 1.1rem; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--green-accent); }
.ftr__links, .ftr__contact { display: grid; gap: .4rem; }
.ftr__links a { font-family: var(--display); font-weight: 600; font-stretch: 86%; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.ftr__word {
  font-family: var(--display); font-weight: 800; font-stretch: 100%; font-size: 14.2vw; line-height: .74; letter-spacing: -.01em;
  text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .22); margin-bottom: -.06em;
}
.ftr__bottom { position: relative; background: var(--ink); color: rgb(255 255 255 / .7); }
.ftr__bottom-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.1rem; }

/* ---------- Inner page hero --------------------------------------------- */
.phero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding-top: clamp(2.5rem, 6vw, 5rem); border-bottom: 6px solid var(--green); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--green-accent); }
.crumbs a { text-decoration: none; color: var(--white); }
.crumbs a:hover { color: var(--green-accent); }
.phero__title { margin-top: clamp(1rem, 2vw, 1.75rem); font-size: clamp(3.4rem, 14.5vw, 13.5rem); line-height: .98; animation: rise .9s var(--ease-out) both; }
.phero__title--long { font-size: clamp(2.3rem, 7.6vw, 7.2rem); line-height: 1.02; }
.phero__foot { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-block: 1.1rem 1.25rem; border-top: 1px solid var(--line); }
.phero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgb(255 255 255 / .82); max-width: 60ch; }
.phero__idx { color: var(--green-accent); white-space: nowrap; }

.sec { position: relative; padding-block: clamp(4rem, 8vw, 7rem); }
.sec--ink { background: var(--ink); }
.sec__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* ---------- Prose -------------------------------------------------------- */
.prose p { margin-bottom: 1.1em; overflow-wrap: anywhere; text-wrap: pretty; }
.prose--legal { max-width: 74ch; counter-reset: sect; }
.prose--legal h2 { counter-increment: sect; margin: 2.75rem 0 1rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); font-family: var(--display); font-weight: 700; font-stretch: 78%; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; }
.prose--legal h2:first-child { margin-top: 0; }
.prose--legal h2::before { content: "§ " counter(sect, decimal-leading-zero); display: block; margin-bottom: .4rem; font-family: var(--mono-font); font-size: .78rem; font-weight: 500; letter-spacing: .06em; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1.25rem; display: grid; gap: .35rem; }
.prose li::marker { color: var(--green); }

/* ---------- Text + spec list sections (home cooperation, development) -- */
.blk__head > .btn { margin-top: 2rem; }
.prose + .specs { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Grants ------------------------------------------------------- */
.grant { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: start; padding-block: clamp(2rem, 4vw, 3.25rem); border-top: 2px solid var(--ink); }
.grant:last-child { border-bottom: 2px solid var(--ink); }
@media (min-width: 860px) { .grant__head { position: sticky; top: calc(var(--hdr-h) + 1.5rem); } }
.grant__n { margin-bottom: .75rem; }
.grant__head h2 { font-family: var(--display); font-weight: 800; font-stretch: 70%; font-size: clamp(1.5rem, 2.7vw, 2.4rem); line-height: 1.02; overflow-wrap: anywhere; }
.chip { display: inline-block; margin-top: 1rem; padding: .35rem .7rem; background: var(--ink); color: var(--green-accent); }
.grant__imgs { display: flex; flex-wrap: wrap; gap: 1rem; }
.grant__img { position: relative; display: block; overflow: hidden; background: var(--white); border: 1px solid var(--line); cursor: zoom-in; }
.grant__img img { height: 360px; width: auto; max-width: 100%; object-fit: contain; transition: transform .5s var(--ease-out); }
.grant__img:hover img { transform: scale(1.04); }
.zoom { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 40px; height: 40px; background: var(--green-accent); color: var(--ink); transition: background-color .25s, color .25s; }
.grant__img:hover .zoom { background: var(--ink); color: var(--green-accent); }
.zoom .icon { width: 18px; height: 18px; }
@media (max-width: 859.98px) {
  .grant { grid-template-columns: 1fr; }
  .grant__img { flex: 1 1 100%; }
  .grant__img img { height: auto; width: 100%; }
}

/* ---------- Gallery ------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.filter { display: inline-flex; align-items: center; gap: .7rem; min-height: 46px; padding: .5rem 1.1rem; background: transparent; color: var(--white); border: 1px solid rgb(255 255 255 / .35); transition: background-color .25s, color .25s, border-color .25s; }
.filter:hover { border-color: var(--green-accent); color: var(--green-accent); }
.filter[aria-pressed="true"] { background: var(--green-accent); border-color: var(--green-accent); color: var(--ink); }
.filter__count { opacity: .7; }

.gallery { columns: 4 250px; column-gap: .75rem; }
.gallery li { break-inside: avoid; margin-bottom: .75rem; }
.gallery li[hidden] { display: none; }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--charcoal); cursor: zoom-in; }
.gallery img { width: 100%; filter: grayscale(.35); transition: transform .7s var(--ease-out), filter .4s; }
.gallery a::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--green-accent); transition: border-width .3s var(--ease-out); pointer-events: none; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.07); filter: none; }
.gallery a:hover::after, .gallery a:focus-visible::after { border-width: 5px; }
.gallery a:focus-visible { outline-offset: -3px; }
.gallery__cap { position: absolute; left: 0; bottom: 0; z-index: 1; padding: .35rem .7rem; background: var(--green-accent); color: var(--ink); transform: translateY(101%); transition: transform .35s var(--ease-out); }
.gallery a:hover .gallery__cap, .gallery a:focus-visible .gallery__cap { transform: none; }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: .5rem; } .gallery li { margin-bottom: .5rem; } }

/* ---------- Lightbox ----------------------------------------------------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(7 7 7 / .96); color: var(--white); }
.lightbox[open] { display: grid; place-items: center; animation: fade .25s var(--ease); }
.lightbox::backdrop { background: rgb(7 7 7 / .7); }
@keyframes fade { from { opacity: 0; } }
.lightbox__figure { display: grid; justify-items: center; gap: .9rem; padding: 4.5rem 5rem 1.5rem; max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: min(1600px, 100%); max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; touch-action: pan-y; user-select: none; }
.lightbox__caption { color: rgb(255 255 255 / .85); text-align: center; }
.lightbox__count { color: var(--green-accent); margin-left: .75rem; }
.lightbox__btn { --c: 10px; position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border: 0; background: var(--green-accent); color: var(--ink); transition: background-color .2s; }
.lightbox__btn:hover { background: var(--white); }
.lightbox__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox[data-single] .lightbox__prev, .lightbox[data-single] .lightbox__next { display: none; }
@media (max-width: 640px) {
  .lightbox__figure { padding: 4.5rem .5rem 5.5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; translate: none; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
}

/* ---------- Press -------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.card > a { --c: 26px; display: flex; flex-direction: column; height: 100%; background: var(--white); color: var(--ink); text-decoration: none; transition: background-color .35s, color .35s; }
.card > a:hover, .card > a:focus-visible { background: var(--ink); color: var(--white); }
.card > a:focus-visible { outline: 3px solid var(--green); outline-offset: -6px; }
.card__media { position: relative; aspect-ratio: 1024 / 597; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card > a:hover .card__media img { transform: scale(1.06); }
.card__n { position: absolute; left: 0; top: 0; padding: .4rem .75rem; background: var(--green-accent); color: var(--ink); }
.card__body { display: flex; flex-direction: column; flex: 1; gap: .6rem; padding: 1.5rem 1.6rem 1.75rem; }
.card__title { font-family: var(--display); font-weight: 700; font-stretch: 78%; font-size: 1.5rem; line-height: 1.12; margin-bottom: 1rem; }
.card__go { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; }
.card > a:hover .card__go { color: var(--green-accent); }
.card__go .icon { width: 1.1rem; height: 1.1rem; transition: transform .3s var(--ease-out); }
.card > a:hover .card__go .icon { transform: translate(3px, -3px); }

.yt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.yt { --c: 30px; position: relative; aspect-ratio: 16 / 9; background: var(--charcoal); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__btn { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem; padding: 1.25rem; border: 0; color: var(--white); text-align: center; background: radial-gradient(circle at 20% 15%, rgb(147 184 47 / .32), transparent 55%), linear-gradient(135deg, var(--graphite), var(--ink)); }
.yt__n { position: absolute; left: 1.25rem; top: 1.1rem; color: var(--green-accent); }
.yt__play { --c: 14px; display: grid; place-items: center; width: 84px; height: 84px; background: var(--green-accent); color: var(--ink); transition: transform .35s var(--ease-out), background-color .3s; }
.yt__play .icon { width: 34px; height: 34px; margin-left: 4px; }
.yt__btn:hover .yt__play { transform: scale(1.1); background: var(--white); }
.yt__btn:focus-visible { outline-offset: -8px; }
.yt__label { font-family: var(--display); font-weight: 700; font-stretch: 78%; font-size: 1.4rem; text-transform: uppercase; }
.yt__note { color: rgb(255 255 255 / .6); max-width: 40ch; font-size: .7rem; }

.prows li { border-top: 1px solid var(--line); }
.prows li:last-child { border-bottom: 1px solid var(--line); }
.prow > a {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto 52px; align-items: center; gap: clamp(1rem, 2.5vw, 2rem);
  padding: 1rem clamp(.25rem, 1vw, 1rem); text-decoration: none; color: var(--ink); transition: color .35s var(--ease);
}
.prow > a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease-out); }
.prow > a:hover, .prow > a:focus-visible { color: var(--white); }
.prow > a:hover::before, .prow > a:focus-visible::before { transform: scaleY(1); }
.prow > a:focus-visible { outline-color: var(--green); outline-offset: -4px; }
.prow__thumb { display: block; aspect-ratio: 1024 / 597; overflow: hidden; background: var(--white); }
.prow__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.prow > a:hover .prow__thumb img { transform: scale(1.08); }
.prow__main { display: grid; gap: .35rem; }
.prow__meta { color: var(--muted); transition: color .35s; }
.prow > a:hover .prow__meta, .prow > a:focus-visible .prow__meta { color: var(--green-accent); }
.prow__title { font-family: var(--display); font-weight: 700; font-stretch: 78%; font-size: clamp(1.2rem, 2.1vw, 1.7rem); line-height: 1.12; }
.prow__kind { padding: .3rem .6rem; border: 1px solid currentColor; }
.prow__go { --c: 10px; display: grid; place-items: center; width: 52px; height: 52px; background: var(--green-accent); color: var(--ink); }
.prow__go .icon { width: 22px; height: 22px; transition: transform .35s var(--ease-out); }
.prow > a:hover .prow__go .icon { transform: rotate(45deg); }
@media (max-width: 720px) {
  .prow > a { grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "thumb main" "thumb kind"; row-gap: .5rem; align-items: start; }
  .prow__thumb { grid-area: thumb; }
  .prow__main { grid-area: main; }
  .prow__kind { grid-area: kind; justify-self: start; }
  .prow__go { display: none; }
}

/* ---------- Career ------------------------------------------------------- */
.job { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (min-width: 960px) { .job__media { position: sticky; top: calc(var(--hdr-h) + 2rem); } }
@media (max-width: 959.98px) { .job { grid-template-columns: 1fr; } }
.job__media .shot { margin-top: 0; }
.job__body .specs { margin-top: 2.25rem; }
.job__note { margin-top: 1.75rem; font-style: italic; color: var(--muted); }
.apply { padding-block: clamp(3rem, 6vw, 5rem); }
.apply__in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem 3rem; }
.apply__text { font-family: var(--display); font-weight: 600; font-stretch: 82%; font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 1.2; max-width: 32ch; }
.apply a:not(.btn) { text-decoration-color: var(--ink); }

/* ---------- About -------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about__lead { position: relative; padding-top: 1.75rem; font-family: var(--display); font-weight: 700; font-stretch: 76%; font-size: clamp(1.7rem, 3.7vw, 3.3rem); line-height: 1.06; letter-spacing: -.005em; text-wrap: balance; }
.about__lead::before { content: ""; position: absolute; left: 0; top: 0; width: 4.5rem; height: .6rem; background: var(--green); }
.about .shot { margin-top: 0; }
.about__cols { grid-column: 1 / -1; columns: 2 22rem; column-gap: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--ink); }
.about__cols p { break-inside: avoid; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about .shot { max-width: 30rem; } }

.refs li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 1rem; padding: clamp(.9rem, 2vw, 1.5rem) .25rem; border-top: 1px solid var(--line); }
.refs li:last-child { border-bottom: 1px solid var(--line); }
.refs__n { color: var(--green-accent); }
.refs strong { font-family: var(--display); font-weight: 800; font-stretch: 64%; font-size: clamp(2.4rem, 8vw, 7rem); line-height: 1; text-transform: uppercase; transition: color .3s, transform .5s var(--ease-out); }
.refs li > span:last-child { color: var(--muted); text-align: right; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.refs li:hover strong { color: var(--green-accent); transform: translateX(.75rem); }
@media (max-width: 560px) { .refs li { grid-template-columns: 2.25rem minmax(0, 1fr); } .refs li > span:last-child { grid-column: 2; text-align: left; } }

/* ---------- Contact ------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 1fr 1fr; }
.contact__panel { position: relative; background: var(--ink); padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 7vw, 6rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.contact__panel-in { position: relative; z-index: 1; }
.contact__big { display: grid; gap: 1.1rem; margin-top: .5rem; }
.contact__big a { display: block; font-family: var(--display); font-weight: 800; font-stretch: 64%; font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: .95; text-decoration: none; white-space: nowrap; transition: color .25s, transform .45s var(--ease-out); }
.contact__big a:hover { color: var(--green-accent); transform: translateX(.6rem); }
.contact__big span { color: var(--muted); }
.contact__mail { margin-top: 2rem; font-family: var(--display); font-weight: 600; font-stretch: 78%; font-size: clamp(1.4rem, 2.6vw, 2.2rem); overflow-wrap: anywhere; }
.contact__mail a { color: var(--green-accent); text-decoration-color: var(--green-accent); }
.contact__mail a:hover { color: var(--white); }
.contact__list { display: grid; gap: 1.25rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.contact__list dt { color: var(--green-accent); margin-bottom: .2rem; }
.contact__list .link-line { margin-top: .6rem; font-size: .9rem; }

.contact__form { padding: clamp(3rem, 7vw, 6rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2)) clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 4rem); }
@media (max-width: 959.98px) {
  .contact { grid-template-columns: 1fr; }
  .contact__panel, .contact__form { padding-inline: var(--gutter); }
}
.form { display: grid; gap: 1.6rem; margin-top: 2.25rem; max-width: 40rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: .3rem; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: .7rem 0; font: inherit; font-size: 1.15rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  transition: box-shadow .25s, border-color .25s, background-color .25s, padding .25s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 4px 0 var(--green); background: var(--white); padding-inline: .75rem; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-style: dashed; border-bottom-width: 3px; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .8rem; }
.field--check input { width: 24px; height: 24px; margin: .1rem 0 0; accent-color: var(--ink); }
.form .btn { justify-self: start; }
.form-status { display: none; align-items: flex-start; gap: .75rem; margin-top: 1.5rem; padding: 1rem 1.25rem; font-weight: 500; max-width: 40rem; }
.form-status .icon { margin-top: .2em; }
.form-status--ok { background: var(--green-accent); color: var(--ink); }
.form-status--err { background: var(--ink); color: var(--white); }
.form-status--err a { color: var(--green-accent); }
.form-status:target, .form-status.is-visible { display: flex; }

/* ---------- 404 ---------------------------------------------------------- */
.nf { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 8rem); background: var(--ink); }
.nf__code { font-family: var(--display); font-weight: 800; font-stretch: 64%; font-size: clamp(9rem, 34vw, 30rem); line-height: .8; color: transparent; -webkit-text-stroke: 3px var(--green-accent); }
.nf p { margin-top: 1rem; }
.nf__en { color: var(--muted); }
.nf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; margin-top: 2.5rem; }

/* ---------- Scroll reveal (enabled by JS only) --------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Page transitions -------------------------------------------- */
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .4s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gutter); }
  .marquee__track > :nth-child(n + 9) { display: none; } /* one copy of the four service names */
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Print -------------------------------------------------------- */
@media print {
  .strip, .hdr, .ftr, .cta, .marquee, .hero__video, .hero__meta, .badge, .filters, .lightbox, .skip-link, .progress, .gridlines, .blk__num { display: none !important; }
  body, .hero, .phero, .sec, .blk, .index { background: #fff !important; color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
