/* =====================================================================
   KOUSEIPICS — Automotive & Real Estate Photography (Chicagoland)
   Earthy-dark cinematic editorial design system
   --------------------------------------------------------------------
   Sections:
     01  Tokens / variables
     02  Reset + base
     03  Typography utilities
     04  Layout primitives
     05  Film-grain + texture overlays
     06  Buttons + links
     07  Navigation (floating)
     08  Hero
     09  Directory (category cards)
     10  Marquee strip
     11  Feed ("Fresh from the Feed")
     12  Featured film
     13  Gallery + filter + lightbox
     14  About / Contact
     15  Footer
     16  Reveal animations
     17  Responsive
     18  Reduced motion / print
   ===================================================================== */

/* 01 — TOKENS ------------------------------------------------------- */
:root {
  /* earthy-dark palette */
  --bg:          #0e0b08;
  --bg-elev:     #15100b;
  --surface:     #1c1610;
  --surface-2:   #271e15;
  --line:        rgba(237, 227, 211, 0.12);
  --line-strong: rgba(237, 227, 211, 0.24);

  --text:        #ede3d3;
  --text-dim:    #b4a68f;
  --text-faint:  #7a6f5c;

  --accent:      #b4a68f;   /* tan / taupe (matches Real Estate title) */
  --accent-2:    #b4a68f;   /* tan / taupe (text accent) */
  --accent-deep: #8a7f6a;   /* deep taupe */
  --accent-tint: rgba(180, 166, 143, 0.14);

  /* fonts */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  /* scale */
  --container: 1480px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 4px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  /* z-index scale */
  --z-grain: 9000;
  --z-nav: 1000;
  --z-cursor: 9500;
  --z-lightbox: 8000;
}

/* 02 — RESET + BASE ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

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

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

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

::selection { background: var(--accent); color: #120c07; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* warm scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

/* 03 — TYPOGRAPHY --------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow--accent { color: var(--accent-2); }

.index-no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

.lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-dim);
  max-width: 46ch;
  line-height: 1.7;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  font-weight: 500;
  color: var(--accent-2);
}

.text-accent { color: var(--accent-2); }
.text-dim { color: var(--text-dim); }

/* 04 — LAYOUT ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(5rem, 12vw, 11rem); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.divider { height: 1px; background: var(--line); border: 0; }

/* 05 — GRAIN + TEXTURE ---------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* warm vignette helper */
.vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(8, 6, 4, 0.55) 100%);
}

/* 06 — BUTTONS + LINKS --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.6rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 0.3s var(--ease);
  will-change: transform;
}

.btn svg { width: 16px; height: 16px; }

.btn--solid { background: var(--accent); color: #150d06; }
.btn--solid:hover { background: #c9bca5; }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(237, 227, 211, 0.02);
}
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn:active { transform: translateY(1px); }

/* animated underline link */
.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.arrow-link svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.arrow-link:hover { color: var(--accent-2); }
.arrow-link:hover svg { transform: translateX(6px); }

/* 07 — NAVIGATION --------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: clamp(1rem, 2vw, 1.6rem) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease),
              padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14, 11, 8, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  padding-block: clamp(0.7rem, 1.4vw, 1rem);
}

.nav__brand { display: flex; align-items: center; gap: 0.7rem; z-index: 2; }
.nav__logo { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.nav__center {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-2);
  font-size: 1rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); z-index: 2; }
.nav__link {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--accent-2); }

.nav__cta { color: var(--text) !important; }

.nav__socials { display: flex; gap: 0.9rem; align-items: center; }
.nav__socials a { color: var(--text-dim); transition: color 0.3s var(--ease), transform 0.3s var(--ease); display: grid; place-items: center; }
.nav__socials a:hover { color: var(--accent-2); transform: translateY(-2px); }
.nav__socials svg { width: 18px; height: 18px; }

/* burger */
.nav__burger { display: none; flex-direction: column; gap: 5px; width: 30px; height: 22px; justify-content: center; z-index: 2; }
.nav__burger span { display: block; height: 2px; width: 100%; background: var(--text); transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-elev);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem var(--gutter);
  gap: 1.4rem;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  visibility: hidden;
}
.nav.is-open .nav__drawer { transform: translateY(0); visibility: visible; }
.nav__drawer a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 11vw, 3.6rem);
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}
.nav__drawer a:hover { color: var(--accent-2); }
.nav__drawer .nav__drawer-meta { font-family: var(--font-body); font-size: 0.85rem; color: var(--text-dim); margin-top: 1.5rem; line-height: 2; }

