/* Layout: the original reynoldsfx.com — black, centered, full-screen collage hero,
   thin letterspaced headings — rebuilt clean, with a refined credits panel and player. */
:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #0b0b0c;
  --panel: #0f1013;
  --line: #222428;
  --fg: #f7f7f7;
  --text: #b8b8b8;
  --muted: #8a8a8e;
  --glow: #3b6fd4;        /* the original panel's blue edge */

  --name: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sub: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --head: "Hind", "Helvetica Neue", Arial, sans-serif;
  --body: "Mulish", "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header: centered wordmark over centered nav, like the original */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-head.solid, .site-head.always-solid {
  background: #000000e6;
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}
.site-head .wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-block: 18px 14px;
}
.brand {
  font: 300 13px/1 var(--name);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  padding-left: 0.35em; /* optical centering for tracking */
}
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; }
.nav a {
  font: 400 11px/1.75 var(--head);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.nav button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 11px/1.75 var(--head); letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--fg); }

/* Hero: full-screen collage, thin name centered */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse at center, #000000b3 0%, #00000099 45%, #000000cc 100%),
    url("img/hero.jpg") center / cover no-repeat,
    #000;
}
.hero-inner { padding: 120px 20px 80px; }
.hero h1 {
  margin: 0;
  font: 200 clamp(2.4rem, 6.5vw, 5rem)/1.05 var(--name);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  text-wrap: balance;
}
.hero .tagline {
  margin: 8px 0 0;
  font: 300 clamp(1.1rem, 2.2vw, 1.75rem)/1.3 var(--sub);
  color: var(--fg);
  letter-spacing: 0.02em;
}
.hero .current {
  margin-top: 28px;
  font: 400 11px/1.6 var(--head);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d0d0d0;
}
.hero .current b { color: var(--fg); font-weight: 600; }
.hero .cta { margin-top: 30px; }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 44px; background: linear-gradient(#fff0, #ffffffaa);
}

/* Section headings: big, thin, widely tracked */
section { scroll-margin-top: 70px; }
.section { padding-block: 110px 90px; text-align: center; }
.section h2 {
  margin: 0 0 40px;
  font: 300 clamp(2.2rem, 4.5vw, 3.1rem)/1.3 var(--head);
  letter-spacing: 10px;
  text-transform: uppercase;
  color: var(--fg);
  padding-left: 10px; /* optical centering for tracking */
}

/* About */
.headshot {
  width: 130px; height: 130px; object-fit: cover;
  margin: 0 auto 32px;
  filter: grayscale(1) contrast(1.05);
  transition: filter .4s ease;
}
.headshot:hover { filter: none; }
.about-copy p { margin: 0 0 1em; }
.about-copy em { font-style: normal; color: var(--fg); }
.about-copy { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.75; }
.skills {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px; margin-top: 80px;
}
@media (max-width: 760px) { .skills { grid-template-columns: 1fr; gap: 44px; } }
.skill svg { width: 28px; height: 28px; margin: 0 auto 16px; display: block; color: var(--fg); }
.skill h3 {
  margin: 0 0 10px;
  font: 700 13px/1.2 "Open Sans", var(--body);
  letter-spacing: 2px;
  color: var(--fg);
}
.skill p { margin: 0 auto; max-width: 30ch; color: var(--muted); font-size: 14px; }

/* Work grid */
#work { background: var(--bg-2); }
.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.clip {
  position: relative; display: block; padding: 0; border: 0; background: none;
  color: inherit; cursor: pointer; font: inherit; text-align: left;
}
.thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--panel); }
.thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.7) brightness(0.5);
  transition: filter .35s ease, transform .5s ease;
}
.clip-meta {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 10px 8px;
  background: linear-gradient(#0000, #000000d9);
  opacity: 0; transition: opacity .3s ease;
  display: flex; flex-direction: column; gap: 1px;
}
.clip-title { font: 600 13px/1.25 var(--body); color: var(--fg); }
.clip-role { font: 400 10px/1.4 var(--head); letter-spacing: 2px; text-transform: uppercase; color: #c9c9c9; }
.clip:hover .thumb img, .clip:focus-visible .thumb img { filter: none; transform: scale(1.04); }
.clip:hover .clip-meta, .clip:focus-visible .clip-meta { opacity: 1; }
@media (hover: none) { .clip-meta { opacity: 1; } .thumb img { filter: saturate(0.85) brightness(0.8); } }
@media (prefers-reduced-motion: reduce) { .thumb img, .clip-meta { transition: none; } }

/* Credits: one panel, grouped by year, two columns on desktop */
.credits-panel {
  margin-top: 60px;
  text-align: left;
  background: var(--panel);
  border: 1px solid #3b6fd455;
  box-shadow: 0 0 0 1px #00000080, 0 0 28px #3b6fd430;
  border-radius: 6px;
  padding: 30px 34px 26px;
}
@media (max-width: 600px) { .credits-panel { padding: 22px 18px 16px; } }
.credits-title {
  margin: 0 0 22px;
  text-align: center;
  font: 400 11px/1.6 var(--head);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}
.credit-groups { columns: 2; column-gap: 48px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .credit-groups { columns: 1; } }
.year-group {
  break-inside: avoid;
  display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 14px;
  padding-block: 12px;
  border-top: 1px solid #ffffff0d;
}
.year-group .yr { color: var(--muted); font-size: 13px; line-height: 1.5; padding-top: 1px; }
.year-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.year-group li { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.year-group .ti { color: var(--fg); font-weight: 700; }
.year-group .ro { color: var(--muted); font-size: 13px; }

/* Buttons: the original light pills */
.cta, .buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.buttons { margin-top: 56px; }
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 0; border-radius: 3px;
  background: #ebebeb;
  color: #555;
  font: 700 14px/1.2 Arial, "Helvetica Neue", sans-serif;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: #fff; color: #111; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px #ffffff66; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px #fff; background: transparent; }

/* Contact / footer */
.contact { padding-block: 90px 50px; text-align: center; }
.contact h2 {
  margin: 0;
  font: 300 15px/1.6 var(--head);
  letter-spacing: 10px;
  text-transform: uppercase;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.contact h2 a { text-decoration: none; }
.contact h2 a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.social { display: flex; justify-content: center; gap: 18px; margin-top: 60px; }
.social a { color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--fg); }
.social svg { width: 18px; height: 18px; display: block; }
.copy { margin-top: 14px; font-size: 11px; color: #6c6c70; }

/* Lightbox */
dialog.player {
  width: min(1100px, 94vw); max-width: 94vw; padding: 0;
  border: 1px solid var(--line); background: #000; color: var(--fg);
}
dialog.player::backdrop { background: #000000e8; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 14px; background: var(--panel); }
.player-title { font: 400 11px/1.4 var(--head); letter-spacing: 3px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-frame { aspect-ratio: 16 / 9; width: 100%; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.close { border: 0; background: none; color: var(--muted); font: 300 1.6rem/1 var(--body); cursor: pointer; padding: 2px 6px; }
.close:hover { color: var(--fg); }

/* Training page */
.page-intro { padding-block: 150px 10px; text-align: center; }
.page-intro p { max-width: 60ch; margin: 0 auto; color: var(--muted); }
.page-intro .cta { margin-top: 30px; }
.grid.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid.wide { grid-template-columns: 1fr; } }
