/* ==========================================================================
   Ben Horwitz — portfolio site styles

   Composed like an edited page, not assembled from a component kit:
   an editorial serif for anything that should carry weight, a plain
   working sans for reading, mono only for the handful of places a
   label or a number actually needs it. Very few boxes — hierarchy
   comes from type scale, rules, and whitespace instead of containers.
   ========================================================================== */

:root {
  --bg: #eeebe1;
  --bg-elevated: #e4e0d2;
  --bg-card: #e8e4d7;
  --border: #14130f;
  --border-soft: #cec8b4;
  --text: #14130f;
  --text-muted: #4a463d;
  --text-faint: #8b8677;
  --accent: #1f3f73;
  --accent-bright: #2c579c;
  --accent-soft: rgba(31, 63, 115, 0.08);
  --stamp: #8a2a1c;
  --stamp-soft: rgba(138, 42, 28, 0.1);
  --max-width: 1160px;
  --radius: 0px;
  --radius-md: 0px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-hand: var(--font-mono);
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  /* a soft, asymmetric wash — warm light from the upper-left, a touch of
     depth lower-right — instead of a flat fill or a centered marketing-
     page glow. Fixed so it reads as one still light source, not a tile
     that visibly repeats as the page scrolls. */
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 750px at 10% -8%, #f5f2e6 0%, rgba(245, 242, 230, 0) 55%),
    radial-gradient(900px 650px at 96% 108%, #e6e1d0 0%, rgba(230, 225, 208, 0) 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.brand { font-family: var(--font-display); font-style: italic; font-weight: 600; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* photo frames tilt slightly at rest, straighten on hover — the one
   piece of "physical" character that survived every earlier pass */
.hero-photo, .card-media, .media-side, .story-media {
  transition: transform 0.2s ease;
}

/* ---------- header : a masthead, not a component bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 1.15rem;
  white-space: nowrap;
}

.brand span { color: var(--stamp); }

.nav-links {
  display: flex;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active { color: var(--text); border-color: var(--stamp); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-bottom: 1px solid var(--border-soft); }
  .nav-toggle { display: block; margin-right: 20px; align-self: center; }
}

/* a small dropdown under "Work" to jump straight to a project instead
   of only routing back through the homepage list */
.nav-work { position: relative; display: flex; align-items: center; }

.nav-work-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.6rem;
  cursor: pointer;
  font-family: var(--font-mono);
}

.nav-work-toggle:hover { color: var(--text); }

.nav-work-menu {
  position: absolute;
  top: 100%;
  left: -14px;
  /* padding-top (not margin-top) does the spacing — a margin here would
     leave a dead gap between the trigger and the menu where the mouse
     loses :hover before it ever reaches the menu, closing it instantly */
  padding: 14px 0 6px;
  min-width: 260px;
  background: var(--bg-elevated);
  background-clip: padding-box;
  box-shadow: 0 12px 24px rgba(20, 19, 15, 0.14);
  display: none;
  flex-direction: column;
  z-index: 200;
}

.nav-work:hover .nav-work-menu,
.nav-work.open .nav-work-menu {
  display: flex;
}

.nav-links .nav-work-menu a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  border-bottom: none;
}

.nav-links .nav-work-menu a span { color: var(--text-faint); }
.nav-links .nav-work-menu a:hover { color: var(--text); background: var(--bg-card); }
.nav-links .nav-work-menu a.current { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .nav-work { flex-direction: column; align-items: stretch; position: relative; }
  .nav-work-toggle {
    position: absolute;
    right: 24px;
    top: 0;
    height: 100%;
    width: 32px;
    margin-left: 0;
  }
  .nav-work:hover .nav-work-menu { display: none; }
  .nav-work.open .nav-work-menu { display: flex; }
  .nav-work-menu { position: static; box-shadow: none; margin-top: 0; }
  .nav-links .nav-work-menu a { padding: 10px 24px 10px 36px; }
}

/* ---------- hero : one dominant line, an asymmetric second beat ---------- */

.hero { padding: 64px 0 56px; }

.hero .wrap { display: block; }

