/* M&M Bathroom stylesheet */

/* ---------- Tokens ---------- */
:root {
  /* Colour */
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --sand: #EFE9E0;
  --line: #E3DCD1;
  --ink: #0F1E26;
  --ink-soft: #4A5861;
  --brand: #2E5E55;
  --brand-dark: #1D403A;
  --cta: #C28A3B;
  --cta-hover: #D39A49;
  --on-cta: #0F1E26;
  --on-dark-soft: #B8C4CA; /* secondary text on --ink / --brand-dark */
  --success: #2F7D4F;
  --error: #B3382C;

  /* Fonts */
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid type */
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fs-h4: 1.125rem;

  /* Spacing (8px scale) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --section-pad: clamp(64px, 9vw, 120px);

  /* Shape and depth */
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-hero: 24px;
  --radius-tile: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 32px rgba(15, 30, 38, 0.08);
  --shadow-header: 0 4px 24px rgba(15, 30, 38, 0.1);
  --shadow-up: 0 -8px 24px rgba(15, 30, 38, 0.1);

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;
  --header-h-scrolled: 60px;
  --touch: 44px;
  --logo-mark: 44px;
  --logo-mark-scrolled: 36px;
  --logo-mark-footer: 48px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --t-fast: 200ms;
  --t-base: 300ms;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Header: 73px, 61px once scrolled (12px shift) */
  scroll-padding-top: calc(var(--header-h) + var(--space-1));
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

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

img {
  height: auto;
}

input,
button,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

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

h2,
.thanks__card h1 {
  font-size: var(--fs-h2);
}

h3,
.contact-page__title {
  font-size: var(--fs-h3);
}

h4,
.service-card__title,
.process__title {
  font-size: var(--fs-h4);
}

p {
  max-width: 65ch;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-dark);
}

ul,
ol {
  padding-left: 1.25rem;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

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

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

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

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

.section--dark {
  background: var(--brand-dark);
  color: var(--surface);
}

.section--dark :is(h1, h2, h3, h4) {
  color: var(--surface);
}

.section--dark a:not(.btn),
.section--dark .btn--ghost {
  color: var(--surface);
}

.section--dark .eyebrow,
.section--dark .section-heading p:not(.eyebrow),
.section--dark .section-cta__note,
.section--dark .btn--ghost:hover {
  color: var(--on-dark-soft);
}

.section--dark :focus-visible,
.footer :focus-visible {
  outline-color: var(--surface);
}

.stack > * + * {
  margin-top: var(--stack-gap, var(--space-2));
}

.skip-link {
  position: absolute;
  top: var(--space-1);
  left: var(--space-1);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: var(--space-1) var(--space-2);
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-btn);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--surface);
}

/* ---------- Components ---------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--touch);
  padding: 0.75rem var(--space-3);
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

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

.btn:disabled {
  cursor: wait;
  opacity: 0.75;
}

.btn--primary {
  background: var(--cta);
  color: var(--on-cta);
}

.btn--primary:hover {
  background: var(--cta-hover);
  color: var(--on-cta);
}

.btn--secondary {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn--secondary:hover {
  background: var(--brand);
  color: var(--surface);
}

.btn--ghost {
  padding-inline: 0;
  color: var(--brand);
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.btn--ghost::after {
  content: "\2192" / "";
  transition: transform var(--t-fast) var(--ease);
}

.btn--ghost:hover {
  color: var(--brand-dark);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

/* Eyebrow and section heading */
.eyebrow {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-heading {
  max-width: 40rem;
  margin-bottom: var(--space-6);
}

.section-heading > * + *,
.thanks__card > * + * {
  margin-top: var(--space-2);
}

.section-heading p:not(.eyebrow) {
  color: var(--ink-soft);
}

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

.section-heading--center p {
  margin-inline: auto;
}

/* Tile-grid motif: data URI, literal stroke colour */
.tile-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='%232E5E55' stroke-opacity='.07'/%3E%3C/svg%3E");
  background-size: 48px 48px;
}

/* Icons: assets/icons/sprite.svg via <use>, stroke style lives here */
.icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--brand);
}

