/* =========================================================
   ALCHEMY MEDIA — single page
   Design system + layout
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0a0b;
  --ink-soft: #121215;
  --ink-line: rgba(244, 241, 234, 0.14);
  --paper: #f4f1ea;
  --paper-line: rgba(10, 10, 11, 0.16);

  --bg: var(--ink);
  --fg: var(--paper);
  --muted: rgba(244, 241, 234, 0.62);
  --line: var(--ink-line);
  --accent: #ff4a1c;
  --accent-ink: #0a0a0b;

  --font-display: "Anton", "Archivo Black", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --header-h: 96px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max-w: 1320px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 900px) {
  :root {
    --header-h: 132px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
p,
figure,
address,
dl {
  margin: 0;
}

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

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

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--solid {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--solid:hover {
  background: #ff6a3d;
}

.btn--outline {
  border-color: rgba(244, 241, 234, 0.35);
  color: var(--fg);
}

.btn--outline:hover {
  border-color: var(--fg);
  background: rgba(244, 241, 234, 0.06);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.7), rgba(10, 10, 11, 0));
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}

/* The logo PNG is a single integrated composition: the head outline runs
   down the left past the wordmark, so the graphic cannot be separated from
   "ALCHEMY MEDIA" by cropping. The wrapper therefore crops only the
   transparent canvas margins (measured artwork bounds: x 107-2250,
   y 167-2159 of 2362x2362) so the whole logo shows uncut. */
.brand__mark {
  position: relative;
  display: block;
  height: clamp(54px, 5.6vw, 76px);
  aspect-ratio: 2271 / 2112;
  overflow: hidden;
  flex: none;
}

.brand__mark img {
  position: absolute;
  width: 104.01%;
  height: auto;
  max-width: none;
  left: -1.89%;
  top: -5.07%;
}

.brand__word {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand__word-sub {
  margin-top: 0.22em;
  align-self: flex-start;
  padding: 0.08em 0.34em 0.14em;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.is-current {
  color: var(--fg);
}

.nav__link:hover::after,
.nav__link.is-current::after {
  transform: scaleX(1);
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
}

.lang__sep {
  color: var(--line);
}

.lang__btn {
  padding: 0.15rem 0.2rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

a.lang__btn:hover {
  color: var(--fg);
}

.lang__btn.is-active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
}

.menu-toggle__bars {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}

.menu-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-toggle__bars i:first-child {
  top: 0;
}

.menu-toggle__bars i:last-child {
  top: 10px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child {
  top: 5px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child {
  top: 5px;
  transform: rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__media,
.hero__veil,
.hero__grain {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -3;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.04);
  filter: grayscale(0.4) contrast(1.05) brightness(0.82) blur(1.5px);
}

.hero__veil {
  z-index: -2;
  background: radial-gradient(
      120% 90% at 12% 18%,
      rgba(255, 74, 28, 0.16),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 11, 0.72) 0%,
      rgba(10, 10, 11, 0.66) 38%,
      rgba(10, 10, 11, 0.94) 84%,
      var(--ink) 100%
    ),
    linear-gradient(90deg, rgba(10, 10, 11, 0.88), rgba(10, 10, 11, 0.2) 70%);
}

.hero__grain {
  z-index: -1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  padding-top: clamp(3rem, 10vw, 7rem);
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

.eyebrow--hero {
  flex-wrap: wrap;
  row-gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  line-height: 1.6;
}

.eyebrow--hero::before {
  width: 40px;
}

.hero__title {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8.6vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

html[data-locale="zh"] .hero__title {
  font-size: clamp(1.95rem, 6.2vw, 5.4rem);
  line-height: 1.16;
  letter-spacing: 0.035em;
}

.hero__lead {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  max-width: 46ch;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
  color: rgba(244, 241, 234, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

/* Ticker */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Static state (no JS, or prefers-reduced-motion): a centred, wrapping
   keyword strip so nothing is clipped and the row reads as intentional. */
.ticker__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* Motion allowed: single-line marquee. */
.ticker__track.is-looping {
  flex-wrap: nowrap;
  width: max-content;
  animation: tickerScroll 32s linear infinite;
}

.ticker__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1.4rem;
  padding-block: 0.95rem;
}

/* Trailing gap keeps the duplicated group seamless while looping. */
.ticker__track.is-looping .ticker__group {
  flex-wrap: nowrap;
  padding-right: 1.4rem;
}

.ticker__group span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.6);
  white-space: nowrap;
}

html[data-locale="zh"] .ticker__group span {
  letter-spacing: 0.22em;
}

.ticker__group i {
  display: block;
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

@keyframes tickerScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

section[id],
footer[id],
.service[id] {
  scroll-margin-top: var(--header-h);
}

.section-head {
  max-width: 62rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-title {
  margin-top: clamp(0.9rem, 2vw, 1.4rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

html[data-locale="zh"] .section-title {
  font-size: clamp(1.85rem, 4.8vw, 4rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.section-lead {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 52ch;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
}

.about__body p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.9;
  color: rgba(244, 241, 234, 0.78);
}

.about__media {
  position: relative;
  overflow: hidden;
}

.about__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: filter 0.6s var(--ease), transform 0.9s var(--ease);
}

.about__media:hover img {
  filter: none;
  transform: scale(1.03);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding: 0;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem 1.25rem;
  background: var(--ink);
}

.stats__num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--accent);
}

.stats__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Services ---------- */
.services {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.service:nth-child(even) .service__media {
  order: -1;
}

.service__index {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.service__title {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

html[data-locale="zh"] .service__title {
  font-size: clamp(1.4rem, 2.7vw, 2.15rem);
  line-height: 1.26;
  letter-spacing: 0.035em;
}

.service__lead {
  margin-top: clamp(0.85rem, 1.6vw, 1.15rem);
  font-size: clamp(1rem, 1.3vw, 1.24rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--fg);
}

.service__body {
  display: grid;
  gap: 0.85rem;
  margin-top: clamp(0.85rem, 1.6vw, 1.15rem);
}

.service__body p {
  font-size: clamp(0.94rem, 1.05vw, 1.03rem);
  line-height: 1.85;
  color: var(--muted);
}

.service__body strong {
  color: var(--fg);
  font-weight: 600;
}

.service__media {
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
}

.service__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.03);
  transition: filter 0.6s var(--ease), transform 0.9s var(--ease);
}

.service:hover .service__media img {
  filter: none;
  transform: scale(1.03);
}

/* ---------- Work ---------- */
.section--work {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.022) 28%,
    transparent 100%
  );
}

.work__viewport {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-inline: var(--gutter);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.work__viewport.is-marquee {
  overflow: hidden;
}

.work__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  margin: 0;
  padding: 0;
}

.work__track.is-looping {
  animation: workScroll var(--duration, 60s) linear infinite;
}

.work__viewport:hover .work__track.is-looping,
.work__viewport:focus-within .work__track.is-looping {
  animation-play-state: paused;
}

@keyframes workScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--shift, 50%)), 0, 0);
  }
}

