:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --tint: #F2F2F2;
  --line: #E5E5E5;
  --muted: #6B6B6B;
  --muted-2: #4D4D4D;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Work Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.eyebrow-light { color: rgba(255,255,255,0.7); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav[data-theme="dark"] {
  background: rgba(255,255,255,0.78);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.nav[data-theme="light"] {
  background: rgba(10,10,10,0.35);
  border-bottom-color: rgba(255,255,255,0.15);
  color: #FFFFFF;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; height: 24px; }
.logo-img { height: 22px; width: auto; display: block; }
.logo-dark { display: block; }
.logo-light { display: none; }
.nav[data-theme="light"] .logo-dark { display: none; }
.nav[data-theme="light"] .logo-light { display: block; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 14px;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  color: inherit;
}
.nav-link:hover { opacity: 0.6; }
.nav-link[aria-current="page"] { border-bottom-color: currentColor; }
.nav-icons { display: flex; align-items: center; gap: 18px; color: inherit; }
.icon-btn {
  background: none; border: none; padding: 4px;
  display: flex; align-items: center; position: relative; color: inherit;
}
.hamburger { display: none; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--ink); color: var(--paper); border: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { opacity: 0.8; transform: translateY(-1px); }
.btn-light { background: #FFFFFF; color: #0A0A0A; }
.btn-block { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; width: fit-content;
  transition: opacity 0.15s ease;
}
.btn-ghost:hover { opacity: 0.55; }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  display: flex; flex-direction: column; padding: 24px 32px;
}
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 28px; margin-top: 56px; }
.mobile-menu-links a { font-family: "Fraunces", Georgia, serif; font-size: 28px; }

/* ---------- SEARCH ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 210; background: var(--paper); overflow-y: auto;
}
.search-inner { max-width: 720px; margin: 0 auto; padding: 32px 24px 80px; }
.search-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.search-input {
  border: none; border-bottom: 1px solid #D9D9D9; background: transparent;
  font-size: 26px; font-family: "Fraunces", Georgia, serif; padding: 10px 0; width: 100%; outline: none;
}
.search-results { margin-top: 40px; display: flex; flex-direction: column; gap: 40px; }
.search-group-title { margin-bottom: 16px; }
.search-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid #F0F0F0;
}
.search-row-title { font-size: 17px; }
.search-row-meta { font-size: 13px; color: var(--muted); }
.search-empty { margin-top: 40px; font-size: 15px; color: var(--muted); }

/* ---------- CHAPTERS (full-height sections) ---------- */
.chapter {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 32px;
  position: relative;
}
.chapter-inner { max-width: 720px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }

.display-1 { font-size: 88px; line-height: 1.02; color: inherit; }
.display-2 { font-size: 48px; line-height: 1.1; }
.display-3 { font-size: 38px; line-height: 1.15; }

/* ---------- HERO ---------- */
.hero {
  background: radial-gradient(120% 140% at 50% 0%, #2A2A2A 0%, #0A0A0A 60%);
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}
/* Fine diagonal hatching, faded out towards the edges so it reads as light
   falling on a surface rather than a flat pattern. */
.hero::before {
  content: "";
  position: absolute; inset: -10%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 9px),
    radial-gradient(60% 50% at 50% 38%, rgba(255,255,255,0.08) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
          mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  animation: herodrift 24s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}
/* Film grain over the whole section. */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
  z-index: -1;
  pointer-events: none;
}
@keyframes herodrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-2%, 1.5%, 0); }
}
.hero-copy { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 480px; line-height: 1.6; }
.hero-btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); opacity: 1; }
/* Featured artwork slideshow, filling the hero behind the headline. It sits
   between the hatching (::before) and the grain (::after), with a dark wash
   on top so the white type stays readable. */
.hero-featured { position: absolute; inset: 0; z-index: -1; background: #0A0A0A; }
.hero-featured::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.75) 100%);
}
.featured-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.2s ease;
}
.featured-slide.is-active { opacity: 1; }
.featured-slide picture { display: block; width: 100%; height: 100%; }
.featured-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: var(--featured-position, center);
}
/* Portrait crops are framed for tall screens, with the detail near the
   bottom, so anchor them there. Keep in step with PORTRAIT_QUERY in main.js. */
