/* Shootwithyu — static rebuild */
:root {
  --ink: #000;
  --soft: #171717;
  --bg: #fff;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --pink: #ffd6f8;
  --heading: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 58px);
  --header-h: 116px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 500; line-height: 1.2; margin: 0; }

/* ─── header ─────────────────────────────────────────── */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: calc(env(safe-area-inset-top, 0px) + 38px) var(--gutter) 38px;
}
.site-header.on-photo { color: #fff; }
.site-title {
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1;
  text-decoration: none;
  letter-spacing: -.005em;
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 1.35vw, 20px); font-size: 17px; }
.site-nav a { text-decoration: none; padding: 2px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

.burger { display: none; width: 34px; height: 20px; position: relative; z-index: 31; }
.burger span, .burger::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s, top .3s;
}
.burger::before { top: 5px; }
.burger span { top: 14px; }
.menu-open .burger::before { top: 10px; transform: rotate(45deg); }
.menu-open .burger span { top: 10px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.mobile-menu a { text-decoration: none; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .site-header { color: var(--ink); position: fixed; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .burger { display: block; }
  :root { --header-h: 90px; }
  .site-header { padding-top: calc(env(safe-area-inset-top, 0px) + 26px); padding-bottom: 26px; }
}

/* ─── home ───────────────────────────────────────────── */
.home-hero {
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background: #111;
}
.home-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background: linear-gradient(rgba(0,0,0,.28), transparent);
  pointer-events: none;
}

/* ─── portfolio gallery (slideshow) ──────────────────── */
.slideshow {
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  padding: calc(var(--header-h) + 60px) var(--gutter) 22px;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
}
.slides { position: relative; min-height: 0; }
.slides figure {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.slides figure.on { opacity: 1; pointer-events: auto; }
.slides img { max-width: min(100%, 1000px); max-height: 100%; object-fit: contain; width: auto; height: auto; }
.slide-caption { text-align: center; font-size: 14px; padding-top: 22px; min-height: 60px; }
.arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.arrow svg { width: 12px; height: 22px; }
.arrow.prev { left: calc(var(--gutter) + 20px); }
.arrow.next { right: calc(var(--gutter) + 20px); }
@media (max-width: 700px) {
  .slideshow { padding-top: calc(var(--header-h) + 20px); height: auto; min-height: 0; }
  .slides { aspect-ratio: 4 / 5; }
  .arrow { top: auto; bottom: 8px; }
  .arrow.prev { left: var(--gutter); }
  .arrow.next { right: var(--gutter); }
}

/* ─── projects index ─────────────────────────────────── */
.page { padding: calc(var(--header-h) + 34px) var(--gutter) 120px; }
.project-grid {
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 72px clamp(24px, 5.5vw, 112px);
}
.project-grid a { text-decoration: none; text-align: center; display: block; }
.project-grid .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: #f0f0f0; }
.project-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.project-grid a:hover img { opacity: .85; }
.project-grid h2 { font-size: clamp(18px, 1.5vw, 22px); margin-top: 16px; line-height: 1.4; }
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; } }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }

/* ─── project detail ─────────────────────────────────── */
.intro {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) var(--gutter) 60px;
}
.intro-inner { max-width: 820px; }
.intro h1 { font-size: clamp(20px, 1.8vw, 25px); font-weight: 700; font-style: italic; margin-bottom: 22px; }
.intro p { font-size: 14px; line-height: 1.95; margin: 0 0 14px; }
.wave { display: block; width: 100%; height: 70px; margin-bottom: 40px; }
.wave path { fill: none; stroke: var(--ink); stroke-width: 3; }
.gallery { padding: 0 var(--gutter) 40px; }

.g-masonry { columns: 3; column-gap: 20px; max-width: 1400px; margin: 0 auto; }
.g-masonry figure { break-inside: avoid; margin: 0 0 26px; }
.g-masonry img { width: 100%; height: auto; }
.g-masonry figcaption { font-size: 12px; margin-top: 10px; }
@media (max-width: 900px) { .g-masonry { columns: 2; } }
@media (max-width: 520px) { .g-masonry { columns: 1; } }

.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1400px; margin: 0 auto; }
.g-grid figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.g-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* justified rows: each photo grows by its own aspect ratio */
.g-strips { display: flex; flex-wrap: wrap; gap: 16px; max-width: 1400px; margin: 0 auto; }
.g-strips::after { content: ""; flex-grow: 999999; }
.g-strips figure { margin: 0; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 330px); aspect-ratio: var(--r); }
.g-strips img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .g-strips figure { flex-basis: 100%; } }

.zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }

.g-reel { position: relative; }
.reel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track img { height: min(88vh, 1100px); width: auto; max-width: none; scroll-snap-align: center; flex: none; }
.reel-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.9);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.reel-btn.prev { left: 0; }
.reel-btn.next { right: 0; }
@media (max-width: 700px) { .reel-track img { height: 62vh; } }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 80px var(--gutter) 90px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.pager a { text-decoration: none; display: flex; align-items: center; gap: 16px; font-family: var(--heading); font-size: clamp(18px, 2vw, 26px); }
.pager a:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pager small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); }
.pager .next { margin-left: auto; text-align: right; }
@media (max-width: 600px) { .pager { flex-direction: column; } .pager .next { margin-left: 0; } }

/* ─── lightbox ───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(255,255,255,.98);
  display: grid;
  place-items: center;
  padding: 70px clamp(16px, 7vw, 110px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox .close { position: absolute; top: 18px; right: 22px; font-size: 32px; line-height: 1; padding: 8px; }
.lightbox .arrow { translate: 0 -50%; }
.lightbox .arrow.prev { left: 10px; }
.lightbox .arrow.next { right: 10px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; scroll-behavior: auto !important; } }
