:root {
  --ground: #EFEFEF;
  --ink: #111111;
  --muted: #5F5F5F;
  --dark: #1C1C1C;
  --error: #B3261E;
  --pad-x: 36px;
  --pad-y: 28px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body {
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--muted); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.top, .bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.top { position: sticky; top: 0; z-index: 5; background: var(--ground); padding: var(--pad-y) 0 8px; margin-top: calc(-1 * var(--pad-y)); }
.bottom { position: sticky; bottom: 0; z-index: 5; background: var(--ground); padding: 8px 0 var(--pad-y); margin-bottom: calc(-1 * var(--pad-y)); font-style: italic; }
.brand { font-style: italic; font-weight: 500; }
.where { color: var(--muted); }
.navright { display: flex; gap: 48px; align-items: baseline; }
.current { font-weight: 500; }

/* Social tab */
.social { position: relative; }
.social > button {
  background: none; border: 0; padding: 0; min-height: 24px;
  font: italic 12px Inter, Helvetica, Arial, sans-serif; color: var(--ink); cursor: pointer;
}
.social > button:hover { color: var(--muted); }
.social-list {
  position: absolute; bottom: 28px; left: 0;
  display: flex; flex-direction: column; gap: 6px;
  white-space: nowrap; background: var(--ground); padding: 6px 0;
}
.social-list[hidden] { display: none; }

/* Home */
.home-main { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.player { width: 100%; max-width: 720px; }
.frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--dark); overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame img { position: absolute; inset: 0; }
.frame iframe.bg {
  pointer-events: none;
  /* trim a hair off the edges so no player chrome shows */
  inset: -2% -2%; width: 104%; height: 104%;
}
.sound {
  background: none; border: 0; padding: 0; min-height: 24px;
  font: italic 12px Inter, Helvetica, Arial, sans-serif; color: var(--ink); cursor: pointer;
}
.sound:hover { color: var(--muted); }
.sound[hidden] { display: none; }
.play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: transparent; border: 0; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.play span {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(17, 17, 17, 0.55);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.play:hover span, .play:focus-visible span { background: rgba(17, 17, 17, 0.8); }
.caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; }
.caption .muted { color: var(--muted); }

.brands { width: 100%; max-width: 720px; text-align: center; }
.brands h2 { margin: 0 0 14px; font-size: 12px; font-weight: 400; font-style: italic; color: var(--muted); }
.brands ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
  font-size: 15px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: #333333;
}

/* Work index */
.work-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.index { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.index h2 { margin: 0 0 8px; font-size: 12px; font-weight: 400; font-style: italic; }
.row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px; width: 100%; padding: 3px 0; min-height: 26px; align-items: baseline;
  background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink);
}
.row .who { color: var(--muted); }
.row:hover, .row:focus-visible, .row.is-active { color: var(--muted); }
.row:hover .who, .row.is-active .who { color: #8A8A8A; }
.preview { flex: 1 1 340px; max-width: 460px; position: sticky; top: 72px; }
.preview .caption span:last-child { color: var(--muted); }
.state { color: var(--muted); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 20; background: rgba(239, 239, 239, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px var(--pad-x);
}
.lightbox[hidden] { display: none; }
.lightbox .frame { max-width: 1100px; }
.lightbox .caption { width: 100%; max-width: 1100px; }
.close {
  position: absolute; top: var(--pad-y); right: var(--pad-x);
  background: none; border: 0; padding: 8px; min-height: 44px; min-width: 44px;
  font: italic 12px Inter, Helvetica, Arial, sans-serif; color: var(--ink); cursor: pointer;
}

/* About */
.about-main { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.portrait { width: 240px; aspect-ratio: 2 / 3; object-fit: cover; filter: grayscale(1); background: var(--dark); }
.about-main p { margin: 0; max-width: 420px; }
.about-main a { text-decoration: underline; text-underline-offset: 2px; }
.contact { width: 100%; max-width: 420px; margin-top: 32px; text-align: left; }
.contact h2 { margin: 0 0 16px; font-size: 12px; font-weight: 400; font-style: italic; text-align: center; }
.contact form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 8px 0; font: 14px Inter, Helvetica, Arial, sans-serif; color: var(--ink); min-height: 40px; width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.field .err, .form-error { color: var(--error); margin: 0; }
.field .help { color: var(--muted); margin: 0; }
.send {
  align-self: center; margin-top: 8px; background: var(--ink); color: var(--ground);
  border: 0; padding: 12px 28px; min-height: 44px; font: italic 12px Inter, Helvetica, Arial, sans-serif; cursor: pointer;
}
.send:hover { background: #333333; }
.send[disabled] { opacity: 0.6; cursor: progress; }
.thanks { text-align: center; white-space: pre-line; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Stills gallery (lightbox) */
.lightbox.has-stills { justify-content: flex-start; overflow-y: auto; }
.lightbox.has-stills .close { position: fixed; z-index: 2; background: rgba(239, 239, 239, 0.9); }
.stills { width: 100%; max-width: 1100px; margin-top: 40px; }
.stills[hidden] { display: none; }
.stills h3 { margin: 0 0 12px; font-size: 12px; font-weight: 400; font-style: italic; color: var(--muted); }
.stills-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.still-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--dark); cursor: zoom-in; aspect-ratio: 16 / 9; overflow: hidden; }
.still-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s ease; }
.still-btn:hover img, .still-btn:focus-visible img { opacity: 0.85; }
.social-link { width: 100%; max-width: 1100px; margin: 6px 0 0; font-style: italic; }
.social-link a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.social-link[hidden] { display: none; }
.lightbox .frame.portrait { aspect-ratio: 9 / 16; max-width: min(100%, calc(72vh * 9 / 16)); }
.row .tag { color: #8A8A8A; font-style: italic; }
.still-view { position: fixed; inset: 0; z-index: 40; background: #0B0B0B; display: flex; align-items: center; justify-content: center; padding: 64px var(--pad-x); }
.still-view[hidden] { display: none; }
.still-view img { max-width: 100%; max-height: 100%; object-fit: contain; }
.still-view button { position: absolute; background: none; border: 0; padding: 8px; min-height: 44px; min-width: 44px; font: italic 12px Inter, Helvetica, Arial, sans-serif; color: #F2F2F2; cursor: pointer; }
.still-view button:hover, .still-view button:focus-visible { color: #BDBDBD; outline-color: #F2F2F2; }
.still-view .sv-close { top: var(--pad-y); right: var(--pad-x); }
.still-view .sv-prev { left: var(--pad-x); top: 50%; transform: translateY(-50%); }
.still-view .sv-next { right: var(--pad-x); top: 50%; transform: translateY(-50%); }
.still-view .sv-count { position: absolute; bottom: var(--pad-y); left: 0; right: 0; text-align: center; color: #BDBDBD; font-style: italic; }

@media (max-width: 720px) {
  :root { --pad-x: 20px; --pad-y: 20px; }
  .where { display: none; }
  .navright { gap: 20px; }
  .preview { display: none; }
  .row { grid-template-columns: 28px minmax(0, 1fr); row-gap: 0; column-gap: 12px; padding: 7px 0; line-height: 1.4; }
  .row .who { grid-column: 2; }
  .brands ul { font-size: 13px; gap: 10px 22px; }
  .stills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .still-view { padding: 56px 0; }
  .still-view .sv-prev, .still-view .sv-next { top: auto; bottom: calc(var(--pad-y) - 12px); transform: none; }
}