:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-soft: #f1f0ed;
  --text: #1f1f1d;
  --muted: #6d6963;
  --line: #e2ddd6;
  --accent: #b99f84;
  --accent-soft: #ece2d7;

  --serif: "Cormorant Garamond", serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-soft: 10px;
  --max: 1220px;
  --shadow: 0 20px 44px rgba(31, 31, 29, 0.06);
  --shadow-soft: 0 8px 22px rgba(31, 31, 29, 0.04);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

html {
  background: #f6f6f4;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.62;
  letter-spacing: 0.01em;
  background: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

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

.brand-main {
  font-family: var(--serif);
  font-size: 50px;
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: #252523;
}

.brand-sub {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9f876d;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.lang-switcher-floating {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1001;
  margin-left: 0;
  padding: 8px;
  border-left: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-btn.is-active {
  background: #1f1f1d;
  color: #fff;
  border-color: #1f1f1d;
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 2px;
}

.site-nav a:hover { color: var(--text); }

.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px !important;
  color: var(--text) !important;
  background: var(--surface);
}

.nav-cta:hover {
  border-color: #d0c6b9;
  background: #fcfbfa;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: #262624;
}

.book-hero {
  padding-top: 58px;
}

.book-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}

.book-hero-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  font-weight: 500;
}

.book-hero-head .lead {
  margin: 0;
  max-width: 44ch;
}

.book-stage {
  display: grid;
  gap: 16px;
}

.art-book-section {
  width: 100%;
}

.art-book-shell {
  width: 100%;
  display: grid;
  gap: 16px;
}

.art-book-stage {
  display: flex;
  justify-content: center;
}

