/* ============================================================
   AMOIRE — Design System
   Editorial · Fraunces + Inter Tight · Signal-orange on bone
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter+Tight:wght@300;400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Semantic palette */
  --paper:      #ededed;          /* page bg — concrete */
  --paper-2:    #e4e1d9;          /* slight tonal shift — warm bone */
  --canvas:     #f3efe7;          /* warm off-white — softer than paper */
  --bone:       #e4e1d9;          /* alias of paper-2 — warm cream */
  --mist:       #e6e8ea;          /* cool light grey — slate-tinted */
  --ink:        #111111;          /* primary text + dark surfaces */
  --ink-soft:   #2a2a2a;          /* softened body text on paper */
  --accent:     #d24a1a;          /* signal orange — slightly deeper for AA */
  --steel:      #54585c;          /* secondary text — darkened, ~7:1 on paper */
  --steel-soft: #8d9094;          /* divider/icon mid-grey (decorative only) */
  --rule:       #b8b8b6;          /* hairlines + borders */

  /* RGB channel pairs (for rgba overlays) */
  --paper-rgb:  237, 237, 237;
  --ink-rgb:    17, 17, 17;
  --accent-rgb: 210, 74, 26;

  /* Legacy aliases — keep so existing HTML inline styles keep working */
  --black:      var(--ink);
  --dark:       #1c1c1e;
  --surface:    var(--paper-2);
  --border:     var(--rule);
  --white:      var(--paper);
  --muted:      var(--steel);
  --copper:     var(--accent);
  --teal:       #2a8c7c;
  --red:        var(--accent);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans:    'Inter Tight', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-serif:   var(--font-display); /* alias — old code referenced --font-serif */
  --font-mono:    var(--font-sans);    /* alias — keep older inline refs working */

  /* Layout */
  --nav-h: 88px;
  --nav-h-scrolled: 68px;
  --max-w: 1320px;
  --gap:   clamp(1rem, 3vw, 2rem);

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

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  color-scheme: light;            /* opt out of Chrome / Safari auto-dark */
  background: var(--paper);
}
body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: clamp(15.5px, 1.05vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  /* Fraunces variable optical-size settings */
  font-variation-settings: "opsz" 80, "SOFT" 30, "WONK" 0;
}
h1 { font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
h2 { font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 0; }
h3, h4 { font-variation-settings: "opsz" 36, "SOFT" 30, "WONK" 0; }
p { color: var(--ink-soft); }

.label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.copper { color: var(--accent); }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}
.section {
  padding-block: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: 0; }
.section--tight { padding-block: clamp(2rem, 4vw, 4rem); }

/* Tonal section variants — break up rhythm without going dark.
   Each removes its top hairline so the colour shift is the divider. */
.section--canvas { background: var(--canvas); border-top: 0; }
.section--bone   { background: var(--bone);   border-top: 0; }
.section--mist   { background: var(--mist);   border-top: 0; }
.section--canvas + .section,
.section--bone   + .section,
.section--mist   + .section,
.section + .section--canvas,
.section + .section--bone,
.section + .section--mist { border-top: 0; }

/* ── NAV ─────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  transition: background 0.3s var(--ease-out),
              border-color 0.3s,
              box-shadow 0.3s,
              padding 0.3s var(--ease-out);
}
#nav.scrolled {
  background: rgba(var(--paper-rgb), 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 var(--rule), 0 10px 28px -18px rgba(var(--ink-rgb), 0.18);
}

#nav .container {
  width: 100%;
  max-width: var(--max-w);
}

/* Utility strip — collapses on scroll */
.nav-utility {
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  max-height: 36px;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out),
              border-color 0.3s,
              opacity 0.25s;
}
.nav-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.55rem;
  gap: 1rem;
}
.nav-utility a { color: var(--steel); transition: color 0.15s; }
.nav-utility a:hover { color: var(--accent); }
.nav-utility .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.6rem;
  vertical-align: middle;
  transform: translateY(-1px);
}
#nav.scrolled .nav-utility {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--nav-h);
  gap: 2rem;
  transition: height 0.3s var(--ease-out);
}
#nav.scrolled .nav-inner { height: var(--nav-h-scrolled); }

