/* smh fotografie — dark theme, red + white frames */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #070606;
  --near-black: #0e0c0c;
  --panel: #121010;
  --red: #9a1515;
  --red-deep: #6e0f0f;
  --red-glow: rgba(154, 21, 21, 0.35);
  --white: #f5f2ef;
  --off-white: #e8e4df;
  --muted: #9a9490;
  --frame: #f5f2ef;
  --frame-red: #9a1515;
  --header-h: 5.5rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

html {
  height: 100%;
  background: var(--black);
  color: var(--white);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  position: relative;
  isolation: isolate;
}

/*
 * Ambient darkroom background — very soft red/ember drift + film grain.
 * Fixed, behind content, no interaction. Disabled when user prefers reduced motion.
 */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Slow-drifting ember glows (a bit more present) */
body::before {
  background:
    radial-gradient(ellipse 62% 48% at 18% 22%, rgba(154, 21, 21, 0.22) 0%, transparent 64%),
    radial-gradient(ellipse 58% 50% at 82% 78%, rgba(154, 21, 21, 0.18) 0%, transparent 66%),
    radial-gradient(ellipse 48% 40% at 70% 18%, rgba(245, 242, 239, 0.08) 0%, transparent 62%),
    radial-gradient(ellipse 44% 38% at 40% 55%, rgba(154, 21, 21, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(14, 12, 12, 0.9) 0%, transparent 55%);
  animation: bg-ember-drift 30s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* Fine film grain, slow crawl */
body::after {
  opacity: 0.11;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  animation: bg-grain-shift 9s steps(8) infinite;
}

@keyframes bg-ember-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  50% {
    opacity: 0.68;
  }
  100% {
    transform: translate3d(6%, -5%, 0) scale(1.14);
    opacity: 1;
  }
}

@keyframes bg-grain-shift {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-3.5%, 2%, 0); }
  50%  { transform: translate3d(3%, -3.5%, 0); }
  75%  { transform: translate3d(-1.5%, -2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
  body::before {
    opacity: 0.85;
  }
  body::after {
    opacity: 0.055;
  }
}

/* Keep main content above ambient layers (header/lightbox keep their own z-index) */
.hero,
.page-body {
  position: relative;
  z-index: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  /* Discourage casual save/drag; not a security boundary */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) max(1.25rem, var(--safe-right)) 0 max(1.25rem, var(--safe-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(to bottom, rgba(7, 6, 6, 0.92) 0%, rgba(7, 6, 6, 0.72) 70%, transparent 100%);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(7, 6, 6, 0.96);
  border-bottom-color: rgba(154, 21, 21, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 4.125rem;
  height: 4.125rem;
  border-radius: 50%;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 242, 239, 0.35);
  color: var(--white);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.05rem;
  height: 1px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--red);
  outline: none;
}

.site-nav a.ext::after {
  content: "↗";
  margin-left: 0.28em;
  font-size: 0.85em;
  color: var(--red);
  opacity: 0.85;
}

/* ── Landing slideshow ─────────────────────────────────── */
html.page-home,
html.page-home body,
body.page-home {
  overflow: hidden;
  height: 100%;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    calc(var(--header-h) + var(--safe-top) + 0.75rem)
    max(0.85rem, var(--safe-left))
    calc(2.75rem + var(--safe-bottom))
    max(0.85rem, var(--safe-right));
  /* transparent so ambient body background shows around the frame */
  background: transparent;
  box-sizing: border-box;
}

.hero-stage {
  position: relative;
  /* Size from one axis only so max-height never breaks 1:1 */
  width: min(96vw, 82dvh, 1100px);
  aspect-ratio: 1;
  max-width: 100%;
  height: auto;
}

/* Soft drop shadow + dark pad around the photo (no dotted frame) */
.hero-frame {
  position: absolute;
  inset: 0;
  border: none;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    inset 0 0 0 10px var(--black);
  pointer-events: none;
  z-index: 3;
}

.hero-slides {
  position: absolute;
  inset: 12px;
  overflow: hidden;
  background: #000;
  z-index: 1;
  contain: layout paint;
}

.hero-empty {
  color: var(--muted);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
}

/* Alternate zoom in / out — same 8s duration, same ±5% scale range */
.hero-slide.is-active.zoom-in img {
  animation: kb-zoom-in 8s linear forwards;
}

.hero-slide.is-active.zoom-out img {
  animation: kb-zoom-out 8s linear forwards;
}

@keyframes kb-zoom-in {
  from { transform: scale(1); }
  to   { transform: scale(1.03); }
}

@keyframes kb-zoom-out {
  from { transform: scale(1.03); }
  to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img {
    animation: none !important;
    transform: scale(1);
  }
  .hero-slide { transition-duration: 0.4s; }
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.85rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 4;
  pointer-events: none;
}

.hero-caption strong {
  color: var(--red);
  font-weight: 400;
}

.hero-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 1px;
  background: rgba(245, 242, 239, 0.12);
  z-index: 4;
  overflow: hidden;
}

