/* ==========================================================================
   VL Clean Team — styles
   Brand: white (#FFFFFF) with a near-black ink. Minimal, architectural grid.
   ========================================================================== */

:root {
  /* Color tokens */
  --white: #ffffff;
  --ink: #141414;
  --ink-soft: #565656;          /* 7:1 on white */
  --line: rgba(20, 20, 20, 0.14);
  --line-light: rgba(255, 255, 255, 0.38);
  --paper: #f5f5f3;
  --error: #b3261e;
  --overlay: rgba(10, 10, 10, 0.38);

  /* Type */
  /* Gotham is licensed (Hoefler&Co): it is used when installed or self-hosted,
     otherwise Montserrat (Google Fonts) — its closest free match — takes over. */
  --font-sans: "Gotham", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.025em;
  --label-tracking: 0.16em;

  /* Layout */
  --rail: clamp(11.25rem, 17vw, 16.25rem);
  --header-h: 4.5rem;
  --gutter: clamp(1.5rem, 8vw, 8rem);
  --section-y: clamp(6rem, 16vh, 11.25rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 420ms;
  --dur-slow: 900ms;

  /* Layers */
  --z-rail: 50;
  --z-footer: 52;               /* covers the rail so the brand cell sits in the rail column */
  --z-header: 55;
  --z-menu: 100;
}

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

/* Every size is in rem, so the root size scales the whole layout.
   Phones to laptops: 16px (or the user's own setting). Above ~1830px wide
   (1080p monitors/TVs, 1440p, 4K) it grows with the viewport: 4K ≈ 34px. */
html {
  font-size: max(100%, 0.875vw);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 0.25rem; }

.sr-only {
  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: fixed; top: 0.75rem; left: 0.75rem; z-index: 200;
  padding: 0.625rem 1rem; background: var(--ink); color: var(--white);
  transform: translateY(-200%); transition: transform var(--dur-fast);
}
.skip-link:focus { transform: none; }

#sadrzaj { scroll-margin-top: var(--header-h); }

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.container {
  padding-left: var(--gutter);
  padding-right: calc(var(--rail) + var(--gutter) * 0.5);
}

.section-title {
  font-size: clamp(2.25rem, 4.8vw, 4.5rem);
  font-weight: var(--display-weight);
  line-height: 1.02;
  letter-spacing: var(--display-tracking);
  text-wrap: balance;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.875rem;
}

/* Text link with the reference's "| →" detail */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}
.link-arrow__bar {
  width: 1px;
  height: 1.375rem;
  background: currentColor;
}
.link-arrow__icon {
  width: 1.125rem; height: 1.125rem;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  transition: transform var(--dur) var(--ease-out);
}
.link-arrow:hover .link-arrow__icon,
.link-arrow:focus-visible .link-arrow__icon { transform: translateX(0.3125rem); }
.link-arrow--inline { vertical-align: middle; margin-left: 0.375rem; min-height: 2rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.875rem;
  min-height: 3.25rem; padding: 0 1.75rem;
  background: var(--ink); color: var(--white);
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: var(--label-tracking); text-transform: uppercase;
  transition: background-color var(--dur-fast), transform var(--dur-fast);
}
.btn svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform var(--dur) var(--ease-out); }
.btn:hover { background: #2c2c2c; }
.btn:hover svg { transform: translateX(0.25rem); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; cursor: progress; }

/* Logo: emblem + wordmark */
.logo { display: inline-flex; align-items: center; gap: 0.75rem; line-height: 1; }
.logo__text { display: flex; flex-direction: column; }
/* VL monogram: white version over photos, black version on white */
.logo__mark {
  display: block;
  position: relative;
  height: 2.5rem;
  aspect-ratio: 450 / 316;
  flex-shrink: 0;
}
.logo__mark img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: opacity var(--dur);
}
.logo__mark-dark { opacity: 0; }
body.is-light .logo__mark-light { opacity: 0; }
body.is-light .logo__mark-dark { opacity: 1; }
.logo__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.logo__sub {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-top: 0.375rem;
}

