/* Jewell's Photography — Golden Hour system
   Warm, film-inspired, image-forward. Mobile-first. */

:root {
  /* palette — warm ivory base, terracotta + gold accents, deep espresso ink */
  --ivory:      #F6EEE3;
  --sand:       #EDE0CE;
  --clay:       #C97B4A;   /* terracotta */
  --clay-deep:  #974B2C;
  --gold:       #C9A24B;
  --gold-soft:  #D9BE86;
  --espresso:   #2B211B;
  --espresso-2: #4A3A2E;
  --cream-text: #F3E9DB;
  --muted:      #695442;

  /* warm-tinted shadow scale (never gray) */
  --sh-1: 0 1px 2px rgba(64,42,32,.10), 0 2px 6px rgba(64,42,32,.08);
  --sh-2: 0 6px 18px rgba(64,42,32,.14), 0 2px 6px rgba(64,42,32,.10);
  --sh-3: 0 22px 50px rgba(43,33,27,.28), 0 8px 20px rgba(43,33,27,.18);

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* semantic z-index scale */
  --z-base: 1;
  --z-grain: 5;
  --z-header: 100;
  --z-lightbox: 400;
}

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

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

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--espresso);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .95rem 1.9rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background-color .25s ease, color .25s ease, box-shadow .25s ease;
  min-height: 46px;
}
.btn--solid { background: var(--espresso); color: var(--cream-text); box-shadow: var(--sh-1); }
.btn--solid:hover { background: var(--clay-deep); transform: translateY(-3px); box-shadow: var(--sh-2); }
.btn--solid:active { transform: translateY(-1px) scale(.985); }
.btn--ghost { border-color: rgba(43,33,27,.35); color: var(--espresso); background: transparent; }
.btn--ghost:hover { border-color: var(--clay-deep); color: var(--clay-deep); transform: translateY(-3px); }
.btn--ghost:active { transform: translateY(-1px) scale(.985); }
.btn--light { background: var(--cream-text); color: var(--espresso); }
.btn--light:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--sh-2); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
}
/* top scrim so white logo/nav stay legible over bright hero tops */
.site-header::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(28,21,17,.5) 0%, rgba(28,21,17,0) 100%);
  z-index: -1;
  pointer-events: none;
  transition: opacity .35s ease;
}
.site-header.scrolled::before { opacity: 0; }
.site-header.scrolled {
  background: rgba(246,238,227,.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--sh-1);
  padding-block: .7rem;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__logo { height: 46px; width: auto; display: block; transition: height .35s ease; }
.brand__logo--dark { display: none; }
.site-header.scrolled .brand__logo--light { display: none; }
.site-header.scrolled .brand__logo--dark { display: block; }
.footer-logo { height: 96px; width: auto; margin-bottom: .6rem; }
.brand__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .01em; }
.brand__tag { font-family: var(--sans); font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.site-header.on-dark .brand__name { color: var(--cream-text); }
.site-header.on-dark .brand__tag { color: var(--gold-soft); }
.site-header.on-dark.scrolled .brand__name { color: var(--espresso); }
.site-header.on-dark.scrolled .brand__tag { color: var(--muted); }

.nav { display: none; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  position: relative;
  padding-block: .3rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--clay); transition: width .3s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.site-header.on-dark .nav a { color: var(--cream-text); }
.site-header.on-dark.scrolled .nav a { color: var(--espresso); }

.nav__cta { display: none; }
.site-header.on-dark .nav__cta { color: var(--cream-text); border-color: rgba(243,233,219,.5); }
.site-header.on-dark .nav__cta:hover { color: var(--espresso); background: var(--cream-text); border-color: var(--cream-text); }
.site-header.on-dark.scrolled .nav__cta { color: var(--espresso); border-color: rgba(43,33,27,.35); }
.site-header.on-dark.scrolled .nav__cta:hover { color: var(--clay-deep); border-color: var(--clay-deep); background: transparent; }

/* mobile menu button */
.menu-btn {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 46px; background: none; border: none; cursor: pointer; z-index: calc(var(--z-header) + 1);
}
.menu-btn span { display: block; height: 2px; width: 26px; background: var(--espresso); transition: transform .3s ease, opacity .3s ease; margin-left: auto; }
.site-header.on-dark:not(.scrolled) .menu-btn span { background: var(--cream-text); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-header);
  background: var(--espresso); color: var(--cream-text);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.4rem;
  transform: translateY(-100%); transition: transform .45s cubic-bezier(.5,0,.1,1);
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav:not(.open) { visibility: hidden; }
.mobile-nav a { font-family: var(--serif); font-size: 2.2rem; }
.mobile-nav a:hover { color: var(--gold-soft); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--cream-text); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.14) translateY(-1.5%); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,12,9,.55) 0%, rgba(18,12,9,.5) 18%, rgba(18,12,9,.8) 40%, rgba(18,12,9,.92) 72%, rgba(18,12,9,.96) 100%);
}
/* extra left-anchored scrim so text column keeps contrast over busy photos */
.hero__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(18,12,9,.55) 0%, rgba(18,12,9,.28) 55%, transparent 82%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(3rem, 8vh, 6rem); padding-top: 7rem; }
.hero h1 { font-size: clamp(2.7rem, 11vw, 5.6rem); font-weight: 500; letter-spacing: -0.02em; max-width: 12ch; text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.45); }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero__sub { font-family: var(--sans); font-size: clamp(.95rem, 2.6vw, 1.1rem); max-width: 46ch; margin-top: 1.3rem; color: rgba(243,233,219,.95); font-weight: 400; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__scroll { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 1; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(243,233,219,.7); }

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(4rem, 11vh, 8rem); }
.section--sand { background: var(--sand); }
.section--espresso { background: var(--espresso); color: var(--cream-text); }
.section--espresso .eyebrow { color: var(--gold-soft); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 6vw, 3.4rem); margin-top: .7rem; }
.section-head p { color: var(--muted); margin-top: 1rem; max-width: 62ch; }
.section--espresso .section-head p { color: rgba(243,233,219,.75); }

