﻿/* ============================================================
   TANNER EGBERT — PHOTOGRAPHY · SHARED STYLES
   ============================================================ */

:root {
  --bg: #0d0d0d;
  --bg-elev: #131313;
  --ink: #f0ece4;
  --ink-dim: #a09a8e;
  --ink-faint: #5c574e;
  --rule: #1e1e1e;
  --rule-strong: #2a2823;
  --accent: #c9a84c;
  --accent-soft: #c9a84c33;

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* film-grain overlay (toggleable) */
.grain { display: none; }

/* Photos sit above the grain overlay so grain only textures non-photo areas */
header.hero .img-wrap,
.page-head .ph-img,
.about .photo,
.tile {
  z-index: 10;
}
header.hero .content,
header.hero .meta,
.page-head .ph-inner {
  z-index: 20;
}

/* ---------- NAV ---------- */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 380ms ease, border-color 380ms ease, padding 320ms ease, backdrop-filter 380ms;
  border-bottom: 1px solid transparent;
}
nav.top::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
  pointer-events: none;
  transition: opacity 380ms ease;
}
nav.top.scrolled::before, nav.top.solid::before { opacity: 0; }
nav.top .mark, nav.top ul a {
  text-shadow: 0 0 1px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,0.95), 0 2px 12px rgba(0,0,0,0.7);
}
nav.top.scrolled .mark, nav.top.scrolled ul a,
nav.top.solid .mark, nav.top.solid ul a { text-shadow: none; }
nav.top.scrolled, nav.top.solid {
  background: rgba(13,13,13,0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--rule);
  padding-top: 16px; padding-bottom: 16px;
}
nav.top .mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex; align-items: baseline; gap: 10px;
}
nav.top .mark em {
  font-style: normal; color: var(--accent); letter-spacing: 0; font-family: var(--mono); font-size: 11px; font-weight: 400;
  transform: translateY(-2px);
}
nav.top ul {
  list-style: none; display: flex; gap: 36px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 400;
}
nav.top ul a {
  position: relative; padding: 4px 0;
  transition: color 200ms;
}
nav.top ul a::after {
  content: ''; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 1px; background: var(--accent);
  transition: width 280ms ease, left 280ms ease;
}
nav.top ul a:hover, nav.top ul a.current { color: var(--accent); }
nav.top ul a:hover::after, nav.top ul a.current::after { width: 100%; left: 0; }

@media (max-width: 720px) {
  nav.top ul { gap: 22px; font-size: 10.5px; letter-spacing: 0.18em; }
  nav.top .mark { font-size: 14px; letter-spacing: 0.24em; }
  nav.top .mark em { display: none; }
}

/* ---------- HERO (home) ---------- */
header.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  width: 100%;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
header.hero .img-wrap { position: absolute; inset: 0; z-index: 0; }
header.hero .img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at center, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.2) 60%, transparent 100%),
    linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.15) 30%, rgba(13,13,13,0.15) 70%, rgba(13,13,13,0.85) 100%);
  pointer-events: none;
}
header.hero .content {
  position: relative; z-index: 2;
  padding: clamp(120px, 18vh, 200px) var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
header.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 8.6vw, 156px);
  line-height: 0.92;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 32px rgba(0,0,0,0.45);
  max-width: 100%;
  white-space: nowrap;
}
@media (max-width: 720px) {
  header.hero h1 { letter-spacing: 0.05em; font-size: clamp(38px, 11vw, 88px); }
}
header.hero h1 .amp {
  display: block;
  font-style: italic; font-weight: 300;
  font-size: 0.18em; letter-spacing: 0.45em;
  margin-bottom: 18px; color: var(--accent);
}
header.hero .tag {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex; align-items: center; gap: 14px;
}
header.hero .tag .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
header.hero .meta {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 var(--gutter) 32px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim);
}
header.hero .meta .scroll { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink); }
header.hero .meta .scroll .line {
  width: 1px; height: 48px; background: linear-gradient(180deg, transparent, var(--ink) 60%);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0.2); transform-origin: top; opacity: 0.6; }
  50%  { transform: scaleY(1);   transform-origin: top; opacity: 1;   }
  51%  { transform: scaleY(1);   transform-origin: bottom; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.6; }
}
header.hero .meta .right { text-align: right; }
header.hero .meta .left  { text-align: left; }

