/* ============================================================
   JDH Portraits — Components
   ============================================================ */

/* ---- Buttons ---- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 0.9rem 1.6rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid currentColor;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .25s var(--ease-out);
  white-space: nowrap;
}
.btn svg{ width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.btn:hover svg{ transform: translateX(3px); }
.btn:active{ transform: scale(.97); }

.btn--solid{ background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover{ background: var(--rust); border-color: var(--rust); color: var(--paper); }

.btn--ghost{ background: transparent; color: var(--ink); border-color: rgba(34,31,29,.3); }
.btn--ghost:hover{ background: var(--rust); border-color: var(--rust); color: var(--paper); }

.btn--on-dark{ color: var(--paper); border-color: var(--paper); }
.btn--on-dark:hover{ background: var(--rust); border-color: var(--rust); }

.btn--rust{ background: var(--rust); color: var(--paper); border-color: var(--rust); }
.btn--rust:hover{ background: var(--ink); border-color: var(--ink); }

.btn--paper{ background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover{ background: var(--rust); border-color: var(--rust); color: var(--paper); }

/* ---- Image frame (works with or without a real photo) ---- */
.frame{
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(155deg, var(--paper-deep), var(--taupe) 180%);
  border-radius: var(--radius);
}
.frame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .6s var(--ease-out);
}
.frame::after{
  content: attr(data-caption);
  display: none;
  position: absolute;
  inset: 0;
  align-items: flex-end;
  padding: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--step--1);
  color: var(--ink-70);
}
.frame.frame--empty::after{ display: flex; }
.frame.frame--empty img{ display: none; }

.frame--portrait{ aspect-ratio: 4 / 5; }
.frame--tall{ aspect-ratio: 3 / 4; }
.frame--square{ aspect-ratio: 1 / 1; }
.frame--wide{ aspect-ratio: 5 / 4; }
.frame--hero{ aspect-ratio: 3 / 4; }
@media (min-width: 640px){ .frame--hero{ aspect-ratio: 4 / 5; } }

/* Masonry items: no forced ratio — the image sets its own height */
.frame--natural{ aspect-ratio: auto; }
.frame--natural img{ position: static; width: 100%; height: auto; object-fit: initial; }

/* focus-pull hover, tied to the photographic act of pulling focus */
.frame.is-interactive img{ filter: saturate(.94) contrast(1.01); }
.frame.is-interactive:hover img,
.frame.is-interactive:focus-within img{
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.03);
}

/* Gallery hover overlay — title rises over a gradient scrim on hover/focus */
.gallery-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-3);
  background: linear-gradient(0deg, rgba(34,31,29,.82) 0%, rgba(34,31,29,.15) 55%, transparent 100%);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.frame.is-interactive:hover .gallery-overlay,
.frame.is-interactive:focus-visible .gallery-overlay{ opacity: 1; }
.gallery-overlay__title{
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--paper);
  transform: translateY(10px);
  transition: transform .35s var(--ease-out);
}
.frame.is-interactive:hover .gallery-overlay__title,
.frame.is-interactive:focus-visible .gallery-overlay__title{ transform: translateY(0); }
@media (hover: none){
  /* Touch devices: keep the title readable without a hover state */
  .gallery-overlay{ opacity: 1; background: linear-gradient(0deg, rgba(34,31,29,.75) 0%, transparent 65%); }
  .gallery-overlay__title{ transform: translateY(0); font-size: var(--step-0); }
}

