:root {
  --color-ivory: #f6f1e8;
  --color-cream: #ede4d1;
  --color-ink: #0e0c0a;
  --color-charcoal: #1a1714;
  --color-gold: #b8893d;
  --color-gold-light: #d4ad6a;
  --color-rouge: #7a1b1b;
  --color-muted: #6b5e4d;
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: Inter, system-ui, sans-serif;
  --font-calligraphy: Parisienne, cursive;
  --font-hand: "BetterChill", "Segoe Script", cursive;
  --max: 1400px;
}

@font-face {
  font-family: "BetterChill";
  src: url("../fonts/BetterChill.otf") format("opentype");
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.font-calligraphy {
  font-family: var(--font-calligraphy);
}

.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .container {
    width: min(100% - 7rem, var(--max));
  }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: transform 0.7s ease, background 0.5s ease, opacity 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-home:not(.is-scrolled) {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.site-header.is-scrolled,
.site-header:not(.is-home) {
  transform: translateY(0);
  opacity: 1;
  background: rgba(246, 241, 232, 0.9);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(14, 12, 10, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.35em;
}

.site-nav {
  display: none;
  gap: 2rem;
}

.site-nav a {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  transition: color 0.2s;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switch__item {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  transition: color 0.2s;
}

.lang-switch__item:hover,
.lang-switch__item.is-active {
  color: var(--color-ink);
  font-weight: 500;
}

.lang-switch__sep {
  font-size: 9px;
  color: rgba(14, 12, 10, 0.25);
}

.site-header.is-home .lang-switch__item { color: rgba(246, 241, 232, 0.5); }
.site-header.is-home .lang-switch__item:hover,
.site-header.is-home .lang-switch__item.is-active { color: var(--color-ivory); }
.site-header.is-home .lang-switch__sep { color: rgba(246, 241, 232, 0.3); }

.lang-switch--mobile {
  margin-top: 1rem;
  gap: 0.6rem;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 0 0 1.5rem;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  color: #1a1714;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 2.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: linear-gradient(180deg, var(--color-gold) 0%, #9a7330 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(184, 137, 61, 0.5);
}

.btn-outline {
  display: inline-flex;
  border: 1px solid rgba(14, 12, 10, 0.2);
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Frame */
.frame-silver {
  position: relative;
  background: linear-gradient(
    138deg,
    #fff 0%, #efefef 4%, #d2d2d2 11%, #a0a0a0 19%, #808080 25%,
    #b4b4b4 33%, #e6e6e6 41%, #f8f8f8 47%, #e2e2e2 53%, #b2b2b2 61%,
    #828282 68%, #9c9c9c 75%, #cccccc 83%, #eeeeee 91%, #bbbbbb 100%
  );
  box-shadow:
    0 40px 90px -24px rgba(0, 0, 0, 0.55),
    0 16px 40px -10px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    inset 2px 0 0 rgba(255, 255, 255, 0.9),
    inset -2px 0 0 rgba(0, 0, 0, 0.32);
  padding: 10px;
}

.frame-silver img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #111;
}

.frame-silver.is-frameless {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.frame-silver.is-frameless img {
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-ivory);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(14, 12, 10, 0.55) 70%, rgba(14, 12, 10, 0.85) 100%),
    linear-gradient(180deg, rgba(14, 12, 10, 0.35), transparent 40%, rgba(14, 12, 10, 0.7));
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 2rem;
  animation: fade-up 1s ease both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: 0.18em;
  margin: 0;
}

.hero__name {
  margin: 0.75rem 0 0;
  font-family: var(--font-calligraphy);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--color-gold-light);
}

.hero__line {
  margin-top: 1.25rem;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.65);
}

.hero__hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.55);
  animation: pulse-soft 2.4s ease-in-out infinite;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--cream { background: var(--color-cream); }
.section--ink {
  background: var(--color-ink);
  color: var(--color-ivory);
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}

