/* ============================================================
   THEME — tweak colors and fonts here
   ============================================================ */
:root {
  --black: #0b0b0b;
  --charcoal: #151515;
  --accent: #6681c8;          /* muted cobalt: headlines, notes, one color band */
  --accent-text: #a3b4e6;     /* lighter tint for small text on black */
  --navy: #1d2742;            /* second color band: a deep tone of the accent */
  --paper: #f2efe9;
  --dim: rgba(242, 239, 233, .55);
  --line: #262626;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --header-h: 76px;
  --row-h: 280px;             /* target row height in "View all" galleries */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black); color: var(--paper);
  font: 300 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--black); }

/* Type */
.mega {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(54px, 7vw, 124px); line-height: .92; letter-spacing: .005em;
  color: var(--accent);
}
.kicker { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
/* Small accent notes, like ENZO's side captions */
.note { font-size: 13px; line-height: 1.75; letter-spacing: .04em; color: var(--accent-text); max-width: 250px; }
.link-line {
  display: inline-block; position: relative; padding-bottom: 7px;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform-origin: left; transition: transform .45s var(--ease);
}
.link-line:hover::after { transform: scaleX(.4); }
.button {
  display: inline-block; padding: 15px 28px; background: var(--accent); color: var(--black);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; transition: background .25s;
}
.button:hover { background: var(--paper); }
.button:disabled { opacity: .5; cursor: default; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); transition: background .35s var(--ease);
}
.site-header.solid { background: rgba(11,11,11,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { font-family: var(--display); font-size: 28px; letter-spacing: .04em; color: var(--accent); white-space: nowrap; line-height: 1; }
.site-header .brand { color: var(--paper); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.nav a {
  position: relative; padding: 4px 0; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim); white-space: nowrap; transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--paper); }
.nav a.active:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); }
.nav .tab-gap { margin-left: clamp(4px, 1.4vw, 20px); }
.nav .pill { color: var(--accent-text); border: 1px solid rgba(163,180,230,.5); padding: 8px 16px; border-radius: 999px; }
.nav .pill:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }

.view { display: none; }
.view.active { display: block; }

/* ============================================================
   HOME
   ============================================================ */
/* Intro: type only, headline top-left, note bottom-right */
.intro {
  min-height: 78vh; padding: calc(var(--header-h) + clamp(40px, 9vh, 110px)) var(--gutter) clamp(48px, 8vh, 96px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.intro h1 { font-size: clamp(52px, 7vw, 128px); }
.intro h1 > .reveal-line { display: block; }

/* Color-blocked bands */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(520px, 82vh, 860px); }
.half { position: relative; overflow: hidden; display: block; }
.half.block { background: var(--c); }
.half.block .inset { position: absolute; left: 9%; top: 15%; width: 62%; bottom: 0; overflow: hidden; }
.half.block .inset::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0) 50%); }
.half img { width: 100%; height: 100%; object-fit: cover; scale: 1.05; transition: scale 1.4s var(--ease); }
.half:hover img { scale: 1.09; }
.half.photo > img { position: absolute; inset: 0; }
.half.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 50%); }
.half .txt { position: absolute; z-index: 2; max-width: 300px; }
.half.block .txt { left: 9%; top: 15%; padding: clamp(20px, 2.6vw, 36px); }
.half.photo .txt { right: var(--gutter); bottom: clamp(32px, 7vh, 72px); text-align: right; }
.half .num { font-size: 11px; font-weight: 500; letter-spacing: .2em; opacity: .8; }
.half h3 { font-family: var(--sans); font-weight: 400; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.1; margin: 8px 0 10px; letter-spacing: -.01em; }
.half p { font-size: 13px; line-height: 1.6; color: rgba(242,239,233,.85); margin-bottom: 22px; }

/* Selected work: headline overlapping two photos */
.recent { position: relative; padding: clamp(90px, 13vw, 180px) var(--gutter) clamp(110px, 15vw, 220px); }
.recent .r-big { display: block; width: min(34vw, 520px); margin-left: 24vw; cursor: zoom-in; }
.recent .r-small {
  display: block; position: absolute; width: min(17vw, 260px); left: calc(24vw + min(34vw, 520px) - 5vw); top: 55%;
  cursor: zoom-in; box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.recent img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.recent a:hover img { transform: scale(1.02); }
.recent-title { position: absolute; left: var(--gutter); top: 42%; z-index: 3; font-size: clamp(64px, 8.6vw, 156px); pointer-events: none; }
.recent-note { position: absolute; right: var(--gutter); top: clamp(90px, 13vw, 180px); text-align: right; }
.recent-note ul { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.recent-note a { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); }
.recent-note a:hover { color: var(--accent-text); }

/* About */
.about {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 120px); align-items: end;
  padding: clamp(80px, 10vw, 150px) var(--gutter); background: var(--charcoal);
}
.about-photo img { width: 100%; max-width: 460px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 18px 18px 0 var(--accent); }
.about .mega { margin-bottom: 26px; }
.about-text p:not(.kicker) { font-size: 17px; max-width: 34em; margin-bottom: 16px; color: rgba(242,239,233,.85); }
.about-text .link-line { margin-top: 14px; color: var(--accent-text); }