.art-book-spread {
  position: relative;
  width: min(1240px, 94vw);
  aspect-ratio: 16 / 9.4;
  min-height: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: #f5f1eb;
  border: 1px solid #d8d0c6;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

.art-page {
  position: relative;
  min-width: 0;
  min-height: 0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
}

.art-page-content {
  width: 100%;
  height: 100%;
}

.art-page-left {
  background: linear-gradient(180deg, #f3eee7 0%, #efeae3 100%);
  padding: clamp(34px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.art-page-right {
  background: linear-gradient(180deg, #f8f5f1 0%, #f5f2ed 100%);
  padding: clamp(18px, 2.2vw, 30px);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-meta {
  max-width: 420px;
}

.art-meta .studio {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.art-meta h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(44px, 4.3vw, 66px);
  line-height: 0.9;
  font-weight: 500;
  color: #272624;
}

.art-meta p {
  margin: 0 0 18px;
  max-width: 30ch;
  color: #66625b;
}

.art-meta .meta {
  display: grid;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4b473f;
}

.art-artwork-panel {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-artwork-frame {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid #dfd8cf;
  background: linear-gradient(180deg, #fbfaf8 0%, #f7f4ef 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  padding: clamp(14px, 1.8vw, 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.art-artwork-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.art-artwork-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #7a756e;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f7f3ec 0%, #f2ede6 100%);
}

.art-artwork-placeholder[hidden] {
  display: none !important;
}

.art-book-gutter {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 24px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(72, 57, 40, 0.14), rgba(255, 255, 255, 0.32), rgba(72, 57, 40, 0.14));
  z-index: 3;
  pointer-events: none;
}

.art-page-flip-layer {
  position: absolute;
  inset: 0 0 0 50%;
  z-index: 5;
  pointer-events: none;
  display: none;
  perspective: 2200px;
}

.art-page-flip-layer.is-active {
  display: block;
}

.art-flip-sheet {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: left center;
  will-change: transform, filter;
}

.art-flip-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(24, 18, 12, 0.18), transparent 22%, transparent 74%, rgba(24, 18, 12, 0.12));
  opacity: 0.7;
}

.art-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  border-left: 1px solid #dfd8cf;
  background-color: #f7f5f1;
}

.art-flip-back {
  transform: rotateY(180deg);
}

.art-book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.art-book-pagination {
  min-width: 76px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero {
  padding: 84px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  position: relative;
}

.kicker {
  margin: 0 0 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.94;
  color: #1c1c1a;
}

.lead {
  margin: 0 0 24px;
  max-width: 48ch;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-metrics {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics div {
  padding: 12px;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
}

.hero-metrics dt {
  margin-bottom: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero-metrics dd {
  margin: 0;
  font-size: 12px;
  color: #3f3b35;
}

.hero-art {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: linear-gradient(180deg, #f5f4f2 0%, #f0eeeb 100%);
  padding: 14px;
}

.hero-art .work-model-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #f5f4f2 0%, #f0eeeb 100%);
  padding: 14px;
}

.hero-art .work-model-wrap[hidden] {
  display: none;
}

.hero-art model-viewer {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  --poster-color: transparent;
}

.hero-art figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  background: #faf9f8;
}

.art-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.art-meta {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 80px 0;
}

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

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 0.98;
}

.section-head p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 15px;
}

.section-foot { margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #232321;
  background: #232321;
  color: #fff;
  padding: 11px 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #2f2f2c;
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: #232321;
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: #cfc2b2;
  background: #fdfcfa;
}

.link {
  display: inline-block;
  color: #2a2927;
  border-bottom: 1px solid #ccb79f;
  padding-bottom: 2px;
}

.link:hover {
  border-bottom-color: #b79879;
}

.fineprint {
  font-size: 12px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.featured-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.featured-card:hover {
  border-color: #d1c4b4;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.featured-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: fill;
  padding: 0;
  background: transparent;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.featured-card:hover img {
  transform: scale(1.01);
}

.featured-meta {
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}

.featured-title {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
}

.featured-sub {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #d6c8b8;
  transform: translateY(-2px);
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: linear-gradient(180deg, #f5f4f2 0%, #f0eeeb 100%);
  padding: 12px;
}

.card-meta {
  padding: 14px;
  display: grid;
  gap: 4px;
}

.card-title {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
}

.card-sub {
  color: var(--muted);
  font-size: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.about-copy h2,
.page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 0.98;
}

.about-copy p,
.page-hero p {
  margin: 0 0 16px;
  max-width: 66ch;
  color: #4a4641;
  font-size: 16px;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bio-expand {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.3s ease;
}

.bio-expand.open {
  max-height: 1200px;
  opacity: 1;
  margin-top: 20px;
}

.bio-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.bio-image img {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: #f6f5f2;
}

.page-main {
  padding: 76px 0 96px;
}

.page-hero {
  margin-bottom: 30px;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 16px;
}

.page-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.page-box h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 0.98;
}

.page-box p,
.page-box li {
  margin: 0 0 10px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 12px;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #ccb79f;
  box-shadow: 0 0 0 3px rgba(185, 159, 132, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.visualizer-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  gap: 16px;
}

.visualizer-controls {
  display: grid;
  gap: 14px;
  align-content: start;
}

.visualizer-controls h2 {
  margin-bottom: 2px;
}

.visualizer-stage-card {
  display: grid;
  gap: 12px;
}

.visualizer-stage-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #f8f6f3 0%, #f2eee9 100%);
}

.visualizer-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #ebe8e4;
  user-select: none;
}

.viz-room-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ece9e4;
}

.viz-room-image[hidden],
.viz-artwork-layer[hidden],
.viz-painting-fallback[hidden],
.viz-placeholder[hidden],
.viz-placeholder.is-hidden {
  display: none !important;
}

.viz-artwork-layer {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 34%;
  aspect-ratio: 3 / 4;
  max-width: none;
  cursor: grab;
  touch-action: none;
  transform-origin: center center;
  will-change: left, top, transform, width, filter;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.26));
}

.viz-artwork-layer.is-dragging {
  cursor: grabbing;
}

.viz-artwork-layer.is-model-mode {
  cursor: default;
  touch-action: auto;
}

.viz-painting-model {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  --poster-color: transparent;
}

.viz-artwork-layer.is-model-mode .viz-painting-model {
  pointer-events: auto;
}

.viz-painting-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.viz-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: #7c776e;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #f1ede8 0%, #e8e3dc 100%);
}

.visualizer-range-row {
  display: grid;
  gap: 6px;
}

.visualizer-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.visualizer-range-head strong {
  font-size: 11px;
  color: #2a2926;
}

.visualizer-range-row input[type="range"] {
  width: 100%;
}

.visualizer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.visualizer-mode {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.visualizer-mode-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #2b2926;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.visualizer-mode-btn:hover {
  border-color: #bfa47d;
}

.visualizer-mode-btn.is-active {
  background: #20211f;
  color: #fff;
  border-color: #20211f;
}

.visualizer-note {
  margin: 0;
}

.meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.8fr;
  gap: 18px;
  padding: 36px 0 0;
}

.brand-footer {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.brand-footer span {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-left: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 12px;
  color: #49453f;
}

.footer-links a:hover { color: #1e1e1c; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 14px 0 22px;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.zoom-host {
  position: relative;
}

.zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(24, 24, 22, 0.46);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.zoom-btn:hover {
  background: rgba(24, 24, 22, 0.68);
}

.zoom-host:hover .zoom-btn,
.zoom-host:focus-within .zoom-btn {
  opacity: 1;
  transform: translateY(0);
}

.zoom-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10, 10, 10, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox-stage {
  position: relative;
  width: auto;
  max-width: min(92vw, 1200px);
  max-height: 92vh;
}

.image-lightbox.is-model .image-lightbox-stage {
  width: min(92vw, 1200px);
  height: min(92vh, 880px);
  max-height: none;
}

.image-lightbox-image {
  width: auto;
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
}

.image-lightbox-model {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  background: linear-gradient(180deg, #f5f4f2 0%, #f0eeeb 100%);
  --poster-color: transparent;
}

.image-lightbox-image[hidden],
.image-lightbox-model[hidden] {
  display: none !important;
}

.image-lightbox-error {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.78);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.02em;
}

.image-lightbox-error[hidden] {
  display: none !important;
}

.image-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.82);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

body.cookie-open {
  overflow: hidden;
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 20, 18, 0.34);
  display: grid;
  place-items: end center;
  padding: 22px;
}

.cookie-consent-box {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}

.cookie-consent-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
}

