.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Nav (Majd / iOS Dynamic Island) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  padding: 0.95rem var(--page-pad);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.nav-wrap {
  position: relative;
  width: auto;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
  min-height: 46px;
  min-width: 168px;
  padding: 0.32rem 0.38rem 0.32rem 1.2rem;
  background: #0a0a0a;
  color: #faf7f3;
  border-radius: 999px;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition:
    min-width var(--motion-ui) var(--ease-out),
    box-shadow var(--motion-ui) var(--ease-out),
    transform var(--motion-ui) var(--ease-out);
}

.site-header.is-open .nav-pill {
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  line-height: 0;
  padding: 0.1rem 0;
}

.nav-logo-mark {
  display: block;
  width: auto;
  height: 17px;
  border-radius: 0;
}

.nav-logo-mark.is-dark {
  filter: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.15rem;
  line-height: 1;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.45;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Keep glyph size; expand hit area for thumbs */
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

.lang-btn.is-active {
  opacity: 1;
  font-weight: 700;
}

/* Cream rounded rect + black dots (Majd island control) */
.nav-toggle {
  position: relative;
  box-sizing: border-box;
  /* Original 34×34 cream rounded rect (radius 11); transparent border → 44×44 hit */
  width: 44px;
  height: 44px;
  padding: 0;
  border: 5px solid transparent;
  border-radius: 16px;
  background-color: #f3efe8;
  background-clip: padding-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  transition:
    background-color var(--motion-ui) var(--ease-out),
    transform var(--motion-ui) var(--ease-out);
}

/* Closed: paint ··· with box-shadow — empty <span> can collapse on iOS Safari */
.nav-toggle::before {
  content: "";
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: -6.5px 0 0 #0a0a0a, 6.5px 0 0 #0a0a0a;
  transition: opacity var(--motion-ui) var(--ease-out);
}

.nav-toggle span {
  position: absolute;
  display: block;
  width: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: #0a0a0a;
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--motion-ui) var(--ease-out),
    opacity var(--motion-ui) var(--ease-out);
}

.nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle span:nth-child(2) {
  display: none;
}

.nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.site-header.is-open .nav-toggle {
  background-color: #ebe6dc;
}

.site-header.is-open .nav-toggle::before {
  opacity: 0;
}

/* Open: show X bars */
.site-header.is-open .nav-toggle span:nth-child(1),
.site-header.is-open .nav-toggle span:nth-child(3) {
  opacity: 1;
}

.nav-panel {
  display: grid;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  width: min(280px, 88vw);
  padding: 1rem;
  background: #0a0a0a;
  color: #faf7f3;
  border-radius: 22px;
  gap: 0.35rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px) scale(0.96);
  transform-origin: top center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transition:
    opacity var(--motion-ui) var(--ease-out),
    transform var(--motion-ui) var(--ease-out),
    visibility var(--motion-ui) var(--ease-out);
}

