/* ============================================================
   ZHHJ — visual system
   Follows the landing-page-design skill:
   - one typeface, no italics, no ultra bold
   - font sizes snap to Tailwind's default scale
   - spacing only from the token table
   - radius only from Tailwind's scale + nested formula
   - flat backgrounds, single motion curve, full state sets
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* typeface: single family; CJK falls back to system faces */
  --font: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  /* named colors */
  --ink: #141414;
  --ink-soft: #3b3b3b;
  --muted: #666666;
  --paper: #f5f3ee;
  --paper-2: #edeae2;
  --line: rgba(20, 20, 20, 0.12);
  --white: #ffffff;
  --accent: #f0431e;
  --dark: #000000;
  --dark-2: #181818;
  --dark-3: #1f1f1f;
  --dark-4: #272727;

  /* spacing tokens (px) */
  --s-0: 0;
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* radius tokens */
  --r-none: 0;
  --r-sm: 2px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 500ms;
  --dur-fast: 300ms;

  /* max text measure */
  --measure: 680px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* Copy rules: balance headings, pretty body */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; margin: 0; }
p, li, blockquote { text-wrap: pretty; }

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

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

.skip-link {
  position: fixed;
  top: var(--s-100);
  left: var(--s-100);
  z-index: 200;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--white);
  padding: var(--s-100) var(--s-200);
  border-radius: var(--r-lg);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Named text styles ---------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.015em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.title-5 { font-size: 12px; line-height: 16px; font-weight: 500; }
.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  font-weight: 600;
  line-height: 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.button--lg { font-size: 18px; line-height: 28px; }
.button--sm { font-size: 14px; line-height: 20px; }
.button .icon { width: 18px; height: 18px; flex: none; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(0.98); }

/* dark-solid button */
.button:not(.button--ghost):not(.button--outline) {
  background: var(--ink);
  color: var(--white);
}
.button:not(.button--ghost):not(.button--outline):hover { background: var(--dark-3); }
/* ghost (on dark) */
.button--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.button--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
/* outline (on light) */
.button--outline { color: var(--ink); border-color: var(--line); background: transparent; }
.button--outline:hover { border-color: var(--ink); background: var(--white); }

.text-link { color: var(--accent); border-bottom: 1px solid currentColor; }
.text-link:hover { opacity: 0.75; }

.dot {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-radius: var(--r-full);
  background: var(--accent);
  margin-left: 0.12em;
  vertical-align: baseline;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-300);
}
.section { padding: var(--s-900) 0; }
.section__head { max-width: 760px; margin-bottom: var(--s-700); }
.section__kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--s-200);
}
.section__intro { color: var(--muted); max-width: var(--measure); margin-top: var(--s-200); }

