:root {
  /* Nightjar — BLACK edition. Single dark theme, near-black ground. */
  --ground: #fffaf6;
  --surface: #f8eee9;
  --surface-2: #f3dfd7;
  --ink: #4a3434;
  --muted: #8a6d6d;
  --line: rgba(138, 92, 92, 0.16);
  --line-strong: rgba(138, 92, 92, 0.30);
  --accent: #c98f83;
  --accent-deep: #9f655e;
  --accent-ink: #fffaf6;
  --accent-soft: rgba(201, 143, 131, 0.18);
  --blush: #e7b7ae;
  --shadow: 0 30px 70px -30px rgba(92, 55, 55, 0.28);

  --display: "Didot", "Bodoni MT", "Playfair Display", "Hoefler Text", Georgia, serif;
  --sans: "Helvetica Neue", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 68px);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
a { color: inherit; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin: 0;
}

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.2s ease; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600;
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }

/* ---------- View routing ---------- */
.view { display: none; }
.view.active { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -25% -15% auto auto;
  width: 65vw; height: 65vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 65% 35%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(52px, 12vw, 128px); line-height: 0.92; margin: 18px 0 22px; }
.hero h1 span { display: block; }
.hero h1 .it { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 42ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.frame {
  aspect-ratio: 3 / 4; border-radius: 4px; border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 20px;
}
.frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 75% 5%, var(--accent-soft), transparent 55%),
    linear-gradient(200deg, transparent 55%, color-mix(in srgb, var(--accent-deep) 40%, transparent));
  mix-blend-mode: screen;
}
.frame .cap {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in srgb, var(--ground) 60%, transparent);
  border: 1px solid var(--line); padding: 8px 12px; border-radius: 4px;
}
.frame .cap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.frame .cap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ---------- Marquee strip ---------- */
.strip { border-block: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.strip-track {
  display: flex; gap: 48px; padding: 16px 0; white-space: nowrap;
  font-family: var(--display); font-size: 20px; font-style: italic; color: var(--muted);
  animation: slide 26s linear infinite;
}
.strip-track span { display: inline-flex; align-items: center; gap: 48px; }
.strip-track b { color: var(--accent); font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 9vw, 108px); }
.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 54px); }
.section-head h2 { font-size: clamp(30px, 5.5vw, 56px); margin-top: 14px; }
.section-head p { color: var(--muted); margin: 16px 0 0; }

/* ---------- Stats / measurements ---------- */
.stats { background: var(--surface); border-block: 1px solid var(--line); }
.stat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
@media (max-width: 820px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--surface); padding: 24px 20px; text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.stat b { font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: 1fr; } }
.cat {
  position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 20px;
  text-decoration: none; color: var(--ink); cursor: pointer;
  transition: transform 0.35s ease;
}
.cat:hover { transform: translateY(-4px); }
.cat::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  transition: transform 0.5s ease;
}
.cat:hover::after { transform: scale(1.06); }
.cat .lbl { position: relative; z-index: 1; text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.cat .lbl h3 { font-size: 22px; }
.cat .lbl span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cat-1::after { background: linear-gradient(160deg, #f7e7e1, #c98f83 55%, #8f5d56); }
.cat-2::after { background: linear-gradient(160deg, #f3ddd7, #e7b7ae 60%, #a66f68); }
.cat-3::after { background: linear-gradient(160deg, #fff5ef, #d7a093 60%, #93625c); }
.cat-4::after { background: linear-gradient(160deg, #f8eadf, #cfa27a 60%, #9a6f59); }

/* ---------- Press / testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px 32px 28px; }
.quote p { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.45; margin: 0 0 22px; }
.quote cite { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(44px, 7vw, 88px) var(--gutter); position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; inset: auto auto -45% 50%; transform: translateX(-50%);
  width: 80%; height: 75%; background: radial-gradient(circle, var(--accent-soft), transparent 62%);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(34px, 6vw, 60px); margin-bottom: 18px; }
.cta p { color: var(--muted); max-width: 44ch; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .mail { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 26px; }
.cta .mail a { color: var(--accent); text-decoration: none; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding-block: 40px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-inner small { color: var(--muted); font-size: 12px; font-family: var(--mono); letter-spacing: 0.08em; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: color 0.2s; }
.foot-links a:hover { color: var(--ink); }

/* ---------- GALLERY PAGE ---------- */
.gallery-head { padding-top: clamp(44px, 7vw, 84px); padding-bottom: clamp(20px, 3vw, 30px); }
.gallery-head h1 { font-size: clamp(44px, 9vw, 92px); margin: 14px 0 16px; }
.gallery-head p { color: var(--muted); max-width: 52ch; margin: 0; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 30px; }
.filter {
  background: transparent; border: 1px solid var(--line-strong); color: var(--muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter:hover { color: var(--ink); border-color: var(--accent); }
.filter.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.masonry { columns: 3; column-gap: 16px; padding-bottom: 60px; }
@media (max-width: 820px) { .masonry { columns: 2; } }
@media (max-width: 500px) { .masonry { columns: 1; } }
.shot {
  break-inside: avoid; margin-bottom: 16px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); position: relative; cursor: pointer; display: block; width: 100%;
  background: var(--surface); padding: 0; text-align: left; color: inherit; font: inherit;
  transition: transform 0.3s ease;
}
.shot:hover { transform: translateY(-3px); }
.shot .img { position: relative; }
.shot .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(74,52,52,0.48));
  opacity: 0; transition: opacity 0.3s ease;
}
.shot:hover .img::after { opacity: 1; }
.shot .info {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.shot:hover .info { opacity: 1; transform: none; }
.shot .info b { display: block; font-family: var(--display); font-size: 17px; font-weight: 400; color: #fff; }
.shot .info span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(55, 35, 35, 0.86);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lb-figure { max-width: 560px; width: 100%; }
.lb-img { aspect-ratio: 3 / 4; border-radius: 8px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.lb-cap { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; gap: 16px; }
.lb-cap b { font-family: var(--display); font-size: 22px; font-weight: 400; }
.lb-cap span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lb-close {
  position: absolute; top: 20px; right: 24px; background: transparent; border: 1px solid var(--line-strong);
  color: var(--ink); width: 42px; height: 42px; border-radius: 999px; cursor: pointer; font-size: 20px;
}
.lb-close:hover { border-color: var(--accent); color: var(--accent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .strip-track { animation: none; } }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* MOBILE HEADER FIX */
@media screen and (max-width: 760px) {

  html,
  body {
    overflow-x: hidden;
  }

  header.nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background: #fffaf6 !important;
    padding-top: env(safe-area-inset-top);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .nav-inner {
    height: auto !important;
    min-height: 90px !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .brand {
    font-size: 20px !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
  }

  .nav-links {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
  }

  .nav-links a,
  .nav-links a.hideable {
    display: inline-block !important;
    font-size: 12px !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
  }

  body {
    padding-top: calc(90px + env(safe-area-inset-top)) !important;
  }
}
