@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Noto+Sans+JP:wght@400;500;600&family=Noto+Sans+TC:wght@400;500;600&family=Noto+Serif+JP:wght@400;500&family=Noto+Serif+TC:wght@400;500&display=swap');

:root {
  --bg: #FAF9F5;
  --surface: #F2EFE9;
  --surface-elevated: #FFFFFF;
  --ink: #161614;
  --ink-secondary: #5A5750;
  --ink-muted: #78746B;
  --rule: #E4E0D6;
  --rule-strong: #C9C3B6;
  --accent: #9A8464;
  --dark-stage: #141413;
  --font-serif: 'Cormorant Garamond', 'Noto Serif TC', 'Noto Serif JP', Georgia, serif;
  --font-sans: 'DM Sans', 'Noto Sans TC', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  font-variant-emoji: text;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

button, a {
  transition: opacity 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease), background-color 0.28s var(--ease);
}

small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

/* ── Header ── */
header {
  height: 80px;
  padding: 0 4.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 30;
}

header button {
  border: 0;
  background: none;
  color: inherit;
}

.seo-site header a {
  text-decoration: none;
  color: inherit;
}

header .brand,
.seo-site header .brand {
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 600;
  padding: 0;
  white-space: nowrap;
}

header .brand span,
.seo-site header .brand span {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-left: 10px;
  font-weight: 400;
  color: var(--ink-secondary);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav button,
.seo-site nav > a {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
}

nav button:hover,
.seo-site nav > a:hover {
  opacity: 1;
  color: var(--accent);
}

.languages {
  display: flex;
  align-items: center;
  gap: 4px;
  border-left: 1px solid var(--rule-strong);
  padding-left: 20px;
  margin-left: 4px;
}

.languages button,
.seo-site .languages a {
  padding: 5px 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-decoration: none;
}

.languages button:hover,
.seo-site .languages a:hover {
  color: var(--ink);
  opacity: 1;
}

.languages button.current,
.seo-site .languages a.current {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}

header nav > a:focus-visible,
.gallery-stage button:focus-visible,
.gallery-stage canvas:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Home ── */
.home {
  max-width: 1720px;
  margin: auto;
}

.intro {
  padding: clamp(56px, 7.5vw, 112px) 4.5vw clamp(40px, 4.5vw, 68px);
}

.intro h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(46px, 6.2vw, 96px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 20px 0 22px;
  white-space: pre-line;
  max-width: 18ch;
}

.intro p {
  font-size: 15px;
  color: var(--ink-secondary);
  max-width: 52ch;
  margin: 0;
  line-height: 1.75;
}

.entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 4.5vw;
}

.entry-card,
.seo-site .entry-card {
  display: block;
  border: 0;
  text-align: left;
  position: relative;
  min-height: clamp(380px, 54vh, 580px);
  overflow: hidden;
  background: var(--dark-stage);
  color: #FAF9F5;
  padding: 0;
  text-decoration: none;
}

.entry-card:nth-child(2) {
  background: #1C1C1A;
}

.entry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: none;
  transition: transform 0.9s var(--ease);
}

.entry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16, 16, 14, 0.84) 0%,
    rgba(16, 16, 14, 0.32) 44%,
    rgba(16, 16, 14, 0.04) 100%
  );
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.entry-card:hover img {
  transform: scale(1.035);
}

.entry-card:hover {
  opacity: 1;
}

.entry-card span {
  position: relative;
  z-index: 2;
  position: absolute;
  inset: auto 7% 8%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry-card span small {
  color: rgba(250, 249, 245, 0.78);
}

.entry-card strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.entry-card em {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  color: rgba(250, 249, 245, 0.86);
  max-width: 44ch;
  line-height: 1.6;
}

.home footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 4.5vw 44px;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-secondary);
}

/* ── Portfolio Shell ── */
.portfolio {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 84px);
  padding: clamp(36px, 4.5vw, 68px) 4.5vw 96px;
  max-width: 1720px;
  margin: auto;
}

