/* Donhelnedo Kennel - one stylesheet, mobile-first.
   Base styles target phones; min-width media queries add layout for wider screens. */

/* ---------- Fonts (self-hosted, variable weight) ----------
   Each family is split into latin + latin-ext files. unicode-range lets the
   browser download latin-ext only when a page actually uses č ć š ž đ. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ----------
   Contrast on --bg (#010101), WCAG: gold 12.0, gold-text 9.7 (AAA),
   gold-muted 6.0 (AA), gold-hover 13.9. */

:root {
  /* Colors: black and gold only */
  --bg: #010101;
  --bg-raised: #0b0a08;
  --gold: #fbb931;
  --gold-text: #e2a62c;
  --gold-muted: #b08222;
  --gold-line: rgba(251, 185, 49, 0.2);
  --gold-hover: #ffcb5c;

  /* Fonts */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Fluid type: clamp(min, preferred, max). Body grows from 16 px to 18 px. */
  --text-sm: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lead: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  --text-display: clamp(2.25rem, 1.4rem + 4.25vw, 4.75rem);

  /* Spacing scale (4, 8, 16, 24, 40, 64, 96, 128 px) + fluid section spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;
  --space-section: clamp(4rem, 2.5rem + 7vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);

  /* Layout */
  --measure: 65ch;
  --tap: 44px;
  --header-h: 3.5rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 700ms;

  color-scheme: dark;
}

/* ---------- Reset (minimal) ---------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* In-page jumps stop below the fixed header instead of under it. */
  scroll-padding-top: var(--header-h);
}

@media (min-width: 48em) {
  :root {
    --header-h: 4.5rem;
  }
}

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

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--gold-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  /* Long Serbian words never force horizontal scroll on narrow phones. */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--gold);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Hover only on devices that really hover (not sticky on touch). */
@media (hover: hover) {
  a:hover {
    color: var(--gold-hover);
  }
}

/* Visible keyboard focus everywhere; mouse clicks do not show it. */
:focus-visible {
  outline: 2px solid var(--gold-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background-color: var(--gold);
  color: var(--bg);
}

/* Hides content visually but keeps it for screen readers. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ----------
   Fixed bar. Over the hero it is transparent and shows only the language
   switch and icons (the photo already shows the name). JS adds:
   .is-solid (page scrolled) and .is-past-hero (hero photo out of view). */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 400ms ease, border-color 400ms ease;
}