/* ---------- Floating navigation ---------- */
.site-header {
  position: fixed;
  top: var(--s-200);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-500);
  padding: var(--s-75) var(--s-100) var(--s-75) var(--s-200);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--white);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-header.is-scrolled .nav {
  background: rgba(20, 20, 20, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
}
.nav__brand {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-300);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.nav__links > li > a:not(.button) { opacity: 0.85; transition: opacity var(--dur-fast) var(--ease); }
.nav__links > li > a:not(.button):hover { opacity: 1; }
.nav__links .nav__cta {
  background: var(--white);
  color: var(--ink);
  padding: var(--s-75) var(--s-200);
}
.nav__links .nav__cta:hover { background: var(--paper); }
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
  border-radius: var(--r-lg);
}
.nav__toggle-icon,
.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: '';
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: var(--r-full);
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav__toggle-icon { top: 19px; }
.nav__toggle-icon::before { top: -6px; }
.nav__toggle-icon::after { top: 6px; }
.nav__toggle[aria-expanded='true'] .nav__toggle-icon { background: transparent; }
.nav__toggle[aria-expanded='true'] .nav__toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] .nav__toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--dark-2);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1200ms var(--ease), transform 7000ms linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.46); }
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-900) var(--s-300);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-200);
  margin-bottom: var(--s-300);
  opacity: 0.9;
}
.hero__eyebrow-sep { width: 24px; height: 1px; background: currentColor; opacity: 0.6; }
.hero__title {
  font-size: 60px;
  line-height: 60px;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: var(--measure);
  margin-bottom: var(--s-300);
  /* the one place a gradient is allowed: hero heading text */
  background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero__title-line { display: block; }
.hero__title .dot {
  -webkit-text-fill-color: var(--accent);
  background: var(--accent);
  width: 0.3em;
  height: 0.3em;
}
.hero__subtitle { max-width: var(--measure); color: rgba(255, 255, 255, 0.86); margin-bottom: var(--s-400); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-200); margin-bottom: var(--s-600); }
.hero__proof { display: flex; align-items: center; gap: var(--s-200); opacity: 0.82; }
.hero__proof strong { font-weight: 600; color: var(--white); }
.hero__proof-divider { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.4); }
.hero__scroll {
  position: absolute;
  z-index: 2;
  right: var(--s-300);
  bottom: var(--s-400);
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  opacity: 0.8;
}
.hero__scroll .icon { width: 16px; height: 16px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Work ---------- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-300);
}
.work-card__btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.work-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}
.work-card__btn:hover .work-card__media img { transform: scale(1.04); }
.work-card__btn:active .work-card__media img { transform: scale(1.01); }
.work-card__view {
  position: absolute;
  right: var(--s-200);
  bottom: var(--s-200);
  background: var(--white);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.work-card__btn:hover .work-card__view,
.work-card__btn:focus-visible .work-card__view { opacity: 1; transform: translateY(0); }
.work-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-200) var(--s-25) 0;
}
.work-card__meta .caption-2 { color: var(--muted); margin-top: var(--s-25); }
.work-card__arrow {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.work-card__arrow .icon { width: 16px; height: 16px; }
.work-card__btn:hover .work-card__arrow { background: var(--ink); color: var(--white); transform: rotate(45deg); }
.work__more { display: flex; justify-content: center; margin-top: var(--s-700); }

/* ---------- Tagline reveal ---------- */
.tagline {
  background: var(--dark);
  color: var(--white);
  padding: var(--s-900) 0;
}
.tagline__text {
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 960px;
}
.tagline__word {
  color: rgba(255, 255, 255, 0.28);
  transition: color var(--dur) var(--ease);
}
.tagline__word.is-lit { color: var(--white); }

/* ---------- About ---------- */
.about { background: var(--paper-2); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-800);
  align-items: start;
}
.about__logo {
  font-size: 48px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
}
.about__logo .dot { width: 0.28em; height: 0.28em; }
.about__logo-sub { color: var(--muted); margin-top: var(--s-100); }
.about__body .heading-3 { margin-bottom: var(--s-300); }
.about__body p { max-width: var(--measure); }
.about__body p + p { margin-top: var(--s-200); }
.about__en { color: var(--muted); }
.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-600);
  margin-top: var(--s-500);
  padding-top: var(--s-400);
  border-top: 1px solid var(--line);
}
.about__stats dt { color: var(--muted); margin-bottom: var(--s-50); }
.about__stats dd { font-size: 20px; line-height: 28px; font-weight: 500; }

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-300);
}
.service-card {
  padding: var(--s-400);
  border-radius: var(--r-2xl);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08); }
.service-card__num { display: block; color: var(--accent); margin-bottom: var(--s-500); }
.service-card h3 { margin-bottom: var(--s-100); }
.service-card p { color: var(--muted); }

/* ---------- Process ---------- */
.process { background: var(--paper-2); }
.process__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-500);
  counter-reset: step;
}
.process__item { padding-top: var(--s-300); border-top: 2px solid var(--ink); }
.process__step { display: block; color: var(--accent); margin-bottom: var(--s-200); }
.process__item h3 { margin-bottom: var(--s-100); }
.process__item p { color: var(--muted); }

/* ---------- Proof ---------- */
.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-300);
}
.quote {
  padding: var(--s-400);
  background: var(--white);
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-300);
}
.quote blockquote { color: var(--ink-soft); }
.quote figcaption { color: var(--muted); }
.quote__sep { display: inline-block; width: 16px; height: 1px; background: var(--line); margin: 0 var(--s-75); vertical-align: middle; }

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--s-800);
  align-items: start;
}
.faq__head p.body-2 { color: var(--muted); margin-top: var(--s-200); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-300) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex: none;
  width: 18px;
  height: 18px;
  position: relative;
  transition: transform var(--dur) var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: var(--r-full);
}
.faq__icon::before { top: 8px; left: 2px; width: 14px; height: 2px; }
.faq__icon::after { top: 2px; left: 8px; width: 2px; height: 14px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 var(--s-500) var(--s-300) 0; }

