/* Studio-Classic Photography — archive site */
:root {
  --bg: #0f0e0d;
  --bg-2: #1a1816;
  --line: #2a2724;
  --line-2: #3a3632;
  --text: #e8e4dc;
  --text-strong: #f7f3ec;
  --muted: #a8a196;
  --muted-2: #8f897f;
  --accent: #c9a96e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: #e8dcc4; text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { margin: 0 0 12px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.display, .display-xl, h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--text-strong); }
.display { margin: 0; font-size: clamp(44px, 6vw, 64px); line-height: 1; }
.display-xl { margin: 0; font-size: clamp(52px, 9vw, 96px); line-height: .95; }
.muted { color: var(--muted); }
.muted-light { color: #c9c3b8; margin: 20px 0 0; }
.lead { font-size: 17px; line-height: 1.7; color: #c9c3b8; max-width: 62ch; }

/* Header */
.site-header { position: relative; z-index: 20; }
.site-header.overlay { position: absolute; inset: 0 0 auto 0; background: linear-gradient(to bottom, rgba(15,14,13,.78) 0%, rgba(15,14,13,.45) 55%, rgba(15,14,13,0) 100%); padding-bottom: 48px; }
/* bright skies: keep header text legible over clouds */
.site-header.overlay .brand, .site-header.overlay .site-nav a { text-shadow: 0 1px 2px rgba(0,0,0,.65), 0 0 18px rgba(0,0,0,.45); }
.site-header.overlay .site-nav a { color: #f4efe6; }
.site-header.overlay .site-nav a:hover { color: #fff; }
.header-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-block: 24px; }
.brand { font-family: var(--serif); font-size: 28px; letter-spacing: .04em; color: #f4efe6; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.site-nav a { padding: 12px 0; }
.site-nav a[aria-current="page"], .site-header.overlay .site-nav a[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 22px; background: rgba(15,14,13,.4); cursor: pointer; place-items: center; }
@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .brand { font-size: clamp(20px, 6vw, 28px); }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 8px; }
  .site-nav.open { display: flex; }
  .site-header.overlay .site-nav.open { background: rgba(15,14,13,.92); padding-inline: 12px; border-radius: var(--radius); }
}

/* Home hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 55%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,14,13,.92) 0%, rgba(15,14,13,.55) 30%, rgba(15,14,13,0) 60%); }
.hero-copy h1, .hero-copy .eyebrow { text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero-copy { position: relative; z-index: 1; padding-bottom: clamp(40px, 8vw, 72px); width: 100%; }
.hero-copy h1 { margin: 0; font-size: clamp(44px, 7vw, 80px); line-height: 1.02; max-width: 16ch; }

.section { padding-block: clamp(64px, 10vw, 112px); }
.page-top { padding-block: 32px 112px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-size: 44px; }
.section-head p { margin: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 24px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.card-media.portrait { aspect-ratio: 4 / 5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.card-title { font-family: var(--serif); font-size: 25px; color: #f4efe6; }
.badge { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 2px; background: rgba(15,14,13,.75); font-size: 12px; letter-spacing: .06em; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 22px; border: 1px solid var(--line-2); background: none; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.about { max-width: 880px; }

/* Shoot slideshow */
.slideshow { position: relative; height: min(92vh, 860px); min-height: 520px; overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.slide-fill { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(28px) brightness(.45); }
.slide picture img { position: absolute; inset: 0; margin: auto; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.slide.is-active picture img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.slideshow-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,14,13,.95) 0%, rgba(15,14,13,.1) 45%, rgba(15,14,13,.55) 100%); pointer-events: none; }
.slideshow-copy { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 56px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.slide-controls { display: flex; align-items: center; gap: 14px; }
.counter { font-variant-numeric: tabular-nums; font-size: 14px; color: #c9c3b8; }
.round { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(244,239,230,.35); background: rgba(15,14,13,.35); color: #f4efe6; cursor: pointer; }
.round.accent { width: 56px; height: 56px; flex-basis: 56px; border: 0; background: var(--accent); color: var(--bg); }
.round .i-play { display: none; }
.paused .round .i-play { display: block; }
.paused .round .i-pause { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(244,239,230,.12); }
.progress div { height: 3px; width: 0; background: var(--accent); transition: width .6s ease; }

/* Chapters + mosaic */
.chapters { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-block: 48px 24px; border-bottom: 1px solid var(--line); }
.chapter { min-height: 48px; padding: 0 0 6px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-family: var(--serif); font-size: 24px; cursor: pointer; }
.chapter span { font: 12px var(--sans); color: var(--muted-2); margin-left: 6px; font-variant-numeric: tabular-nums; }
.chapter[aria-pressed="true"] { color: var(--text-strong); border-bottom-color: var(--accent); }
.mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 320px; grid-auto-flow: dense; gap: 14px; padding-block: 40px 96px; }
.tile { overflow: hidden; border-radius: var(--radius); background: var(--bg-2); cursor: zoom-in; }
.tile.wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.tile:hover img { transform: scale(1.04); filter: brightness(1.08); }
@media (max-width: 560px) { .mosaic { grid-auto-rows: 240px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 40px 96px; border-top: 1px solid var(--line); }
.pager a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.pager .eyebrow { margin: 0; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 20px 20px 14px; border: 0; background: rgba(8,7,6,.97); color: var(--text); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(8,7,6,.9); }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.lb-top .eyebrow { margin: 0; }
.lb-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; touch-action: pan-y; }
.lb-stage img { max-width: calc(100% - 140px); max-height: 100%; object-fit: contain; border-radius: 2px; }
@media (max-width: 640px) { .lb-stage .round { display: none; } .lb-stage img { max-width: 100%; } }
.lb-strip { display: flex; gap: 8px; padding-top: 14px; overflow-x: auto; scrollbar-width: thin; }
.lb-strip button { flex: 0 0 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 2px; overflow: hidden; background: none; opacity: .5; cursor: pointer; }
.lb-strip button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }

/* Contact */
.contact { max-width: 760px; }
.form { display: grid; gap: 20px; margin-top: 32px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); color: var(--text-strong); font: 16px/1.5 var(--sans); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 160px; }
.field-error { color: #f0a58a; font-size: 14px; }
.input-validation-error { border-color: #f0a58a !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pill.send { justify-self: start; background: var(--accent); border-color: var(--accent); color: var(--bg); padding: 0 28px; }
.notice { margin-top: 32px; padding: 18px 20px; border: 1px solid var(--line-2); border-left: 0; border-radius: var(--radius); background: var(--bg-2); }
.notice p { margin: 0; }
.notice.error { border-color: #7a3b2c; }

.site-footer { border-top: 1px solid var(--line); padding-block: 32px; text-align: center; font-size: 13px; color: var(--muted-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
