/* ============================================================
   JOHN | GIFTED ARTIST — "Lowcountry Dusk"
   Dark sky blue rooms, gold dusk light, Spanish moss, canvas grain.
   ============================================================ */

:root {
  /* dark sky blue — blue enough to feel like dusk, never black */
  --sky:         #1d3076;   /* primary room */
  --sky-deep:    #15235a;   /* darker room */
  --sky-deepest: #0c1432;   /* footer / lowest */
  --sky-raise:   #24439b;   /* raised panels */
  --edge:        rgba(169, 186, 222, 0.16);
  --edge-strong: rgba(169, 186, 222, 0.3);

  --gold:       #a9bade;
  --gold-soft:  #c9d5f0;
  --gold-dim:   rgba(169, 186, 222, 0.4);

  --white:      #fafbfe;
  --ivory:      #eef1f9;
  --baby:       #b9c7e8;   /* baby-blue secondary text */
  --baby-dim:   rgba(185, 199, 232, 0.72);
  --baby-faint: rgba(185, 199, 232, 0.5);

  --silhouette: #0b1d2e;   /* oak / marsh silhouettes */

  /* aliases kept for inline styles on inner pages */
  --ivory-dim: var(--baby-dim);
  --ivory-faint: var(--baby-faint);

  /* display face (var keeps its old name to avoid churn) */
  --serif: "Bricolage Grotesque", "Arial Black", sans-serif;
  --sans:  "Inter", "Helvetica Neue", sans-serif;

  --canvas-white: #f4f6fb;   /* the blank canvas of the hero */
  --ink-on-white: #0c1432;   /* dark sky blue text on the canvas */

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --measure: 62ch;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(185, 199, 232, 0.07), transparent 60%),
    var(--sky);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--sky-deepest); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- canvas grain over everything ---------- */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 999;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- typography ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.lede { font-size: 1.22rem; line-height: 1.8; color: var(--baby); max-width: var(--measure); }
p + p { margin-top: 1.35em; }
em.gold { font-style: italic; color: var(--gold-soft); }

/* ---------- layout primitives ---------- */
.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(820px, 92vw); margin-inline: auto; }
section { position: relative; }
.section-pad { padding-block: clamp(5rem, 11vw, 9.5rem); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: box-shadow 0.5s ease;
}
/* blur layer lives on a pseudo-element: backdrop-filter on .nav itself
   would make it the containing block for the fixed mobile menu */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 16, 40, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.nav-inner {
  width: min(1280px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.35rem;
  transition: padding 0.4s ease;
}
.nav.scrolled::before { opacity: 1; }
.nav.scrolled {
  box-shadow: 0 1px 0 rgba(169, 186, 222, 0.22), 0 18px 40px rgba(8, 20, 34, 0.45);
}
.nav.scrolled .nav-inner { padding-block: 0.85rem; }

.brand {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--white);
}
.brand .bar { color: var(--gold); margin-inline: 0.45rem; font-weight: 300; }
.brand .tag { font-style: italic; color: var(--baby); font-weight: 340; }

.nav-links { display: flex; align-items: center; gap: 2.1rem; list-style: none; }
.nav-links a {
  position: relative;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--baby-dim);
  padding-block: 0.6rem;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.2rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.nav-cta {
  color: var(--gold-soft);
  border: 1px solid var(--gold-dim);
  padding: 0.55rem 1.2rem;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--gold); color: var(--sky-deepest); border-color: var(--gold); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.7rem;
  z-index: 102;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--white);
  margin-block: 6px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(10, 16, 40, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 101;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 1.05rem; padding: 0.6rem 1rem; }
}

