*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --white: #ffffff;
  --off-white: #f9f9f9;
  --light: #efefef;
  --mid: #aaaaaa;
  --dark: #333333;
  --ink: #0d0d0d;
}
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  cursor: none;
}

/* Cursor */
.cursor { width: 7px; height: 7px; background: var(--ink); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
.cursor-ring { width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; opacity: 0.35; }

/* NAV */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 2rem 5rem; display: flex; justify-content: space-between; align-items: center; background: transparent; border-bottom: 1px solid transparent; transition: background 0.4s, border-color 0.3s; }
.site-nav.scrolled { background: rgba(255,255,255,0.93); backdrop-filter: blur(8px); border-bottom-color: var(--light); }
.site-nav.nav-light { background: rgba(255,255,255,0.93); backdrop-filter: blur(8px); border-bottom-color: var(--light); }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: #fff; text-decoration: none; transition: color 0.4s; }
.site-nav.scrolled .nav-logo, .site-nav.nav-light .nav-logo { color: var(--ink); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.85rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.95); text-decoration: none; padding-bottom: 0.25rem; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s, opacity 0.3s; }
.site-nav.scrolled .nav-links a, .site-nav.nav-light .nav-links a { color: var(--dark); }
.nav-links a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }
.site-nav.scrolled .nav-links a:hover, .site-nav.nav-light .nav-links a:hover { color: var(--ink); border-bottom-color: var(--mid); }
.nav-links a.active { color: var(--ink); font-weight: 500; }

/* Dropdown submenus */
.nav-links li { position: relative; }
.nav-dropdown { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); border: 1px solid var(--light); padding: 0.6rem 0; min-width: 160px; list-style: none; z-index: 200; }
.nav-links > li { padding-bottom: 0.8rem; margin-bottom: -0.8rem; }
.nav-links > li:hover > .nav-dropdown { display: block; }
.nav-dropdown li { padding: 0; }
.nav-dropdown a { display: block; padding: 0.4rem 1.2rem; font-size: 0.72rem !important; letter-spacing: 0.12em !important; color: var(--dark) !important; white-space: nowrap; border-bottom: none !important; }
.nav-dropdown a:hover { color: var(--ink) !important; background: var(--off-white); }
.nav-links .nav-ig { border-bottom: none; padding-bottom: 0; display: inline-flex; align-items: center; }
.nav-links .nav-ig svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.95); transition: fill 0.3s, opacity 0.3s; }
.site-nav.scrolled .nav-links .nav-ig svg, .site-nav.nav-light .nav-links .nav-ig svg { fill: var(--dark); }
.nav-links .nav-ig:hover svg { fill: #fff; opacity: 0.7; }
.site-nav.scrolled .nav-links .nav-ig:hover svg, .site-nav.nav-light .nav-links .nav-ig:hover svg { fill: var(--ink); opacity: 0.7; }

/* HERO — fullscreen */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 3rem 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: heroPan 18s ease-in-out infinite alternate;
}
@keyframes heroPan {
  0%   { object-position: center top; }
  100% { object-position: center bottom; }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 60%);
}
.hero-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.05em;
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1.2s 0.3s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  opacity: 0;
  animation: fadeUp 1s 0.8s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
.hero-painting-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-links { display: flex; gap: 2.5rem; list-style: none; }
.hero-links a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.2rem;
  transition: color 0.3s, border-color 0.3s;
}
.hero-links a:hover { color: #fff; border-color: #fff; }

.eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid); margin-bottom: 1.5rem; display: block; }
.btn { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 0.2rem; transition: gap 0.3s, color 0.3s, border-color 0.3s; }
.btn:hover { gap: 1.2rem; color: var(--mid); border-color: var(--mid); }

/* PAGE HEADER */
.page-header {
  padding: 10rem 5rem 1rem;
  border-bottom: 1px solid var(--light);
  margin-bottom: 0;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}
.page-header h1 em { font-style: italic; color: var(--mid); }
.year-nav { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
.page-header:has(.year-nav) { border-bottom: none; padding-bottom: 0.5rem; }
.year-nav a { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid); text-decoration: none; padding-bottom: 0.2rem; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.year-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* DIVIDER */
.divider { display: flex; align-items: center; gap: 2rem; padding: 0 5rem; margin: 1rem 0; scroll-margin-top: 5rem; }
.divider span { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid); white-space: nowrap; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--light); }

/* GALLERY */
.gallery-section { padding: 5rem 5rem 2rem; }
.section-header { margin-bottom: 2.5rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; }
.section-title em { font-style: italic; color: var(--mid); }