.icon--sm {
  width: 1.25rem;
  height: 1.25rem;
}

.icon--lg {
  width: 1.75rem;
  height: 1.75rem;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* Pill list */
.chips,
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.chips__item .icon {
  width: 1rem;
  height: 1rem;
}

.chips__item,
.area-list__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Service areas reuse the pill list; the base town is marked */
.area-list__item--base {
  border-color: var(--brand);
}

.area-list__note {
  font-size: 0.75rem;
  color: var(--brand);
}

/* Linked area pills: full touch target, hover and current page */
a.area-list__item,
.area-list__item[aria-current] {
  min-height: var(--touch);
}

a.area-list__item:hover {
  border-color: var(--brand);
  background: var(--sand);
}

.area-list--on-dark .area-list__item {
  border-color: var(--brand);
  background: transparent;
  color: var(--surface);
}

.area-list--on-dark a.area-list__item:hover {
  background: var(--brand);
}

.area-list--on-dark .area-list__note {
  color: var(--cta-hover);
}

/* Card base */
.card {
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

/* Floating card over an image corner */
.float-card {
  position: absolute;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.float-card__text {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.4;
}

.float-card__text strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

/* Dark price badge, top right of the photo */
.float-card--price {
  top: var(--space-2);
  right: var(--space-2);
  display: grid;
  max-width: 62%;
  border: 1px solid var(--brand);
  background: var(--brand-dark);
  color: var(--surface);
  font-size: 0.75rem;
  line-height: 1.3;
}

.float-card__price {
  color: var(--cta-hover);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* CTA below a section's content */
.section-cta {
  margin-top: var(--space-6);
}

.section-cta--center {
  text-align: center;
}

.section-cta__note {
  margin: var(--space-2) auto 0;
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

/* Before/after slider: overlay layout from the start; stacked only without scripting */
.ba-slider {
  --pos: 50%;
  --ratio: 4 / 3;
}

.ba-slider__frame {
  position: relative;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  border-radius: var(--radius-card);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ba-slider__img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

/* Portrait photos in landscape frames: keep the lower half (basin, fixtures) in view */
.ba-slider[data-focus="low"] .ba-slider__img {
  object-position: 50% 70%;
}

.ba-slider__layer--after {
  clip-path: inset(0 0 0 var(--pos));
}

.ba-slider__label {
  position: absolute;
  top: var(--space-2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
}

.ba-slider__label--before {
  left: var(--space-2);
}

.ba-slider__label--after {
  right: var(--space-2);
}

.ba-slider__handle,
.ba-slider__range {
  display: none;
}

.ba-slider.is-ready .ba-slider__handle {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--surface);
  pointer-events: none;
}

.ba-slider.is-ready .ba-slider__range {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

@media (scripting: none) {
  .ba-slider__frame {
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
    cursor: auto;
  }

  .ba-slider__layer {
    position: relative;
  }

  .ba-slider__layer + .ba-slider__layer {
    margin-top: var(--space-2);
  }

  .ba-slider__img {
    height: auto;
    border-radius: var(--radius-card);
    aspect-ratio: var(--ratio);
  }

  .ba-slider__layer--after {
    clip-path: none;
  }
}

.ba-slider__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transform: translate(-50%, -50%);
}

/* Brass ring with an ink gap: visible on any photo */
.ba-slider:has(.ba-slider__range:focus-visible) .ba-slider__knob {
  outline: 3px solid var(--cta);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--ink);
}

/* Button row */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-1) var(--space-3);
}

.actions--start {
  justify-content: flex-start;
  margin-top: var(--space-3);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  min-height: var(--touch);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}

.breadcrumb li + li::before {
  content: "/" / "";
  margin-inline: var(--space-1);
}

/* Image tile: link in the teaser, button in the gallery */
.tile {
  position: relative;
  display: block;
  align-self: stretch;
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 5);
  padding: 0;
  border: 0;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: none;
  color: inherit;
  cursor: pointer;
}

.tile[hidden] {
  display: none;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}

.tile__label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: var(--space-4) var(--space-2) var(--space-2);
  background: linear-gradient(to top, color-mix(in srgb, var(--ink) 85%, transparent), transparent);
  color: var(--surface);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

/* Label on hover/focus; always visible on touch */
@media (hover: hover) {
  .tile__label {
    opacity: 0;
  }

  .tile:hover .tile__label,
  .tile:focus-visible .tile__label {
    opacity: 1;
  }
}

/* Lightbox (native dialog, full viewport) */
html:has(.lightbox) {
  scrollbar-gutter: stable;
}

html:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox[open] {
  --stage-h: calc(100dvh - 11rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: var(--space-2);
  border: 0;
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  color: var(--surface);
}

.lightbox :focus-visible {
  outline-color: var(--cta);
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
}

.lightbox__btn:hover {
  background: var(--sand);
}

.lightbox__btn .icon {
  width: 1.375rem;
  height: 1.375rem;
  color: var(--ink);
}

.lightbox__close {
  grid-area: 1 / 1 / auto / -1;
  justify-self: end;
}

.lightbox__stage {
  display: grid;
  grid-area: 2 / 1 / auto / -1;
  place-items: center;
  height: 100%;
  min-height: 0;
  touch-action: pan-y;
}

.lightbox__stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--stage-h);
  border-radius: var(--radius-tile);
  object-fit: contain;
}

.lightbox__prev {
  grid-area: 3 / 1;
}

.lightbox__bar {
  grid-area: 3 / 2;
  text-align: center;
}

.lightbox__next {
  grid-area: 3 / 3;
}

.lightbox__caption,
.lightbox__count {
  margin-inline: auto;
}

.lightbox__caption {
  font-weight: 700;
}

.lightbox__count {
  color: var(--on-dark-soft);
  font-size: var(--fs-small);
}

@media (prefers-reduced-motion: no-preference) {
  .service-card {
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  }

  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
  }

  .tile img,
  .tile__label {
    transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
  }

  .tile:hover img,
  .tile:focus-visible img {
    transform: scale(1.04);
  }

  .lightbox[open],
  .lightbox__stage > * {
    animation: lightbox-fade var(--t-fast) var(--ease);
  }
}