.site-header.is-solid {
  background-color: var(--bg);
  border-bottom-color: var(--gold-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Phone: no room for name + languages + icons in one row, so the name
   replaces the language switch once the hero photo is gone. */
.site-header__name {
  display: none;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.site-header.is-past-hero .site-header__name {
  display: block;
}

.site-header.is-past-hero .lang {
  display: none;
}

/* Language switch */
.lang {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.lang__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding-inline: 0.5rem;
  font-size: 1rem;
  color: var(--gold-muted);
  text-decoration: none;
}

/* Thin gold divider between the two links (no "|" character in the text). */
.lang__link + .lang__link {
  border-left: 1px solid var(--gold-line);
}

.lang__link[aria-current] {
  color: var(--gold);
}

.lang__flag {
  flex: none;
  border-radius: 2px;
  opacity: 0.7;
}

.lang__link[aria-current] .lang__flag {
  opacity: 1;
}

/* Social icons */
.social {
  display: flex;
  padding: 0;
  list-style: none;
}

.icon-link {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  color: var(--gold);
}

.icon-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Very narrow phones (under 360 px): three icons + two language links do not
   fit in one row, so the flags are hidden (the words stay) and the name that
   appears after scrolling is a bit smaller. */
@media (max-width: 22.4375em) {
  .lang__flag {
    display: none;
  }

  .site-header__name {
    font-size: 1.125rem;
  }
}

@media (hover: hover) {
  .lang__link:hover,
  .icon-link:hover {
    color: var(--gold-hover);
  }

  .lang__link:hover .lang__flag {
    opacity: 1;
  }
}

/* Wider screens: everything fits in one row, so the name keeps its space
   and simply fades in; the language switch stays visible. */
@media (min-width: 48em) {
  .site-header__name,
  .site-header.is-past-hero .site-header__name {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms ease, visibility 400ms ease;
  }

  .site-header.is-past-hero .site-header__name {
    opacity: 1;
    visibility: visible;
  }

  .lang,
  .site-header.is-past-hero .lang {
    display: flex;
    margin-right: var(--space-3);
  }
}

/* ---------- Hero ----------
   The client photo is almost square and already contains the name and logo,
   so it is never cropped: it is shown whole on the black page (its own black
   background blends in). Phone/portrait: photo above the text.
   Wide screens: text left, photo right. No text ever sits on the photo. */

.hero {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--space-4);
  min-height: 100vh;
  min-height: 100svh;
  /* At least 40 px between the fixed header and the photo, also on short
     phones where the hero content is taller than the screen. */
  padding: calc(var(--header-h) + var(--space-5)) var(--gutter) var(--space-6);
  text-align: center;
  /* The slow zoom grows the photo a little; clip it without creating a scroll box. */
  overflow-x: clip;
}

.hero__media {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero__media img {
  /* width/height auto + max-* keeps the aspect ratio in both directions. */
  width: auto;
  max-width: 80%;
  height: auto;
  max-height: 44vh;
  max-height: 44svh;
}

.hero__text {
  max-width: 40rem;
}

.hero__headline {
  font-size: var(--text-display);
  letter-spacing: 0.01em;
}

.hero__welcome {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: 1.45;
  color: var(--gold);
}

/* Small scroll hint, decorative only (aria-hidden). */
.hero__cue {
  display: none;
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  translate: -50% 0;
  fill: none;
  stroke: var(--gold-muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-height: 35em) {
  .hero__cue {
    display: block;
  }
}

/* Landscape screens with enough width: two columns. Covers desktop, tablet
   landscape and phones held sideways. */
@media (min-width: 37.5em) and (min-aspect-ratio: 1/1) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "text media";
    justify-items: start;
    column-gap: clamp(1.5rem, 5vw, 6rem);
    max-width: 90rem;
    margin-inline: auto;
    padding-bottom: var(--space-4);
    text-align: left;
  }

  .hero__media {
    grid-area: media;
    align-self: center;
    width: auto;
  }

  .hero__text {
    grid-area: text;
    align-self: center;
    max-width: 38rem;
  }

  /* Larger hero text next to the photo, so the two feel balanced. */
  .hero__headline {
    font-size: clamp(2.5rem, 1rem + 4.5vw, 6rem);
  }

  .hero__welcome {
    margin-top: var(--space-4);
    font-size: clamp(1.25rem, 0.8rem + 1.1vw, 2rem);
  }

  /* 80% of the available height (photo reduced by 20%). */
  .hero__media img {
    max-width: 100%;
    max-height: calc((100vh - var(--header-h) - 3rem) * 0.8);
    max-height: calc((100svh - var(--header-h) - 3rem) * 0.8);
  }

  .hero__cue {
    display: none;
  }
}

/* Very slow zoom on load. Only when the user has not asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img {
    animation: hero-zoom 20s var(--ease-out) both;
  }

  .hero__cue {
    animation: cue-float 2.4s ease-in-out infinite;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

@keyframes cue-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* ---------- Text blocks ----------
   One readable column (about 65 characters per line), centered on the page,
   text left-aligned. Rhythm comes from spacing, not from extra decoration. */

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

.block__text {
  max-width: var(--measure);
  margin-inline: auto;
}

.block__text p + p {
  margin-top: 1.25em;
}

/* Blocks 2 and 3 follow each other without a photo: a short gold line
   separates them. The gap is one section space in total (half above the
   line, half below), not two. */
.block--divided {
  margin-top: calc(var(--space-section) / -2);
  padding-top: 0;
}

.block--divided::before {
  content: "";
  display: block;
  width: 4rem;
  height: 1px;
  margin: 0 auto calc(var(--space-section) / 2);
  background-color: var(--gold-line);
}

/* Block 1: text + trophy photos. Stacked on phones, side by side on wide screens. */
.block--split {
  display: grid;
  gap: var(--space-5);
  max-width: 80rem;
  margin-inline: auto;
}

@media (min-width: 64em) {
  .block--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 6rem);
  }

  .block--split .block__text {
    margin-inline: 0;
  }
}

/* ---------- Trophy rotator ----------
   Images are stacked in one frame; only .is-active is opaque. The 4:5 frame
   keeps the layout stable while photos with different shapes change. */

.rotator {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}

.rotator__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--bg-raised);
  border: 1px solid var(--gold-line);
}

.rotator__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease;
}

.rotator__img.is-active {
  opacity: 1;
}

.rotator__toggle {
  position: absolute;
  right: var(--space-2);
  bottom: var(--space-2);
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background-color: rgba(1, 1, 1, 0.75);
  color: var(--gold);
  cursor: pointer;
}

.rotator__toggle[hidden] {
  display: none;
}

.rotator__toggle svg {
  fill: currentColor;
}

/* Running: show the pause icon. Paused (aria-pressed="true"): show play. */
.rotator__icon-play,
.rotator__toggle[aria-pressed="true"] .rotator__icon-pause {
  display: none;
}

.rotator__toggle[aria-pressed="true"] .rotator__icon-play {
  display: block;
}

@media (hover: hover) {
  .rotator__toggle:hover {
    color: var(--gold-hover);
    border-color: var(--gold);
  }
}

