/* ============================================================
   GRUNGEART — Design System
   Inspired by: corentinbernadou.com, ethanandtom.com, 9to5studio.it
   Palette: White/Cream bg · Near-black text · No colour accents
   Type: Cormorant Garamond (display) · Inter (UI)
============================================================ */

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:       #FFFFFF;
  --off-white:   #F7F5F0;
  --cream:       #EDE9E1;
  --rule:        #DEDAD3;
  --muted:       #9B9690;
  --body:        #3A3835;
  --ink:         #1C1B18;
  --black:       #0D0C0B;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --dur:         0.28s;
  --r:           2px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-ui); }

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — condensed all-caps serif */
.logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.logo em { font-style: normal; font-weight: 300; color: var(--muted); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.main-nav a {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
  border-right: 1px solid var(--rule);
  position: relative;
}
.main-nav a:first-child { border-left: 1px solid var(--rule); }
.main-nav a:hover  { color: var(--ink); }
.main-nav a.active { color: var(--ink); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.burger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: var(--dur);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  z-index: 99;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 40px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  transition: color var(--dur);
}
.mobile-nav a.active, .mobile-nav a:hover { color: var(--ink); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  transition: background var(--dur), color var(--dur);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--black); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r);
  transition: color var(--dur), border-color var(--dur);
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.7); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: var(--black);
  overflow: hidden;
  padding-top: 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13,12,11,0.85) 0%, rgba(13,12,11,0.3) 60%, rgba(13,12,11,0.1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

/* Hero text block */
.hero-text {}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-eyebrow-line {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.35);
}
.hero-eyebrow span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 82px);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.55);
}

.hero-sub {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  max-width: 340px;
}

/* Hero meta — tech labels like Corentin ref */
.hero-meta {
  position: absolute;
  bottom: 32px;
  left: 40px;
  display: flex;
  gap: 40px;
}
.hero-meta-item { }
.hero-meta-item .label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 3px;
}
.hero-meta-item .value {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
}

/* ─── 3D CUBE ────────────────────────────────────────────── */
.cube-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.cube-scene {
  width: 320px;
  height: 320px;
  perspective: 960px;
  perspective-origin: 50% 40%;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 22s infinite linear;
}

@keyframes rotateCube {
  0%   { transform: rotateX(-18deg) rotateY(0deg); }
  100% { transform: rotateX(-18deg) rotateY(360deg); }
}

.cube-face {
  position: absolute;
  width: 320px;
  height: 320px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}

.cube-face--front  { transform: translateZ(160px); }
.cube-face--back   { transform: rotateY(180deg) translateZ(160px); }
.cube-face--left   { transform: rotateY(-90deg)  translateZ(160px); }
.cube-face--right  { transform: rotateY(90deg)   translateZ(160px); }
.cube-face--top    { transform: rotateX(90deg)   translateZ(160px); }
.cube-face--bottom { transform: rotateX(-90deg)  translateZ(160px); }

.cube-cell {
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.cube-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.9);
}
.cube-cell.empty { background: rgba(255,255,255,0.03); }

/* ─── HOME CATEGORIES ────────────────────────────────────── */
.home-categories {
  padding: 96px 0 80px;
  border-top: 1px solid var(--rule);
}
.home-categories .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.section-head .section-ref {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--cream);
  display: block;
  cursor: pointer;
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.category-card:hover img { transform: scale(1.04); }

.cat-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-placeholder-1 { background: linear-gradient(135deg,#C4BDB2,#9A9089); }
.cat-placeholder-2 { background: linear-gradient(135deg,#B5BDC6,#8C97A4); }

.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,12,11,0.72) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px;
  color: #fff;
  transition: background var(--dur);
}
.category-card:hover .cat-overlay {
  background: linear-gradient(to top, rgba(13,12,11,0.82) 0%, transparent 65%);
}
.cat-num {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.cat-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--dur), gap var(--dur);
}
.category-card:hover .cat-link { color: #fff; gap: 14px; }
.cat-link::after { content: '→'; }

/* ─── PAGE HERO (inner pages) ────────────────────────────── */
.page-hero {
  padding: 112px 40px 56px;
  max-width: 1440px;
  margin: 0 auto;
}
.page-hero-rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.page-hero-meta {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
}

/* ─── GALLERY PAGE ───────────────────────────────────────── */
.gallery-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 40px 100px;
}

/* Tabs */
.gallery-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.gallery-tab {
  padding: 12px 0;
  margin-right: 32px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur), border-color var(--dur);
}
.gallery-tab:hover  { color: var(--ink); }
.gallery-tab.active { color: var(--ink); border-bottom-color: var(--ink); }