@keyframes lightbox-fade {
  from {
    opacity: 0;
  }
}

/* Tick list */
.ticks,
.contact__details,
.details-list {
  display: grid;
  gap: var(--space-1);
}

.ticks li {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Enquiry form (same markup on index and contact) */
.form,
.form__row,
.services__grid {
  display: grid;
  gap: var(--space-3);
}

.form__field {
  display: flex;
  flex-direction: column;
}

.form__label {
  margin-bottom: 0.375rem;
  font-weight: 600;
}

.form__control {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

.form__control::placeholder {
  color: var(--ink-soft);
  text-transform: none;
  opacity: 1;
}

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

.form__control:focus {
  border-color: var(--brand);
}

.form__control[aria-invalid="true"] {
  border-color: var(--error);
}

.form__control--postcode {
  text-transform: uppercase;
}

textarea.form__control {
  min-height: 7.5rem;
  resize: vertical;
}

/* Select arrow: data URI, literal stroke colour */
select.form__control {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5861' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  appearance: none;
}

.form__error {
  color: var(--error);
  font-size: var(--fs-small);
}

.form__error:not(:empty) {
  margin-top: 0.375rem;
}

/* Checkbox: native input restyled, label gives a 44px hit area */
.form__field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-items: start;
}

.form__check {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.625rem 0 0;
  border: 1px solid var(--ink-soft);
  border-radius: 0.375rem;
  background: var(--surface);
  appearance: none;
}

/* Tick: data URI, literal stroke colour */
.form__check:checked {
  border-color: var(--brand);
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 1rem no-repeat;
}

.form__check[aria-invalid="true"] {
  border-color: var(--error);
}

.form__field--check .form__label {
  margin: 0;
  padding-block: 0.625rem;
  font-weight: 400;
}

.form__field--check .form__error {
  grid-column: 2;
}

.form__submit {
  width: 100%;
}

.hero__small,
.form__hint,
.trust-bar__text,
.service-card__text,
.process__text,
.benefit__text {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-base) var(--ease);
}

