/* armiranazemljina.si: mobile-first. Base = phone, min-width queries upward. */

:root {
  --humus: #1d1814;
  --loam: #2a221c;
  --loam-2: #352b23;
  --clay: #6e5038;
  --sand: #e3d5bb;
  --sand-2: #d6c4a5;
  --stone: #f1ebdf;
  --grid: #f26a1b;
  --grid-ink: #ab3f07;
  --moss: #5f7a2e;
  --ink: #1d1814;
  --ink-soft: #54463a;
  --paper: #f3ece0;
  --paper-soft: #c9bba5;
  --line-dark: rgba(243, 236, 224, .14);
  --line-light: rgba(29, 24, 20, .16);

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: 16px;
  --header-h: 60px;
  --callbar-h: 68px;
  --radius: 4px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--humus);
  color: var(--paper);
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--grid); color: var(--ink); padding: 10px 14px; font-weight: 700;
  border-radius: var(--radius);
}
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--grid); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grid);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 7px);
}
.eyebrow-dark { color: var(--grid-ink); }

h1, h2, .sub-h {
  font-family: var(--f-display);
  font-stretch: 66%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.005em;
}
h2 { font-size: clamp(2.3rem, 9vw, 4.4rem); margin-bottom: 18px; text-wrap: balance; }
.sub-h { font-size: clamp(1.7rem, 6vw, 2.6rem); margin-bottom: 24px; }
h3 {
  font-family: var(--f-display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
  margin-bottom: 8px;
}
.lead { font-size: 1.08rem; line-height: 1.55; max-width: 62ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--f-text);
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grid); color: var(--ink); }
.btn-primary:hover { background: #ff7f33; }
.btn-ghost { border-color: rgba(243, 236, 224, .55); color: var(--paper); background: rgba(29, 24, 20, .35); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(243, 236, 224, .08); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--paper);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(29, 24, 20, .95);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--f-display);
  font-stretch: 70%;
  font-weight: 800;
  font-size: 1rem;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone, .header-cta { display: none; }
.header-phone {
  align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--grid); }
.header-phone:hover span { text-decoration: underline; text-underline-offset: 3px; }

.menu-toggle {
  width: 48px; height: 48px; margin-right: -8px;
  display: grid; place-items: center;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.bars, .bars span, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease-out), opacity .2s; }
.bars { position: relative; background: none; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress span {
  display: block; height: 100%;
  background: var(--grid);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Full-screen mobile menu */
.nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--humus);
  padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease-out), visibility 0s .3s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease-out); }
.nav-list a {
  display: flex; align-items: center;
  min-height: 64px;
  font-family: var(--f-display);
  font-stretch: 70%;
  font-weight: 800;
  font-size: 1.9rem;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.nav-list a:hover { color: var(--grid); }
.nav-list li { border-bottom: 1px solid var(--line-dark); }
.nav-foot { display: grid; gap: 10px; margin-top: 24px; }
body.menu-open { overflow: hidden; }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(29, 24, 20, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-dark);
  transition: transform .35s var(--ease-out);
}
.callbar .btn { min-height: 52px; font-size: 1.02rem; }
.callbar.is-hidden { transform: translateY(110%); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--humus);
  padding-top: 28px;
  overflow: hidden;
}
.hero .eyebrow { margin-bottom: 12px; }
.hero h1 {
  font-size: clamp(2.7rem, 13.2vw, 6.6rem);
  line-height: .9;
}
.hero h1 span { display: block; }
.h1-b { color: var(--grid); }
.hero-stage {
  position: relative;
  margin-top: 20px;
  height: clamp(300px, 96vw, 520px);
  background: var(--loam);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter 1.2s ease, transform 1.6s var(--ease-out), opacity 1.2s;
  will-change: transform;
}
.hero-stage::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--humus) 0, transparent 22%, transparent 70%, var(--humus) 100%);
  pointer-events: none;
}
.hero-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; z-index: 1; }
.hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero.is-3d .hero-canvas { opacity: 1; }
.hero.is-3d .hero-photo { filter: brightness(.38) saturate(.7) blur(5px); transform: scale(1.08); }
.hero-bottom { position: relative; z-index: 2; padding-top: 4px; padding-bottom: 40px; }
.hero-lead { font-size: 1.06rem; color: var(--paper); max-width: 46ch; }
.hero-ctas { display: grid; gap: 10px; margin: 22px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .02em;
  padding: 6px 10px 6px 26px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  color: var(--paper-soft);
  position: relative;
}
.chips li::before {
  content: ""; position: absolute; left: 10px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  background:
    linear-gradient(var(--grid), var(--grid)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--grid), var(--grid)) 50% 0 / 2px 100% no-repeat;
}