/* Grid */
.paintings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

/* ─── PAINTING CARD ──────────────────────────────────────── */
.painting-card {
  background: var(--white);
  cursor: pointer;
  position: relative;
  border: 1px solid var(--rule);
  transition: border-color var(--dur);
}
.painting-card:hover { border-color: var(--ink); }

/* Index number — ethan&tom style */
.card-index {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  z-index: 2;
  background: rgba(0,0,0,0.3);
  padding: 2px 7px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.painting-card:hover .card-image img { transform: scale(1.04); }

.card-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--rule);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
}

.card-sold-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(13,12,11,0.75);
  color: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

.card-body {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--rule);
}
.card-cat {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 4px;
}
.card-size {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.card-cta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--dur), gap var(--dur);
  padding: 0;
}
.card-cta::after { content: '→'; }
.painting-card:hover .card-cta { color: var(--ink); gap: 10px; }

/* Empty state */
.empty-state {
  grid-column: 1/-1;
  padding: 80px 20px;
  text-align: center;
}
.empty-state p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ─── PAINTING MODAL ─────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(13,12,11,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--rule);
}

.modal-close {
  position: absolute;
  top: 0; right: 0;
  width: 52px; height: 52px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background var(--dur);
}
.modal-close:hover { background: var(--black); }

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

/* Modal media */
.modal-media-col {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  overflow: hidden;
}
.modal-main-media {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  background: #EAE6DF;
}
.modal-main-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.modal-main-media:hover img { transform: scale(1.025); }
.modal-main-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.modal-thumbs {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: #DED9D1;
  min-height: 68px;
  overflow-x: auto;
}
.modal-thumbs::-webkit-scrollbar { height: 3px; }
.modal-thumbs::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); }

.thumb-item {
  flex-shrink: 0;
  width: 56px; height: 52px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--dur), opacity var(--dur);
  background: var(--cream);
  position: relative;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.active { border-color: var(--ink); }
.thumb-item:not(.active) { opacity: 0.5; }
.thumb-item:hover:not(.active) { opacity: 0.8; }
.thumb-item.is-video::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.38);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

/* Modal info */
.modal-info {
  display: flex;
  flex-direction: column;
  padding: 40px 36px 36px;
  overflow-y: auto;
  border-left: 1px solid var(--rule);
}
.modal-info::-webkit-scrollbar { width: 3px; }
.modal-info::-webkit-scrollbar-thumb { background: var(--rule); }

.modal-cat {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.modal-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 20px;
}
.modal-meta-row {
  display: flex;
  gap: 20px;
  margin-bottom: 6px;
}
.modal-meta-item { }
.modal-meta-item .lbl {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.modal-meta-item .val { font-size: 13px; color: var(--body); }

.modal-avail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.modal-avail::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
}
.modal-avail.yes { background: #EAF4EA; color: #2A6E2A; }
.modal-avail.yes::before { background: #3A9E3A; }
.modal-avail.no  { background: #F4EAEA; color: #7A2A2A; }
.modal-avail.no::before  { background: #C44; }

.modal-price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  line-height: 1;
}

.modal-hr { border: none; border-top: 1px solid var(--rule); margin: 0 0 20px; }
.modal-form-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ─── FORMS ──────────────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.form-field label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--off-white);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink);
  border-radius: var(--r);
  outline: none;
  transition: border-color var(--dur);
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--ink); }
.form-field textarea { resize: vertical; min-height: 72px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-msg {
  font-size: 12px;
  padding: 10px 14px;
  border-radius: var(--r);
  display: none;
  margin-top: 10px;
}
.form-msg.success { background: #EAF4EA; color: #2A6E2A; border: 1px solid #B8E0B8; }
.form-msg.error   { background: #F4EAEA; color: #7A2A2A; border: 1px solid #E0B8B8; }

/* ─── ABOUT PAGE ─────────────────────────────────────────── */
.about-page { padding-top: 56px; }

.about-hero {
  position: relative;
  height: 75vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--black);
}
.about-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
  display: block;
}
.about-hero-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(150deg, #24201C 0%, #0D0C0B 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: rgba(255,255,255,0.06);
  font-size: 120px;
  font-weight: 300;
}
.about-hero-text {
  position: absolute;
  bottom: 48px; left: 0; right: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
.about-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.about-hero-text .subtitle {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.about-body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}

.about-text-col h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 300;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.about-text-col p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--body);
  margin-bottom: 20px;
  max-width: 540px;
}

