:root {
  --bg: #ffffff; --surface: #ffffff; --surface-border: #eeeeee;
  --text: #111111; --text-muted: #666666; --accent: #000000; --stage: #ebe8e2;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0d0d0d; --surface: #141414; --surface-border: #222222;
  --text: #f5f5f5; --text-muted: #8f8f8f; --accent: #ffffff; --stage: #1b1a18;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color .3s ease, color .3s ease; min-height: 100vh; display: flex; flex-direction: column; }
body.modal-open { overflow: hidden; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
img { max-width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--text); color: var(--bg); padding: .6rem 1rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; z-index: 2000; }
.skip-link:focus { top: 1rem; }

/* HEADER */
header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--surface-border); }
.header-inner { max-width: 1300px; margin: 0 auto; padding: 1.75rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand-title { font-family: var(--font-serif); font-size: 1.85rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--text); }
nav { display: flex; align-items: center; gap: 2.5rem; flex: 1; margin-left: 3rem; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { font-size: .85rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; color: var(--text-muted); cursor: pointer; padding: .5rem 0; border-bottom: 1px solid transparent; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active { border-bottom-color: var(--text); }
button.nav-link { background: none; border: none; border-bottom: 1px solid transparent; font-family: inherit; display: inline-flex; align-items: center; gap: .4rem; }
button.nav-link.active { border-bottom-color: var(--text); }
.caret { font-size: .7em; transition: transform .2s ease; }
.nav-item.open .caret { transform: rotate(180deg); }
.nav-item.open > .nav-parent { color: var(--text); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 15rem; background: var(--bg); border: 1px solid var(--surface-border); padding: .4rem 0; z-index: 200; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s; }
@media (hover: hover) { .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s; } }
.dropdown-link { display: block; padding: .75rem 1.25rem; font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--text-muted); transition: var(--transition); }
.dropdown-link:hover, .dropdown-link.active { color: var(--text); }
.theme-toggle { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: .25rem .4rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.theme-toggle:hover { color: var(--text); }
@media (max-width: 1100px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding: 1.1rem 1.25rem; gap: .8rem; }
  .brand-title { font-size: 1.35rem; }
  nav { width: 100%; margin-left: 0; gap: 1.25rem; flex-wrap: wrap; }
  .nav-link { font-size: .75rem; letter-spacing: .1em; }
}