/* ---------- intro split ---------- */
.split { display: grid; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
.split__media { position: relative; }
/* offset frame-behind-image treatment */
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold); z-index: 0; transition: inset .4s ease;
}
.framed img { position: relative; z-index: 1; box-shadow: var(--sh-3); }
.framed:hover::before { inset: 20px -20px -20px 20px; }
.split__body h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
.split__body p { color: var(--muted); margin-top: 1.1rem; max-width: 60ch; }
.section--espresso .split__body p { color: rgba(243,233,219,.78); }
.split__body .btn { margin-top: 1.8rem; }
.sig { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--clay-deep); margin-top: 1.4rem; }
.section--espresso .sig { color: var(--gold-soft); }

/* ---------- services / lanes ---------- */
.lanes { display: grid; gap: 1.2rem; }
.lane {
  position: relative; overflow: hidden; border-radius: 3px; min-height: 62vw;
  display: flex; align-items: flex-end; color: var(--cream-text); box-shadow: var(--sh-2);
}
.lane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); z-index: 0; }
.lane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,33,27,0) 30%, rgba(43,33,27,.82) 100%); z-index: 1; }
.lane__label { position: relative; z-index: 2; padding: 1.6rem; }
.lane__label h3 { font-size: 1.9rem; }
.lane__label span { font-family: var(--sans); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
.lane:hover img { transform: scale(1.07); }

/* ---------- gallery grid (masonry via columns) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter {
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: .6rem 1.2rem; border: 1px solid rgba(43,33,27,.25); background: transparent; color: var(--espresso);
  border-radius: 40px; cursor: pointer; min-height: 44px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.filter:hover { border-color: var(--clay-deep); transform: translateY(-2px); }
.filter[aria-pressed="true"] { background: var(--espresso); color: var(--cream-text); border-color: var(--espresso); }

.masonry { columns: 1; column-gap: 1rem; }
.masonry .tile { break-inside: avoid; margin-bottom: 1rem; position: relative; overflow: hidden; border-radius: 3px; cursor: zoom-in; box-shadow: var(--sh-1); background: var(--sand); }
.masonry .tile img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.3,1), filter .4s ease; }
.masonry .tile::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,33,27,0) 55%, rgba(43,33,27,.45) 100%);
  opacity: 0; transition: opacity .35s ease;
}
.masonry .tile:hover img { transform: scale(1.05); }
.masonry .tile:hover::after { opacity: 1; }
.masonry .tile.is-hidden { display: none; }

/* fade-in for tiles as they load */
.tile { opacity: 0; transform: translateY(14px); }
.tile.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(28,21,17,.94); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(94vw, 1200px); max-height: 86vh; object-fit: contain; box-shadow: var(--sh-3); border-radius: 2px; transform: scale(.96); transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.lightbox.open img { transform: scale(1); }
.lb-btn {
  position: absolute; background: rgba(246,238,227,.12); border: 1px solid rgba(246,238,227,.28); color: var(--cream-text);
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  transition: background-color .25s ease, transform .2s ease;
}
.lb-btn:hover { background: rgba(246,238,227,.24); }
.lb-btn:active { transform: scale(.94); }
.lb-close { top: 1.1rem; right: 1.1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(.94); }

/* ---------- contact / inquiry ---------- */
.inquiry { display: grid; gap: clamp(2rem, 6vw, 4rem); align-items: start; }
.form-field { position: relative; margin-bottom: 1.5rem; }
.form-field label { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .5rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(243,233,219,.28);
  color: var(--cream-text); font-family: var(--sans); font-size: 1rem; padding: .6rem 0; transition: border-color .3s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.form-field select option { color: var(--espresso); }
.form-note { font-size: .82rem; color: rgba(243,233,219,.6); margin-top: .4rem; }
.form-status { margin-top: 1rem; font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: var(--gold-soft); }
.form-status.err { color: #F0A98A; }

/* ---------- footer ---------- */
.site-footer { background: #211812; color: rgba(243,233,219,.8); padding-block: clamp(2.5rem, 6vh, 4rem); }
.footer-grid { display: grid; gap: 2rem; }
.site-footer h4 { font-family: var(--serif); font-size: 1.7rem; color: var(--cream-text); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(243,233,219,.12); font-size: .78rem; color: rgba(243,233,219,.5); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- page hero (about / gallery) ---------- */
.page-hero { position: relative; min-height: 56svh; display: flex; align-items: flex-end; color: var(--cream-text); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,33,27,.35), rgba(43,33,27,.72)); z-index: 1; }
.page-hero__inner { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 6vh, 4rem); padding-top: 8rem; }
.page-hero h1 { font-size: clamp(2.5rem, 9vw, 4.6rem); }
.page-hero p { max-width: 50ch; margin-top: 1rem; color: rgba(243,233,219,.85); }

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  .masonry { columns: 2; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .lane { min-height: 30vw; }
}
@media (min-width: 900px) {
  .nav, .nav__cta { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none; }
  .split { grid-template-columns: 1fr 1fr; }
  .brand__logo { height: 58px; }
  .site-header.scrolled .brand__logo { height: 50px; }
  .lanes { grid-template-columns: repeat(3, 1fr); }
  .lane { min-height: 30vw; }
  .masonry { columns: 3; }
  .inquiry { grid-template-columns: 1fr 1.1fr; }
  .hero__inner { padding-bottom: clamp(4rem, 10vh, 7rem); }
}
@media (min-width: 1200px) {
  .masonry { columns: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__media img { animation: none; }
}