/* --------------------------------------------------------------------------
   Header + rail
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: var(--rail);
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 2.4vw, 2.25rem);
  color: var(--white);
  border-bottom: 1px solid var(--line-light);
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}

.rail {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: var(--rail);
  z-index: var(--z-rail);
  display: flex; flex-direction: column; align-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(0.875rem);
  backdrop-filter: blur(0.875rem);
  border-left: 1px solid var(--line-light);
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}

/* Light state once the hero has scrolled away */
body.is-light .site-header {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
body.is-light .rail {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.menu-btn {
  display: grid; place-items: center;
  width: 100%; height: var(--header-h);
  border-bottom: 1px solid currentColor;
  border-bottom-color: inherit;
}
.rail .menu-btn { border-bottom: 1px solid var(--line-light); }
body.is-light .rail .menu-btn { border-bottom-color: var(--line); }

.menu-btn__lines,
.menu-btn__lines::before,
.menu-btn__lines::after {
  display: block;
  width: 1.375rem; height: 1px;
  background: currentColor;
  position: relative;
  transition: transform var(--dur-fast);
}
.menu-btn__lines::before,
.menu-btn__lines::after { content: ""; position: absolute; left: 0; }
.menu-btn__lines::before { top: -0.3125rem; }
.menu-btn__lines::after { top: 0.3125rem; }
.menu-btn:hover .menu-btn__lines::before { transform: translateY(-1px); }
.menu-btn:hover .menu-btn__lines::after { transform: translateY(1px); }

.menu-btn--mobile { display: none; }

.rail__scroll {
  margin: auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.625rem;
  font-size: 0.75rem; letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  padding: 0.75rem;
}
.rail__scroll-line {
  width: 1px; height: 3.5rem;
  background: currentColor;
  transform-origin: top;
  animation: scrollcue 2.4s var(--ease-out) infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.rail__bottom {
  display: flex; flex-direction: column; align-items: center; gap: 1.125rem;
  padding-bottom: 1.75rem;
}
.rail__icons { display: flex; gap: 0.25rem; }
.rail__icons a {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
}
.rail__icons svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.rail__icons a:nth-child(2) svg { fill: none; }

.lang { display: flex; align-items: center; gap: 0.25rem; font-size: 0.8125rem; }
.lang__btn {
  min-width: 2rem; min-height: 2rem; padding: 0 0.25rem;
  opacity: 0.6;
  transition: opacity var(--dur-fast);
}
.lang__btn[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 0.25rem; }
.lang__btn:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   Fullscreen menu
   -------------------------------------------------------------------------- */

.menu {
  position: fixed; inset: 0;
  z-index: var(--z-menu);
  background: var(--white);
  color: var(--ink);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.menu.is-open { opacity: 1; }
.menu__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr var(--rail);
  grid-template-rows: var(--header-h) 1fr auto;
}
.menu__close {
  grid-column: 2; grid-row: 1;
  display: grid; place-items: center;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.menu__close svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.3; }
.menu nav { grid-column: 1; grid-row: 2; align-self: center; padding: 0 var(--gutter); }
.menu__list { counter-reset: m; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: inline-block;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  font-weight: var(--display-weight);
  line-height: 1.12;
  letter-spacing: var(--display-tracking);
  transform: translateY(105%);
  transition: transform var(--dur-slow) var(--ease-out), color var(--dur-fast);
}
.menu.is-open .menu__list a { transform: none; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: 40ms; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: 80ms; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: 120ms; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: 160ms; }
.menu.is-open .menu__list li:nth-child(6) a { transition-delay: 200ms; }
.menu.is-open .menu__list li:nth-child(7) a { transition-delay: 240ms; }
.menu__list a:hover { color: var(--ink-soft); }
.menu__meta {
  grid-column: 1; grid-row: 3;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.75rem var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.menu__inner::after {
  content: "";
  grid-column: 2; grid-row: 2 / 4;
  border-left: 1px solid var(--line);
}

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

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 35rem;
  overflow: hidden;
  color: var(--white);
  background: #222;
}
.hero__media,
.focus__media { position: absolute; inset: -8% 0; will-change: transform; }
.hero__media img,
.focus__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.5) 100%);
}
.hero__content {
  position: absolute; z-index: 1;
  left: var(--gutter); right: calc(var(--rail) + 1.5rem);
  bottom: clamp(3rem, 12vh, 7.5rem);
}
.hero__title {
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  font-weight: var(--display-weight);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.hero__title span { display: block; }

/* --------------------------------------------------------------------------
   Statement
   -------------------------------------------------------------------------- */

.statement { padding: calc(var(--section-y) + var(--header-h)) 0 var(--section-y); }
.statement__title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: var(--display-weight);
  line-height: 1.12;
  letter-spacing: var(--display-tracking);
}
.statement__title span { display: block; }
.statement__text {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  max-width: 62ch;
  font-size: 1.0625rem;
}

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

.services { padding-bottom: var(--section-y); border-top: 1px solid var(--line); padding-top: var(--section-y); }
.services .section-title { margin-bottom: clamp(3.5rem, 9vh, 6.5rem); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: end;
}
.service + .service { margin-top: clamp(4.5rem, 12vh, 8.75rem); }
.service--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.service--flip .service__media { order: 2; }

.service__media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper); }
.service__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.service:hover .service__media img { transform: scale(1.04); }