@media (max-aspect-ratio: 4/5) {
  .featured-slide picture:has(source) img { object-position: center bottom; }
}
/* Short phones have less room under the hero buttons, so drop it lower. */
@media (max-aspect-ratio: 4/5) and (max-height: 720px) {
  .featured-slide picture:has(source) img { object-position: left 50% bottom -30px; }
}
.featured-controls {
  position: absolute; right: 28px; bottom: 34px; z-index: 1;
  display: flex; align-items: center; gap: 4px;
}
.featured-dot, .featured-toggle {
  background: none; border: none; padding: 0;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
}
.featured-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8); transition: background 0.2s ease;
}
.featured-dot[aria-current="true"]::before { background: #FFFFFF; }
.featured-toggle:hover, .featured-dot:hover { color: #FFFFFF; }
.featured-dot:focus-visible, .featured-toggle:focus-visible { outline: 1px solid #FFFFFF; outline-offset: 2px; border-radius: 4px; }
.hero-featured-label {
  position: absolute; left: 32px; bottom: 40px; z-index: 1;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.85);
}
.scroll-cue {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
}
.scroll-cue span {
  display: block; width: 1px; height: 48px; background: rgba(255,255,255,0.5);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- STATEMENT ---------- */
.statement { background: #FFFFFF; padding: 160px 32px; }
.statement-text {
  max-width: 780px; text-align: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 400;
  font-size: 40px; line-height: 1.4; color: var(--muted);
}
.statement-fade { color: var(--ink); }

/* ---------- PAGE HEADERS (inner pages) ---------- */
.page-head { min-height: 64vh; padding: 180px 32px 110px; }
.page-head-light { background: #FFFFFF; }
.page-lede { font-size: 18px; color: var(--muted); max-width: 520px; line-height: 1.6; }

/* ---------- EXPLORE (homepage teaser) ---------- */
.explore { background: var(--tint); min-height: auto; padding: 140px 32px; }
.explore-list { width: 100%; max-width: 1100px; border-top: 1px solid #D9D9D9; }
.explore-row {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: baseline; gap: 24px;
  padding: 36px 0; border-bottom: 1px solid #D9D9D9;
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1), padding 0.3s cubic-bezier(0.16,1,0.3,1);
}
.explore-row:hover { padding-left: 12px; }
.explore-count { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.explore-title { font-family: "Fraunces", Georgia, serif; font-size: 48px; line-height: 1.1; }
.explore-desc { display: block; font-family: "Work Sans", system-ui, sans-serif; font-size: 15px; color: var(--muted); margin-top: 10px; }
.explore-arrow { font-size: 28px; }

/* ---------- ARTIST CARDS ---------- */
.artists-section { background: #FFFFFF; min-height: auto; padding: 120px 32px 140px; }
.artists-grid {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;
}
.artist-card {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 460px; border-radius: 24px; padding: 48px 32px;
  display: flex; align-items: center; justify-content: center;
}
.artist-card-photo {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.artist-card-has-photo { background: #0A0A0A; }
.artist-card-has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
}
.artist-card-inner {
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; max-width: 440px;
}
.artist-logo-large { max-width: 70%; max-height: 110px; width: auto; height: auto; }
.artist-name-large { font-size: 56px; }
.artist-tag-large { font-size: 17px; opacity: 0.75; max-width: 440px; }
.artist-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- WORK SECTION ---------- */
.work-section { background: var(--tint); min-height: auto; padding: 140px 32px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 56px; max-width: 620px; }
.section-subtext { font-size: 15px; color: var(--muted); }
.works-grid {
  width: 100%; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px;
}
.work-card {
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.work-card:hover { transform: translateY(-6px); }
.work-image { width: 100%; aspect-ratio: 1/1; border-radius: 18px; overflow: hidden; position: relative; }
.work-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.09); }
}
.kenburns {
  animation: kenburns 14s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .kenburns, .hero::before { animation: none; }
}
.work-title { font-size: 17px; font-weight: 500; font-family: "Fraunces", Georgia, serif; }
.work-artist { font-size: 13px; color: var(--muted); margin-top: 2px; }
.work-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.work-price { font-size: 14px; color: var(--muted-2); }
.work-link { font-size: 13px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 1px; width: fit-content; }
.work-card-placeholder:hover { transform: none; }
.work-card-placeholder .work-image {
  border: 1px dashed #BDBDBD; display: flex; align-items: center; justify-content: center;
}
.work-card-placeholder .work-title,
.work-card-placeholder .work-artist { color: #A6A6A6; }

/* ---------- PLACEHOLDER MARKER ---------- */
/* Flags copy or slots still waiting on real content. Remove with the copy. */
.placeholder-note {
  display: inline-block; width: fit-content;
  font-family: "Work Sans", system-ui, sans-serif; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 5px 10px; border: 1px dashed currentColor; border-radius: 999px; opacity: 0.6;
}

/* ---------- TRUST ---------- */
.trust { background: var(--ink); color: #FFFFFF; }
.trust-list { display: flex; flex-direction: column; gap: 32px; max-width: 620px; text-align: center; }
.trust-line { font-family: "Fraunces", Georgia, serif; font-size: 30px; line-height: 1.3; }

/* ---------- EDITORIAL ---------- */
.editorial { background: #FFFFFF; min-height: auto; padding: 140px 32px; }
.editorial-split {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; text-align: left;
}
.editorial-image { width: 100%; aspect-ratio: 4/5; border-radius: 24px; background: linear-gradient(160deg, #4A4A4A 0%, #0A0A0A 100%); }
.editorial-copy { display: flex; flex-direction: column; gap: 20px; max-width: 460px; }
.editorial-copy p { font-size: 16px; color: var(--muted-2); line-height: 1.7; }

/* ---------- JOURNAL ---------- */
.journal-section { background: #FFFFFF; min-height: auto; padding: 60px 32px 140px; }
.journal-list { width: 100%; display: flex; flex-direction: column; gap: 120px; }
.journal-upcoming { max-width: 1100px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.journal-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.journal-row {
  display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--muted);
}
.journal-row-kind { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; }
.journal-row-title { font-family: "Fraunces", Georgia, serif; font-size: 26px; color: #A6A6A6; }

/* ---------- ABOUT ---------- */
.about-block { background: #FFFFFF; min-height: auto; padding: 140px 32px; }
.about-block-tint { background: var(--tint); }
.about-split {
  width: 100%; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; text-align: left;
}
.about-split-copy { display: flex; flex-direction: column; gap: 18px; }
.about-split-copy p { font-size: 17px; color: var(--muted-2); line-height: 1.7; }

/* ---------- NEWSLETTER ---------- */
.newsletter { background: #FFFFFF; gap: 20px; min-height: auto; padding: 140px 32px; }
.newsletter p { font-size: 15px; color: var(--muted); max-width: 420px; text-align: center; }
.newsletter-form { display: flex; gap: 12px; margin-top: 12px; width: 100%; max-width: 420px; }
.newsletter-form input {
  flex-grow: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid #D9D9D9; background: #FFFFFF; font-size: 14px;
}
.newsletter-success { font-size: 14px; color: var(--muted-2); }

/* ---------- FOOTER ---------- */
.footer { padding: 64px 32px 40px; background: var(--ink); }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo-img { height: 22px; width: auto; display: block; margin-bottom: 12px; }
.footer-blurb { font-size: 13px; color: #B5B5B5; max-width: 220px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-heading { font-size: 13px; color: #FFFFFF; margin-bottom: 4px; }
.footer-link { font-size: 14px; color: #9A9A9A; }
.footer-link:hover { color: #FFFFFF; }
.footer-bottom {
  max-width: 1200px; margin: 24px auto 0; padding-top: 24px; border-top: 1px solid #2A2A2A;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 12px; color: #8A8A8A; }

.coming-soon-badge {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6;
}

/* ---------- CONTACT ---------- */
.contact { min-height: auto; padding: 140px 32px; }
.contact-inner {
  width: 100%; max-width: 700px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.contact-inner .display-2 { margin-bottom: 8px; }
.contact-intro { font-size: 15px; color: rgba(255,255,255,0.75); }
.contact-form {
  width: 100%; margin-top: 36px; text-align: left;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px;
}
.contact-field { display: flex; flex-direction: column; gap: 10px; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-field label { font-size: 14px; color: rgba(255,255,255,0.85); }
.contact-field input,
.contact-field textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; color: #FFFFFF;
  background: #000000; border: 1px solid rgba(255,255,255,0.7); border-radius: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-field input:focus,
.contact-field textarea:focus { outline: none; border-color: #FFFFFF; box-shadow: 0 0 0 1px #FFFFFF; }
.contact-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.contact-status { font-size: 14px; color: rgba(255,255,255,0.75); }
.contact .placeholder-note { margin-top: 28px; }

/* ---------- TRANSITION VEIL ---------- */
.veil {
  position: fixed; inset: 0; z-index: 300; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1);
}
.veil.is-on { opacity: 1; }
.veil-text {
  color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
}

[hidden] { display: none !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .display-1 { font-size: 52px; }
  .display-2 { font-size: 34px; }
  .display-3 { font-size: 28px; }
  .statement-text { font-size: 28px; }
  .trust-line { font-size: 22px; }
  .editorial-split { grid-template-columns: 1fr; }
  .artist-name-large { font-size: 40px; }
  .artists-grid { grid-template-columns: 1fr; }
  .artist-card { min-height: 400px; }
  .explore-row { grid-template-columns: 1fr auto; gap: 12px; }
  .explore-count { grid-column: 1 / -1; }
  .explore-title { font-size: 34px; }
  .journal-row { grid-template-columns: 1fr; gap: 10px; }
  .journal-row-title { font-size: 22px; }
  .about-split { grid-template-columns: 1fr; gap: 24px; }
  .page-head { min-height: 56vh; padding: 140px 24px 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-featured-label { left: 24px; bottom: 32px; }
  .featured-prefix { display: none; }
  .featured-controls { right: 16px; bottom: 26px; }
  .contact { padding: 100px 24px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .chapter { padding: 100px 24px; }
}