.header.is-scrolled {
  box-shadow: var(--shadow-header);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  transition: min-height var(--t-base) var(--ease);
}

.header.is-scrolled .header__inner {
  min-height: var(--header-h-scrolled);
}

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

.logo__mark {
  flex: none;
  width: var(--logo-mark);
  height: var(--logo-mark);
  transition: width var(--t-base) var(--ease), height var(--t-base) var(--ease);
}

.header.is-scrolled .logo__mark {
  width: var(--logo-mark-scrolled);
  height: var(--logo-mark-scrolled);
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  white-space: nowrap;
}

.logo__name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo__tag {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--brand);
}

.logo:hover .logo__name,
.nav__link:hover {
  color: var(--brand);
}

.logo:hover .logo__tag {
  color: var(--brand-dark);
}

/* Mobile menu toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: var(--touch);
  height: var(--touch);
  padding: 0;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation: full-width dropdown on mobile */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: var(--space-2) var(--gutter) var(--space-3);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-header);
}

.nav.is-open {
  display: block;
}

.nav__link {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.nav__cta {
  width: 100%;
  margin-top: var(--space-2);
}

/* ---------- Page sections ---------- */

/* Hero */
.hero {
  padding-block: var(--space-4) var(--space-8);
  background: radial-gradient(ellipse at 90% 0%, var(--sand), transparent 60%), var(--bg);
}

.hero__inner {
  display: grid;
  gap: var(--space-6);
}

.hero__title {
  max-width: 20ch;
}

.hero__lead {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
}

.hero__content > .hero__actions,
.hero__content > .chips,
.included__note {
  margin-top: var(--space-3);
}

.hero__content > .hero__small + .hero__small,
.thanks__steps li + li,
.footer__list li + li {
  margin-top: var(--space-1);
}

.hero__media,
.why__media {
  --ratio: 4 / 5;
  position: relative;
  max-width: 30rem;
}

.hero__img,
.why__img {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio);
  border-radius: var(--radius-hero);
  object-fit: cover;
}

.hero__tiles {
  position: absolute;
  inset: var(--space-2) calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) var(--space-2);
  border-radius: var(--radius-hero);
  background-color: var(--sand);
}

.hero__card,
.why__badge {
  left: var(--space-2);
  bottom: calc(-1 * var(--space-2));
}

.hero__card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Trust bar */
.trust-bar {
  padding-block: var(--space-6);
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-bar__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-3);
}

.trust-bar__item {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-1);
}

.trust-bar__title,
.benefit__title {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.3;
}

/* Services */

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

.service-card__icon,
.details-list__icon,
.included__icon,
.process__num {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.service-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-1);
  background: var(--sand);
}

.service-card__link {
  margin-top: auto;
}

/* Stretched link: whole card clickable, the link keeps focus */
.service-card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
}

.service-card:has(.service-card__link:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.services__advice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 var(--space-3);
  margin-top: var(--space-6);
  text-align: center;
}

/* What's included */
.included__intro .stack {
  display: grid;
  justify-items: start;
}

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

.included__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem var(--space-2);
  box-shadow: var(--shadow-soft);
}

.included__title,
.included__text {
  display: block;
}

.included__tick {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--surface);
}

.included__tick .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: inherit;
  stroke-width: 2.5;
  stroke-dasharray: 1;
}


/* Process */
.process__step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: var(--space-3);
  padding-bottom: var(--space-5);
}

.process__step:last-child {
  padding-bottom: 0;
}

/* Connector: vertical, horizontal from 768px */
.process__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 3rem;
  bottom: 0;
  left: 1.5rem;
  width: 1px;
  background: var(--line);
}