.nav-logo {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.9vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  justify-self: start;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.nav-logo span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  align-items: center;
  justify-self: center;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.15s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; left: 0; }
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* Right-side CTA */
.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-cta::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out);
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.nav-cta:hover::after { transform: scale(1.4); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  padding-right: 1rem;
  padding-bottom: 1.25rem;       /* invisible bridge to dropdown */
  margin-bottom: -1.25rem;
}
.nav-dropdown > a::before {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-top-color: var(--ink);
  border-bottom: none;
  margin-top: 2px;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -4px);
  background: var(--paper);
  border: 1px solid var(--ink);
  min-width: 260px;
  padding: 0.25rem 0;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 18px 40px -22px rgba(var(--ink-rgb), 0.35);
  transition: opacity 0.18s, transform 0.18s var(--ease-out);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, 0);
}
.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.dropdown-menu a:last-child { border-bottom: 0; }
.dropdown-menu a:hover { color: var(--accent); background: var(--paper-2); }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  z-index: 99;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nav-mobile.open {
  opacity: 1;
  transform: translateX(0);
}
.nav-mobile a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  transition: color 0.15s, padding-left 0.15s;
}
.nav-mobile a:hover { color: var(--accent); padding-left: 0.5rem; }
.nav-mobile .mobile-sub { padding-left: 1rem; border-left: 2px solid var(--rule); margin-block: 0.5rem; }
.nav-mobile .mobile-sub a {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--steel);
  text-transform: uppercase;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s var(--ease-out);
  /* Compensate for low-res Weebly source images: gently re-sharpen */
  filter: contrast(1.05) saturate(1.06);
  image-rendering: -webkit-optimize-contrast;
}
.hero-slide picture { display: contents; }
.hero-slide.active img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(var(--ink-rgb), 0.15) 0%,
    rgba(var(--ink-rgb), 0.05) 35%,
    rgba(var(--ink-rgb), 0.75) 100%
  );
}

/* Moiré interference overlay — two concentric-ring screens with slightly
   different ring spacing and offset centers. Where the rings cross, classic
   circular moiré ("ripple tank") interference emerges and slowly drifts as
   the centers shift. Thematically tied to the Amoire name; also adds
   high-frequency detail that masks softness in the legacy hero sources. */
.hero-moire {
  position: absolute;
  inset: -12%;                       /* bleed so motion never reveals corners */
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  mix-blend-mode: overlay;
}
.hero-moire::before,
.hero-moire::after {
  content: "";
  position: absolute;
  inset: 0;
}
/* Screen A — finer rings, white, center anchored off-screen left */
.hero-moire::before {
  background: repeating-radial-gradient(
    circle at -10% 50%,
    rgba(255, 255, 255, 0.55) 0 1px,
    transparent             1px 7px
  );
  animation: moire-center-a 32s ease-in-out infinite alternate;
  will-change: transform;           /* force GPU layer on iOS Safari */
}
/* Screen B — slightly coarser rings, black, center anchored off-screen right */
.hero-moire::after {
  background: repeating-radial-gradient(
    circle at 110% 50%,
    rgba(0, 0, 0, 0.55)     0 1px,
    transparent             1px 7.6px
  );
  animation: moire-center-b 32s ease-in-out infinite alternate;
  will-change: transform;           /* force GPU layer on iOS Safari */
}
@keyframes moire-center-a {
  0%   { transform: translate(0,    0); }
  100% { transform: translate(6%,  -2%); }
}
@keyframes moire-center-b {
  0%   { transform: translate(0,    0); }
  100% { transform: translate(-6%,  2%); }
}

@media (max-width: 768px) {
  .hero-moire { display: none; }
}

.hero-content {
  position: absolute;
  bottom: clamp(3rem, 8vw, 6rem);
  left: 0; right: 0;
  color: var(--paper);
  z-index: 2;
}
.hero-content .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-caption {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: none;
  max-width: 22ch;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero-caption-sub {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
/* (decorative prefix removed for editorial direction) */

/* Dots */
.hero-dots {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  right: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  gap: 4px;
  z-index: 3;
}
.hero-dot {
  width: 28px; height: 2px;
  border-radius: 0;
  background: rgba(var(--paper-rgb), 0.4);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  border: none;
  padding: 0;
}
.hero-dot.active {
  background: var(--accent);
}

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 70ch;
}
.section-header h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-top: 0.5rem;
}
.section-header p {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ── FEATURED BLOCK (2-col text+image) ───────────────────── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-block__img {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--ink);
}
.feature-block__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.feature-block__img:hover img { transform: scale(1.03); }
.feature-block__img .img-label {
  position: absolute;
  bottom: 0; left: 0;
  background: var(--ink);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border-radius: 0;
}
.feature-block__text { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-block__text h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}
.feature-block__text .price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
}
.feature-block__text .note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
}

