/* Tokens */
:root {
  --bg: #FAF8F4;
  --text: #1A1A1A;
  --muted: #6B6B66;
  --border: #E8E4DC;
  --accent: #56716A; /* muted sage, used only for small tags */
  --surface: #FFFFFF;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  --fs-heading: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-body: 1rem;
  --fs-caption: 0.8125rem;

  --gutter: 16px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 6px 20px rgba(26, 26, 26, 0.04);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}
.btn:hover { opacity: 0.85; }
.btn--small { min-height: 36px; padding: 0 16px; font-size: var(--fs-caption); }
.btn--large { min-height: 56px; padding: 0 32px; font-size: var(--fs-heading); }
.text-link {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.text-link:hover { color: var(--text); text-decoration-color: currentColor; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--border); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.topbar__name { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.hide-sm { display: none; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 40px; }
.hero__name { font-size: var(--fs-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.hero__intro { margin-top: 16px; max-width: 44ch; font-size: var(--fs-heading); text-wrap: balance; line-height: 1.5; color: var(--muted); }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* Featured */
.featured { padding-bottom: 48px; }
.featured__player {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.featured__player img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.82);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(26, 26, 26, 0.18);
  transition: transform 0.3s var(--ease);
}
.play svg { margin-left: 3px; }
.featured__player:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.featured__caption { margin-top: 12px; font-size: var(--fs-caption); }
.featured__title { font-weight: 500; }

/* Client strip */
.caption-label { font-size: var(--fs-caption); font-weight: 500; color: var(--muted); }
.clients { padding-bottom: 56px; }
.clients__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
.client { display: flex; align-items: center; gap: 10px; min-width: 0; line-height: 1.35; color: var(--muted); font-size: var(--fs-caption); font-weight: 500; }
.client__mark { width: 28px; height: 28px; flex: none; border-radius: 7px; opacity: 0.85; }
.client__mark--avatar { border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(0.95); }
/* The Get Listings file is a full wordmark; show only its house mark. */
.client__mark--crop { object-fit: cover; object-position: left center; border-radius: 0; }

/* Work */
.work { padding-bottom: 72px; }
.section-title { font-size: var(--fs-heading); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.chips { margin: 16px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Masonry via CSS columns: mixed 9:16 and 16:9 cards stack without gaps. */
.grid { columns: 2; column-gap: 12px; }
.card {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  break-inside: avoid;
  transition: box-shadow 0.3s var(--ease), opacity 0.6s var(--ease);
}
.card:hover { box-shadow: 0 2px 4px rgba(26, 26, 26, 0.05), 0 10px 28px rgba(26, 26, 26, 0.07); }
.card__media { display: block; position: relative; overflow: hidden; background: var(--border); }
.card__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.card__preview.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .card__preview { transition: none; } }
.card__media img { width: 100%; height: auto; object-fit: cover; }
.card--portrait .card__media img { aspect-ratio: 9 / 16; }
.card--landscape .card__media img { aspect-ratio: 16 / 9; }
.card__caption { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px 12px; line-height: 1.4; }
.card__title { font-size: var(--fs-caption); font-weight: 500; }
.card__client { font-size: var(--fs-caption); color: var(--muted); }
.tag {
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
}
.empty { column-span: all; padding: 48px 0; text-align: center; color: var(--muted); }

/* Pricing */
.pricing { padding-top: 0; padding-bottom: 56px; }
.pricing__lead { margin-top: 8px; max-width: 52ch; color: var(--muted); }
.pricing__grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.price-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.price-card__title { font-size: var(--fs-body); font-weight: 500; }
.price-card__price { margin-top: 16px; font-size: var(--fs-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.price-card__unit { margin-top: 4px; font-size: var(--fs-caption); color: var(--muted); }
.price-card__desc { margin-top: 16px; font-size: var(--fs-caption); color: var(--muted); line-height: 1.5; }
.pricing__note { margin-top: 16px; font-size: var(--fs-caption); color: var(--muted); }

/* Contact and footer */
.contact {
  padding-top: 64px;
  padding-bottom: 64px;
  /* hairline aligned to the content edges, not the padded box */
  background: linear-gradient(var(--border), var(--border)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  text-align: center;
}
.contact .section-title { margin-bottom: 24px; }
.contact__email { margin-top: 16px; color: var(--muted); font-size: var(--fs-caption); }
.footer { padding-top: 24px; padding-bottom: 32px; color: var(--muted); font-size: var(--fs-caption); }

/* Gentle fade-in on scroll (only once JS has marked the page). */
.js .reveal { opacity: 0; transition: opacity 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; }
.js .card.reveal { transition: box-shadow 0.3s var(--ease), opacity 0.8s var(--ease); }
@media print { .js .reveal { opacity: 1; transform: none; } }

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

/* Wider screens */
@media (max-width: 719.98px) {
  .chip, .topbar .btn--small { min-height: 44px; }
}
@media (min-width: 480px) {
  .hide-sm { display: inline; }
}
@media (min-width: 600px) {
  .hero__intro { text-wrap: pretty; }
}
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .grid { columns: 3; column-gap: 16px; }
  .card { margin-bottom: 16px; }
  .hero { padding-top: 88px; padding-bottom: 56px; }
  .featured { padding-bottom: 64px; }
  .play { width: 76px; height: 76px; }
  .clients { padding-bottom: 80px; }
  .clients__list { display: flex; flex-wrap: wrap; gap: 16px 48px; }
  .card__title { font-size: var(--fs-body); }
  .work { padding-bottom: 48px; }
  .pricing { padding-top: 48px; padding-bottom: 80px; }
  .pricing__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .contact { padding-top: 96px; padding-bottom: 96px; }
}
@media (min-width: 1040px) {
  .grid { columns: 4; column-gap: 20px; }
  .card { margin-bottom: 20px; }
}

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

/* Lightbox */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: 64px var(--gutter) 12px;
  animation: lightbox-in 0.25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
}
.lightbox__video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 64px - 12px - 44px);
  max-height: calc(100dvh - 64px - 12px - 44px);
  border-radius: 12px;
  background: #111;
  box-shadow: var(--shadow), 0 12px 40px rgba(26, 26, 26, 0.12);
}
.lightbox__btn {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 10px; right: var(--gutter); }
.lightbox__prev, .lightbox__next { top: 10px; }
.lightbox__prev { right: calc(var(--gutter) + 104px); }
.lightbox__next { right: calc(var(--gutter) + 52px); }
.lightbox__meta {
  position: relative;
  padding-top: 10px;
  text-align: center;
  font-size: var(--fs-caption);
  font-weight: 500;
  min-height: 1.4em;
}
@media (min-width: 900px) {
  .lightbox { padding: 40px 88px 16px; }
  .lightbox__video { max-height: calc(100vh - 40px - 16px - 44px); max-height: calc(100dvh - 40px - 16px - 44px); }
  .lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
  .lightbox__prev { right: auto; left: 20px; }
  .lightbox__next { right: 20px; }
  .lightbox__close { top: 20px; right: 20px; }
}
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }
.lightbox__sentinel { position: absolute; width: 0; height: 0; overflow: hidden; outline: none; }