.process__num {
  width: 3rem;
  height: 3rem;
  background: var(--brand);
  color: var(--surface);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.process__body {
  display: grid;
  justify-items: start;
  gap: var(--space-1);
  padding-top: 0.25rem;
}

/* Contact band */
.contact__grid,
.work__grid,
.footer__grid {
  display: grid;
  gap: var(--space-5);
}

.contact__intro .section-heading,
.cta-band .section-heading {
  margin-bottom: var(--space-4);
}

.contact__aside,
.contact__form {
  padding: var(--gutter);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.contact__form .form__title {
  margin-bottom: var(--space-3);
  color: var(--ink);
  font-size: var(--fs-h3);
}

/* Undo dark-section link and focus colours inside the white card */
.contact__form a:not(.btn) {
  color: var(--brand);
}

.contact__form :focus-visible {
  outline-color: var(--brand);
}

.contact__details li,
.details-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch);
}

/* Long emails or addresses wrap instead of causing horizontal scroll */
.contact__details li,
.details-list li,
.footer__list li {
  overflow-wrap: anywhere;
}

/* Contain the links' negative margins so they cannot collapse through the list items */
.footer__list li {
  display: flow-root;
}


.contact__details a,
.details-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}

.contact__details span {
  color: var(--on-dark-soft);
}

.contact .icon {
  color: var(--cta);
}

/* Tile grids: ratios alternate by row, tallest tile sets row height */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.tile-grid > :nth-child(4n+3),
.tile-grid > :nth-child(4n+4) {
  --ratio: 1 / 1;
}

/* Gallery page */
.page-head {
  padding-block: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
}

.page-head__intro {
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.gallery {
  padding-top: var(--space-5);
}

.gallery__filters {
  display: flex;
  gap: var(--space-1);
  margin-inline: calc(-1 * var(--gutter));
  margin-bottom: var(--space-3);
  padding: 0.25rem var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery__filters::-webkit-scrollbar {
  display: none;
}

/* Space stays reserved until lightbox.js reveals the chips, so the grid does not jump */
.gallery__filters[hidden] {
  visibility: hidden;
}

.gallery__chip {
  flex: none;
  min-height: var(--touch);
  padding: 0 var(--space-3);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

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

.gallery__chip[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--surface);
}

.gallery__empty {
  margin-inline: auto;
  padding-block: var(--space-6);
  color: var(--ink-soft);
  text-align: center;
}

.cta-band {
  padding-block: var(--space-8);
}

/* Thanks page */
.thanks__card {
  max-width: 36rem;
  margin-inline: auto;
  padding: var(--space-5) var(--gutter);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.thanks__card p {
  margin-inline: auto;
}

.thanks__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-inline: auto;
  color: var(--success);
}

.thanks__steps {
  max-width: 24rem;
  margin-inline: auto;
  text-align: left;
}

.thanks__card .actions {
  margin-top: var(--space-4);
}

/* Why choose us */
.why {
  display: grid;
  gap: var(--space-8);
}

.why .section-heading {
  margin-bottom: var(--space-5);
}

.benefits {
  display: grid;
  gap: var(--space-4) var(--space-3);
}

.benefit {
  display: flex;
  gap: var(--space-2);
}

.benefit__title {
  margin-bottom: 0.25rem;
}

/* Testimonials: scroll-snap row, grid from 768px */
.reviews {
  position: relative; /* clips the absolutely positioned visually-hidden labels inside the scroller */
  display: flex;
  gap: var(--space-2);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.reviews::-webkit-scrollbar {
  display: none;
}

.reviews:focus-visible {
  outline-offset: -2px;
}

.review-card {
  display: flex;
  flex: 0 0 85%;
  flex-direction: column;
  gap: var(--space-2);
  scroll-snap-align: start;
}

/* Opening quote mark */
.review-card::before {
  content: "\201C" / "";
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--cta);
}

.reviews-dots {
  display: flex;
  justify-content: center;
  height: 0;
}

.reviews-dots[hidden] {
  display: none;
}

.reviews-dots__dot {
  position: relative;
  top: var(--space-1);
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.reviews-dots__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--ink-soft);
  opacity: 0.7;
  transform: translate(-50%, -50%);
}

.reviews-dots__dot[aria-current="true"]::before {
  width: 1.25rem;
  background: var(--brand);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .reviews-dots__dot::before {
    transition: width 250ms ease-out, background-color 250ms ease-out, opacity 250ms ease-out, transform 150ms ease-out;
  }

  .reviews-dots__dot:active::before {
    transform: translate(-50%, -50%) scale(0.85);
  }
}

@media (hover: hover) {
  .reviews-dots__dot:hover::before {
    opacity: 1;
  }
}

.review-card--solo {
  max-width: 40rem;
  margin-bottom: var(--space-5);
}

.review-card__author {
  margin-top: auto;
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.review-card__author strong {
  color: var(--ink);
}

/* About, contact, 404 */
.story__grid,
.contact-page,
.included,
.split,
.card-grid {
  display: grid;
  gap: var(--space-5);
}

.story__media {
  --ratio: 4 / 5;
  max-width: 30rem;
}

.story__media img,
.about-teaser__media img {
  width: 100%;
  aspect-ratio: var(--ratio);
  border-radius: var(--radius-card);
  object-fit: cover;
}

.card-grid .card {
  display: grid;
  align-content: start;
  gap: var(--space-1);
}

.card-grid .btn {
  justify-self: start;
}

.split > .card {
  align-self: start;
}

.card__text,
.card__list,
.included__options,
.included__text,
.included__note {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.card__list {
  display: grid;
  gap: var(--space-1);
  padding-left: 1.125rem;
}

/* Contact page */
.contact-page__info {
  display: grid;
  gap: var(--space-3);
}

.contact-page .card {
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
}

.contact-page .card__title {
  margin-bottom: var(--space-2);
  font-size: var(--fs-h3);
}

.details-list__icon,
.included__icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--sand);
}

.details-list__label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hours {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1) var(--space-2);
}