.site-header.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-panel a,
.nav-panel .btn {
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .nav-panel a:hover,
  .nav-panel .btn:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Mobile-only: floating expanded capsule menu (desktop unchanged) */
@media (max-width: 560px) {
  body.yino-menu-open {
    overflow: hidden;
    touch-action: none;
  }

  body.yino-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-nav) - 1);
    background: rgba(245, 243, 238, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .site-header.is-open {
    position: fixed;
    inset: 0;
    z-index: var(--z-nav);
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: auto;
    background: transparent;
  }

  .site-header.is-open .nav-wrap {
    width: 100%;
    max-width: calc(100vw - 32px);
    height: auto;
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
    background: #050505;
    color: #faf7f3;
    border-radius: 26px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform-origin: top right;
    animation: yino-menu-sheet-in 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .site-header.is-open.is-closing .nav-wrap {
    animation: yino-menu-sheet-out 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .site-header.is-open .nav-pill {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 10px 12px 4px 18px;
    gap: 0.65rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header.is-open .nav-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 3px solid transparent;
    border-radius: 14px;
    background-color: #f3f1ec;
    background-clip: padding-box;
  }

  .site-header.is-open .nav-toggle:active {
    transform: scale(0.94);
  }

  .site-header.is-open .nav-panel {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-height: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    overflow: visible;
  }

  @keyframes yino-menu-sheet-in {
    from {
      opacity: 0;
      transform: scale(0.96) translateY(-8px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  @keyframes yino-menu-sheet-out {
    from {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
    to {
      opacity: 0;
      transform: scale(0.96) translateY(-8px);
    }
  }
}

@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
  .site-header.is-open .nav-wrap,
  .site-header.is-open.is-closing .nav-wrap {
    animation: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--color-surface);
  color: var(--color-surface-ink);
}

.btn-outline {
  border-color: var(--color-line);
  background: transparent;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-solid {
  background: var(--color-surface);
  color: var(--color-surface-ink);
  border-radius: 14px;
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-link span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font-size: 0.85rem;
}

/* —— Focus rings —— */
:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

.nav-pill :focus-visible,
.btn-solid:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline-color: #fff;
}

/* —— Hero editorial (Majd-like) —— */
.hero {
  position: relative;
  min-height: calc(100svh - 3rem);
  padding: 2.25rem var(--page-pad) 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-stage {
  text-align: center;
  max-width: 1280px;
  margin: auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.35rem;
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--type-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  max-width: 12ch;
  text-wrap: balance;
}

.hero-title .line {
  display: block;
  white-space: nowrap;
}

/* Match Majd: sparkles ≈ capital-letter height of the display title */
.deco {
  position: absolute;
  width: 0.92em;
  height: 0.92em;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 0.04em 0.08em rgba(0, 0, 0, 0.28));
}

.deco-star {
  left: -0.95em;
  top: -0.08em;
}

.deco-bolt {
  width: 0.78em;
  height: 0.78em;
  right: -0.72em;
  bottom: -0.02em;
}

/* ZH title is near full-bleed — tuck deco so tips stay inside the viewport */
html[lang|="zh"] .deco-star {
  left: -0.55em;
  top: -0.12em;
}

html[lang|="zh"] .deco-bolt {
  right: -0.42em;
  bottom: -0.04em;
}

/* Shared hero→intro card morph (fixed overlay; slots stay in flow) */
.bridge-card {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45;
  width: 160px;
  height: 210px;
  margin: 0;
  padding: 0;
  border-radius: 24px;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform-origin: top left;
  perspective: 1200px;
  will-change: transform, width, height, opacity;
}

.bridge-card.is-active .bridge-card-shell {
  width: 100%;
  height: 100%;
}

.bridge-card.is-active {
  opacity: 1;
  visibility: visible;
}

.bridge-card-shell {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-style: preserve-3d;
  transform: rotateY(var(--bridge-ry, 0deg)) rotateX(var(--bridge-rx, 0deg));
  box-shadow:
    var(--bridge-edge, 16px) 32px 56px rgba(0, 0, 0, var(--bridge-shade, 0.3)),
    6px 12px 20px rgba(0, 0, 0, 0.16);
  /* ponytail: no overflow:hidden here — it breaks preserve-3d / backface paint */
  background: #0a0a0a;
}

.bridge-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.3rem;
  text-align: center;
  color: #faf7f3;
  border-radius: inherit;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bridge-face-brand {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.08), transparent 45%),
    #0a0a0a;
  padding: 1rem 0.75rem;
  transform: rotateY(0deg);
}

.bridge-face-media {
  transform: rotateY(180deg);
  background: #111;
}

.bridge-face-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.12) contrast(1.06);
}

.bridge-logo {
  width: min(108px, 68%);
  height: auto;
}

.bridge-year {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.bridge-face-brand em {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  opacity: 0.55;
}

.bridge-mark {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.45rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-stamp.is-bridged,
.intro-media.is-bridged {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Bridge stays available; other page motion is disabled in motion.css / site.js */

.hero-stamp-stage {
  perspective: 1100px;
  perspective-origin: 50% 40%;
  display: flex;
  justify-content: center;
}

.hero-stamp {
  --stamp-ry: 0deg;
  --stamp-rx: 0deg;
  --stamp-flip: 0deg;
  position: relative;
  display: block;
  width: min(168px, 34vw);
  aspect-ratio: 3 / 4;
  margin: 0;
  color: #faf7f3;
  text-decoration: none;
  border-radius: 22px;
  background: transparent;
  outline: none;
}

.hero-stamp-tilt {
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--stamp-rx))
    rotateY(var(--stamp-ry))
    translateZ(0);
  will-change: transform;
}

.hero-stamp-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(var(--stamp-flip));
  transition: transform 0.55s var(--ease-out);
}

.hero-stamp-face {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0.3rem;
  place-items: center;
  text-align: center;
  padding: 1rem 0.85rem;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow:
    18px 28px 48px rgba(0, 0, 0, 0.28),
    4px 10px 18px rgba(0, 0, 0, 0.14);
}

.hero-stamp-front {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.08), transparent 45%),
    #0a0a0a;
}

.hero-stamp-back {
  transform: rotateY(180deg);
  padding: 0;
  background: #111;
}

.hero-stamp-logo {
  display: block;
  width: min(108px, 68%);
  height: auto;
}

.hero-stamp-year {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-stamp-face em {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  opacity: 0.55;
}

.hero-stamp-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.hero-stamp-haru-label {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.7rem;
  z-index: 1;
  padding: 0.28rem 0.4rem;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.42);
  color: #f7f4ef;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  backdrop-filter: blur(4px);
}

.hero-stamp:focus-visible {
  --stamp-flip: 180deg;
}

button.hero-stamp {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.hero-stamp:focus-visible .hero-stamp-inner {
  box-shadow: 0 0 0 2px #111;
}

@media (hover: hover) and (pointer: fine) {
  .hero-stamp:hover {
    --stamp-flip: 180deg;
  }
}


.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  max-width: 1200px;
  margin: 0.5rem auto 0;
  width: 100%;
}

.hero-meta-left {
  display: grid;
  gap: 0.35rem;
}

.hero-copy {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: var(--type-sm);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
  min-width: 200px;
}

.hero-actions .btn {
  border-radius: 14px;
  min-height: 42px;
}

.hero-secondary {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
  opacity: 0.72;
}