/* ============================================================
   HERO — the blank canvas
   White like a fresh canvas; the visitor's cursor is the brush
   that strips it away to reveal one of John's paintings.
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--canvas-white);
}

/* the painting hiding underneath */
.hero-painting {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-painting img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the white layer the brush strips away (goo filter melts the strokes) */
.hero-reveal {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  filter: url(#gooey-trail);
}

/* touch devices: no cursor, so show the painting through a soft wash */
@media (hover: none), (pointer: coarse) {
  .hero-reveal, .hero-hint { display: none; }
  .hero-painting::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(244, 246, 251, 0.92) 0%, rgba(244, 246, 251, 0.78) 55%, rgba(244, 246, 251, 0.55) 100%);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin-inline: auto;
  padding-top: 6.5rem;
  padding-bottom: 8rem;
}
/* a soft wash of canvas-white pinned behind the words, so they stay
   readable no matter how much of the painting has been revealed */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -3rem -4rem;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 38% 50%,
    rgba(244, 246, 251, 0.9) 0%,
    rgba(244, 246, 251, 0.7) 48%,
    rgba(244, 246, 251, 0.25) 72%,
    transparent 88%);
}
.hero h1 {
  font-size: clamp(2.9rem, 8.2vw, 6.6rem);
  font-weight: 780;
  max-width: 13ch;
  margin-block: 1.4rem 1.8rem;
  color: var(--ink-on-white);
  text-shadow:
    0 0 14px rgba(244, 246, 251, 0.95),
    0 0 38px rgba(244, 246, 251, 0.7);
}
.hero h1 .ital { font-style: normal; color: #24439b; font-weight: 780; }
.hero .lede {
  margin-bottom: 2.8rem;
  color: #25407a;
  text-shadow:
    0 0 10px rgba(244, 246, 251, 0.95),
    0 0 26px rgba(244, 246, 251, 0.75);
}
.hero .eyebrow { color: #24439b; }
.hero .eyebrow::before { background: linear-gradient(90deg, #24439b, transparent); }

/* ghost button needs ink, not ivory, on the canvas */
.hero .btn-ghost {
  background: rgba(244, 246, 251, 0.6);
  color: var(--ink-on-white);
  border-color: rgba(12, 20, 50, 0.35);
}
.hero .btn-ghost:hover {
  border-color: #24439b;
  color: #24439b;
}

/* the whisper in the corner */
.hero-hint {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  bottom: 2.2rem;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(12, 20, 50, 0.62);
}
.hero-hint em { color: #24439b; }

.hero-scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(12, 20, 50, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  z-index: 1;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: drip 2.6s var(--ease-out) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 880px), (max-height: 720px) {
  .hero-scroll { display: none; }
}

/* staged hero entrance */
.hero .stage { opacity: 0; transform: translateY(26px); animation: rise 1.1s var(--ease-out) forwards; }
.hero .stage:nth-child(1) { animation-delay: 0.15s; }
.hero .stage:nth-child(2) { animation-delay: 0.3s; }
.hero .stage:nth-child(3) { animation-delay: 0.55s; }
.hero .stage:nth-child(4) { animation-delay: 0.75s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.btn {
  position: relative;
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 1.05rem 2.4rem;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
/* light sweep */
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(253, 253, 250, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out);
}
.btn:hover::after { left: 130%; }
.btn-gold {
  background: linear-gradient(170deg, var(--gold-soft), var(--gold));
  color: #0c1432;
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(169, 186, 222, 0.35);
}
.btn-ghost {
  background: rgba(10, 16, 40, 0.25);
  color: var(--white);
  border: 1px solid rgba(185, 199, 232, 0.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-2px);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  background: var(--sky-deepest);
  border-block: 1px solid var(--edge);
  padding-block: 1.4rem;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 9rem;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--sky-deepest), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--sky-deepest), transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--baby);
  white-space: nowrap;
  padding-inline: 1.6rem;
  display: flex;
  align-items: center;
  gap: 3.2rem;
}
.marquee-track span::after {
  content: "✦";
  font-style: normal;
  font-size: 0.7rem;
  color: var(--gold);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   PAINTERLY DIVIDERS
   ============================================================ */
.divider { display: block; width: 100%; height: clamp(40px, 7vw, 90px); }
.divider path { fill: var(--sky-deep); }
.divider.to-sky path { fill: var(--sky); }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.bg-deep { background: var(--sky-deep); }
.bg-glow {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(169, 186, 222, 0.08), transparent 70%),
    var(--sky-deep);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

h2.display { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 1.5rem; }
h2.display .ital { font-style: italic; color: var(--gold-soft); }

/* stat blocks */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2.5rem 2rem;
  text-align: center;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--gold-soft);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--baby-faint);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: clamp(10rem, 20vh, 14rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 0%, rgba(169, 186, 222, 0.1), transparent 65%),
    radial-gradient(ellipse 45% 50% at 8% 90%, rgba(185, 199, 232, 0.08), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }

/* page hero with one of John's paintings behind a navy wash */
.page-hero--art {
  background-size: cover;
  background-position: center 38%;
}
.page-hero--art::before {
  background: linear-gradient(180deg,
    rgba(12, 20, 50, 0.86) 0%,
    rgba(12, 20, 50, 0.68) 55%,
    rgba(21, 35, 90, 0.94) 100%);
}
.page-hero h1 { font-size: clamp(2.7rem, 6.5vw, 4.8rem); max-width: 16ch; }
.page-hero h1 .ital { font-style: italic; color: var(--gold-soft); }
.page-hero .lede { margin-top: 1.6rem; }

/* ============================================================
   STORY TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: clamp(1.8rem, 5vw, 3.2rem); }
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-dim) 6%, var(--gold-dim) 94%, transparent);
}
.chapter { position: relative; padding-block: clamp(2.6rem, 5.5vw, 4.2rem); }
.timeline .chapter::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.8rem, 5vw, 3.2rem) - 4.5px);
  top: clamp(3.3rem, 6.5vw, 4.9rem);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky-deep);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 12px rgba(169, 186, 222, 0.5);
}
.chapter h3 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
}
.chapter .year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.8rem;
}
.chapter p { color: var(--baby); max-width: var(--measure); }

.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 4.1em;
  line-height: 0.78;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--gold);
  font-weight: 400;
}

/* pull quote */
.pull {
  position: relative;
  margin-block: clamp(4rem, 9vw, 7rem);
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 4rem);
  text-align: center;
}
.pull::before, .pull::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(5rem, 14vw, 9rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.pull::before { top: 0; }
.pull::after { bottom: 0; }
.pull blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.25;
  color: var(--white);
}
.pull blockquote .mark { color: var(--gold); font-size: 1.2em; }
.pull cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--baby-faint);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  columns: 3;
  column-gap: 1.8rem;
}
@media (max-width: 980px) { .gallery-grid { columns: 2; } }
@media (max-width: 600px) { .gallery-grid { columns: 1; } }