/* ---------- Contact ---------- */
.contact { background: var(--dark-3); color: var(--white); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-800);
  align-items: start;
}
.contact__copy .body-2 { color: rgba(255, 255, 255, 0.78); max-width: var(--measure); margin-top: var(--s-200); }
.contact__reassure { display: flex; flex-wrap: wrap; gap: var(--s-300); margin-top: var(--s-400); color: rgba(255, 255, 255, 0.7); }
.contact__reassure li { display: flex; align-items: center; gap: var(--s-75); }
.contact__reassure li::before {
  content: '';
  width: 6px; height: 6px; border-radius: var(--r-full);
  background: var(--accent);
  flex: none;
}
.contact__form { display: flex; flex-direction: column; gap: var(--s-200); }
.field { display: flex; flex-direction: column; gap: var(--s-75); }
.field label { color: rgba(255, 255, 255, 0.8); }
.field__input {
  width: 100%;
  padding: var(--s-100) var(--s-200);
  background: var(--dark-4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.field__input::placeholder { color: rgba(255, 255, 255, 0.38); }
.field__input:hover { border-color: rgba(255, 255, 255, 0.3); }
.field__input:focus { outline: none; border-color: var(--accent); background: #2c2c2c; }
.field__textarea { resize: vertical; min-height: 112px; }
.field.has-error .field__input { border-color: var(--accent); }
.field__error { color: #ff8a72; min-height: 0; }
.field__error:empty { display: none; }
.contact__submit { align-self: flex-start; background: var(--accent); color: var(--white); margin-top: var(--s-75); }
.contact__submit:hover { background: #d83a18; }
.contact__submit[disabled] { opacity: 0.7; cursor: wait; transform: none; }
.contact__status { min-height: 20px; color: #9be7b0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.7); padding: var(--s-700) 0 var(--s-400); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-500);
  padding-bottom: var(--s-600);
}
.footer__brand .nav__brand { color: var(--white); margin-bottom: var(--s-100); }
.footer__nav, .footer__legal { display: flex; flex-direction: column; gap: var(--s-100); align-items: flex-start; }
.footer__nav a:hover, .footer__legal a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-200);
  padding-top: var(--s-300);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__top { display: inline-flex; align-items: center; gap: var(--s-75); }
.footer__top .icon { width: 16px; height: 16px; }
.footer__top:hover { color: var(--white); }

/* ---------- Dialogs ---------- */
.case-dialog, .legal-dialog {
  border: 0;
  padding: 0;
  border-radius: var(--r-3xl);
  background: var(--paper);
  color: var(--ink);
  max-width: 720px;
  width: calc(100% - var(--s-300));
  max-height: 86vh;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.case-dialog::backdrop, .legal-dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.case-dialog__close {
  position: absolute;
  top: var(--s-200);
  right: var(--s-200);
  z-index: 3;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}
.case-dialog__close:hover { transform: rotate(90deg); }
.case-dialog__close .icon { width: 18px; height: 18px; }
.case-dialog__body .case-cover { width: 100%; height: 280px; object-fit: cover; border-radius: var(--r-3xl) var(--r-3xl) 0 0; }
.case-dialog__inner { padding: var(--s-400); }
.case-dialog__inner .section__kicker { margin-bottom: var(--s-100); }
.case-dialog__inner h2 { margin-bottom: var(--s-200); }
.case-dialog__inner p { color: var(--muted); max-width: var(--measure); }
.case-dialog__facts { display: flex; flex-wrap: wrap; gap: var(--s-500); margin-top: var(--s-400); padding-top: var(--s-300); border-top: 1px solid var(--line); }
.case-dialog__facts div dt { color: var(--muted); margin-bottom: var(--s-25); }
.case-dialog__facts div dd { font-size: 16px; line-height: 24px; font-weight: 600; }
.legal-dialog { padding: var(--s-500); }
.legal-dialog h2 { margin-bottom: var(--s-200); }
.legal-dialog p, .legal-dialog li { color: var(--muted); margin-bottom: var(--s-100); }
.legal-dialog ul { list-style: disc; padding-left: var(--s-300); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .heading-2 { font-size: 36px; line-height: 40px; }
  .hero__title { font-size: 48px; line-height: 52px; }
  .about__grid, .faq__grid, .contact__inner { grid-template-columns: 1fr; gap: var(--s-500); }
  .services__grid, .process__list, .proof__grid { grid-template-columns: 1fr; }
  .section { padding: var(--s-700) 0; }
}

@media (max-width: 640px) {
  .nav { gap: var(--s-200); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--s-300);
    padding: var(--s-600);
    background: rgba(20, 20, 20, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links > li { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .nav__links.is-open > li { opacity: 1; transform: translateY(0); }
  .nav__links.is-open > li:nth-child(1) { transition-delay: 60ms; }
  .nav__links.is-open > li:nth-child(2) { transition-delay: 120ms; }
  .nav__links.is-open > li:nth-child(3) { transition-delay: 180ms; }
  .nav__links.is-open > li:nth-child(4) { transition-delay: 240ms; }
  .nav__links.is-open > li:nth-child(5) { transition-delay: 300ms; }
  .nav__links > li > a { font-size: 24px; line-height: 32px; font-weight: 600; }
  .nav__links .nav__cta { font-size: 16px; line-height: 24px; }

  .hero__inner { padding: var(--s-800) var(--s-300); }
  .hero__title { font-size: 36px; line-height: 40px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .button { width: 100%; }
  .hero__proof { flex-wrap: wrap; }
  .hero__scroll { display: none; }

  .work__grid { grid-template-columns: 1fr; }
  .tagline__text { font-size: 30px; line-height: 36px; }
  .about__logo { font-size: 36px; line-height: 40px; }
  .about__stats { gap: var(--s-300); }
  .service-card, .quote { padding: var(--s-300); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-400); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .case-dialog__inner { padding: var(--s-300); }
}

/* ---------- Reduced motion ---------- */
@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;
  }
  .hero__slide { transition: none; }
  .hero__slide:not(.is-active) { display: none; }
  .tagline__word { color: var(--white); }
  .reveal { opacity: 1; transform: none; }
}
