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

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --white:  #ffffff;
  --black:  #000000;
  --text:   #1a1a1a;
  --mid:    #555555;
  --light:  #f0f0f0;
  --serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:   -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* ─── Show banner ────────────────────────────────────────── */
.show-banner {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-bottom: 1px solid var(--light);
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-align: center;
  padding: 0 1.5rem;
}

.has-banner .show-banner { display: flex; }

.show-banner a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.show-banner a:hover { border-bottom-color: var(--text); }

.has-banner .hero-nav { top: calc(2.25rem + 2.75rem); }

@media (max-width: 768px) {
  .has-banner .hero-nav { top: calc(1.5rem + 2.75rem); }
}

/* ─── Base ───────────────────────────────────────────────── */
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

/* ─── Global nav ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: var(--white);
  border-bottom: 1px solid var(--light);
}

nav .wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
  line-height: 1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul li a {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mid);
  transition: color 0.15s;
}

nav ul li a:hover,
nav ul li a.active { color: var(--text); }

nav ul li a.nav-instagram {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--mid);
}

.hero-nav-instagram {
  text-transform: none !important;
  letter-spacing: 0.04em !important;
}

.hero-sub-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
}

.hero-sub-insta { display: none; }

main { padding-top: 5rem; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  border-top: 1px solid var(--light);
}

footer a {
  text-decoration: none;
  color: var(--mid);
  transition: color 0.15s;
}
footer a:hover { color: var(--text); }

/* ─── Mailing list strip ─────────────────────────────────── */
.mailing-list-strip {
  background: var(--white);
  border-top: 1px solid var(--light);
  padding: 3.5rem 3rem;
}

.mailing-list-inner {
  max-width: 520px;
}

.mailing-list-label {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.mailing-list-form .form-group--inline {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mailing-list-form input {
  flex: 1;
  min-width: 140px;
  font-family: var(--sans);
  font-size: 0.875rem;
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 0.65rem 0.875rem;
  outline: none;
  transition: border-color 0.15s;
  background: var(--white);
  color: var(--text);
}
.mailing-list-form input:focus { border-color: var(--text); }

.mailing-list-confirm {
  font-size: 0.875rem;
  color: var(--mid);
  padding-top: 0.5rem;
}

/* ─── Shared form elements ───────────────────────────────── */
.btn-submit {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--white);
  border: none;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0;
}
.btn-submit:hover { background: #333; }

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════════════ */
body.landing { overflow: hidden; height: 100dvh; }

.hero {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

/* Mosaic — 2 columns: self-portrait left, 2 stacked right */
.hero-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: repeat(2, 50%);
  gap: 6px;
  background: #fff;
}

.hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.mosaic-a {
  grid-column: 1;
  grid-row: 1 / 3;
  object-fit: contain;
  object-position: center center;
  background: #000;
}
.mosaic-b { grid-column: 2; grid-row: 1; }
.mosaic-c { grid-column: 2; grid-row: 2; }

.mosaic-d, .mosaic-e { display: none; }

/* Gradient — bottom only */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 35%,
    transparent 60%
  );
  pointer-events: none;
}

/* Top-right nav */
.hero-nav {
  position: absolute;
  top: 2.25rem;
  right: 3rem;
  display: flex;
  gap: 2.5rem;
}

.hero-nav a {
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  transition: color 0.15s;
}

.hero-nav a:hover { color: var(--white); }

/* Bottom identity block — bottom right */
.hero-footer {
  position: absolute;
  bottom: 2rem;
  right: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: right;
}

.hero-id { display: flex; flex-direction: column; gap: 0.5rem; }

.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.88rem, 5.76vw, 7.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(0.75rem, 1vw, 0.9375rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.hero-links { padding-bottom: 0.2rem; }

.hero-links a {
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  transition: color 0.15s;
}

.hero-links a:hover {
  color: var(--white);
}

/* Mobile landing — scrollable single column */
@media (max-width: 768px) {
  body.landing { overflow: auto; }
  .hero { height: auto; min-height: 100dvh; position: relative; }

  .hero-mosaic {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Self-portrait: natural aspect ratio, fully uncropped */
  .mosaic-a {
    aspect-ratio: 4526 / 5707;
    width: 100%;
    object-fit: contain;
    object-position: center center;
    background: #000;
    height: auto;
    flex-shrink: 0;
  }

  /* Vase (1423) + 1495 — second and third images */
  .mosaic-b,
  .mosaic-c {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    object-position: center center;
    flex-shrink: 0;
  }

  /* Hide everything else — use .hero-mosaic prefix to beat .hero-mosaic img specificity */
  .hero-mosaic .mosaic-c {
    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
  }

  .hero-mosaic .mosaic-d,
  .hero-mosaic .mosaic-e { display: none; }

  .hero-nav {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    gap: 1.5rem;
  }
  .hero-nav-instagram { display: none; }
  .hero-sub-insta { display: block; }

  /* Gradient over just the self-portrait area */
  .hero-vignette {
    position: absolute;
    left: 0; right: 0;
    top: 0;
    height: calc(100vw * 5707 / 4526);
    background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.2) 30%, transparent 55%);
    pointer-events: none;
  }

  /* Name overlaid at bottom of self-portrait */
  .hero-footer {
    position: absolute;
    top: calc(100vw * 5707 / 4526 - 6.5rem);
    right: 1.5rem;
    bottom: auto;
    left: auto;
  }

  .hero-name { font-size: clamp(2.5rem, 11vw, 4rem); }
}

