/* ==========================================================================
   Zámečnictví Bartoš — styles.css
   Order: tokens → base → layout → components → sections → utilities → media
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --c-ink: #0E1013;
  --c-graphite: #171A1F;
  --c-steel-900: #23272E;
  --c-steel-700: #4B535E;
  --c-steel-600: #6B7380;            /* muted text on white that still passes 4.5:1 (placeholders) */
  --c-steel-500: #8A929D;
  --c-steel-300: #C9CED5;
  --c-steel-200: #E4E7EB;
  --c-steel-100: #F4F5F7;
  --c-white: #FFFFFF;
  --c-accent: #F0A030;
  --c-accent-600: #D4881A;
  --c-accent-700: #A25E0A;           /* accent text on light surfaces (≥ 4.5:1) */
  --c-accent-soft: rgba(240, 160, 48, .14);
  --c-text: #14171C;
  --c-text-inv: #F4F5F7;
  --c-error: #B22F2F;
  --c-success: #1F7A3E;

  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(14, 16, 19, .08);
  --shadow-lg: 0 24px 60px rgba(14, 16, 19, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --header-h: 64px;
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --hero-progress: 0;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-steel-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open,
body.lightbox-open { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-head);
  margin: 0;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1.04; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: -.018em; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }

p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--c-accent); color: var(--c-ink); }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  scroll-margin-top: var(--header-h);
}
.section--light { background: var(--c-steel-100); }
.section--white { background: var(--c-white); }
.section--dark  { background: var(--c-graphite); color: var(--c-text-inv); }

.section__head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { margin-top: .85rem; }
.section__lead { margin-top: 1.1rem; font-size: 1.0625rem; color: var(--c-steel-700); }
.section--dark .section__lead { color: var(--c-steel-300); }
.section__note {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  color: var(--c-steel-700);
  font-size: .95rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent-700);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  opacity: .9;
  border-radius: 2px;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--c-accent); }
.section__head--center .eyebrow::before { display: none; }

/* ---------- 4. Components ---------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(14, 16, 19, .18); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn-primary { background: var(--c-accent); color: var(--c-ink); }
.btn-primary:hover { background: #F5AD45; }
.btn-secondary { background: transparent; border-color: var(--c-steel-700); color: inherit; }
.btn-secondary:hover { border-color: var(--c-text); background: rgba(14, 16, 19, .04); }
.btn-secondary.btn--on-dark { border-color: var(--c-steel-300); color: var(--c-text-inv); }
.btn-secondary.btn--on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .08); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  transition: color .2s;
}
.text-link .icon { width: 1.05em; height: 1.05em; color: var(--c-accent-700); }
.text-link:hover { color: var(--c-accent-700); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(14, 16, 19, .55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); }
.icon-btn .icon { width: 22px; height: 22px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem .45rem .75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  font-size: .85rem;
  font-weight: 500;
  color: var(--c-steel-300);
  white-space: nowrap;
}
.chip .icon { width: 1rem; height: 1rem; color: var(--c-accent); }

/* Cards */
.cards { display: grid; gap: 1.25rem; list-style: none; }
.card {
  height: 100%;
  background: var(--c-white);
  border: 1px solid var(--c-steel-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(240, 160, 48, .65); box-shadow: var(--shadow); }
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--c-ink);
  color: var(--c-accent);
  margin-bottom: 1.35rem;
}
.card__icon .icon { width: 26px; height: 26px; }
.card__title { margin-bottom: .55rem; }
.card__text { color: var(--c-steel-700); font-size: .95rem; }

