/* ============================================================
   FORSTER CHAN PHOTOGRAPHY — style.css
   ============================================================

   COLOR SYSTEM
   All colors reference CSS custom properties defined on :root.
   Never use hardcoded hex values anywhere in this file.
   Light mode only — dark mode intentionally removed per design preference.

   IMAGES TO COMPRESS BEFORE DEPLOY
   Run all images through squoosh.app or imageoptim before pushing:
     /assets/hero/*.jpg          → target < 300 KB each (1920px wide max)
     /assets/wedding/*.jpg       → target < 200 KB each (1200px wide max)
     /assets/tokyo/*.jpg         → target < 200 KB each
     /assets/commercial/*.jpg    → target < 200 KB each
     /assets/studio-co/*.jpg     → target < 200 KB
     /assets/about/headshot.jpg  → target < 150 KB (900px wide max)
   ============================================================ */


/* ── 1. Custom Properties (Light Mode Default) ─────────────── */

:root {
  /* Brand colors */
  --color-bg:      #F2EDE4;   /* Sand       — page background            */
  --color-surface: #EDE6DB;   /* Dune       — cards, nav surface          */
  --color-border:  #C8BEB3;   /* Stone      — dividers, borders           */
  --color-muted:   #8A7E72;   /* Desert     — muted text, captions, logos */
  --color-text:    #1C1814;   /* Ink        — primary text                */

  /* Typography — Hanken Grotesk (neutral grotesque) for headings, Inter for body */
  --font-serif: 'Hanken Grotesk', system-ui, sans-serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --nav-height:        72px;
  --max-width:         1400px;
  --section-pad-v:     128px;
  --section-pad-h:     48px;
  --grid-gap:          10px;
  --grid-cols:         12;
}

/* ── 2. Light mode always — no dark mode override ───────────── */


/* ── 3. Reset & Base ────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}


/* ── 4. Typography Scale ────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
}


/* ── 5. NAV ─────────────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  transition:
    background-color 0.35s ease,
    border-color     0.35s ease;
  border-bottom: 0.5px solid transparent;
}

#nav.scrolled {
  background-color: var(--color-surface);
  border-bottom-color: var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  transition: color 0.35s;
  white-space: nowrap;
}

/* Nav links row */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

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

/* Social icon cluster in nav */
.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
  padding-left: 24px;
  border-left: 0.5px solid var(--color-border);
  transition: border-color 0.35s;
}

.nav-social a {
  display: flex;
  align-items: center;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav-social a:hover {
  color: var(--color-muted);
}

.nav-social svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
}

/* ── Nav over hero: light text (desktop only) ── */
@media (min-width: 901px) {
  #nav:not(.scrolled) .logo-text,
  #nav:not(.scrolled) .nav-links > a,
  #nav:not(.scrolled) .nav-social a {
    color: rgba(255, 255, 255, 0.88);
  }

  #nav:not(.scrolled) .nav-social {
    border-left-color: rgba(255, 255, 255, 0.3);
  }
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  z-index: 201;
  transition: opacity 0.2s;
}

.nav-hamburger:hover {
  opacity: 0.7;
}

.nav-hamburger span {
  display: block;
  width: 23px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform 0.32s ease, opacity 0.32s ease, background-color 0.35s;
  transform-origin: center;
}

/* Hamburger → X animation */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg);  }
.nav-hamburger.open span:nth-child(2) { opacity: 0;                                  }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ── 6. Mobile Nav ──────────────────────────────────────────── */

@media (max-width: 900px) {

  .nav-hamburger {
    display: flex;
  }

  /* White hamburger over hero when menu is closed */
  #nav:not(.scrolled):not(.menu-open) .nav-hamburger span {
    background-color: rgba(255, 255, 255, 0.88);
  }

  /* Full-screen drawer */
  .nav-links {
    position: fixed;
    inset: 0;
    background-color: var(--color-surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    transform: translateY(-100%);
    transition: transform 0.42s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 199;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  /* Drawer typography */
  .nav-links > a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
  }

  .nav-social {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    gap: 28px;
  }

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

  .nav-social svg {
    width: 22px;
    height: 22px;
  }
}


/* ── 7. HERO ────────────────────────────────────────────────── */

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.38) 100%
  );
  text-align: center;
  padding: 0 24px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
  margin-bottom: 18px;
  line-height: 1;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.6875rem, 1.4vw, 0.9375rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.8;
}


/* ── 8. Section Scaffold ────────────────────────────────────── */