.hours dd {
  font-weight: 700;
}

.contact-page .area-list {
  margin-bottom: var(--space-2);
}

.steps {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--space-3) var(--space-5);
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-2);
  align-items: center;
}

/* Stats band */
.stats {
  padding-block: var(--space-6);
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  text-align: center;
}

.stats__num {
  display: block;
  min-width: 4ch;
  color: var(--cta);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.1rem + 4vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stats__label {
  display: block;
  color: var(--on-dark-soft);
  font-size: var(--fs-small);
}

.prose {
  max-width: 70ch;
}

.prose > * + * {
  margin-top: var(--space-2);
}

.prose > h2 {
  margin-top: var(--space-6);
  font-size: var(--fs-h3);
}

.prose li + li {
  margin-top: 0.25rem;
}

.not-found {
  text-align: center;
}

.not-found > .container > * {
  margin-inline: auto;
}

.not-found > .container > * + * {
  margin-top: var(--space-2);
}

.not-found__code {
  color: var(--ink-soft);
  font-family: var(--font-heading);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 600;
  line-height: 1;
}

.not-found .actions {
  margin-top: var(--space-4);
}

/* FAQ */
.faq {
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 3.5rem;
  padding-block: var(--space-2);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq__summary::-webkit-details-marker {
  display: none;
}

/* Plus drawn with two bars; the vertical bar collapses when open to make a minus */
.faq__summary::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 100% 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 100% no-repeat;
}

.faq__item[open] .faq__summary::after {
  background-size: 100% 2px, 2px 0;
}

.faq__answer {
  padding-bottom: var(--space-3);
  color: var(--ink-soft);
}

/* About teaser */
.about-teaser {
  display: grid;
  gap: var(--space-6);
}

.about-teaser__text > * + * {
  margin-top: var(--space-3);
}

.about-teaser__text > .section-heading,
.included__intro .section-heading {
  margin-bottom: 0;
}

.about-teaser__media {
  --ratio: 4 / 5;
  max-width: 30rem;
}

/* Mobile sticky CTA */
.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 7fr 13fr;
  gap: var(--space-1);
  padding: var(--space-1) var(--gutter) calc(var(--space-1) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-up);
  transform: translateY(100%);
  visibility: hidden;
}

.sticky-cta[hidden] {
  display: none;
}

.sticky-cta.is-shown {
  transform: none;
  visibility: visible;
}

.sticky-cta .btn {
  min-height: 3rem;
}

