/* ───────── self-hosted fonts ───────── */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-display: swap; src: url("../fonts/cormorant-700.woff2") format("woff2"); }

:root {
  --brand-primary: #a8312a;
  --brand-primary-dark: #861f1a;
  --brand-statement: #b8362f;
  --brand-ink: #18130f;
  --brand-graphite: #2a2522;
  --brand-mute: #6a6258;
  --brand-line: #e5dccb;
  --brand-cream: #f5ede2;
  --brand-cream-2: #ede4d6;
  --brand-white: #fdfbf6;
  --shadow-soft: 0 18px 40px -20px rgba(26,22,20,0.18);
  --shadow-pop:  0 28px 60px -24px rgba(26,22,20,0.35);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.18, 0.9, 0.32, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 400; color: var(--brand-ink); background: var(--brand-white); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; cursor: default; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-primary); font-weight: 600; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brand-primary); }
.headline { font-family: var(--serif); font-weight: 700; line-height: 1.04; letter-spacing: -0.012em; color: var(--brand-ink); }
.headline em { font-style: italic; color: var(--brand-primary); }
.lede { font-size: clamp(15px, 1.1vw, 17px); color: var(--brand-graphite); line-height: 1.65; max-width: 56ch; }

/* ───────── nav ───────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(253,251,246,0.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(0,0,0,0.04); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; max-width: 1240px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--brand-graphite); position: relative; padding: 4px 0; transition: color .25s var(--ease); }
.nav-links a:hover, .nav-links a.is-current { color: var(--brand-primary); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--brand-primary); transition: width .35s var(--ease); }
.nav-links a:hover::after, .nav-links a.is-current::after { width: 100%; }
.nav-links .has-sub { position: relative; }
.nav-links .submenu { position: absolute; top: 100%; left: -16px; min-width: 220px; background: var(--brand-white); border: 1px solid var(--brand-line); padding: 12px 0; border-radius: 6px; box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease); }
.nav-links .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .submenu li { list-style: none; }
.nav-links .submenu a { display: block; padding: 8px 22px; font-size: 13.5px; }
.nav-links .submenu a:hover { background: var(--brand-cream); color: var(--brand-primary); }
.nav-links .submenu a::after { display: none; }

.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--brand-ink); color: var(--brand-white); padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform .25s var(--ease), background .25s var(--ease); border: none; cursor: pointer; }
.cta:hover { background: var(--brand-primary); transform: translateY(-1px); }
.cta-ghost { background: transparent; color: var(--brand-ink); border: 1px solid var(--brand-ink); }
.cta-ghost:hover { background: var(--brand-ink); color: var(--brand-white); }

/* ───────── footer ───────── */
.footer { background: var(--brand-ink); color: rgba(247,242,234,0.7); padding: 64px 0 32px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-grid h4 { font-family: var(--sans); font-weight: 600; color: var(--brand-white); margin-bottom: 14px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-grid a { display: block; padding: 4px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--brand-primary); }
.footer-brand img { height: 32px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.94; }
.footer-brand p { line-height: 1.7; max-width: 36ch; opacity: 0.7; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(247,242,234,0.1); padding-top: 26px; font-size: 12px; }
.footer-bot a { color: rgba(247,242,234,0.8); transition: color .2s; }
.footer-bot a:hover { color: var(--brand-primary); }
.footer-note { font-style: italic; font-family: var(--serif); }

/* ───────── form ───────── */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.04em; color: var(--brand-mute); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--brand-line); background: var(--brand-white); padding: 12px 14px; font: inherit; color: var(--brand-ink); border-radius: 4px; transition: border-color .25s var(--ease); font-family: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-primary); }
.field textarea { min-height: 130px; resize: vertical; }

/* responsive */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-inner { padding: 14px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bot { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ═════════════════════════════════════════════════════════════════════
   KATZ — Archive-Style Extensions
   ═════════════════════════════════════════════════════════════════════ */

/* Scroll progress bar — deep red, top of page */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--brand-primary); z-index: 100; transition: width .08s linear; pointer-events: none; }

