/*
 * Santa Bevacqua — public site (same look as adrenalinphotographic.com).
 * White, quiet, editorial: a grotesque sans in small capitals for navigation and names,
 * Garamond italic for captions and running text. The pictures do the talking.
 */
:root {
  --bg: #fff;
  --fg: #111;
  --muted: #8c8c8c;
  --soft: #555;
  --line: #e8e8e8;
  --tint: #f4f4f3;
  --serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --pad: clamp(16px, 3vw, 44px);
  --row: 360px;
  --gap: 12px;
  --header-h: 84px;
  color-scheme: light;
}
@media (max-width: 1100px) { :root { --row: 280px; } }
@media (max-width: 700px)  { :root { --row: 170px; --gap: 6px; --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 14px/1.55 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* small capitals used across the site */
.site-nav a, .crumbs, .tabs a, .tile-title, .sub-title, .foot-legal, .download-btn, .admin-pill, .roster-role, .lb-count, .hidden-note {
  font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad); background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.logo { display: inline-flex; flex-direction: column; line-height: 1; margin: 0; font-weight: 300; position: relative; z-index: 31; }
.logo a { display: inline-flex; flex-direction: column; }
.logo-main { font: 300 27px/0.9 var(--sans); letter-spacing: -.035em; }
.logo-sub { font: 300 12.5px/1 var(--sans); letter-spacing: .01em; color: var(--muted); margin-top: 3px; padding-left: 1px; }
.site-nav ul { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.site-nav a { color: var(--soft); padding: 6px 0; position: relative; transition: color .2s; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--fg); }
.site-nav a[aria-current]::after { content: ''; position: absolute; left: 0; right: .12em; bottom: 1px; height: 1px; background: currentColor; }
.menu-foot { display: none; }
.menu-toggle { display: none; width: 30px; height: 30px; position: relative; z-index: 31; }
.menu-toggle span { position: absolute; left: 4px; right: 4px; height: 1px; background: var(--fg); transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: 11px; } .menu-toggle span:last-child { top: 18px; }
.menu-open .menu-toggle span:first-child { top: 15px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 15px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .logo-main { font-size: 23px; } .logo-sub { font-size: 11px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 30; background: #fff; display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--header-h) + 24px) var(--pad) calc(28px + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; overflow-y: auto;
  }
  .site-nav ul { flex-direction: column; gap: 6px; }
  .site-nav a { font: 300 clamp(28px, 8vw, 40px)/1.15 var(--sans); letter-spacing: -.02em; text-transform: none; color: var(--fg); }
  .site-nav a[aria-current] { color: var(--muted); }
  .site-nav a[aria-current]::after { display: none; }
  .menu-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
  .menu-foot a { font: italic 400 18px/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--soft); }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}

.admin-pill {
  position: fixed; right: 14px; bottom: 14px; z-index: 40; padding: 8px 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--soft);
}
.admin-pill:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- breadcrumb, titles, tabs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 10px; color: #c4c4c4; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }

.page { padding: clamp(14px, 2vw, 26px) var(--pad) clamp(64px, 8vw, 120px); }
.page-title, .artist-name {
  font: 300 clamp(38px, 6.2vw, 92px)/.98 var(--sans); letter-spacing: -.035em; margin: clamp(28px, 4.5vw, 64px) 0 clamp(26px, 3.5vw, 48px);
}
.artist-head { margin: clamp(28px, 4.5vw, 64px) 0 clamp(18px, 2.4vw, 30px); }
.artist-name { margin: 0; }
.artist-role { margin: 10px 0 0; font: italic 400 clamp(19px, 1.7vw, 24px)/1.2 var(--serif); color: var(--soft); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px clamp(18px, 2.4vw, 34px); padding: 14px 0; margin: 0 0 clamp(22px, 3vw, 40px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs a { color: var(--muted); transition: color .2s; position: relative; }
.tabs a:hover, .tabs a[aria-current] { color: var(--fg); }
.tabs a[aria-current]::after { content: ''; position: absolute; left: 0; right: .12em; bottom: -15px; height: 1px; background: var(--fg); }
.hidden-note { display: inline-block; color: #9a6a00; border: 1px solid #e9d39b; background: #fffaf0; padding: 6px 10px; margin: 0 0 24px; }
.sub-title { color: var(--muted); font-weight: 400; margin: 0 0 18px; }
.empty { color: var(--muted); font: italic 400 19px/1.4 var(--serif); }
.empty a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- homepage feed ---------- */
.feed { padding: clamp(8px, 1.6vw, 20px) var(--pad) clamp(70px, 9vw, 140px); display: flex; flex-direction: column; gap: clamp(56px, 9vw, 150px); }
.feed--empty { min-height: 50vh; justify-content: center; font: italic 400 24px/1.3 var(--serif); color: var(--soft); }
.feed-row { display: flex; gap: clamp(16px, 4vw, 64px); align-items: flex-start; }
.feed-tile { display: block; flex: 1 1 0; min-width: 0; }
.feed-row--wide .feed-tile { flex: 1 1 auto; }
.feed-row--wide .tile-media img { max-height: 88vh; width: 100%; object-fit: cover; aspect-ratio: var(--r); }
.feed-row--pair .feed-tile:first-child { flex-basis: 0; margin-right: 4%; }
.feed-row--pair .feed-tile:last-child { margin-top: clamp(60px, 14vw, 240px); }
.feed-row--single .feed-tile { flex: 0 0 auto; width: min(52%, 820px); }
.feed-row--single.is-left { padding-left: 8%; }
.feed-row--single.is-right { justify-content: flex-end; padding-right: 8%; }
.tile-media { display: block; overflow: hidden; background: var(--tint); }
.tile-media img { width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.2,.6,.2,1), opacity .8s; }
.feed-tile:hover .tile-media img { transform: scale(1.018); }
.tile-cap { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; }
.tile-title { color: var(--fg); }
.tile-caption { font: italic 400 18px/1.25 var(--serif); color: var(--soft); }
.feed-tile:hover .tile-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.6,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 700px) {
  .feed { gap: 56px; }
  .feed-row--pair { gap: 10px; }
  .feed-row--pair .feed-tile:first-child { margin-right: 0; }
  .feed-row--pair .feed-tile:last-child { margin-top: 64px; }
  .feed-row--single .feed-tile { width: 78%; }
  .feed-row--single.is-left, .feed-row--single.is-right { padding: 0; }
  .tile-caption { font-size: 16px; }
}

/* ---------- photo grid: each picture grows with its proportions ---------- */
.grid { display: flex; flex-wrap: wrap; gap: var(--gap); }
.grid::after { content: ''; flex-grow: 999999; }
.tile {
  flex: var(--r) 1 calc(var(--r) * var(--row)); aspect-ratio: var(--r); max-height: calc(var(--row) * 1.6);
  position: relative; overflow: hidden; background: var(--tint); cursor: zoom-in;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1s ease; }
.tile img.is-pending { opacity: 0; }
@media (hover: hover) { .tile:hover img { transform: scale(1.02); } }

/* ---------- films ---------- */
.video-grid { display: flex; flex-wrap: wrap; gap: clamp(30px, 3.4vw, 52px) clamp(14px, 2vw, 28px); align-items: flex-start; }
.video { text-align: left; display: block; flex: 1 1 calc(33.333% - 28px); min-width: min(100%, 340px); max-width: 100%; }
.video.is-portrait { flex: 0 1 calc(20% - 28px); min-width: min(46%, 200px); }
.video-frame { display: block; position: relative; aspect-ratio: var(--r, 16 / 9); max-height: 72vh; overflow: hidden; background: #e9e9e7; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.video:hover .video-frame img { transform: scale(1.025); }
.play {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%;
  background: rgba(255,255,255,.88); transition: transform .3s, background .3s; box-shadow: 0 1px 10px rgba(0,0,0,.08);
}
.play::after { content: ''; position: absolute; left: 25px; top: 20px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--fg); }
.video:hover .play { transform: scale(1.07); background: #fff; }
.video-title { display: block; margin-top: 12px; font: italic 400 18px/1.25 var(--serif); color: var(--soft); transition: color .2s; }
.video:hover .video-title { color: var(--fg); }
.after-videos { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 700px) {
  .video { flex-basis: 100%; }
  .video.is-portrait { flex-basis: calc(50% - 8px); min-width: 0; }
}

/* ---------- text ---------- */
.prose { font: 400 clamp(19px, 1.5vw, 22px)/1.5 var(--serif); color: #222; max-width: 40em; }
.prose p { margin: 0 0 1em; }
.prose h2 { font: 300 clamp(24px, 2vw, 30px)/1.2 var(--sans); letter-spacing: -.02em; margin: 1.6em 0 .6em; }
.prose a, .contact a { border-bottom: 1px solid #c9c9c9; transition: border-color .2s; }
.prose a:hover, .contact a:hover { border-color: var(--fg); }
.prose img { margin: 1em 0; max-width: 220px; }
.bio { max-width: 42em; }
.text-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr); gap: clamp(30px, 6vw, 110px); align-items: start; }
.text-cols > :only-child { grid-column: 1 / -1; }
.contact { display: grid; gap: 30px; }
.contact h2 { margin: 0 0 8px; font: 400 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact p { margin: 0 0 4px; font: 400 19px/1.4 var(--serif); }
@media (max-width: 760px) { .text-cols { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; align-items: start;
  padding: 44px var(--pad) calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--soft);
}
.site-footer .logo-main { font-size: 22px; color: var(--fg); }
.site-footer .logo-sub { font-size: 11px; text-transform: none; letter-spacing: .01em; }
.foot-col { font-size: 13px; line-height: 1.5; }
.foot-col p { margin: 0 0 4px; }
.foot-col a:hover { color: var(--fg); }
.foot-tagline { margin-top: 14px !important; font: italic 400 16px/1.3 var(--serif); text-transform: none; letter-spacing: 0; }
.foot-legal { text-align: right; }
@media (max-width: 860px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
  .foot-legal { text-align: left; }
}
@media (max-width: 520px) { .site-footer { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; touch-action: pan-y pinch-zoom;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb-stage { position: absolute; inset: 70px 84px; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s; user-select: none; -webkit-user-drag: none; }
.lb-stage img.is-loaded { opacity: 1; }
.lb-video { border: 0; background: #000; max-width: 100%; max-height: 100%; }
.lb-btn { position: absolute; z-index: 2; color: #555; transition: color .2s; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { color: var(--fg); }
.lb-close { top: 16px; right: 16px; width: 44px; height: 44px; }
.lb-close::before, .lb-close::after { content: ''; position: absolute; width: 24px; height: 1px; background: currentColor; transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-prev, .lb-next { top: 50%; width: 60px; height: 96px; margin-top: -48px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-prev::before, .lb-next::before { content: ''; width: 16px; height: 16px; border: solid currentColor; border-width: 0 0 1px 1px; transform: rotate(45deg); margin-left: 8px; }
.lb-next::before { transform: rotate(-135deg); margin: 0 8px 0 0; }
.lb-count { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb.is-video { background: #0b0b0b; }
.lb.is-video .lb-btn { color: #bbb; }
.lb.is-video .lb-btn:hover { color: #fff; }
.lb.is-video .lb-prev, .lb.is-video .lb-next, .lb.is-video .lb-count { display: none; }
@media (max-width: 700px) {
  .lb-stage { inset: 60px 0 52px; }
  .lb-prev, .lb-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- private selections ---------- */
.download-btn { white-space: nowrap; border: 1px solid var(--fg); padding: 11px 18px; transition: background .2s, color .2s; }
.download-btn:hover { background: var(--fg); color: #fff; }
.selection-note { margin: -12px 0 40px; }
.subgallery { margin-top: clamp(48px, 6vw, 90px); }
.tabs--anchors + .subgallery, .subgallery:first-child { margin-top: 0; }

/* ---------- credits ---------- */
.page--credits { max-width: 1200px; }
.credit-group { margin-top: clamp(40px, 5vw, 64px); }
.credit-list { border-top: 1px solid var(--line); }
.credit { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.credit-year { font-size: 11px; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.credit-title { font: 300 21px/1.25 var(--sans); letter-spacing: -.01em; }
.credit-who { font: italic 400 17px/1.3 var(--serif); color: var(--soft); }
@media (max-width: 640px) { .credit { grid-template-columns: 48px minmax(0, 1fr); } .credit-who { grid-column: 2; } }

/* ---------- Santa's additions ---------- */
/* homepage: "Stylist — Paris · Milan · Cannes" above the feed */
.hero-line { margin: clamp(10px, 2vw, 28px) 0 calc(-1 * clamp(20px, 5vw, 90px)); font: italic 400 clamp(19px, 1.7vw, 24px)/1.2 var(--serif); color: var(--soft); }
.feed--empty p { margin: 0; }
.foot-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px !important; }
.tabs--anchors { margin-top: -6px; }
.video-grid.after-grid { margin-top: clamp(28px, 4vw, 48px); }
.credit-title a { border-bottom: 1px solid #c9c9c9; transition: border-color .2s; }
.credit-title a:hover { border-color: var(--fg); }
.contact p a { overflow-wrap: anywhere; }

/* homepage mosaic: pairs alternate which side is bigger and which sits lower */
.feed-row--pair.is-a .feed-tile:first-child { flex-grow: 1.35; }
.feed-row--pair.is-b .feed-tile:first-child { margin-top: clamp(60px, 14vw, 240px); }
.feed-row--pair.is-b .feed-tile:last-child { margin-top: 0; flex-grow: 1.35; }
.feed-row--single.is-land .feed-tile { width: min(64%, 1000px); }
@media (max-width: 700px) {
  .feed-row--pair.is-b .feed-tile:first-child { margin-top: 64px; }
  .feed-row--single.is-land .feed-tile { width: 86%; }
}