/* intro motion for hero text */
.js .hero-top > *, .js .hero-bottom > * {
  animation: rise .9s var(--ease-out) both;
}
.js .hero h1 { animation-delay: .08s; }
.js .hero-bottom > :nth-child(1) { animation-delay: .2s; }
.js .hero-bottom > :nth-child(2) { animation-delay: .28s; }
.js .hero-bottom > :nth-child(3) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Strata divider (signature) ---------- */

.strata {
  position: relative;
  height: 54px;
  background: linear-gradient(180deg,
    #8b6a47 0 12px, #7a5a3f 12px 26px, #5e4532 26px 40px, #3b2e24 40px 54px);
  overflow: hidden;
}
.strata i {
  position: absolute; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--grid) 0 12px, transparent 12px 16px);
  background-size: 16px 2px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-out);
  animation: drift 6s linear infinite;
}
.strata i:nth-child(1) { top: 12px; }
.strata i:nth-child(2) { top: 26px; transition-delay: .15s; animation-duration: 9s; animation-direction: reverse; }
.strata i:nth-child(3) { top: 40px; transition-delay: .3s; animation-duration: 7.5s; }
.strata.is-in i, .no-js .strata i { transform: scaleX(1); }
html:not(.js) .strata i { transform: scaleX(1); }
@keyframes drift { to { background-position-x: 16px; } }
.strata-dark { background: linear-gradient(180deg, #e3d5bb 0 10px, #8b6a47 10px 22px, #6a4e38 22px 36px, #3b2e24 36px 46px, var(--humus) 46px); }
.strata-dark i:nth-child(1) { top: 10px; }
.strata-dark i:nth-child(2) { top: 22px; }
.strata-dark i:nth-child(3) { top: 36px; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; position: relative; }
.section-sand { background: var(--sand); color: var(--ink); }
.section-stone { background: var(--stone); color: var(--ink); }
.section-dark { background: var(--humus); color: var(--paper); }
.section-head { margin-bottom: 32px; }
.section-sand .lead, .section-stone .lead { color: var(--ink-soft); }
.section-dark .lead { color: var(--paper-soft); }

/* reveal + split headings */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .02em .06em; margin: -.16em -.02em -.06em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 55ms); }
.split.is-in .w > span { transform: none; }

/* ---------- Explainer: scroll-driven stage ---------- */

.scrolly { position: relative; padding-inline: 0; }
.stage {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  height: 50svh;
  min-height: 300px;
  max-height: 460px;
  background:
    radial-gradient(120% 80% at 50% 40%, #efe4cf 0, var(--sand) 55%, var(--sand-2) 100%);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
}
.stage-canvas { position: absolute; inset: 0; }
.stage-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.stage-fallback { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 64px); }
.stage.is-3d .stage-fallback { display: none; }
.stage-labels { position: absolute; inset: 0; pointer-events: none; }
.stage-labels span {
  position: absolute; left: 0; top: 0;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--paper);
  background: var(--humus);
  padding: 3px 7px 3px 16px;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  will-change: transform;
}
.stage-labels span[data-align="left"] { padding: 3px 16px 3px 7px; }
.stage-labels span[data-align="left"]::before { left: auto; right: 6px; }
.stage-labels span::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  background: var(--grid); border-radius: 50%;
}
.stage-hud {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .72rem; color: var(--ink);
}
.hud-no { background: var(--ink); color: var(--grid); padding: 2px 6px; border-radius: 2px; }
.hud-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-ticks { display: flex; gap: 3px; }
.hud-ticks i { width: 12px; height: 3px; background: rgba(29, 24, 20, .22); transition: background-color .3s; }
.hud-ticks i.on { background: var(--grid-ink); }