.sticky-cta .icon {
  color: inherit;
}

.sticky-sentinel {
  position: absolute;
  top: 400px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Keep the footer text clear of the bar */
body:has(.sticky-cta) .footer {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: no-preference) {
  .sticky-cta {
    transition: transform var(--t-base) var(--ease), visibility 0s var(--t-base);
  }

  .sticky-cta.is-shown {
    transition-delay: 0s;
  }

  html.js-reveal [data-reveal] {
    transform: translateY(1rem);
    opacity: 0;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  html.js-reveal [data-reveal].is-visible {
    transform: none;
    opacity: 1;
  }

  [data-reveal]:nth-child(2) { --i: 1; }
  [data-reveal]:nth-child(3) { --i: 2; }
  [data-reveal]:nth-child(4) { --i: 3; }
  [data-reveal]:nth-child(n+5) { --i: 4; }

  /* Included cards: tick badge pops in, then the tick draws (.is-visible) */
  html.js-reveal .included__item:not(.is-visible) .included__tick {
    opacity: 0;
  }

  .included__item.is-visible .included__tick {
    animation: tick-pop 0.45s var(--ease) backwards;
    animation-delay: calc(var(--d, 0ms) + 250ms);
  }

  .included__item.is-visible .included__tick .icon {
    animation: tick-draw 0.35s var(--ease) backwards;
    animation-delay: calc(var(--d, 0ms) + 450ms);
  }

  .included__item {
    transition: transform var(--t-base) var(--ease);
  }

  .included__icon,
  .included__icon .icon {
    transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
  }

  @keyframes tick-pop {
    from { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.12); opacity: 1; }
    to { transform: scale(1); }
  }

  @keyframes tick-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  /* Stagger by row (60ms) and column (40ms): the last card starts at 280ms */
  html.js-reveal .included__list > [data-reveal] {
    transition-delay: var(--d, 0ms);
  }

  .included__list > :nth-child(2) { --d: 40ms; }
  .included__list > :nth-child(3) { --d: 60ms; }
  .included__list > :nth-child(4) { --d: 100ms; }
  .included__list > :nth-child(5) { --d: 120ms; }
  .included__list > :nth-child(6) { --d: 160ms; }
  .included__list > :nth-child(7) { --d: 180ms; }
  .included__list > :nth-child(8) { --d: 220ms; }
  .included__list > :nth-child(9) { --d: 240ms; }
  .included__list > :nth-child(10) { --d: 280ms; }
}

@media (hover: hover) {
  .included__item:hover .included__icon,
  .included__item:focus-within .included__icon {
    background: var(--brand);
  }

  .included__item:hover .included__icon .icon,
  .included__item:focus-within .included__icon .icon {
    color: var(--surface);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .included__item:hover,
  .included__item:focus-within {
    transform: translateY(-3px);
  }
}

/* Sticky intro and form, tall screens only */
@media (min-width: 1024px) and (min-height: 760px) {
  .included__intro,
  .contact-page .contact__form {
    position: sticky;
    top: calc(var(--header-h-scrolled) + var(--space-3));
  }
}

/* ---------- Footer ---------- */
.footer {
  padding-top: var(--section-pad);
  background: var(--ink);
  color: var(--on-dark-soft);
  font-size: var(--fs-small);
}

.footer a {
  color: var(--surface);
}

.footer a:hover {
  color: var(--on-dark-soft);
}

.footer__title {
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--surface);
}

/* Footer lockup: light mark on the dark footer */
.logo--footer {
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  color: var(--surface);
}

.logo--footer .logo__mark {
  width: var(--logo-mark-footer);
  height: var(--logo-mark-footer);
}

.logo--footer .logo__name {
  font-size: 1.625rem;
  color: var(--surface);
}

.logo--footer .logo__tag,
.logo--footer:hover .logo__tag {
  color: var(--on-dark-soft);
}

.logo--footer:hover .logo__name {
  color: var(--on-dark-soft);
}

.footer__blurb {
  max-width: 42ch;
  font-size: var(--fs-small);
}

.footer__list + .footer__title {
  margin-top: var(--space-3);
}

.nav__list,
.footer__list {
  list-style: none;
  padding: 0;
}

/* 44px touch targets; equal negative margin keeps the footer height unchanged */
.footer__list a,
.footer__bottom a {
  display: block;
  width: fit-content;
  padding-block: 0.675rem;
  margin-block: -0.675rem;
}

.footer__bottom p a {
  display: inline-block;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-6);
  padding-block: var(--space-3);
  border-top: 1px solid var(--brand-dark);
}

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

