/* ===== Fonts ===== */
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("assets/fonts/texgyreheros-regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("assets/fonts/texgyreheros-italic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("assets/fonts/texgyreheros-bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("assets/fonts/texgyreheros-bolditalic.otf") format("opentype");
  font-weight: 700; font-style: italic; font-display: swap;
}

/* ===== Variables ===== */
:root {
  --accent: #FF4600;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --hairline: #ececec;
  --dark: #1a1a1a;
  --font: "TeX Gyre Heros", "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
}

/* ===== Accessibility ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.brand-logo { height: 56px; width: auto; display: block; }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font-style: italic; font-size: 15px; color: var(--muted);
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }

/* ===== Hero ===== */
.hero { padding: 80px 32px 56px; max-width: var(--max); margin: 0 auto; }
.hero h1 { font-style: italic; font-weight: 700; font-size: clamp(30px, 5vw, 52px); line-height: 1.12; }
.hero p { margin-top: 18px; font-size: clamp(15px, 2vw, 19px); color: var(--muted); max-width: 540px; }
.accent-rule { display: block; width: 56px; height: 3px; background: var(--accent); margin-top: 26px; }

/* ===== Gallery ===== */
.gallery { max-width: var(--max); margin: 0 auto; padding: 0 4px; }
.gallery#work,
.gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-heading { padding: 56px 28px 20px; font-style: italic; font-weight: 700; font-size: 24px; }

.tile {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 1 / 1; background: #eee;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.tile figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 16px;
  font-style: italic; font-size: 13px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.tile:hover img { transform: scale(1.04); }
.tile:hover figcaption { opacity: 1; transform: translateY(0); }

.tile-badge {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 100px;
  background: rgba(0,0,0,.55); color: #fff;
  font-style: italic; font-size: 12px; line-height: 1;
  pointer-events: none;
}
.tile-badge i { font-style: normal; font-size: 11px; }
.tile-badge--video { background: var(--accent); }

/* ===== About ===== */
.about { max-width: 720px; margin: 0 auto; padding: 88px 32px; }
.about h2 { font-style: italic; font-weight: 700; font-size: 24px; margin-bottom: 20px; }
.about h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--accent); margin-top: 10px; }
.about p { font-size: 17px; margin-bottom: 16px; }
.about a { border-bottom: 1px solid var(--accent); }

/* ===== Contact ===== */
.contact {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: 80px 32px;
}
.contact-mark {
  position: absolute; right: -40px; bottom: -30px;
  width: 320px; opacity: .14; filter: invert(1);
  pointer-events: none;
}
.contact-inner { position: relative; max-width: var(--max); margin: 0 auto; }
.contact h2 { font-style: italic; font-weight: 700; font-size: 24px; margin-bottom: 24px; }
.contact-line { font-size: 17px; margin-bottom: 12px; }
.contact-label {
  display: inline-block; min-width: 170px;
  font-style: italic; color: #9a9a9a; font-size: 14px;
}
.contact a { border-bottom: 1px solid var(--accent); }
.contact-social { margin-top: 22px; display: flex; gap: 20px; }
.contact-social a { font-style: italic; color: #cfcfcf; border: 0; }
.contact-social a:hover { color: #fff; }

/* ===== Footer ===== */
.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--hairline);
}
.site-footer a:hover { color: var(--ink); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(15,15,15,.94);
}
.lightbox.is-open { display: flex; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; max-width: 90vw; max-height: 84vh; }
.lightbox-media { max-width: 90vw; max-height: 84vh; object-fit: contain; background: #000; }
.lightbox-caption {
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center; color: #fff; font-style: italic; font-size: 14px;
}
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff;
  cursor: pointer; line-height: 1; opacity: .8; transition: opacity .15s;
}
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 22px; right: 28px; font-size: 38px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 54px; padding: 0 18px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .gallery#work, .gallery .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .site-header { padding: 14px 20px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--hairline);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav a { padding: 14px 24px; border-bottom: 1px solid var(--hairline); }
  .site-nav a.is-active { border-bottom-color: var(--hairline); color: var(--accent); }
  .hero { padding: 56px 24px 40px; }
  .about { padding: 60px 24px; }
  .contact-label { display: block; min-width: 0; margin-bottom: 2px; }
}
@media (max-width: 480px) {
  .gallery#work, .gallery .gallery-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