.art-card {
  break-inside: avoid;
  margin-bottom: 1.8rem;
  position: relative;
  cursor: pointer;
  border-radius: 2px;
  /* the frame */
  padding: 11px;
  background:
    linear-gradient(160deg, #24439b 0%, #15235a 50%, #1d3076 100%);
  box-shadow:
    inset 0 0 0 1px rgba(169, 186, 222, 0.22),
    inset 0 0 0 2.5px rgba(8, 12, 32, 0.8),
    0 18px 44px rgba(8, 20, 34, 0.5);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
.art-card:hover, .art-card:focus-visible {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px rgba(169, 186, 222, 0.6),
    inset 0 0 0 2.5px rgba(8, 12, 32, 0.8),
    0 0 42px rgba(169, 186, 222, 0.26),
    0 26px 60px rgba(8, 20, 34, 0.55);
}
.art-card .art {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1px;
}
/* painted treeline silhouette across the lower third of every canvas */
.art-card .art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M0,196 q14,-9 30,-7 q12,-12 26,-9 q18,-4 28,4 q16,-10 34,-6 q10,-8 24,-5 q14,-9 30,-4 q12,-7 26,-3 q18,-8 32,-2 q14,-7 28,-4 q12,-9 28,-5 q16,-6 30,-1 q14,-7 30,-3 q12,-5 24,-1 q16,-4 30,2 L400,200 L400,206 L0,206 Z' fill='%230b1d2e' opacity='0.85'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
  opacity: var(--treeline, 1);
}
/* spotlight sheen on hover */
.art-card .art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 50% -10%, rgba(253, 253, 250, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.art-card:hover .art::after, .art-card:focus-visible .art::after { opacity: 1; }

.art-card .plaque {
  position: absolute;
  left: 11px; right: 11px; bottom: 11px;
  padding: 1.5rem 1.2rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(8, 20, 34, 0.92) 55%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
}
.art-card:hover .plaque, .art-card:focus-visible .plaque { opacity: 1; transform: none; }
/* no hover on touch devices: keep the plaque visible */
@media (hover: none) {
  .art-card .plaque { opacity: 1; transform: none; }
}
.plaque .title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--white);
}
.plaque .medium {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 0.25rem;
}