/* 08 — HERO --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 104%;
  object-fit: cover;
  object-position: center 48%;
  will-change: transform;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,11,8,0.55) 0%, rgba(14,11,8,0.15) 35%, rgba(14,11,8,0.65) 78%, var(--bg) 100%),
    radial-gradient(110% 80% at 30% 20%, transparent 50%, rgba(8,6,4,0.5) 100%);
}

.hero__top {
  position: absolute;
  top: clamp(6rem, 12vh, 9rem);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.hero__intro { max-width: 30ch; }
.hero__meta-right { text-align: right; }

.hero__wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(3.1rem, 15vw, 14rem);
  line-height: 0.8;
  letter-spacing: 0.01em;
  width: 100%;
  white-space: nowrap;
  text-align: center;
}
.hero__wordmark .stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

.hero__frames {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
  gap: 1rem;
}
.hero__frame { width: clamp(110px, 14vw, 200px); }
.hero__frame figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.hero__frame img { aspect-ratio: 3/4; object-fit: cover; transition: transform 0.8s var(--ease); }
.hero__frame:hover img { transform: scale(1.06); }
.hero__frame figcaption { margin-bottom: 0.5rem; }
.hero__frame--right { text-align: right; }

.hero__scroll {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll .scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--accent-2), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  40% { transform: scaleY(1); transform-origin: top; }
  60% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 09 — DIRECTORY ---------------------------------------------------- */
.directory { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(2, 1fr); }

.dir-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: clamp(340px, 48vw, 560px);
  isolation: isolate;
}
.dir-card__media { position: absolute; inset: 0; z-index: -2; }
.dir-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.8s var(--ease);
  filter: saturate(0.92) brightness(0.78);
}
.dir-card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,11,8,0.2) 0%, rgba(14,11,8,0.35) 50%, rgba(14,11,8,0.92) 100%);
}
.dir-card:hover .dir-card__media img { transform: scale(1.05); filter: saturate(1.05) brightness(0.9); }

.dir-card__body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.6rem);
}
.dir-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.dir-card__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.86;
}
.dir-card__sub { margin-top: 0.8rem; max-width: 36ch; color: var(--text-dim); font-size: 0.92rem; }
.dir-card__cta { margin-top: 1.4rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
}
.badge--live { color: var(--accent-2); border-color: rgba(180,166,143,0.4); }
.badge--live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(180,166,143,0.6); animation: pulse 2s infinite; }
.badge--soon { color: var(--text-dim); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(180,166,143,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(180,166,143,0); }
  100% { box-shadow: 0 0 0 0 rgba(180,166,143,0); }
}

.dir-card--soon { cursor: not-allowed; }
.dir-card--soon .dir-card__media img { filter: saturate(0.92) brightness(0.74); object-position: center 72%; }
.dir-card--soon .dir-card__title { color: var(--text-dim); }

/* 10 — MARQUEE ------------------------------------------------------ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(1.2rem, 3vw, 2rem);
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}
.marquee__item .star { color: var(--accent); }
.marquee__item--stroke { color: transparent; -webkit-text-stroke: 1px var(--text-faint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 11 — FEED --------------------------------------------------------- */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
}
.feed-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.feed-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.feed-card:hover img { transform: scale(1.07); }
.feed-card__overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(14,11,8,0.05), rgba(14,11,8,0.05) 55%, rgba(14,11,8,0.85));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.feed-card:hover .feed-card__overlay { opacity: 1; }
.feed-card__platform {
  align-self: flex-end;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(14,11,8,0.6);
  border-radius: 50%;
  color: var(--text);
}
.feed-card__platform svg { width: 16px; height: 16px; }
.feed-card__cap { font-size: 0.74rem; color: var(--text); line-height: 1.4; }
.feed-card__type {
  position: absolute; top: 0.7rem; left: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.5rem; border-radius: 100px;
  background: rgba(14,11,8,0.7); color: var(--accent-2);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.feed-card:hover .feed-card__type { opacity: 1; }

.feed-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.feed-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); animation: pulse 2s infinite; }