@media (max-width: 720px) {
  header.hero .content { padding-top: 28vh; }
  header.hero .meta .left, header.hero .meta .right { font-size: 9px; }
}

/* ---------- PAGE HEADER (sub-pages) ---------- */
.page-head {
  position: relative;
  min-height: 56vh;
  padding: clamp(140px, 22vh, 220px) var(--gutter) clamp(48px, 8vh, 88px);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: flex-end;
}
.page-head .ph-img {
  position: absolute; inset: 0; z-index: 0;
}
.page-head .ph-img::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,13,0.45) 0%, rgba(13,13,13,0.15) 35%, rgba(13,13,13,0.6) 70%, rgba(13,13,13,0.92) 100%),
    linear-gradient(90deg, rgba(13,13,13,0.5) 0%, rgba(13,13,13,0.1) 40%, rgba(13,13,13,0.1) 60%, rgba(13,13,13,0.5) 100%);
}
.page-head .ph-img .placeholder { width: 100%; height: 100%; }
.page-head .ph-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
}
.page-head .crumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 400; font-style: italic;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.92; letter-spacing: 0.005em;
  text-shadow: 0 0 1px rgba(0,0,0,1), 0 2px 8px rgba(0,0,0,0.9), 0 4px 32px rgba(0,0,0,0.7);
}
.page-head h1 b { font-style: normal; font-weight: 500; }
.page-head .lede {
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
  max-width: 36ch;
  text-align: right;
  text-shadow: 0 0 1px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,0.95), 0 2px 12px rgba(0,0,0,0.8);
}
.page-head .crumb {
  text-shadow: 0 0 1px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,0.95);
}
@media (max-width: 820px) {
  .page-head .ph-inner { grid-template-columns: 1fr; }
  .page-head .lede { text-align: left; }
}

/* ---------- SECTION CHROME ---------- */
.section { padding: clamp(80px, 12vh, 140px) var(--gutter); position: relative; }
.section-head {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: end; gap: 28px;
  margin-bottom: 56px;
}
.section-head .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-faint);
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400; font-style: italic;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1; letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}
.section-head h2 b { font-style: normal; font-weight: 500; }
.section-head .right {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; text-align: left; }
  .section-head h2 { text-align: left; white-space: normal; }
  .section-head .right { text-align: left; }
}

/* fade-in primitive */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- PORTFOLIO ---------- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin-bottom: 56px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.filters button {
  padding: 10px 18px;
  border: 1px solid var(--rule);
  color: var(--ink-dim);
  border-radius: 999px;
  transition: all 220ms ease;
  position: relative;
}
.filters button:hover { color: var(--ink); border-color: var(--rule-strong); }
.filters button.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.filters .count { margin-left: 8px; font-size: 9px; opacity: 0.65; }
.filters .active .count { opacity: 1; }

.gallery { --cols: 3; column-count: var(--cols); column-gap: 16px; }
.gallery.grid { column-count: unset; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 16px; }
@media (max-width: 980px) { .gallery { --cols: 2; } }
@media (max-width: 600px) { .gallery { --cols: 1; } }

.tile {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  cursor: zoom-in;
  border: 1px solid transparent;
  transition: border-color 300ms, transform 600ms cubic-bezier(0.2,0.7,0.2,1);
}
.gallery.grid .tile { margin-bottom: 0; }
.tile:hover { border-color: var(--rule-strong); }
.tile .frame { position: relative; overflow: hidden; }
.tile img, .tile .placeholder {
  width: 100%; height: 100%;
  transition: transform 1200ms cubic-bezier(0.2,0.7,0.2,1), filter 600ms;
}
.tile:hover img, .tile:hover .placeholder { transform: scale(1.04); }
.tile .overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, transparent 35%, rgba(13,13,13,0.78) 100%);
  opacity: 0; transition: opacity 320ms;
}
.tile:hover .overlay { opacity: 1; }
.tile .overlay .shoot {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 22px; line-height: 1.1;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.tile .overlay .cat {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
}
.tile .badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink); background: rgba(13,13,13,0.7); padding: 5px 8px;
  border: 1px solid var(--rule-strong);
  opacity: 0; transition: opacity 320ms;
}
.tile:hover .badge { opacity: 1; }