/* ---------- Photo breaks ----------
   Full-bleed photos without text. Phones keep the photo's own 3:2 shape;
   wider screens use a lower band (at most 60% of the screen height),
   cropped with object-fit: cover and a per-photo object-position. */

.photo-break {
  margin: 0;
}

.photo-break img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 48em) {
  .photo-break img {
    aspect-ratio: auto;
    height: min(45vw, 60vh);
  }
}

/* ---------- Gallery ----------
   Equal 4:5 tiles (object-fit: cover crops the thumbnail only; the lightbox
   shows the whole photo). 2 / 3 / 4 columns by width. */

/* Half the usual section spacing around the gallery: inside its panel and
   in the neighbouring sections (block 4 above, contact below). */
.gallery {
  padding: calc(var(--space-section) / 2) var(--gutter);
  background-color: var(--bg-raised);
}

.block:has(+ .gallery) {
  padding-bottom: calc(var(--space-section) / 2);
}

.gallery ~ .contact {
  padding-top: calc(var(--space-section) / 2);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 0.3rem + 1vw, 1rem);
  max-width: 80rem;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

@media (min-width: 48em) {
  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery__item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--bg);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out), filter 600ms var(--ease-out);
}

@media (hover: hover) {
  .gallery__item:hover img {
    transform: scale(1.04);
    filter: brightness(1.08);
  }
}

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

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: rgba(1, 1, 1, 0.96);
  color: var(--gold);
  overscroll-behavior: contain;
}

.lightbox[open] {
  display: grid;
  place-items: center;
  animation: lightbox-in 300ms ease both;
}

.lightbox::backdrop {
  background-color: rgba(1, 1, 1, 0.8);
}

/* Lock page scroll while the dialog is open (CSS :has, no JS needed). */
html:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox__figure {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: calc(var(--tap) + var(--space-3)) var(--space-2);
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__btn {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background-color: rgba(1, 1, 1, 0.7);
  color: var(--gold);
  cursor: pointer;
}

.lightbox__btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__close {
  top: var(--space-3);
  right: var(--space-3);
}

/* Phones: arrows at the bottom, away from the photo; wide screens: at the sides. */
.lightbox__prev,
.lightbox__next {
  bottom: var(--space-3);
}

.lightbox__prev {
  left: calc(50% - var(--tap) - var(--space-3));
}

.lightbox__next {
  right: calc(50% - var(--tap) - var(--space-3));
}

@media (min-width: 48em) {
  .lightbox__figure {
    padding: var(--space-5) calc(var(--tap) + var(--space-5));
  }

  .lightbox__prev,
  .lightbox__next {
    top: 50%;
    bottom: auto;
    translate: 0 -50%;
  }

  .lightbox__prev {
    left: var(--space-4);
  }

  .lightbox__next {
    right: var(--space-4);
  }
}

@media (hover: hover) {
  .lightbox__btn:hover {
    color: var(--gold-hover);
    border-color: var(--gold);
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.contact {
  display: grid;
  gap: var(--space-5);
  max-width: 80rem;
  margin-inline: auto;
  padding: var(--space-section) var(--gutter);
}

.contact__list {
  display: grid;
  gap: var(--space-2);
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap);
  font-size: var(--text-lead);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
}

.contact__row svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .contact__row:hover {
    color: var(--gold-hover);
  }

  .contact__row:hover span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
  }
}

.contact__map {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--gold-line);
  background-color: var(--bg-raised);
}

/* Google's map is light; this filter turns it into a dark gray map that fits
   the black/gold page without any other hues. */
.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9);
}

@media (min-width: 64em) {
  .contact {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 6rem);
  }

  .contact__map {
    aspect-ratio: 16 / 10;
  }
}

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

.site-footer {
  border-top: 1px solid var(--gold-line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  max-width: 80rem;
  margin-inline: auto;
  padding: var(--space-4) var(--gutter);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold-muted);
}

.site-footer__lang {
  display: flex;
  margin-inline: -0.5rem;
}

/* Designer credit, quiet muted gold.
   Phones: own centered row below the name and languages (order moves it last).
   Wide screens: centered between the name (left) and the languages (right). */
.site-footer__credit {
  order: 1;
  flex-basis: 100%;
  font-size: 1rem;
  text-align: center;
  color: var(--gold-muted);
}

@media (min-width: 48em) {
  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .site-footer__credit {
    order: 0;
  }

  .site-footer__lang {
    justify-self: end;
  }
}

.site-footer__credit a {
  display: inline-block;
  padding-block: 0.625rem; /* ~44 px touch target height */
  color: inherit;
}

@media (hover: hover) {
  .site-footer__credit a:hover {
    color: var(--gold-hover);
  }
}

/* ---------- Scroll reveal ----------
   Content is hidden only when JS runs (.js) AND the user has not asked for
   reduced motion. JS adds .is-visible once, when the element enters the view. */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  }

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

/* ---------- Reduced motion: switch off all non-essential animation ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