/* 12 — FEATURED FILM ----------------------------------------------- */
.film {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}
.film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__poster-wrap::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, rgba(14,11,8,0.2), rgba(14,11,8,0.7));
}
.film__play {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 3;
  width: clamp(70px, 9vw, 110px);
  height: clamp(70px, 9vw, 110px);
  border-radius: 50%;
  background: rgba(20,13,6,0.55);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.film__play:hover { background: var(--accent); color: #150d06; transform: scale(1.06); border-color: var(--accent); }
.film__play svg { width: 34%; height: 34%; margin-left: 4px; }
.film__label {
  position: absolute;
  left: clamp(1.2rem, 3vw, 2.4rem);
  bottom: clamp(1.2rem, 3vw, 2.4rem);
  z-index: 2;
}
.film__label .t {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 0.9;
}
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 13 — GALLERY ------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filter-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
.filter-btn.is-active { background: var(--accent); color: #150d06; border-color: var(--accent); }

.gallery {
  columns: 3;
  column-gap: clamp(0.7rem, 1.4vw, 1.1rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: clamp(0.7rem, 1.4vw, 1.1rem);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.gallery__item.is-hidden { display: none; }
.gallery__item img { width: 100%; transition: transform 0.9s var(--ease), filter 0.6s var(--ease); filter: brightness(0.92); }
.gallery__item:hover img { transform: scale(1.05); filter: brightness(1.02); }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  background: linear-gradient(transparent, rgba(14,11,8,0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery__item:hover .gallery__caption { opacity: 1; transform: translateY(0); }
.gallery__caption .t { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; }
.gallery__caption .tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(8,6,4,0.94);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox__cap {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2.2rem);
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-dim);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(20,13,6,0.4);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lightbox__close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav svg, .lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: clamp(0.5rem,2vw,2rem); }
.lightbox__nav--next { right: clamp(0.5rem,2vw,2rem); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: #150d06; }
.lightbox__counter {
  position: absolute;
  top: clamp(1rem,3vw,2rem); left: clamp(1rem,3vw,2rem);
  font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--text-dim);
}

/* 14 — ABOUT / CONTACT --------------------------------------------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse { grid-template-columns: 0.9fr 1.1fr; }

.stat-row { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; }
.stat .n { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--accent-2); }
.stat .l { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-top: 0.4rem; }

.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.media-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }

.contact-item { padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.contact-item .k { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.4rem; }
.contact-item .v { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2rem); }
.contact-item a.v:hover { color: var(--accent-2); }

.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.4rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  color: var(--text);
  font: inherit;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-2);
  background: var(--bg-elev);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.5rem; }

/* page header (interior pages) */
.page-hero {
  position: relative;
  padding-top: clamp(8rem, 16vh, 12rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.page-hero > .eyebrow { display: block; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(3rem, 13vw, 11rem);
  line-height: 0.82;
}
.page-hero__row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; }

/* 15 — FOOTER ------------------------------------------------------- */
.footer { position: relative; padding-top: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.footer__cta {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.footer__big { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 0.9; }
.footer__big em { font-family: var(--font-serif); font-style: italic; text-transform: none; color: var(--accent-2); }

.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.footer__col h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.2rem; font-weight: 500; }
.footer__col a, .footer__col p { display: block; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 0.7rem; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent-2); }

.footer__wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(3.5rem, 21vw, 20rem);
  line-height: 0.78;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  letter-spacing: 0.01em;
  user-select: none;
  margin: 1rem 0 clamp(0.75rem, 2.6vw, 2.5rem);
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-block: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--text-faint);
}
.footer__bottom .heart { color: var(--accent); }

/* 16 — REVEAL ------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }

/* 17 — RESPONSIVE --------------------------------------------------- */
@media (max-width: 1024px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .feed-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__center { display: none; }
  .directory { grid-template-columns: 1fr; }
  .split, .split--reverse, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .media-frame { order: -1; }
  .gallery { columns: 2; }
  .hero__frames { display: none; }
  .hero { align-items: flex-end; }
  .hero__top { position: static; padding: 0; margin-top: 0; display: none; }
  .hero { padding-top: 7rem; }
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .gallery { columns: 1; }
  .footer__cols { grid-template-columns: 1fr; gap: 2rem; }
  .footer__cta { flex-direction: column; align-items: flex-start; }
  .hero__wordmark { font-size: clamp(3rem, 19vw, 5rem); }
  .stat-row { gap: 1.5rem 2.5rem; }
}

/* 18 — REDUCED MOTION / PRINT -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__media img { height: 100%; }
}