.hero-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
  transform-origin: left center;
}

.hero-progress.is-running > i {
  animation: progress-fill 8s linear forwards;
}

@keyframes progress-fill {
  from { width: 0%; }
  to   { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-progress.is-running > i { animation: none; width: 100%; }
}

.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  pointer-events: none;
  opacity: 0.92;
  mix-blend-mode: normal;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.75);
}

.hero-mark h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--white);
}

.hero-mark h1 em {
  font-style: italic;
  color: var(--red);
  font-weight: 400;
}

.hero-mark p {
  margin-top: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--off-white);
}

/* ── Interior pages ─────────────────────────────────────── */
.page-body {
  padding:
    calc(var(--header-h) + var(--safe-top) + 2rem)
    max(1rem, var(--safe-left))
    calc(3rem + var(--safe-bottom))
    max(1rem, var(--safe-right));
  max-width: 1120px;
  margin: 0 auto;
  overflow-x: clip;
}

.page-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  margin-bottom: 0.35rem;
}

.page-title span { color: var(--red); }

.page-lede {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 38rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.section-rule {
  width: 3rem;
  height: 2px;
  background: var(--red);
  margin: 0 0 1.75rem;
  border: 0;
}

/* Articles list */
.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 2rem;
  padding: 0;
  border-top: 1px solid rgba(154, 21, 21, 0.35);
}

.article-list > li {
  border-bottom: 1px solid rgba(154, 21, 21, 0.35);
}

.article-card {
  display: block;
  padding: 1.25rem 0.15rem 1.35rem;
  transition: color 0.2s ease;
}

.article-card:hover .article-card-title {
  color: var(--red);
}

.article-card-meta {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.article-card-title {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.article-card-dek {
  display: block;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
}

.article-list-empty {
  padding: 2rem 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Article page */
.article-page {
  max-width: 720px;
}

.article-back {
  margin-bottom: 1.25rem;
}

.article-back a {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.article-back a:hover {
  color: var(--white);
  border-bottom-color: var(--red);
}

.article-header {
  margin-bottom: 0.5rem;
}

.article-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.65rem;
}

.article-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.article-title em {
  font-style: italic;
  color: var(--red);
}

.article-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.article-body {
  color: var(--off-white);
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body p {
  margin-bottom: 1.15rem;
}

.article-body a {
  color: var(--white);
  border-bottom: 1px solid rgba(154, 21, 21, 0.65);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.article-body a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.article-body h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 2.25rem 0 0.85rem;
}

.article-body .drop-cap::first-letter {
  font-family: "Cormorant Garamond", Georgia, serif;
  float: left;
  font-size: 3.4rem;
  line-height: 0.85;
  padding: 0.12em 0.12em 0 0;
  color: var(--red);
  font-weight: 400;
}

.article-figure {
  margin: 1.75rem 0 1.9rem;
  border: 1px dotted var(--frame-red);
  padding: 6px;
  background: var(--panel);
}

.article-figure > a {
  display: block;
  border: none;
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px dotted rgba(245, 242, 239, 0.75);
}

.article-figure figcaption {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  padding: 0.75rem 0.25rem 0.35rem;
}

.article-figure figcaption a {
  display: inline;
  font-size: inherit;
  border-bottom: 1px solid rgba(154, 21, 21, 0.55);
}

.article-pullquote {
  margin: 1.75rem 0;
  padding: 1.1rem 0 1.1rem 1.15rem;
  border-left: 2px solid var(--red);
}

.article-pullquote p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--white);
  margin: 0;
  font-style: italic;
}

.article-verdict {
  margin: 2.25rem 0 1.75rem;
  padding: 1.25rem 1.2rem;
  border: 1px dotted var(--frame-red);
  background: var(--panel);
}

.article-verdict-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.55rem;
}

.article-verdict p:last-child {
  margin-bottom: 0;
}

.article-byline {
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(154, 21, 21, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.article-byline strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
}

.article-byline span {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--panel);
  border: 1px dotted var(--frame-red);
  /* Frame gap via inset on the link — avoids height:100% eating bottom padding */
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  content-visibility: auto;
  contain-intrinsic-size: 200px 200px;
}

.gallery-item:hover,
.gallery-item:focus-within {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.gallery-item a {
  position: absolute;
  inset: 6px;
  display: block;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* About */
.about-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .about-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
  }
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 100%;
  width: 100%;
}

@media (min-width: 800px) {
  .about-side {
    max-width: 75%;
  }
}

.about-photo {
  max-width: 100%;
  width: 100%;
  margin: 0;
  border: 1px dotted var(--frame-red);
  padding: 6px;
  background: var(--panel);
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px dotted rgba(245, 242, 239, 0.75);
}

.about-photo figcaption {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.55rem 0.15rem 0.2rem;
}

.about-copy p {
  color: var(--off-white);
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
  max-width: 38rem;
}

.about-copy p.muted { color: var(--muted); font-size: 1.08rem; }

.about-panel {
  width: 100%;
  border: 1px solid rgba(154, 21, 21, 0.55);
  background: var(--panel);
  padding: 1.35rem 1.4rem 1.5rem;
  position: relative;
  box-sizing: border-box;
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(245, 242, 239, 0.75);
  pointer-events: none;
}

.about-panel h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
  position: relative;
}