/* Drawing — asymmetric */
.gallery-drawing { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.gallery-drawing .gi:nth-child(1) { grid-column: span 5; }
.gallery-drawing .gi:nth-child(2) { grid-column: span 4; }
.gallery-drawing .gi:nth-child(3) { grid-column: span 3; }
.gallery-drawing .gi:nth-child(4) { grid-column: span 7; }
.gallery-drawing .gi:nth-child(5) { grid-column: span 5; }

/* Painting — asymmetric grid */
.gallery-painting {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 340px;
  gap: 1rem;
}
.gi-tall { grid-row: span 2; }
.gi-wide { grid-column: span 2; }

.gi-inner-free {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--light);
}
.gi-inner-free img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gi:hover .gi-inner-free img { transform: scale(1.03); }

/* Shared gi */
.gi { overflow: hidden; position: relative; background: var(--light); cursor: none; }
.gi-inner { width: 100%; padding-bottom: 120%; position: relative; overflow: hidden; }
.gallery-drawing .gi:nth-child(4) .gi-inner { padding-bottom: 55%; }
.gallery-painting .gi .gi-inner { padding-bottom: 100%; }
.gallery-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94); }
.gi:hover .gallery-placeholder { transform: scale(1.04); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(13,13,13,0); transition: background 0.4s; display: flex; align-items: flex-end; padding: 1.25rem; }
.gi:hover .gallery-overlay { background: rgba(13,13,13,0.45); }
.gallery-caption { color: #fff; opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.gi:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-caption strong { font-size: 0.9rem; font-weight: 400; }
.gallery-caption p { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

.s1 { background: #e5e5e5; } .s2 { background: #d8d8d8; } .s3 { background: #cccccc; }
.s4 { background: #dcdcdc; } .s5 { background: #d0d0d0; } .s6 { background: #ebebeb; }

/* ABOUT */
.about-section { padding: 6rem 5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; align-items: center; border-top: 1px solid var(--light); }
.about-visual { position: relative; }
.about-img { width: 78%; padding-bottom: 105%; background: var(--light); position: relative; overflow: hidden; }
.about-img-accent { width: 48%; padding-bottom: 42%; background: var(--off-white); border: 1px solid var(--light); position: absolute; bottom: -2.5rem; right: -2.5rem; overflow: hidden; }
.about-quote { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-style: italic; color: var(--dark); margin-bottom: 2rem; line-height: 1.55; padding-left: 1.5rem; border-left: 2px solid var(--ink); }
.about-text { color: var(--dark); font-size: 0.93rem; margin-bottom: 1.5rem; line-height: 1.95; }
.about-stats { display: flex; gap: 3rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--light); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 400; display: block; }
.stat-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); }

/* PROCESS */
.process-section { padding: 5rem 5rem 6rem; border-top: 1px solid var(--light); }

/* CONTACT */
.contact-section { padding: 6rem 5rem; border-top: 1px solid var(--light); text-align: center; }
.contact-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; margin-bottom: 1rem; line-height: 1.15; }
.contact-title em { font-style: italic; color: var(--mid); }
.contact-sub { color: var(--dark); font-size: 0.93rem; margin-bottom: 3rem; }
.contact-form { max-width: 500px; margin: 0 auto; display: grid; gap: 1.25rem; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.form-field input, .form-field textarea { background: transparent; border: none; border-bottom: 1px solid var(--light); padding: 0.5rem 0; font-family: 'DM Sans', sans-serif; font-size: 0.93rem; color: var(--ink); outline: none; resize: none; transition: border-color 0.3s; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--ink); }
.form-submit { display: inline-flex; align-items: center; gap: 0.75rem; background: var(--ink); color: var(--white); border: none; padding: 0.95rem 2.5rem; font-family: 'DM Sans', sans-serif; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; cursor: none; transition: background 0.3s, gap 0.3s; margin-top: 0.5rem; justify-self: center; }
.form-submit:hover { background: var(--dark); gap: 1.2rem; }
.form-submit:disabled { opacity: 0.5; pointer-events: none; }
.form-status { font-size: 1rem; text-align: center; margin-top: 1rem; min-height: 1.2em; padding: 0.8rem 1.5rem; border-radius: 4px; transition: opacity 0.3s; }
.form-status-success { color: #2d7a3a; background: #e8f5e9; border: 1px solid #c8e6c9; font-weight: 400; }
.form-status-error { color: #b33; background: #fdecea; border: 1px solid #f5c6cb; font-weight: 400; }

/* FOOTER */
footer { padding: 2rem 5rem; border-top: 1px solid var(--light); display: flex; justify-content: space-between; align-items: center; }
footer p { font-size: 0.75rem; color: var(--mid); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.75rem; color: var(--mid); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--ink); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.fu { opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.fu:nth-child(1){animation-delay:0.05s} .fu:nth-child(2){animation-delay:0.2s} .fu:nth-child(3){animation-delay:0.35s} .fu:nth-child(4){animation-delay:0.5s}
.hero-visual { animation: fadeUp 1.1s 0.25s cubic-bezier(0.25,0.46,0.45,0.94) both; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; display: block; }
.lightbox-caption { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 0.78rem; letter-spacing: 0.12em; text-align: center; white-space: nowrap; }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; color: #fff; opacity: 0.6; transition: opacity 0.2s; background: none; border: none; font-family: inherit; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; cursor: none; }
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; opacity: 0.5; transition: opacity 0.2s; background: none; border: none; font-family: inherit; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; cursor: none; }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }

/* Hamburger button */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0; width: 28px; height: 20px; position: relative; z-index: 201; }
.nav-hamburger span { display: block; width: 100%; height: 1.5px; background: var(--ink); position: absolute; left: 0; transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-hamburger span:nth-child(3) { bottom: 0; }
.nav-hamburger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
/* White hamburger on hero page before scroll */
.site-nav:not(.scrolled):not(.nav-light) .nav-hamburger span { background: #fff; }

@media (max-width: 900px) {
  .nav-hamburger { display: block; }
  /* When menu is open, the entire nav becomes fullscreen */
  .site-nav { padding: 1.2rem 2rem; transition: none; }
  .site-nav.mobile-menu-open {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column;
    justify-content: flex-start; align-items: stretch;
    padding: 1.2rem 2rem; z-index: 9999;
  }
  .site-nav.mobile-menu-open .nav-logo { color: var(--ink); }
  .site-nav.mobile-menu-open .nav-hamburger span { background: var(--ink); }
  /* Force dark text on all links when mobile menu is open (fixes white-on-white on hero page) */
  .site-nav.mobile-menu-open .nav-links a { color: var(--ink) !important; }
  .site-nav.mobile-menu-open .nav-links .nav-ig svg { fill: var(--ink) !important; }
  .site-nav.mobile-menu-open .nav-dropdown a { color: var(--mid) !important; }
  /* Top bar row inside fullscreen nav */
  .site-nav.mobile-menu-open { display: flex; flex-wrap: wrap; }
  /* Hide links by default on mobile */
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; align-items: center;
    gap: 1.6rem; width: 100%; padding-top: 3rem;
    order: 3; /* push below the logo + hamburger row */
  }
  .nav-links > li { padding-bottom: 0; margin-bottom: 0; text-align: center; }
  .nav-links a, .site-nav.scrolled .nav-links a, .site-nav.nav-light .nav-links a,
  .site-nav.mobile-menu-open .nav-links a { color: var(--ink); font-size: 1rem; letter-spacing: 0.14em; }
  .nav-links .nav-ig svg, .site-nav.scrolled .nav-links .nav-ig svg,
  .site-nav.nav-light .nav-links .nav-ig svg,
  .site-nav.mobile-menu-open .nav-links .nav-ig svg { fill: var(--ink); }
  /* Mobile dropdowns: show inline */
  .nav-dropdown { display: none; position: static; transform: none; background: transparent; border: none; backdrop-filter: none; padding: 0.5rem 0 0; min-width: 0; text-align: center; }
  .nav-links > li:hover > .nav-dropdown { display: none; }
  .nav-dropdown.mobile-expanded { display: block; }
  .nav-dropdown a { padding: 0.3rem 0 !important; font-size: 0.78rem !important; color: var(--mid) !important; background: none !important; }
  .nav-dropdown a:hover { color: var(--ink) !important; }
  /* Page layout */
  .hero { grid-template-columns: 1fr; padding: 6rem 2rem 3rem; gap: 2.5rem; }
  .hero-visual { height: 300px; }
  .gallery-section { padding: 3rem 2rem; }
  .gallery-drawing { grid-template-columns: 1fr 1fr; }
  .gallery-drawing .gi:nth-child(n) { grid-column: span 1; }
  .gallery-drawing .gi:nth-child(n) .gi-inner { padding-bottom: 120%; }
  .gallery-painting { grid-template-columns: 1fr 1fr; }
  .about-section { grid-template-columns: 1fr; padding: 4rem 2rem; gap: 3rem; }
  .contact-section { padding: 4rem 2rem; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column-reverse; gap: 1rem; text-align: center; padding: 2rem; }
  .divider { padding: 0 2rem; }
  .page-header { padding: 6rem 2rem 2rem; }
  .process-section { padding: 3rem 2rem 4rem; }
}
