/* Danni Bozinoski — Champagne Noir
   Fonts: Bodoni Moda (display) + Manrope (body), self-hosted, SIL OFL. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1c1714;
  --surface: #26201b;
  --text: #f3ebdd;
  --muted: #b8aa96;
  --accent: #d4b98c;
  --line: #3a312a;
  --field: #7d6d5c;
  --error: #f0a493;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 140px);
  --max: 1320px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, p, dl, dd { margin: 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(28, 23, 20, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-block: 12px;
}
.brand {
  font-family: var(--display);
  font-size: 1.375rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding-block: 8px;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav a {
  display: inline-block;
  padding-block: 12px;
  color: var(--text);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); }
.nav .nav-cta { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }

@media (max-width: 520px) {
  .nav { justify-content: center; }
  .nav ul { gap: 0 18px; letter-spacing: 0.14em; justify-content: center; }
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: 0.9375rem;
  color: var(--accent);
}
.kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
}
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  margin-top: 8px;
}
.muted { color: var(--muted); }
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.25rem, 11vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lede { max-width: 580px; margin-top: 8px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.hero-gallery {
  width: 100%;
  margin-top: clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.hero-gallery img { width: 100%; object-fit: cover; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-2x3 { aspect-ratio: 2 / 3; }
@media (max-width: 720px) {
  .hero-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-gallery > :nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .hero-gallery > :nth-child(2) img { aspect-ratio: 4 / 5; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 36px;
  border: 1px solid var(--accent);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn--solid { background: var(--accent); color: var(--bg); }
.btn--solid:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- About ---------- */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 96px);
  align-items: flex-start;
}
.about-head { flex: 1 1 280px; }
.about-body { flex: 2 1 420px; display: flex; flex-direction: column; gap: 28px; }
.quote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.35;
}
.stats {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
}
.stats dt {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd { margin-top: 4px; font-family: var(--display); font-size: 1.375rem; }

/* ---------- Runway scroller ---------- */
.scroller {
  margin-top: 40px;
  padding: 0 var(--gutter) 16px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-color: var(--field) transparent;
  overscroll-behavior-x: contain;
}
.scroller > picture {
  flex: 0 0 clamp(240px, 28vw, 380px);
  scroll-snap-align: start;
}
.scroller img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center 30%; }
/* Safe centring: centres when the photos fit, scrolls from the start when they don't */
.scroller > :first-child { margin-left: auto; }
.scroller > :last-child { margin-right: auto; }

.scroller-meta { display: flex; align-items: center; gap: 24px; }
.scroller-nav { display: flex; gap: 8px; }
.scroller-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: transparent; color: var(--accent);
  border: 1px solid var(--field); border-radius: 50%;
  cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.scroller-btn:hover { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.scroller-btn[disabled] { opacity: .35; cursor: default; background: transparent; color: var(--accent); border-color: var(--field); }

.show-credits {
  margin-top: 32px;
  max-width: 720px;
  border-top: 1px solid var(--line);
}
.show-credits > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.show-credits dt {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.show-credits dd { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.show-credits a { text-decoration: none; border-bottom: 1px solid transparent; }
.show-credits a:hover { color: var(--text); border-bottom-color: currentColor; }

/* ---------- Work ---------- */
.work {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.work-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.work-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.work-grid > :nth-child(3n+2) { margin-top: 40px; }
@media (max-width: 640px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid > :nth-child(3n+2) { margin-top: 0; }
  .work-grid > :nth-child(even) { margin-top: 32px; }
}

/* ---------- Modelling slider ---------- */
.slider { margin-top: 40px; }
.slider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.slider-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.slider-tab {
  min-height: 44px;
  padding: 0 22px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--field);
  border-radius: 999px;
  font: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.slider-tab:hover { color: var(--text); border-color: var(--accent); }
.slider-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.slider-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  transition: height .35s ease;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-top: 32px;
}
.slide-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.slide .swim-grid { margin-top: 0; }
.shoot + .shoot { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.h4 { margin: 0 0 24px; font-family: var(--body); font-weight: 400; font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .slider-track { transition: none; } }
@media (max-width: 560px) {
  .slider .scroller-nav { display: none; }
  .slider-tabs { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slider-tab { min-width: 0; padding: 8px 10px; font-size: 0.6875rem; letter-spacing: 0.08em; line-height: 1.25; }
}

/* ---------- Looks ---------- */
.looks-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.looks-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.credits { margin-top: 28px; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 640px) {
  .looks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.swim-grid {
  margin-top: 40px;
  columns: 4 240px;
  column-gap: 12px;
}
.swim-grid > picture { break-inside: avoid; margin-bottom: 12px; }
.swim-grid img { width: 100%; height: auto; }
@media (max-width: 640px) {
  .swim-grid { columns: 2; }
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.car-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.car-grid--tall img { aspect-ratio: 3 / 4; }
@media (max-width: 900px) { .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Contact ---------- */
.contact {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.contact .h2 { font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1; margin-top: 0; }
.contact .h2 em { color: var(--accent); }
.form {
  width: 100%;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr); }
}
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  min-height: 48px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--field);
  border-radius: 0;
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* ≥16px stops iOS zoom on focus */
}
.field select {
  background: var(--bg);
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.field textarea { padding-block: 12px; resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--error); }
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.form-note { font-size: 0.875rem; color: var(--muted); }
.form-status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  text-align: center;
  font-size: 0.9375rem;
}
.form-status[data-state="error"] { color: var(--error); }
.form-success {
  width: 100%;
  margin-top: 24px;
  padding: 40px 24px;
  border: 1px solid var(--accent);
}
.form-success h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 2rem; }
.form-success p { margin-top: 8px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Simple pages (thanks / 404) ---------- */
.simple {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding-block: var(--section);
}
.simple h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1; }
.simple h1 em { color: var(--accent); }