.hero .eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.hero h1 {
  font-weight: 500;
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  max-width: 23ch;
}

.hero-lower {
  display: grid;
  grid-template-columns: 1.1fr 0.5fr auto;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.18rem;
  max-width: 48ch;
  margin: 0;
  grid-column: 1;
}

.hero-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  grid-column: 2;
}

.hero-photo {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-elevated);
  width: 400px;
  transform: rotate(-1.4deg);
  box-shadow: 0 18px 34px rgba(20, 19, 15, 0.18);
  grid-column: 3;
  justify-self: end;
}

.hero-photo:hover { transform: rotate(0deg); }

.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 780px) {
  .hero-lower { grid-template-columns: 1fr; gap: 20px; }
  .hero p, .hero-links, .hero-photo { grid-column: 1; justify-self: start; }
  .hero-photo { order: -1; width: 260px; margin-bottom: 8px; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.eyebrow-index { color: var(--stamp); }

.hero-links a { color: var(--text-muted); }
.hero-links a:hover { color: var(--accent); }
.hero-links a.primary { color: var(--text); font-weight: 600; }
.hero-links a.primary:hover { color: var(--stamp); }

.btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 1px;
}

.btn:hover { color: var(--accent); border-color: var(--accent); }

.btn.primary { color: var(--text); font-weight: 600; border-color: var(--text); }
.btn.primary:hover { color: var(--stamp); border-color: var(--stamp); }

/* ---------- section titles ---------- */

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 8px;
  padding-top: 40px;
}

.section-title h2 {
  font-weight: 500;
  font-style: italic;
  font-size: 1.5rem;
  margin: 0;
}

.section-title .count {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ---------- project index : an editorial contents list, not a card grid ---------- */

.project-grid {
  display: flex;
  flex-direction: column;
  margin-bottom: 90px;
}

.card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--border-soft);
  transition: none;
}

.card:last-child { border-bottom: 1px solid var(--border-soft); }

.card-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.1rem;
  color: var(--border-soft);
  width: 1.4em;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.card:hover .card-index { color: var(--stamp); }

.card-media {
  position: relative;
  width: 168px;
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
  transform: rotate(0deg);
}

.card:nth-of-type(3n+1) .card-media { transform: rotate(-1deg); }
.card:nth-of-type(3n+2) .card-media { transform: rotate(0.8deg); }
.card:nth-of-type(3n+3) .card-media { transform: rotate(-0.6deg); }
.card:hover .card-media { transform: rotate(0deg); }

.card-media img, .card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 5px;
}

.card-body { min-width: 0; flex: 1; }

.card-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.card:hover .card-body h3 { text-decoration: underline; text-decoration-color: var(--border-soft); text-underline-offset: 4px; }

.card-body p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
  max-width: 56ch;
}

@media (max-width: 620px) {
  .card { flex-wrap: wrap; gap: 14px 20px; }
  .card-index { font-size: 1.5rem; width: auto; order: -1; }
  .card-media { width: 100px; }
}

/* ---------- project detail page ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 28px 0 0;
}

.back-link:hover { color: var(--accent); }

.project-hero { padding: 20px 0 0; }

.project-hero-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 40px;
  align-items: start;
  padding: 12px 0 30px;
  max-width: 1020px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .project-hero-layout { grid-template-columns: 1fr; gap: 28px; }
}

.project-hero h1 {
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -0.01em;
  margin: 8px 0 18px;
}

.project-hero .tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 52ch;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
}

.spec-row {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.spec-row div { display: inline; }
.spec-row div:not(:last-child)::after { content: "  /  "; color: var(--border-soft); }
.spec-row dt { display: none; }
.spec-row dd { display: inline; margin: 0; color: var(--text-muted); font-weight: 400; }

.meta-row { display: none; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
}
.tag:not(:last-child)::after { content: " / "; }

/* the side media panel — sticky so it rides alongside the text, no
   border/box around it, just the photo itself */