.cookie-consent-text {
  margin: 0 0 12px;
  color: var(--muted);
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .about-grid,
  .page-grid,
  .contact-layout,
  .footer-grid,
  .visualizer-layout {
    grid-template-columns: 1fr;
  }

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

  .book-hero-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(42px, 12vw, 64px); }

  .art-book-spread {
    min-height: 560px;
  }

  .art-page-left {
    padding: 28px;
  }

  .art-page-right {
    padding: 16px;
  }

  .art-meta h2 {
    font-size: clamp(34px, 6vw, 48px);
  }
}

@media (max-width: 720px) {
  .container { width: min(var(--max), calc(100% - 34px)); }
  .header-inner { min-height: 72px; }

  .brand-main { font-size: 36px; }
  .brand-sub { font-size: 10px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    right: 16px;
    top: 64px;
    min-width: 230px;
    border: 1px solid var(--line);
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    box-shadow: var(--shadow-soft);
  }

  .lang-switcher {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
  }

  .site-nav.is-open { display: flex; }
  .works-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr; }
  .two-cols { grid-template-columns: 1fr; }
  .art-book-spread {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    min-height: 0;
  }
  .art-page-left {
    min-height: 340px;
  }
  .art-page-right {
    min-height: 340px;
  }
  .art-book-gutter,
  .art-page-flip-layer {
    display: none !important;
  }
  .art-book-controls {
    gap: 8px;
  }
  .zoom-btn {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .featured-card img {
    transition: none;
  }
}