/* Marquee — infinite brand names */
.marquee { overflow: hidden; padding: 36px 0; background: var(--brand-cream); border-top: 1px solid var(--brand-line); border-bottom: 1px solid var(--brand-line); white-space: nowrap; mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.marquee-track { display: inline-flex; gap: 80px; align-items: center; animation: katz-marquee 38s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--brand-graphite); letter-spacing: 0.01em; flex-shrink: 0; }
.marquee-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-primary); flex-shrink: 0; }
@keyframes katz-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Archive stamps — graphic year/volume marks */
.stamp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-primary); padding: 8px 14px; border: 1px solid var(--brand-primary); border-radius: 0; background: transparent; line-height: 1; }
.stamp.inverse { color: var(--brand-cream); border-color: rgba(245,237,226,0.5); }
.stamp.solid { background: var(--brand-primary); color: var(--brand-cream); }
.stamp-num { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: 0; text-transform: none; }

/* Volume / Catalog number — appears in page corners */
.archive-tag { position: absolute; font-family: var(--sans); font-weight: 600; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-mute); writing-mode: vertical-rl; padding: 14px 0; }
.archive-tag.tl { top: 90px; left: 14px; }
.archive-tag.tr { top: 90px; right: 14px; }

/* Year-stamp — graphic element */
.year-stamp { position: relative; display: inline-block; font-family: var(--serif); font-weight: 700; color: var(--brand-primary); font-size: clamp(80px, 12vw, 180px); line-height: 0.85; letter-spacing: -0.03em; }
.year-stamp::after { content: ""; position: absolute; left: 0; bottom: 0.12em; width: 100%; height: 0.04em; background: var(--brand-primary); opacity: 0.18; }

/* Drop-cap for editorial paragraphs */
.dropcap::first-letter { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 5em; line-height: 0.82; float: left; margin-right: 16px; margin-top: 4px; color: var(--brand-primary); }

/* Pull-quote */
.pullquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.25; color: var(--brand-ink); max-width: 32ch; position: relative; padding-left: 28px; border-left: 2px solid var(--brand-primary); }
.pullquote-attrib { display: block; font-style: normal; font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-mute); font-weight: 600; margin-top: 18px; }

/* Counter — for stat-numbers, animated */
.counter { font-family: var(--serif); font-weight: 700; font-size: clamp(46px, 6vw, 84px); color: var(--brand-primary); line-height: 1; display: inline-block; tabular-nums: tabular; font-variant-numeric: tabular-nums; }
.counter[data-target] { opacity: 0; transition: opacity .4s; }
.counter[data-target].is-visible { opacity: 1; }

/* Refined tile hover — corner mark */
.corner-tile { position: relative; }
.corner-tile::before, .corner-tile::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--brand-primary); border-style: solid; border-width: 0;
  opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.corner-tile::before { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; transform: translate(-4px,-4px); }
.corner-tile::after { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; transform: translate(4px,4px); }
.corner-tile:hover::before, .corner-tile:hover::after { opacity: 1; transform: translate(0,0); }

/* Magazine-spread — asymmetric editorial layout */
.spread { padding: 110px 0; background: var(--brand-cream); }
.spread + .spread { padding-top: 0; }
.spread-row { display: grid; gap: 50px; align-items: end; margin-bottom: 80px; }
.spread-row.r-7-3 { grid-template-columns: 1.4fr 0.6fr; }
.spread-row.r-3-7 { grid-template-columns: 0.6fr 1.4fr; }
.spread-row.r-5-3 { grid-template-columns: 1.5fr 0.9fr; }
.spread-row.r-3-5 { grid-template-columns: 0.9fr 1.5fr; }
.spread-figure { position: relative; overflow: hidden; background: var(--brand-cream-2); }
.spread-figure.tall { aspect-ratio: 3/4; }
.spread-figure.wide { aspect-ratio: 16/9; }
.spread-figure.square { aspect-ratio: 1/1; }
.spread-figure img { width: 100%; height: 100%; object-fit: cover; }
.spread-caption { font-family: var(--sans); font-size: 12px; line-height: 1.55; color: var(--brand-mute); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--brand-line); }
.spread-caption strong { color: var(--brand-ink); font-weight: 600; }
.spread-caption .cap-num { font-family: var(--serif); font-style: italic; color: var(--brand-primary); margin-right: 8px; }
.spread-text h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; margin-bottom: 18px; color: var(--brand-ink); }
.spread-text h3 em { color: var(--brand-primary); font-style: italic; }
.spread-text p { font-size: 15px; line-height: 1.7; color: var(--brand-graphite); }

