/* ==========================================================================
   Teh Han Lin — photographer portfolio
   Dark, editorial, filmic. Serif display + warm gold on near-black.
   ========================================================================== */

:root {
  --bg: #07080b;
  --bg-alt: #0a0c10;
  --panel: #0d1015;
  --fg: #eae5d9;
  --fg-dim: #c5bfb1;
  --muted: #918b7e;
  --gold: #c8a36a;
  --gold-2: #e3c793;
  --line: rgba(234, 229, 217, 0.1);
  --line-strong: rgba(234, 229, 217, 0.18);
  --serif: "Bodoni 72", "Didot", "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

a { color: inherit; }

::selection { background: var(--gold); color: #0a0a0a; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--gold);
  color: #0a0a0a;
  padding: 10px 16px;
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── Atmosphere: film grain, cursor glow, progress, canvas ─────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(200, 163, 106, 0.1), rgba(200, 163, 106, 0.03) 38%, transparent 62%);
  transition: opacity 0.8s ease;
  will-change: transform;
}
@media (pointer: fine) { .cursor-glow { opacity: 1; } }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 80;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 70%, #f2e6cd 100%);
}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 8, 11, 0.76);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { text-decoration: none; display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.brand-sub {
  font-size: 8.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.primary-nav a:hover,
.primary-nav a.is-active { color: var(--gold-2); }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.95rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.4s ease;
}
.btn-solid {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0b0b;
}
.btn-solid:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(200, 163, 106, 0.18);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}
.header-cta { padding: 0.7rem 1.15rem; font-size: 9.5px; }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.site-header.nav-open .menu-btn span:first-child { top: 20px; transform: rotate(45deg); }
.site-header.nav-open .menu-btn span:last-child { top: 20px; transform: rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 96px;
  overflow: hidden;
  background: transparent;
}

/* Random archive photograph, blended into the page */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(0.88) contrast(1.04) brightness(0.72);
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}
.hero-photo-img.is-active {
  opacity: 0.8;
  animation: hero-drift 34s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.6%, -1.2%, 0); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 8, 11, 0.96) 22%, rgba(7, 8, 11, 0.78) 43%, rgba(7, 8, 11, 0.34) 68%, rgba(7, 8, 11, 0.58) 100%),
    linear-gradient(180deg, rgba(7, 8, 11, 0.68) 0%, rgba(7, 8, 11, 0.1) 30%, rgba(7, 8, 11, 0) 62%, rgba(7, 8, 11, 0.78) 100%),
    radial-gradient(55% 50% at 74% 38%, rgba(200, 163, 106, 0.1), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  height: 26vh;
  background: linear-gradient(to bottom, transparent, var(--bg) 88%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 3; }
.hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }

.hero-copy { max-width: 720px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.4rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(200, 163, 106, 0.5);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 163, 106, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(200, 163, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 163, 106, 0); }
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.9rem, 10.5vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  background: linear-gradient(175deg, #f7f2e6 20%, #cfc7b5 62%, #8f8878 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tag {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: 0.005em;
  color: var(--gold-2);
}

