/* EMBER & BRIAR — Premium dark gallery */

:root {
  /* 西瓜全站規範 — 極簡畫廊／炭＋奶油 */
  --bg: #1A1714;
  --bg-elevated: #12100E;
  --bg-soft: #221E1A;
  --ink: #F2EBE0;
  --ink-muted: #C9BBA8;
  --ink-faint: #9A8C7A;
  --accent: #A68B5B;
  --line: #3A342C;
  --line-strong: #4A433A;
  --veil: rgba(18, 16, 14, 0.45);
  --serif: "Cormorant Garamond", "Noto Serif TC", "Times New Roman", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --max: 75rem; /* ~1200px desktop shell */
  --content: 42rem; /* readable text / forms */
  --header-h: 4rem;
  --section-y: clamp(3rem, 7vw, 5rem);
  --gap: clamp(1.25rem, 2.5vw, 1.75rem);
  --type-display: clamp(1.5rem, 2.1vw, 1.75rem); /* 24–28px */
  --type-body: 0.9375rem; /* 15px */
  --type-meta: 0.75rem; /* 12px */
  --type-nav: 0.8125rem; /* 13px */
  /* aliases kept for older rules */
  --type-micro: var(--type-meta);
  --type-caption: var(--type-meta);
  --type-title: var(--type-display);
  --type-title-sm: var(--type-body);
  --track-micro: 0.2em;
  --track-title: 0.1em;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grid-gap: 10px;
}

[hidden] {
  display: none !important;
}


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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .work-card a:hover .work-veil,
  .work-card a:focus-visible .work-veil { opacity: 0 !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  left: var(--pad);
  top: 0.5rem;
}

/* ——— Shared shell ——— */
.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ——— Sticky dark header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(18, 16, 14, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(18, 16, 14, 0.96);
}

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}

.logo-en {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-family: var(--serif);
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
  row-gap: 0.5rem;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  color: var(--ink) !important;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--accent);
}

/* ——— Page title band (shared) ——— */
.page-head {
  padding-block: clamp(2rem, 4.5vw, 3.25rem) 1.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.35rem, 3vw, 2.15rem);
}

.page-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: var(--type-micro);
  font-weight: 500;
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--ink-faint);
}

.page-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.2vw, 2rem);
  font-weight: 400;
  letter-spacing: var(--track-title);
  line-height: 1.35;
  color: var(--ink);
  max-width: 16em;
  text-wrap: pretty;
}

.page-head .lede {
  margin: 0.85rem 0 0;
  max-width: var(--content);
  font-size: var(--type-body);
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
}

.page-panel {
  max-width: var(--content);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.page-rule {
  width: 2rem;
  height: 1px;
  margin: 0 0 1.5rem;
  background: var(--accent);
  opacity: 0.75;
  border: 0;
}

/* ——— Full-bleed hero (home) ——— */
.hero-bleed {
  position: relative;
  width: 100%;
  margin: 0;
  background: var(--bg-elevated);
  overflow: hidden;
}

.hero-bleed__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(14rem, 38vh, 24rem);
  max-height: 52vh;
  background: var(--bg-elevated);
  overflow: hidden;
}

.hero-bleed__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bleed__media img {
  width: 100%;
  height: 100%;
  /* full-bleed L/R; crop top/bottom OK — keep 斗口 in frame */
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-bleed__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(26, 22, 20, 0.92) 0%, rgba(26, 22, 20, 0.35) 42%, rgba(26, 22, 20, 0.15) 70%, rgba(26, 22, 20, 0.35) 100%);
}

.hero-bleed__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.1rem, 3vw, 2rem) var(--pad) clamp(1rem, 2.5vw, 1.75rem);
  z-index: 1;
}

.hero-bleed__inner {
  max-width: var(--max);
  margin-inline: auto;
}

.hero-brand {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-brand-sub {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--ink);
  max-width: 16em;
  text-wrap: pretty;
}