/* ---------- Media (mobile-first) ---------- */
@media (min-width: 480px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }

  .trust-bar__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid,
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--pair {
    grid-template-columns: repeat(2, 1fr);
  }

  .included__list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .stats__item + .stats__item {
    border-left: 1px solid var(--brand);
  }

  .split,
  .services__grid,
  .benefits,
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ba-slider {
    --ratio: 16 / 10;
  }

  .process__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--space-4);
  }

  .process__steps--four {
    grid-template-columns: repeat(4, 1fr);
  }

  .process__step {
    display: block;
    padding-bottom: 0;
  }

  .process__step:not(:last-child)::before {
    top: 1.5rem;
    right: calc(-1 * var(--space-4));
    bottom: auto;
    left: 3rem;
    width: auto;
    height: 1px;
  }

  .process__num {
    margin-bottom: var(--space-3);
  }

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

  .form__submit {
    width: auto;
    justify-self: start;
  }

  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .tile-grid > :nth-child(n) {
    --ratio: 4 / 5;
  }

  .tile-grid > :nth-child(6n+4),
  .tile-grid > :nth-child(6n+5),
  .tile-grid > :nth-child(6n+6) {
    --ratio: 1 / 1;
  }

  .gallery__filters {
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .sticky-cta {
    display: none;
  }

  body:has(.sticky-cta) .footer {
    padding-bottom: 0;
  }

  .about-teaser {
    grid-template-columns: 9fr 11fr;
    gap: var(--space-8);
    align-items: center;
  }

  .about-teaser__media {
    order: -1;
  }

  .story__grid {
    grid-template-columns: 11fr 9fr;
    gap: var(--space-8);
    align-items: center;
  }

  .contact-page {
    grid-template-columns: 5fr 7fr;
    grid-template-areas: "info form";
    gap: var(--space-6);
    align-items: start;
  }

  .contact-page__info {
    grid-area: info;
  }

  .included {
    grid-template-columns: 4fr 8fr;
    gap: var(--space-6);
    align-items: start;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: static;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav__list {
    display: flex;
    gap: var(--space-3);
  }

  .nav__cta {
    width: auto;
    margin-top: 0;
  }

  .hero {
    padding-block: var(--space-8);
  }

  .hero__inner {
    grid-template-columns: 11fr 9fr;
    gap: var(--space-8);
    align-items: center;
  }

  .hero__media,
  .why__media {
    max-width: none;
  }

  .contact__grid {
    grid-template-columns: 9fr 11fr;
    grid-template-areas:
      "intro form"
      "details form";
    gap: var(--space-5) var(--space-8);
    align-items: start;
  }

  .contact__intro {
    grid-area: intro;
  }

  .contact__form {
    grid-area: form;
  }

  .contact__aside {
    grid-area: details;
  }

  .why {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-8);
    align-items: start;
  }

  .why__media {
    position: sticky;
    top: calc(var(--header-h) + var(--space-4));
  }

  .hero__tiles {
    inset: var(--space-3) calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) var(--space-3);
  }

  .hero__card,
  .why__badge {
    left: calc(-1 * var(--space-5));
    bottom: var(--space-5);
  }

  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1.3fr 1fr;
  }
}

@media (min-width: 1280px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .gallery__grid > :nth-child(n) {
    --ratio: 4 / 5;
  }

  .gallery__grid > :nth-child(8n+5),
  .gallery__grid > :nth-child(8n+6),
  .gallery__grid > :nth-child(8n+7),
  .gallery__grid > :nth-child(8n+8) {
    --ratio: 1 / 1;
  }
}
