:root {
  --paper: #f7f5ef;
  --panel: #e8e1d6;
  --ink: #171512;
  --soft-ink: #34302b;
  --muted: #6f675f;
  --line: rgba(25, 22, 19, 0.14);
  --soil: #7b4a2d;
  --moss: #596151;
  --white: #fbfaf6;
  --dark: #1d1b17;
  --max: 1240px;
  --shadow: 0 14px 34px rgba(35, 28, 20, 0.13);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 56px;
  padding: 10px max(22px, calc((100vw - var(--max)) / 2 + 22px));
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 11px;
  white-space: nowrap;
}

.brand strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.nav a {
  border-radius: 3px;
  padding: 6px 9px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(122, 68, 41, 0.07);
}

.hero {
  width: min(var(--max), calc(100% - 44px));
  min-height: clamp(500px, 70svh, 640px);
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: stretch;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 530px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 66px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--soil);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 14px 0 0;
  color: var(--soft-ink);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 520;
  line-height: 1.52;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
}

.hero-meta span,
.badge {
  display: grid;
  gap: 2px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--muted);
  font-size: 12px;
}

.hero-meta strong,
.badge strong {
  color: var(--ink);
  font-size: 13px;
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
}

.hero-art {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #d8d0c4;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 520ms ease;
}

.hero-art img.is-fading {
  opacity: 0;
}

.hero-art figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(25, 22, 19, 0.52);
  font-size: 12px;
}

.hero-art figcaption em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.visual-records {
  display: grid;
  gap: 12px;
}

.record-tile {
  display: grid;
  align-content: space-between;
  min-height: 132px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.record-tile strong {
  font-size: 14px;
}

.record-tile span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: clamp(36px, 5vw, 64px) max(22px, calc((100vw - var(--max)) / 2 + 22px));
  border-top: 1px solid var(--line);
}

.section > *,
.section.statement-grid,
.section.bio-grid,
.section.archive-intro,
.section.contact-panel {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section.compact {
  padding-top: clamp(28px, 4vw, 52px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
}

h2,
h3 {
  margin: 0;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.2;
}

h2 {
  font-size: clamp(22px, 2.2vw, 34px);
}

h3 {
  font-size: 16px;
}

.section-head p,
.muted {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--soft-ink);
  font-size: clamp(15px, 1.2vw, 18px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ai-guide {
  margin-top: 24px;
  padding: 16px;
  background: rgba(232, 225, 214, 0.72);
  border: 1px solid var(--line);
}

.ai-guide-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.ai-guide-title {
  display: grid;
  gap: 2px;
}

.ai-guide-title strong {
  font-size: 15px;
}

.ai-guide-title span,
.ai-guide-label {
  color: var(--muted);
  font-size: 11px;
}

.ai-guide-label {
  padding-top: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ai-question-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ai-question {
  min-height: 30px;
  padding: 6px 9px;
  color: var(--soft-ink);
  background: rgba(247, 245, 239, 0.82);
  border: 1px solid rgba(25, 22, 19, 0.14);
  border-radius: 3px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ai-question:hover,
.ai-question[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
}

.ai-answer {
  position: relative;
  margin-top: 12px;
  padding: 14px 15px;
  color: var(--soft-ink);
  background: var(--white);
  border: 1px solid rgba(25, 22, 19, 0.13);
  box-shadow: 0 10px 24px rgba(35, 28, 20, 0.08);
  font-size: 13px;
  line-height: 1.62;
}

.ai-answer::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-left: 1px solid rgba(25, 22, 19, 0.13);
  border-top: 1px solid rgba(25, 22, 19, 0.13);
  transform: rotate(45deg);
}

.ai-answer b {
  color: var(--ink);
}

.statement-grid,
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: start;
}

.statement {
  margin: 0;
  color: var(--soft-ink);
  font-size: 17px;
}

.quote {
  margin: 0;
  padding-top: 18px;
  border-top: 2px solid var(--soil);
  color: var(--soil);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 680;
  line-height: 1.3;
}

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

.work-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.work-card img {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
  background: #d7d0c5;
  box-shadow: var(--shadow);
}

.work-card h3 {
  margin-top: 4px;
}

.work-card p,
.work-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.work-meta {
  display: grid;
  gap: 3px;
  padding-top: 2px;
}

.work-meta span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(25, 22, 19, 0.08);
  padding-top: 3px;
}

.mini-link {
  width: fit-content;
  margin-top: 3px;
  color: var(--soil);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.work-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.work-price strong {
  color: var(--ink);
  font-size: 13px;
}

.purchase-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.purchase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-family: inherit;
  cursor: pointer;
}

.purchase-button.primary {
  color: var(--white);
  background: var(--ink);
}

.purchase-button.ghost {
  grid-column: 1 / -1;
  color: var(--soil);
}

.work-card.featured {
  grid-column: span 1;
}

.work-card.featured img {
  aspect-ratio: 1 / 0.92;
}

.international {
  background: var(--dark);
  color: var(--white);
}

.international > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.international .eyebrow,
.international .muted {
  color: #c8b19d;
}

.international h2 {
  max-width: 760px;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge {
  min-height: 84px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.68);
}

.badge strong {
  color: var(--ink);
  font-size: 14px;
}

.international .badge strong {
  color: var(--white);
}

.international-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  margin-top: 34px;
}

.international-layout img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.page-hero {
  padding: clamp(28px, 4vw, 48px) max(22px, calc((100vw - var(--max)) / 2 + 22px)) clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 780;
  letter-spacing: 0;
}

.archive-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
}