/* placeholder image system — category-tuned, monospace label */
.placeholder {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(240,236,228,0.7);
  position: relative;
  background-size: 14px 14px;
}
.placeholder[data-cat="adventure"] {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, #6e3a25 0%, #a85c33 40%, #d99c5b 75%, #2b5380 100%);
}
.placeholder[data-cat="events"] {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, #1a1116 0%, #3a1e2d 50%, #8a2b4c 100%);
}
.placeholder[data-cat="commercial"] {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.12) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, #d4c9b5 0%, #b39c7a 60%, #6c5a40 100%);
  color: rgba(13,13,13,0.7);
}
.placeholder[data-cat="portraits"] {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, #2a1f18 0%, #4a3527 60%, #1a120c 100%);
}
.placeholder[data-cat="couples"] {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.12) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, #4a3a52 0%, #d4b89b 70%, #7a6045 100%);
}
.placeholder[data-cat="editorial"] {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, #0d0d0d 0%, #1a1715 60%, #2a2218 100%);
}
.placeholder[data-cat="travel"] {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.14) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, #0d3a4a 0%, #2d8a8f 50%, #d4c084 100%);
}
.placeholder .ph-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.placeholder .ph-top .id { opacity: 0.7; }
.placeholder .ph-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.placeholder .ph-cross {
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px;
  transform: translate(-50%, -50%);
  opacity: 0.55;
}
.placeholder .ph-cross::before, .placeholder .ph-cross::after {
  content: ''; position: absolute; inset: 50% 0; height: 1px; background: currentColor;
}
.placeholder .ph-cross::after { transform: rotate(90deg); }

/* hero image area */
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .placeholder {
  width: 100%; height: 100%;
  padding: 32px;
  background:
    radial-gradient(ellipse at 30% 18%, #79c0e8 0%, #4a8ec0 18%, #2c5a85 38%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 16px),
    linear-gradient(170deg, #79c0e8 0%, #c8884e 38%, #8a3a1f 70%, #4a1f12 100%);
}
.hero-photo .placeholder .label {
  position: absolute; bottom: 32px; left: 32px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(240,236,228,0.55);
  max-width: 380px;
}

/* ---------- HOME: CATEGORY CARDS ---------- */
.home-cats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: var(--maxw); margin: 0 auto;
}
.home-cats a {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-elev);
  transition: transform 600ms cubic-bezier(0.2,0.7,0.2,1);
}
.home-cats a:hover { transform: translateY(-4px); }
.home-cats a .placeholder { width: 100%; height: 100%; }
.home-cats a .label {
  position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
}
.home-cats a::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.25) 0%, rgba(13,13,13,0) 30%, rgba(13,13,13,0.45) 55%, rgba(13,13,13,0.95) 100%);
  pointer-events: none;
}
.home-cats a .label > * { position: relative; z-index: 3; }
.home-cats a .label .kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
}
.home-cats a .label .name {
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}
.home-cats a .label .kicker { text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.home-cats a .label .arrow { text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.home-cats a .label .arrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim); transition: color 200ms, transform 280ms;
  display: flex; align-items: center; gap: 8px;
}
.home-cats a:hover .label .arrow { color: var(--accent); transform: translateX(6px); }
@media (max-width: 820px) { .home-cats { grid-template-columns: 1fr; } .home-cats a { aspect-ratio: 3/4; } }