.service__title {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: var(--display-weight);
  line-height: 1.02;
  letter-spacing: var(--display-tracking);
  margin-bottom: 1.25rem;
}
.service__text { color: var(--ink-soft); max-width: 42ch; margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------------
   Deep cleaning focus (full-bleed, like the "wonderful in white" frame)
   -------------------------------------------------------------------------- */

.focus {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  display: flex; align-items: center;
  background: #2a2a2a;
}
.focus::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0.1) 100%);
}
.focus__content {
  position: relative; z-index: 1;
  width: min(35rem, 100%);
  margin-left: var(--gutter);
  padding: calc(var(--header-h) + 4rem) 0 5rem;
}
.focus .eyebrow { color: rgba(255,255,255,0.85); }
.focus__title {
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  font-weight: var(--display-weight);
  line-height: 1;
  letter-spacing: var(--display-tracking);
  margin-bottom: 1.75rem;
}
.focus__text { font-size: 0.9375rem; max-width: 48ch; margin-bottom: 2.5rem; color: rgba(255,255,255,0.92); }

.specs { border-top: 1px solid var(--line-light); }
.specs div {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.875rem;
}
.specs dd { text-align: right; color: rgba(255,255,255,0.85); }

/* --------------------------------------------------------------------------
   Projects slider
   -------------------------------------------------------------------------- */

.projects {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 35rem;
  overflow: hidden;
  color: var(--white);
  background: #1a1a1a;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow);
}
.slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-slow) var(--ease-out), visibility 0s;
}
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 6s linear;
}
.slide.is-active img { transform: scale(1); }
.slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.6) 100%);
}
.slide__caption {
  position: absolute; z-index: 1;
  left: var(--gutter); right: calc(var(--rail) + 1.5rem);
  bottom: 8.5rem;
}
.slide .eyebrow { color: rgba(255,255,255,0.88); }
.slide__title {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: var(--display-weight);
  line-height: 1;
  letter-spacing: var(--display-tracking);
}
.slide__meta { margin-top: 0.875rem; font-size: 0.875rem; color: rgba(255,255,255,0.85); }

.slider-nav {
  position: absolute; z-index: 2;
  left: var(--gutter); bottom: 3rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.slider-nav__btn {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
}
.slider-nav__btn svg { width: 1.75rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform var(--dur) var(--ease-out); }
.slider-nav__btn[data-dir="-1"]:hover svg { transform: translateX(-0.25rem); }
.slider-nav__btn[data-dir="1"]:hover svg { transform: translateX(0.25rem); }
.slider-nav__dots { display: flex; gap: 0.5rem; }
.slider-nav__dots span {
  width: 1.5rem; height: 2px;
  background: rgba(255,255,255,0.4);
  transition: background-color var(--dur), width var(--dur) var(--ease-out);
}
.slider-nav__dots span.is-active { background: var(--white); width: 2.75rem; }

/* --------------------------------------------------------------------------
   Before / after comparison
   -------------------------------------------------------------------------- */

.compare { padding: var(--section-y) 0 0; }
.compare__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
.compare__intro .section-title { margin-bottom: 1.75rem; }
.compare__intro p { color: var(--ink-soft); max-width: 40ch; }
.compare__meta { margin-top: 1.25rem; font-size: 0.875rem; }

.compare__frame {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  max-height: 82vh;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
  user-select: none;
}
.compare__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 1px;
  background: var(--white);
  pointer-events: none;
}
.compare__handle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 2.75rem; height: 2.75rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--white);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M7 1 2 6l5 5M17 1l5 5-5 5' fill='none' stroke='white' stroke-width='1.4'/%3E%3C/svg%3E") center / 1.25rem 0.625rem no-repeat;
}
.compare__tag {
  position: absolute; top: 1rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--white);
  background: rgba(20, 20, 20, 0.55);
  pointer-events: none;
}
.compare__tag--before { left: 1rem; }
.compare__tag--after { right: 1rem; }
.compare__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.compare__frame:has(.compare__range:focus-visible) .compare__handle::after {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.process { padding: var(--section-y) 0; }
.process .section-title { margin-bottom: clamp(3.5rem, 9vh, 6.5rem); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.step { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.step__num { font-size: 0.8125rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.step__title {
  font-size: clamp(1.625rem, 2.4vw, 2.25rem);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  margin: 2.5rem 0 0.75rem;
}
.step p { color: var(--ink-soft); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Quote form
   -------------------------------------------------------------------------- */

.quote { padding: var(--section-y) 0; background: var(--paper); }
.quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.quote__intro .section-title { margin-bottom: 1.75rem; }
.quote__intro p { color: var(--ink-soft); max-width: 40ch; }
.quote__direct { margin-top: 1.25rem; }
.quote__direct a { color: var(--ink); border-bottom: 1px solid currentColor; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  align-content: start;
}
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; }
.req { color: var(--error); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(20,20,20,0.4);
  border-radius: 0;
  transition: border-color var(--dur-fast);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.25rem center; background-size: 0.75rem 0.5rem; padding-right: 1.5rem; cursor: pointer; }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.5625rem;
}
.field.has-error input,
.field.has-error select { border-bottom-color: var(--error); }
.field__error { min-height: 0; font-size: 0.8125rem; color: var(--error); }
.field__error:empty { display: none; }

.form__summary {
  grid-column: 1 / -1;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--error);
  background: var(--white);
  font-size: 0.9375rem;
}
.form__summary ul { margin-top: 0.375rem; padding-left: 1.125rem; list-style: disc; }
.form__summary a { text-decoration: underline; text-underline-offset: 3px; }

.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form__note { font-size: 0.8125rem; color: var(--ink-soft); }
.form__status { grid-column: 1 / -1; font-size: 0.9375rem; }
.form__status:empty { display: none; }

/* --------------------------------------------------------------------------
   Footer (mirrors the reference grid)
   -------------------------------------------------------------------------- */

.footer { border-top: 1px solid var(--line); position: relative; z-index: var(--z-footer); background: var(--white); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) var(--rail);
}
.footer__col { padding: 2.5rem 0 3rem var(--gutter); }
.footer__col + .footer__col { padding-left: 1.5rem; }
.footer__heading { font-size: 0.9375rem; font-weight: 500; margin-bottom: 1.125rem; }
.footer__contact { font-size: 0.8125rem; display: grid; gap: 0.375rem; }
.footer__contact a:hover,
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 0.25rem; }
.footer__nav { display: grid; gap: 0.875rem; font-size: 0.9375rem; font-weight: 500; }
.footer__nav a { display: inline-block; padding: 2px 0; }
.footer__brand {
  border-left: 1px solid var(--line);
  display: grid; place-items: center;
  padding: 2.5rem 1rem;
}
.logo__full { width: min(11rem, 100%); height: auto; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.125rem calc(var(--rail) + 1.5rem) 1.125rem var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .statement__title .reveal:nth-child(2) { transition-delay: 90ms; }
.js .statement__title .reveal:nth-child(3) { transition-delay: 180ms; }
.js .steps .reveal:nth-child(2) { transition-delay: 60ms; }
.js .steps .reveal:nth-child(3) { transition-delay: 120ms; }
.js .steps .reveal:nth-child(4) { transition-delay: 180ms; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3.5rem; }
}