/* ── CTA BUTTON ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  border-radius: 0;
  cursor: pointer;
}
.btn::after { content: ' →'; transition: transform 0.2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: translate(1px, 1px); }
.btn--ghost { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }


/* ── GALLERY GRID ────────────────────────────────────────── */
.gallery-grid {
  columns: 3;
  column-gap: var(--gap);
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 0;
  border: 1px solid var(--ink);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .gallery-caption {
  position: absolute;
  inset: 0;
  background: rgba(var(--ink-rgb), 0);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: background 0.25s;
}
.gallery-item:hover .gallery-caption { background: rgba(var(--ink-rgb), 0.55); }
.gallery-item .gallery-caption span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.gallery-item:hover .gallery-caption span { opacity: 1; transform: translateY(0); }

/* ── CARD GRID (galleries hub) ───────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--ink);
  aspect-ratio: 3/4;
  display: block;
  background: var(--ink);
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), opacity 0.3s;
}
.card:hover img { transform: scale(1.05); opacity: 0.85; }
.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(transparent, rgba(var(--ink-rgb), 0.92));
  color: var(--paper);
}
.card-info h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-transform: none;
}
.card-info .label { color: var(--accent); margin-bottom: 0.4rem; }
/* (decorative prefix removed for editorial direction) */

/* ── INFO GRID (copper inlays, etc.) ─────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
}
.info-tile { display: flex; flex-direction: column; gap: 0.5rem; }
.info-tile img { border-radius: 0; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--ink); }
.info-tile .tile-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
}

/* ── ARTIST QUOTE / PULL QUOTE ───────────────────────────── */
.pull-quote {
  border-left: 4px solid var(--accent);
  padding-left: 2rem;
  margin-block: 2rem;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  font-style: normal;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}
.pull-quote cite::before { content: '— '; }

/* ── CONTACT (no form) ───────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact-detail { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-detail h1,
.contact-detail h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.contact-detail address {
  font-family: var(--font-mono);
  font-style: normal;
  line-height: 1.7;
  color: var(--ink);
  font-size: 0.9rem;
}
.contact-detail .note {
  font-family: var(--font-mono);
  font-style: normal !important;
  font-size: 0.8rem;
  color: var(--steel) !important;
}
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  align-self: flex-start;
  transition: color 0.15s, background 0.15s;
}
.contact-email:hover { color: var(--accent); }
.contact-map {
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--ink);
  position: relative;
  background: var(--ink);
}
.contact-map img,
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  height: clamp(300px, 40vw, 520px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.35) 0%, rgba(var(--ink-rgb), 0.15) 35%, rgba(var(--ink-rgb), 0.92) 100%),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.4) 0%, transparent 55%);
}
.page-hero-content {
  position: relative;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  width: 100%;
  color: var(--paper);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.page-hero .label { color: var(--accent) !important; }

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.about-img { position: relative; border-radius: 0; border: 1px solid var(--ink); overflow: hidden; }
.about-img img { width: 100%; }
.about-text { display: flex; flex-direction: column; gap: 1.5rem; }
.about-text h1, .about-text h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

/* Bio component */
.bio {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.4fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.bio-portrait {
  position: relative;
  margin: 0;
}
.bio-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--ink);
  filter: grayscale(0.15) contrast(1.02);
}
.bio-portrait::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--accent);
  z-index: -1;
  pointer-events: none;
}
.bio-portrait figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.bio-body { display: flex; flex-direction: column; gap: 1.25rem; }
.bio-body h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.bio-lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.bio-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  margin-block: 0.75rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 1.25rem;
}
.bio-meta > div { display: flex; flex-direction: column; gap: 0.25rem; }
.bio-meta dt {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.bio-meta dd {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.4;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--ink);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--paper);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.footer-logo span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--paper-rgb), 0.65);
  margin-top: 0.4rem;
}
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--paper-rgb), 0.85);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--paper-rgb), 0.55);
}
.footer-rights {
  flex-basis: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--paper-rgb), 0.12);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.65;
  color: rgba(var(--paper-rgb), 0.5);
  max-width: 68ch;
}
.footer-rights strong {
  color: rgba(var(--paper-rgb), 0.75);
  font-weight: 500;
}

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(var(--ink-rgb), 0.97);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 92svh;
  object-fit: contain;
  border-radius: 0;
  border: 1px solid rgba(var(--paper-rgb), 0.15);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: 1px solid rgba(var(--paper-rgb), 0.3);
  color: var(--paper);
  font-size: 1.5rem;
  width: 44px; height: 44px;
  cursor: pointer; line-height: 1;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.lightbox-caption {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--paper-rgb), 0.7);
  text-align: center;
  white-space: nowrap;
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  width: 60px; height: 3px;
  background: var(--accent);
  margin-block: 1.5rem;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.center-block { text-align: center; margin-top: clamp(2rem, 5vw, 3rem); }
.tag-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
[data-lightbox] { cursor: zoom-in; }

/* Display subtitle for compound H2s — used inside <em> tag */
.display-subtitle {
  font-size: 0.7em;
  color: var(--steel);
  font-style: italic;
  font-weight: 400;
}