.hero-lede {
  max-width: 50ch;
  margin: 1.7rem 0 2.2rem;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: flex;
  margin: 3.1rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero-stats > div {
  margin-right: 2.6rem;
  padding-right: 2.6rem;
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.hero-stats dt {
  margin: 0 0 0.45rem;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold-2);
}

.hero-side {
  flex-shrink: 0;
  max-width: 260px;
  padding-bottom: 12px;
  text-align: right;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.hero-photo-caption {
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-side.is-ready .hero-photo-caption { opacity: 1; }
.hero-photo-label { display: block; color: var(--muted); font-size: 8.5px; letter-spacing: 0.24em; }
.hero-photo-caption a {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.3s ease;
}
.hero-photo-caption a:hover { color: var(--gold-2); }
#hero-photo-place { display: block; margin-top: 0.55rem; font-size: 8.5px; letter-spacing: 0.22em; color: var(--gold-2); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 8.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue i {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.45); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(84px, 12vh, 140px) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.section-alt { background: var(--bg-alt); }

.section-head {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(38px, 5.5vw, 68px);
}
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-top: 0.55rem;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.section-label span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.section-heading h2 {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
}
.section-intro {
  max-width: 54ch;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--muted);
}

/* ── About ─────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}

.about-figure { margin: 0; }
.about-img {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05070a;
}
.about-img::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.about-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
  transition: transform 1.2s var(--ease);
}
.about-figure:hover .about-img img { transform: scale(1.025); }
.about-figure figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-figure figcaption::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.about-body p {
  margin: 0 0 1.25rem;
  max-width: 62ch;
  font-size: 0.99rem;
  line-height: 1.82;
  color: var(--fg-dim);
}
.about-body p:first-child { margin-top: 0; }
.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.8em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--gold);
}

.pullquote {
  margin: 2.4rem 0;
  padding: 0.2rem 0 0.2rem 1.6rem;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.72rem);
  line-height: 1.42;
  color: var(--fg);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
  margin: 2.6rem 0 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  margin-bottom: 0.35rem;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-dim);
}

/* ── Published works ───────────────────────────────────────────────────── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0c0f14, #090b0e);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.4s ease, transform 0.55s var(--ease), box-shadow 0.55s ease;
}
.work:hover {
  border-color: rgba(200, 163, 106, 0.42);
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.45);
}
.work-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #05070a;
}
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
  transition: transform 1.2s var(--ease), filter 0.6s ease;
}
.work:hover .work-media img {
  transform: scale(1.05);
  filter: saturate(1.05) brightness(1);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 6px 0;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-title {
  margin: 7px 6px 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: 0.002em;
}
.work-desc {
  margin: 0 6px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--muted);
  flex: 1;
}
.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 6px 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.pill {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid rgba(200, 163, 106, 0.3);
  border-radius: 2px;
  background: rgba(200, 163, 106, 0.07);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.work-loc {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.works-archive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.works-archive h3 {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.1;
}
.works-archive p {
  max-width: 58ch;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.works-archive .btn { flex-shrink: 0; }

.works-note {
  margin: 38px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.works-note a {
  color: var(--gold-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 163, 106, 0.4);
  padding-bottom: 1px;
}
.works-note a:hover { color: #f4e3c2; }

/* ── Featured stories ──────────────────────────────────────────────────── */
.featured-band {
  position: relative;
  z-index: 2;
  padding: clamp(54px, 8vh, 84px) 0 clamp(84px, 11vh, 118px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(200, 163, 106, 0.055), transparent 62%),
    #07080b;
  scroll-margin-top: var(--header-h);
}

.featured-head {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.featured-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 26px;
  margin-top: 20px;
}

.featured-all {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.featured-all:hover { color: var(--gold-2); border-color: var(--gold); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-bottom: 34px;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.featured-grid.is-ready { opacity: 1; }

.feature-card {
  --lift: 0px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0c0f14, #090b0e);
  color: inherit;
  text-decoration: none;
  transform: translateY(var(--lift));
  transition: border-color 0.4s ease, transform 0.5s var(--ease), box-shadow 0.5s ease;
  animation: feature-in 0.7s var(--ease) backwards;
}
.feature-card:nth-child(2) { animation-delay: 0.08s; }
.feature-card:nth-child(3) { animation-delay: 0.16s; }
.feature-card:hover {
  border-color: rgba(200, 163, 106, 0.5);
  transform: translateY(calc(var(--lift) - 4px));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
@keyframes feature-in {
  from {
    opacity: 0;
    transform: translateY(calc(var(--lift) + 20px));
  }
  to {
    opacity: 1;
    transform: translateY(var(--lift));
  }
}

.feature-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #05070a;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: saturate(0.92) brightness(0.92);
  transition: transform 1.2s var(--ease), filter 0.6s ease;
}
.feature-card:hover .feature-media img {
  transform: scale(1.05);
  filter: saturate(1.03) brightness(1);
}
.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 9, 0.72), transparent 46%);
  pointer-events: none;
}
.feature-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  border: 1px solid rgba(234, 229, 217, 0.2);
  background: rgba(7, 8, 11, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.feature-index {
  position: absolute;
  top: 11px;
  right: 14px;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-2);
  opacity: 0.9;
}
.feature-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 8px 8px;
}
.feature-date {
  margin: 0;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
  line-height: 1.2;
  transition: color 0.3s ease;
}
.feature-card:hover .feature-body h3 { color: var(--gold-2); }
.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.feature-cta span { transition: transform 0.35s var(--ease); }
.feature-card:hover .feature-cta span { transform: translate(3px, -3px); }

