:root {
  --bg: #0f0e13;
  --bg-2: #17161d;
  --text: #f3efe8;
  --muted: #a8a3b3;
  --accent: #231fe6;
  --accent-text: #7c79ff; /* lighter tint of --accent for readable text on dark */
  --accent-2: #ffd166;
  --accent-3: #7b5cff;
  --radius: 14px;
  --max: 1200px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
em { color: var(--accent-text); font-style: italic; font-weight: 400; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--muted); }
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn-small { padding: .5rem 1.1rem; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 3rem);
  background: rgba(15, 14, 19, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
/* Logo is black-on-white JPG: invert it and screen-blend so the background disappears on dark UI. */
.logo-mark { height: 52px; width: auto; filter: invert(1); mix-blend-mode: screen; transition: transform .4s; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-text span { color: var(--accent-text); }
.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 6rem clamp(1rem, 5vw, 3rem); min-height: 60vh; scroll-margin-top: 84px; }
.section + .section { border-top: 1px solid rgba(255,255,255,.06); }

/* Brand banner */
.brand-banner {
  background: var(--bg);
  display: flex; justify-content: center;
  border-bottom: 4px solid var(--accent);
  overflow: hidden;
}
.brand-banner img { width: min(1200px, 100%); height: auto; animation: banner-in 1s ease both; }
@keyframes banner-in { from { opacity: 0; transform: translateY(-12px); } }

/* Bio */
.bio-text { max-width: none; }
.bio-text h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--accent-2); }
.bio-text p { font-family: var(--serif); font-style: normal; font-weight: 400; color: #fff; margin-bottom: 1.1rem; font-size: 1.4rem; text-align: justify; hyphens: auto; }
.bio-text .bio-tagline { font-family: var(--serif); font-size: 1.4rem; margin-top: 1.5rem; }
.bio-text .bio-tagline em { color: var(--accent); }
.about-artwork { width: 100%; height: auto; margin-top: 3rem; }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 1rem; }
.gallery-item {
  break-inside: avoid; margin: 0 0 1rem; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.gallery-item img { width: 100%; height: auto; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-open:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 9, 14, .94); color: var(--text);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lightbox-in .25s ease; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox-img {
  max-width: calc(100vw - 9rem); max-height: calc(100vh - 4rem); width: auto; height: auto;
  object-fit: contain; border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
}
.lightbox-close, .lightbox-nav {
  position: absolute; display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(23,22,29,.7); color: var(--text); font-size: 2rem; line-height: 1; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--accent-text); color: var(--accent-text); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@keyframes lightbox-in { from { opacity: 0; } }
@media (max-width: 600px) {
  .lightbox-img { max-width: 100vw; max-height: calc(100vh - 8rem); border-radius: 0; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; min-height: auto; }
.contact > div > p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-list { list-style: none; margin-bottom: 1.5rem; }
.contact-list li { margin-bottom: .5rem; }
.contact-list a { color: var(--accent-text); }
.socials { display: flex; gap: 1rem; flex-wrap: wrap; }
.socials a { padding: .4rem 1rem; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; font-size: .9rem; transition: .2s; }
.socials a:hover { border-color: var(--accent-text); color: var(--accent-text); }
.contact-form { display: grid; gap: 1rem; background: var(--bg-2); padding: 2rem; border-radius: var(--radius); }
.contact-form label { display: grid; gap: .4rem; font-size: .9rem; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: .75rem .9rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent-text); border-color: transparent; }
.form-note { color: var(--accent-2); font-size: .9rem; min-height: 1.2em; }

/* Home / landing */
.home { min-height: calc(100vh - 86px); display: flex; flex-direction: column; scroll-margin-top: 86px; }
.hero {
  flex: 1; width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; align-content: center;
  padding: 3rem clamp(1rem, 5vw, 3rem);
}
.eyebrow { font-family: var(--serif); font-weight: 600; line-height: 1.15; font-size: 1.5rem; color: var(--accent-2); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 1.5rem; }
.hero-text > :last-child { margin-bottom: 0; }
/* height:0 + min-height:100% lets the text set the row height; the image then fills it exactly. */
.hero-image {
  width: 100%; height: 0; min-height: 100%; object-fit: cover; align-self: stretch;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
  animation: image-in 1s .15s ease both;
}
@keyframes image-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 36rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1; max-height: 60vh; justify-self: center; width: 100%; max-width: 520px; }
.hero-logo {
  position: absolute; inset: 8% 18%; width: 64%; height: 84%; object-fit: contain;
  filter: invert(1); mix-blend-mode: screen; animation: logo-in 1.2s .2s ease both;
}
@keyframes logo-in { from { opacity: 0; transform: scale(.9) rotate(-6deg); } }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); animation: float 12s ease-in-out infinite; mix-blend-mode: screen; }
.b1 { width: 70%; height: 70%; top: 5%; left: 5%; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%); }
.b2 { width: 60%; height: 60%; bottom: 5%; right: 5%; background: radial-gradient(circle at 60% 40%, var(--accent-3), transparent 70%); animation-delay: -4s; }
.b3 { width: 45%; height: 45%; top: 35%; left: 35%; background: radial-gradient(circle, var(--accent-2), transparent 70%); animation-delay: -8s; opacity: .6; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); border-radius: 50% 40% 60% 50%; }
  33% { transform: translate(6%, -4%) scale(1.05); border-radius: 40% 60% 50% 45%; }
  66% { transform: translate(-5%, 5%) scale(.95); border-radius: 60% 45% 40% 55%; }
}

/* Footer */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 3rem); color: var(--muted); font-size: .9rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer a:hover { color: var(--accent-text); }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand .logo-mark { height: 36px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 1.25rem;
    background: var(--bg); padding: 2rem; border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-150%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-image { height: auto; min-height: 0; }
  .hero-art { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