.portfolio aside {
  position: sticky;
  top: 116px;
  align-self: start;
}

.portfolio aside h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 16px 0 14px;
}

.portfolio aside p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-secondary);
  max-width: 24ch;
  margin: 0;
}

.portfolio aside > button {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 18px 0 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.side-nav {
  margin: 40px 0 24px;
  border-top: 1px solid var(--rule);
}

.side-nav button,
.seo-site .side-nav a {
  border: 0;
  border-bottom: 1px solid var(--rule);
  width: 100%;
  padding: 15px 0;
  text-align: left;
  background: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--ink-secondary);
}

.side-nav button:hover,
.seo-site .side-nav a:hover {
  color: var(--ink);
  opacity: 1;
}

.side-nav .active,
.seo-site .side-nav a.active {
  font-weight: 600;
  color: var(--ink);
}

.seo-site .side-nav a.active::after {
  content: '—';
  color: var(--accent);
  font-weight: 400;
}

.side-nav span {
  color: var(--ink-muted);
}

.seo-site .side-contact {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 16px 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
}

.seo-site .side-contact:hover {
  color: var(--ink);
  border-color: var(--ink);
  opacity: 1;
}

/* ── Index Grid (Uncropped Archival Matting) ── */
.index-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 18px;
  margin-bottom: 36px;
}

.seo-site .index-head h1 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 600;
}

.index-head span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 32px;
}

.work,
.seo-site .work {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.work:hover {
  opacity: 1;
}

.work > div {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  padding: clamp(14px, 2vw, 24px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.35s var(--ease);
}

.work:hover > div {
  background: #EAE6DC;
}

.work img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 28px rgba(20, 20, 18, 0.08);
  transition: transform 0.65s var(--ease), box-shadow 0.65s var(--ease);
}

.work:hover img {
  transform: scale(1.022);
  box-shadow: 0 16px 36px rgba(20, 20, 18, 0.12);
}

.work p {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: baseline;
  margin: 16px 0 0;
}

.work p small {
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.work strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}

.work em {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-secondary);
  margin-top: 4px;
}

/* ── Work Detail ── */
.detail {
  max-width: 920px;
}

.detail .back,
.seo-site .detail .back {
  display: inline-block;
  text-decoration: none;
  color: var(--ink-secondary);
  background: none;
  border: 0;
  padding: 0 0 36px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail .back:hover {
  color: var(--ink);
  opacity: 1;
}

.detail > small {
  display: block;
  margin-bottom: 12px;
}

.detail h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.detail h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 28px;
  color: var(--ink-secondary);
}

.detail h3.work-alt-title {
  margin-bottom: 14px;
}