/* Section number — large serif in margin */
.section-num { font-family: var(--serif); font-weight: 700; font-size: clamp(120px, 16vw, 220px); line-height: 0.85; color: var(--brand-cream-2); position: absolute; pointer-events: none; user-select: none; z-index: 0; }

/* Mask reveal animation */
.mask-reveal { display: inline-block; overflow: hidden; }
.mask-reveal > span { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(0.18, 0.9, 0.32, 1); }
.mask-reveal.is-visible > span { transform: translateY(0); }

/* Stagger reveal */
.stagger { opacity: 1; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: 0.54s; }
.stagger.is-visible > *:nth-child(9) { transition-delay: 0.61s; }
.stagger.is-visible > *:nth-child(10) { transition-delay: 0.68s; }
.stagger.is-visible > *:nth-child(11) { transition-delay: 0.75s; }
.stagger.is-visible > *:nth-child(12) { transition-delay: 0.82s; }

/* Wordmark letter-by-letter animation */
.wordmark-anim { display: inline-flex; gap: 0.02em; overflow: hidden; }
.wordmark-anim .letter { display: inline-block; transform: translateY(110%); opacity: 0; animation: katz-letter 1s cubic-bezier(0.18, 0.9, 0.32, 1) forwards; }
.wordmark-anim .letter:nth-child(1) { animation-delay: 0.08s; }
.wordmark-anim .letter:nth-child(2) { animation-delay: 0.18s; }
.wordmark-anim .letter:nth-child(3) { animation-delay: 0.28s; }
.wordmark-anim .letter:nth-child(4) { animation-delay: 0.38s; }
@keyframes katz-letter { to { transform: translateY(0); opacity: 1; } }

/* Subtle pulse on red statement-tag dots */
.red-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); margin-right: 8px; animation: katz-pulse 2.4s ease-in-out infinite; vertical-align: middle; }
@keyframes katz-pulse { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }

/* Catalog index — magazine-style ToC */
.catalog-index { padding: 90px 0; background: var(--brand-white); border-top: 1px solid var(--brand-line); }
.cat-row { display: grid; grid-template-columns: 60px 80px 1fr 100px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--brand-line); gap: 36px; text-decoration: none; transition: padding .25s var(--ease), color .25s; color: inherit; }
.cat-row:hover { padding-left: 14px; padding-right: 14px; background: var(--brand-cream); }
.cat-num { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--brand-primary); }
.cat-volume { font-family: var(--sans); font-weight: 600; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-mute); }
.cat-title { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.2vw, 32px); color: var(--brand-ink); line-height: 1.2; }
.cat-title em { color: var(--brand-primary); font-style: italic; }
.cat-page { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-mute); text-align: right; }

/* Refined photo treatments */
.photo-warm { filter: grayscale(0.3) sepia(0.08) contrast(1.06); transition: filter .5s var(--ease); }
.photo-warm:hover { filter: grayscale(0) sepia(0) contrast(1.05); }
.photo-archive { filter: grayscale(1) contrast(1.1) brightness(0.96) sepia(0.1); }

/* Anchor row — signature element below hero */
.anchor-row { padding: 26px 0; background: var(--brand-ink); color: rgba(247,242,234,0.92); border-top: 3px solid var(--brand-primary); }
.anchor-row .anchor-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.anchor-row .anchor-meta { display: flex; gap: 32px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247,242,234,0.65); font-weight: 600; }
.anchor-row .anchor-meta strong { color: rgba(247,242,234,0.95); font-weight: 600; margin-right: 6px; }

/* Vertical rule */
.vrule { display: inline-block; width: 1px; height: 14px; background: currentColor; opacity: 0.3; vertical-align: middle; margin: 0 8px; }

@media (max-width: 900px) {
  .spread-row.r-7-3, .spread-row.r-3-7, .spread-row.r-5-3, .spread-row.r-3-5 { grid-template-columns: 1fr !important; }
  .archive-tag { display: none; }
  .cat-row { grid-template-columns: 50px 1fr; gap: 14px; }
  .cat-row .cat-volume, .cat-row .cat-page { display: none; }
  .anchor-row .anchor-meta { gap: 14px; font-size: 10px; }
}