/* ── Journal / posts ───────────────────────────────────────────────────── */
.journal { border-top: 1px solid var(--line); }

.journal-year {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 30px 8px 12px;
}
.journal-year:first-child { padding-top: 6px; }
.journal-year > span:first-child {
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: var(--gold-2);
}
.journal-count {
  margin-left: auto;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.post {
  display: grid;
  grid-template-columns: 74px 116px 1fr 142px 24px;
  gap: 20px;
  align-items: center;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, padding-left 0.4s var(--ease);
}
.post:hover { background: rgba(234, 229, 217, 0.022); padding-left: 16px; }

.post-thumb {
  display: block;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05070a;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.9);
  transition: transform 0.8s var(--ease), filter 0.4s ease;
}
.post:hover .post-thumb img {
  transform: scale(1.08);
  filter: saturate(1) brightness(1);
}

.post time {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.post-main h3 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.22;
}
.post-main h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.post:hover .post-main h3 a { color: var(--gold-2); }
.post-main p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
.post-place {
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.post-arrow {
  font-size: 15px;
  color: var(--muted);
  text-align: right;
  transition: transform 0.35s var(--ease), color 0.3s ease;
}
.post:hover .post-arrow { transform: translate(3px, -3px); color: var(--gold); }

.journal-foot {
  margin: 30px 0 0;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.journal-foot a {
  color: var(--gold-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 163, 106, 0.4);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.journal-foot a:hover { color: #f4e3c2; border-color: #f4e3c2; }

/* ── Newsletter ────────────────────────────────────────────────────────── */
.newsletter-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 62px);
  border: 1px solid rgba(200, 163, 106, 0.22);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(200, 163, 106, 0.1), transparent 52%),
    radial-gradient(110% 130% at 100% 100%, rgba(94, 130, 170, 0.07), transparent 55%),
    #0a0c10;
  overflow: hidden;
}
.newsletter-panel::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 55%; height: 120%;
  background: radial-gradient(circle, rgba(200, 163, 106, 0.06), transparent 65%);
  pointer-events: none;
}

.newsletter-copy { position: relative; }
.newsletter-copy .section-label { padding-top: 0; margin-bottom: 1.3rem; }
.newsletter-copy h2 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.newsletter-copy > p {
  margin: 0 0 1rem;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}
.newsletter-proof {
  margin-top: 1.5rem !important;
  font-size: 9.5px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2) !important;
}