.detail .work-spec-line {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin: 14px 0 40px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.detail-images figure {
  margin: 0 0 48px;
}

.detail-images img {
  max-width: 100%;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: var(--surface);
  padding: clamp(12px, 2vw, 28px);
  cursor: zoom-in;
  display: block;
}

.detail-images figcaption {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-top: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bodytext {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 15px;
  color: var(--ink);
  max-width: 62ch;
  margin: 32px 0 56px;
}

.detail-description {
  margin: 28px 0 44px;
}

/* ── Profile / About ── */
.profile .bodytext {
  white-space: pre-wrap;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.profile h1 .profile-name-ja {
  display: block;
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-top: 10px;
  color: var(--ink-secondary);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  font-size: 13px;
  margin-top: -12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.contact-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 4px;
}

.contact-links a:hover {
  border-color: var(--ink);
  opacity: 1;
}

/* ── Editorial Project Layout (Existence Record) ── */
.existence,
.seo-site .existence {
  max-width: 1040px;
  margin-top: 0;
}

.existence .back {
  padding-bottom: 36px;
}

.existence-intro {
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 64px;
}

.existence-intro h1 {
  max-width: 820px;
}

.existence-intro h3 {
  margin-bottom: 48px;
}

.intro-grid,
.seo-site .intro-grid {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 36px;
  align-items: start;
  padding: 40px 0 52px;
  border-top: 1px solid var(--rule);
}

.intro-grid h2,
.section-copy h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 14px 0 0;
}

.intro-grid p,
.section-copy p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  max-width: 62ch;
  white-space: pre-line;
  margin: 0;
}

.section-no {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.existence-section {
  display: grid;
  grid-template-columns: minmax(220px, 31%) minmax(0, 1fr);
  gap: 36px;
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
}

.section-copy {
  position: sticky;
  top: 112px;
  align-self: start;
  padding-right: 12px;
}

.section-copy p {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-top: 22px;
}

.section-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.section-gallery figure {
  margin: 0;
}

.section-gallery figure:first-child {
  grid-column: 1 / -1;
}

.section-gallery img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: contain;
  background: var(--surface);
  padding: 12px;
  cursor: zoom-in;
}

.section-gallery figcaption {
  text-align: right;
  color: var(--ink-muted);
  font-size: 11px;
  margin: 8px 0 12px;
}

.section-gallery figure:not(:first-child) img {
  max-height: 360px;
}

.installation-gallery figure:first-child img {
  max-height: 62vh;
}

/* ── Work Facts ── */
.work-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 28px 0 40px;
  padding: 12px 0;
}

.work-facts > div {
  padding: 9px 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
}

.work-facts dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.work-facts dd {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
}

.work-facts.compact {
  display: block;
  margin: 20px 0 0;
  border-bottom: 0;
  padding: 8px 0;
}

.work-facts.compact > div {
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
}

.section-copy .work-facts + p {
  margin-top: 22px;
}

/* ── 3D Gallery ── */
.gallery-page {
  width: 100%;
  max-width: 1150px;
  min-width: 0;
}

.gallery-heading {
  padding: 0 0 26px;
}

.gallery-heading h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.015em;
  margin: 14px 0 10px;
}

.gallery-heading p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin: 0;
}

.gallery-stage {
  height: min(67vh, 720px);
  min-height: 460px;
  background: var(--dark-stage);
  position: relative;
  overflow: hidden;
}

.gallery-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline-offset: -3px;
}

.gallery-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #d8cfc0;
  background: var(--dark-stage);
}

.gallery-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--dark-stage);
}

.gallery-fallback img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-fallback p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 13px 18px;
  background: rgba(20, 20, 19, 0.92);
  text-align: center;
  font-size: 12px;
  color: #eee6d8;
}

.gallery-topline {
  position: absolute;
  top: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #e8dfd1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.gallery-look {
  position: absolute;
  right: 24px;
  bottom: 24px;
  border: 1px solid rgba(189, 167, 127, 0.55);
  background: rgba(22, 22, 20, 0.88);
  color: #f2e9dd;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.gallery-mobile-controls {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 20px;
  text-align: center;
}

.gallery-mobile-controls button {
  width: 46px;
  height: 46px;
  margin: 2px;
  background: rgba(22, 22, 20, 0.88);
  border: 1px solid rgba(189, 167, 127, 0.55);
  color: #f2e9dd;
  font-size: 20px;
  touch-action: none;
}

.gallery-help {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin: 14px 0 28px;
}

.gallery-caption {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 24px 0 28px;
}

.gallery-counter {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.gallery-caption h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  margin: 0 0 8px;
}

.gallery-caption p {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 0 0 12px;
}

.gallery-caption small {
  display: block;
  font-size: 12px;
  color: var(--ink-secondary);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.6;
}

.gallery-caption a {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gallery-arrows {
  display: flex;
  gap: 8px;
}

.gallery-arrows button {
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}

.gallery-arrows button:hover:not(:disabled) {
  border-color: var(--ink);
  opacity: 1;
}

.gallery-arrows button:disabled {
  opacity: 0.25;
  cursor: default;
}

.gallery-caption-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 18px;
}

.gallery-caption-links button {
  background: none;
  border: 1px solid var(--rule-strong);
  padding: 9px 14px;
  font-size: 12px;
}