.steps { position: relative; z-index: 1; padding: 0 var(--gutter) 22svh; }
.step {
  min-height: 62svh;
  padding: 26px 0 0;
  border-left: 2px solid transparent;
}
.step .step-no { display: inline-block; font-family: var(--f-mono); font-size: .78rem; color: var(--grid-ink); margin-bottom: 6px; }
.step h3 { font-size: 1.5rem; font-stretch: 72%; text-transform: uppercase; font-weight: 800; }
.step p { color: var(--ink-soft); max-width: 46ch; font-size: 1.05rem; }
.step { opacity: .35; transition: opacity .4s; }
.step.is-active { opacity: 1; }
html:not(.js) .step { opacity: 1; min-height: 0; padding-bottom: 20px; }

.advantages-wrap { padding-top: 16px; }
.advantages { display: grid; gap: 0; }
.advantages li {
  padding: 20px 0 18px;
  border-top: 2px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--grid-ink) 0 10px, transparent 10px 14px) 2;
}
.advantages h4 { font-family: var(--f-display); font-stretch: 85%; font-size: 1.2rem; margin-bottom: 6px; }
.advantages p { color: var(--ink-soft); margin: 0; }

/* ---------- Services ---------- */

.services { display: grid; gap: 18px; }
.service {
  background: var(--loam);
  border-radius: var(--radius);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .8s var(--ease-out);
  border-top: 3px solid var(--grid);
}
.js .service.reveal { transform: perspective(900px) translateY(22px); }
.js .service.reveal.is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.service-media { aspect-ratio: 3 / 2; }
.service-media img { transition: transform .6s var(--ease-out); transform: scale(1.04) translate(var(--tx, 0), var(--ty, 0)); }
.service-body { padding: 18px 18px 20px; }
.service-body p { color: var(--paper-soft); margin: 0; font-size: .97rem; }

.media {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(242, 106, 27, .35) 22px 23px),
    linear-gradient(180deg, #8b6a47, #4a3829);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media img.is-broken { visibility: hidden; }

/* ---------- Process (strata list) ---------- */

.process { counter-reset: none; }
.process li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 14px;
  padding: 22px 0 20px;
  position: relative;
}
.process li + li { border-top: 2px solid transparent; border-image: repeating-linear-gradient(90deg, var(--grid-ink) 0 10px, transparent 10px 14px) 2; }
.process .step-no {
  font-family: var(--f-display); font-stretch: 66%; font-weight: 800;
  font-size: 2.4rem; line-height: 1; color: var(--clay);
}
.process h3 { font-size: 1.3rem; }
.process p { color: var(--ink-soft); margin: 0; }

/* ---------- Comparison table ---------- */

.table-wrap { margin-inline: calc(var(--gutter) * -1); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare thead { display: none; }
.compare tbody, .compare tr { display: block; }
.compare tr { padding: 16px var(--gutter); border-top: 1px solid var(--line-light); }
.compare tbody tr:last-child { border-bottom: 1px solid var(--line-light); }
.compare th[scope="row"] {
  display: block; text-align: left;
  font-family: var(--f-display); font-stretch: 72%; font-weight: 800; text-transform: uppercase;
  font-size: 1.15rem; margin-bottom: 10px;
}
.compare td { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 6px 0; vertical-align: top; }
.compare td::before {
  content: attr(data-label);
  font-family: var(--f-mono); font-size: .7rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-soft); padding-top: 3px;
}
.compare td:nth-of-type(1) { color: var(--ink); font-weight: 600; }
.compare td:nth-of-type(1)::before { color: var(--grid-ink); }
.compare td:nth-of-type(2) { color: var(--ink-soft); }
.fineprint { font-size: .85rem; color: var(--ink-soft); margin-top: 18px; }

/* ---------- Gallery strip ---------- */