/* ---- Hero ---- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.hero__media{ position: absolute; inset: 0; }
.hero__media .frame{ position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.hero__media::before{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,31,29,.15) 0%, rgba(34,31,29,.15) 45%, rgba(34,31,29,.92) 100%);
  z-index: 1;
}
.hero__content{
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--sp-6) var(--sp-5);
}
.hero__eyebrow{ color: var(--paper-70); }
.hero__eyebrow::before{ background: var(--rust); }
.hero h1{
  font-size: var(--step-5);
  color: var(--paper);
  margin-block: var(--sp-2) var(--sp-3);
  max-width: 14ch;
}
.hero__sub{
  max-width: 46ch;
  color: var(--paper-70);
  font-size: var(--step-1);
  margin-bottom: var(--sp-4);
}
.hero__actions{ display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.hero__scroll,
.hero__top{
  position: fixed;
  right: var(--gutter);
  bottom: var(--sp-4);
  z-index: 90;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 1px solid rgba(34,31,29,.12);
  background: var(--paper-70);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: var(--ink);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease), visibility .35s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease-out);
}
.hero__scroll.is-visible,
.hero__top.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero__scroll:hover,
.hero__scroll:focus-visible,
.hero__top:hover,
.hero__top:focus-visible{ color: var(--rust); border-color: var(--rust); }
.hero__scroll:active,
.hero__top:active{ transform: scale(.92); }
@media (min-width: 860px){
  .hero__scroll{ display: inline-flex; }
  .hero__top{ display: inline-flex; }
}
.hero__scroll .aperture-spin{ width: 26px; height: 26px; }
.hero__top svg{ width: 20px; height: 20px; }

/* ---- Aperture / iris signature mark ---- */
.aperture-spin{ animation: spin-slow 6s linear infinite; }
@keyframes spin-slow{ to{ transform: rotate(360deg); } }

.iris-transition{
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  background: var(--ink);
  clip-path: circle(0% at 50% 50%);
}

/* ---- Section heading ---- */
.section-head{ max-width: 62ch; margin-bottom: var(--sp-4); }
.section-head h2{ font-size: var(--step-3); margin-top: var(--sp-1); }
.section-head p{ color: var(--taupe); margin-top: var(--sp-2); font-size: var(--step-1); }
.section-head--center{ margin-inline: auto; text-align: center; }

/* ---- Statement / pull quote ---- */
.statement{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.3;
  max-width: 24ch;
}
.statement em{ color: var(--rust); font-style: normal; }

.pull-quote{
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.4;
  max-width: 34ch;
}
.pull-quote cite{
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--taupe-on-dark);
}

/* ---- Testimonial photo band: a full-bleed shot with a model's quote
   over it, like a review ---- */
.testimonial-photo{
  position: relative;
  min-height: 40svh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
  text-align: center;
}
.testimonial-photo__media{ position: absolute; inset: 0; }
.testimonial-photo__media img{ width: 100%; height: 100%; object-fit: cover; }
.testimonial-photo__media::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,31,29,.55) 0%, rgba(34,31,29,.35) 40%, rgba(34,31,29,.75) 100%);
}
.testimonial-photo__content{
  position: relative;
  z-index: 1;
  padding-block: var(--sp-4);
}
.testimonial-photo .pull-quote{ margin-inline: auto; }

/* ---- Cards ---- */
.card{
  background: var(--paper);
  border: 1px solid rgba(34,31,29,.1);
  border-radius: var(--radius);
  padding: var(--sp-3);
}
.service-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-4);
  border: 1px solid rgba(34,31,29,.12);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.service-card:hover{ border-color: var(--rust); }
.service-card__media{
  margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) var(--sp-3);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.service-card__media img{ display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.service-card:hover .service-card__media img{ transform: scale(1.06); }
.service-card__index{
  font-family: var(--font-display);
  color: var(--taupe);
  font-size: var(--step-1);
}
.service-card h3{ font-size: var(--step-2); margin-block: var(--sp-1) var(--sp-1); }
.service-card__price{
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--rust);
  margin-bottom: var(--sp-2);
}
.service-card ul{ display: flex; flex-direction: column; gap: .5rem; margin-block: var(--sp-2) var(--sp-3); color: var(--ink-70); }
.service-card ul li{ padding-left: 1.3em; position: relative; font-size: var(--step--1); }
.service-card ul li::before{
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rust);
}
.service-card__cta{ margin-top: auto; }
.service-card--featured{ background: var(--rust); color: var(--paper); border-color: var(--rust); }
.service-card--featured .service-card__index,
.service-card--featured ul{ color: var(--paper-70); }
.service-card--featured .service-card__price{ color: var(--paper); }
.service-card--featured ul li::before{ background: var(--paper); }
/* Card is rust now, so its button can't hover to rust too — it'd vanish */
.service-card--featured .btn:hover{ background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---- Filter tabs (portfolio) ---- */
.filters{
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-4);
}
.filters button{
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-block: .3rem;
  color: var(--taupe);
  position: relative;
}
.filters button::after{
  content:'';
  position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--rust);
  transition: right .3s var(--ease-out);
}
.filters button.is-active{ color: var(--ink); }
.filters button.is-active::after{ right: 0; }
.filters button:hover{ color: var(--ink); }