.gallery-caption-links a {
  margin-top: 0;
}

.gallery-list {
  margin: 28px 0 70px;
  border-top: 1px solid var(--rule);
}

.gallery-list summary {
  padding: 18px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.gallery-list ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.gallery-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}

.gallery-list button {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 13px;
}

.gallery-list a {
  text-decoration: none;
  font-size: 13px;
  color: var(--ink-secondary);
}

/* ── Museum Lightbox (Progressive Enhancement via ui.js) ── */
.museum-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 18, 16, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.museum-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.museum-lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.museum-lightbox-bar {
  position: fixed;
  top: 20px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #EAE6DC;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.museum-lightbox-close {
  background: none;
  border: 1px solid rgba(234, 230, 220, 0.35);
  color: #EAE6DC;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.museum-lightbox-close:hover {
  border-color: #EAE6DC;
  opacity: 1;
}

.museum-lightbox-caption {
  margin-top: 16px;
  color: rgba(234, 230, 220, 0.78);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ── Admin & Editor Compatibility ── */
.admin { padding: 5vw 4.5vw; max-width: 1700px; margin: auto; }
.admin-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 35px; }
.admin h1 { font: 400 54px var(--font-serif); margin: 14px 0; }
.admin-title p { font-size: 13px; color: var(--ink-secondary); }
.primary { background: var(--ink); border: 1px solid var(--ink); color: #fff; padding: 14px 22px; font-size: 12px; }
.admin-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--rule-strong); background: #fff; min-height: 660px; }
.item-list { border-right: 1px solid var(--rule-strong); max-height: 80vh; overflow: auto; }
.item-list button { width: 100%; display: flex; align-items: center; text-align: left; gap: 13px; padding: 11px; border: 0; border-bottom: 1px solid var(--rule); background: #fff; color: #222; }
.item-list button.chosen { background: var(--surface); }
.item-list strong, .item-list small { display: block; }
.item-list strong { font-size: 12px; font-weight: 600; }
.item-list small { font-size: 10px; letter-spacing: 0; margin-top: 5px; color: var(--ink-muted); }
.thumb { width: 55px; height: 55px; flex: none; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.editor { padding: 35px; min-width: 0; }
.editor-head { display: flex; justify-content: space-between; margin-bottom: 30px; }
.editor-head button { border: 0; background: none; font-size: 11px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.editor label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 20px; }
.editor input:not([type=checkbox]):not([type=file]), .editor select, .editor textarea { display: block; width: 100%; border: 1px solid var(--rule-strong); background: #fff; padding: 12px; margin-top: 8px; border-radius: 0; font-size: 13px; color: #222; }
.editor textarea { resize: vertical; line-height: 1.6; }
.image-head { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule); margin-top: 25px; }
.image-head h3 { font-size: 16px; font-weight: 500; }
.upload { padding: 10px 14px; border: 1px solid var(--rule-strong); cursor: pointer !important; margin: 0 !important; }
.upload input { display: none; }
.image-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.image-list > div { background: var(--surface); padding: 5px; }
.image-list img { width: 100%; height: 110px; object-fit: cover; }
.image-list button { background: none; border: 0; font-size: 10px; margin: 5px; }
.actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--rule); margin: 30px 0; padding-top: 25px; }
.actions label { margin: 0; }
.actions input[type=number] { width: 70px !important; display: inline !important; }
.actions span { font-size: 12px; color: var(--ink-secondary); }
.editor > a { font-size: 11px; }
.empty { text-align: center; padding: 160px 30px; color: var(--ink-secondary); }
.empty h2 { font: 400 30px var(--font-serif); color: var(--ink); }
.sections-editor { border-top: 1px solid var(--rule); margin-top: 24px; }
.sections-editor h3 { font-size: 16px; font-weight: 500; }
.sections-editor details { border-top: 1px solid var(--rule); padding: 12px 0; }
.sections-editor summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.sections-editor details > div { padding: 15px 0; border-top: 1px dashed var(--rule); }
.fact-fields { border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 4px; }
.spec-editor { border-top: 1px solid var(--rule); margin: 6px 0 24px; padding-top: 16px; }
.spec-editor > p { font-size: 12px; color: var(--ink-secondary); margin: 0 0 16px; }
.spec-editor > label { margin-bottom: 13px; }
.gallery-order-editor { border: 1px solid var(--rule-strong); background: #fff; margin: 0 0 25px; padding: 0 22px 22px; }
.gallery-order-editor summary { cursor: pointer; padding: 18px 0; font-size: 13px; font-weight: 700; }
.gallery-order-editor summary span { font-size: 11px; color: var(--ink-secondary); margin-left: 8px; }
.gallery-order-editor > p { font-size: 12px; color: var(--ink-secondary); line-height: 1.6; margin: 0 0 14px; }
.gallery-order-editor ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.gallery-order-editor li { display: flex; gap: 13px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); cursor: grab; }
.gallery-order-editor li img { width: 45px; height: 45px; object-fit: cover; }
.gallery-order-editor li strong { font-size: 12px; font-weight: 600; min-width: 0; flex: 1; }
.gallery-order-editor li small { font-size: 10px; color: var(--ink-muted); letter-spacing: 0; }
.gallery-order-editor li button { background: #fff; border: 1px solid var(--rule-strong); width: 31px; height: 31px; margin-left: 4px; }
.gallery-order-editor li button:disabled { opacity: 0.25; cursor: default; }
.gallery-drag, .gallery-sort-index { font-size: 12px; color: var(--ink-muted); }
.gallery-order-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.gallery-order-actions span { font-size: 12px; color: var(--ink-secondary); }

/* ── Responsive ── */
@media (pointer: coarse) {
  .gallery-mobile-controls { display: block; }
  .gallery-look { display: none; }
}

@media (max-width: 900px) {
  header { gap: 12px; }
  nav { gap: 16px; }
  .languages { padding-left: 12px; }
}

@media (max-width: 800px) {
  header {
    height: auto;
    min-height: 64px;
    padding: 12px 20px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  header .brand,
  .seo-site header .brand {
    font-size: 12px;
  }
  header .brand span,
  .seo-site header .brand span {
    display: none;
  }
  nav {
    margin-left: auto;
    gap: 12px;
  }
  nav button,
  .seo-site nav > a {
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .languages {
    gap: 2px;
    padding-left: 10px;
  }
  .languages button,
  .seo-site .languages a {
    font-size: 11px;
    padding: 4px;
  }
  .intro {
    padding: 48px 20px 32px;
  }
  .entry {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 16px;
  }
  .entry-card,
  .seo-site .entry-card {
    min-height: 320px;
  }
  .home footer {
    padding: 28px 20px 36px;
  }
  .portfolio {
    display: block;
    padding: 32px 20px 64px;
  }
  .portfolio aside {
    position: static;
    margin-bottom: 32px;
  }
  .side-nav {
    margin: 24px 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 0;
  }
  .side-nav button,
  .seo-site .side-nav a {
    width: auto;
    border: 1px solid var(--rule);
    padding: 8px 14px;
    font-size: 12px;
  }
  .seo-site .side-nav a.active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
  }
  .seo-site .side-nav a.active::after {
    display: none;
  }
  .works {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .existence-section {
    display: block;
    padding: 40px 0;
  }
  .section-copy {
    position: static;
    margin-bottom: 24px;
  }
  .intro-grid,
  .seo-site .intro-grid {
    display: block;
  }
  .intro-grid p {
    margin-top: 18px;
  }
  .section-gallery {
    gap: 10px;
  }
  .section-gallery figure:not(:first-child) img {
    max-height: 260px;
  }
  .admin { padding: 35px 15px; }
  .admin-grid { display: block; }
  .item-list { max-height: 300px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .editor { padding: 20px; }
  .fields { grid-template-columns: 1fr; }
  .admin-title { align-items: start; gap: 10px; }
  .admin h1 { font-size: 36px; }
  .admin-title .primary { white-space: nowrap; }
}

@media (max-width: 700px) {
  .work-facts { grid-template-columns: 1fr; }
  .work-facts > div { grid-template-columns: 82px minmax(0, 1fr); }
  .gallery-stage { height: 56vh; min-height: 390px; }
  .gallery-topline { top: 14px; left: 14px; right: 14px; font-size: 9px; }
  .gallery-caption { grid-template-columns: 1fr auto; gap: 12px; }
  .gallery-caption .gallery-counter { grid-column: 1 / -1; }
  .gallery-arrows button { width: 38px; height: 38px; }
  .gallery-heading h1 { font-size: 36px; }
}

/* ── Elevated Editorial Homepage ── */
.hero-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  padding: clamp(44px, 6vw, 88px) 4.5vw clamp(48px, 6vw, 84px);
  border-bottom: 1px solid var(--rule);
}

.hero-copy small {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(42px, 5.2vw, 82px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  white-space: pre-line;
}

.hero-statement {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-secondary);
  max-width: 48ch;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
}

.btn-editorial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
}

.btn-editorial:hover {
  background: transparent;
  color: var(--ink);
  opacity: 1;
}

.btn-editorial-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 4px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule-strong);
}