@media (hover: hover) and (pointer: fine) {
  .hero-secondary:hover {
    opacity: 1;
  }
}

.hero-since {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: right;
}

/* —— Intro 3-col + manifesto —— */
.intro-band {
  padding: clamp(5rem, 12vw, 9rem) var(--page-pad);
  overflow: visible;
}

.intro-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  overflow: visible;
}

.intro-media-stage {
  perspective: 1000px;
  perspective-origin: 50% 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  padding: 0.5rem 0;
}

.intro-hey {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
  line-height: 0.95;
}

.intro-hey--long {
  font-size: clamp(1.7rem, 3.4vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 14ch;
}

.intro-media--team img {
  filter: grayscale(0.04) contrast(1.04) brightness(1);
}

.focus-list--compact li {
  align-items: center;
}

.focus-list--compact strong {
  font-size: 1rem;
}

#team,
#focus,
#portfolio,
#compare,
#trust,
#cta,
#search-visibility-teaser,
.intro-band,
.section[id],
.work[id],
.compare[id],
.close-band[id] {
  /* Sticky island nav (~64–72px) + 8–12px air — measured against mobile overlap */
  scroll-margin-top: calc(5.75rem + env(safe-area-inset-top, 0px));
}

/* ZH title line control + phrase protect (not global keep-all) */
.no-break {
  white-space: nowrap;
}

html[lang|="zh"] .zh-line {
  display: inline;
}

@media (max-width: 560px) {
  html[lang|="zh"] .zh-line {
    display: block;
  }

  html[lang|="zh"] .section-head h1,
  html[lang|="zh"] .section-head > p {
    line-break: strict;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* About page only — scoped redesign, does not alter other pages */
.about-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 32px 100px;
}

.about-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
  gap: clamp(80px, 7vw, 96px);
  align-items: stretch;
}

.about-page__eyebrow {
  margin: 0 0 1rem;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faint);
}

.about-page__content h1 {
  margin: 0;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: none;
  color: var(--color-ink);
}

.about-page__body {
  margin-top: 1.5rem;
  max-width: 620px;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.75;
}

.about-page__body p {
  margin: 0 0 1.1rem;
}

.about-page__body p:last-child {
  margin-bottom: 0;
}

.about-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.about-page__trust {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.about-page__trust li {
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--color-line);
}

.about-page__trust li:nth-child(odd) {
  padding-right: 1.5rem;
  border-right: 1px solid var(--color-line);
}

.about-page__trust li:nth-child(even) {
  padding-left: 1.5rem;
}

.about-page__trust-num {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-faint);
  font-weight: 600;
}

.about-page__trust strong {
  display: block;
  margin: 0 0 0.4rem;
  color: var(--color-ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-page__trust p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 400;
  max-width: 18rem;
}

.about-page__media {
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
  min-height: 0;
}

.about-page__media img {
  display: block;
  width: 100%;
  max-width: 470px;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 24px;
  background: #111;
  box-shadow: none;
}

@media (max-width: 768px) {
  .about-page {
    padding: 72px 20px;
  }

  .about-page__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: start;
  }

  .about-page__content h1 {
    font-size: clamp(40px, 9vw, 46px);
  }

  .about-page__body {
    font-size: 17px;
  }

  .about-page__media {
    justify-content: stretch;
    order: 2;
    align-self: auto;
  }

  .about-page__content {
    order: 1;
  }

  .about-page__media img {
    max-width: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .about-page__trust {
    grid-template-columns: 1fr 1fr;
  }

  .about-page__trust li:nth-child(odd) {
    padding-right: 1rem;
  }

  .about-page__trust li:nth-child(even) {
    padding-left: 1rem;
  }

  .intro-hey--long {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .about-page__trust {
    grid-template-columns: 1fr;
  }

  .about-page__trust li:nth-child(odd),
  .about-page__trust li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
}

.intro-left p,
.intro-lead {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
}

.intro-media {
  --intro-ry: 0deg;
  --intro-rx: 0deg;
  --intro-ptr-y: 0deg;
  --intro-ptr-x: 0deg;
  --intro-shade: 0.22;
  --intro-edge: 10px;
  position: relative;
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #111;
  text-decoration: none;
  color: #fff;
  transform-style: preserve-3d;
  transform:
    rotateY(calc(var(--intro-ry) + var(--intro-ptr-y)))
    rotateX(calc(var(--intro-rx) + var(--intro-ptr-x)))
    translateZ(0);
  box-shadow:
    var(--intro-edge) 28px 48px rgba(0, 0, 0, var(--intro-shade)),
    6px 12px 20px rgba(0, 0, 0, 0.14);
  will-change: transform;
}

.intro-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.16) 0%,
      transparent 38%,
      rgba(0, 0, 0, 0.28) 100%
    );
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: soft-light;
}

.intro-media::after {
  content: "";
  position: absolute;
  top: 6%;
  bottom: 6%;
  right: -1px;
  width: 11px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2a2a2a, #0c0c0c 50%, #1c1c1c);
  transform: translateX(55%) rotateY(90deg);
  transform-origin: right center;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}

.intro-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: grayscale(0.15) contrast(1.07) brightness(0.96);
  opacity: 1;
  transform: scale(1.02);
  transition: transform var(--motion-image) var(--ease-out);
}

