/* LECKÝ – strechy a krovy. Mobile first: base styles are for phones, min-width queries add the larger layouts. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ------------------------------------------------------------------------------------------------------ */

:root {
  color-scheme: light;

  --ink: #13161b;
  --ink-2: #1d2128;
  --ink-3: #2a2f38;
  --text: #2b313a;
  --muted: #5d6470;
  --line: #e6e0d6;
  --bg: #faf8f4;
  --surface: #ffffff;
  --sand: #f2ece2;
  --accent: #b5571a;
  --accent-hover: #994812;
  --accent-soft: #f7e6d7;
  --accent-bright: #f0a25a;
  --on-dark: #f3efe8;
  --on-dark-muted: #aaa69f;
  --glass-dark: rgb(255 255 255 / 0.06);
  --glass-line: rgb(255 255 255 / 0.1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);

  --radius-sm: 0.75rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --shadow-sm: 0 1px 2px rgb(19 22 27 / 0.05), 0 2px 8px rgb(19 22 27 / 0.04);
  --shadow: 0 2px 4px rgb(19 22 27 / 0.04), 0 16px 40px rgb(19 22 27 / 0.08);
  --shadow-lg: 0 30px 70px rgb(19 22 27 / 0.28);

  --gutter: 1rem;
  --header-space: 5.25rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Base -------------------------------------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Room for the fixed mobile action bar (removed on desktop). */
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-bright);
  color: var(--ink);
}

address {
  font-style: normal;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-accent {
  color: var(--accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.6875rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 3.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgb(181 87 26 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.18);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 12px 28px rgb(181 87 26 / 0.36), inset 0 1px 0 rgb(255 255 255 / 0.18);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--outline-light {
  border-color: rgb(255 255 255 / 0.28);
  color: #fff;
  background: rgb(255 255 255 / 0.04);
}

.btn--outline-light:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

/* A trailing arrow nudges forward on hover. */
.icon--arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

/* ---- Header: a floating pill over the page ----------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 0.625rem var(--gutter) 0;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  max-width: 78rem;
  min-height: 3.75rem;
  margin-inline: auto;
  padding: 0.375rem 0.375rem 0.375rem 0.625rem;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 1.5rem;
  background: rgb(250 248 244 / 0.86);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 8px 30px rgb(19 22 27 / 0.12);
  pointer-events: auto;
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.js .site-header__inner {
  border-radius: 999px;
}

.site-header.is-scrolled .site-header__inner {
  background: rgb(250 248 244 / 0.94);
  box-shadow: 0 10px 34px rgb(19 22 27 / 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
}

.brand__mark rect {
  fill: var(--ink);
}

.brand__mark path {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__mark path + path {
  stroke: #fff;
  stroke-width: 2.5;
}

.brand__text {
  display: flex;
  flex-direction: column;
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand__text small {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand--light,
.brand--light:hover {
  color: #fff;
}

.brand--light .brand__mark rect {
  fill: var(--ink-3);
}

.brand--light .brand__text small {
  color: var(--on-dark-muted);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 1.125rem;
  height: 2px;
  margin-left: -0.5625rem;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.nav-toggle__bars::before {
  transform: translateY(-6px);
}

.nav-toggle__bars::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

/* Without JavaScript the menu simply wraps inside the header; with it, phones get a dropdown card. */
.site-nav {
  width: 100%;
  padding: 0 0.5rem 0.5rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.site-nav__list a {
  display: block;
  padding: 0.5rem 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav__list a:hover {
  color: var(--accent);
}

.site-nav__cta {
  display: none;
}

.js .nav-toggle {
  display: inline-block;
}

/* The pill (backdrop-filter) is the containing block, so the dropdown lines up with it. */
.js .site-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  width: auto;
  max-height: calc(100vh - var(--header-space) - 1rem);
  overflow-y: auto;
  padding: 0.75rem 1.25rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.5rem) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.js .site-header.is-open .site-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}

.js .site-nav__list {
  flex-direction: column;
  gap: 0;
}

.js .site-nav__list a {
  padding: 0.875rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
}

.js .site-nav__cta {
  display: flex;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 1.25rem;
}

/* ---- Hero (dark) ------------------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-space) + clamp(2rem, 1rem + 4vw, 4.5rem));
  overflow: hidden;
  background:
    radial-gradient(60rem 40rem at 85% 10%, rgb(240 162 90 / 0.2), rgb(240 162 90 / 0) 70%),
    radial-gradient(40rem 30rem at 0% 100%, rgb(181 87 26 / 0.18), rgb(181 87 26 / 0) 70%),
    var(--ink);
  color: var(--on-dark-muted);
}

/* A faint grid of roof lines in the background. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.025) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.025) 0 1px, transparent 1px 48px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  color: #fff;
}

.hero .text-accent {
  color: var(--accent-bright);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4375rem 0.9375rem 0.4375rem 0.75rem;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass-dark);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.eyebrow__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4cc77f;
  box-shadow: 0 0 0 4px rgb(76 199 127 / 0.2);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgb(76 199 127 / 0);
  }
}

.hero__lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: var(--fs-lg);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__media {
  position: relative;
}

/* Offset frame behind the photo (tablets and up; on phones it would hit the screen edge). */
.hero__media::before {
  content: "";
  display: none;
  position: absolute;
  inset: 8% -6% -6% 8%;
  border: 1px solid rgb(240 162 90 / 0.35);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero__img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem 0.625rem 0.625rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  line-height: 1.25;
}

.hero__badge p {
  display: flex;
  flex-direction: column;
}

.hero__badge strong {
  color: var(--ink);
  font-size: 0.9375rem;
}

.hero__badge span {
  color: var(--muted);
}

.hero__badge > .icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero__badge--top {
  top: 0.75rem;
  left: 0.75rem;
}

.hero__badge--bottom {
  right: 0.75rem;
  bottom: 0.75rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-line);
}

.hero__stats li {
  padding: 1.125rem 1.25rem;
  background: var(--ink);
}

.hero__stats strong {
  display: block;
  color: #fff;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__stats span {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-sm);
  line-height: 1.35;
}

/* Endless strip of materials. Two identical tracks; the second is hidden from assistive technology. */
.marquee {
  position: relative;
  display: flex;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
  border-top: 1px solid var(--glass-line);
  color: var(--on-dark);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 4rem;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--ink), rgb(19 22 27 / 0));
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--ink), rgb(19 22 27 / 0));
}