/* real paintings: no painted-on treeline, natural aspect ratio */
.art-card .art--img::before { content: none; }
.art--img img {
  display: block;
  width: 100%;
  height: auto;
}

/* aspect helpers for the placeholder canvases */
.r-45 { aspect-ratio: 4 / 5; }
.r-11 { aspect-ratio: 1 / 1; }
.r-43 { aspect-ratio: 4 / 3; }
.r-34 { aspect-ratio: 3 / 4; }
.r-32 { aspect-ratio: 3 / 2; }

/* note strip */
.note-strip {
  border: 1px solid var(--edge);
  border-left: 2px solid var(--gold);
  background: rgba(36, 67, 155, 0.35);
  padding: 1.6rem 2rem;
  font-size: 0.98rem;
  color: var(--baby);
  max-width: 760px;
}

/* ============================================================
   QUOTE CARD (mission)
   ============================================================ */
.quote-card {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.6rem, 6vw, 5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 90% at 50% 0%, rgba(169, 186, 222, 0.1), transparent 70%),
    linear-gradient(170deg, var(--sky-raise), var(--sky-deep));
  border: 1px solid rgba(169, 186, 222, 0.32);
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(8, 20, 34, 0.5);
}
.quote-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(169, 186, 222, 0.16);
  border-radius: 2px;
  pointer-events: none;
}
.quote-card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4.6vw, 3.1rem);
  line-height: 1.22;
  font-weight: 390;
  color: var(--white);
}
.quote-card blockquote .gold-line { color: var(--gold-soft); }
.quote-card .attribution {
  margin-top: 1.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--baby-faint);
}

/* ============================================================
   FORMS (contact)
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .form-grid { grid-template-columns: 1fr; } }

.form-panel {
  background: linear-gradient(170deg, rgba(36, 67, 155, 0.55), rgba(21, 35, 90, 0.4));
  border: 1px solid var(--edge);
  border-radius: 3px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.form-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.form-panel .sub { font-size: 0.95rem; color: var(--baby-dim); margin-bottom: 1.8rem; }

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--baby-dim);
  margin-bottom: 0.55rem;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(10, 16, 40, 0.55);
  border: 1px solid var(--edge);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.9rem 1rem;
  min-height: 44px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 186, 222, 0.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold-soft);
  min-height: 1.4em;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--sky-deepest);
  border-top: 1px solid var(--edge);
  padding: 3.6rem 0 2.6rem;
}
.foot-signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--baby);
  text-align: center;
  margin-bottom: 3rem;
}
.foot-signoff .gold { color: var(--gold-soft); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.foot-brand { font-family: var(--serif); font-size: 1.25rem; color: var(--white); }
.foot-brand .bar { color: var(--gold); margin-inline: 0.4rem; }
.foot-brand .tag { font-style: italic; color: var(--baby); }
.foot-mission {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--baby-faint);
  max-width: 40ch;
}
.foot-right { text-align: right; font-size: 0.88rem; color: var(--baby-faint); }
.foot-right a { color: var(--gold-soft); text-decoration: none; padding-block: 0.4rem; display: inline-block; }
.foot-right a:hover { text-decoration: underline; }
.foot-copy { margin-top: 0.6rem; font-size: 0.78rem; letter-spacing: 0.08em; }
@media (max-width: 640px) {
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .foot-right { text-align: left; }
}

/* ============================================================
   FRAMED PAINTINGS (featured across the site)
   ============================================================ */
