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

:root {
  --prussian: #003153;
  --bg: #ffffff;
  --bg-warm: #f8f5f0;
  --text: #0a0a0a;
  --text2: #5a5550;
  --text3: #a8a39c;
  --border: #e4e0da;
  --serif: 'Cormorant Garamond', serif;
  --sans:  'Inter', sans-serif;
  --ease:  cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── ERROR ── */
.error-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--prussian);
  text-align: center;
  padding: 40px 24px;
}
.error-inner { max-width: 440px; }
.error-logo {
  font-size: 12px; font-weight: 500; letter-spacing: 4px;
  color: rgba(255,255,255,0.5); margin-bottom: 40px;
}
.error-inner h1 {
  font-family: var(--serif); font-size: 36px; font-weight: 300;
  color: white; margin-bottom: 16px;
}
.error-inner p { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 32px; }

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 56px;
  max-width: 1240px; margin: 0 auto;
}
.header-logo {
  font-size: 12px; font-weight: 500; letter-spacing: 4px; color: var(--prussian);
}
.header-right { text-align: right; }
.header-date { font-size: 11px; color: var(--text3); letter-spacing: 0.5px; margin-bottom: 2px; }
.header-conf { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); }

/* ── HERO ── */
.hero {
  min-height: 100svh;
  background: var(--prussian);
  display: flex;
  align-items: flex-end;
  padding: 80px 56px;
}
.hero-inner { max-width: 1240px; margin: 0 auto; width: 100%; }
.hero-pre {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 28px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(60px, 9vw, 128px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -1.5px;
  color: white;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,0.65); }

/* ── CONTAINER ── */
.container { max-width: 1240px; margin: 0 auto; }

/* ── NOTE ── */
.note-section { padding: 80px 56px; border-bottom: 1px solid var(--border); }
.note-inner { max-width: 680px; }
.note-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 24px;
}
.note-text { font-size: 18px; line-height: 1.85; color: var(--text2); font-weight: 300; white-space: pre-wrap; }

/* ── WORKS ── */
.works-section { padding: 72px 56px; }

.works-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 56px; gap: 20px; flex-wrap: wrap;
}

.section-pre {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--text3);
}

.compare-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

#compareCount { font-size: 12px; color: var(--text2); letter-spacing: 0.5px; }

.btn-compare-view {
  background: var(--prussian); color: white; border: none;
  padding: 8px 20px;
  font-size: 11px; font-family: var(--sans); letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: opacity 0.2s;
}
.btn-compare-view:hover { opacity: 0.85; }

.btn-compare-clear {
  background: none; border: none;
  font-size: 11px; font-family: var(--sans); letter-spacing: 1px;
  color: var(--text3); cursor: pointer; transition: color 0.2s;
}
.btn-compare-clear:hover { color: var(--text2); }

/* ── WORK CARD ── */
.works-list { display: flex; flex-direction: column; gap: 0; }

.work-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  min-height: 480px;
  transition: background 0.2s;
}
.work-card:last-child { border-bottom: 1px solid var(--border); }

.work-image-col {
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}

.work-image-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-image-col img { transform: scale(1.03); }

.work-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 480px;
  background: var(--prussian);
}
.work-placeholder-text {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  text-align: center;
  padding: 40px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-style: italic;
}

.work-info-col {
  padding: 56px 56px 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.work-num {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 28px;
}

.work-artist {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.work-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 300;
  font-style: italic;
  color: var(--prussian);
  margin-bottom: 24px;
}

.work-meta {
  font-size: 12px; letter-spacing: 0.5px; color: var(--text3);
  line-height: 1.8; margin-bottom: 24px;
}

.work-price {
  font-size: 16px; font-weight: 400; color: var(--prussian);
  letter-spacing: 0.5px; margin-bottom: 24px;
}

.work-desc {
  font-size: 15px; line-height: 1.85; color: var(--text2);
  font-weight: 300; margin-bottom: 32px;
  border-top: 1px solid var(--border); padding-top: 24px;
}

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

.btn-inquire {
  display: inline-block;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none;
  color: white; background: var(--prussian);
  padding: 12px 28px; border: 1px solid var(--prussian);
  transition: all 0.2s;
}
.btn-inquire:hover { background: transparent; color: var(--prussian); }

.btn-compare-toggle {
  background: none; border: 1px solid var(--border);
  font-size: 11px; font-family: var(--sans); letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text3); padding: 12px 20px; cursor: pointer;
  transition: all 0.2s;
}
.btn-compare-toggle:hover { border-color: var(--prussian); color: var(--prussian); }
.btn-compare-toggle.selected { background: var(--prussian); border-color: var(--prussian); color: white; }