.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2.5rem;
  padding: 1.375rem 2.5rem 1.375rem 0;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track li {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
}

.marquee__track li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--accent-bright);
  transform: rotate(45deg);
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

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

.section {
  padding-block: var(--section-y);
}

.section--sand {
  background: var(--sand);
}

.section--dark {
  background: var(--ink);
  color: var(--on-dark-muted);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__lead {
  margin-top: 1rem;
  font-size: var(--fs-lg);
  color: var(--muted);
}

.section--dark .section-head__lead {
  color: var(--on-dark-muted);
}

.section-head--split {
  display: grid;
  gap: 1rem;
  max-width: none;
}

.section-head--split .section-head__lead {
  margin-top: 0;
  max-width: 28rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
  padding: 0.375rem 0.875rem 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.section--dark .kicker,
.kicker--light {
  background: rgb(240 162 90 / 0.12);
  color: var(--accent-bright);
}

/* ---- Services (bento grid) --------------------------------------------------------------------------------------- */

.services {
  display: grid;
  gap: 1rem;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.service__icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 0.875rem;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.service:hover .service__icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(-6deg);
}

.service__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.service p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.service--feature {
  min-height: 26rem;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--ink);
}

.service__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service--feature:hover .service__img {
  transform: scale(1.04);
}

.service__body {
  position: relative;
  padding: 6rem 1.75rem 1.75rem;
  background: linear-gradient(to top, rgb(19 22 27 / 0.96) 35%, rgb(19 22 27 / 0));
}

.service--feature h3 {
  color: #fff;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.service--feature p {
  max-width: 30rem;
  color: var(--on-dark);
  font-size: 1rem;
}

.service--feature .service__icon,
.service--feature:hover .service__icon {
  background: var(--accent);
  color: #fff;
}

.service--accent {
  border: 0;
  background: linear-gradient(135deg, #a24c14, #d0702a);
  color: rgb(255 255 255 / 0.88);
}

.service--accent h3 {
  color: #fff;
}

.service--accent p {
  color: rgb(255 255 255 / 0.88);
}

.service--accent .service__icon,
.service--accent:hover .service__icon {
  background: rgb(255 255 255 / 0.18);
  color: #fff;
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  align-self: flex-start;
  margin-top: 1.25rem;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.service__link:hover {
  background: var(--ink);
  color: #fff;
}

/* ---- Why us ------------------------------------------------------------------------------------------------------ */

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split__note {
  position: relative;
  margin: -2.5rem 1rem 0;
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-lg);
}

.split__note strong {
  display: block;
}

.benefits {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.benefits li {
  padding: 1.25rem;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-dark);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.benefits li:hover {
  border-color: rgb(240 162 90 / 0.35);
  background: rgb(255 255 255 / 0.08);
}

.benefits__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.875rem;
  border-radius: 0.75rem;
  background: rgb(240 162 90 / 0.12);
  color: var(--accent-bright);
}

.benefits__icon .icon {
  width: 1.375rem;
  height: 1.375rem;
}

.benefits h3 {
  font-size: 1.0625rem;
}

.benefits p {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
}

/* ---- Steps ------------------------------------------------------------------------------------------------------- */

.steps {
  position: relative;
  display: grid;
  gap: 1rem;
}

.step {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step:hover {
  border-color: var(--accent-bright);
  box-shadow: var(--shadow);
}

.step__num {
  position: absolute;
  top: 1.375rem;
  left: 1.5rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  transition: background-color 0.3s var(--ease);
}

.step:hover .step__num {
  background: var(--accent);
}

.step p {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.gallery {
  display: grid;
  gap: 1rem;
}

.gallery figure {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
}

.gallery__link {
  display: block;
  height: 100%;
  color: #fff;
}

.gallery__link img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery__link:hover img {
  transform: scale(1.05);
}

.gallery__link:focus-visible {
  outline-offset: -4px;
  outline-color: #fff;
}

.gallery__zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.gallery__link:hover .gallery__zoom,
.gallery__link:focus-visible .gallery__zoom {
  opacity: 1;
  transform: none;
}

.gallery figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  max-width: calc(100% - 1.5rem);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  background: rgb(19 22 27 / 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgb(255 255 255 / 0.75);
  font-size: 0.8125rem;
  line-height: 1.4;
  pointer-events: none;
}

.gallery figcaption strong {
  color: #fff;
  font-size: 0.9375rem;
}

/* ---- Certificates ------------------------------------------------------------------------------------------------ */

.certs {
  display: grid;
  gap: 1rem;
}

.cert {
  display: flex;
  gap: 1.125rem;
  padding: 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.cert:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cert__link {
  flex: none;
  display: block;
  border-radius: 0.625rem;
  cursor: zoom-in;
}

/* Scans are shown whole (portrait licences and a landscape certificate side by side). */
.cert__img {
  width: 5.5rem;
  padding: 0.25rem;
  border-radius: 0.625rem;
  background: var(--sand);
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

.cert p {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.guarantees {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.guarantees li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.guarantees .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-bright);
}

/* ---- Service area ------------------------------------------------------------------------------------------------ */

.areas {
  display: grid;
  gap: 3rem;
}

.areas__text h2 {
  max-width: 40rem;
}

.areas__text p + p {
  margin-top: 1rem;
}

.areas__regions {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.region {
  padding: 1.5rem;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-dark);
}

.region h3 {
  margin-bottom: 1rem;
}

.region ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.region li {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--glass-dark);
  color: var(--on-dark);
  font-size: var(--fs-sm);
}

/* ---- CTA card ---------------------------------------------------------------------------------------------------- */

.cta {
  padding-bottom: var(--section-y);
}

/* The CTA already leaves a section's worth of space below it. */
.cta + .section {
  padding-top: 0;
}

.cta__card {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(36rem 24rem at 100% 0%, rgb(240 162 90 / 0.35), rgb(240 162 90 / 0) 70%),
    linear-gradient(135deg, var(--ink) 30%, #3a2618);
  color: var(--on-dark);
}

.cta__text {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: #fff;
}

.cta__text > p:last-child {
  max-width: 34rem;
  margin-top: 0.875rem;
  font-size: var(--fs-lg);
}

.cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.faq {
  display: grid;
  gap: 1rem;
}

.faq__list {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq__item[open] {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.faq__item summary {
  position: relative;
  padding: 1.25rem 3.75rem 1.25rem 1.375rem;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5571a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 0.875rem no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:focus-visible {
  outline-offset: -3px;
  border-radius: var(--radius);
}

.faq__item p {
  padding: 0 1.375rem 1.375rem;
  color: var(--muted);
}

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

.contact {
  display: grid;
  gap: 1.25rem;
}

.contact__info {
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(30rem 20rem at 100% 100%, rgb(240 162 90 / 0.14), rgb(240 162 90 / 0) 70%),
    var(--ink);
  color: var(--on-dark-muted);
}

.contact__info h2 {
  color: #fff;
}

.contact__info > p {
  margin-top: 1rem;
}

.contact__list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact__list > a,
.contact__list > span {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-dark);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__list > a {
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact__list > a:hover {
  border-color: rgb(240 162 90 / 0.4);
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.contact__list .icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5625rem;
  border-radius: 50%;
  background: rgb(240 162 90 / 0.14);
  color: var(--accent-bright);
}

.contact__list small {
  display: block;
  color: var(--on-dark-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact__area {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.contact__area strong {
  color: #fff;
}

.contact__form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 1.25rem + 2vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact__form-title {
  font-size: 1.5rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field label {
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.field__optional {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313161b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 0.875rem center / 1.125rem no-repeat;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a909a;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #cfc6b8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px rgb(181 87 26 / 0.15);
}

.was-validated .field :invalid {
  border-color: #c0392b;
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
}

.field--check input {
  width: 1.25rem;
  min-height: 0;
  height: 1.25rem;
  margin: 0.125rem 0 0;
  padding: 0;
  accent-color: var(--accent);
}

.field--check label {
  font-weight: 500;
  color: var(--muted);
}

.contact__form-note {
  color: var(--muted);
  font-size: var(--fs-sm);
  text-align: center;
}

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

.site-footer {
  position: relative;
  padding-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-bright);
}

.site-footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.site-footer__brand p {
  max-width: 22rem;
  margin-top: 1rem;
}

.site-footer__title {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__inner ul {
  display: grid;
  gap: 0.5rem;
  /* The e-mail address is longer than a narrow column. */
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  font-size: var(--fs-sm);
}

/* The divider lines up with the content, not with the container's side padding. */
.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: var(--gutter);
  height: 1px;
  background: var(--ink-3);
}

/* Oversized wordmark peeking out at the bottom. */
/* Decoration only: the word comes from CSS, so contrast checkers (which test page text) leave this faint watermark
   alone. */
.site-footer__word::before {
  content: "LECKÝ";
}

.site-footer__word {
  margin: 0.5rem 0 -0.2em;
  color: rgb(255 255 255 / 0.05);
  font-size: clamp(5rem, 26vw, 22rem);
  font-weight: 800;
  /* Tall enough for the accent on Ý, so it does not reach the divider above. */
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

/* ---- Mobile action bar ------------------------------------------------------------------------------------------- */

.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  padding: 0.625rem var(--gutter) calc(0.625rem + env(safe-area-inset-bottom));
  background: rgb(250 248 244 / 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

/* ---- Lightbox ---------------------------------------------------------------------------------------------------- */

.lightbox {
  width: calc(100% - 1rem);
  max-width: 72rem;
  max-height: calc(100vh - 1rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgb(10 12 16 / 0.9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lightbox[open] {
  animation: lightbox-in 0.3s var(--ease);
}

.lightbox__figure {
  margin: 0;
}

.lightbox__img {
  width: 100%;
  max-height: calc(100vh - 7rem);
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--ink-2);
  transition: opacity 0.15s var(--ease);
}

/* The previous photo must not show while the next one loads. */
.lightbox__img.is-loading {
  opacity: 0;
  transition: none;
}

.lightbox__caption {
  padding: 0.875rem 3.5rem;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.95);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lightbox__btn:hover {
  background: var(--accent);
  color: #fff;
}

.lightbox__btn--close {
  top: 0.5rem;
  right: 0.5rem;
}

.lightbox__btn--prev,
.lightbox__btn--next {
  bottom: 0.25rem;
}

.lightbox__btn--prev {
  left: 0;
}

.lightbox__btn--next {
  right: 0;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

/* ---- Reveal on scroll (only with JavaScript, see main.js) -------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

body.page-404 {
  padding-bottom: 0;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 4rem);
  padding-top: calc(var(--header-space) + 2rem);
  padding-bottom: var(--section-y);
  text-align: center;
}

.not-found__code {
  color: var(--accent);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.not-found p {
  max-width: 30rem;
  margin: 1rem auto 2rem;
  color: var(--muted);
  font-size: var(--fs-lg);
}

/* ---- ≥ 480 px ---------------------------------------------------------------------------------------------------- */

@media (min-width: 30rem) {
  .hero__actions,
  .cta__actions {
    flex-flow: row wrap;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .cert {
    flex-direction: column;
  }

  .cert__img {
    width: 100%;
    padding: 0.75rem;
    aspect-ratio: 4 / 5;
  }

  .certs,
  .services,
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service--feature,
  .service--accent {
    grid-column: 1 / -1;
  }
}

/* ---- ≥ 720 px ---------------------------------------------------------------------------------------------------- */

@media (min-width: 45rem) {
  :root {
    --gutter: 1.5rem;
  }

  .hero__media::before {
    display: block;
  }

  .hero__badge--top {
    top: 1.5rem;
    left: -1rem;
  }

  .hero__badge--bottom {
    right: -1rem;
    bottom: 1.5rem;
  }

  .hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section-head--split {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .split__note {
    position: absolute;
    right: -1rem;
    bottom: -1.5rem;
    max-width: 18rem;
    margin: 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* An odd last photo would stand alone in the two-column layout. */
  .gallery__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .gallery__item:last-child:nth-child(odd) .gallery__link img {
    aspect-ratio: 2 / 1;
  }

  .guarantees {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta__card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .cta__actions {
    flex-direction: column;
  }

  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: calc(50% - 1.75rem);
    bottom: auto;
  }

  .lightbox__btn--prev {
    left: -1.5rem;
  }

  .lightbox__btn--next {
    right: -1.5rem;
  }
}

/* ---- ≥ 1024 px: desktop navigation and full layouts -------------------------------------------------------------- */

@media (min-width: 64rem) {
  :root {
    --gutter: 2rem;
    --header-space: 6rem;
  }

  .site-header {
    padding-top: 1rem;
  }

  .site-header__inner {
    flex-wrap: nowrap;
    border-radius: 999px;
    padding-left: 0.75rem;
  }

  .js .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    width: auto;
    max-height: none;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav__list,
  .js .site-nav__list {
    flex-direction: row;
    gap: 0.25rem;
  }

  .site-nav__list a,
  .js .site-nav__list a {
    padding: 0.5rem 0.875rem;
    border: 0;
    border-radius: 999px;
    font-size: 0.9375rem;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  }

  .site-nav__list a:hover {
    background: var(--sand);
    color: var(--ink);
  }

  .site-nav__cta,
  .js .site-nav__cta {
    display: inline-flex;
    width: auto;
    min-height: 2.75rem;
    margin: 0;
  }

  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem 5rem;
  }

  .hero__stats {
    grid-column: 1 / -1;
  }

  .services {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service--feature {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 0;
  }

  .service--accent {
    grid-column: span 2;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }

  /* A dashed line through the step numbers ties the cards into one process. */
  .steps::before {
    content: "";
    position: absolute;
    top: 2.75rem;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent-bright) 0 6px, transparent 6px 12px);
    opacity: 0.6;
  }

  .step {
    padding: 4.75rem 1.5rem 1.75rem;
    background: rgb(255 255 255 / 0.92);
  }

  .step__num {
    top: 1.5rem;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .gallery__item:last-child:nth-child(odd):not(.gallery__item--wide) {
    grid-column: auto;
  }

  .gallery__item:last-child:nth-child(odd):not(.gallery__item--wide) .gallery__link img {
    aspect-ratio: 4 / 3;
  }

  /* The wide photo takes the row height from its 4:3 neighbour instead of setting it. */
  .gallery__item--wide .gallery__link img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .areas {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }

  .certs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .faq {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
  }

  .faq .section-head {
    position: sticky;
    top: calc(var(--header-space) + 1.5rem);
  }

  .contact {
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
  }

  .mobile-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ---- Preferences ------------------------------------------------------------------------------------------------- */

@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  /* No endless motion: the materials simply wrap. */
  .marquee__track {
    flex-wrap: wrap;
    flex-shrink: 1;
    gap: 0.75rem 2rem;
    padding: 1.375rem var(--gutter);
    animation: none;
  }

  .marquee__track[aria-hidden="true"],
  .marquee::before,
  .marquee::after {
    display: none;
  }

  .marquee__track li {
    gap: 0.75rem;
  }
}

@media print {
  .site-header,
  .mobile-bar,
  .cta,
  .contact__form,
  .lightbox,
  .marquee,
  .site-footer__word {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