/* Contact */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 120px);
  padding: clamp(80px, 10vw, 150px) var(--gutter);
}
.contact .mega { font-size: clamp(72px, 10vw, 180px); }
.contact-intro .note { margin-top: 22px; }
.contact-form { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.contact-form input, .contact-form textarea {
  font: 300 18px/1.5 var(--sans); color: var(--paper); background: transparent; border: 0;
  border-bottom: 1px solid rgba(242,239,233,.3); padding: 8px 0; border-radius: 0; resize: vertical; transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .button { align-self: flex-start; }
.form-status { color: var(--accent-text); min-height: 1.5em; font-size: 14px; }

.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 26px var(--gutter); border-top: 1px solid var(--line); font-size: 12px; color: var(--dim);
}
.site-footer a { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }

/* ============================================================
   GENRE TAB PAGE
   ============================================================ */
.genre-page { padding: calc(var(--header-h) + clamp(40px, 8vh, 100px)) var(--gutter) 100px; }
.genre-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(56px, 9vw, 130px); }
.genre-head .mega { font-size: clamp(80px, 13vw, 230px); line-height: .85; }
.genre-note { text-align: right; }
.genre-note .count { margin-top: 12px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* Curated best: asymmetric editorial grid (positions set in app.js) */
.best { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(56px, 9vw, 130px); align-items: start; }
.best figure { cursor: zoom-in; }
.best .ph { overflow: hidden; background: var(--charcoal); }
.best img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.best figure:hover img { transform: scale(1.025); }
.best figcaption { display: flex; gap: 14px; align-items: baseline; margin-top: 14px; font-size: 13px; color: rgba(242,239,233,.8); }
.best figcaption b { font-weight: 500; font-size: 11px; letter-spacing: .2em; color: var(--accent-text); }

.all { margin-top: clamp(80px, 11vw, 160px); padding-top: 28px; border-top: 1px solid var(--line); }
.all .link-line { color: var(--accent-text); }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.gallery[hidden] { display: none; }
.gallery::after { content: ""; flex-grow: 999999; }
.tile {
  position: relative; overflow: hidden; background: var(--charcoal); cursor: zoom-in;
  flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--row-h));
}
.tile i { display: block; padding-bottom: calc(100% / var(--r)); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.tile img.loaded { opacity: 1; }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.genre-next { margin-top: clamp(80px, 10vw, 140px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.genre-next a { display: flex; flex-direction: column; gap: 6px; }
.genre-next a:last-child { margin-left: auto; text-align: right; }
.genre-next small { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.genre-next span { font-family: var(--display); font-size: clamp(44px, 6vw, 96px); line-height: .9; color: var(--accent); transition: color .2s; }
.genre-next a:hover span { color: var(--paper); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #070707; display: flex; align-items: center; justify-content: center; animation: fadeIn .25s ease; }
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); object-fit: contain; transition: opacity .25s; }
.lightbox img.swapping { opacity: 0; }
.lightbox figcaption { display: flex; align-items: baseline; gap: 20px; font-size: 13px; color: var(--paper); }
.lightbox figcaption span:last-child { font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--accent-text); }
.lb-close { position: absolute; top: 14px; right: 18px; font-size: 40px; line-height: 1; padding: 8px; color: var(--dim); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 60px; line-height: 1; padding: 20px; color: var(--dim); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-close:hover, .lb-arrow:hover { color: var(--accent-text); }

/* ============================================================
   MOTION
   ============================================================ */
.reveal-line { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-line > span { display: inline-block; transform: translateY(105%); }
.view.active .reveal-line > span { animation: lineUp 1s var(--ease) forwards; }
.view.active h1 .reveal-line:nth-child(1) > span { animation-delay: .15s; }
.view.active h1 .reveal-line:nth-child(2) > span { animation-delay: .27s; }
.view.active h1 .reveal-line:nth-child(3) > span { animation-delay: .39s; }
@keyframes lineUp { to { transform: none; } }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   SMALL SCREENS
   ============================================================ */
@media (max-width: 900px) {
  :root { --header-h: 100px; --row-h: 180px; }
  .site-header { flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; }
  .nav {
    overflow-x: auto; scrollbar-width: none; gap: 18px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav .pill { padding: 5px 12px; }
  .intro { min-height: 70vh; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .half { min-height: 120vw; }
  /* On phones the inset is narrow, so its text sits at the bottom and leaves the sky clear */
  .half.block .txt { top: auto; bottom: 0; right: 29%; max-width: none; }
  .half.block .inset::after { background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
  .recent { display: flex; flex-direction: column; gap: 24px; }
  .recent .r-big, .recent .r-small, .recent-title, .recent-note { position: static; margin: 0; width: auto; }
  .recent .r-big { width: 78%; margin-left: auto; }
  .recent .r-small { width: 52%; margin-top: -22vw; }
  .recent-title { order: -1; }
  .recent-note { order: -1; text-align: left; }
  .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .about-photo img { max-width: 320px; box-shadow: 12px 12px 0 var(--accent); }
  .genre-head { flex-direction: column; align-items: flex-start; }
  .genre-note { text-align: left; }
  .best { grid-template-columns: minmax(0, 1fr); }
  .best figure { grid-column: auto !important; margin-top: 0 !important; }
  .best figure.tall { width: 78%; }
  .best figure:nth-child(even).tall { margin-left: auto; }
  .lightbox img { max-width: 100vw; }
  .lb-arrow { display: none; }
}
@media (max-width: 520px) {
  :root { --row-h: 130px; }
  .gallery { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal-line > span, .reveal { transform: none; opacity: 1; }
}