/* ---- Lightbox ---- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(34,31,29,.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  overflow: hidden;
}
.lightbox.is-open{ display: flex; }

.lightbox__stage{
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}
.lightbox__main{
  max-width: min(78vw, 860px);
  max-height: 84svh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
  flex-shrink: 0;
  margin-inline: auto;
  transition: opacity .2s var(--ease), transform .22s var(--ease-out);
}

/* Teaser panels: each fills all remaining space on its side (right up to
   the screen edge, under the arrow buttons) with a cropped, dimmed view of
   the neighbouring photo in the same session — no gap of bare backdrop
   between the main photo and the edge. Hidden below 900px, where there
   isn't room for it to read as intentional rather than cramped. */
.lightbox__teaser{
  display: none;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  opacity: .35;
  cursor: pointer;
  transition: opacity .25s var(--ease);
}
.lightbox__teaser:hover{ opacity: .7; }
.lightbox__teaser img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.lightbox__teaser--prev img{ object-position: right center; }
.lightbox__teaser--next img{ object-position: left center; }
@media (min-width: 900px){
  .lightbox__teaser.has-image{ display: block; }
}

.lightbox__close, .lightbox__prev, .lightbox__next{
  position: absolute;
  z-index: 1;
  color: var(--paper);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(244,237,228,.3);
  border-radius: 50%;
  background: rgba(34,31,29,.4);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover{ background: var(--rust); border-color: var(--rust); }
.lightbox__close{ top: var(--sp-3); right: var(--gutter); }
.lightbox__prev{ left: var(--sp-3); top: 50%; translate: 0 -50%; }
.lightbox__next{ right: var(--sp-3); top: 50%; translate: 0 -50%; }
.lightbox__caption{
  position: absolute; bottom: var(--sp-3); left: 0; right: 0;
  text-align: center; color: var(--paper-70); font-size: var(--step--1);
  letter-spacing: .06em; text-transform: uppercase;
}

/* ---- Forms ---- */
.field{ margin-bottom: var(--sp-3); }
.field label{
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: .5rem;
}
.field input, .field select, .field textarea{
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(34,31,29,.25);
  padding-block: .7rem;
  font-size: var(--step-0);
  transition: border-color .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--rust);
  outline: none;
}
.field textarea{ resize: vertical; min-height: 8rem; }
.field-row{ display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 640px){ .field-row{ grid-template-columns: 1fr 1fr; } }
.form-note{ font-size: var(--step--1); color: var(--taupe); margin-top: var(--sp-2); }
.form-success{
  display: none;
  padding: var(--sp-3);
  border: 1px solid var(--rust);
  border-radius: var(--radius);
  color: var(--ink);
  margin-top: var(--sp-3);
}
.form-success.is-visible{ display: block; }

/* ---- Marquee (subtle, single orchestrated moment on home) ---- */
.marquee{
  overflow: hidden;
  border-block: 1px solid rgba(34,31,29,.12);
  padding-block: var(--sp-3);
}
.marquee__track{
  display: flex;
  width: max-content;
  gap: var(--sp-5);
  animation: marquee 34s linear infinite;
}
@media (prefers-reduced-motion: reduce){ .marquee__track{ animation: none; } }
@keyframes marquee{ to{ transform: translateX(-50%); } }
.marquee span{
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--taupe);
  white-space: nowrap;
}

/* ---- Cookie consent banner ---- */
.cookie-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: var(--ink);
  color: var(--paper-deep);
  padding: var(--sp-4) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(34,31,29,.18);
  transform: translateY(100%);
  transition: transform .5s var(--ease-out);
}
.cookie-banner.is-visible{ transform: translateY(0); }
.cookie-banner__text{
  max-width: 56ch;
  font-size: var(--step--1);
}
.cookie-banner__text a{ color: var(--rust); }
.cookie-banner__actions{
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-banner__actions .btn{ padding: 0.7rem 1.3rem; }
@media (max-width: 640px){
  .cookie-banner{ flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__actions{ justify-content: center; }
}

/* ---- Reveal ----
   Visible by default (progressive enhancement). js/main.js's IntersectionObserver
   opts elements into the hidden start-state via animations.css (.js [data-reveal]),
   so content never depends on JS succeeding to be readable. */