/* Reveal (IntersectionObserver in main.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Skip link */
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 300;
  padding: .65rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--c-accent);
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-250%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- 5. Sections ---------- */

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--c-text-inv);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 19, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .3s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}
.site-header__inner > .brand,
.site-header__inner > .site-header__actions { position: relative; z-index: 2; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.brand strong { font-weight: 700; }
.brand__mark { width: 32px; height: 32px; flex: none; color: var(--c-accent); }
.brand__mark svg { width: 100%; height: 100%; }

.site-nav { margin-inline: auto; }
.site-nav__list { display: flex; gap: .15rem; list-style: none; }
.site-nav__link {
  display: inline-block;
  padding: .5rem .85rem;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 500;
  color: rgba(244, 245, 247, .84);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav__link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.site-nav__extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--c-text-inv);
  transition: background-color .2s, color .2s;
}
.header-phone .icon { color: var(--c-accent); }
.header-phone:hover { background: rgba(255, 255, 255, .07); }
.header-phone__number { display: none; }
.header-cta { display: none; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}
.nav-toggle__icon { display: grid; }
.nav-toggle__icon .icon { width: 22px; height: 22px; }
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: grid; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-text-inv);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(70% 60% at 76% 58%, rgba(240, 160, 48, .17), transparent 70%),
    radial-gradient(50% 45% at 12% 14%, rgba(75, 83, 94, .32), transparent 70%),
    radial-gradient(90% 55% at 50% 110%, rgba(23, 26, 31, 1), transparent 60%),
    var(--c-ink);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(55% 55% at 72% 55%, #000 10%, transparent 75%);
  mask-image: radial-gradient(55% 55% at 72% 55%, #000 10%, transparent 75%);
  opacity: .55;
}
.hero__scene { position: absolute; inset: 0 0 auto 0; height: 100svh; z-index: 1; }
.hero__scene canvas { display: block; width: 100%; height: 100%; }
.hero--fallback .hero__scene {
  background: url(../assets/hero-fallback.svg) no-repeat;
  background-size: min(64vh, 42vw);
  background-position: 80% 54%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 16, 19, .55) 0%, rgba(14, 16, 19, .25) 38%, transparent 58%);
}
.hero__inner { position: relative; z-index: 3; padding-block: clamp(2rem, 5vh, 4rem) clamp(5rem, 10vh, 6.5rem); }
.hero__content {
  max-width: 620px;
  opacity: calc(1 - var(--hero-progress) * .95);
  transform: translateY(calc(var(--hero-progress) * 48px));
}
.hero__title { margin-top: 1.1rem; color: #fff; }
.hero__lead {
  margin-top: 1.4rem;
  max-width: 560px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--c-steel-300);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero .chips { margin-top: 1.85rem; }

.hero__content > * { animation: hero-in .9s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__content > :nth-child(3) { animation-delay: .16s; }
.hero__content > :nth-child(4) { animation-delay: .24s; }
.hero__content > :nth-child(5) { animation-delay: .32s; }
/* The H1 is the LCP element: it only slides in (no opacity fade), so it counts as painted immediately. */
.hero__title { animation-name: hero-slide; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-slide { from { transform: translateY(18px); } to { transform: none; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  translate: -50% 0;                /* independent property: the hero-in keyframe's transform cannot undo the centring */
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-steel-500);
  text-decoration: none;
  animation: hero-in 1s .8s var(--ease) both;
  transition: color .2s;
}
.scroll-cue:hover { color: var(--c-text-inv); }
.scroll-cue__line { position: relative; width: 1px; height: 40px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-accent);
  transform-origin: top;
  animation: cue-drip 2.2s var(--ease) infinite;
}
@keyframes cue-drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* About */
.about__grid { display: grid; gap: 3rem; }
.about__text h2 { margin: .85rem 0 1.5rem; }
.about__text p + p { margin-top: 1.1rem; }
.about__text p:not(.eyebrow) { color: var(--c-steel-700); }
.about__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--c-graphite);
  color: var(--c-text-inv);
}
.about__panel::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 160, 48, .22), transparent 70%);
  pointer-events: none;
}
.about__year {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.about__year-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3.5rem, 6vw, 4.5rem);
  line-height: .9;
  letter-spacing: -.035em;
  color: var(--c-accent);
}
.about__year-label {
  max-width: 11rem;
  padding-bottom: .25rem;
  font-size: .8rem;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-steel-500);
}
.facts { position: relative; display: grid; gap: 1.35rem; list-style: none; }
.fact { display: flex; gap: 1rem; align-items: flex-start; }
.fact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(240, 160, 48, .12);
  color: var(--c-accent);
}
.fact__icon .icon { width: 20px; height: 20px; }
.fact__title { font-size: 1.02rem; margin-bottom: .2rem; color: #fff; }
.fact__text { font-size: .92rem; color: var(--c-steel-300); }

/* Process */
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(240, 160, 48, .08), transparent 70%);
  pointer-events: none;
}
.process .container { position: relative; }
.steps { display: grid; gap: 2rem; list-style: none; counter-reset: step; }
.step { position: relative; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--c-accent);
}
.step__num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-accent);
}
.step__title { margin-bottom: .5rem; color: #fff; }
.step__text { font-size: .95rem; color: var(--c-steel-300); }

/* Gallery */
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; }
.gallery__tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--c-steel-200);
  border-radius: var(--radius);
  background: var(--c-white);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.gallery__tile:hover { transform: translateY(-3px); border-color: rgba(240, 160, 48, .65); box-shadow: var(--shadow); }