.framed {
  margin: 0;
  max-width: 620px;
}
.framed .framed-art {
  padding: 11px;
  border-radius: 2px;
  background: linear-gradient(160deg, #24439b 0%, #15235a 50%, #1d3076 100%);
  box-shadow:
    inset 0 0 0 1px rgba(169, 186, 222, 0.3),
    inset 0 0 0 2.5px rgba(8, 12, 32, 0.8),
    0 22px 54px rgba(8, 20, 34, 0.5);
}
.framed img { display: block; width: 100%; height: auto; }
.framed figcaption {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--baby-dim);
}
.framed--center { margin-inline: auto; }

/* ============================================================
   LIGHT NAV (home page, over the white canvas, before scroll)
   ============================================================ */
.home-light .nav:not(.scrolled) .brand { color: var(--ink-on-white); }
.home-light .nav:not(.scrolled) .brand .tag { color: #25407a; }
.home-light .nav:not(.scrolled) .brand .bar { color: #24439b; }
.home-light .nav:not(.scrolled) .nav-links:not(.open) a { color: rgba(12, 20, 50, 0.7); }
.home-light .nav:not(.scrolled) .nav-links:not(.open) a:hover,
.home-light .nav:not(.scrolled) .nav-links:not(.open) a.active { color: var(--ink-on-white); }
.home-light .nav:not(.scrolled) .nav-links:not(.open) a.nav-cta {
  color: #24439b;
  border-color: rgba(36, 67, 155, 0.55);
}
.home-light .nav:not(.scrolled) .nav-links:not(.open) a.nav-cta:hover {
  background: var(--gold);
  color: var(--sky-deepest);
  border-color: var(--gold);
}
.home-light .nav:not(.scrolled) .nav-toggle span { background: var(--ink-on-white); }

/* ============================================================
   BOLDER TYPE — straighten the italics, add weight
   ============================================================ */
h2.display .ital,
.page-hero h1 .ital {
  font-style: normal;
  font-weight: 780;
}
.brand .tag,
.foot-brand .tag { font-style: normal; font-weight: 420; }
.marquee-track span { font-style: normal; font-weight: 550; font-size: 1.05rem; letter-spacing: 0.02em; }
.plaque .title { font-style: normal; font-weight: 600; }
.framed figcaption { font-style: normal; font-weight: 480; font-size: 0.92rem; }
.chapter .year {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.pull blockquote { font-style: normal; font-weight: 700; }
.pull cite { font-style: normal; }
.quote-card blockquote { font-style: normal; font-weight: 700; }
.foot-signoff { font-style: normal; font-weight: 600; }
.hero-hint { font-style: normal; font-weight: 500; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.04em; }
.hero-hint em { font-style: normal; font-weight: 650; }

/* ============================================================
   SHOP — filters, collection sections, lightbox, buy
   ============================================================ */
.shop-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: 2.4rem;
}
.shop-count {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--baby-faint);
}
.shop-count strong { color: var(--gold-soft); font-weight: 600; }

/* filter pills */
.shop-filters {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.1rem 0;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--sky-deep) 72%, rgba(21, 35, 90, 0));
}
.filter-pill {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--baby-dim);
  background: rgba(36, 67, 155, 0.22);
  border: 1px solid var(--edge);
  border-radius: 100px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.filter-pill:hover { color: var(--white); border-color: var(--edge-strong); }