.btn-editorial-ghost:hover {
  border-color: var(--ink);
  opacity: 1;
}

.hero-plate {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-plate:hover {
  opacity: 1;
}

.hero-plate-frame {
  background: var(--surface);
  padding: clamp(18px, 2.6vw, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  transition: background-color 0.35s var(--ease);
}

.hero-plate:hover .hero-plate-frame {
  background: #EAE6DC;
}

.hero-plate-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 14px 36px rgba(20, 20, 18, 0.1);
  transition: transform 0.7s var(--ease);
}

.hero-plate:hover .hero-plate-frame img {
  transform: scale(1.02);
}

.hero-plate-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  margin-top: 14px;
}

.hero-plate-caption strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
}

.hero-plate-caption span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.home-section {
  padding: clamp(48px, 6vw, 84px) 4.5vw;
  border-bottom: 1px solid var(--rule);
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.home-section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px);
  margin: 8px 0 0;
  letter-spacing: -0.015em;
}

.home-section-head a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 3px;
  white-space: nowrap;
}

.home-section-head a:hover {
  color: var(--ink);
  border-color: var(--ink);
  opacity: 1;
}

.selected-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.selected-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.selected-card:hover {
  opacity: 1;
}

.selected-card-mat {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.35s var(--ease);
}

.selected-card:hover .selected-card-mat {
  background: #EAE6DC;
}

.selected-card-mat img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 22px rgba(20, 20, 18, 0.07);
  transition: transform 0.6s var(--ease);
}

.selected-card:hover .selected-card-mat img {
  transform: scale(1.025);
}

.selected-card-meta {
  margin-top: 14px;
}

.selected-card-meta small {
  display: block;
  font-size: 10px;
  color: var(--ink-muted);
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}

.selected-card-meta strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}

.selected-card-meta em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-secondary);
  margin-top: 3px;
}

.home-section .entry {
  padding: 0;
}

.home-chronology {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(48px, 6vw, 84px) 4.5vw;
}

.home-chronology h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.5vw, 36px);
  margin: 10px 0 18px;
}

.home-chronology p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-secondary);
  max-width: 48ch;
  margin: 0 0 24px;
}

.exhibition-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--rule);
}

.exhibition-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.6;
}

.exhibition-list span {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.home footer {
  margin-top: 0;
}

@media (max-width: 1050px) {
  .selected-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    padding: 36px 20px 40px;
  }
  .home-section {
    padding: 40px 20px;
  }
  .home-chronology {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  .home-section .entry {
    padding: 0;
  }
}

@media (max-width: 560px) {
  .selected-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