.gallery { background: var(--humus); padding: 12px 0; }
.gallery-track {
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.g-item { flex: none; width: 70vw; height: 52vw; max-height: 380px; scroll-snap-align: center; border-radius: 2px; }
.g-item.g-wide { width: 84vw; }
.g-item img { transform: scale(1.12); transition: transform 1.2s var(--ease-out); }

/* ---------- About ---------- */

.about { display: grid; gap: 28px; }
.about-media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.about-media img { height: 115%; margin-top: -7.5%; }
.about-text p:not(.eyebrow) { color: var(--paper-soft); }
.about-text .lead { color: var(--paper); }

/* ---------- FAQ ---------- */

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 12px;
  min-height: 60px; padding: 14px 0;
  font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 1.12rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) 50% 50% / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 50% 50% / 2px 12px no-repeat,
    rgba(29, 24, 20, .08);
  transition: transform .3s var(--ease-out), background-color .2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(var(--ink), var(--ink)) 50% 50% / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 50% 50% / 2px 12px no-repeat,
    var(--grid);
}
.faq summary:hover { color: var(--grid-ink); }
.faq details p { color: var(--ink-soft); padding: 0 40px 18px 0; margin: 0; max-width: 72ch; }
.faq details[open] p { animation: rise .45s var(--ease-out); }

/* ---------- Contact ---------- */

.contact { display: grid; gap: 36px; }
.direct { font-style: normal; margin-top: 24px; border-top: 1px solid var(--line-dark); }
.direct-row {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline;
  padding: 14px 0; min-height: 52px; margin: 0;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
}
.direct-label { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--paper-soft); }
.direct-val { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
a.direct-row:hover .direct-val { color: var(--grid); }

.form {
  background: var(--loam);
  border-radius: var(--radius);
  padding: 22px 16px;
  border-top: 3px solid var(--grid);
  margin-inline: calc(var(--gutter) * -1);
}
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.req { color: var(--grid); }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--paper);
  background: var(--humus);
  border: 1px solid rgba(243, 236, 224, .28);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #9d8f7b; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--grid); box-shadow: 0 0 0 3px rgba(242, 106, 27, .3); }