.intro-media-mark {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.55rem;
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  z-index: 3;
  backdrop-filter: blur(6px);
}

.intro-media:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .intro-media:hover img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-media {
    --intro-ry: 0deg;
    --intro-rx: 0deg;
    --intro-ptr-y: 0deg;
    --intro-ptr-x: 0deg;
    transform: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  }
}

.intro-right .focus-list {
  margin-top: 1.35rem;
}

.intro-right .text-link {
  margin-top: 1.5rem;
}

.focus-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-line);
}

.focus-list span {
  font-size: var(--type-sm);
  color: var(--color-faint);
  letter-spacing: 0.06em;
}

.focus-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.1rem;
  letter-spacing: -0.02em;
}

.focus-list p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Natural-height manifesto: color scrub only — no sticky runway / empty scroll */
.manifesto-band {
  position: relative;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) var(--page-pad);
  max-width: 980px;
  text-align: center;
}

.manifesto-xl {
  margin: 0;
  font-size: clamp(1.85rem, 4.4vw, 3.35rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
  color: rgba(10, 10, 10, 0.24);
  font-weight: 600;
  white-space: normal;
  overflow-wrap: break-word;
  overflow: visible;
}

.manifesto-word {
  display: inline-block;
  white-space: nowrap;
}

/* ZH explicit lines: inline on desktop, stacked on mobile (see @560px) */
.manifesto-line {
  display: inline;
}

.manifesto-ch {
  /* Color driven by site.js (inline) for scroll ink; fallback gray before paint */
  color: rgba(10, 10, 10, 0.24);
}

/* —— Work / portfolio —— */
.work {
  padding: var(--space-6) var(--page-pad) var(--space-8);
}

.work-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.55rem;
  max-width: 1280px;
  margin-inline: auto;
}

.work-head h2 {
  font-size: var(--type-xl);
  letter-spacing: var(--tracking-section);
  margin: 0.2rem 0 0;
  text-transform: uppercase;
  line-height: 1.05;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--type-sm);
  color: var(--color-muted);
  margin: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.filter-btn {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  border-radius: 0;
  padding: 0.35rem 0.15rem;
  cursor: pointer;
  min-height: 40px;
  color: var(--color-muted);
}

.filter-btn.is-active {
  background: transparent;
  color: var(--color-ink);
  border-bottom-color: var(--color-ink);
  font-weight: 600;
}

.work-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.95rem;
  max-width: 1280px;
  margin: 0 auto;
}

.work-block {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #0a0a0a;
  text-decoration: none;
  color: #fff;
  padding: 1.25rem;
  border: 0;
}

/* Opaque scrim so thumbnail English never ghosts under labels (esp. touch). */
.work-block::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0a0a0a;
  pointer-events: none;
  transition: opacity var(--motion-image) var(--ease-out);
}

.work-mark {
  position: relative;
  z-index: 2;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  transition:
    opacity var(--motion-ui) var(--ease-out),
    transform var(--motion-ui) var(--ease-out);
}

.work-meta {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  text-align: center;
  transition: opacity var(--motion-ui) var(--ease-out);
}

.work-block img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity var(--motion-image) var(--ease-out),
    transform var(--motion-image) var(--ease-out);
}

.work-block:focus-visible img {
  opacity: 1;
  transform: scale(1);
}

.work-block:focus-visible::after {
  opacity: 0;
}

.work-block:focus-visible .work-mark {
  opacity: 0;
  transform: translateY(8px);
}

.work-block:focus-visible .work-meta {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .work-block:hover img {
    opacity: 1;
    transform: scale(1);
  }

  .work-block:hover::after {
    opacity: 0;
  }

  .work-block:hover .work-mark {
    opacity: 0;
    transform: translateY(8px);
  }

  .work-block:hover .work-meta {
    opacity: 0;
  }
}

.work-block[hidden],
.work-item[hidden] {
  display: none !important;
}

@media (hover: none) {
  /* Touch: show case thumbnails — no black scrim. */
  .work-block img {
    opacity: 1;
    transform: scale(1);
  }

  .work-block::after {
    opacity: 0;
  }

  .work-block .work-mark,
  .work-block .work-meta {
    opacity: 0;
  }

  .hero-stamp {
    --stamp-flip: 0deg;
  }

  /* First tap reveals Haru surf back; memorial opens only after that. */
  .hero-stamp.is-flipped {
    --stamp-flip: 180deg;
  }
}

/* —— Compare editorial —— */
.compare {
  padding: var(--space-7) var(--page-pad);
  max-width: 920px;
  margin: 0 auto;
}

.compare h2 {
  font-size: var(--type-xl);
  letter-spacing: var(--tracking-section);
  text-transform: uppercase;
  margin: 0.35rem 0 0.75rem;
  line-height: 1.05;
}

.compare-lead {
  color: var(--color-muted);
  max-width: 34rem;
  margin: 0 0 2.5rem;
}

.compare-rows {
  display: grid;
  gap: 0;
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.9fr) 1.6fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-top: 1px solid var(--color-line);
  font-size: 0.98rem;
}