.gallery__tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #E9EBEE, #CDD2D8);
  transition: transform .6s var(--ease);
}
.gallery__tile:hover img { transform: scale(1.03); }
.gallery__caption { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .95rem .95rem; }
.gallery__cat {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent-700);
}
.gallery__name { font-weight: 600; font-size: .92rem; line-height: 1.35; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-text-inv);
}
.lightbox::backdrop { background: rgba(14, 16, 19, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__frame { position: relative; width: min(100% - 2rem, 1080px, calc(74vh * 4 / 3)); } /* tiles are 4:3 */
.lightbox__figure { margin: 0; }
.lightbox__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #E9EBEE, #CDD2D8);
  box-shadow: var(--shadow-lg);
}
.lightbox__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .85rem; margin-top: 1rem; padding-inline: .25rem; }
.lightbox__cat { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.lightbox__name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.lightbox__count { margin-left: auto; font-size: .85rem; color: var(--c-steel-500); }
.lightbox__close { position: absolute; top: -56px; right: 0; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: .75rem; }
.lightbox__nav--next { right: .75rem; }

/* Contact */
.contact__grid { display: grid; gap: 2rem; }
.contact__card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--c-ink);
  color: var(--c-text-inv);
}
.contact__card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 160, 48, .26), transparent 70%);
  pointer-events: none;
}
.contact__card > * { position: relative; }
.contact__title { color: #fff; }
.contact__list { display: grid; gap: 1.25rem; margin: 1.6rem 0; list-style: none; }
.contact__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: var(--c-accent);
}
.contact__icon .icon { width: 20px; height: 20px; }
.contact__label {
  display: block;
  margin-bottom: .1rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-steel-500);
}
.contact__value { display: block; font-weight: 500; color: var(--c-text-inv); text-decoration: none; overflow-wrap: anywhere; }
a.contact__value:hover { color: var(--c-accent); }
.contact__value--big { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.contact__meta { margin-bottom: 1.5rem; font-size: .88rem; color: var(--c-steel-500); }

/* Form */
.form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--c-steel-200);
  border-radius: var(--radius);
  background: var(--c-white);
  box-shadow: var(--shadow);
}
.form__row--2 { display: grid; gap: 0 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.15rem; }
.field__label { font-weight: 600; font-size: .92rem; }
.field__req { color: var(--c-accent-700); }
.field__input {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--c-steel-300);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  font: inherit;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: var(--c-steel-600); }
.field__input:focus { outline: none; border-color: var(--c-accent-600); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.field__input[aria-invalid="true"] { border-color: var(--c-error); box-shadow: 0 0 0 3px rgba(178, 47, 47, .12); }
textarea.field__input { min-height: 150px; resize: vertical; }
.field__error { font-size: .85rem; color: var(--c-error); }
.field--check { flex-direction: row; align-items: flex-start; gap: .75rem; }
.field--check input { flex: none; width: 1.15rem; height: 1.15rem; margin: .25rem 0 0; accent-color: var(--c-accent-600); }
.field--check label { font-size: .92rem; color: var(--c-steel-700); }
.field--check .field__error { margin-top: .3rem; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: .25rem; }
.form__status { font-size: .92rem; font-weight: 500; color: var(--c-steel-700); }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--c-success); }
.form__status.is-error { color: var(--c-error); }
.form__note { margin-top: 1.1rem; font-size: .82rem; color: var(--c-steel-700); }
.form__note + .form__note { margin-top: .5rem; }
.form__note a { color: inherit; font-weight: 600; text-decoration-color: var(--c-accent); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }

/* Footer */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--c-ink);
  color: var(--c-steel-300);
}
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer .brand { color: #fff; }
.site-footer__tagline { max-width: 36ch; margin-top: 1.1rem; font-size: .95rem; }
.site-footer__heading {
  margin-bottom: .7rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-steel-500);
}
.site-footer ul { display: grid; gap: .25rem; list-style: none; justify-items: start; }
/* padding-block keeps every footer link a ≥ 40px tap target */
.site-footer__link { display: inline-flex; align-items: center; gap: .55rem; padding-block: .45rem; color: var(--c-steel-300); text-decoration: none; transition: color .2s; }
.site-footer__link .icon { width: 1.05em; height: 1.05em; color: var(--c-accent); }
.site-footer__link:hover { color: #fff; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .85rem;
  color: var(--c-steel-500);
}
.to-top { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding-block: .6rem; font-weight: 500; color: var(--c-steel-300); text-decoration: none; transition: color .2s; }
.to-top .icon { transform: rotate(-90deg); color: var(--c-accent); }
.to-top:hover { color: #fff; }

/* ---------- 6. Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 7. Media queries ---------- */

/* Mobile navigation overlay (< 900px) */
@media (max-width: 899.98px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    margin: 0;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
    background: var(--c-ink);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-nav__link {
    display: block;
    padding: 1rem 0;
    border-radius: 0;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
  }
  .site-nav__link:hover { background: none; color: var(--c-accent); }
  .site-nav__extra { display: grid; gap: 1rem; justify-items: start; }
  .site-nav__phone {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
  }
  .site-nav__phone .icon { color: var(--c-accent); }
  .site-nav__meta { font-size: .9rem; color: var(--c-steel-500); }
  .site-nav__meta a { color: var(--c-steel-300); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: .2em; }
  body.nav-open .site-header::before { opacity: 1; background: var(--c-ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Mobile hero (< 1024px): centred text, object above/behind, scrim for contrast */
@media (max-width: 1023.98px) {
  .hero { align-items: flex-end; text-align: center; }
  .hero__inner { padding-top: min(44svh, 380px); padding-bottom: 3.5rem; }
  .hero__content { max-width: 640px; margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero .chips { justify-content: center; }
  .hero__scrim { background: linear-gradient(180deg, transparent 24svh, rgba(14, 16, 19, .6) 44svh, rgba(14, 16, 19, .94) 60svh, var(--c-ink) 100svh); }
  .hero::after { -webkit-mask-image: radial-gradient(50% 40% at 50% 28%, #000 10%, transparent 75%); mask-image: radial-gradient(50% 40% at 50% 28%, #000 10%, transparent 75%); }
  .hero--fallback .hero__scene { background-size: min(52vw, 40vh); background-position: 50% 20%; }
  .scroll-cue { display: none; }
}

/* Phones (< 640px): compact hero so the primary CTA stays above the fold; the 3D lock is smaller (hero-scene.js LAYOUT) */
@media (max-width: 639.98px) {
  .hero__inner { padding-top: min(34svh, 300px); }
  .hero__title { margin-top: .9rem; font-size: clamp(2.15rem, 9.5vw, 2.5rem); }
  .hero__lead { margin-top: 1.1rem; font-size: 1rem; }
  .hero__actions { margin-top: 1.5rem; }
  .hero .chips { margin-top: 1.5rem; }
  .hero__scrim { background: linear-gradient(180deg, transparent 27svh, rgba(14, 16, 19, .6) 39svh, rgba(14, 16, 19, .94) 50svh, var(--c-ink) 100svh); }
  .hero::after { -webkit-mask-image: radial-gradient(50% 36% at 50% 22%, #000 10%, transparent 75%); mask-image: radial-gradient(50% 36% at 50% 22%, #000 10%, transparent 75%); }
  .hero--fallback .hero__scene { background-size: min(56vw, 34vh); background-position: 50% 12%; }
}

@media (max-width: 479.98px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
}

/* Short viewports (phone landscape): keep the close button on-screen, inside the image corner */
@media (max-height: 519.98px) {
  .lightbox__frame { width: min(100% - 2rem, 1080px, calc((100vh - 5rem) * 4 / 3)); }
  .lightbox__close { top: .6rem; right: .6rem; }
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .gallery__grid { gap: 1.25rem; }
}

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2rem; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: none; }
  .header-phone__number { display: inline; }
}

@media (min-width: 1024px) {
  body { font-size: 1.0625rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .about__grid { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; align-items: start; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .contact__grid { grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }
  .hero__inner { padding-block: clamp(2.5rem, 5vh, 4rem) clamp(5.5rem, 10vh, 7rem); }
  .lightbox__nav--prev { left: -22px; }
  .lightbox__nav--next { right: -22px; }
}

@media (min-width: 1180px) {
  .header-cta { display: inline-flex; }
  .lightbox__nav--prev { left: -64px; }
  .lightbox__nav--next { right: -64px; }
}

/* Reduced motion: no animation anywhere */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__content > *, .scroll-cue { animation: none; }
  .scroll-cue__line::after { animation: none; transform: scaleY(1); }
  .hero__content { opacity: 1; transform: none; }
}