.filter-pill[aria-pressed="true"] {
  color: var(--sky-deepest);
  background: linear-gradient(170deg, var(--gold-soft), var(--gold));
  border-color: var(--gold);
  font-weight: 600;
}
.filter-pill .n {
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
  margin-left: 0.4rem;
}

/* collection section */
.collection-section { margin-top: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 5rem; }
.collection-section[hidden] { display: none; }
.collection-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.2rem;
  padding-bottom: 1.4rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--edge);
}
.collection-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 700;
}
.collection-head .ccount {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.collection-head .cblurb {
  flex-basis: 100%;
  color: var(--baby-dim);
  font-size: 1.02rem;
  max-width: 70ch;
}

/* the buy button on each card (revealed with the plaque) */
.art-card .buy {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  padding: 0.42rem 0.9rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.art-card:hover .buy, .art-card:focus-visible .buy { background: rgba(36, 67, 155, 0.35); }
.art-card .plaque .price {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--baby);
  margin-top: 0.3rem;
}

/* ============================================================
   LIGHTBOX / PRODUCT VIEW
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 10, 26, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
  width: min(1100px, 100%);
  max-height: 90vh;
}
@media (max-width: 760px) {
  .lightbox-inner { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
}
.lightbox-figure {
  background: linear-gradient(160deg, #24439b 0%, #15235a 50%, #1d3076 100%);
  padding: 12px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(169,186,222,0.3), inset 0 0 0 2.5px rgba(8,12,32,0.8), 0 30px 70px rgba(6,10,26,0.6);
}
.lightbox-figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 1px;
}
.lightbox-meta .lb-collection {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.lightbox-meta h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0.6rem 0 0.4rem;
}
.lightbox-meta .lb-medium { color: var(--baby-dim); font-size: 0.98rem; }
.lightbox-meta .lb-price {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
}
.lightbox-meta .lb-actions { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.lightbox-meta .lb-note { margin-top: 1.2rem; font-size: 0.84rem; color: var(--baby-faint); line-height: 1.6; }

/* print size selector */
.lb-sizes { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.3rem 0 0.3rem; }
.size-btn {
  font-family: var(--sans);
  min-width: 90px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: rgba(36, 67, 155, 0.22);
  color: var(--baby);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.size-btn .sz-label { display: block; font-size: 0.92rem; font-weight: 600; }
.size-btn .sz-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.2rem;
}
.size-btn:hover:not(:disabled) { border-color: var(--edge-strong); color: var(--white); }
.size-btn[aria-pressed="true"] {
  background: linear-gradient(170deg, var(--gold-soft), var(--gold));
  border-color: var(--gold);
  color: var(--sky-deepest);
}
.size-btn.sold-out {
  cursor: not-allowed;
  opacity: 0.5;
  background: rgba(10, 16, 40, 0.45);
  color: var(--baby-faint);
}
.size-btn.sold-out .sz-label { text-decoration: line-through; text-decoration-thickness: 1px; }
.size-btn.sold-out .sz-sub { color: #d597a6; opacity: 1; }
.lb-close {
  position: absolute;
  top: clamp(0.8rem, 2vw, 1.6rem);
  right: clamp(0.8rem, 2vw, 1.6rem);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(36, 67, 155, 0.3);
  border: 1px solid var(--edge-strong);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  font-size: 1.3rem; line-height: 1;
  transition: background 0.25s ease;
}
.lb-close:hover { background: rgba(36, 67, 155, 0.6); }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(36, 67, 155, 0.28);
  border: 1px solid var(--edge);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  font-size: 1.5rem; line-height: 1;
  transition: background 0.25s ease;
}
.lb-nav:hover { background: rgba(36, 67, 155, 0.55); }
.lb-prev { left: clamp(0.5rem, 2vw, 1.6rem); }
.lb-next { right: clamp(0.5rem, 2vw, 1.6rem); }
@media (max-width: 760px) { .lb-nav { display: none; } }
body.lb-locked { overflow: hidden; }

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero .stage { opacity: 1; transform: none; }
}