.about-links {
  list-style: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(245, 242, 239, 0.12);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
  min-height: 2.75rem;
  hyphens: auto;
  word-break: break-word;
}

.about-links a:hover { color: var(--white); border-bottom-color: var(--red); }
.about-links a span { color: var(--red); }

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(154, 21, 21, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer a:hover { color: var(--red); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  padding:
    calc(3.25rem + var(--safe-top))
    max(0.75rem, var(--safe-right))
    calc(0.85rem + var(--safe-bottom))
    max(0.75rem, var(--safe-left));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox[hidden] { display: none !important; }

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: min(96vw, 1100px);
  width: 100%;
}

.lightbox img,
.lightbox-stage img {
  max-width: 100%;
  max-height: min(82dvh, 1100px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px dotted var(--frame-red);
  box-shadow: inset 0 0 0 8px #000, 0 0 0 9px rgba(130, 126, 122, 0.9);
  outline: 1px dotted rgba(130, 126, 122, 0.95);
  outline-offset: 6px;
  filter: none;
}

.lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  width: 100%;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.lightbox-btn {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 242, 239, 0.35);
  border-radius: 2px;
  padding: 0.45rem 0.75rem;
  /* ≥44px touch target on phones without looking huge on desktop */
  min-height: 2.5rem;
  min-width: 5.5rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  color: var(--white);
  border-color: var(--red);
  outline: none;
}

.lightbox-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "IBM Plex Mono", "Jost", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 0;
  text-align: center;
}

.lightbox-count-sep {
  color: var(--muted);
  opacity: 0.75;
}

.lightbox-goto {
  width: 3rem;
  min-height: 2.5rem;
  padding: 0.25rem 0.3rem;
  border: 1px solid rgba(245, 242, 239, 0.3);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-family: "IBM Plex Mono", "Jost", monospace;
  /* ≥16px prevents iOS zoom-on-focus */
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.lightbox-goto::-webkit-outer-spin-button,
.lightbox-goto::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.lightbox-goto:focus {
  outline: none;
  border-color: var(--red);
  color: var(--white);
}

.lightbox-close {
  position: absolute;
  top: calc(0.75rem + var(--safe-top));
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(245, 242, 239, 0.4);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  z-index: 2;
}

.lightbox-close:hover { border-color: var(--red); color: var(--red); }

/* Mobile / narrow layouts
 * Hamburger earlier: 5 nav items overflow ~720–900px.
 */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top));
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem max(1.25rem, var(--safe-right)) 1rem max(1.25rem, var(--safe-left));
    background: rgba(7, 6, 6, 0.98);
    border-bottom: 1px solid rgba(154, 21, 21, 0.45);
    max-height: calc(100dvh - var(--header-h) - var(--safe-top));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.95rem 0;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(245, 242, 239, 0.08);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-left: max(0.65rem, var(--safe-left));
    padding-right: max(0.65rem, var(--safe-right));
    padding-bottom: calc(2.5rem + var(--safe-bottom));
  }

  .hero-stage {
    width: min(96vw, 78dvh, 1100px);
  }

  .hero-frame {
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.55),
      inset 0 0 0 8px var(--black);
  }

  .hero-slides { inset: 10px; }

  .hero-caption {
    bottom: -1.7rem;
    font-size: 0.55rem;
    letter-spacing: 0.16em;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .gallery-item {
    contain-intrinsic-size: 140px 140px;
  }

  .gallery-item a {
    inset: 4px;
  }

  .page-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    letter-spacing: 0.08em;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-body .drop-cap::first-letter {
    font-size: 2.75rem;
  }

  .article-pullquote p {
    font-size: 1.15rem;
  }

  .article-verdict {
    padding: 1rem 0.9rem;
  }

  .lightbox-stage img,
  .lightbox img {
    max-height: min(74dvh, 1100px);
    outline-offset: 4px;
    box-shadow: inset 0 0 0 5px #000, 0 0 0 6px rgba(130, 126, 122, 0.9);
  }

  .lightbox-btn {
    flex: 1 1 auto;
    max-width: 8.5rem;
  }

  .site-footer {
    margin-top: 2.5rem;
    gap: 0.5rem 1rem;
  }
}

/* Very small / short viewports */
@media (max-width: 380px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .brand-logo {
    width: 3.6rem;
    height: 3.6rem;
  }

  .lightbox-nav {
    gap: 0.4rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero-stage {
    width: min(70vh, 96vw, 85dvh, 1100px);
  }

  .hero-caption {
    bottom: -1.4rem;
  }

  .lightbox-stage img,
  .lightbox img {
    max-height: min(70dvh, 1100px);
  }
}

/* Prefer less motion: keep layout mobile fixes, no extra animation cost */
@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover img {
    transform: none;
  }
}