/* alternate: image on right */
.work-card.alt {
  direction: rtl;
}
.work-card.alt > * { direction: ltr; }

/* ── CLOSING ── */
.closing-section {
  padding: 80px 56px;
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
}
.closing-text {
  font-family: var(--serif);
  font-size: 22px; font-weight: 300;
  line-height: 1.8; color: var(--text2);
  max-width: 640px;
  white-space: pre-wrap;
}

/* ── CONTACT ── */
.contact-section { padding: 120px 56px; }
.contact-inner { max-width: 600px; }
.contact-pre { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 20px; }
.contact-title { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); font-weight: 300; line-height: 1.1; margin-bottom: 20px; }
.contact-desc { font-size: 16px; line-height: 1.8; color: var(--text2); margin-bottom: 40px; }

.btn-contact {
  display: inline-block;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  text-decoration: none;
  color: white; background: var(--prussian);
  padding: 14px 40px; border: 1px solid var(--prussian);
  transition: all 0.2s;
}
.btn-contact:hover { background: transparent; color: var(--prussian); }

/* ── FOOTER ── */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 56px;
  border-top: 1px solid var(--border);
  gap: 20px; flex-wrap: wrap;
}
.footer-logo { font-size: 11px; font-weight: 500; letter-spacing: 4px; color: var(--prussian); }
.footer-conf { font-size: 11px; color: var(--text3); }

/* ── COMPARISON OVERLAY ── */
.compare-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 500;
  overflow-y: auto;
}

.compare-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 56px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.compare-logo { font-size: 11px; font-weight: 500; letter-spacing: 3px; color: var(--prussian); }
.btn-close-compare {
  background: none; border: none;
  font-size: 12px; font-family: var(--sans); letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text2); cursor: pointer; transition: color 0.2s;
}
.btn-close-compare:hover { color: var(--text); }

.compare-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  min-height: calc(100vh - 65px);
}

.compare-col {
  border-right: 1px solid var(--border);
  padding: 48px 40px;
}
.compare-col:last-child { border-right: none; }

.compare-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--prussian);
  margin-bottom: 32px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.compare-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.compare-img-placeholder {
  font-family: var(--serif); font-size: 28px; font-weight: 300;
  color: rgba(255,255,255,0.2); font-style: italic; text-align: center; padding: 20px;
}

.compare-artist {
  font-family: var(--serif); font-size: 32px; font-weight: 300;
  line-height: 1.05; margin-bottom: 6px;
}
.compare-title {
  font-family: var(--serif); font-size: 20px; font-style: italic; font-weight: 300;
  color: var(--prussian); margin-bottom: 20px;
}
.compare-meta { font-size: 12px; color: var(--text3); line-height: 1.9; margin-bottom: 16px; }
.compare-price { font-size: 16px; font-weight: 400; color: var(--prussian); margin-bottom: 20px; }
.compare-desc { font-size: 14px; line-height: 1.8; color: var(--text2); border-top: 1px solid var(--border); padding-top: 20px; }

/* ── MOBILE ── */
@media (max-width: 840px) {
  .header-inner { padding: 14px 24px; }
  .hero { padding: 80px 24px 48px; }
  .note-section, .works-section, .closing-section, .contact-section { padding: 56px 24px; }
  .work-card { grid-template-columns: 1fr; }
  .work-card.alt { direction: ltr; }
  .work-image-col { min-height: 280px; }
  .work-placeholder { min-height: 280px; }
  .work-info-col { padding: 36px 24px; }
  .compare-header { padding: 16px 24px; }
  .compare-col { padding: 32px 24px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