.section--ink .eyebrow { color: var(--color-gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin: 0.75rem 0 0;
  line-height: 1.15;
}

.lead {
  max-width: 40rem;
  color: var(--color-muted);
  font-size: 1.1rem;
}

/* Category panel */
.cat-panel {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 5rem 0;
  border-top: 1px solid rgba(14, 12, 10, 0.08);
}

@media (min-width: 900px) {
  .cat-panel {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    padding: 7rem 0;
  }
  .cat-panel.is-reverse .cat-panel__media { order: 2; }
  .cat-panel.is-reverse .cat-panel__text { order: 1; }
}

.cat-panel__index {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.cat-panel__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.5rem 0;
}

.cat-panel__desc {
  color: var(--color-muted);
  max-width: 28rem;
}

/* Artwork card */
.art-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.art-card__meta {
  margin-top: 0.9rem;
}

.art-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
}

.art-card__cat {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0.25rem 0 0;
}

.art-card__price {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
}

.badge-sold {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  background: var(--color-rouge);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
}

.art-card {
  position: relative;
  transition: transform 0.4s ease;
}

.art-card:hover {
  transform: translateY(-4px);
}

/* Featured */
.featured {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .featured {
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
  }
  .featured__side {
    display: grid;
    gap: 1.5rem;
  }
}

/* Filters */
.filters {
  position: sticky;
  top: 4.5rem;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
  margin: 1.5rem 0 2.5rem;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(14, 12, 10, 0.08);
}

.filters a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-bottom: 0.2rem;
}

.filters a.is-active {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 6px;
}

/* Single artwork */
.artwork-detail {
  display: grid;
  gap: 2.5rem;
  padding: 7rem 0 4rem;
}

@media (min-width: 900px) {
  .artwork-detail {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
  }
}

.artwork-detail__specs {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.artwork-detail__specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(14, 12, 10, 0.08);
  padding-bottom: 0.6rem;
  font-size: 0.95rem;
}

.artwork-detail__specs span:first-child {
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid rgba(14, 12, 10, 0.15);
  background: rgba(246, 241, 232, 0.5);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  font: inherit;
  color: var(--color-ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.aside-card {
  border: 1px solid rgba(14, 12, 10, 0.1);
  background: rgba(237, 228, 209, 0.6);
  border-radius: 1.5rem;
  padding: 2rem;
}

/* Footer */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(246, 241, 232, 0.7);
  border-top: 1px solid rgba(14, 12, 10, 0.08);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1.2fr 0.8fr;
  }
}

.site-footer a:hover {
  color: var(--color-gold-light);
}

.site-footer__bottom {
  border-top: 1px solid rgba(246, 241, 232, 0.08);
  padding: 1.25rem 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 232, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.timeline li {
  list-style: none;
  border-top: 1px solid rgba(246, 241, 232, 0.15);
  padding-top: 1.25rem;
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-gold-light);
  margin: 0;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

.notice-success {
  background: rgba(184, 137, 61, 0.15);
  border: 1px solid var(--color-gold);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.page-hero {
  padding: 8rem 0 3rem;
  background: var(--color-cream);
  border-bottom: 1px solid rgba(14, 12, 10, 0.08);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: -6rem;
  top: -6rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 137, 61, 0.35), transparent 70%);
  filter: blur(20px);
}

.quote-block {
  text-align: center;
  padding: 5rem 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.35;
}

.quote-block em {
  font-style: normal;
  color: var(--color-gold);
}

.atelier-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem 0;
}

.cat-group + .cat-group {
  margin-top: 3.5rem;
}

.cat-group__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
}

.breadcrumb {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a:hover { color: var(--color-gold); }

.video-about {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.video-about video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-about__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(90deg, rgba(14,12,10,0.8), rgba(14,12,10,0.35), transparent);
  color: var(--color-ivory);
}

@media (min-width: 768px) {
  .video-about__overlay { padding: 4rem; }
}