/* ---------- HOME: BIG CTA STRIP ---------- */
.cta-strip {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: clamp(56px, 8vh, 96px) var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.cta-strip h3 {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05;
}
.cta-strip h3 b { font-style: normal; font-weight: 500; }
@media (max-width: 720px) { .cta-strip { grid-template-columns: 1fr; } }

/* ---------- ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  max-width: var(--maxw); margin: 0 auto;
}
.about .photo { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.about .photo img, .about .photo .placeholder { width: 100%; height: 100%; object-fit: cover; }
.about .photo .placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 14px),
    linear-gradient(165deg, #b86435 0%, #6e3322 50%, #1a0e08 100%);
}
.about .body { max-width: 540px; }
.about .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.about h3 {
  font-family: var(--display);
  font-weight: 400; font-style: italic;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  margin-bottom: 32px;
  letter-spacing: 0.005em;
}
.about h3 b { font-style: normal; font-weight: 500; }
.about p { color: var(--ink); margin-bottom: 22px; font-size: 16px; line-height: 1.75; max-width: 46ch; }
.about p + p { color: var(--ink-dim); }
.about .signoff {
  margin-top: 36px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.about .signoff a { display: flex; align-items: center; gap: 10px; color: var(--ink-dim); transition: color 200ms; }
.about .signoff a:hover { color: var(--accent); }
.about .signoff a .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

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

/* ---------- SERVICES ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: var(--maxw); margin: 0 auto;
}
.services .card {
  background: var(--bg);
  padding: 56px 40px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 360px;
  transition: background 320ms;
  position: relative;
}
.services .card:hover { background: var(--bg-elev); }
.services .card .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--accent);
}
.services .card h4 {
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: 32px; line-height: 1.1; letter-spacing: 0.005em;
  margin-top: 4px;
}
.services .card p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.7; }
.services .card .tags {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
}
.services .card .tags span {
  border: 1px solid var(--rule-strong);
  padding: 5px 9px;
  color: var(--ink-faint);
  border-radius: 999px;
}
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } }

/* editorial caption */
.cap {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin: -32px 0 36px;
}
.cap em { font-style: normal; color: var(--accent); }

/* ---------- CONTACT ---------- */
.contact {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact .intro h3 {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05;
  margin-bottom: 24px;
}
.contact .intro h3 b { font-style: normal; font-weight: 500; }
.contact .intro p { color: var(--ink-dim); margin-bottom: 32px; max-width: 38ch; }
.contact .intro .links { display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.contact .intro .links a { display: flex; align-items: center; gap: 12px; color: var(--ink); transition: color 200ms; }
.contact .intro .links a:hover { color: var(--accent); }
.contact .intro .links svg { width: 14px; height: 14px; stroke: var(--accent); stroke-width: 1.4; fill: none; }

.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-faint);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  font-family: var(--body); font-size: 15px;
  padding: 10px 0 12px;
  transition: border-color 220ms;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { color: var(--ink); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 12px) center, calc(100% - 6px) center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 24px; }
.field select option { background: var(--bg); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }

.cta {
  margin-top: 8px;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 500;
  transition: transform 220ms, box-shadow 220ms, background 220ms;
  border-radius: 2px;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(201,168,76,0.5); background: #d6b35a; }
.cta:active { transform: translateY(0); }
.cta svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; }

.cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--accent); }
.cta.ghost:hover { background: var(--accent); color: var(--bg); }

.success {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--accent);
  color: var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.success .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (max-width: 820px) { .contact { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 40px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
  flex-wrap: wrap; gap: 16px;
}
footer .mark { color: var(--ink); }
footer a:hover { color: var(--accent); }

/* ---------- LIGHTBOX ---------- */
.lb {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 360ms;
}
.lb.open { opacity: 1; pointer-events: auto; }
.lb .lb-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-dim);
}
.lb .lb-bar .title { color: var(--ink); }
.lb .lb-bar .title em { color: var(--accent); font-style: normal; }
.lb .lb-bar .close {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--rule-strong);
  transition: border-color 220ms, color 220ms;
}
.lb .lb-bar .close:hover { color: var(--accent); border-color: var(--accent); }
.lb .lb-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter) 24px;
  position: relative;
}
.lb .lb-stage img, .lb .lb-stage .placeholder { max-width: 100%; max-height: 100%; object-fit: contain; aspect-ratio: 3/2; }
.lb .lb-stage .ph-wrap { width: min(1100px, 100%); aspect-ratio: 3/2; }
.lb .nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border: 1px solid var(--rule-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: rgba(13,13,13,0.6); backdrop-filter: blur(6px);
  transition: border-color 220ms, color 220ms, background 220ms;
}
.lb .nav-btn:hover { color: var(--accent); border-color: var(--accent); }
.lb .nav-btn.prev { left: clamp(12px, 3vw, 36px); }
.lb .nav-btn.next { right: clamp(12px, 3vw, 36px); }
.lb .nav-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.lb .lb-foot {
  padding: 0 var(--gutter) 28px;
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
}
.lb .lb-foot .meta b { color: var(--ink); font-weight: 400; }