.about-sidebar-col {}
.about-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 28px;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--cream) 0%, #C8C0B5 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: rgba(0,0,0,0.08);
  font-size: 80px;
}

.about-facts {
  border-top: 1px solid var(--rule);
}
.about-fact {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.about-fact .f-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.about-fact .f-value { font-size: 13px; text-align: right; }

/* ─── CONTACTS PAGE ──────────────────────────────────────── */
.contacts-page { padding-top: 56px; min-height: 100vh; }

.contacts-body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: start;
}

.contacts-left h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.contacts-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  max-width: 380px;
  margin-bottom: 48px;
}
.contact-list { margin-bottom: 48px; }
.contact-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
}
.contact-entry:first-child { border-top: 1px solid var(--rule); }
.contact-lbl {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-val { font-size: 14px; }
.contact-val a { color: var(--ink); transition: color var(--dur); }
.contact-val a:hover { color: var(--muted); }

.contacts-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}
.contacts-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.contacts-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--cream), #CFC9C0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: rgba(0,0,0,0.08);
  font-size: 64px;
}

.contacts-form-wrap {
  background: var(--off-white);
  border: 1px solid var(--rule);
  padding: 40px 36px;
}
.contacts-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.35);
  padding: 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.footer-inner .logo { color: rgba(255,255,255,0.6); }
.footer-inner .logo em { color: rgba(255,255,255,0.25); }
.footer-copy { font-size: 11px; letter-spacing: 0.06em; text-align: center; }
.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}
.footer-links a {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  transition: color var(--dur);
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .header-inner { padding: 0 24px; }
  .hero-inner, .about-body, .contacts-body { padding-left: 24px; padding-right: 24px; }
  .home-categories .inner, .gallery-wrapper, .page-hero { padding-left: 24px; padding-right: 24px; }
  .footer-inner { padding: 0; }
  .site-footer { padding: 40px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-copy { grid-column: 1/-1; order: 3; text-align: left; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .burger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .cube-container { height: 280px; margin: 0 auto; }
  .cube-scene { width: 240px; height: 240px; }
  .cube-face { width: 240px; height: 240px; }
  .cube-face--front  { transform: translateZ(120px); }
  .cube-face--back   { transform: rotateY(180deg) translateZ(120px); }
  .cube-face--left   { transform: rotateY(-90deg)  translateZ(120px); }
  .cube-face--right  { transform: rotateY(90deg)   translateZ(120px); }
  .cube-face--top    { transform: rotateX(90deg)   translateZ(120px); }
  .cube-face--bottom { transform: rotateX(-90deg)  translateZ(120px); }

  .categories-grid { grid-template-columns: 1fr; gap: 2px; }
  .about-body { grid-template-columns: 1fr; gap: 48px; }
  .about-sidebar-col { order: -1; }
  .about-portrait { aspect-ratio: 16/9; }
  .contacts-body { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  .modal-content { grid-template-columns: 1fr; }
  .modal-box { max-height: 92vh; overflow-y: auto; }
  .modal-media-col { min-height: 300px; }
  .modal-info { padding: 24px 24px 32px; }
}

@media (max-width: 600px) {
  .paintings-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .card-body { padding: 12px 14px 16px; }
  .card-title { font-size: 18px; }
  .hero-title { font-size: 38px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-copy { order: 0; }
  .mobile-nav a { padding: 14px 24px; }
  .contacts-form-wrap { padding: 24px 20px; }
  .about-hero-text { padding: 0 24px; }
}

@media (max-width: 420px) {
  .paintings-grid { grid-template-columns: 1fr; }
}
