/* ---------- Tokens ---------- */
:root {
  --accent: #7a1f2b;       /* burgundy */
  --accent-on-dark: #b8394b; /* lighter burgundy so it reads on black */
  --ink: #111;
  --paper: #fff;
  --muted: #6b6b6b;
  --line: #d9d9d9;
  --placeholder: #e7e4e2;
  --gutter: clamp(16px, 3vw, 40px);
  --display: clamp(2.6rem, 7vw, 6.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { padding-inline: var(--gutter); }

.display {
  font-size: var(--display);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
}

.small {
  font-size: 0.72rem;
  text-transform: uppercase;
  line-height: 1.35;
  color: #333;
  max-width: 46ch;
}

/* Image frames: grey placeholder + filename until the real photo loads */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--placeholder);
}
.frame::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #9a9590;
  text-transform: uppercase;
  text-align: center;
  padding: 8px;
}
.frame img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  color: #fff;
  --accent: var(--accent-on-dark);
}
.hero__img { position: absolute; inset: 0; }
.hero__img img { object-position: 45% 22%; } /* keep the face in frame when cropped */
.hero__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.6), transparent 45%),
    linear-gradient(to bottom, rgba(0,0,0,.35), transparent 15%);
}
.nav {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 18px var(--gutter);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
}
.nav ul { display: flex; gap: 18px; }
.nav a:hover { color: var(--accent); }
.hero__foot {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter) var(--gutter);
  z-index: 2;
}
.hero__tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  max-width: 38ch;
  text-align: right;
}

/* ---------- Hello ---------- */
.hello {
  display: grid;
  grid-template-columns: 1fr 1fr; /* equal halves: text centered left, photo centered right */
  gap: clamp(16px, 4vw, 64px);
  padding-top: 12px;
}
.hello__left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-self: center;
  align-self: center;
  text-align: center;
  align-items: center;
  max-width: 520px;
  position: relative;
}
.hello__left .display { margin-bottom: 6px; }
.hello__title {
  white-space: nowrap;               /* one line, never wraps */
  line-height: 1;
  font-size: clamp(2.8rem, 7vw, 6rem);
}
.hello__left .pill { align-self: center; }
.seeking { font-weight: 600; color: var(--accent); }
.hello__a { aspect-ratio: 1411 / 2000; width: 100%; max-width: 480px; justify-self: center; } /* polaroid scan, shown uncropped */

.statement {
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.08;
  max-width: 24ch;
}
.pill {
  align-self: flex-start;
  border: 1px solid var(--ink);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 0.65rem;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.pill:hover { background: var(--ink); color: var(--paper); }

/* ---------- Digitals ---------- */
.digitals { padding-block: clamp(48px, 7vw, 90px) clamp(24px, 3vw, 40px); }
.digitals__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(16px, 2vw, 28px);
}
.digitals__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr; /* one even row, however many photos */
  gap: 8px;
}
.digitals__row .frame { aspect-ratio: 2 / 3; }
.digitals__row img { transition: transform .6s ease; }
.digitals__row .frame:hover img { transform: scale(1.03); }

/* ---------- Portfolio ---------- */
.portfolio { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 90px); }
.portfolio > .display { margin-bottom: clamp(20px, 3vw, 40px); }
.albums {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.album:first-child { grid-column: 1 / -1; } /* newest/featured shoot shown big */
.album__feature { aspect-ratio: 3 / 2; background: #111; }
.album__meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  text-transform: uppercase;
}
.album__num { font-size: 0.68rem; color: var(--muted); }
.album__title { font-size: clamp(0.95rem, 1.4vw, 1.15rem); font-weight: 600; }
.album__open {
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.7rem;
  padding: 6px 16px;
  cursor: pointer;
}

/* Small boxes share one photo height so portrait and landscape line up */
.moments {
  --box-h: clamp(240px, 30vw, 380px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(12px, 1.5vw, 20px);
  margin-top: clamp(32px, 4vw, 56px);
}
.moment { width: calc(var(--box-h) * 1206 / 1596); }          /* portrait (MOKIWORLD) */
.moment--wide { width: calc(var(--box-h) * 2000 / 1339); }    /* landscape */
.moment .frame { height: var(--box-h); }
.moment figcaption, .moment__meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}
.moment__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.moment__meta .album__title { font-size: inherit; }
.moment .album__open {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-transform: inherit;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.moment .album__open:hover { color: var(--accent); }

/* Viewer */
.viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
}
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
.viewer::backdrop { background: #000; }
.viewer__bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 16px var(--gutter);
}
.viewer__count { color: #999; }
.viewer__close, .viewer__nav {
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  cursor: pointer;
  padding: 6px;
}
.viewer__close:hover, .viewer__nav:hover { color: var(--accent-on-dark); }
.viewer__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 0;
  padding: 0 var(--gutter);
}
.viewer__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 0;
  user-select: none;
}
.viewer__nav { font-size: 1.4rem; padding: 12px 16px; }
.viewer__thumbs {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 14px var(--gutter) 18px;
  overflow-x: auto;
}
.viewer__thumbs button {
  all: unset;
  flex: 0 0 auto;
  width: 64px;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  opacity: .4;
  transition: opacity .2s;
}
.viewer__thumbs button[aria-current="true"], .viewer__thumbs button:hover { opacity: 1; }
.viewer__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Comp card ---------- */
.compcard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 4vw, 64px);
  padding-block: clamp(24px, 4vw, 56px) clamp(48px, 7vw, 90px);
}
.compcard__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.compcard__img {
  aspect-ratio: 1545 / 2000; /* full card, uncropped */
  width: 100%;
  max-width: 560px;
  justify-self: end;
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- Booking ---------- */
.booking { background: #000; color: #fff; padding-block: clamp(32px, 5vw, 64px); --accent: var(--accent-on-dark); }
.booking__inner {
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  gap: 24px;
  align-items: start;
}
.booking dl { margin: 0; font-size: 0.75rem; }
.booking dt { font-weight: 600; margin-bottom: 4px; text-transform: uppercase; }
.booking dd { margin: 0; line-height: 1.4; font-size: 0.95rem; }
.booking a:hover { color: var(--accent); }
.back { font-size: 0.65rem; text-transform: uppercase; align-self: end; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav ul:first-child { display: none; }
  .nav { justify-content: flex-end; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__tag { text-align: left; }

  .hello { grid-template-columns: 1fr; }
  .hello__left { padding-top: 32px; }

  .digitals__head { flex-direction: column; align-items: flex-start; }
  .albums { grid-template-columns: 1fr; }
  .moment, .moment--wide { width: 100%; }
  .moment .frame { height: auto; aspect-ratio: 1206 / 1596; }
  .moment--wide .frame { aspect-ratio: 2000 / 1339; }
  .viewer__nav { display: none; } /* swipe instead */
  .viewer__stage { grid-template-columns: 1fr; padding: 0; }
  .compcard { grid-template-columns: 1fr; }
  .compcard__img { justify-self: stretch; max-width: none; }
  /* row becomes a swipeable strip on phones */
  .digitals__row {
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .digitals__row::-webkit-scrollbar { display: none; }
  .digitals__row .frame { scroll-snap-align: start; }

  .booking__inner { grid-template-columns: 1fr; }
}
