:root {
  --ink: #111111;
  --muted: #686862;
  --line: #d9d9d2;
  --line-strong: #b9b9b0;
  --paper: #fbfbf8;
  --white: #ffffff;
  --soft: #f2f2ed;
  --warm: #e8e1d5;
  --copper: #a45135;
  --green: #3f6955;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.08);
  --serif: Georgia, 'Times New Roman', 'Noto Serif TC', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--copper); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.7rem, 6vw, 6.4rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 3.2vw, 3.6rem); line-height: 1.02; }
h3 { font-size: 1.45rem; line-height: 1.15; }

.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: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: 0.65rem 0.9rem;
  color: var(--white);
  background: var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-shell { min-height: 100vh; }
.site-header {
  width: min(100% - 3rem, 1600px);
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.wordmark { display: inline-flex; align-items: baseline; gap: 0.8rem; white-space: nowrap; }
.wordmark-mark { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.16em; }
.wordmark-name { font-family: var(--serif); font-size: 1rem; }
.wordmark-name em { font-style: normal; color: var(--copper); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.search-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 180px;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
}
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 0.82rem; }
.search-box input::placeholder { color: #95958d; }
.text-button, .icon-button, .basket-button { border: 0; background: transparent; cursor: pointer; }
.text-button { padding: 0.45rem 0.6rem; font-size: 0.78rem; letter-spacing: 0.05em; }
.icon-button { padding: 0.45rem 0.55rem; font-size: 1.1rem; }
.basket-button { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.7rem; font-size: 0.84rem; border: 1px solid var(--ink); }
.basket-count { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; font-size: 0.72rem; color: var(--white); background: var(--ink); border-radius: 50%; }
.mobile-menu-button { display: none; }

.primary-nav {
  width: min(100% - 3rem, 1600px);
  margin: 0 auto;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.4rem);
  overflow: visible;
  border-bottom: 1px solid var(--line);
}
.primary-nav > a, .nav-details summary { padding: 0.95rem 0; color: #4f4f49; font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; }
.primary-nav > a:hover, .primary-nav > a.active, .nav-details summary:hover { color: var(--ink); }
.nav-details { position: relative; }
.nav-details summary { list-style: none; }
.nav-details summary::-webkit-details-marker { display: none; }
.nav-details summary::after { content: '⌄'; padding-left: 0.35rem; font-size: 0.85rem; }
.nav-dropdown { position: absolute; z-index: 20; top: 100%; left: -1rem; width: 220px; padding: 0.6rem 0; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nav-dropdown a { display: block; padding: 0.55rem 1rem; font-size: 0.85rem; }

main { width: min(100% - 3rem, 1600px); margin: 0 auto; }
.page-section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.eyebrow { margin-bottom: 0.9rem; color: var(--copper); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.lede { max-width: 40rem; color: var(--muted); font-size: 1.12rem; line-height: 1.6; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(2rem, 6vw, 8rem);
  align-items: end;
  min-height: 590px;
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(4rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line);
}
.hero-copy h1 { max-width: 830px; margin-bottom: 2rem; }
.hero-copy .lede { margin-bottom: 2.3rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.hero-aside { min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-logo-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 350px;
  padding: 2rem;
  background: #0b0b0b;
  clip-path: polygon(
    2.7% 0.15%, 6% 0.36%, 10% 0.08%, 14% 0.3%, 18% 0.05%, 24% 0.22%, 29% 0%, 35% 0.25%, 40% 0.08%, 46% 0.28%, 52% 0.04%, 57% 0.2%, 63% 0.06%, 68% 0.27%, 74% 0.04%, 80% 0.3%, 86% 0.08%, 92% 0.24%, 97.3% 0.15%,
    99.95% 4.2%, 99.7% 7%, 100% 12%, 99.75% 18%, 100% 24%, 99.72% 31%, 100% 38%, 99.8% 45%, 100% 52%, 99.72% 59%, 100% 66%, 99.76% 73%, 100% 80%, 99.7% 87%, 99.95% 95.8%,
    97.3% 99.85%, 92% 99.72%, 86% 99.95%, 80% 99.68%, 74% 99.92%, 68% 99.7%, 63% 99.95%, 57% 99.72%, 52% 99.9%, 46% 99.68%, 40% 99.94%, 35% 99.7%, 29% 99.92%, 24% 99.72%, 18% 99.95%, 14% 99.7%, 10% 99.92%, 6% 99.68%, 2.7% 99.85%,
    0.05% 95.8%, 0.25% 89%, 0% 82%, 0.28% 75%, 0% 68%, 0.24% 61%, 0% 54%, 0.25% 47%, 0% 40%, 0.28% 33%, 0% 26%, 0.24% 19%, 0% 12%, 0.05% 4.2%
  );
}
.hero-logo-panel::before,
.hero-logo-panel::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.hero-logo-panel::before {
  inset: 0.35rem;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  clip-path: polygon(2.7% 0.15%, 24% 0.2%, 46% 0%, 72% 0.18%, 97.3% 0.15%, 99.95% 4.2%, 99.8% 31%, 100% 64%, 99.95% 95.8%, 97.3% 99.85%, 74% 99.8%, 48% 100%, 25% 99.75%, 2.7% 99.85%, 0.05% 95.8%, 0.2% 64%, 0% 34%, 0.05% 4.2%);
  opacity: 0.72;
}
.hero-logo-panel::after {
  inset: 0.12rem;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  clip-path: polygon(2.7% 0.15%, 18% 0.25%, 39% 0%, 61% 0.2%, 81% 0.04%, 97.3% 0.2%, 99.95% 4.2%, 99.8% 27%, 100% 56%, 99.95% 95.8%, 97.3% 99.85%, 78% 99.8%, 58% 100%, 37% 99.76%, 2.7% 99.85%, 0.05% 95.8%, 0.2% 69%, 0% 36%, 0.05% 4.2%);
}
.hero-logo-panel img { position: relative; z-index: 1; width: min(100%, 290px); aspect-ratio: 1; object-fit: contain; mix-blend-mode: screen; opacity: 0.92; }
@supports not (clip-path: polygon(0 0)) {
  .hero-logo-panel { border-radius: 0.15rem; }
  .hero-logo-panel::before, .hero-logo-panel::after { display: none; }
}
.hero-index { display: flex; justify-content: space-between; padding-top: 1rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.75rem 1.05rem; border: 1px solid transparent; border-radius: 0; cursor: pointer; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.button:hover { color: inherit; transform: translateY(-1px); }
.button-dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-dark:hover { color: var(--white); background: var(--copper); border-color: var(--copper); }
.button-outline { background: transparent; border-color: var(--ink); }
.button-outline:hover { color: var(--white); background: var(--ink); }
.button-ghost { border-color: var(--line-strong); background: transparent; font-size: 0.72rem; }
.button-ghost:hover { background: var(--soft); }
.button-text { padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--ink); min-height: 32px; background: transparent; }
.button-text:hover { border-color: var(--copper); }
.button[disabled] { opacity: 0.45; pointer-events: none; }

.intro-band { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.intro-band p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.intro-band p:last-child { text-align: right; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 0.65rem; }
.section-link { color: var(--copper); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.section-link:hover { color: var(--ink); }

.object-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.object-card { min-width: 0; background: var(--white); }
.object-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1.08 / 1; overflow: hidden; background: var(--soft); }
.object-visual::before { content: ''; position: absolute; width: 63%; height: 76%; border: 1px solid rgba(17,17,17,0.32); transform: rotate(-4deg); }
.object-visual::after { content: ''; position: absolute; width: 63%; height: 76%; border: 1px solid rgba(17,17,17,0.15); transform: rotate(4deg); }
.object-visual.ink { color: #fafaf7; background: #282928; }
.object-visual.paper { background: #e7e0d4; }
.object-visual.graphite { color: #f8f8f5; background: #6d6d68; }
.object-visual.map { background: #cfd0c4; }
.object-visual.sepia { background: #b6a28e; }
.object-visual.folio { background: #d7d1c8; }
.object-visual .object-index { position: absolute; top: 1.2rem; left: 1.3rem; font-family: var(--serif); font-size: 0.8rem; letter-spacing: 0.12em; }
.object-mark { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 7rem); letter-spacing: -0.1em; }
.object-stamp { position: absolute; right: 1.3rem; bottom: 1.2rem; z-index: 1; width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 0.7rem; }
.object-info { padding: 1.15rem 1.2rem 1.35rem; }
.object-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; }
.object-info h3 { margin-bottom: 0.45rem; font-size: 1.32rem; }
.object-info h3 a:hover { color: var(--copper); }
.object-subtitle { min-height: 1.5em; margin-bottom: 0.8rem; color: var(--muted); font-family: var(--serif); font-size: 0.93rem; }
.object-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.object-price { font-size: 0.8rem; }
.object-state { color: var(--green); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.object-state.reserved, .object-state.sold { color: var(--muted); }
.card-actions { display: flex; align-items: center; gap: 0.8rem; }
.save-button { border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.save-button.is-saved { color: var(--copper); }
.save-button:hover { color: var(--copper); }

.split-promo { display: grid; grid-template-columns: 0.95fr 1.05fr; min-height: 440px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.split-promo-copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem) 0; }
.split-promo-copy h2 { max-width: 620px; }
.split-promo-copy p { max-width: 460px; color: var(--muted); }
.split-promo-image { display: grid; place-items: center; padding: clamp(1rem, 4vw, 4rem); background: #ebe4d8; }
.split-promo-image img { width: 100%; max-height: 390px; object-fit: cover; filter: grayscale(100%); mix-blend-mode: multiply; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-tile { min-height: 185px; padding: 1.5rem; background: var(--white); }
.service-number { color: var(--copper); font-family: var(--serif); font-size: 1rem; }
.service-tile h3 { margin: 2.5rem 0 0.5rem; font-size: 1.2rem; }
.service-tile p { margin-bottom: 0; color: var(--muted); font-size: 0.86rem; }

.category-strip { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.category-chip, .section-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0.35rem 0.65rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px; font-size: 0.72rem; }
.category-chip { cursor: pointer; background: transparent; }
.category-chip:hover, .category-chip.active { color: var(--white); background: var(--ink); border-color: var(--ink); }

.catalog-header { padding: clamp(3rem, 6vw, 6rem) 0 2.5rem; border-bottom: 1px solid var(--ink); }
.catalog-header h1 { margin-bottom: 1.2rem; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.catalog-toolbar .result-count { color: var(--muted); font-size: 0.78rem; }
.catalog-toolbar-search { width: min(100%, 340px); border: 0; border-bottom: 1px solid var(--ink); outline: 0; padding: 0.6rem 0; background: transparent; }
.catalog-grid { margin-top: 2rem; }
.catalog-empty { padding: 5rem 1rem; color: var(--muted); text-align: center; border: 1px dashed var(--line-strong); }

.detail-page { padding: clamp(2.5rem, 5vw, 5rem) 0; }
.back-link { display: inline-block; margin-bottom: 2.5rem; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.detail-layout { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.detail-visual { position: sticky; top: 1.5rem; display: grid; place-items: center; aspect-ratio: 0.95 / 1; max-height: 680px; overflow: hidden; }
.detail-visual .object-mark { font-size: clamp(7rem, 16vw, 16rem); }
.object-visual-image { position: relative; }
.object-visual-image img { width: 100%; height: 100%; object-fit: cover; }
.object-visual-image .object-index { position: absolute; top: 0.8rem; left: 0.8rem; color: var(--white); text-shadow: 0 1px 2px var(--ink); }
.detail-copy .object-meta { margin-bottom: 1.5rem; }
.detail-copy h1 { margin-bottom: 0.7rem; font-size: clamp(2.7rem, 5vw, 5.8rem); }
.detail-copy .zh-title { margin-bottom: 2rem; color: var(--muted); font-family: var(--serif); font-size: 1.35rem; }
.detail-copy .detail-lede { max-width: 630px; margin-bottom: 2rem; color: #393934; font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 2.5rem; }
.detail-note { color: var(--muted); font-size: 0.78rem; }
.detail-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.meta-cell { padding: 0.9rem 0.8rem 0.9rem 0; border-bottom: 1px solid var(--line); }
.meta-cell:nth-child(odd) { border-right: 1px solid var(--line); }
.meta-label { display: block; margin-bottom: 0.25rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; }
.meta-value { font-family: var(--serif); font-size: 0.95rem; }
.provenance-block { margin-top: 2.5rem; padding: 1.5rem; background: var(--soft); }
.provenance-block p:last-child { margin-bottom: 0; color: var(--muted); }

.utility-page { max-width: 1060px; padding: clamp(4rem, 8vw, 8rem) 0; }
.utility-page h1 { max-width: 850px; margin-bottom: 1.6rem; }
.utility-page > .lede { margin-bottom: 3rem; }
.legal-page { max-width: 980px; }
.legal-page h1 { max-width: 900px; }
.legal-draft-notice { margin: 2rem 0 1rem; padding: 1.2rem 1.3rem; color: #6c3c1e; background: #fbf2e9; border: 1px solid #e7c8aa; }
.legal-draft-notice strong { display: block; margin-bottom: 0.4rem; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.legal-draft-notice p { margin: 0; color: #754b2e; font-size: 0.86rem; line-height: 1.6; }
.legal-updated { margin: 0 0 2.5rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-section { padding: 1.7rem 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin-bottom: 0.85rem; font-size: 1.55rem; }
.legal-copy { color: var(--muted); font-size: 0.91rem; line-height: 1.75; }
.legal-copy p:last-child, .legal-copy ul:last-child, .legal-copy .warning-list:last-child { margin-bottom: 0; }
.legal-copy ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal-copy li + li { margin-top: 0.5rem; }
.legal-copy strong { color: var(--ink); font-weight: 600; }
.legal-copy a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 0.16em; }
.warning-list { display: grid; gap: 0.75rem; }
.warning-list p { margin: 0; padding: 0.85rem 1rem; background: var(--soft); border-left: 2px solid var(--copper); }
.inline-button { padding: 0; color: var(--ink); border: 0; border-bottom: 1px solid var(--copper); background: transparent; cursor: pointer; font: inherit; }
.content-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.content-card { padding: 1.5rem; border-top: 1px solid var(--ink); }
.content-card h3 { margin-bottom: 0.7rem; }
.content-card p { color: var(--muted); }
.content-card p:last-child { margin-bottom: 0; }
.service-form-shell { display: grid; grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }

.form-card { padding: clamp(1.25rem, 3vw, 2.2rem); border: 1px solid var(--line); background: var(--white); }
.form-card h2 { margin-bottom: 1.4rem; font-size: 2rem; }
.studio-form, .public-form { display: grid; gap: 1rem; }
.public-form { max-width: 620px; }
.public-form label, .studio-form label { display: grid; gap: 0.38rem; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.04em; }
.public-form input, .public-form textarea, .public-form select, .studio-form input, .studio-form textarea, .studio-form select, .table-tools input { width: 100%; padding: 0.75rem 0.7rem; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: 0; outline: 0; font-size: 0.9rem; letter-spacing: normal; }
.public-form input:focus, .public-form textarea:focus, .public-form select:focus, .studio-form input:focus, .studio-form textarea:focus, .studio-form select:focus, .table-tools input:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(17,17,17,0.08); }
.form-grid { display: grid; gap: 1rem; }
.two-up { grid-template-columns: 1fr 1fr; }
.wide { grid-column: 1 / -1; }
.form-help { margin: 0; color: var(--muted); font-size: 0.78rem; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 0.35rem; }
.form-success { padding: 1rem; color: #244d3a; background: #edf4ee; border: 1px solid #c4dbc9; }
.form-error { padding: 0.8rem 1rem; color: #7b2e24; background: #faefed; border: 1px solid #e6c5c0; }
.form-legal-notice { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.55; }
.form-legal-notice a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 0.15em; }
.consent-check { display: flex !important; grid-template-columns: unset !important; align-items: flex-start; gap: 0.6rem !important; color: var(--muted) !important; font-size: 0.76rem !important; line-height: 1.5; letter-spacing: normal !important; }
.consent-check input { flex: 0 0 auto; width: auto !important; margin-top: 0.2rem; accent-color: var(--ink); }
.consent-check span { display: block; }
.consent-check strong, .consent-check small { display: block; }
.consent-check strong { color: var(--ink); font-size: 0.8rem; font-weight: 500; }
.consent-check small { margin-top: 0.2rem; color: var(--muted); font-size: 0.74rem; line-height: 1.45; }
.consent-check.is-disabled { opacity: 0.72; }

.inquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2rem; align-items: start; }
.inquiry-list { border-top: 1px solid var(--ink); }
.inquiry-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.mini-visual { display: grid; place-items: center; aspect-ratio: 1; color: #f7f7f4; background: #292a28; font-family: var(--serif); font-size: 2rem; }
.inquiry-row h3 { margin-bottom: 0.25rem; font-size: 1.2rem; }
.inquiry-row p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.remove-button { color: var(--muted); border: 0; background: transparent; cursor: pointer; font-size: 0.75rem; }
.remove-button:hover { color: var(--copper); }
.inquiry-aside { padding: 1.4rem; background: var(--soft); }
.inquiry-aside h3 { margin-bottom: 0.8rem; }
.inquiry-aside p { color: var(--muted); font-size: 0.84rem; }
.empty-state { padding: 3.5rem 1rem; text-align: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.empty-state p { color: var(--muted); }

.quote-sheet { max-width: 860px; padding: clamp(2rem, 5vw, 5rem) 0; }
.quote-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.quote-summary > div { padding: 1rem 0; }
.quote-summary > div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.quote-total { font-family: var(--serif); font-size: 1.5rem; }
.payment-choice-list { display: grid; gap: 0.6rem; margin: 1.5rem 0; }
.payment-choice { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; border: 1px solid var(--line); cursor: pointer; }
.payment-choice:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.payment-choice input { accent-color: var(--ink); }
.payment-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line-strong); font-family: var(--serif); }
.payment-choice strong { display: block; font-size: 0.86rem; font-weight: 500; }
.payment-choice small { display: block; color: var(--muted); font-size: 0.75rem; }

.account-shell { display: grid; grid-template-columns: 230px 1fr; gap: 3rem; align-items: start; }
.account-nav { display: grid; gap: 0.35rem; position: sticky; top: 2rem; }
.account-nav a { padding: 0.65rem 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.account-nav a:hover { color: var(--ink); }
.account-main h2 { margin-bottom: 0.7rem; }
.account-block { margin-bottom: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.metric { min-height: 120px; padding: 1.1rem; background: var(--white); }
.metric strong { display: block; margin-bottom: 1rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.metric span { color: var(--muted); font-size: 0.75rem; }

.site-footer { width: min(100% - 3rem, 1600px); margin: 4rem auto 0; padding: 2.2rem 0 1.4rem; border-top: 1px solid var(--ink); }
.footer-brand { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding-bottom: 2.3rem; }
.footer-mark { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.12em; }
.footer-brand p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.1rem; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); }
.footer-columns > div { display: grid; align-content: start; gap: 0.35rem; }
.footer-label { margin-bottom: 0.4rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-columns a, .footer-note { font-size: 0.82rem; }
.footer-note { color: var(--muted); }
.footer-action { width: fit-content; padding: 0; color: var(--ink); border: 0; border-bottom: 1px solid var(--copper); background: transparent; cursor: pointer; font: inherit; font-size: 0.82rem; text-align: left; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.68rem; }

.toast { position: fixed; z-index: 80; right: 1.4rem; bottom: 1.4rem; max-width: 350px; padding: 0.8rem 1rem; color: var(--white); background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(1rem); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; font-size: 0.82rem; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1rem; background: rgba(17,17,17,0.58); }
.modal { width: min(100%, 510px); max-height: min(720px, calc(100vh - 2rem)); overflow: auto; padding: 1.6rem; background: var(--white); box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: 1.4rem; }
.modal-header h2 { margin: 0; font-size: 2rem; }
.close-button { border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; }
.auth-tabs { display: flex; gap: 1rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.auth-tab { padding: 0.6rem 0; border: 0; border-bottom: 1px solid transparent; background: transparent; cursor: pointer; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.auth-tab.active { color: var(--ink); border-color: var(--ink); }
.modal-note { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.76rem; }
.cookie-banner { position: fixed; z-index: 60; right: 1rem; bottom: 1rem; left: 1rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; width: min(100% - 2rem, 1180px); margin: 0 auto; padding: 1.15rem 1.3rem; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.cookie-banner h2 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.cookie-banner p { max-width: 720px; margin: 0 0 0.5rem; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.cookie-banner a { color: var(--ink); font-size: 0.75rem; text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 0.15em; }
.cookie-actions { display: flex; flex-shrink: 0; align-items: center; flex-wrap: wrap; justify-content: end; gap: 0.5rem; }
.cookie-actions .button { white-space: nowrap; }

/* Admin / studio */
.admin-body { background: #f0f0eb; }
.admin-auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 1rem; background: linear-gradient(145deg, #e3e1d7, #f7f6f1); }
.admin-auth-card { width: min(100%, 470px); padding: 1.5rem; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.admin-auth-card .wordmark { display: inline-flex; margin-bottom: 3rem; }
.admin-auth-card h1 { margin-bottom: 0.8rem; font-size: clamp(2.4rem, 10vw, 4.4rem); }
.admin-auth-card .lede { margin-bottom: 1.5rem; }
.admin-auth-form { display: grid; gap: 1rem; margin-bottom: 1rem; }
.admin-auth-form .button { width: 100%; justify-content: center; }
.admin-totp-setup { display: grid; gap: 0.8rem; padding: 1rem; background: var(--soft); border: 1px solid var(--line); }
.admin-totp-setup img { width: min(100%, 220px); aspect-ratio: 1; margin: 0 auto; background: var(--white); }
.admin-totp-setup p { margin: 0; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.admin-totp-setup code { color: var(--ink); }
.admin-shell { min-height: 100vh; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 86px; padding: 0 3rem; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-header-actions { display: flex; align-items: center; gap: 1.1rem; }
.admin-status { color: var(--muted); font-size: 0.75rem; }
.status-dot { display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.32rem; background: var(--green); border-radius: 50%; vertical-align: middle; }
.admin-main { width: min(100% - 3rem, 1440px); margin: 0 auto; padding: 4rem 0 6rem; }
.admin-intro { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding-bottom: 3rem; }
.admin-intro h1 { max-width: 760px; margin-bottom: 1rem; font-size: clamp(2.5rem, 6vw, 5.2rem); }
.admin-intro .lede { margin-bottom: 0; }
.admin-note { max-width: 300px; padding: 1rem; background: var(--white); border: 1px solid var(--line); }
.admin-note p { display: inline; color: var(--muted); font-size: 0.76rem; }
.admin-note strong { color: var(--ink); font-weight: 500; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 1.5rem; background: var(--line); border: 1px solid var(--line); }
.admin-stat { min-height: 105px; padding: 1.1rem; background: var(--white); }
.admin-stat strong { display: block; margin-bottom: 0.8rem; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; }
.admin-stat span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 1.5rem; align-items: start; }
.admin-card { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); }
.admin-card :disabled { cursor: not-allowed; opacity: 0.52; }
.admin-card .section-heading { align-items: start; }
.admin-card h2 { font-size: 2rem; }
.quick-add-card { min-width: 0; }
.section-chip { flex-shrink: 0; }
.upload-drop { display: flex !important; align-items: center; gap: 1rem; min-height: 130px; padding: 1rem; border: 1px dashed var(--line-strong); cursor: pointer; color: var(--ink) !important; }
.upload-drop input { display: none; }
.upload-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid var(--ink); font-size: 1.3rem; }
.upload-drop strong, .upload-drop small { display: block; }
.upload-drop strong { font-size: 0.86rem; font-weight: 500; }
.upload-drop small { margin-top: 0.2rem; color: var(--muted); font-size: 0.74rem; }
.photo-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; }
.photo-preview:empty { display: none; }
.photo-thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; flex-wrap: wrap; gap: 0.2rem; padding: 0.25rem; background: rgba(17,17,17,0.75); }
.photo-thumb figcaption button { padding: 0.18rem 0.28rem; color: var(--white); border: 1px solid rgba(255,255,255,0.55); background: transparent; cursor: pointer; font-size: 0.58rem; }
.photo-thumb[data-cover="true"]::after { content: 'cover'; position: absolute; left: 0.25rem; bottom: 0.25rem; padding: 0.15rem 0.25rem; color: var(--white); background: var(--ink); font-size: 0.6rem; }
.payment-options { display: grid; gap: 0.6rem; padding: 0; border: 0; }
.payment-options legend { margin-bottom: 0.15rem; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.04em; }
.payment-options label { display: flex; grid-template-columns: unset; align-items: center; gap: 0.55rem; color: var(--ink); font-size: 0.82rem; }
.payment-options input { width: auto; accent-color: var(--ink); }
.latest-quote { margin-top: 1.2rem; }
.latest-quote:empty { display: none; }
.quote-callout { padding: 1rem; background: var(--soft); font-size: 0.78rem; }
.quote-callout strong { display: block; margin-bottom: 0.35rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.quote-callout p { margin: 0; color: var(--muted); }
.inventory-card, .quotes-card { margin-top: 1.5rem; }
.table-tools { display: flex; align-items: center; gap: 0.65rem; }
.table-tools input { width: 200px; padding: 0.6rem; }
.inventory-table-wrap { overflow-x: auto; }
.inventory-table { width: 100%; border-collapse: collapse; text-align: left; }
.inventory-table th { padding: 0.65rem 0.5rem; color: var(--muted); border-bottom: 1px solid var(--ink); font-size: 0.67rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.inventory-table td { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); font-size: 0.78rem; vertical-align: top; }
.inventory-table td:first-child { min-width: 210px; }
.table-object { font-family: var(--serif); font-size: 0.97rem; }
.table-object small { display: block; margin-top: 0.2rem; color: var(--muted); font-family: var(--sans); font-size: 0.68rem; }
.table-state { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--green); }
.table-state::before { content: ''; width: 0.45rem; height: 0.45rem; background: currentColor; border-radius: 50%; }
.table-state.muted { color: var(--muted); }
.table-action { color: var(--copper); border: 0; background: transparent; cursor: pointer; font-size: 0.74rem; }
.quote-list { display: grid; gap: 0.75rem; }
.quote-list:empty::after { content: 'No quotes yet. Create one from the reservation panel.'; padding: 1.5rem; color: var(--muted); background: var(--soft); font-size: 0.82rem; }
.admin-quote-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem; border: 1px solid var(--line); }
.admin-quote-row h3 { margin-bottom: 0.3rem; font-size: 1.15rem; }
.admin-quote-row p { margin: 0; color: var(--muted); font-size: 0.75rem; }
.quote-status { align-self: start; color: var(--copper); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.quote-actions { display: grid; align-content: start; justify-items: end; gap: 0.45rem; }
.draft-list { display: grid; gap: 0.65rem; }
.draft-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--line); }
.draft-row strong, .draft-row span { display: block; }
.draft-row strong { font-family: var(--serif); font-size: 1rem; font-weight: 400; }
.draft-row span { margin-top: 0.2rem; color: var(--muted); font-size: 0.72rem; }
.draft-row > div:last-child { display: flex; gap: 0.65rem; }
.admin-footer { width: min(100% - 3rem, 1440px); margin: 0 auto; padding: 1.2rem 0 2rem; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.75rem; }

@media (max-width: 1100px) {
  .primary-nav { gap: 1.15rem; }
  .primary-nav > a, .nav-details summary { font-size: 0.7rem; }
  .hero { gap: 3rem; }
  .admin-grid { grid-template-columns: 1fr; }
  .quote-card { order: -1; }
}

@media (max-width: 760px) {
  .site-header, .primary-nav, main, .site-footer, .admin-main, .admin-footer { width: min(100% - 2rem, 1600px); }
  .site-header { min-height: 72px; gap: 0.7rem; }
  .wordmark { gap: 0.45rem; }
  .wordmark-mark { font-size: 0.9rem; }
  .wordmark-name { max-width: 130px; white-space: normal; font-size: 0.82rem; line-height: 1.05; }
  .header-actions { gap: 0.15rem; }
  .search-box { display: none; }
  .basket-label { display: none; }
  .mobile-menu-button { display: inline-block; }
  .primary-nav { display: none; min-height: auto; padding: 0.6rem 0 1rem; flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a, .nav-details summary { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
  .nav-dropdown { position: static; width: 100%; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); }
  .nav-dropdown a { padding-left: 0.8rem; }
  .hero { display: flex; flex-direction: column; min-height: 0; padding: 4rem 0; gap: 3rem; }
  .hero-aside { width: 100%; min-height: 0; }
  .hero-logo-panel { min-height: 280px; }
  .intro-band, .split-promo, .service-form-shell, .content-columns, .account-shell, .inquiry-layout { grid-template-columns: 1fr; }
  .intro-band p:last-child { text-align: left; }
  .object-grid, .services-grid { grid-template-columns: 1fr; }
  .split-promo-copy { padding: 2rem 0; }
  .split-promo-image { min-height: 300px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-toolbar-search { width: 100%; }
  .detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .detail-visual { position: static; max-height: none; }
  .detail-meta-grid { grid-template-columns: 1fr 1fr; }
  .account-nav { position: static; }
  .footer-brand { display: block; }
  .footer-brand p { margin-top: 1rem; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .footer-columns > div:nth-child(3), .footer-columns > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { display: grid; gap: 0.3rem; }
  .quote-summary { grid-template-columns: 1fr; }
  .quote-summary > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .admin-header { min-height: 70px; padding: 0 1rem; }
  .admin-header .wordmark-name { display: none; }
  .admin-header-actions { gap: 0.4rem; }
  .admin-status { display: none; }
  .admin-main { padding-top: 2.5rem; }
  .admin-intro { display: block; }
  .admin-note { max-width: none; margin-top: 1.5rem; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-card { padding: 1rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .table-tools { width: 100%; }
  .table-tools input { flex: 1; width: auto; }
  .two-up { grid-template-columns: 1fr; }
  .photo-preview { grid-template-columns: repeat(4, 1fr); }
  .admin-quote-row { grid-template-columns: 1fr; }
  .draft-row { align-items: start; flex-direction: column; }
  .draft-row > div:last-child { width: 100%; justify-content: flex-start; }
  .cookie-banner { display: block; right: 0.6rem; bottom: 0.6rem; left: 0.6rem; width: auto; padding: 1rem; }
  .cookie-actions { justify-content: flex-start; margin-top: 0.8rem; }
}

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