.card {
  flex: none;
  width: clamp(180px, 21vw, 268px);
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--ink-soft);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.03);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.06);
  filter: none;
}

.card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.9rem;
}

.card__artist {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__title {
  font-size: 0.9rem;
  color: rgba(244, 241, 234, 0.7);
}

.work__wide {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.work__wide img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 45%;
}

/* =========================================================
   Contact / Footer  (light theme)
   ========================================================= */
.site-footer {
  --bg: var(--paper);
  --fg: #0a0a0b;
  --muted: rgba(10, 10, 11, 0.55);
  --line: var(--paper-line);
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
  background: var(--paper);
  color: #0a0a0b;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.footer__title {
  margin-top: clamp(0.9rem, 2vw, 1.4rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.8vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

html[data-locale="zh"] .footer__title {
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  line-height: 1.24;
  letter-spacing: 0.035em;
}

/* Matches .section-lead (size / line-height / colour token); the colour
   token resolves to the light-theme muted ink inside the footer. */
.footer__lead {
  max-width: 52ch;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.75;
  color: var(--muted);
}

.footer__mail {
  display: inline-block;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(0.95rem, 1.9vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #0a0a0b;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.14em;
  word-break: break-word;
  transition: color 0.25s var(--ease);
}

.footer__mail:hover {
  color: var(--accent);
}

.footer__logo {
  width: clamp(140px, 19vw, 210px);
  height: auto;
}

.footer__address {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.84rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: rgba(10, 10, 11, 0.6);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--paper-line);
}

.footer__copy {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10, 10, 11, 0.5);
}

.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0a0a0b;
}

.footer__top-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.footer__top-link:hover svg {
  transform: translateY(-3px);
}

/* =========================================================
   Reveal
   ========================================================= */
.reveal {
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.will-reveal {
  opacity: 0;
  transform: translateY(24px);
}

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .nav__link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    padding-block: 0.5rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .about,
  .service,
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .service:nth-child(even) .service__media {
    order: 0;
  }

  .service__media img {
    aspect-ratio: 16 / 10;
  }

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

@media (max-width: 620px) {
  .hero__lead {
    max-width: none;
  }

  .card {
    width: 62vw;
  }

  .work__wide img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 420px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

  .work__viewport {
    overflow-x: auto;
  }

  .reveal.will-reveal {
    opacity: 1;
    transform: none;
  }
}