.hero-sub {
  margin: 0.55rem 0 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

/* Legacy hero (unused on home, kept for safety) */
.hero {
  padding-block: clamp(2rem, 5vw, 3.5rem) var(--section-y);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.hero-copy { text-align: left; }

.hero-media {
  margin: 0;
  background: var(--bg-elevated);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ——— Section chrome ——— */
.section {
  padding-block: var(--section-y);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.section-link {
  flex-shrink: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ——— Works grid — IG-like squares, 10px gap ——— */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: stretch;
}

@media (max-width: 559px) {
  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
}

.work-card a {
  display: block;
  color: inherit;
  position: relative;
  cursor: zoom-in;
}

.work-frame {
  position: relative;
  background: var(--bg-elevated);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  line-height: 0;
}

.work-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Match homepage hero: cool, dim, high-contrast desat */
  filter: saturate(0.55) brightness(0.94) contrast(1.06);
  transition: transform 0.55s var(--ease), filter 0.5s ease;
  display: block;
}

.work-veil {
  position: absolute;
  inset: 0;
  /* Soft cool charcoal wash — echoes hero-bleed__veil */
  background:
    linear-gradient(
      to top,
      rgba(26, 22, 20, 0.55) 0%,
      rgba(28, 34, 42, 0.22) 48%,
      rgba(26, 22, 20, 0.28) 100%
    );
  opacity: 1;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.work-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.work-card a:hover .work-veil,
.work-card a:focus-visible .work-veil {
  opacity: 0.2;
}

.work-card a:hover .work-caption,
.work-card a:focus-visible .work-caption {
  opacity: 1;
  transform: none;
}

.work-card a:hover .work-frame img,
.work-card a:focus-visible .work-frame img {
  transform: scale(1.03);
  filter: saturate(1) brightness(1) contrast(1) hue-rotate(0deg);
}

.work-name {
  margin: 0.4rem 0 0;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-align: center;
}

/* Visually hide under-caption on works page; overlay caption used instead */
body.page-works .work-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 8, 7, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(96vw, 1100px);
  height: min(88vh, 900px);
  outline: none;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(88vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.lightbox__caption {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-align: center;
  max-width: 40rem;
}

.lightbox__close,
.lightbox__nav {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  color: var(--accent);
}

.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: 1.75rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

.lightbox__prev { left: 0.25rem; }
.lightbox__next { right: 0.25rem; }

@media (max-width: 640px) {
  .lightbox__nav { display: none; }
  .lightbox__img { max-height: 75vh; }
}

body.lightbox-open {
  overflow: hidden;
}

/* ——— Piece detail ——— */
.piece {
  padding-block: var(--section-y);
}

.piece-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 800px) {
  .piece-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

.piece-visual {
  margin: 0;
  background: var(--bg-elevated);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.piece-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.piece-meta-block {
  text-align: left;
  padding-top: 0.25rem;
}

.piece-title {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.meta-list {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  row-gap: 0.65rem;
  margin: 0 0 2rem;
  max-width: 18rem;
}

.meta-list dt {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.meta-list dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.piece-nav {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.piece-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.piece-nav a:hover,
.piece-nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ——— About ——— */
.about-block {
  padding-block: 0 clamp(3rem, 7vw, 5rem);
  max-width: var(--content);
}

.about-line {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.65;
  color: var(--ink);
}

.craft-whisper {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--ink-muted);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}

.about-links a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about-links a:hover,
.about-links a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ——— Contact / booking ——— */
.contact-block {
  padding-block: var(--section-y);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 720px) {
  .contact-block {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.contact-note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  max-width: 22rem;
  line-height: 1.7;
}

.contact-note + .contact-note {
  margin-top: 1rem;
}

.form-title {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.appoint-form {
  max-width: var(--content);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0;
}

.form-row label {
  font-size: var(--type-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-elevated);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--type-body);
  font-weight: 400;
  outline: none;
  transition: border-color 0.25s ease;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--ink-faint);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.btn-quiet {
  appearance: none;
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid rgba(232, 224, 213, 0.55);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--type-caption);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-quiet:hover,
.btn-quiet:focus-visible {
  background: transparent;
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.form-note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ——— Footer ——— */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  margin-top: auto;
  background: var(--bg);
}

.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-sub {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  font-weight: 400;
}

.footer-maker,
.footer-legal {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ——— Fade ——— */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ——— Nav toggle (mobile) ——— */
.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

body.nav-open .nav-toggle__bars {
  background: transparent;
}
body.nav-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}
body.nav-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

/* ——— Mobile layout ——— */
@media (max-width: 720px) {
  :root {
    --pad: 1rem;
    --header-h: 3.6rem; /* stacked logo mark */
    --section-y: 2.25rem;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .logo-en {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .logo-sub {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 60;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(11.25rem, 58vw);
    height: 100dvh;
    height: 100vh;
    margin: 0;
    padding: calc(var(--header-h) + 1rem) 1rem 1.5rem 1.1rem;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    background: rgba(18, 15, 14, 0.98);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform 0.28s var(--ease);
    z-index: 55;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  .site-nav > a {
    display: block;
    width: 100%;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(232, 224, 213, 0.08);
    color: var(--ink-muted);
  }

  .site-nav > a[aria-current="page"] {
    color: var(--ink);
    box-shadow: none;
    padding-bottom: 0.85rem;
  }

  .site-nav .lang-switch {
    margin: 1.5rem 0 0;
    margin-left: 0;
  }

  .lang-btn {
    font-size: 0.75rem;
    min-height: 2.5rem;
    padding: 0 0.15rem;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 6, 5, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 45;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Landing: hide menu toggle until entered (lang stays in drawer only after enter) */
  body.is-landing .nav-toggle {
    display: none;
  }

  body.is-landing .site-nav {
    /* keep lang reachable: show compact top-right lang without drawer */
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    background: transparent;
    border: 0;
    transform: none;
    overflow: visible;
  }

  body.is-landing .site-nav > a {
    display: none;
  }

  body.is-landing .site-nav .lang-switch {
    margin: 0;
  }

  /* Hero / landing — cinematic full-bleed (no letterbox void) */
  body.is-landing .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  body.is-landing .site-header.is-scrolled {
    background: transparent;
    border-bottom-color: transparent;
  }

  body.is-landing .hero-bleed,
  body.is-landing .hero-bleed__media {
    height: 100dvh;
    height: 100vh;
    min-height: 100dvh;
    max-height: none;
    aspect-ratio: auto;
  }

  body.is-landing .hero-bleed__media {
    background: var(--bg-elevated);
  }

  body.is-landing .hero-bleed__media img {
    object-fit: cover;
    object-position: center 40%;
    width: 100%;
    height: 100%;
    transform: none;
  }

  body.is-landing .hero-bleed__veil {
    background:
      linear-gradient(
        to top,
        rgba(12, 10, 9, 0.92) 0%,
        rgba(12, 10, 9, 0.55) 28%,
        rgba(12, 10, 9, 0.18) 52%,
        rgba(12, 10, 9, 0.35) 100%
      );
  }

  body.is-landing .hero-bleed__copy {
    padding: 0 var(--pad) max(2.25rem, env(safe-area-inset-bottom));
    padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 1.5rem));
  }

  body.is-landing .hero-brand {
    display: block;
  }

  body.is-landing .hero-brand-sub {
    display: block;
  }

  body.is-landing .hero-line {
    font-size: clamp(1.4rem, 6vw, 1.7rem);
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
  }

  body.is-landing .hero-sub {
    margin-top: 0.55rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(232, 224, 213, 0.72);
  }

  body.is-landing .hero-enter {
    margin-top: 1.35rem;
    min-height: auto;
    padding: 0.35rem 0;
    border: 0;
    border-bottom: 1px solid rgba(232, 224, 213, 0.55);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
  }

  body.is-landing .hero-enter:hover,
  body.is-landing .hero-enter:focus-visible {
    background: transparent;
    color: var(--ink);
    border-bottom-color: var(--accent);
  }

  /* After enter: full square frame, slight cover for punch */
  .hero-bleed__media {
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: none;
    background: var(--bg-elevated);
  }

  body:not(.is-landing) .hero-bleed__media {
    aspect-ratio: 1 / 1;
    width: 100%;
    min-height: 0;
    max-height: min(100vw, 28rem);
  }

  body:not(.is-landing) .hero-bleed__media img {
    object-fit: cover;
    object-position: center 45%;
  }

  .logo-en {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .logo-sub {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
  }

  .hero-brand {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.2rem;
  }

  .hero-brand-sub {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
  }

  .hero-line {
    font-size: clamp(1.28rem, 5.2vw, 1.55rem);
    letter-spacing: 0.05em;
    line-height: 1.45;
  }

  .hero-sub {
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    margin-top: 0.45rem;
  }

  .hero-enter {
    min-height: 2.5rem;
    margin-top: 0.95rem;
    padding: 0.6rem 1.15rem;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
  }

  .lang-btn {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }

  .page-head h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    letter-spacing: 0.05em;
  }

  .lede,
  .about-line,
  .empty-note,
  .copy-list {
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
  max-width: var(--content);
}

  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .work-caption {
    font-size: 0.55rem;
    padding: 0.55rem 0.35rem;
  }



  .appoint-form {
    max-width: none;
  }

  .appoint-form input,
  .appoint-form textarea {
    font-size: 16px; /* avoid iOS zoom */
    min-height: 2.75rem;
  }

  .appoint-form textarea {
    min-height: 8rem;
  }

  .btn-quiet {
    min-height: 2.75rem;
    width: 100%;
  }

  .site-footer {
    padding-block: 1.5rem;
  }

  .lightbox {
    padding: 0.75rem;
  }

  .lightbox__close {
    top: 0.65rem;
    right: 0.65rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (max-width: 380px) {
  .works-grid {
    gap: 3px;
  }

  .logo-en {
    letter-spacing: 0.12em;
    font-size: 0.65rem;
  }

  .logo-sub {
    font-size: 0.48rem;
    letter-spacing: 0.12em;
  }

  .hero-line {
    font-size: 1.22rem;
  }
}

.section--flush-top,
.about-block--flush,
.contact-block--flush {
  padding-top: 0;
}

/* ——— Language switch ——— */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.25rem;
}

.lang-sep {
  color: var(--ink-faint);
  font-size: 0.7rem;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--ink);
}

.lang-btn.is-active {
  color: var(--ink);
}

.empty-note {
  margin: 0;
  max-width: var(--content);
  color: var(--ink-muted);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.empty-actions a {
  font-size: var(--type-caption);
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  border-bottom: 1px solid rgba(232, 224, 213, 0.28);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.empty-actions a:hover,
.empty-actions a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.copy-list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  max-width: 28rem;
}

.copy-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.65rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.copy-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.cta-line {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: 0.875rem; /* ~14px — slight hierarchy bump */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.cta-line::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-top: 0.65rem;
  background: var(--accent);
}

/* Gallery section spacing under hero */
.page-works .section.section--flush-top {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}


/* ——— Landing gate (home one-screen) ——— */
body.is-landing {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

body.is-landing .site-header .site-nav > a {
  display: none;
}

body.is-landing .site-after-enter {
  display: none;
}

body.is-landing .hero-bleed,
body.is-landing .hero-bleed__media {
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
}

body.is-landing .hero-bleed__copy {
  padding-bottom: clamp(2rem, 6vh, 3.5rem);
}

.hero-enter {
  appearance: none;
  margin-top: 1.1rem;
  border: 1px solid rgba(232, 224, 213, 0.45);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-enter:hover,
.hero-enter:focus-visible {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

body:not(.is-landing) .hero-enter {
  display: none;
}

/* After enter, keep hero shorter on desktop */
@media (min-width: 721px) {
  body:not(.is-landing) .hero-bleed__media {
    aspect-ratio: 16 / 9;
    min-height: clamp(14rem, 38vh, 24rem);
    max-height: 52vh;
  }
}

/* iOS safe areas */
@supports (padding: max(0px)) {
  .header-inner {
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right));
  }
  @media (max-width: 720px) {
    .site-nav {
      padding-right: max(1rem, env(safe-area-inset-right));
      padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
  }
}

/* ——— Mobile landing premium (final overrides) ——— */
@media (max-width: 720px) {
  body.is-landing .site-header {
    position: absolute;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  body.is-landing .hero-bleed,
  body.is-landing .hero-bleed__media {
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    aspect-ratio: auto;
  }

  body.is-landing .hero-bleed__media img {
    object-fit: cover;
    object-position: center 45%;
    transform: none;
  }

  body.is-landing .hero-bleed__veil {
    background:
      linear-gradient(
        to top,
        rgba(12, 10, 9, 0.94) 0%,
        rgba(12, 10, 9, 0.58) 30%,
        rgba(12, 10, 9, 0.2) 55%,
        rgba(12, 10, 9, 0.4) 100%
      );
  }

  body.is-landing .hero-bleed__copy {
    padding-bottom: max(2.75rem, calc(env(safe-area-inset-bottom) + 1.75rem));
  }

  body.is-landing .hero-brand {
    display: block;
  }

  body.is-landing .hero-brand-sub {
    display: block;
  }

  body.is-landing .hero-enter {
    margin-top: 1.35rem;
    min-height: auto;
    padding: 0.4rem 0;
    border: 0;
    border-bottom: 1px solid rgba(232, 224, 213, 0.55);
    background: transparent;
    color: var(--ink);
    letter-spacing: 0.28em;
  }

  body.is-landing .hero-enter:hover,
  body.is-landing .hero-enter:focus-visible {
    background: transparent;
    color: var(--ink);
    border-color: transparent;
    border-bottom-color: var(--accent);
  }
}


/* ——— Unified inner-page rhythm ——— */
main#main {
  min-height: calc(100dvh - var(--header-h) - 6rem);
}

.section.section--flush-top {
  padding-top: 0;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.copy-list li {
  position: relative;
  margin: 0;
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: var(--ink);
}

.copy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 0.35rem;
  height: 1px;
  background: var(--accent);
}

.copy-list li:first-child {
  border-top: 1px solid var(--line);
}

/* Desktop landing: keep cinematic under header */
@media (min-width: 721px) {
  body.is-landing .hero-brand {
    opacity: 0.85;
  }

  body.is-landing .hero-enter {
    margin-top: 1.25rem;
    padding: 0.4rem 0;
    border: 0;
    border-bottom: 1px solid rgba(232, 224, 213, 0.5);
    background: transparent;
    color: var(--ink);
    letter-spacing: 0.26em;
  }

  body.is-landing .hero-enter:hover,
  body.is-landing .hero-enter:focus-visible {
    background: transparent;
    color: var(--ink);
    border-bottom-color: var(--accent);
  }
}

@media (max-width: 720px) {
  .page-head {
    padding-block: 2.25rem 1.35rem;
    margin-bottom: 1.5rem;
  }

  .page-head h1 {
    font-size: clamp(1.4rem, 6vw, 1.65rem);
  }

  .page-head .lede,
  .about-line,
  .empty-note,
  .copy-list li {
    font-size: 1rem;
  }

  .appoint-form input,
  .appoint-form textarea {
    font-size: 16px;
  }

  .btn-quiet {
    width: auto;
    min-height: auto;
  }

  body:not(.is-landing) .site-header {
    background: rgba(18, 16, 14, 0.94);
  }
}

/* ——— Landing gate (final, site-wide) ——— */
body.is-landing .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

body.is-landing {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

body.is-landing .hero-bleed {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

body.is-landing .hero-bleed__media {
  height: 100%;
  min-height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

body.is-landing .hero-bleed__media img {
  object-fit: cover;
  object-position: center 40%;
  width: 100%;
  height: 100%;
  transform: none;
  max-width: none;
}

body.is-landing .hero-bleed__copy {
  text-align: center;
  padding: 0 var(--pad) max(2.5rem, calc(env(safe-area-inset-bottom) + 1.75rem));
}

body.is-landing .hero-bleed__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: min(20rem, 82vw);
  margin-inline: auto;
}

body.is-landing .hero-brand {
  display: block; /* header hidden on gate */
  margin-bottom: 0.2rem;
  color: var(--ink);
}

body.is-landing .hero-brand-sub {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink-muted);
}

body.is-landing .hero-line {
  max-width: 14em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

body.is-landing .hero-sub {
  color: var(--ink-muted);
}

body.is-landing .hero-enter {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  min-height: auto;
  padding: 0.4rem 0;
  border: 0;
  border-bottom: 1px solid rgba(242, 235, 224, 0.55);
  background: transparent;
  color: var(--ink);
  letter-spacing: 0.26em;
}

body.is-landing .hero-enter:hover,
body.is-landing .hero-enter:focus-visible {
  background: transparent;
  color: var(--ink);
  border-bottom-color: var(--accent);
}

@media (max-width: 720px) {
  body.is-landing .hero-line {
    font-size: clamp(1.375rem, 6.2vw, 1.75rem);
  }

  body.is-landing .hero-enter {
    margin-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }

  /* After enter on mobile: square hero, not desktop 21/9 */
  body:not(.is-landing) .hero-bleed__media {
    aspect-ratio: 1 / 1;
    width: 100%;
    min-height: 0;
    max-height: min(100vw, 28rem);
  }

  body:not(.is-landing) .hero-bleed__media img {
    object-fit: cover;
    object-position: center 40%;
  }

  body:not(.is-landing) .site-header {
    position: sticky;
    height: var(--header-h);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 50;
    overflow: visible;
  }
}

/* ——— Overflow guard (mobile white sliver) ——— */
html {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  max-width: 100%;
}
body:not(.is-landing) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.header-inner,
.shell,
.footer-inner,
.hero-bleed,
.works-grid,
.page-panel,
.appoint-form {
  max-width: 100%;
}

img, picture, video, canvas {
  max-width: 100%;
}

.hero-bleed__media img {
  max-width: none; /* cover needs freedom inside overflow:hidden parent */
}

.site-nav {
  max-width: 100%;
}

#works { scroll-margin-top: 0; }

/* ——— HOME FIX: full pipe on mobile gate + readable copy ——— */
@media (max-width: 720px) {
  body.is-landing .hero-bleed,
  body.is-landing .hero-bleed__media {
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    background: #12100E;
  }

  /* Blurred fill so contain does not look empty */
  body.is-landing .hero-bleed__media::before {
    content: "";
    position: absolute;
    inset: -8%;
    background: url("public/ig/hero-original.jpg") center / cover no-repeat;
    filter: blur(28px) saturate(0.7) brightness(0.45);
    transform: scale(1.12);
    z-index: 0;
  }

  body.is-landing .hero-bleed__media picture,
  body.is-landing .hero-bleed__media > img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
  }

  body.is-landing .hero-bleed__media img {
    object-fit: contain !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    max-width: none;
  }

  body.is-landing .hero-bleed__veil {
    z-index: 2;
    background:
      linear-gradient(
        to top,
        rgba(18, 16, 14, 0.92) 0%,
        rgba(18, 16, 14, 0.45) 32%,
        rgba(18, 16, 14, 0.15) 58%,
        rgba(18, 16, 14, 0.35) 100%
      ) !important;
  }

  body.is-landing .hero-bleed__copy {
    z-index: 3;
    text-align: center;
    padding: 0 1.25rem max(2.75rem, calc(env(safe-area-inset-bottom) + 1.75rem)) !important;
  }

  body.is-landing .hero-brand {
    display: block !important;
  }

  body.is-landing .hero-brand-sub {
    display: block !important;
  }

  body.is-landing .hero-line {
    font-size: clamp(1.4rem, 6vw, 1.7rem) !important;
    color: var(--ink);
  }

  body.is-landing .hero-sub,
  body.is-landing .hero-enter {
    color: var(--ink-muted);
  }

  body.is-landing .hero-enter {
    display: inline-block !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(242, 235, 224, 0.55) !important;
    background: transparent !important;
    color: var(--ink) !important;
  }

  /* After enter: still show full square pipe */
  body:not(.is-landing).page-works .hero-bleed__media {
    aspect-ratio: 1 / 1 !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  body:not(.is-landing).page-works .hero-bleed__media img {
    object-fit: contain !important;
    object-position: center center !important;
  }

  body:not(.is-landing).page-works .hero-bleed__media {
    background: #12100E;
  }
}


/* lightbox / hero sharpness */
.lightbox img,
.hero-bleed__media img {
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.lightbox img {
  filter: none !important;
}

/* ——— HOME LAYOUT ALIGN (hero + grid + type) ——— */
@media (max-width: 720px) {
  /* Same horizontal rhythm: header / hero / works */
  .page-works .header-inner,
  .page-works .shell {
    padding-inline: 1rem;
  }

  /* Works flush like IG under hero */
  .page-works #works.shell {
    padding-inline: 0;
    max-width: none;
  }

  .page-works .works-grid {
    gap: 2px;
  }

  /* Landing: photo is 3:4 — fill width, center in viewport, no weird side crop */
  body.is-landing .hero-bleed__media {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.is-landing .hero-bleed__media::before {
    /* softer, less distracting fill */
    filter: blur(36px) saturate(0.55) brightness(0.35);
    opacity: 0.85;
  }

  body.is-landing .hero-bleed__media picture {
    width: 100%;
    height: auto;
    max-height: 72dvh;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
  }

  body.is-landing .hero-bleed__media img {
    object-fit: cover !important;
    object-position: center 42% !important;
    width: 100% !important;
    height: 100% !important;
  }

  body.is-landing .hero-bleed__copy {
    text-align: center;
    padding: 0 1.5rem max(2.25rem, calc(env(safe-area-inset-bottom) + 1.25rem)) !important;
  }

  body.is-landing .hero-bleed__inner {
    align-items: center;
    gap: 0;
    max-width: min(22rem, 86vw);
  }

  body.is-landing .hero-brand {
    margin: 0 0 0.4rem;
    letter-spacing: 0.22em;
  }

  body.is-landing .hero-line {
    margin: 0;
    font-size: clamp(1.35rem, 5.5vw, 1.6rem) !important;
    line-height: 1.4;
  }

  body.is-landing .hero-sub {
    margin: 0.4rem 0 0;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
  }

  body.is-landing .hero-enter {
    margin-top: 0.85rem !important;
    margin-bottom: 0 !important;
  }

  /* After enter: full-bleed 3:4 hero, edge-aligned with works */
  body:not(.is-landing).page-works .hero-bleed {
    width: 100%;
  }

  body:not(.is-landing).page-works .hero-bleed__media {
    aspect-ratio: 3 / 4 !important;
    width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    background: #12100E;
  }

  body:not(.is-landing).page-works .hero-bleed__media img {
    object-fit: cover !important;
    object-position: center 40% !important;
  }

  body:not(.is-landing).page-works .hero-bleed__copy {
    text-align: left;
    padding: 1.25rem 1rem 1.35rem !important;
  }

  body:not(.is-landing).page-works .hero-bleed__inner {
    align-items: flex-start;
    text-align: left;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
  }

  body:not(.is-landing).page-works .hero-brand,
  body:not(.is-landing).page-works .hero-brand-sub {
    display: none; /* logo already in header */
  }

  body:not(.is-landing).page-works .section.section--flush-top {
    padding-top: 0.5rem;
  }
}

@media (min-width: 721px) {
  /* Desktop: keep full-bleed hero, left copy, works max aligned */
  body:not(.is-landing) .hero-bleed__media {
    aspect-ratio: 16 / 9;
    max-height: 56vh;
  }

  body:not(.is-landing) .hero-bleed__media img {
    object-fit: cover;
    object-position: center 38%;
  }

  body.is-landing .hero-bleed__media img {
    object-fit: cover;
    object-position: center 40%;
  }

  body.is-landing .hero-bleed__inner {
    align-items: flex-start;
    text-align: left;
    max-width: var(--max);
  }

  body.is-landing .hero-bleed__copy {
    text-align: left;
  }
}

/* ——— DESKTOP HERO AUTO-FIX ——— */
@media (min-width: 721px) {
  /* After enter: 3:2 band, height from width only — never max-height crop fight */
  .hero-bleed__media {
    aspect-ratio: 3 / 2;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero-bleed__media img {
    object-fit: cover;
    object-position: center center;
  }

  body:not(.is-landing) .hero-bleed__media {
    aspect-ratio: 3 / 2 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body:not(.is-landing) .hero-bleed__media img {
    object-fit: cover !important;
    object-position: center center !important;
  }

  body:not(.is-landing) .hero-bleed__copy {
    text-align: left;
    padding: clamp(1.25rem, 3vw, 2rem) var(--pad) clamp(1.25rem, 2.5vw, 1.75rem);
  }

  body:not(.is-landing) .hero-bleed__inner {
    align-items: flex-start;
    text-align: left;
    max-width: var(--max);
    margin-inline: auto;
    width: 100%;
  }

  body:not(.is-landing) .hero-brand {
    display: block;
  }

  body:not(.is-landing) .hero-brand-sub {
    display: block;
  }

  /* Landing: full viewport, landscape crop fills without letterbox */
  body.is-landing .hero-bleed,
  body.is-landing .hero-bleed__media {
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    aspect-ratio: auto;
  }

  body.is-landing .hero-bleed__media img {
    object-fit: cover !important;
    object-position: center center !important;
  }

  body.is-landing .hero-bleed__media::before {
    display: none;
  }

  body.is-landing .hero-bleed__copy {
    text-align: left;
    padding: 0 var(--pad) clamp(2.5rem, 6vh, 3.5rem);
  }

  body.is-landing .hero-bleed__inner {
    align-items: flex-start;
    text-align: left;
    max-width: var(--max);
    margin-inline: auto;
    width: 100%;
  }

  .page-works #works.shell {
    padding-inline: var(--pad);
    max-width: var(--max);
  }

  .page-works .works-grid {
    gap: var(--grid-gap);
  }
}

/* === multi-image lightbox === */
.lightbox__pager {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.lightbox__dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.7rem;
}
.lightbox__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(242, 235, 224, 0.28);
  cursor: pointer;
}
.lightbox__dot.is-active {
  background: var(--accent);
}
.work-multi {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  z-index: 2;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(18, 16, 14, 0.72);
  color: var(--ink);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
@media (max-width: 720px) {
  .lightbox.has-gallery .lightbox__nav { display: flex; }
  .lightbox__img { max-height: 70vh; }
}


/* Contact / commission channels */
.contact-channel {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.contact-channel a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.contact-channel a:hover { color: var(--accent); }
.contact-or {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}


.contact-line-qr {
  margin: 0 0 1.25rem;
  width: 10rem;
}
.contact-line-qr img {
  display: block;
  width: 10rem;
  height: 10rem;
  background: #fff;
  padding: 0.35rem;
  border: 1px solid var(--line);
}
.contact-channel--line {
  margin-bottom: 0.5rem;
}


/* === Sale listing (Smokingpipes-like cards + specs) === */
.sale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1.25rem 1rem;
  margin: 0.5rem 0 2rem;
}

@media (min-width: 720px) {
  .sale-grid {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1.75rem 1.35rem;
  }
}

.sale-card {
  margin: 0;
}

.sale-card__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.sale-card__frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #120f0e;
  border: 1px solid var(--line);
}

.sale-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sale-card__btn:hover .sale-card__frame img,
.sale-card__btn:focus-visible .sale-card__frame img {
  transform: scale(1.03);
}

.sale-card__title {
  margin: 0.7rem 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.35;
}

.sale-price {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.sale-price--empty {
  opacity: 0;
}

.sale-sold {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2ebe0;
  background: rgba(40, 28, 24, 0.82);
  border: 1px solid rgba(232, 180, 160, 0.35);
}

.sale-card.is-sold .sale-card__frame img {
  filter: grayscale(0.35) brightness(0.85);
}


.sale-specs {
  margin: 0;
  display: grid;
  gap: 0.45rem 0;
}

.sale-specs__row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 38%) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(232, 224, 213, 0.08);
}

.sale-specs dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.sale-specs dd {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* Sale detail overlay */
.sale-detail {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sale-detail[hidden] {
  display: none !important;
}

.sale-detail__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(8, 6, 5, 0.82);
  cursor: pointer;
}

.sale-detail__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: min(52rem, 100%);
  max-height: min(92vh, 56rem);
  overflow: auto;
  padding: 1.25rem 1.1rem 1.5rem;
  background: var(--bg-elevated, #1a1613);
  border: 1px solid var(--line);
  outline: none;
}

@media (min-width: 780px) {
  .sale-detail__panel {
    grid-template-columns: 1.15fr 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }
}

.sale-detail__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.sale-detail__close:hover,
.sale-detail__close:focus-visible {
  color: var(--ink);
}

.sale-detail__media {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sale-detail__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #120f0e;
  border: 1px solid var(--line);
}

.sale-detail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sale-detail__thumb {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.sale-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sale-detail__thumb.is-active {
  border-color: var(--accent);
}

.sale-detail__badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2ebe0;
  background: rgba(40, 28, 24, 0.82);
  border: 1px solid rgba(232, 180, 160, 0.35);
}

.sale-detail__title {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  padding-right: 1.5rem;
}

.sale-detail__price {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.sale-detail__specs-heading {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.sale-detail__note {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
  white-space: pre-wrap;
}

body.sale-detail-open {
  overflow: hidden;
}


/* === Sale purchase page === */
.sale-card__btn {
  text-decoration: none;
}

.sale-buy__back-wrap {
  margin: 0.35rem 0 0;
}

.sale-buy__back {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-decoration: none;
}

.sale-buy__back:hover,
.sale-buy__back:focus-visible {
  color: var(--accent);
}

.sale-buy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0.5rem 0 2.5rem;
}

@media (min-width: 860px) {
  .sale-buy {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2rem 2.25rem;
    align-items: start;
  }
}

.sale-buy__gallery {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sale-buy__main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #120f0e;
  border: 1px solid var(--line);
}

.sale-buy__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sale-buy__thumb {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.sale-buy__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sale-buy__thumb.is-active {
  border-color: var(--accent);
}

.sale-buy__badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2ebe0;
  background: rgba(40, 28, 24, 0.82);
  border: 1px solid rgba(232, 180, 160, 0.35);
}

.sale-buy__title {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.sale-buy__price {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.sale-buy__specs-heading {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.sale-buy__note {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
  white-space: pre-wrap;
}

.sale-buy__purchase {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(232, 224, 213, 0.1);
}

.sale-buy__cta {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.sale-buy__lede {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.sale-buy__purchase .appoint-form {
  margin-top: 1rem;
  max-width: 28rem;
}

.sale-buy__sold-state {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(232, 224, 213, 0.1);
}

.sale-buy__sold-note {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.sale-buy-notfound {
  margin: 0.5rem 0 2rem;
}


/* === Desktop type & layout polish (1280+) === */
@media (min-width: 721px) {
  .site-nav a {
    font-size: 0.8125rem; /* ~13px */
    letter-spacing: 0.11em;
  }

  .lang-btn {
    font-size: 0.75rem;
  }

  .hero-line {
    font-size: clamp(1.75rem, 2.6vw, 2rem); /* ~28–32px */
  }

  .hero-sub,
  .hero-enter {
    font-size: 0.875rem; /* 14px */
    letter-spacing: 0.14em;
  }

  .page-head h1 {
    font-size: clamp(1.75rem, 2.4vw, 2rem);
  }

  .page-head .lede,
  .page-panel .about-line,
  .page-panel .craft-whisper,
  .commission-list,
  .contact-channel {
    font-size: 1rem;
    line-height: 1.7;
  }

  .appoint-form {
    max-width: 44rem; /* ~704px */
  }

  .page-panel {
    max-width: 44rem;
  }

  /* Custom / contact: inquire dual-column breathes (see inquire layout block) */
  body[data-page="commission"] .page-panel,
  body[data-page="contact"] .page-panel {
    max-width: min(70rem, 100%);
  }

  .form-row label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .sale-buy__title {
    font-size: clamp(1.75rem, 2.2vw, 2rem);
  }

  .sale-buy__price {
    font-size: 1.05rem;
  }

  .sale-buy__specs-heading,
  .sale-buy__cta {
    font-size: 1rem;
  }

  .sale-buy__lede,
  .sale-specs {
    font-size: 0.9375rem;
  }

  .sale-buy__purchase .appoint-form {
    max-width: 28rem;
  }

  .sale-card__frame {
    background: #161310;
  }

  .work-caption {
    font-size: 0.75rem;
    padding: 0.95rem 0.85rem;
  }
}

@media (min-width: 1100px) {
  .shell,
  .site-header .header-inner {
    max-width: var(--max);
  }
}


/* After enter: header type scale (desktop) */
@media (min-width: 721px) {
  body:not(.is-landing) {
    --header-h: 4.15rem; /* room for stacked REI SHAO + Ember subtitle */
  }

  body:not(.is-landing) .logo-en {
    font-size: 0.95rem; /* longer mark: REI SHAO PIPES */
    letter-spacing: 0.12em;
  }

  body:not(.is-landing) .logo-sub {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  body:not(.is-landing) .site-nav {
    gap: 1.65rem;
  }

  body:not(.is-landing) .site-nav a {
    font-size: 0.9rem; /* ~14.5px — Chinese nav readable */
    letter-spacing: 0.08em;
    color: var(--ink-muted);
  }

  body:not(.is-landing) .lang-btn {
    font-size: 0.8125rem;
  }

  body:not(.is-landing) .site-header {
    background: rgba(18, 16, 14, 0.94);
  }
}

/* === Desktop visual QA polish (Sep 2026) === */
@media (min-width: 721px) {
  /* Must-fix: post-enter hero must fit under header so copy is not clipped */
  body:not(.is-landing) .hero-bleed__media,
  body:not(.is-landing).page-works .hero-bleed__media {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - var(--header-h) - 0.25rem) !important;
  }

  body:not(.is-landing) .hero-bleed__media img,
  body:not(.is-landing).page-works .hero-bleed__media img {
    object-fit: cover !important;
    object-position: center 40% !important;
  }

  body:not(.is-landing) .hero-bleed__copy {
    padding: clamp(1rem, 2.2vw, 1.5rem) var(--pad) clamp(1.1rem, 2.4vw, 1.6rem) !important;
  }

  body:not(.is-landing) .hero-line {
    font-size: clamp(1.55rem, 2.2vw, 1.85rem);
    line-height: 1.35;
  }

  /* Landing Enter: slightly clearer affordance */
  body.is-landing .hero-enter {
    border-bottom-color: rgba(232, 224, 213, 0.78);
    color: var(--ink);
    opacity: 1;
  }

  /* Hero → works: a little more air */
  body:not(.is-landing).page-works .section.section--flush-top,
  body:not(.is-landing).page-works #works.shell {
    padding-top: 1.75rem;
  }

  /* About: denser, gallery-scale type (less sparse void) */
  body[data-page="about"] main#main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100dvh - var(--header-h) - 5.5rem);
    padding-bottom: 2rem;
  }

  body[data-page="about"] .page-head {
    padding-block: 2.5rem 1.25rem;
    margin-bottom: 0;
  }

  body[data-page="about"] .page-panel {
    max-width: 36rem;
  }

  body[data-page="about"] .about-line {
    font-size: clamp(1.35rem, 2.1vw, 1.65rem);
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }

  body[data-page="about"] .craft-whisper {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  /* Sale: IG 3-col aligned with works grid (full shell width) */
  body[data-page="sale"] .page-panel {
    max-width: var(--max);
  }
  .sale-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    max-width: none;
    width: 100%;
  }

  /* Custom / contact: gallery inquire width — overridden further in inquire block */
  body[data-page="commission"] .page-panel,
  body[data-page="contact"] .page-panel,
  body[data-page="commission"] .appoint-form,
  body[data-page="contact"] .appoint-form {
    max-width: min(70rem, 100%);
  }

  body[data-page="commission"] .page-head,
  body[data-page="contact"] .page-head,
  body[data-page="sale"] .page-head,
  body[data-page="about"] .page-head {
    max-width: var(--max);
  }
}


/* Inquire layout — furniture/design commerce (Carl Hansen / Aesop / O&D) */
.inquire-layout {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.inquire-aside .copy-list {
  margin-bottom: 1.5rem;
  /* plain list — no cards / color blocks */
}
.inquire-aside .contact-line-qr {
  margin: 1rem 0 0;
}
.inquire-aside .contact-line-qr img {
  width: 120px;
  height: 120px;
  max-width: 120px;
}
.inquire-main .appoint-form {
  max-width: none;
  width: 100%;
}
.inquire-main .contact-or {
  margin: 0 0 1.25rem;
}

/* Commission / contact type + vertical rhythm */
body[data-page="commission"] .page-head,
body[data-page="contact"] .page-head {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.15rem; /* ~48–64px feel */
  margin-bottom: clamp(1.15rem, 2.5vw, 1.75rem);
}
body[data-page="commission"] .page-head h1,
body[data-page="contact"] .page-head h1 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem); /* 20–24px */
  max-width: none;
}
body[data-page="commission"] .page-head .lede,
body[data-page="contact"] .page-head .lede {
  font-size: 0.9375rem; /* 15px */
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 36rem;
}
body[data-page="commission"] .inquire-aside .copy-list,
body[data-page="commission"] .inquire-aside .copy-list li {
  font-size: 0.975rem; /* ~15.5px */
  line-height: 1.7;
}
body[data-page="commission"] .inquire-main .form-row label,
body[data-page="contact"] .inquire-main .form-row label {
  font-size: 0.8125rem; /* 13px */
}
body[data-page="commission"] .page-panel.inquire-panel,
body[data-page="contact"] .page-panel.inquire-panel {
  padding-bottom: clamp(3rem, 6vw, 4rem);
  max-width: min(70rem, 100%); /* ~1120px */
}

/* Sale empty: one centered wide line (not skinny tool column) */
body[data-page="sale"] #sale-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: none;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
body[data-page="sale"] #sale-empty .empty-note {
  max-width: min(42rem, 100%);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}
body[data-page="sale"] #sale-empty .empty-actions {
  justify-content: center;
}

@media (min-width: 900px) {
  body[data-page="commission"] .page-panel,
  body[data-page="contact"] .page-panel,
  body[data-page="commission"] .page-panel.inquire-panel,
  body[data-page="contact"] .page-panel.inquire-panel {
    max-width: min(70rem, 100%); /* 1040–1120px gallery inquire */
  }
  .inquire-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }
  .inquire-aside {
    padding-top: 0.15rem;
  }
  .inquire-aside .cta-line {
    margin-top: 0.25rem;
  }
  .inquire-aside .contact-line-qr img {
    width: 112px;
    height: 112px;
    max-width: 120px;
  }
  .inquire-main {
    border-left: 1px solid var(--line);
    padding-left: clamp(1.75rem, 3vw, 2.75rem);
  }
  body[data-page="commission"] .appoint-form,
  body[data-page="contact"] .appoint-form {
    max-width: none;
  }
}

@media (min-width: 721px) {
  /* Sale: full-width IG 3-col (align with works) */
  .sale-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    max-width: none;
    width: 100%;
  }
  body[data-page="sale"] .page-panel {
    max-width: var(--max);
  }
}

@media (max-width: 559px) {
  .sale-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}

/* Nav current page: cream solid (override muted desktop nav) */
body:not(.is-landing) .site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* Inquire micro-polish (西瓜): cta on form, aside bottom align */
.inquire-main .cta-line {
  margin: 0 0 1.15rem;
}
@media (min-width: 900px) {
  .inquire-layout {
    align-items: stretch;
  }
  .inquire-aside {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .inquire-aside .contact-line-qr {
    margin-top: auto;
    padding-top: 1.5rem;
  }
  .inquire-main .cta-line {
    margin-top: 0;
    margin-bottom: 1.25rem;
  }
}


/* === Brand hierarchy lock (REI SHAO PIPES) === */
.logo-mark {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center;
  gap: 0.2rem !important;
  line-height: 1.05;
}
.logo-en {
  display: block !important;
  font-family: var(--serif) !important;
  font-size: 0.8125rem !important; /* ~13px — fits long mark */
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
  white-space: nowrap;
}
.logo-sub {
  display: block !important;
  font-family: var(--serif) !important;
  font-size: 0.55rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--ink-muted) !important;
  opacity: 0.75;
  white-space: nowrap;
}

/* Hero: REI SHAO PIPES clearly above Ember subtitle */
.hero-bleed__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-brand {
  order: 2;
  margin: 0 0 0.3rem !important;
  font-family: var(--serif) !important;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
  opacity: 1 !important;
}
.hero-brand-sub {
  order: 1;
  margin: 0 0 1.1rem !important;
  font-family: var(--serif) !important;
  font-size: 0.6875rem !important; /* 11px */
  font-weight: 400 !important;
  letter-spacing: 0.2em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  color: var(--ink-muted) !important;
  opacity: 0.8 !important;
}
.hero-line { order: 3; }
.hero-sub { order: 4; }
.hero-enter { order: 5; }

.footer-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.2rem !important;
  font-family: var(--serif);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-sub {
  display: block !important;
  font-size: 0.55rem !important;
  letter-spacing: 0.16em !important;
  color: var(--ink-muted) !important;
  font-weight: 400 !important;
  margin-left: 0 !important;
}

@media (min-width: 721px) {
  body:not(.is-landing) .logo-en {
    font-size: 0.875rem !important;
    letter-spacing: 0.11em !important;
  }
  body:not(.is-landing) .logo-sub {
    font-size: 0.5625rem !important;
  }
  body.is-landing .hero-brand {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem) !important;
  }
}

@media (max-width: 720px) {
  .logo-en {
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
  }
  .logo-sub {
    font-size: 0.5rem !important;
  }
  body.is-landing .hero-brand {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem) !important;
  }
  body.is-landing .hero-brand-sub {
    font-size: 0.625rem !important;
    margin-bottom: 0.85rem !important;
  }
}


/* === GreatRiver-inspired hero: large photo + airy thin type === */
:root {
  --serif-jp: "Noto Serif TC", "Cormorant Garamond", "Songti TC", serif;
}

/* After enter — taller cinematic strip (desktop) */
@media (min-width: 721px) {
  body:not(.is-landing).page-works .hero-bleed__media {
    aspect-ratio: 21 / 9;
    min-height: clamp(18rem, 52vh, 30rem);
    max-height: min(68vh, 38rem);
  }
  body:not(.is-landing).page-works .hero-bleed__media img {
    object-fit: cover;
    object-position: center 42%;
  }
  body:not(.is-landing).page-works .hero-bleed__veil {
    background:
      linear-gradient(
        to top,
        rgba(18, 16, 14, 0.78) 0%,
        rgba(18, 16, 14, 0.28) 38%,
        rgba(18, 16, 14, 0.08) 62%,
        rgba(18, 16, 14, 0.22) 100%
      );
  }
  body:not(.is-landing).page-works .hero-line {
    font-family: var(--serif-jp);
    font-weight: 300;
    font-size: clamp(1.85rem, 3.4vw, 2.75rem) !important;
    letter-spacing: 0.12em;
    line-height: 1.55;
    max-width: 14em;
  }
  body:not(.is-landing).page-works .hero-brand {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.18em !important;
    opacity: 0.92 !important;
  }
  body:not(.is-landing).page-works .hero-brand-sub {
    font-size: 0.625rem !important;
    margin-bottom: 1.35rem !important;
    opacity: 0.7 !important;
  }
  body:not(.is-landing).page-works .hero-sub {
    margin-top: 0.85rem;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
  }
}

/* Landing gate — left-aligned editorial overlay (GreatRiver feel) */
body.is-landing .hero-bleed__veil {
  background:
    linear-gradient(
      to right,
      rgba(12, 10, 9, 0.72) 0%,
      rgba(12, 10, 9, 0.28) 42%,
      rgba(12, 10, 9, 0.08) 68%,
      rgba(12, 10, 9, 0.2) 100%
    ),
    linear-gradient(
      to top,
      rgba(12, 10, 9, 0.55) 0%,
      rgba(12, 10, 9, 0.12) 36%,
      rgba(12, 10, 9, 0.05) 100%
    ) !important;
}

body.is-landing .hero-bleed__copy {
  text-align: left !important;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  padding: 0 var(--pad) max(3rem, calc(env(safe-area-inset-bottom) + 2.25rem)) !important;
}

body.is-landing .hero-bleed__inner {
  align-items: flex-start !important;
  text-align: left !important;
  max-width: min(36rem, 88vw) !important;
  margin-inline: 0 auto !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

body.is-landing .hero-brand-sub {
  order: 1;
  margin: 0 0 0.55rem !important;
  font-size: 0.625rem !important;
  letter-spacing: 0.28em !important;
  opacity: 0.65 !important;
  font-weight: 400 !important;
}

body.is-landing .hero-brand {
  order: 2;
  margin: 0 0 1.75rem !important;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.22em !important;
  opacity: 0.88 !important;
}

body.is-landing .hero-line {
  order: 3;
  font-family: var(--serif-jp) !important;
  font-weight: 300 !important;
  font-size: clamp(1.85rem, 4.8vw, 3.15rem) !important;
  letter-spacing: 0.14em !important;
  line-height: 1.65 !important;
  max-width: 11em !important;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35) !important;
  color: var(--ink) !important;
}

body.is-landing .hero-sub {
  order: 4;
  margin-top: 1rem !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.32em !important;
  color: rgba(242, 235, 224, 0.72) !important;
}

body.is-landing .hero-enter {
  order: 5;
  margin-top: 2rem !important;
  align-self: flex-start;
  padding: 0.45rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(242, 235, 224, 0.45) !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
}

body.is-landing .hero-enter:hover,
body.is-landing .hero-enter:focus-visible {
  background: transparent !important;
  border-bottom-color: var(--accent) !important;
}

@media (max-width: 720px) {
  body.is-landing .hero-bleed__veil {
    background:
      linear-gradient(
        to top,
        rgba(12, 10, 9, 0.82) 0%,
        rgba(12, 10, 9, 0.35) 34%,
        rgba(12, 10, 9, 0.12) 58%,
        rgba(12, 10, 9, 0.28) 100%
      ) !important;
  }
  body.is-landing .hero-line {
    font-size: clamp(1.65rem, 7.2vw, 2.15rem) !important;
    letter-spacing: 0.1em !important;
    line-height: 1.7 !important;
    max-width: 9.5em !important;
  }
  body.is-landing .hero-brand {
    font-size: 0.95rem !important;
    margin-bottom: 1.35rem !important;
  }
  body.is-landing .hero-enter {
    margin-top: 1.65rem !important;
  }
  /* After enter mobile: keep square but quieter copy scale */
  body:not(.is-landing).page-works .hero-line {
    font-family: var(--serif-jp);
    font-weight: 300;
    font-size: clamp(1.35rem, 5.5vw, 1.7rem) !important;
    letter-spacing: 0.1em;
    line-height: 1.55;
  }
}


/* === 西瓜 landing: quieter type over photo === */
/* Gate only — image first, type as caption; structure unchanged */
/* NOTE: no transform on .hero-bleed__copy (breaks position:fixed for Enter) */

body.is-landing .hero-bleed__veil {
  background: rgba(18, 16, 14, 0.24) !important;
}

body.is-landing .hero-bleed__media img {
  object-position: 58% 40% !important; /* nudge pipe right of type */
}

body.is-landing .hero-bleed__copy {
  /* mid-lower: start near ~60% without transform */
  top: 58% !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  text-align: left !important;
  padding: 0 clamp(1.75rem, 5vw, 3.5rem) !important;
  pointer-events: none;
}

body.is-landing .hero-bleed__inner {
  align-items: flex-start !important;
  text-align: left !important;
  max-width: min(22rem, 70vw) !important;
  margin-inline: 0 !important;
  margin-left: 0 !important;
  gap: 0 !important;
}

body.is-landing .hero-brand-sub {
  order: 1;
  margin: 0 0 0.3rem !important;
  font-size: 0.5625rem !important;
  letter-spacing: 0.22em !important;
  opacity: 0.5 !important;
  font-weight: 400 !important;
}

body.is-landing .hero-brand {
  order: 2;
  margin: 0 0 0.85rem !important;
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 400 !important;
  letter-spacing: 0.16em !important;
  opacity: 0.78 !important;
}

body.is-landing .hero-line {
  order: 3;
  font-family: var(--serif-jp) !important;
  font-weight: 400 !important;
  font-size: 1.625rem !important; /* 26px — one notch up from quiet pass */
  letter-spacing: 0.1em !important;
  line-height: 1.4 !important;
  max-width: none !important;
  white-space: nowrap !important;
  text-shadow: none !important;
  color: rgba(242, 235, 224, 0.94) !important;
  opacity: 0.94 !important;
}

body.is-landing .hero-sub {
  order: 4;
  margin-top: 0.65rem !important;
  margin-bottom: 0 !important;
  font-size: 0.75rem !important; /* 12px */
  letter-spacing: 0.22em !important;
  color: rgba(242, 235, 224, 0.62) !important;
}

/* Enter on viewport bottom — copy has no transform so fixed works */
body.is-landing .hero-enter {
  order: 5;
  pointer-events: auto;
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1.75rem)) !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  z-index: 5;
  padding: 0.35rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(242, 235, 224, 0.32) !important;
  background: transparent !important;
  color: rgba(242, 235, 224, 0.58) !important;
  font-size: 0.6875rem !important;
  letter-spacing: 0.36em !important;
  text-transform: uppercase;
}

body.is-landing .hero-enter:hover,
body.is-landing .hero-enter:focus-visible {
  background: transparent !important;
  color: rgba(242, 235, 224, 0.88) !important;
  border-bottom-color: var(--accent) !important;
}

@media (min-width: 721px) {
  body.is-landing .hero-line {
    font-size: clamp(1.5rem, 2.1vw, 1.75rem) !important; /* 24–28px */
    letter-spacing: 0.11em !important;
    line-height: 1.4 !important;
  }
  html[lang="en"] body.is-landing .hero-line {
    font-size: clamp(1.25rem, 1.7vw, 1.5rem) !important; /* EN slightly under ZH */
    letter-spacing: 0.08em !important;
    white-space: normal !important;
    max-width: 22em !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 720px) {
  body.is-landing .hero-bleed__media img {
    object-position: center 28% !important;
  }
  body.is-landing .hero-bleed__copy {
    top: 70% !important;
    padding: 0 1.5rem !important;
  }
  body.is-landing .hero-bleed__inner {
    max-width: min(18rem, 86vw) !important;
  }
  body.is-landing .hero-line {
    font-size: clamp(1.2rem, 5vw, 1.45rem) !important; /* ~19–23px */
    letter-spacing: 0.08em !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    max-width: 12em !important;
  }
  body.is-landing .hero-brand {
    font-size: 0.75rem !important;
    margin-bottom: 0.65rem !important;
  }
  body.is-landing .hero-sub {
    font-size: 0.75rem !important;
    margin-top: 0.55rem !important;
  }
  /* keep left-aligned like desktop */
  body.is-landing .hero-bleed__inner {
    align-items: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-inline: 0 !important;
  }
  body.is-landing .hero-enter {
    bottom: max(1.75rem, calc(env(safe-area-inset-bottom) + 1.5rem)) !important;
  }
}


/* === Mobile after-enter: lock square hero (QA) === */
@media (max-width: 720px) {
  body:not(.is-landing).page-works .hero-bleed__media {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
  }
  body:not(.is-landing).page-works .hero-bleed__media img {
    object-fit: cover !important;
    object-position: center 40% !important;
  }
}


/* === After-enter hero type: match landing (西瓜 A) === */
/* Same caption family as gate — hierarchy via place/opacity, not size jump */
@media (min-width: 721px) {
  body:not(.is-landing).page-works .hero-line {
    font-family: var(--serif-jp) !important;
    font-weight: 400 !important;
    font-size: clamp(1.5rem, 2.1vw, 1.75rem) !important; /* 24–28px */
    letter-spacing: 0.11em !important;
    line-height: 1.4 !important;
    max-width: 14em !important;
  }
  body:not(.is-landing).page-works .hero-brand {
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.16em !important;
    opacity: 0.78 !important;
  }
  body:not(.is-landing).page-works .hero-brand-sub {
    font-size: 0.5625rem !important;
    margin-bottom: 0.85rem !important;
    opacity: 0.55 !important;
  }
  body:not(.is-landing).page-works .hero-sub {
    margin-top: 0.65rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.22em !important;
    color: rgba(242, 235, 224, 0.62) !important;
  }
}

@media (max-width: 720px) {
  body:not(.is-landing).page-works .hero-line {
    font-family: var(--serif-jp) !important;
    font-weight: 400 !important;
    font-size: clamp(1rem, 4.2vw, 1.25rem) !important; /* 16–20px */
    letter-spacing: 0.08em !important;
    line-height: 1.4 !important;
    max-width: 12em !important;
  }
  body:not(.is-landing).page-works .hero-sub {
    font-size: 0.75rem !important;
    margin-top: 0.55rem !important;
  }
}


/* === Site-wide type rhythm (西瓜 4-token) === */
/* display / body / meta / nav — no ≥32px titles */

.page-head h1,
.piece-title,
body.is-landing .hero-line,
body:not(.is-landing).page-works .hero-line {
  font-family: var(--serif-jp, var(--serif)) !important;
  font-size: var(--type-display) !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-title) !important;
  line-height: 1.4 !important;
}

.page-kicker,
.hero-brand-sub,
.logo-sub,
.footer-sub {
  font-size: 0.6875rem !important; /* ~11px */
  letter-spacing: 0.2em !important;
  font-weight: 400 !important;
  opacity: 0.75;
}

.logo-en,
.hero-brand,
.footer-brand {
  font-size: 0.8125rem !important; /* 13px */
  letter-spacing: 0.14em !important;
  font-weight: 400 !important;
}

.site-nav a,
.lang-btn {
  font-size: var(--type-nav) !important; /* 13px */
  letter-spacing: 0.14em !important;
}

.page-head .lede,
.about-line,
body[data-page="about"] .about-line,
.copy-list li,
.contact-channel,
.commission-list,
.empty-note,
.appoint-note {
  font-family: var(--serif-jp, var(--serif));
  font-size: var(--type-body) !important; /* 14–15px */
  font-weight: 400 !important;
  line-height: 1.7 !important;
  letter-spacing: 0.03em !important;
}

.craft-whisper,
body[data-page="about"] .craft-whisper {
  font-size: var(--type-meta) !important; /* 12px meta */
  font-style: normal !important;
  letter-spacing: 0.14em !important;
  line-height: 1.65 !important;
  color: rgba(242, 235, 224, 0.62) !important;
}

.appoint-form label,
.form-row label,
.meta-list dt,
.sale-card__meta,
.footer-legal {
  font-size: var(--type-meta) !important;
  letter-spacing: 0.12em !important;
}

.meta-list dd,
.appoint-form input,
.appoint-form textarea,
.appoint-form select {
  font-size: var(--type-body) !important;
}

.cta-line,
.btn-quiet,
.hero-enter,
button[type="submit"].btn-quiet,
.appoint-form button[type="submit"] {
  font-size: var(--type-meta) !important; /* 12–13 */
  letter-spacing: 0.22em !important;
}

.work-caption {
  font-size: 0.6875rem !important; /* 11px */
  letter-spacing: 0.12em !important;
}

/* kill leftover poster overrides */
@media (min-width: 721px) {
  .page-head h1,
  body[data-page="about"] .about-line,
  body:not(.is-landing) .hero-line,
  body:not(.is-landing).page-works .hero-line {
    font-size: var(--type-display) !important;
  }
  body[data-page="about"] .about-line {
    font-size: var(--type-body) !important;
  }
  body:not(.is-landing) {
    --header-h: 4rem; /* 64px max */
  }
}

@media (max-width: 720px) {
  :root {
    --type-display: clamp(1rem, 4.2vw, 1.25rem); /* 16–20 */
    --type-body: 0.9375rem;
    --type-meta: 0.75rem;
    --type-nav: 0.8125rem;
  }
  .site-nav > a {
    font-size: 0.875rem !important; /* drawer tap */
  }
}

/* === About: left-align body with page title === */
/* One column: kicker / H1 / rule / body share the same left edge */

body[data-page="about"] main#main {
  align-items: stretch;
}

body[data-page="about"] .page-head.shell {
  border-bottom: 0 !important; /* full-width border sat left of text */
  text-align: left !important;
  margin-bottom: 0 !important;
  padding-bottom: 1.25rem !important;
}

body[data-page="about"] .page-kicker,
body[data-page="about"] .page-head h1 {
  display: block;
  width: 100%;
  max-width: 36rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
}

/* Wide tracking optically shifts caps right — pull back to true left */
body[data-page="about"] .page-kicker {
  letter-spacing: 0.18em !important;
  margin-left: -0.09em !important; /* ~½ tracking */
}

body[data-page="about"] .about-block.page-panel,
body[data-page="about"] .page-panel {
  max-width: var(--max) !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding-inline: var(--pad) !important; /* same inset as .page-head.shell */
  box-sizing: border-box !important;
}

/* .shell already pads — avoid double pad if both apply */
body[data-page="about"] .about-block.shell.page-panel {
  padding-inline: var(--pad) !important;
}

body[data-page="about"] .page-rule {
  display: block !important;
  width: 100% !important;
  max-width: 36rem !important;
  height: 1px !important;
  margin: 0 0 1.5rem 0 !important;
  background: var(--line) !important;
  opacity: 1 !important;
}

body[data-page="about"] .about-line,
body[data-page="about"] .craft-whisper {
  max-width: 36rem !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  text-align: left !important;
}

/* Override older denser-about max-width: 36rem on panel that re-centers */
@media (min-width: 721px) {
  body[data-page="about"] .page-panel {
    max-width: var(--max) !important;
  }
}

