/* HouseofBTS — editorial photography site */

:root {
  --ink: #1b1a18;
  --muted: #6b6760;
  --paper: #ffffff;
  --cream: #f6f3ee;
  --line: #e4dfd6;
  --gold: #a5885a;
  --gold-dark: #8a6f45;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
p { margin: 0 0 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--cream { background: var(--cream); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.5;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.site-header--overlay {
  position: absolute; left: 0; right: 0;
  background: transparent;
  border-bottom: 0;
  color: #fff;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  max-width: 1440px; margin: 0 auto;
  padding: 20px var(--gutter);
}
.logo {
  font-family: var(--serif);
  font-size: 1.9rem;
  letter-spacing: .06em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.logo em { font-style: italic; font-size: .8em; padding: 0 .12em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--serif);
  font-size: 1.12rem;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: currentColor; }

.socials { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.socials a { display: block; opacity: .85; }
.socials a:hover { opacity: 1; }
.socials svg { width: 19px; height: 19px; fill: currentColor; display: block; }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer; color: inherit;
}
.menu-toggle span {
  display: block; width: 26px; height: 1px; background: currentColor; margin: 7px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  background: #222 center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%);
}
.hero-content {
  position: relative;
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 9vh, 96px);
}
.hero-content p { max-width: 520px; font-size: 1.05rem; }
.hero .eyebrow { color: #eadfc9; }

.page-hero {
  padding: clamp(64px, 10vw, 120px) 0 clamp(32px, 5vw, 56px);
  text-align: center;
}
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- Films ---------- */
.film { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.film + .film { margin-top: clamp(56px, 8vw, 104px); }
.film:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.film:nth-child(even) .film-media { order: 2; }
.film-media {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: #000; cursor: pointer;
  aspect-ratio: 16 / 9; overflow: hidden;
}
.film-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.film-media:hover img { transform: scale(1.03); opacity: .85; }
.play {
  position: absolute; top: 50%; left: 50%;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border: 1px solid #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.play::after {
  content: ""; margin-left: 5px;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.film-date { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Gallery ---------- */
/* Justified rows (order = left to right). Each figure grows in proportion to
   its aspect ratio --r, so every photo in a row has the same height. */
.gallery { display: flex; flex-wrap: wrap; gap: 20px; }
.gallery::after { content: ""; flex-grow: 999999; }
.gallery figure { margin: 0; overflow: hidden; flex: calc(var(--r, .75) * 100) 1 calc(var(--r, .75) * 420px); }
.gallery img { width: 100%; height: auto; transition: transform .6s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption {
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.35; padding-top: 10px;
}

/* ---------- Split block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.split--reverse .split-media { order: 2; }

/* ---------- Blog cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card a { text-decoration: none; display: block; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 18px; transition: opacity .3s; }
.card a:hover img { opacity: .85; }
.card time { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin-top: 6px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Stats / values ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stats strong { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 400; color: var(--gold); line-height: 1.1; }
.stats span { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article img { margin: 32px 0; }
.article-meta { color: var(--muted); font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; }

/* ---------- Contact form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 0;
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit; color: inherit;
  border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--gold); }
.form textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; margin-bottom: 32px; border-left: 3px solid var(--gold); background: var(--cream); }
.notice--error { border-left-color: #b4483c; }
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-info span { display: block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d4cb; padding: 72px 0 32px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; display: inline-block; margin-bottom: 16px; }
.site-footer h4 { font-family: var(--sans); font-weight: 400; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #3a3833;
  font-size: .85rem; color: #9c968b;
}

/* ---------- Video modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .92); padding: var(--gutter);
}
.modal.is-open { display: flex; }
.modal-box { width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; }
.modal-box iframe { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .socials--header { display: none; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 60;
    flex-direction: column; justify-content: center; gap: 36px;
    background: var(--paper); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: center; gap: 18px; }
  .nav-links a { font-size: 1.8rem; }
  .socials--header { display: flex; }
  .menu-toggle { position: relative; z-index: 70; }
  .menu-open .menu-toggle { color: var(--ink); }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .menu-open { overflow: hidden; }

  .film, .film:nth-child(even), .split { grid-template-columns: 1fr; }
  .film:nth-child(even) .film-media, .split--reverse .split-media { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .logo { font-size: 1.55rem; }
  .cards, .stats, .form, .footer-grid { grid-template-columns: 1fr; }
  .gallery figure { flex-basis: calc(var(--r, .75) * 240px); }
}
