@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Libre+Franklin:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --bg: #fff;
  --fg: #171411;
  --muted: rgba(23, 20, 17, 0.68);
  --soft: rgba(23, 20, 17, 0.08);
  --line: rgba(23, 20, 17, 0.18);
  --bg-rgb: 255, 255, 255;
  --fg-rgb: 23, 20, 17;

  /* The header is a dark bar, inverted against the light page. */
  --header-bg: #171411;
  --header-fg: #fff;
  --header-bg-rgb: 23, 20, 17;
  --header-fg-rgb: 255, 255, 255;
  --header-fg-muted: rgba(255, 255, 255, 0.68);
  --header-line: rgba(255, 255, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Libre Franklin", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 54px);
  background: var(--header-bg);
  pointer-events: none;
}

.site-title {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--header-fg);
  font-family: "Inter Tight", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  pointer-events: auto;
}

.site-name {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.site-role {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.82;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.2vw, 42px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
}

.nav-links a {
  position: relative;
  color: var(--header-fg);
  padding: 5px 0;
  font-family: "Inter Tight", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.72;
  transition:
    background 180ms ease,
    opacity 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  opacity: 1;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: transparent;
  transform: translateY(-1px);
}

.nav-links a.active {
  background: transparent;
  color: var(--header-fg);
  font-weight: 600;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 0.55;
  transform: scaleX(1);
}

.nav-links a.active::after {
  opacity: 0;
}

.nav-toggle,
.nav-button {
  display: none;
}

.panel-track {
  position: relative;
  width: 100vw;
  height: 100%;
}

.panel {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
  transform: translate3d(100%, 0, 0);
  transition: transform 680ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
  pointer-events: none;
}

.panel.active {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  z-index: 1;
}

.panel.exiting {
  z-index: 2;
}

.content-panel {
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(90px, 12vw, 150px) clamp(22px, 6vw, 80px) clamp(56px, 8vw, 100px);
}

#films.content-panel,
#television.content-panel {
  top: 69px;
  bottom: 1px;
  height: auto;
  padding-top: 32px;
  padding-right: clamp(48px, 18vw, 300px);
  padding-bottom: clamp(24px, 3vw, 40px);
  padding-left: clamp(48px, 18vw, 300px);
}

.video-layer {
  position: relative;
  width: 100%;
  max-width: calc((100svh - 146px) * 1.7778);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}

.video-layer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.reel-panel {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 76px;
}

.reel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - clamp(28px, 4.8vw, 68px));
}

.reel-controls {
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: calc((100svh - 146px) * 1.7778);
  padding: 10px;
  background: rgba(var(--bg-rgb), 0.62);
  backdrop-filter: blur(12px);
}

#restart-toggle {
  justify-self: start;
}

#play-toggle {
  justify-self: center;
}

.reel-controls button {
  min-width: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(var(--bg-rgb), 0.42);
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.reel-controls label {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
}

.icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button .icon-play {
  display: none;
}

.icon-button.is-paused .icon-pause {
  display: none;
}

.icon-button.is-paused .icon-play {
  display: block;
}

.reel-controls input {
  width: 112px;
  accent-color: var(--fg);
}

body[data-active-panel="reel"] .site-title,
body[data-active-panel="reel"] .nav-links a {
  color: var(--header-fg-muted);
}

body[data-active-panel="reel"] .reel-controls {
  color: var(--muted);
}

.content-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  overflow: visible;
}

.content-inner.wide {
  max-width: none;
  width: 100%;
}

.content-inner p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.62;
}

.about-grid,
.contact-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.about-grid {
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 1fr);
}

.contact-grid {
  grid-template-columns: 1fr;
}

.contact-grid p {
  max-width: none;
  margin-top: 0;
}

.about-grid p {
  max-width: 860px;
}

.content-inner .about-copy p {
  margin: 0;
  color: var(--muted);
  font-family: "Libre Franklin", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
}

.content-inner .about-copy p + p {
  margin-top: 1.4em;
}

.headshot {
  display: block;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.filmography-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vw, 28px);
}

.filmography-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2.6vw, 28px);
}

.filmography-item img {
  display: block;
  flex: 0 0 88%;
  width: 88%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.filmography-title {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 6px;
  font-family: "Inter Tight", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
  color: var(--fg);
}

.contact-form {
  display: grid;
  gap: 16px;
  width: 100%;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(var(--bg-rgb), 0.82);
  color: var(--fg);
  font: 500 16px/1.35 "Libre Franklin", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  padding: 13px 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(var(--fg-rgb), 0.54);
}

.reel-controls button:focus-visible,
.reel-controls input:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 170px;
}

.contact-form button {
  justify-self: end;
  border: 1px solid #0066cc;
  border-radius: 0;
  background: #0066cc;
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #0052a3;
  border-color: #0052a3;
  color: #fff;
}

.reel-controls button:hover {
  background: transparent;
  color: var(--fg);
}

.trap-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  color: #ffb4b4;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.form-status.success {
  color: #b9ffc9;
}

@media (max-width: 720px) {
  .topbar {
    padding: 18px 20px;
  }

  .nav-button {
    display: inline-flex;
    position: relative;
    z-index: 22;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--header-line);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    cursor: pointer;
    pointer-events: auto;
  }

  .nav-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--header-fg);
    transition: transform 200ms ease, opacity 200ms ease, background 200ms ease;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 72px 28px;
    background: rgba(var(--header-bg-rgb), 0.94);
    transform: translateX(100%);
    transition: transform 180ms ease;
  }

  .site-title {
    position: relative;
    z-index: 22;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .site-name,
  .site-role {
    font-size: 20px;
  }

  .nav-links a {
    padding: 8px 0;
    font-size: clamp(26px, 9vw, 42px);
    line-height: 1;
    color: var(--header-fg);
  }

  .nav-links a.active {
    background: transparent;
    color: var(--header-fg);
    text-decoration: underline;
    text-underline-offset: 10px;
  }

  body[data-active-panel="reel"] .nav-links a {
    color: var(--header-fg);
  }

  .nav-toggle:checked ~ .nav-links {
    transform: translateX(0);
  }

  .nav-toggle:checked ~ .nav-button span {
    background: var(--header-fg);
  }

  .nav-toggle:checked ~ .nav-button span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-button span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .headshot {
    max-width: 340px;
  }

  .reel-panel {
    padding-top: 64px;
  }

  #films.content-panel,
  #television.content-panel {
    top: 64px;
    bottom: 4px;
    height: auto;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .filmography-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .filmography-item img {
    width: 100%;
  }

  .filmography-title {
    padding-top: 0;
    text-align: left;
  }

  .reel-controls input {
    width: min(34vw, 132px);
  }
}