.section {
  padding: var(--section-pad-v) 0;
  /* Scroll fade-in-up — triggered by IntersectionObserver in script.js */
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.65s ease 0.15s,
    transform 0.65s ease 0.15s;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 68px;
  padding: 0 var(--section-pad-h);
}

.section-header h2 {
  font-size: clamp(2.75rem, 5.5vw, 5.5rem);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.section-header p {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* Section divider (visual breath between sections) */
.section + .section {
  border-top: 0.5px solid var(--color-border);
}


/* ── 9. Editorial Image Grid ────────────────────────────────── */

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--grid-gap);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
}

/* All image wrappers */
.img-wrap {
  overflow: hidden;
  background-color: var(--color-surface);
  cursor: zoom-in;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
  display: block;
}

.img-wrap:hover img {
  transform: scale(1.035);
}

/* Wedding / Commercial grid — standard layout */

/* Row 1 */
.img-featured {
  grid-column: span 8;
  aspect-ratio: 4 / 3;
}

.img-accent {
  grid-column: span 4;
  aspect-ratio: 3 / 4;
}

/* Row 2 */
.img-standard {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}


/* Row 3 — full-bleed cinematic closer (6th image in each section) */
.img-full {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 8;
}

@media (max-width: 900px) {
  .img-full { aspect-ratio: 16 / 7; }
}

@media (max-width: 600px) {
  .img-full { aspect-ratio: 4 / 3; }
}

/* Wedding-6 & Tokyo-6: portrait compositions — centred inset display
   These images cannot be cropped wide without losing both subjects.
   Wedding: veil + kiss at top / bride's smile at bottom (flows vertically)
   Tokyo:   Tokyo Tower upper-left → phone booth couple lower-right (diagonal) */
#wedding .img-full {
  grid-column: 4 / 10;   /* centred 6 of 12 cols */
  aspect-ratio: 3 / 4;
}

#tokyo .img-full {
  grid-column: 4 / 10;   /* centred 6 of 12 cols */
  aspect-ratio: 2 / 3;
}

/* Commercial-6: Partnerships event — portrait 4:5 display */
#commercial .img-full {
  grid-column: 4 / 10;   /* centred 6 of 12 cols */
  aspect-ratio: 4 / 5;
}

@media (max-width: 900px) {
  #wedding .img-full,
  #tokyo .img-full,
  #commercial .img-full {
    grid-column: 1 / -1;  /* full width on tablet — already narrower */
  }
}


/* ── 9b. Per-image object-position (composition-tuned crops) ── */

/* Wedding */
#wedding .editorial-grid .img-wrap:nth-child(1) img { object-position: center 35%;  } /* couple on stairs — waist-up framing */
#wedding .editorial-grid .img-wrap:nth-child(2) img { object-position: center top;  } /* B&W close-up — faces at top */
#wedding .editorial-grid .img-wrap:nth-child(3) img { object-position: center 25%;  } /* bar scene — keep faces */
#wedding .editorial-grid .img-wrap:nth-child(4) img { object-position: center top;  } /* tight bride portrait — face-led */
#wedding .editorial-grid .img-wrap:nth-child(5) img { object-position: 60% center;  } /* palm wide shot — couple right of center */
#wedding .editorial-grid .img-wrap:nth-child(6) img { object-position: center 48%;  } /* veil kiss — full portrait, bride smile + veil kiss */

/* Tokyo */
#tokyo .editorial-grid .img-wrap:nth-child(1) img { object-position: center 15%;   } /* Shinjuku station — keep JR sign + faces */
#tokyo .editorial-grid .img-wrap:nth-child(2) img { object-position: center 20%;   } /* piggyback night — upper portion */
#tokyo .editorial-grid .img-wrap:nth-child(3) img { object-position: center 65%;   } /* under giant tree — couple at base */
#tokyo .editorial-grid .img-wrap:nth-child(4) img { object-position: center 25%;   } /* cherry blossoms — faces + blooms */
#tokyo .editorial-grid .img-wrap:nth-child(5) img { object-position: center 55%;   } /* FamilyMart — couple at lower center */
#tokyo .editorial-grid .img-wrap:nth-child(6) img { object-position: center 48%;   } /* Tokyo Tower + phone booth kiss — full portrait, tower top + couple bottom */