.toc {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.toc-row,
.timeline-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.toc-row strong,
.timeline-row strong {
  color: var(--soil);
}

.selected-pages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.archive-card {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.archive-card img {
  width: 100%;
  aspect-ratio: 656 / 812;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.archive-card {
  cursor: zoom-in;
}

body.has-open-lightbox {
  overflow: hidden;
}

.archive-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: clamp(16px, 3vw, 34px);
}

.archive-lightbox.is-open {
  display: grid;
}

.archive-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 4, 0.82);
  backdrop-filter: blur(10px);
}

.archive-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1120px, 100%);
  max-height: 92vh;
  outline: none;
}

.archive-lightbox figure {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
  width: 100%;
}

.archive-lightbox img {
  width: auto;
  max-width: min(92vw, 980px);
  max-height: 86vh;
  object-fit: contain;
  background: #11100d;
  border: 1px solid rgba(201, 181, 154, 0.22);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.58);
}

.archive-lightbox figcaption {
  display: grid;
  gap: 3px;
  width: min(92vw, 980px);
  color: var(--muted);
  text-align: left;
}

.archive-lightbox figcaption strong {
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.2;
}

.archive-lightbox figcaption span {
  color: var(--muted);
  font-size: 13px;
}

.archive-lightbox-close,
.archive-lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(201, 181, 154, 0.28);
  color: var(--ink);
  background: rgba(21, 19, 15, 0.82);
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.archive-lightbox-close {
  top: 0;
  right: 0;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.archive-lightbox-nav {
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 54px;
  color: #17130f;
  background: rgba(184, 138, 94, 0.9);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.archive-lightbox-prev {
  left: 0;
}

.archive-lightbox-next {
  right: 0;
}

.archive-lightbox-close:hover,
.archive-lightbox-nav:hover {
  border-color: rgba(201, 181, 154, 0.58);
  filter: brightness(1.06);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}

.archive-item {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.archive-item img {
  width: 100%;
  aspect-ratio: 656 / 812;
  object-fit: cover;
  background: #d8d0c4;
}

.bio-photo {
  display: grid;
  gap: 12px;
}

.bio-photo img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.bio-panel {
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.contact-panel > * {
  min-width: 0;
}

.contact-panel > img {
  width: 100%;
  min-width: 0;
}

.contact-artwork-preview {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-artwork-preview img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #0f0e0b;
}

.contact-artwork-preview figcaption {
  display: grid;
  gap: 8px;
}

.contact-artwork-preview figcaption > span {
  color: var(--soil);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-artwork-preview strong {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.2;
}

.contact-artwork-preview dl {
  display: grid;
  gap: 0;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-artwork-preview dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.contact-artwork-preview dt,
.contact-artwork-preview dd {
  margin: 0;
}

.contact-artwork-preview dt {
  color: #8d8376;
}

.contact-artwork-preview dd {
  color: var(--soft-ink);
  font-weight: 700;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
}

.contact-option {
  padding: 16px;
  background: rgba(255, 255, 255, 0.38);
}

.contact-option strong {
  display: block;
  margin-bottom: 6px;
}

.email-cta {
  display: inline-flex;
  max-width: 100%;
  margin-top: 22px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-list a,
.contact-list span {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 4vw, 52px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero,
  .hero-visual,
  .statement-grid,
  .bio-grid,
  .international-layout,
  .archive-intro,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 420px;
    order: -1;
  }

  .works-grid,
  .selected-pages,
  .badge-grid,
  .contact-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .hero-meta,
  .hero-visual,
  .works-grid,
  .selected-pages,
  .badge-grid,
  .contact-options {
    grid-template-columns: 1fr;
  }

  .section-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .toc-row,
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .archive-lightbox {
    padding: 14px;
  }

  .archive-lightbox-panel {
    max-height: 94vh;
  }

  .archive-lightbox img {
    max-width: 94vw;
    max-height: 78vh;
  }

  .archive-lightbox figcaption {
    width: 94vw;
  }

  .archive-lightbox-close {
    top: -44px;
    right: 0;
  }

  .archive-lightbox-nav {
    width: 38px;
    height: 48px;
    font-size: 29px;
  }

  .archive-lightbox-prev {
    left: -4px;
  }

  .archive-lightbox-next {
    right: -4px;
  }
}

/* Dark gallery theme */
:root {
  --paper: #15130f;
  --panel: #211f1a;
  --panel-2: #29251f;
  --ink: #f4efe4;
  --soft-ink: #d8cfc0;
  --muted: #a49a8d;
  --line: rgba(201, 181, 154, 0.18);
  --soil: #b88a5e;
  --moss: #8e8a73;
  --white: #fbf7ee;
  --dark: #0e0d0b;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

body {
  background: var(--paper);
  color: var(--ink);
}

.site-header {
  background: rgba(21, 19, 15, 0.92);
  border-bottom-color: rgba(201, 181, 154, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.brand strong,
.nav a:hover,
.nav a[aria-current="page"],
.hero-meta strong,
.badge strong,
.work-price strong,
.ai-answer b {
  color: var(--ink);
}

.brand span,
.nav,
.hero-meta span,
.badge,
.record-tile span,
.section-head p,
.muted,
.work-card p,
.work-meta,
.work-price,
.archive-card,
.archive-item,
.contact-list,
.site-footer {
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(184, 138, 94, 0.12);
}

.hero {
  min-height: clamp(520px, 72svh, 690px);
}

.hero-kicker,
.eyebrow,
.toc-row strong,
.timeline-row strong,
.mini-link,
.purchase-button.ghost {
  color: var(--soil);
}

.hero-subtitle,
.lead,
.statement {
  color: var(--soft-ink);
}

.hero-art {
  background: #0f0e0b;
  border: 1px solid rgba(201, 181, 154, 0.18);
  box-shadow: var(--shadow);
}

.hero-art img,
.work-card img,
.archive-card img,
.archive-item img,
.bio-photo img,
.international-layout img,
.contact-panel > img {
  filter: saturate(1.05) contrast(1.04);
}

.hero-art figcaption {
  color: var(--white);
  background: rgba(14, 13, 11, 0.76);
  border: 1px solid rgba(201, 181, 154, 0.18);
}

.hero-meta {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.hero-meta span,
.badge {
  background: rgba(255, 255, 255, 0.045);
}

.record-tile,
.work-card,
.bio-panel,
.contact-option,
.archive-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.record-tile,
.work-card,
.contact-option {
  padding: 14px;
}

.work-card {
  gap: 9px;
  border-bottom: 1px solid var(--line);
}

.work-card img,
.archive-item img {
  background: #0f0e0b;
  box-shadow: none;
}

.work-meta span {
  border-top-color: rgba(201, 181, 154, 0.13);
}

.work-meta b,
.work-card h3,
.contact-option strong {
  color: var(--soft-ink);
}

.work-meta em {
  color: #8d8376;
  font-style: normal;
}

.button,
.purchase-button {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
}

.button:hover,
.purchase-button:hover {
  border-color: rgba(184, 138, 94, 0.54);
  background: rgba(184, 138, 94, 0.12);
}

.button.primary,
.purchase-button.primary,
.email-cta {
  color: #17130f;
  background: var(--soil);
  border-color: var(--soil);
}

.purchase-button.ghost {
  background: rgba(184, 138, 94, 0.1);
}

.payment-notice {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 22px;
}

.payment-notice.is-open {
  display: grid;
}

.payment-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.72);
  backdrop-filter: blur(8px);
}

.payment-notice-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: clamp(22px, 5vw, 34px);
  background: #1c1914;
  border: 1px solid rgba(201, 181, 154, 0.28);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  outline: none;
}

.payment-notice-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 5vw, 34px);
}

.payment-notice-panel > p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--soft-ink);
  font-size: 15px;
  line-height: 1.72;
}

.payment-notice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}

.payment-notice-actions .purchase-button {
  min-height: 42px;
  font-size: 12px;
}

.ai-guide {
  background: rgba(33, 31, 26, 0.96);
  border-color: rgba(201, 181, 154, 0.2);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.ai-guide-title span,
.ai-guide-label {
  color: #9d9386;
}

.ai-question {
  color: var(--soft-ink);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(201, 181, 154, 0.18);
}

.ai-question:hover,
.ai-question[aria-pressed="true"] {
  color: #17130f;
  background: var(--soil);
  border-color: var(--soil);
}

.ai-answer {
  color: var(--soft-ink);
  background: #181713;
  border-color: rgba(201, 181, 154, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.ai-answer::before {
  background: #181713;
  border-left-color: rgba(201, 181, 154, 0.18);
  border-top-color: rgba(201, 181, 154, 0.18);
}

.section,
.page-hero,
.site-footer,
.timeline,
.contact-list,
.toc,
.work-price {
  border-color: var(--line);
}

.page-hero {
  background: #181612;
}

.quote {
  border-top-color: var(--soil);
  color: #d1a679;
}

.international {
  background: #0f0e0b;
}

.international .eyebrow,
.international .muted {
  color: #c4ad93;
}

.badge-grid {
  border-color: rgba(201, 181, 154, 0.2);
}

.international .badge {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(251, 247, 238, 0.7);
}

.archive-intro,
.contact-panel,
.statement-grid,
.bio-grid {
  color: var(--soft-ink);
}

.selected-pages .archive-card {
  padding: 10px;
}

.archive-card img {
  background: #0f0e0b;
}

.bio-panel {
  background: var(--panel);
}

.toc-row,
.timeline-row,
.contact-list a,
.contact-list span {
  border-bottom-color: var(--line);
}

.contact-options {
  border-color: var(--line);
}

@media (max-width: 640px) {
  .site-header {
    background: #15130f;
  }

  .hero {
    width: min(var(--max), calc(100% - 28px));
    padding-top: 18px;
  }

  .section,
  .page-hero {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Home archive-book video layout */
.hero-visual-book {
  grid-template-columns: 1fr;
  align-content: center;
  gap: 12px;
}

.hero-video-frame {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.hero-book-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f0e0b;
}

.archive-book-motion {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1814;
  isolation: isolate;
}

.archive-book-motion::before {
  content: "";
  position: absolute;
  inset: 9% 9%;
  background: #e8dfcf;
  border: 1px solid rgba(35, 28, 20, 0.24);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.archive-book-motion::after {
  content: "127-page Archive Book";
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 5;
  color: rgba(31, 25, 19, 0.72);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-page {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(34%, 238px);
  height: 74%;
  object-fit: cover;
  background: #f7f1e6;
  border: 1px solid rgba(35, 28, 20, 0.2);
  box-shadow: 0 16px 34px rgba(35, 28, 20, 0.24);
  opacity: 0;
  transform: translate(-50%, -50%) rotateY(-62deg) translateX(90px);
  transform-origin: left center;
  animation: archiveBookTurn 18s infinite;
}

.book-page-a { animation-delay: 0s; }
.book-page-b { animation-delay: 3s; }
.book-page-c { animation-delay: 6s; }
.book-page-d { animation-delay: 9s; }
.book-page-e { animation-delay: 12s; }
.book-page-f { animation-delay: 15s; }

@keyframes archiveBookTurn {
  0% {
    opacity: 0;
    transform: translate(-38%, -50%) rotateY(-72deg) translateX(92px);
  }

  7%,
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) rotateY(0deg) translateX(0);
  }

  24% {
    opacity: 0;
    transform: translate(-62%, -50%) rotateY(54deg) translateX(-76px);
  }

  100% {
    opacity: 0;
    transform: translate(-62%, -50%) rotateY(54deg) translateX(-76px);
  }
}

.hero-video-frame figcaption {
  left: 16px;
  bottom: 14px;
}

.hero-visual-book .visual-records {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-visual-book .record-tile {
  min-height: 118px;
  padding: 14px;
}

@media (max-width: 900px) {
  .hero-video-frame {
    min-height: 0;
    order: 0;
  }

  .hero-visual-book .visual-records {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-video-frame {
    aspect-ratio: 4 / 3;
  }

  .archive-book-motion::before {
    inset: 8% 6%;
  }

  .archive-book-motion::after {
    top: 14px;
    left: 14px;
    font-size: 9px;
  }

  .book-page {
    width: min(46%, 154px);
    height: 72%;
  }

  .hero-visual-book .visual-records {
    grid-template-columns: 1fr;
  }

  .hero-visual-book .record-tile {
    min-height: 86px;
  }
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(183, 132, 82, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.language-switch button {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--paper);
  background: rgba(183, 132, 82, 0.26);
}

.hero-meta em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

.hero-fixed-work {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.hero-fixed-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.selected-work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.archive-work-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  min-height: 0;
}

.archive-work-card img {
  height: 146px;
  min-height: 146px;
}

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

.archive-work-card .work-card-body h3 {
  margin-top: 0;
}

.archive-work-card .work-meta {
  gap: 6px;
}

.archive-work-card .work-meta span {
  padding-bottom: 5px;
}

.archive-work-card .purchase-actions {
  grid-template-columns: 1fr;
  margin-top: auto;
}

.archive-work-card .purchase-button {
  min-height: 32px;
  padding: 8px 9px;
  font-size: 11px;
}

.international-record {
  border-top: 1px solid rgba(183, 132, 82, 0.25);
  border-bottom: 1px solid rgba(183, 132, 82, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.record-grid,
.review-grid,
.note-grid {
  display: grid;
  gap: 12px;
}

.record-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-grid,
.note-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-card,
.review-card,
.note-card {
  border: 1px solid rgba(183, 132, 82, 0.22);
  background: rgba(255, 255, 255, 0.035);
  color: var(--paper);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.record-card {
  padding: 20px;
  min-height: 190px;
}

.record-card span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--paper);
  font-size: 18px;
}

.record-card p,
.review-card p,
.note-card p {
  color: var(--muted);
  line-height: 1.75;
}

.support-image-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 12px;
  margin-top: 18px;
}

.support-image-grid figure {
  margin: 0;
  border: 1px solid rgba(183, 132, 82, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.support-image-grid img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
}

.support-image-grid figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 12px;
}

.review-card,
.note-card {
  padding: 0;
}

.review-card summary,
.note-card summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}

.note-card summary {
  font-weight: 800;
}

.review-card summary::-webkit-details-marker,
.note-card summary::-webkit-details-marker {
  display: none;
}

.review-card summary span {
  font-weight: 800;
}

.review-card summary em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-card p,
.note-card p,
.review-card small {
  display: block;
  padding: 0 20px 20px;
  margin: 0;
}

.review-card small {
  color: rgba(245, 239, 229, 0.52);
  line-height: 1.6;
}

.review-card[open] summary,
.note-card[open] summary {
  border-bottom: 1px solid rgba(183, 132, 82, 0.18);
}

html[data-lang="en"] .ai-guide-title span,
html[data-lang="en"] .hero-subtitle {
  word-break: normal;
}

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

  .archive-work-card {
    grid-template-columns: 96px 1fr;
  }
}

@media (max-width: 760px) {
  .language-switch {
    width: 100%;
    justify-content: center;
  }

  .hero-fixed-work {
    aspect-ratio: 4 / 3;
  }

  .selected-work-grid,
  .archive-work-grid,
  .record-grid,
  .review-grid,
  .note-grid,
  .support-image-grid {
    grid-template-columns: 1fr;
  }

  .archive-work-card {
    grid-template-columns: 92px 1fr;
  }

  .archive-work-card img {
    height: 132px;
    min-height: 132px;
  }

  .support-image-grid img {
    height: 210px;
  }
}