/* ── LEGAL / LONG-FORM PAGE ──────────────────────────────── */
.legal-page {
  max-width: 68ch;
  font-family: var(--font-sans);
}
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0.5rem 0 1.5rem;
}
.legal-page h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
  font-variation-settings: normal;
}
.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal-page .lede {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 2rem;
}
.legal-page ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}
.legal-page li { margin-bottom: 0.4rem; }
.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page a:hover { color: var(--ink); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-utility { display: none; }
  .nav-burger { display: flex; justify-self: end; }
  .nav-mobile { display: block; }
  .nav-inner { grid-template-columns: 1fr auto; }

  .feature-block,
  .about-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .feature-block.reverse { direction: ltr; }

  .bio { grid-template-columns: 1fr; gap: 2rem; }
  .bio-portrait { max-width: 360px; }
  .bio-meta { grid-template-columns: 1fr; }

  .gallery-grid { columns: 2; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 560px) {
  .gallery-grid { columns: 1; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-caption { font-size: clamp(2rem, 10vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-slide img { transform: none !important; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* No-JS fallback — server sets html.no-js by default; main.js removes it.
   Without this, .reveal elements would never become visible if JS fails. */
.no-js .reveal { opacity: 1; transform: none; }

/* Visually-hidden utility (for sr-only text) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link — first focusable element on every page */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 999;
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transform: translateY(-110%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--accent);
  outline-offset: 0;
}

/* Universal focus ring — keyboard-only via :focus-visible */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
/* On dark surfaces, use a paper ring with accent halo */
.btn:focus-visible,
.hero-content a:focus-visible,
footer a:focus-visible,
.lightbox-close:focus-visible {
  outline-color: var(--paper);
  box-shadow: 0 0 0 5px var(--accent);
}
/* Buttons / cards / nav links: keep ring inset-ish */
.card:focus-visible,
.gallery-item:focus-visible {
  outline-offset: -3px;
  outline-width: 3px;
}

/* Mobile nav: when closed, remove from a11y tree (paired w/ aria-hidden in JS) */
.nav-mobile[aria-hidden="true"] { visibility: hidden; }
.nav-mobile.open { visibility: visible; }

/* ── COLLECTION PAGES ─────────────────────────────────────── */

/* Hero — breadcrumb + label sit above title */
.collection-hero { height: clamp(360px, 48vw, 600px); }
.breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--paper-rgb), 0.75);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(var(--paper-rgb), 0.75);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.breadcrumb a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--paper); }
.breadcrumb [aria-hidden="true"] { color: rgba(var(--paper-rgb), 0.4); }

/* Intro: meta sidebar + lede column */
.collection-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.6fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.collection-meta dl {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}
.collection-meta dl > div {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.collection-meta dt {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  align-self: center;
}
.collection-meta dd {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.4;
}
.collection-lede { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.collection-lede > p:first-of-type {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}

/* Works grid — masonry feel via varied spans */
.works-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.work {
  margin: 0;
  position: relative;
  cursor: zoom-in;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.work:nth-child(7n+1) { grid-column: span 3; }
.work:nth-child(7n+4) { grid-column: span 3; }
.work img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--rule);
  transition: transform 0.5s var(--ease-out), border-color 0.2s;
}
.work:nth-child(7n+1) img,
.work:nth-child(7n+4) img { aspect-ratio: 4 / 3; }
.work:hover img { transform: scale(1.015); border-color: var(--ink); }
.work figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--font-sans);
  padding-inline: 0.1rem;
}
.work-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.work-meta {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Commission CTA */
.commission-cta {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.commission-cta h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

/* Inter-collection nav */
.collection-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-block: 1.5rem;
}
.collection-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: color 0.2s;
}
.collection-nav a:hover { color: var(--accent); }
.collection-nav .label {
  font-size: 0.65rem;
  color: var(--steel);
}
.collection-nav .title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-style: italic;
  color: inherit;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.collection-nav-prev { text-align: left; }
.collection-nav-next { text-align: right; align-items: flex-end; }
.collection-nav-all {
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding-inline: clamp(1rem, 2vw, 2rem);
  text-align: center;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .collection-intro { grid-template-columns: 1fr; gap: 2rem; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .work,
  .work:nth-child(7n+1),
  .work:nth-child(7n+4) { grid-column: span 1; }
  .work:nth-child(7n+1) img,
  .work:nth-child(7n+4) img { aspect-ratio: 4 / 5; }
  .collection-nav { grid-template-columns: 1fr; text-align: left; }
  .collection-nav-next { text-align: left; align-items: flex-start; }
  .collection-nav-all { border: 0; border-block: 1px solid var(--rule); padding-block: 1rem; text-align: left; align-items: flex-start; }
}
