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

:root {
  --bg:          #f8f7f4;
  --fg:          #111111;
  --fg-muted:    #777777;
  --fg-light:    #aaaaaa;
  --accent:      #111111;
  --border:      #e2e0da;
  --card-bg:     #ffffff;
  --header-h:    72px;

  --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

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

/* ─── HEADER ────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

#site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

.logo {
  display: flex;
  align-items: center;
  color: var(--fg);
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.7; }

.logo svg {
  height: 36px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.2s;
}

nav a:hover { color: var(--fg); }

/* ── Language switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 1rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--border);
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.lang-btn:hover { color: var(--fg); }

.lang-btn.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

/* Inquiry trigger button in nav */
.inquiry-trigger {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 0.35rem 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.inquiry-trigger:hover {
  background: var(--fg);
  color: var(--bg);
}

.inquiry-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  font-size: 0.75em;
  background: var(--fg);
  color: var(--bg);
  border-radius: 50%;
}

.inquiry-trigger:hover .inquiry-count {
  background: var(--bg);
  color: var(--fg);
}

/* ─── HERO ──────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) clamp(1.5rem, 5vw, 4rem) 8vh;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

#hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}

#hero h1 em {
  font-style: italic;
  font-weight: 300;
}

.cta-link {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}

.cta-link:hover {
  color: var(--fg);
  border-color: var(--fg);
}

/* ─── SHARED SECTION STYLES ─────────────────────────────────── */
section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.section-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* ─── GALLERY GRID ──────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 3rem clamp(1.5rem, 3vw, 2.5rem);
}

.artwork-card {
  display: flex;
  flex-direction: column;
}

.card-image-btn {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0;
  transition: border-color 0.3s var(--ease);
}

.card-image-btn:hover { border-color: var(--fg-muted); }

.card-image-btn img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s var(--ease);
}

.card-image-btn:hover img {
  transform: scale(1.03);
}

.card-info {
  padding: 1.1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.card-dims {
  font-size: 0.75rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.card-medium {
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* ─── INQUIRE BUTTON ────────────────────────────────────────── */
.inquire-btn {
  align-self: flex-start;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}

.inquire-btn:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.inquire-btn.added {
  color: var(--fg);
  border-color: var(--fg);
}

/* ─── ABOUT ─────────────────────────────────────────────────── */
#about {
  border-top: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about-photo {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border);
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.about-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.about-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skill-group h4 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
}

.skill-group p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--fg);
}

.about-education {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.about-education p {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.about-education em {
  font-style: italic;
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

/* ─── CONTACT ───────────────────────────────────────────────── */
#contact {
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.form-row label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.form-row input,
.form-row textarea {
  font: 300 0.95rem/1.6 var(--font-sans);
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--fg);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--fg-light);
}

.form-submit {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--fg);
  padding: 0.85rem 2.2rem;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover { opacity: 0.75; }

.form-success {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
}

.contact-aside {
  padding-top: 0.5rem;
}

.contact-aside p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
}

.contact-aside a {
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.contact-aside a:hover { border-color: var(--fg); }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  height: 22px;
  width: auto;
  color: var(--fg-muted);
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}

/* ─── LIGHTBOX ──────────────────────────────────────────────── */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.85);
  animation: fadeIn 0.25s var(--ease);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  justify-items: center;
  padding: 4rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  pointer-events: none;
}

.lightbox:not([hidden]) {
  pointer-events: auto;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  z-index: 202;
}

.lightbox-close:hover { color: #fff; }

.lightbox-stage {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 900px;
  min-height: 0;          /* allows the grid row to shrink */
  overflow: hidden;
}

.lightbox-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: scaleIn 0.25s var(--ease);
}

.lightbox-nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  line-height: 1;
}

.lightbox-nav:hover { color: #fff; }
.lightbox-nav:disabled { opacity: 0.2; pointer-events: none; }

.lightbox-footer {
  width: 100%;
  max-width: 900px;
  padding-top: 0.85rem;
  padding-bottom: 0.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.lightbox-info h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: #fff;
}

.lightbox-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.2rem;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.lightbox-counter {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}

.lightbox-inquire {
  color: rgba(255,255,255,0.6);
  border-bottom-color: transparent !important;
}

.lightbox-inquire:hover {
  color: #fff !important;
  border-bottom-color: rgba(255,255,255,0.4) !important;
}

.lightbox-inquire.added {
  color: rgba(255,255,255,0.9) !important;
}

/* ─── INQUIRY PANEL ─────────────────────────────────────────── */
.inquiry-panel {
  position: fixed;
  top: var(--header-h);
  right: 0;
  z-index: 150;
  width: min(320px, 90vw);
  background: var(--card-bg);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  animation: slideIn 0.25s var(--ease);
}

.inquiry-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.inquiry-panel-header h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.inquiry-panel-header button {
  font-size: 1.2rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.inquiry-panel-header button:hover { color: var(--fg); }

#inquiry-list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

#inquiry-list-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--fg);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

#inquiry-list-items .remove-item {
  font-size: 0.85rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

#inquiry-list-items .remove-item:hover { color: var(--fg); }

.inquiry-send-btn {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--fg);
  padding: 0.8rem;
  transition: opacity 0.2s;
}

.inquiry-send-btn:hover { opacity: 0.75; }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { gap: 1.2rem; }

  nav a { display: none; }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-photo {
    position: static;
    max-width: 320px;
  }

  .about-skills {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
  }

  .section-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .lightbox-nav { display: none; }

  .lightbox-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .logo svg { height: 28px; }
}

/* ─── UTILITY ───────────────────────────────────────────────── */
[hidden] { display: none !important; }