.newsletter-form-wrap { position: relative; align-self: center; }

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.newsletter-form input {
  min-width: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(234, 229, 217, 0.03);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(234, 229, 217, 0.05);
}
.newsletter-form input.is-invalid { border-color: #c06a5a; }
.form-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.form-success {
  border: 1px solid rgba(200, 163, 106, 0.35);
  background: rgba(200, 163, 106, 0.06);
  padding: 26px 24px;
}
.form-success .success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin-bottom: 12px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-2);
  font-size: 13px;
}
.form-success strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.form-success p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}
.contact-lede {
  margin: 0;
  max-width: 32ch;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.32;
  color: var(--fg);
}
.contact-facts {
  margin: 2rem 0 1.8rem;
  border-top: 1px solid var(--line);
}
.contact-facts > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-facts dt {
  margin-bottom: 0.35rem;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-dim);
}
.contact-facts a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200, 163, 106, 0.45);
}
.contact-facts a:hover { text-decoration-color: var(--gold); }
.contact-note {
  max-width: 44ch;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-form { display: block; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field > span {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(234, 229, 217, 0.03);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color-scheme: dark;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(234, 229, 217, 0.05);
}
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid { border-color: #c06a5a; }
.field select:invalid { color: var(--muted); }

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 4px;
}
.contact-actions .form-note {
  margin: 0;
  grid-column: auto;
}
.contact-success { margin-top: 4px; }
.contact-success .btn { margin-top: 18px; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 56px 0 26px;
  border-top: 1px solid var(--line);
  background: #05060a;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}
.footer-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}
.footer-brand p {
  max-width: 32ch;
  margin: 0.55rem 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 4px;
}
.footer-nav a {
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-nav a:hover { color: var(--gold-2); }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  font-size: 10px;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.footer-legal p { margin: 0; }
.footer-legal a { text-decoration: none; transition: color 0.3s ease; }
.footer-legal a:hover { color: var(--gold-2); }

.noscript {
  position: relative;
  z-index: 90;
  margin: 0;
  padding: 12px 20px;
  background: #1a1408;
  border-top: 1px solid rgba(200, 163, 106, 0.3);
  font-size: 12px;
  color: #e3c793;
  text-align: center;
}

/* ── Reveal on scroll ──────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.95s var(--ease),
    transform 0.95s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .primary-nav { gap: 20px; }
  .hero-side { display: none; }
}

@media (max-width: 980px) {
  .header-cta { display: none; }
}

@media (max-width: 1000px) {
  .section-head,
  .featured-head { grid-template-columns: 1fr; gap: 16px; }
  .section-label { padding-top: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-figure { max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; gap: 38px; }

  .post { grid-template-columns: 74px 100px 1fr 24px; }
  .post-place { display: none; }
}

@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .plan-featured { order: -1; }
  .event { grid-template-columns: 110px 1fr auto; gap: 18px; }
  .event .pill-quiet { display: none; }
  .event-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .primary-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 22px;
    background: rgba(7, 8, 11, 0.97);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .primary-nav { display: flex; }
  .primary-nav a {
    width: 100%;
    padding: 15px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav a::after { display: none; }
  .primary-nav a:last-child { border-bottom: 0; }
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .hero-inner { align-items: flex-start; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 44px); }
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 80px; }
  .hero-photo-img { object-position: 60% 32%; }
  .hero-photo-img.is-active { opacity: 0.7; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 8, 11, 0.52) 0%, rgba(7, 8, 11, 0.72) 45%, rgba(7, 8, 11, 0.9) 100%),
      radial-gradient(70% 55% at 70% 35%, rgba(200, 163, 106, 0.08), transparent 72%);
  }
  .hero-lede { font-size: 0.95rem; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .hero-stats > div { margin-right: 0; padding-right: 1.2rem; }
  .hero-stats > div:last-child { padding-right: 0; }
  .hero-stats dt { font-size: 8px; letter-spacing: 0.12em; min-height: 2.4em; }
  .hero-stats dd { font-size: 1.8rem; }

  .works-grid { grid-template-columns: 1fr; }
  .works-archive { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-actions .btn { width: 100%; }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 0;
  }
  .feature-card { --lift: 0px; }
  .feature-media { aspect-ratio: 16 / 10; }
  .feature-body h3 { font-size: 1.45rem; }

  .post {
    grid-template-columns: 64px 1fr 18px;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    padding: 16px 4px;
    align-items: start;
  }
  .post-thumb {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 64px;
    height: 64px;
  }
  .post time { grid-column: 2; grid-row: 1; }
  .post-main { grid-column: 2; grid-row: 2; }
  .post-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .post-place { display: none; }
  .post:hover { padding-left: 8px; }

  .newsletter-panel { grid-template-columns: 1fr; gap: 30px; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form input { font-size: 16px; }
  .newsletter-form .btn { width: 100%; }

  .event { grid-template-columns: 96px 1fr; gap: 8px 18px; padding: 22px 4px; }
  .event-main { grid-column: 2; }
  .event-link { grid-column: 2; grid-row: auto; }
  .event:hover { padding-left: 4px; }

  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 10px; }

  .scroll-cue { display: none; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 36px); }
  .brand-name { font-size: 17px; }
  .hero-title { font-size: clamp(3.3rem, 17vw, 4.8rem); }
  .hero-actions .btn { width: 100%; }
  .hero-stats > div { margin-right: 0; padding-right: 0.9rem; }
  .facts { grid-template-columns: 1fr; }
  .plan { padding: 28px 22px 24px; }
}

/* ── Motion preferences ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}
/* Turnstile */
.cf-turnstile { grid-column: 1 / -1; margin: 4px 0 0; }
.contact-form .cf-turnstile { margin: 4px 0 16px; }
