/* ============================================================
   LpB Photography — minimal editorial
   ============================================================ */

:root {
  --paper: #f6f2ec;
  --paper-deep: #ede7dd;
  --ink: #17130e;
  --ink-soft: #5a544b;
  --rule: #d9d2c4;
  --accent: #8a2b1f; /* deep oxblood, used sparingly */
  --shadow: 0 30px 80px -30px rgba(23, 19, 14, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--accent); }

/* -------- Type utilities -------- */
.mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}
.display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 26px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  color: #faf7f2;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.55) 0%, rgba(10, 8, 6, 0) 100%);
  transition: background .4s var(--ease);
}
.nav--solid {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.nav__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav__brand em { font-style: normal; font-weight: 400; }

.nav__links {
  display: flex;
  gap: 38px;
  list-style: none;
}
.nav__links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .4s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }

.nav__toggle {
  display: none;
  background: none; border: none; color: inherit;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #0a0906;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  animation: kenburns 14s ease-in-out infinite alternate;
}
.hero__slide--active { opacity: 1; z-index: 2; }

@keyframes kenburns {
  0%   { transform: scale(1.00) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 80px;
  color: #faf7f2;
  pointer-events: none;
}
.hero__content > * { pointer-events: auto; }

.hero__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.4s forwards;
}
.hero__title {
  font-size: clamp(56px, 11vw, 170px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.9;
  max-width: 14ch;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 0.7s forwards;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
}

.hero__meta {
  position: absolute;
  bottom: 40px; right: 48px;
  display: flex;
  gap: 24px;
  align-items: center;
  z-index: 5;
  color: #faf7f2;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.2s forwards;
}
.hero__counter { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; }
.hero__nav {
  display: flex; gap: 10px;
}
.hero__dot {
  width: 28px; height: 1px;
  background: rgba(250, 247, 242, 0.3);
  border: none;
  cursor: pointer;
  padding: 6px 0;
  background-clip: content-box;
  transition: background .4s var(--ease);
}
.hero__dot[aria-current="true"] { background-color: #faf7f2; background-clip: content-box; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 44px; left: 48px;
  z-index: 5;
  color: #faf7f2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.5s forwards;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 48px; height: 1px;
  background: currentColor;
  animation: line-h 2s ease-in-out infinite;
  transform-origin: left center;
}
@keyframes line-h {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50%      { transform: scaleX(0.4); opacity: 0.4; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 140px 48px;
  max-width: 1440px;
  margin: 0 auto;
}
.section--tight { padding: 90px 48px; }

.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}
.section__num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--ink-soft); }
.section__title {
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.section__title em { font-style: italic; font-weight: 300; }
.section__lede {
  max-width: 44ch;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-family: 'Cormorant Garamond', serif;
}

/* ============================================================
   FEATURED STRIP (home page after hero)
   ============================================================ */
.featured {
  padding: 120px 48px 120px;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}
.featured__intro {
  grid-column: 1 / 6;
  position: sticky;
  top: 120px;
}
.featured__eyebrow { margin-bottom: 28px; color: var(--ink-soft); }
.featured__title {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 28px;
}
.featured__title em { font-style: italic; }
.featured__body {
  color: var(--ink-soft);
  max-width: 40ch;
  font-size: 19px;
  margin-bottom: 40px;
}
.featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
}
.featured__cta:hover { border-color: var(--accent); }
.featured__cta span { transition: transform .4s var(--ease); }
.featured__cta:hover span { transform: translateX(6px); }

.featured__grid {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.featured__item {
  overflow: hidden;
  position: relative;
}
.featured__item--tall { aspect-ratio: 3/4; }
.featured__item--wide { aspect-ratio: 4/5; grid-column: 1 / -1; }
.featured__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
  filter: grayscale(0%);
}
.featured__item:hover img { transform: scale(1.04); }
.featured__caption {
  position: absolute;
  bottom: 16px; left: 16px;
  color: #faf7f2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.filter-bar__btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.filter-bar__btn:hover { border-color: var(--ink); }
.filter-bar__btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gallery {
  columns: 3;
  column-gap: 24px;
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  opacity: 0;
  animation: riseIn .9s var(--ease) forwards;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gallery__item img {
  width: 100%;
  display: block;
  transition: transform 1.5s var(--ease), filter .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item::after {
  content: attr(data-caption);
  position: absolute;
  left: 16px; bottom: 16px; right: 16px;
  color: #faf7f2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.gallery__item:hover::after { opacity: 1; transform: translateY(0); }
.gallery__item.is-hidden { display: none; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
  animation: fadeIn .4s var(--ease);
}
.lightbox.is-open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: var(--shadow);
}
.lightbox__caption {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: #faf7f2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: none; border: none;
  color: #faf7f2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px;
  transition: opacity .3s var(--ease);
  opacity: 0.6;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { opacity: 1; }
.lightbox__close { top: 24px; right: 32px; }
.lightbox__prev  { left: 32px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 32px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.about__portrait {
  position: sticky;
  top: 120px;
}
.about__portrait img { width: 100%; }
.about__portrait .mono { margin-top: 14px; color: var(--ink-soft); display: block; }

.about__body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  margin: 50px 0 16px;
  letter-spacing: -0.01em;
}
.about__body h3:first-child { margin-top: 0; }
.about__body p {
  font-size: 19px;
  line-height: 1.65;
  margin-bottom: 20px;
  color: var(--ink);
  max-width: 60ch;
}
.about__body p:first-of-type::first-letter {
  font-size: 72px;
  line-height: 0.85;
  float: left;
  margin: 6px 10px 0 0;
  font-weight: 400;
  color: var(--accent);
}

.details {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.details dt { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.details dd { font-family: 'Cormorant Garamond', serif; font-size: 18px; margin-bottom: 20px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
}
.contact__info p { margin-bottom: 24px; max-width: 38ch; color: var(--ink-soft); }
.contact__channels { margin-top: 40px; }
.contact__channel {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.contact__channel:first-of-type { border-top: 1px solid var(--rule); }
.contact__channel dt { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); align-self: center; }
.contact__channel dd { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; }

form { display: grid; gap: 24px; }
.field { position: relative; }
.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--ink);
  outline: none;
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.btn {
  justify-self: start;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 18px 34px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--accent); }

.form-notice {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--rule);
  padding: 60px 48px 40px;
  max-width: 1440px;
  margin: 100px auto 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer__brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 24px;
}
.footer h4 { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; font-weight: 400; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 17px; }
.footer__copy {
  grid-column: 1 / -1;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--rule);
  }
  .nav__toggle { display: block; }

  .hero__content { padding: 0 24px 90px; }
  .hero__meta { right: 24px; bottom: 60px; }
  .hero__scroll { display: none; }

  .section { padding: 90px 24px; }
  .section__head { grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
  .featured { padding: 80px 24px; grid-template-columns: 1fr; gap: 40px; }
  .featured__intro { position: static; grid-column: 1; }
  .featured__grid { grid-column: 1; }

  .gallery { columns: 2; column-gap: 12px; }
  .gallery__item { margin-bottom: 12px; }

  .about, .contact { grid-template-columns: 1fr; gap: 50px; }
  .about__portrait { position: static; }
  .field-row { grid-template-columns: 1fr; gap: 24px; }

  .footer { grid-template-columns: 1fr 1fr; padding: 60px 24px 30px; }
  .footer__copy { flex-direction: column; gap: 12px; }

  .lightbox { padding: 20px; }
  .lightbox__prev { left: 12px; }
  .lightbox__next { right: 12px; }
}

@media (max-width: 560px) {
  .gallery { columns: 1; }
  .footer { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
}