.compare-row:last-child {
  border-bottom: 1px solid var(--color-line);
}

.compare-row .label {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.compare-row .row-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1.25rem;
  text-align: right;
}

.compare-row .row-detail em {
  font-style: normal;
  color: var(--color-faint);
}

.compare-row .row-detail strong {
  font-weight: 600;
}

.compare-row .them {
  color: var(--color-faint);
}

.compare-row .us {
  font-weight: 500;
}

.compare-head {
  font-size: var(--type-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  border-top: 0;
  padding-top: 0;
  padding-bottom: 0.55rem;
}

.compare-head .row-detail em,
.compare-head .row-detail strong {
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.compare-head .row-detail strong {
  color: var(--color-ink, #0a0a0a);
}

/* —— Testimonials —— */
.voices {
  padding: var(--space-7) var(--page-pad) var(--space-6);
}

.voices-compact {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.voices-quote blockquote {
  margin: 0.85rem 0 0;
}

.voices-quote p:not(.eyebrow) {
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
  font-weight: 500;
}

.voices-quote cite {
  font-style: normal;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.stat-strip {
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.stat-strip strong {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.04em;
}

.stat-strip span {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.voices-head {
  max-width: 1280px;
  margin: 0 auto 2.5rem;
}

.voices-head h2 {
  font-size: var(--type-xl);
  letter-spacing: var(--tracking-section);
  text-transform: uppercase;
  margin: 0.35rem 0 0;
  max-width: 14ch;
  line-height: 1.05;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.stat-row strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.stat-row span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.quote-stack {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.quote-block {
  margin: 0;
}

.quote-block p {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  font-weight: 500;
}

.quote-block cite {
  font-style: normal;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* —— Closing black band —— */
.close-band {
  margin-top: var(--space-6);
  background: var(--color-surface);
  color: var(--color-surface-ink);
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--page-pad) clamp(2.5rem, 5vw, 3.5rem);
}

.close-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.close-inner h2 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: var(--tracking-section);
  text-transform: uppercase;
  margin: 0 0 1rem;
  max-width: 12ch;
}

.close-inner > p {
  color: rgba(244, 242, 236, 0.65);
  max-width: 34rem;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}

.close-inner .btn-primary {
  background: #fff;
  color: #0a0a0a;
}

/* —— Site footer (light default / dark for home) —— */
.site-footer {
  padding: 2.25rem var(--page-pad) 1.75rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink);
  background: var(--color-bg);
}

body[data-page]:not([data-page^="preview-"]) .site-footer:not(.site-footer--dark) {
  background-color: var(--color-bg);
  background-image: var(--paper-layers);
  background-repeat: var(--paper-repeat);
  background-size: var(--paper-size);
}

.site-footer--dark {
  margin-top: 0;
  border-top: 0;
  background: var(--color-surface);
  color: var(--color-surface-ink);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer--dark .footer-inner {
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 242, 236, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.footer-brand-name {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.footer-tag {
  margin: 0 0 0.85rem;
  max-width: 22ch;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.site-footer--dark .footer-tag {
  color: rgba(244, 242, 236, 0.72);
}

.footer-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-email:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.footer-nap {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.footer-contact-line {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-decoration: none;
}

.site-footer--dark .footer-contact-line {
  color: rgba(244, 242, 236, 0.72);
}

.footer-contact-line.footer-phone,
.footer-contact-line.footer-social {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}

.footer-contact-line:hover {
  text-decoration: underline;
}

.footer-legal {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.site-footer--dark .footer-legal {
  color: rgba(244, 242, 236, 0.55);
}

.footer-legal a {
  color: inherit;
}

.work-disclaimer {
  /* Same 1280 column as .work-head / .work-blocks — was flush to page-pad and looked left-shifted */
  max-width: 1280px;
  margin: 0 auto 2rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.trust-note {
  margin: 1.25rem 0 0;
  max-width: 52ch;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

.contact-nap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
  font-style: normal;
  max-width: 36rem;
}

.contact-nap-list {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.contact-nap-list > div {
  display: grid;
  gap: 0.15rem;
}

.contact-nap dt {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}

.contact-nap dd {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-nap a {
  color: inherit;
}

.contact-nap a:hover {
  text-decoration: underline;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: var(--type-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted);
}

.site-footer--dark .footer-heading {
  color: rgba(244, 242, 236, 0.62);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin: 0;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

.footer-list a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.footer-list--plain li {
  min-height: 1.7em;
  margin: 0 0 0.45rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: keep-all;
}

.site-footer--dark .footer-list--plain li {
  color: rgba(244, 242, 236, 0.78);
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.35rem;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.footer-cta-link:hover {
  text-decoration: underline;
}

.footer-cta-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.footer-copy {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.85rem;
}

.site-footer--dark .footer-copy {
  border-top-color: rgba(244, 242, 236, 0.12);
  color: rgba(244, 242, 236, 0.55);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-tag {
    max-width: 36ch;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 1.75rem var(--page-pad) 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-heading {
    margin-bottom: 0.35rem;
  }

  .footer-list--plain li {
    margin-bottom: 0.25rem;
  }

  .footer-copy {
    margin-top: 1.35rem;
    padding-top: 1rem;
  }
}

/* —— Shared page shell (inner pages) —— */
.section {
  padding: var(--space-6) var(--page-pad);
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-5);
}

.section-head h1,
.section-head h2 {
  font-size: var(--type-xl);
  letter-spacing: var(--tracking-section);
  text-transform: uppercase;
  margin: 0.35rem 0;
  line-height: 1.05;
}

.card-grid,
.pricing-grid,
.portfolio-grid,
.testimonial-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.pricing-card,
.t-face {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-line);
  border-radius: 0;
  padding: 1.25rem 0;
}

.card-grid .project-card,
.portfolio-grid .project-card,
.pricing-grid .project-card {
  display: grid;
  gap: 0.75rem;
  text-decoration: none;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-line);
  border-radius: 0;
  padding: 1.25rem 0;
}

.card-grid .project-card img,
.portfolio-grid .project-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius-md);
  position: static;
  opacity: 1;
  transform: none;
}

.compare-table {
  display: grid;
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.compare-table > div {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1rem;
  background: transparent;
  padding: 1rem 0;
  border-top: 1px solid var(--color-line);
}

.cta-card {
  background: var(--color-surface);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 5vw, 3.5rem);
}

.cta-card .btn-primary {
  background: #fff;
  color: #111;
}

/* Pricing picker: one row of 4, hover-switch, rounded cards, no white fills */
.pricing-board {
  --pricing-pad-x: 1.1rem;
  --pricing-pad-y: 1.25rem;
  --pricing-pad: var(--pricing-pad-y) var(--pricing-pad-x);
  --pricing-radius: 1.15rem;
  --pricing-cta-h: 2.85rem;
  --pricing-foot-h: calc(var(--pricing-cta-h) + 1.1rem);
  position: relative;
  overflow-anchor: none;
}

.pricing-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
  background: transparent;
}

.pricing-board .pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  padding: var(--pricing-pad);
  border: 1px solid var(--color-line);
  border-radius: var(--pricing-radius);
  background: transparent;
  cursor: pointer;
  outline: none;
  overflow-anchor: none;
  transition:
    background var(--motion-ui) var(--ease-out),
    border-color var(--motion-ui) var(--ease-out),
    box-shadow var(--motion-ui) var(--ease-out);
}

.pricing-board .pricing-card:hover {
  background: rgba(10, 10, 10, 0.035);
  border-color: rgba(10, 10, 10, 0.28);
}

.pricing-board .pricing-card:focus-visible {
  border-color: var(--color-ink);
  box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.14);
  z-index: 2;
}

.pricing-board .pricing-card.is-selected {
  background: rgba(10, 10, 10, 0.055);
  border-color: var(--color-ink);
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.07);
  z-index: 1;
}

.pricing-board .pricing-card.is-selected:hover {
  background: rgba(10, 10, 10, 0.065);
}

.pricing-card-top {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 8.75rem;
}

.pricing-board .pricing-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1.55vw, 1.5rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.pricing-board .pricing-card .price {
  font-size: clamp(1.7rem, 2.35vw, 2.15rem);
  font-weight: 700;
  margin: 0.55rem 0 0.5rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.pricing-board .pricing-card .price span {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 0.12rem;
  color: var(--color-muted);
}

.pricing-desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.pricing-board .pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0.95rem 0 0;
  color: var(--color-muted);
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.4;
}

.pricing-board .pricing-card li {
  position: relative;
  padding-left: 0.9rem;
}

.pricing-board .pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.35);
}

.pricing-board .pricing-card li + li {
  margin-top: 0.32rem;
}

.pricing-card-foot {
  margin-top: auto;
  /* Spacer only — shared CTA is absolutely positioned so swaps never reflow. */
  height: var(--pricing-foot-h);
  min-height: var(--pricing-foot-h);
  flex-shrink: 0;
  pointer-events: none;
}

.pricing-cta {
  position: absolute;
  left: var(--pricing-pad-x);
  right: var(--pricing-pad-x);
  bottom: var(--pricing-pad-y);
  width: auto;
  min-height: var(--pricing-cta-h);
  justify-content: center;
  border-radius: calc(var(--pricing-radius) - 0.2rem);
  pointer-events: auto;
  z-index: 2;
}

@media (max-width: 900px) {
  .pricing-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-board .pricing-card {
    transition: none;
  }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  background: transparent;
}

.faq-groups {
  display: grid;
  gap: 2.5rem;
  max-width: 46rem;
}

.faq-group-title {
  margin: 0 0 0.35rem;
  font-size: var(--type-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}

.accordion details {
  border: 0;
  border-top: 1px solid var(--color-line);
  border-radius: 0;
  background: transparent;
  padding: 1.1rem 0;
  margin: 0;
}

.accordion details:last-child {
  border-bottom: 1px solid var(--color-line);
}

.accordion summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion details p {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 42rem;
}

.prose {
  max-width: 42rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.mobile-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: none;
  text-align: center;
  background: var(--color-surface);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1rem;
  min-height: 48px;
}

@media (max-width: 560px) {
  .mobile-cta.is-visible {
    display: block;
  }

  body.modal-open .mobile-cta {
    display: none;
  }

  /* footer sits outside main; keep copyright clear of fixed CTA */
  .site-footer {
    padding-bottom: 5.5rem;
  }
}

/* —— Modal / form —— */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--motion-ui) var(--ease-out),
    visibility var(--motion-ui) var(--ease-out);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88svh, 88dvh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    transform var(--motion-ui) var(--ease-out),
    opacity var(--motion-ui) var(--ease-out);
}

body[data-page]:not([data-page^="preview-"]) .modal {
  background-color: var(--color-bg);
  background-image: var(--paper-layers);
  background-repeat: var(--paper-repeat);
  background-size: var(--paper-size);
}

@media print {
  body[data-page]:not([data-page^="preview-"]) .site-footer:not(.site-footer--dark),
  body[data-page]:not([data-page^="preview-"]) .modal {
    background-image: none;
  }
}

.modal-overlay.is-open .modal {
  opacity: 1;
  transform: none;
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: -0.35rem 0 0.35rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 244, 239, 0.92);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

/*
 * Contact modal on Android (MIUI/Chrome): must come AFTER base modal rules
 * so flex-start / vv height / single-scroll sheet win the cascade.
 * Also cover short landscape viewports where centered dialog clips.
 */
@media (max-width: 560px), (max-height: 500px) {
  .modal-overlay {
    top: var(--yino-vv-offset-top, 0px);
    height: var(--yino-vvh, 100dvh);
    max-height: var(--yino-vvh, 100dvh);
    align-items: flex-start;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem
      max(0.75rem, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    overscroll-behavior: none;
    box-sizing: border-box;
  }

  .modal {
    width: min(560px, 100%);
    max-width: 100%;
    max-height: calc(
      var(--yino-vvh, 100dvh) - max(0.75rem, env(safe-area-inset-top, 0px)) -
        max(0.75rem, env(safe-area-inset-bottom, 0px))
    );
    margin: 0 auto;
    padding: 0.85rem 1rem 1.15rem;
    border-radius: 16px;
    box-sizing: border-box;
    overflow: auto;
  }

  .modal-title {
    font-size: 1.2rem;
    padding-right: 2.5rem;
    margin-top: -0.15rem;
  }

  .modal-desc {
    font-size: 0.92rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  body.modal-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  body.modal-open .modal-overlay {
    touch-action: none;
  }

  body.modal-open .modal {
    touch-action: pan-y;
  }
}

@media (max-width: 560px) {
  .modal {
    width: 100%;
  }
}

/* —— Haru memorial easter egg —— */
.haru-overlay {
  background: rgba(8, 10, 14, 0.62);
  z-index: calc(var(--z-modal) + 1);
}

.haru-modal {
  width: min(860px, 100%);
  max-height: min(90svh, 760px);
  padding: 1.15rem;
  background: #f7f4ef;
}

.haru-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.15rem 1.35rem;
  align-items: start;
}

.haru-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ddd6cc;
  aspect-ratio: 3 / 4;
}

.haru-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.haru-copy {
  padding: 0.35rem 0.2rem 0.15rem;
}

.haru-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.48);
}

.haru-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.haru-years {
  margin: 0.45rem 0 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: rgba(10, 10, 10, 0.55);
}

.haru-p {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.84);
}

.haru-p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .haru-layout {
    grid-template-columns: 1fr;
  }

  .haru-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .haru-copy {
    padding: 0 0.15rem 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .haru-overlay,
  .haru-modal {
    transition: none;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.form-label em {
  color: #b00020;
  font-style: normal;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: #fff;
  font: inherit;
  font-size: 16px; /* Android/iOS: avoid focus-zoom when <16px */
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-error {
  color: #b00020;
  min-height: 1.2em;
}

/* —— Responsive —— */
@media (min-width: 561px) and (max-width: 1279px) {
  /* Keep EN hero ornaments inside tablet/small-desktop viewports. */
  html:not([lang|="zh"]) .deco-star {
    left: 0.12em;
    width: 0.68em;
    height: 0.68em;
  }

  html:not([lang|="zh"]) .deco-bolt {
    right: 0.14em;
    width: 0.52em;
    height: 0.52em;
  }
}

@media (max-width: 900px) {
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-since,
  .hero-secondary {
    text-align: left;
  }

  .intro-grid,
  .voices-compact {
    grid-template-columns: 1fr;
  }

  .intro-media-stage {
    perspective: 900px;
  }

  .intro-media {
    max-width: 340px;
    --intro-ry: -22deg;
    --intro-rx: 5deg;
    transform:
      rotateY(calc(var(--intro-ry) + var(--intro-ptr-y)))
      rotateX(calc(var(--intro-rx) + var(--intro-ptr-x)))
      translateZ(16px);
  }

  .work-blocks {
    grid-template-columns: 1fr 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .compare-row,
  .compare-table > div,
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Mobile compare: Traditional left / YINO right with a clear middle gutter */
  .compare-row:not(.compare-head) .row-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    width: 100%;
    justify-content: stretch;
    text-align: left;
  }

  .compare-row:not(.compare-head) .row-detail em {
    text-align: left;
    min-width: 0;
  }

  .compare-row:not(.compare-head) .row-detail strong {
    text-align: right;
    min-width: 0;
  }

  .compare-head .label {
    display: none;
  }

  .compare-head .row-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    width: 100%;
    justify-content: stretch;
  }

  .compare-head .row-detail em {
    text-align: left;
  }

  .compare-head .row-detail strong {
    text-align: right;
  }

  /*
   * Mobile trust group: keep compare table end-line, drop the second
   * "empty row" line (stat-strip top), tighten section padding to ~44px,
   * and join stats → note with one internal divider only.
   */
  .compare {
    padding-bottom: var(--space-4);
  }

  .voices {
    padding-top: 1.25rem;
    padding-bottom: 3.25rem;
  }

  .compare + .voices .stat-strip {
    border-top: 0;
    border-bottom: 1px solid var(--color-line);
    padding-top: 0;
    padding-bottom: 1.15rem;
    gap: 1.25rem;
  }

  .compare + .voices .stat-strip strong {
    line-height: 1.15;
  }

  .compare + .voices .stat-strip span {
    line-height: 1.45;
    font-size: 0.9rem;
  }

  .trust-note {
    text-align: left;
    max-width: 22em;
    margin: 0;
    padding-top: 1.05rem;
    border-top: 0;
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .voices-compact {
    gap: 0;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
    padding: 1.5rem var(--page-pad) 2rem;
  }

  .hero-title {
    font-size: clamp(2.45rem, 11.2vw, 3.45rem);
    max-width: none;
    width: 100%;
    padding-inline: 1.45em;
    box-sizing: border-box;
  }

  /*
   * ZH mobile: content centers on the viewport; decorations orbit outside.
   * Do not reserve padding for stars — that widens the title box and reads as right-bias.
   */
  html[lang|="zh"] .hero-title {
    /* Longer ZH lines (“网站不只好看…”) need a tighter clamp to avoid clipping */
    font-size: clamp(2.35rem, 10.8vw, 3.6rem);
    width: max-content;
    max-width: min(90vw, 11.2em);
    margin-inline: auto;
    letter-spacing: 0;
    line-height: 1.16;
    padding-inline: 0;
    text-align: center;
    font-style: normal;
    font-synthesis: none;
    overflow: visible;
  }

  html[lang|="zh"] .hero-title .line,
  html[lang|="zh"] .hero-title .line:nth-child(2),
  html[lang|="zh"] .hero-title .line:nth-child(3),
  html[lang|="zh"] .hero-title .line:nth-child(4) {
    font-size: 1em;
    font-style: normal;
    font-synthesis: none;
    letter-spacing: 0.04em;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    opacity: 1;
    transform: none !important;
    align-self: center;
  }

  .hero-stamp {
    width: min(148px, 42vw);
  }

  /* Sit in side gutters; translate outward so SVG art clears glyphs */
  .deco-star {
    left: 0.12em;
    top: -0.02em;
    width: 0.68em;
    height: 0.68em;
    transform: translateX(-18%);
  }

  .deco-bolt {
    right: 0.14em;
    bottom: 0.04em;
    width: 0.52em;
    height: 0.52em;
    transform: translateX(22%);
  }

  /* Absolute decorations outside the title content box — no layout width impact */
  html[lang|="zh"] .deco-star {
    left: auto;
    right: 100%;
    top: 0.06em;
    width: 0.62em;
    height: 0.62em;
    margin-right: 0.18em;
    transform: none;
  }

  html[lang|="zh"] .deco-bolt {
    left: 100%;
    right: auto;
    bottom: 0.04em;
    width: 0.48em;
    height: 0.48em;
    margin-left: 0.14em;
    transform: none;
  }

  html[lang|="zh"] .hero-stamp-stage {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  html[lang|="zh"] .hero-stamp {
    margin-inline: auto;
  }

  html[lang|="zh"] .manifesto-line {
    display: block;
  }

  html[lang|="zh"] .manifesto-xl {
    /* Lines own the breaks — avoid opportunistic mid-phrase wraps */
    word-break: normal;
    overflow-wrap: normal;
    line-break: auto;
  }

  .work-blocks {
    grid-template-columns: 1fr;
  }

  /*
   * Home mobile vertical rhythm: desktop space-7/8 stacks to 224–272px gaps.
   * Converge only these home sections — do not touch global --space-* tokens.
   * Target: portfolio→compare ≤128px; compare→trust ~40–48px (set at ≤900).
   */
  .work {
    padding-bottom: var(--space-6);
  }

  .compare {
    padding-top: var(--space-6);
    /* padding-bottom kept from ≤900 trust-tighten rule */
  }

  .nav-panel .lang-switch {
    margin-bottom: 0.35rem;
  }

  main {
    /* Clear Ask YINO capsule (~52px) + tip/gap above bottom chrome */
    padding-bottom: 6.5rem;
  }

  /* Room for Ask YINO + optional mobile CTA without covering last content */
  body:has(.mobile-cta.is-visible) main {
    padding-bottom: 8.5rem;
  }

  body:has(.mobile-cta.is-visible) .site-footer {
    padding-bottom: 8rem;
  }

  /* Keep section tails readable above the floating launcher */
  .section:last-of-type,
  .close-band {
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  }
}