/* ═══════════════════════════════════════════════════════════
   GALLERY PAGE
═══════════════════════════════════════════════════════════ */
.gallery-intro {
  padding: 3rem 3rem 2.5rem;
  border-bottom: 1px solid var(--light);
}

.gallery-intro h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.gallery-intro p {
  font-size: 0.875rem;
  color: var(--mid);
  letter-spacing: 0.02em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 3rem;
  padding: 4rem 3rem;
}

.painting-image-wrap {
  overflow: hidden;
  background: var(--light);
  aspect-ratio: 2 / 3;
}

.painting-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.painting:hover .painting-image-wrap img { transform: scale(1.025); }

.painting-meta {
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.painting-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.painting-details {
  font-size: 0.8125rem;
  color: var(--mid);
  letter-spacing: 0.02em;
}

.painting-price {
  font-size: 0.9375rem;
  color: var(--text);
  margin-top: 0.25rem;
}

.painting-nfs {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.25rem;
}

.btn-inquire {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--text);
  padding: 0.5rem 1.25rem;
  transition: background 0.15s, color 0.15s;
  align-self: flex-start;
}

.btn-inquire:hover {
  background: var(--text);
  color: var(--white);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem 1.5rem;
  }
  .gallery-intro { padding: 2rem 1.5rem 1.5rem; }
  nav { padding: 1.25rem 1.5rem; }
  nav .wordmark { font-size: 1.125rem; }
  nav ul { gap: 1.25rem; }
  nav ul li a.nav-instagram { display: none; }
  footer { padding: 2rem 1.5rem; }
  .mailing-list-strip { padding: 2.5rem 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════════════════════ */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 4rem 3rem;
  align-items: start;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  position: sticky;
  top: 6rem;
}

.about-text h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.about-text p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* CV */
.cv-sections {
  padding: 0 3rem 5rem;
  border-top: 1px solid var(--light);
  margin-top: 1rem;
}

.cv-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--light);
}

.cv-heading {
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--mid);
  padding-top: 0.125rem;
}

.cv-edu-entry {
  margin-bottom: 1.5rem;
}
.cv-edu-entry:last-child { margin-bottom: 0; }

.cv-edu-program {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.cv-edu-school {
  font-size: 0.875rem;
  color: var(--mid);
}
.cv-edu-dates {
  font-size: 0.8125rem;
  color: var(--mid);
  margin-top: 0.15rem;
}

.cv-year-group { margin-bottom: 2rem; }
.cv-year-group:last-child { margin-bottom: 0; }

.cv-year {
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--mid);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.cv-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.cv-entry:last-child { border-bottom: none; }

.cv-entry-title {
  font-size: 0.9375rem;
}
.cv-entry-venue {
  font-size: 0.8125rem;
  color: var(--mid);
  margin-top: 0.15rem;
}
.cv-entry-date {
  font-size: 0.8125rem;
  color: var(--mid);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 1.5rem;
  }
  .about-image img { position: static; }
  .cv-sections { padding: 0 1.5rem 4rem; }
  .cv-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════ */
.contact-page {
  max-width: 880px;
  padding: 4rem 3rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0 4rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--light);
}

.contact-section:first-child { border-top: 1px solid var(--light); }

.contact-section-label h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.contact-section-label p {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.65;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.form-group input,
.form-group textarea {
  font-family: var(--sans);
  font-size: 0.9375rem;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 0;
  outline: none;
  background: transparent;
  color: var(--text);
  transition: border-color 0.15s;
  border-radius: 0;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Studio address section */
.studio-address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text);
}

.studio-address a {
  text-decoration: none;
  border-bottom: 1px solid var(--light);
  transition: border-color 0.15s;
}
.studio-address a:hover { border-color: var(--text); }

@media (max-width: 768px) {
  .contact-page { padding: 2.5rem 1.5rem; }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ─── Contact (simple) ───────────────────────────────────── */
.contact-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 73px);
  padding: 5rem 2rem 4rem;
}

.contact-simple {
  width: 100%;
  max-width: 520px;
}

.contact-heading {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.contact-simple-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.label-optional {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: #aaa;
  text-transform: none;
}

.form-checks {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-top: 0.25rem;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}

.check-label input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--text);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.contact-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.75rem 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.contact-confirm {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--mid);
  padding: 2rem 0 1rem;
}

.contact-footer-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light);
  font-size: 0.8125rem;
  color: var(--mid);
  line-height: 1.8;
}

.contact-footer-info a {
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--light);
  transition: border-color 0.15s, color 0.15s;
}
.contact-footer-info a:hover { color: var(--text); border-color: var(--text); }

@media (max-width: 600px) {
  .contact-main { padding: 3.5rem 1.5rem 3rem; }
}