/* LAYOUT */
main { max-width: 1300px; width: 100%; margin: 0 auto; padding: 3.5rem 2rem 6rem; flex: 1; }
main:focus { outline: none; }
@media (max-width: 760px) { main { padding: 2.5rem 1.25rem 4rem; } }
.section-header { margin: 0 0 3rem; border-bottom: 1px solid var(--surface-border); padding-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.subtitle { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .5rem; display: block; }
.page-title { font-family: var(--font-serif); font-size: 2.75rem; font-weight: 400; letter-spacing: .02em; line-height: 1.1; }
.series-badge { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; }
.statement { max-width: 760px; font-size: 1.15rem; line-height: 1.8; font-weight: 300; margin-bottom: 3.5rem; }
.statement p { margin-bottom: 1.25rem; }
.statement p:last-child { margin-bottom: 0; }

/* HOME */
.hero-figure { max-width: 720px; margin: 0 auto; }
.hero-figure img { display: block; width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.hero-caption { margin-top: 1rem; text-align: center; font-size: .85rem; color: var(--text-muted); letter-spacing: .04em; }
.hero-caption a { color: inherit; }
.home-statement { max-width: 560px; margin: 2.5rem auto 0; text-align: center; font-family: var(--font-serif); font-size: 1.7rem; line-height: 1.35; }

/* GALLERY */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; list-style: none; }
@media (max-width: 1024px) { .series-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .series-grid { grid-template-columns: 1fr; } }
.art-card .open { display: block; width: 100%; background: none; border: 0; padding: 0; cursor: zoom-in; text-align: left; font: inherit; color: inherit; text-decoration: none; }
.canvas-box { width: 100%; aspect-ratio: 4 / 5; background: var(--stage); overflow: hidden; margin-bottom: 1rem; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.canvas-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-card .open:hover .canvas-box, .art-card .open:focus-visible .canvas-box { transform: translateY(-4px); }
.caption-container { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.art-title { font-size: 1.2rem; font-weight: 600; line-height: 1.25; margin-bottom: .25rem; }
.art-meta { font-size: .8rem; color: var(--text-muted); letter-spacing: .02em; }
.status-tag { display: inline-block; font-size: .62rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: .1rem .4rem; border: 1px solid var(--text-muted); color: var(--text); white-space: nowrap; }

/* LIGHTBOX */
.lb { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; }
.lb.active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease, visibility 0s linear 0s; }
.lb-dialog { position: relative; background: var(--bg); width: 100%; max-width: 1120px; height: min(90vh, 820px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,.3); transform: translateY(10px); transition: transform .3s ease; }
.lb.active .lb-dialog { transform: translateY(0); }
.lb-view { position: relative; min-height: 0; background: var(--stage); display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.lb-view img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.lb-close { position: absolute; top: .6rem; right: .6rem; z-index: 4; background: var(--bg); border: none; font-size: 1.75rem; line-height: 1; width: 2.5rem; height: 2.5rem; cursor: pointer; color: var(--text); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: var(--bg); color: var(--text); border: 1px solid var(--surface-border); width: 2.5rem; height: 2.5rem; font-size: 1.1rem; cursor: pointer; transition: var(--transition); }
.lb-nav:hover { border-color: var(--text); }
.lb-prev { left: .75rem; } .lb-next { right: .75rem; }
.lb-count { position: absolute; left: .75rem; bottom: .75rem; z-index: 3; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; background: var(--bg); color: var(--text-muted); padding: .35rem .6rem; }
.lb-info { padding: 3rem 2.5rem 2.5rem; overflow-y: auto; min-height: 0; }
.lb-info .art-title { font-size: 1.8rem; font-family: var(--font-sans); }
.spec { margin: 1.25rem 0 1.75rem; border-top: 1px solid var(--surface-border); }
.spec-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--surface-border); font-size: .9rem; }
.spec-label { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); padding-top: .15rem; }
.spec-row strong { font-weight: 600; }
.spec-note { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }
.btn { display: inline-block; font-family: inherit; font-size: .8rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; color: var(--text); padding: .9rem 1.6rem; border: 1px solid var(--text); background: transparent; cursor: pointer; transition: var(--transition); }
.btn:hover, .btn.solid { background: var(--text); color: var(--bg); }
.btn.solid:hover { background: transparent; color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 800px) {
  .lb { padding: .75rem; }
  .lb-dialog { height: 94vh; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 42%) minmax(0, 58%); }
  .lb-info { padding: 1.25rem 1.25rem 1.5rem; }
  .lb-info .art-title { font-size: 1.5rem; }
  .spec-row { grid-template-columns: 6rem 1fr; gap: .75rem; }
  .lb-view { padding: .75rem; }
}

/* TEXT PAGES */
.prose { max-width: 720px; font-size: 1.1rem; line-height: 1.85; font-weight: 300; }
.prose p { margin-bottom: 1.4rem; }
.prose a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--text-muted); }
.prose a:hover { border-bottom-color: var(--text); }
.block { margin: 3rem 0 2rem; border-top: 1px solid var(--surface-border); padding-top: 2rem; }
.block h2 { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 400; margin-bottom: 1.25rem; letter-spacing: .05em; }
.steps { list-style: none; counter-reset: s; margin-bottom: 1.5rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; padding: .35rem 0 .9rem; font-size: 1.05rem; }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: .75rem; letter-spacing: .15em; color: var(--text-muted); padding-top: .45rem; }
.terms { margin: 0; }
.terms dt { font-size: .8rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); margin-top: 1.5rem; }
.terms dt:first-child { margin-top: 0; }
.terms dd { margin: .3rem 0 0; font-size: 1.05rem; }
.about-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 800px) { .about-layout { grid-template-columns: 1fr; gap: 2rem; } }
.portrait-frame { width: 100%; max-width: 240px; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-border); border: 1px solid var(--surface-border); }
.portrait-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-caption { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); margin-top: .75rem; }
.contact-card { max-width: 650px; margin: 0 auto; text-align: center; padding: 4rem 2rem; background: var(--surface); border: 1px solid var(--surface-border); }
.contact-email { font-family: var(--font-serif); font-size: 2.25rem; color: var(--text); text-decoration: none; display: inline-block; margin: 1.5rem 0; border-bottom: 1px solid transparent; overflow-wrap: anywhere; transition: var(--transition); }
.contact-email:hover { border-color: var(--text); }
.contact-card p { color: var(--text-muted); font-size: .9rem; margin-top: .75rem; }
.contact-card a.ig { color: var(--text-muted); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
@media (max-width: 480px) { .contact-email { font-size: 1.6rem; } }

footer { text-align: center; padding: 2.5rem 1.5rem; font-size: .8rem; color: var(--text-muted); border-top: 1px solid var(--surface-border); }
footer a { color: inherit; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
