:root {
  color-scheme: dark;
  --bg: #070707;
  --panel: #111111;
  --panel-2: #181818;
  --text: #f6f2ea;
  --muted: #b9b2a7;
  --line: rgba(246, 242, 234, 0.15);
  --gold: #c6a15b;
  --gold-2: #f0d695;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; background: var(--gold); color: #101010; padding: .75rem 1rem; border-radius: 4px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(0,0,0,.82), rgba(0,0,0,0));
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { background: rgba(7, 7, 7, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-weight: 800;
  letter-spacing: 0;
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }
.site-nav a, .link-button { color: rgba(246,242,234,.86); }
.site-nav a:hover, .link-button:hover, .site-nav [aria-current="page"] { color: var(--gold-2); }
.link-button { border: 0; background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .08em; padding: 0; }
.nav-toggle { display: none; background: transparent; border: 0; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--text); }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.38) 45%, rgba(0,0,0,.22)), linear-gradient(0deg, rgba(7,7,7,.9), transparent 44%); }
.hero-content { position: relative; z-index: 1; width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 8rem 0 16vh; }
.eyebrow { margin: 0 0 .7rem; color: var(--gold-2); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 800; }
h1, h2, h3 { line-height: 1.05; margin: 0; font-weight: 780; letter-spacing: 0; }
.hero h1 { font-size: clamp(3rem, 12vw, 9rem); max-width: 10ch; }
.hero-subtitle { max-width: 780px; margin: 1rem 0 2rem; font-size: clamp(1.05rem, 2.5vw, 1.45rem); color: rgba(246,242,234,.9); }
.hero-next { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 1; color: rgba(246,242,234,.58); font-size: .82rem; white-space: nowrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .8rem 1.2rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .02em;
}
.button-primary { background: var(--gold); color: #111; border-color: var(--gold); }
.button-primary:hover { background: var(--gold-2); }
.button-ghost { background: rgba(255,255,255,.04); color: var(--text); }
.button-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.section, .page { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section-tight { padding-top: clamp(3rem, 8vw, 6rem); }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading h2, .page-hero h1, .split-section h1, .contact-layout h1 { font-size: clamp(2rem, 7vw, 4.8rem); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-tile { min-height: 250px; padding: 1.5rem; background: var(--panel); display: flex; flex-direction: column; justify-content: flex-end; transition: background .2s ease, transform .2s ease; }
.feature-tile:hover { background: var(--panel-2); transform: translateY(-2px); }
.feature-tile span { color: var(--gold); font-weight: 800; margin-bottom: auto; }
.feature-tile h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.feature-tile p, .page-hero p, .split-section p, .contact-layout p, .muted { color: var(--muted); }

.page { padding-top: 8rem; min-height: 75vh; }
.page-hero { max-width: 880px; margin-bottom: 2.5rem; }
.gallery-toolbar { position: sticky; top: 74px; z-index: 5; display: flex; gap: .6rem; flex-wrap: wrap; padding: .8rem 0; background: rgba(7,7,7,.88); backdrop-filter: blur(14px); }
.chip { border: 1px solid var(--line); border-radius: 999px; background: #101010; color: var(--text); padding: .65rem 1rem; cursor: pointer; }
.chip.is-active, .chip:hover { border-color: var(--gold); color: var(--gold-2); }
.album-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; margin: 1.2rem 0 2rem; }
.album-card { border: 1px solid var(--line); background: var(--panel); padding: 1rem; border-radius: 6px; cursor: pointer; text-align: left; color: var(--text); }
.album-card strong { display: block; font-size: 1rem; }
.album-card span { color: var(--muted); font-size: .9rem; }
.album-card.is-active { border-color: var(--gold); }
.masonry-grid { columns: 1; column-gap: .75rem; min-height: 20rem; }
.photo-card { display: inline-block; width: 100%; margin: 0 0 .75rem; border: 0; padding: 0; background: transparent; cursor: zoom-in; break-inside: avoid; }
.photo-card img { width: 100%; border-radius: 3px; background: #151515; transition: transform .25s ease, filter .25s ease; }
.photo-card:hover img { transform: scale(.992); filter: brightness(1.08); }
.load-more { display: flex; margin: 2rem auto; }
.empty-state { padding: 2rem 0; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(0,0,0,.94); padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; gap: .8rem; justify-items: center; width: min(100%, 1300px); }
.lightbox img { max-height: 84svh; width: auto; border-radius: 3px; box-shadow: var(--shadow); }
.lightbox figcaption { color: var(--muted); text-align: center; }
.icon-button { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: rgba(16,16,16,.88); color: var(--text); font-size: 2rem; cursor: pointer; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-play { position: fixed; bottom: 1rem; right: 1rem; }

.split-section, .contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 5rem); align-items: start; padding-bottom: 5rem; }
.portrait img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2rem; }
.info-grid section { background: var(--panel); padding: 1.4rem; }
.info-grid h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.clean-list { margin: 0; padding-left: 1.2rem; color: var(--muted); }

.contact-form, .login-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1rem, 4vw, 2rem); box-shadow: var(--shadow); }
.contact-form label, .login-form label { display: block; margin: 1rem 0 .35rem; font-weight: 800; }
.contact-form input, .contact-form textarea, .login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0b0b0b;
  color: var(--text);
  padding: .9rem 1rem;
}
.contact-form textarea { resize: vertical; }
.contact-form .button, .login-form .button { width: 100%; margin-top: 1.2rem; }
.form-error { min-height: 1.4rem; color: #ffd1d1; }
.login-page { min-height: 100svh; background: radial-gradient(circle at top, rgba(198,161,91,.18), transparent 34%), var(--bg); }
.login-shell { min-height: 100svh; display: grid; place-items: center; padding: 1rem; }
.login-panel { width: min(100%, 440px); }
.login-panel h1 { font-size: clamp(2.4rem, 12vw, 4.6rem); }

.site-footer { display: flex; justify-content: space-between; gap: 1rem; width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); }

@media (min-width: 620px) { .masonry-grid { columns: 2; } }
@media (min-width: 980px) { .masonry-grid { columns: 3; } }
@media (min-width: 1280px) { .masonry-grid { columns: 4; } }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 70px 1rem auto 1rem;
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: rgba(10,10,10,.96);
    border: 1px solid var(--line);
    border-radius: 6px;
    transform: translateY(-1rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .feature-grid, .split-section, .contact-layout, .info-grid { grid-template-columns: 1fr; }
  .feature-tile { min-height: 190px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox-play { left: 50%; right: auto; transform: translateX(-50%); bottom: 1rem; white-space: nowrap; }
}

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