.media-side {
  position: sticky;
  top: 84px;
  width: fit-content;
  max-width: 320px;
  margin-left: auto;
  background: var(--bg-elevated);
  cursor: zoom-in;
  text-align: center;
  transform: rotate(-1deg);
  box-shadow: 0 16px 30px rgba(20, 19, 15, 0.14);
}

.media-side:hover { transform: rotate(0deg); }

.media-side video, .media-side img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: inline-block;
}

@media (max-width: 860px) {
  .media-side { position: static; margin: 0 0 8px; max-width: 220px; box-shadow: none; }
  .media-side video, .media-side img { max-height: 300px; }
}

.prose { max-width: 62ch; color: var(--text-muted); font-size: 1.03rem; }
.prose h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--text);
  margin: 30px 0 10px;
}
.prose p { margin: 0 0 15px; }
.prose strong { color: var(--stamp); font-weight: 600; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 5px; }

/* ---------- story : text and photos in reading order, no card frames ----------
   Text keeps a comfortable reading measure (set per-element below), but the
   column itself isn't clamped — that's what lets a .wide photo actually
   break out and use the page, instead of every image being stuck inside
   the same narrow text width regardless of what it is. */

.story { padding: 4px 0 50px; }

.story-text { max-width: 820px; margin-left: auto; margin-right: auto; color: var(--text-muted); font-size: 1.03rem; }
.story-text h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--text);
  margin: 4px 0 12px;
}
.story-text p { margin: 0 0 15px; }
.story-text strong { color: var(--stamp); font-weight: 600; }
.story-text + .story-text { margin-top: -7px; }

/* a single photo, dropped into the reading column like a person would
   actually paste one into a document — no border, a soft cast shadow,
   a plain italic caption instead of a boxed label */
.story-media {
  width: fit-content;
  max-width: 820px;
  margin: 32px auto;
  background: var(--bg-elevated);
  cursor: zoom-in;
  transition: transform 0.15s ease;
  transform: rotate(-0.6deg);
  box-shadow: 0 14px 26px rgba(20, 19, 15, 0.13);
}

.story-media:nth-of-type(3n+2) { transform: rotate(0.7deg); }
.story-media:nth-of-type(3n+3) { transform: rotate(-0.4deg); }
.story-media:hover { transform: rotate(0deg); }

.story-media img, .story-media video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

/* a tall portrait shot that's the point of its own beat (a closing
   photo, not a supporting one) — let it run taller instead of getting
   capped down to the same height as everything else */
.story-media.tall img, .story-media.tall video { max-height: 620px; }

/* the one shot per project that earns the whole page's width — a
   landscape "reveal" photo that breaks past the reading column instead
   of being squeezed down to the same size as everything else */
.story-media.wide { max-width: 1020px; width: 100%; }
.story-media.wide img, .story-media.wide video {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.story-media figcaption {
  padding: 10px 2px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-faint);
  text-align: left;
  background: var(--bg);
  box-shadow: none;
}

/* two or three photos side by side — for shots that actually belong
   together (different angles of the same part, a before/after) rather
   than stacked one after another with nothing to say why */
.story-media-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 32px auto;
  align-items: flex-end;
  max-width: 820px;
}

.story-media-pair .story-media { margin: 0; transform: none !important; }
.story-media-pair .story-media img, .story-media-pair .story-media video { max-height: 300px; }

/* a text + photo row — the photo stays compact, off to one side, and
   sits centered in its column instead of jammed against one edge when
   it's a narrow portrait shot */
.story-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  align-items: center;
  margin: 38px auto;
  max-width: 820px;
}

.story-row .story-media { margin: 0; justify-self: center; }
.story-row .story-media img, .story-row .story-media video { max-height: 300px; }
.story-row.story-row--reverse { grid-template-columns: 280px 1fr; }
.story-row.story-row--reverse .story-media { order: -1; }

/* a short, larger-set italic line standing in for a paragraph — used
   next to a video/photo that's the whole point of its own beat, so the
   space beside it reads as a caption, not a gap */
.story-text--note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 34ch;
}

@media (max-width: 700px) {
  .story-row, .story-row.story-row--reverse { grid-template-columns: 1fr; }
  .story-row.story-row--reverse .story-media { order: 0; }
}

