:root {
  --ink: #171717;
  --soft: #6b6b6b;
  --accent: #a31d22;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --line: #e8e5e0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); font-weight: 300; line-height: 1.6; }
img { display: block; }

/* ---------- Header ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 10px; }
.brand h1 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.brand span { font-family: var(--serif); color: var(--accent); font-size: 1.05rem; font-style: italic; letter-spacing: 0.05em; }
nav { display: flex; gap: 28px; }
nav a {
  text-decoration: none; color: var(--soft); font-size: 0.8rem;
  letter-spacing: 0.22em; text-transform: uppercase; transition: color .25s;
}
nav a:hover, nav a.active { color: var(--accent); }

main { padding-top: 66px; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; padding: 72px 24px 40px; }
.section-head h2 { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.section-head::after { content: ""; display: block; width: 44px; height: 1px; background: var(--accent); margin: 16px auto 0; }

/* ---------- Slideshow (home) ---------- */
#home { position: relative; height: calc(100vh - 66px); height: calc(100svh - 66px); min-height: 480px; background: var(--bg-soft); overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease;
  display: flex; align-items: center; justify-content: center; padding: 48px 24px 96px;
}
.slide.active { opacity: 1; }
.slide img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,0.10); }
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  text-align: center; padding: 14px 24px 20px;
  background: linear-gradient(to top, rgba(250,249,247,0.95), rgba(250,249,247,0));
  pointer-events: none;
}
.slide-caption .t { font-family: var(--serif); font-style: italic; font-size: 1.35rem; }
.slide-caption .d { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  background: none; border: none; cursor: pointer; padding: 16px;
  font-size: 2rem; line-height: 1; color: var(--ink); opacity: 0.45; transition: opacity .25s;
  font-family: var(--serif);
}
.arrow:hover { opacity: 1; color: var(--accent); }
.arrow.prev { left: 8px; } .arrow.next { right: 8px; }
.dots { position: absolute; bottom: 74px; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 7px; height: 7px; border-radius: 50%; border: none; background: #c9c4bc; cursor: pointer; padding: 0; transition: background .25s, transform .25s; }
.dots button.active { background: var(--accent); transform: scale(1.3); }

/* ---------- Artist statement (home) ---------- */
#statement { border-top: 1px solid var(--line); }
.statement-inner { max-width: 680px; margin: 0 auto; text-align: center; padding: 64px 24px 72px; }
.statement-inner h2 {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.statement-inner h2::after { content: ""; display: block; width: 44px; height: 1px; background: var(--accent); margin: 14px auto 22px; }
.statement-inner p {
  font-family: var(--serif); font-size: 1.22rem; font-style: italic;
  color: #3a3a3a; margin-bottom: 16px; line-height: 1.7;
}

/* ---------- Gallery (museum wall) ---------- */
#gallery { background: var(--bg-soft); }
.grid { max-width: 1240px; margin: 0 auto; padding: 12px 32px 90px; columns: 2; column-gap: 56px; }
@media (max-width: 720px) { .grid { columns: 1; } }
figure.work {
  break-inside: avoid; margin-bottom: 64px; cursor: pointer;
  opacity: 0; transform: scale(0.88) translateY(30px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.19,.66,.29,.99);
}
figure.work.inview { opacity: 1; transform: scale(1) translateY(0); }
.frame {
  position: relative;
  padding: 4.5%;                              /* the mat */
  background: #fefdfb;
  border: 14px solid #33261a;                 /* the wood */
  border-image: linear-gradient(135deg, #45312e, #5c4834, #2c2115) 1;
  box-shadow:
    inset 0 0 0 2px #c1a25f,                  /* gold fillet */
    0 18px 38px rgba(40,30,20,0.22),
    0 4px 10px rgba(40,30,20,0.12);
  transition: box-shadow .4s ease, transform .4s ease;
}
figure.work:hover .frame {
  transform: translateY(-5px);
  box-shadow:
    inset 0 0 0 2px #c1a25f,
    0 26px 50px rgba(40,30,20,0.28),
    0 6px 14px rgba(40,30,20,0.14);
}
.frame .art { position: relative; }
.frame .art img { width: 100%; height: auto; }
.frame .art::after {                          /* subtle shadow of the mat over the art */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 1px 8px rgba(0,0,0,0.28);
}
figure.work figcaption {                       /* museum placard */
  width: fit-content; max-width: 85%; margin: 18px auto 0; text-align: center;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  padding: 10px 22px; box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}
figure.work .t { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.3; }
figure.work .d { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin-top: 2px; }

/* ---------- Lightbox ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(255,255,255,0.97);
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 72px;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: calc(100% - 70px); object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
#lightbox .lb-caption { text-align: center; padding-top: 16px; }
#lightbox .lb-caption .t { font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
#lightbox .lb-caption .d { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
#lightbox .close { position: absolute; top: 14px; right: 22px; font-size: 1.9rem; background: none; border: none; cursor: pointer; color: var(--ink); font-family: var(--serif); }
#lightbox .close:hover { color: var(--accent); }
#lightbox .arrow { opacity: 0.55; }

/* ---------- About (split panels + scroll story) ---------- */
.story-panel {
  position: relative; height: calc(100vh - 66px); height: calc(100svh - 66px);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.story-panel.first { position: sticky; top: 66px; }
.story-panel.second { z-index: 5; box-shadow: 0 -18px 44px rgba(0,0,0,0.25); }
.story-panel .panel-photo { overflow: hidden; position: relative; }
.story-panel .panel-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.08); will-change: transform, filter;
}
.story-panel .panel-text {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); padding: 72px 24px;
}
.story-panel.second .panel-text { background: var(--bg); }
.panel-text-inner { max-width: 460px; }
.panel-text-inner p {
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.8;
  color: #333; margin-bottom: 18px;
}
.panel-text-inner p:first-child::first-letter {
  color: var(--accent); font-size: 1.6em; line-height: 1;
}
.panel-text-inner.statement p { font-style: italic; }
.scroll-hint {
  position: absolute; z-index: 2; bottom: 24px; left: 0; right: 0;
  text-align: center; color: var(--soft); font-size: 0.72rem;
  letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.9;
  transition: opacity .5s; pointer-events: none;
}
@media (max-width: 760px) {
  .story-panel { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 66px); }
  .story-panel.first { position: relative; top: 0; }
  .story-panel .panel-photo { height: 55vh; }
  .story-panel.second .panel-text { order: 2; }
  .story-panel.second .panel-photo { order: 1; }
  .story-panel .panel-text { padding: 48px 24px; }
  .scroll-hint { display: none; }
}

/* ---------- Contact ---------- */
#contact .contact-inner { text-align: center; padding: 0 24px 90px; }
.contact-logo { max-width: 180px; margin: 0 auto 30px; }
#contact p { color: var(--soft); max-width: 460px; margin: 0 auto 22px; }
.email-link {
  display: inline-block; font-family: var(--serif); font-size: 1.45rem; font-style: italic;
  color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent);
  padding-bottom: 2px; transition: opacity .25s;
}
.email-link:hover { opacity: 0.7; }

footer { border-top: 1px solid var(--line); text-align: center; padding: 26px 24px; }
footer p { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); }
footer .rose { color: var(--accent); font-family: var(--serif); font-style: italic; letter-spacing: 0.05em; text-transform: none; margin-top: 4px; }

@media (max-width: 640px) {
  .header-inner { justify-content: center; text-align: center; padding: 14px 12px; }
  nav { gap: 14px; flex-wrap: wrap; justify-content: center; }
  nav a { font-size: 0.74rem; letter-spacing: 0.16em; }
  #lightbox { padding: 48px 16px; }
}