@media (max-width: 900px) {
  :root { --rail: 0px; --header-h: 4rem; --gutter: 1.25rem; }

  .rail { display: none; }
  .site-header { right: 0; padding: 0 0 0 1.25rem; }
  .site-header__cta { display: none; }
  .menu-btn--mobile {
    display: grid;
    width: var(--header-h);
    border-bottom: 0;
    border-left: 1px solid var(--line-light);
  }
  body.is-light .menu-btn--mobile { border-left-color: var(--line); }

  .container { padding-right: var(--gutter); }

  .menu__inner { grid-template-columns: 1fr var(--header-h); }
  .menu__inner::after { display: none; }
  .menu__meta { grid-column: 1 / -1; }

  .service,
  .service--flip { grid-template-columns: 1fr; gap: 1.5rem; }
  .service--flip .service__media { order: 0; }

  .focus__content { margin-right: var(--gutter); }
  .focus::after { background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.75)); }

  .slide__caption { right: var(--gutter); bottom: 7.5rem; }
  .slider-nav { bottom: 2.25rem; }

  .quote__grid,
  .compare__grid { grid-template-columns: 1fr; }
  .logo__mark { height: 2.125rem; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col:first-child { grid-column: 1 / -1; }
  .footer__col + .footer__col { padding-left: var(--gutter); padding-top: 0; }
  .footer__brand { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .footer__bottom { padding-right: var(--gutter); }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step__title { margin-top: 1.25rem; }
  .form { grid-template-columns: 1fr; }
  .hero__content { right: var(--gutter); }
  .btn { width: 100%; justify-content: center; }
}

/* Tablet portrait (768–900px): keep two columns where there is room */
@media (min-width: 700px) and (max-width: 900px) {
  :root { --gutter: 2.5rem; }
  .site-header { padding-left: var(--gutter); }
  .service,
  .service--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
  .service--flip .service__media { order: 2; }
  .compare__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .focus__content { width: min(36rem, 100%); }
}

/* Short landscape screens (phones on their side, small TVs in a frame) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero,
  .projects { min-height: 25rem; }
  .menu { overflow-y: auto; }
  .menu__inner { min-height: 100%; height: auto; }
  .menu__list a { font-size: clamp(1.5rem, 5vh, 2.25rem); }
  .rail__scroll { display: none; }
}

/* Large screens and TVs: wider reading measure, steadier proportions */
@media (min-width: 1800px) {
  :root { --rail: 15vw; }
  .statement__text { max-width: 56ch; }
  .compare__frame { max-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media, .focus__media { transform: none !important; }
}