/* a compact slideshow for extra shots that don't need their own beat */
.story-slideshow {
  position: relative;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  margin: 32px 0;
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(20, 19, 15, 0.13);
}

.story-slideshow .slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.story-slideshow .slide.active { opacity: 1; pointer-events: auto; }
.story-slideshow .slide img, .story-slideshow .slide video { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.slideshow-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 26px; height: 26px; background: rgba(238, 235, 225, 0.85);
  border: none; color: var(--text); cursor: pointer; font-family: var(--font-mono);
}
.slideshow-nav:hover { background: var(--text); color: var(--bg); }
.slideshow-nav.prev { left: 6px; }
.slideshow-nav.next { right: 6px; }

.slideshow-dots { position: absolute; bottom: 8px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.slideshow-dots .dot { width: 6px; height: 6px; padding: 0; border-radius: 50%; border: none; background: rgba(20, 19, 15, 0.3); cursor: pointer; }
.slideshow-dots .dot.active { background: var(--stamp); }

.slideshow-caption {
  padding: 8px 2px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-faint);
  max-width: 320px;
}

.story-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 40px 0 0;
}
.story-extra-grid figure { margin: 0; background: var(--bg-elevated); cursor: zoom-in; }
.story-extra-grid img, .story-extra-grid video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.editor-note {
  margin: 18px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--border-soft);
  color: var(--text-faint);
  font-size: 0.85rem;
  font-style: italic;
}
.editor-note strong { color: var(--stamp); font-style: normal; }

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  margin: 20px auto 60px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  max-width: 1020px;
}

.project-nav a:hover { color: var(--stamp); }

/* ---------- about page ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  padding: 44px 0 90px;
  align-items: start;
}

@media (max-width: 760px) {
  .about-layout { grid-template-columns: 1fr; }
}

.about-layout .prose > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  float: left;
  line-height: 0.8;
  padding: 6px 6px 0 0;
  color: var(--stamp);
}

.about-photos { display: flex; flex-wrap: wrap; gap: 16px; }

.about-photos img {
  background: var(--bg-elevated);
  width: calc(50% - 8px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.2s ease;
  box-shadow: 0 12px 22px rgba(20, 19, 15, 0.14);
}

.about-photos img:nth-of-type(1) { transform: rotate(-1.4deg); margin-top: 18px; }
.about-photos img:nth-of-type(2) { transform: rotate(1.1deg); }
.about-photos img:hover { transform: rotate(0deg); }

.about-video {
  margin-top: 26px;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: zoom-in;
  transition: transform 0.2s ease;
  transform: rotate(0.8deg);
  width: 82%;
  box-shadow: 0 12px 22px rgba(20, 19, 15, 0.14);
}

.about-video:hover { transform: rotate(0deg); }
.about-video video { width: 100%; max-height: 480px; object-fit: cover; }

.about-wide-photo {
  margin-top: 26px;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: zoom-in;
  transition: transform 0.2s ease;
  transform: rotate(-0.5deg);
  box-shadow: 0 12px 22px rgba(20, 19, 15, 0.14);
}

.about-wide-photo:hover { transform: rotate(0deg); }
.about-wide-photo img { width: 100%; display: block; }

.fact-sheet {
  margin: 32px 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.94rem;
}

.fact-sheet dl { display: block; margin: 0; }
.fact-sheet > dl > * { display: block; }
.fact-sheet dt {
  color: var(--text-faint);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  margin: 14px 0 2px;
}
.fact-sheet dt:first-of-type { margin-top: 0; }
.fact-sheet dd { margin: 0; color: var(--text); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 60px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--accent); }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 19, 15, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox-stage {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.lightbox-stage img, .lightbox-stage video {
  max-width: min(1080px, 88vw);
  max-height: 74vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption {
  max-width: 60ch;
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--bg-elevated);
  text-align: center;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: var(--bg);
  border: none;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-mono);
}

.lightbox-close { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 1.1rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 44px; height: 56px; font-size: 1.3rem; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--stamp); color: #fff; }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 36px; height: 48px; }
}