.field [aria-invalid="true"] { border-color: #ff8a5b; }
.err { color: #ffab85; font-size: .88rem; margin: 6px 0 0; }
.form-note { font-size: .88rem; color: var(--paper-soft); }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius); font-weight: 600; }
.form-ok { background: rgba(95, 122, 46, .3); border-left: 3px solid #9cc25a; }
.form-fail { background: rgba(242, 106, 27, .15); border-left: 3px solid var(--grid); }

/* ---------- Footer ---------- */

.site-footer {
  background: #14110e;
  color: var(--paper-soft);
  padding: 32px 0 calc(28px + var(--callbar-h) + env(safe-area-inset-bottom));
  font-size: .9rem;
  border-top: 1px solid var(--line-dark);
}
.footer-line { color: var(--paper); max-width: 60ch; }
.footer-data { margin: 0; overflow-wrap: anywhere; }
.footer-data a { text-decoration: none; }
.footer-data a:hover { color: var(--grid); }

/* ---------- 404 ---------- */

.page-404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.page-404 h1 { font-size: clamp(5rem, 30vw, 12rem); color: var(--grid); }
.page-404 p { color: var(--paper-soft); }
.page-404 .strata { width: min(420px, 100%); margin: 24px auto; }
.page-404 .strata i { transform: none; }

/* ========== ≥ 600px ========== */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .hero-ctas { display: flex; flex-wrap: wrap; }
  .services { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .form { margin-inline: 0; padding: 28px; }
  .g-item { width: 44vw; height: 30vw; }
  .g-item.g-wide { width: 52vw; }
  .table-wrap { margin-inline: 0; }
}

/* ========== ≥ 900px: no call bar, header CTA ========== */
@media (min-width: 900px) {
  :root { --header-h: 72px; --callbar-h: 0px; }
  .callbar { display: none; }
  .header-phone, .header-cta { display: inline-flex; }
  .brand-name { font-size: 1.1rem; }
  .section { padding: 112px 0; }
  .section-head { margin-bottom: 52px; }

  /* real table on wider screens */
  .compare thead { display: table-header-group; }
  .compare tbody { display: table-row-group; }
  .compare tr { display: table-row; padding: 0; }
  .compare th, .compare th[scope="row"], .compare td { display: table-cell; padding: 18px 20px; border-bottom: 1px solid var(--line-light); text-align: left; vertical-align: top; }
  .compare td::before { content: none; }
  .compare th[scope="row"] { font-size: 1.1rem; margin: 0; width: 22%; }
  .compare thead th {
    font-family: var(--f-display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: 1.3rem;
    border-bottom: 2px solid var(--ink);
  }
  .compare .col-az { color: var(--grid-ink); }
  .compare td:nth-of-type(1) { background: rgba(242, 106, 27, .07); }
  .compare thead .col-az { background: rgba(242, 106, 27, .07); }

  .process-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .process-head { position: sticky; top: calc(var(--header-h) + 40px); }
  .process li { grid-template-columns: 80px 1fr; padding: 28px 0; }
  .process .step-no { font-size: 3.4rem; }

  .about { grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
  .contact { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .advantages { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ========== ≥ 1024px: full-bleed 3D hero, side-by-side explainer ========== */
@media (min-width: 1024px) {
  .hero {
    min-height: min(100svh - var(--header-h), 940px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    padding: 72px 0;
  }
  .hero-stage {
    position: absolute; inset: 0;
    height: auto; margin: 0;
  }
  .hero-stage::after {
    background:
      linear-gradient(90deg, rgba(29, 24, 20, .92) 0, rgba(29, 24, 20, .7) 34%, transparent 58%),
      linear-gradient(180deg, transparent 75%, var(--humus) 100%);
  }
  .hero-top, .hero-bottom { position: relative; z-index: 2; }
  .hero-top > *, .hero-bottom > * { max-width: 600px; }
  .hero h1 { font-size: clamp(4.4rem, 7.4vw, 7.2rem); }
  .hero-bottom { padding-bottom: 0; padding-top: 22px; }
  .hero-lead { font-size: 1.15rem; }

  .scrolly {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    padding-inline: var(--gutter);
  }
  .stage {
    grid-column: 2; grid-row: 1;
    top: calc(var(--header-h) + 5vh);
    height: calc(100vh - var(--header-h) - 10vh);
    max-height: 720px;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
  }
  .steps { grid-column: 1; grid-row: 1; padding: 18vh 0 30vh; }
  .step { min-height: 64vh; padding-top: 0; }
  .step h3 { font-size: 2rem; }
  .stage-hud { left: 18px; right: 18px; bottom: 16px; font-size: .78rem; }
  .stage-labels span { font-size: .8rem; }

  .services { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .g-item { width: 30vw; height: 22vw; }
  .g-item.g-wide { width: 38vw; }
}

/* ========== ≥ 1180px: inline navigation ========== */
@media (min-width: 1180px) {
  .menu-toggle { display: none; }
  .nav {
    position: fixed;
    inset: 0 auto auto 50%;
    height: var(--header-h);
    transform: translateX(-46%);
    z-index: 51;
    background: none; padding: 0;
    opacity: 1; visibility: visible;
    flex-direction: row; align-items: center;
    overflow: visible;
    transition: none;
  }
  .nav-foot { display: none; }
  .header-phone { width: 44px; justify-content: center; padding: 0; }
  .header-phone .phone-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-list { display: flex; gap: 2px; }
  .nav-list li { border: 0; }
  .nav-list a {
    font-family: var(--f-text); font-stretch: 100%; font-weight: 600; font-size: .9rem;
    text-transform: none; min-height: 44px; padding: 0 10px;
    position: relative; color: var(--paper);
  }
  .nav-list a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px;
    background: var(--grid); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease-out);
  }
  .nav-list a:hover, .nav-list a.is-current { color: var(--paper); }
  .nav-list a:hover::after, .nav-list a.is-current::after { transform: scaleX(1); }
}

@media (min-width: 1480px) {
  .header-phone { width: auto; padding: 0 6px; }
  .header-phone .phone-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ---------- Hover-capable devices ---------- */
@media (hover: hover) and (pointer: fine) {
  .service:hover { box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .65); }
  .g-item:hover img { transform: scale(1.18); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .strata i { transform: scaleX(1); }
  .service, .js .service.reveal { transform: none !important; }
}