/* Commercial */
#commercial .editorial-grid .img-wrap:nth-child(1) img { object-position: center 15%;  } /* fitness model — face + product */
#commercial .editorial-grid .img-wrap:nth-child(2) img { object-position: center 25%;  } /* event — speaker at top */
#commercial .editorial-grid .img-wrap:nth-child(3) img { object-position: center 35%;  } /* clinic reception — centered */
#commercial .editorial-grid .img-wrap:nth-child(4) img { object-position: center 30%;  } /* casino table */
#commercial .editorial-grid .img-wrap:nth-child(5) img { object-position: center 20%;  } /* burger worker — face first */
#commercial .editorial-grid .img-wrap:nth-child(6) img { object-position: center 30%;  } /* partnerships event */


/* ── 10. Tokyo Grid — portrait-first, emotionally layered ───── */

.editorial-grid--tokyo {
  row-gap: calc(var(--grid-gap) * 2.5);  /* extra vertical breathing room */
}

/* Row 1: three equal-width portraits */
.tokyo-portrait {
  grid-column: span 4;
  aspect-ratio: 3 / 4;
}

/* Row 2: wide dominant + accent */
.tokyo-wide {
  grid-column: span 8;
  aspect-ratio: 16 / 9;
}

.tokyo-accent {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
}


/* ── 11. Logo Strip ─────────────────────────────────────────── */

.logo-strip {
  max-width: var(--max-width);
  margin: 64px auto 0;
  padding: 44px var(--section-pad-h) 0;
  border-top: 0.5px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.logo-strip-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  flex-basis: 100%;
  margin-bottom: -12px;
}

.logo-strip img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.55);
  transition: filter 0.3s;
}

.logo-strip img:hover {
  filter: grayscale(100%) brightness(0.75);
}

/* Arlington Estate has a complex wax seal — boost brightness slightly */
.logo-strip img.logo-brighter {
  filter: grayscale(100%) brightness(0.72);
}
.logo-strip img.logo-brighter:hover {
  filter: grayscale(100%) brightness(0.9);
}


/* ── 11b. Section Contact Links ─────────────────────────────── */

.section-link-row {
  margin-top: 22px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.section-link:hover {
  color: var(--color-text);
}

.section-link svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.5;
  flex-shrink: 0;
}


/* ── 12. Studio Co. Section ─────────────────────────────────── */

#studio-co {
  border-top: 0.5px solid var(--color-border);
}

.studio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
}

/* Text-only variant — add class="text-only" to #studio-co */
#studio-co.text-only .studio-layout {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.studio-text h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.studio-text p {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}

.studio-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 0.5px solid var(--color-border);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.studio-link:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.studio-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--color-surface);
}

.studio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.studio-image:hover img {
  transform: scale(1.03);
}


/* ── 13. About Section ──────────────────────────────────────── */

#about {
  border-top: 0.5px solid var(--color-border);
}

.about-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
}

.about-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-surface);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-text h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 600;
  margin-bottom: 36px;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.about-bio {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.85;
}


/* ── 14. Contact Section ────────────────────────────────────── */

#contact {
  border-top: 0.5px solid var(--color-border);
  padding: 160px var(--section-pad-h);
}

.contact-inner {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

#contact h2 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 52px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 6px;
  margin-bottom: 64px;
  transition: border-color 0.25s ease, color 0.25s ease;
  letter-spacing: -0.01em;
}

.contact-email:hover {
  color: var(--color-muted);
  border-bottom-color: var(--color-muted);
}

.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.contact-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-social a:hover {
  color: var(--color-text);
}

.contact-social svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.5;
}


/* ── 15. Footer ─────────────────────────────────────────────── */

footer {
  border-top: 0.5px solid var(--color-border);
  padding: 36px var(--section-pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

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

.footer-links svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.5;
}


/* ── 16. Responsive — 1200px ────────────────────────────────── */

@media (max-width: 1200px) {
  :root {
    --section-pad-v: 96px;
    --section-pad-h: 32px;
  }
}


/* ── 17. Responsive — 900px (tablet) ───────────────────────── */

@media (max-width: 900px) {
  :root {
    --section-pad-v: 72px;
    --section-pad-h: 24px;
    --grid-cols: 6;
  }

  /* Grid collapses to 6 columns */
  .img-featured {
    grid-column: span 6;
    aspect-ratio: 16 / 9;
  }

  .img-accent {
    grid-column: span 3;
    aspect-ratio: 1;
  }

  .img-standard {
    grid-column: span 3;
    aspect-ratio: 1;
  }

  /* Tokyo grid */
  .tokyo-portrait {
    grid-column: span 2;
    aspect-ratio: 2 / 3;
  }

  .tokyo-wide {
    grid-column: span 4;
    aspect-ratio: 4 / 3;
  }

  .tokyo-accent {
    grid-column: span 2;
    aspect-ratio: 1;
  }

  /* Studio */
  .studio-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .studio-image {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .studio-text p {
    max-width: none;
  }

  /* About */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    aspect-ratio: 4 / 5;
  }

  /* Contact */
  #contact {
    padding: 100px var(--section-pad-h);
  }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}