/* ---------- TWEAKS PANEL ---------- */
.tweaks {
  position: fixed; bottom: 22px; right: 22px; z-index: 400;
  width: 280px;
  background: rgba(18,18,18,0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 18px;
  font-family: var(--mono);
  color: var(--ink);
  display: none;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.tweaks.on { display: block; }
.tweaks .head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-dim);
  border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 14px;
}
.tweaks .head .x { padding: 2px 6px; }
.tweaks .head .x:hover { color: var(--accent); }
.tweaks .row { margin-bottom: 14px; }
.tweaks .lbl { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.tweaks .swatches { display: flex; gap: 8px; }
.tweaks .swatches button {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--rule-strong);
  transition: transform 200ms, border-color 200ms;
}
.tweaks .swatches button.sel { border-color: var(--ink); transform: scale(1.08); }
.tweaks .seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  border: 1px solid var(--rule-strong); border-radius: 3px; padding: 3px;
}
.tweaks .seg button { padding: 7px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); border-radius: 2px; }
.tweaks .seg button.sel { background: var(--accent); color: var(--bg); }
.tweaks .toggle { display: flex; justify-content: space-between; align-items: center; }
.tweaks .toggle .sw {
  width: 36px; height: 20px; background: var(--rule-strong); border-radius: 999px; position: relative;
  transition: background 200ms;
}
.tweaks .toggle .sw::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--ink-dim);
  transition: left 200ms, background 200ms;
}
.tweaks .toggle.on .sw { background: var(--accent); }
.tweaks .toggle.on .sw::after { left: 18px; background: var(--bg); }
.tweaks input[type="text"] {
  width: 100%;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  padding: 8px 10px;
  font-family: var(--mono); font-size: 11px;
  border-radius: 2px;
}
.tweaks input[type="text"]:focus { outline: none; border-color: var(--accent); }

/* ---------- MOBILE OPTIMIZATION ---------- */
@media (max-width: 720px) {
  /* Hero — allow title to wrap and shrink hero height */
  header.hero { height: auto; min-height: 100svh; }
  header.hero h1 { white-space: normal; line-height: 1.0; }
  header.hero .content { padding-bottom: 24px; }

  /* Hide the corner meta data on small screens — keeps hero clean */
  header.hero .meta .left, header.hero .meta .right { display: none; }
  header.hero .meta { justify-content: center; padding-bottom: 24px; }

  /* Bigger tap targets for nav */
  nav.top ul a { padding: 12px 0; }

  /* Section padding tighter on phones */
  .section { padding: clamp(56px, 8vh, 90px) var(--gutter); }

  /* About inline photo — limit height so it doesn't dominate */
  .about .photo { max-height: 70vh; }

  /* Hide the tweaks editor panel on mobile — it's an edit tool, not for visitors */
  .tweaks { display: none !important; }

  /* Lightbox nav buttons — make them tappable */
  .lb .nav-btn { width: 44px; height: 44px; }
  .lb .lb-foot { flex-direction: column; gap: 8px; padding: 0 var(--gutter) 18px; }

  /* Contact form fields — full width, comfortable height */
  .contact .form input,
  .contact .form select,
  .contact .form textarea { font-size: 16px; }

  /* CTA buttons — bigger tap targets */
  .cta { padding: 14px 20px; }
}

@media (max-width: 420px) {
  /* Very small phones — even tighter nav */
  nav.top { padding: 16px var(--gutter); }
  nav.top ul { gap: 16px; }
  nav.top .mark { font-size: 12px; }
}