/* ── 18. Responsive — 600px (mobile) ───────────────────────── */

@media (max-width: 600px) {
  :root {
    --section-pad-v: 56px;
    --section-pad-h: 18px;
    --grid-gap: 8px;
    --grid-cols: 1;
  }

  .section-header h2 {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

  /* All grid items go full-width */
  .img-featured,
  .img-accent,
  .img-standard,
  .tokyo-portrait,
  .tokyo-wide,
  .tokyo-accent {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  /* ── Editorial mobile crops — varied aspect ratios for visual rhythm ── */

  /* Wedding */
  #wedding .editorial-grid .img-wrap:nth-child(1) { aspect-ratio: 4 / 3;  }  /* landscape couple on stairs */
  #wedding .editorial-grid .img-wrap:nth-child(2) { aspect-ratio: 3 / 4;  }  /* portrait B&W close-up */
  #wedding .editorial-grid .img-wrap:nth-child(3) { aspect-ratio: 4 / 3;  }  /* landscape bar scene */
  #wedding .editorial-grid .img-wrap:nth-child(4) { aspect-ratio: 3 / 4;  }  /* portrait tight face */
  #wedding .editorial-grid .img-wrap:nth-child(5) { aspect-ratio: 4 / 3;  }  /* landscape wide palm */
  #wedding .editorial-grid .img-wrap:nth-child(6) { aspect-ratio: 3 / 4;  }  /* portrait veil kiss — full composition */

  /* Tokyo */
  #tokyo .editorial-grid .img-wrap:nth-child(1) { aspect-ratio: 3 / 4;   }   /* portrait Shinjuku */
  #tokyo .editorial-grid .img-wrap:nth-child(2) { aspect-ratio: 3 / 4;   }   /* portrait piggyback */
  #tokyo .editorial-grid .img-wrap:nth-child(3) { aspect-ratio: 3 / 4;   }   /* portrait under tree */
  #tokyo .editorial-grid .img-wrap:nth-child(4) { aspect-ratio: 16 / 9;  }   /* wide cherry blossom */
  #tokyo .editorial-grid .img-wrap:nth-child(5) { aspect-ratio: 4 / 3;   }   /* FamilyMart */
  #tokyo .editorial-grid .img-wrap:nth-child(6) { aspect-ratio: 2 / 3;   }   /* portrait Tokyo Tower + phone booth — full composition */

  /* Commercial */
  #commercial .editorial-grid .img-wrap:nth-child(1) { aspect-ratio: 4 / 3;  }  /* fitness model */
  #commercial .editorial-grid .img-wrap:nth-child(2) { aspect-ratio: 3 / 4;  }  /* portrait event */
  #commercial .editorial-grid .img-wrap:nth-child(3) { aspect-ratio: 4 / 3;  }  /* clinic */
  #commercial .editorial-grid .img-wrap:nth-child(4) { aspect-ratio: 4 / 3;  }  /* casino */
  #commercial .editorial-grid .img-wrap:nth-child(5) { aspect-ratio: 4 / 3;  }  /* burger */
  #commercial .editorial-grid .img-wrap:nth-child(6) { aspect-ratio: 4 / 5;  }  /* partnerships event — portrait */

  .section-header {
    margin-bottom: 40px;
  }

  .logo-strip {
    gap: 24px;
    padding-top: 32px;
  }

  /* Tokyo extra spacing */
  .editorial-grid--tokyo {
    row-gap: var(--grid-gap);
  }

  /* About layout */
  .about-image {
    aspect-ratio: 4 / 5;
  }

  /* Studio */
  .studio-image {
    aspect-ratio: 4 / 3;
  }

  /* Contact */
  #contact {
    padding: 80px var(--section-pad-h);
  }

  .contact-social {
    gap: 28px;
  }

  /* Hero tagline — shorter on small screens */
  .hero-tagline br {
    display: none;
  }
}


/* ── 19. Lightbox ───────────────────────────────────────────── */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  display: block;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  padding: 0;
}

.lightbox-close:hover {
  color: rgba(255, 255, 255, 1);
}

.lightbox-close svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}


/* ── 21. Accessibility ──────────────────────────────────────── */

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide {
    transition: none;
  }

  .section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .img-wrap img,
  .studio-image img {
    transition: none;
  }
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
  border-radius: 2px;
}
