:root {
  color-scheme: light;
  --ink: #111418;
  --ink-soft: #1d2429;
  --paper: #f3efe5;
  --paper-2: #edf0ea;
  --mist: #d4e5e2;
  --coral: #f37f63;
  --green: #536c59;
  --line: rgba(17, 20, 24, 0.13);
  --shadow: rgba(17, 20, 24, 0.22);
  --on-dark: #f3efe5;
  --on-accent: #111418;
  --dark-surface: #111418;
  --dark-surface-2: #1d2429;
  --body-wash-mist: rgba(201, 222, 221, 0.16);
  --body-wash-coral: rgba(243, 127, 99, 0.07);
  --grid-line-strong: rgba(17, 20, 24, 0.12);
  --grid-line-soft: rgba(17, 20, 24, 0.08);
  --surface-translucent: rgba(237, 240, 234, 0.76);
  --surface-card: rgba(246, 242, 232, 0.78);
  --surface-control: rgba(246, 242, 232, 0.76);
  --surface-hover: rgba(243, 127, 99, 0.12);
  --control-border: rgba(17, 20, 24, 0.3);
  --text-muted: rgba(17, 20, 24, 0.72);
  --text-soft: rgba(17, 20, 24, 0.65);
  --text-link: rgba(17, 20, 24, 0.7);
  --text-faint: rgba(17, 20, 24, 0.62);
  --scroll-track: rgba(17, 20, 24, 0.13);
  --focus-ring: rgba(243, 127, 99, 0.9);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f3efe5;
    --paper: #111418;
    --paper-2: #171c21;
    --mist: #253633;
    --coral: #ff9278;
    --green: #b7ceb8;
    --line: rgba(243, 239, 229, 0.18);
    --shadow: rgba(0, 0, 0, 0.58);
    --body-wash-mist: rgba(112, 133, 116, 0.18);
    --body-wash-coral: rgba(243, 127, 99, 0.1);
    --grid-line-strong: rgba(243, 239, 229, 0.09);
    --grid-line-soft: rgba(243, 239, 229, 0.055);
    --surface-translucent: rgba(29, 36, 41, 0.86);
    --surface-card: rgba(29, 36, 41, 0.88);
    --surface-control: rgba(29, 36, 41, 0.9);
    --surface-hover: rgba(255, 146, 120, 0.14);
    --control-border: rgba(243, 239, 229, 0.3);
    --text-muted: rgba(243, 239, 229, 0.76);
    --text-soft: rgba(243, 239, 229, 0.7);
    --text-link: rgba(243, 239, 229, 0.78);
    --text-faint: rgba(243, 239, 229, 0.68);
    --scroll-track: rgba(243, 239, 229, 0.16);
    --focus-ring: rgba(255, 146, 120, 0.95);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3efe5;
  --paper: #111418;
  --paper-2: #171c21;
  --mist: #253633;
  --coral: #ff9278;
  --green: #b7ceb8;
  --line: rgba(243, 239, 229, 0.18);
  --shadow: rgba(0, 0, 0, 0.58);
  --body-wash-mist: rgba(112, 133, 116, 0.18);
  --body-wash-coral: rgba(243, 127, 99, 0.1);
  --grid-line-strong: rgba(243, 239, 229, 0.09);
  --grid-line-soft: rgba(243, 239, 229, 0.055);
  --surface-translucent: rgba(29, 36, 41, 0.86);
  --surface-card: rgba(29, 36, 41, 0.88);
  --surface-control: rgba(29, 36, 41, 0.9);
  --surface-hover: rgba(255, 146, 120, 0.14);
  --control-border: rgba(243, 239, 229, 0.3);
  --text-muted: rgba(243, 239, 229, 0.76);
  --text-soft: rgba(243, 239, 229, 0.7);
  --text-link: rgba(243, 239, 229, 0.78);
  --text-faint: rgba(243, 239, 229, 0.68);
  --scroll-track: rgba(243, 239, 229, 0.16);
  --focus-ring: rgba(255, 146, 120, 0.95);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(130deg, var(--body-wash-mist), transparent 34%),
    linear-gradient(24deg, transparent 58%, var(--body-wash-coral)),
    var(--paper);
  font-family: "DM Sans", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(var(--grid-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-soft) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--on-accent);
  background: var(--coral);
  border-radius: 6px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 10px max(22px, calc((100vw - 1120px) / 2));
  color: var(--on-dark);
  background: rgba(17, 20, 24, 0.94);
  border-bottom: 1px solid rgba(246, 242, 232, 0.16);
  box-shadow: 0 10px 34px -28px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--on-dark);
  text-decoration: none;
}

.brand-logo {
  position: relative;
  display: inline-grid;
  width: 48px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
}

.brand-w {
  font-family: Fraunces, Georgia, serif;
  font-size: 3.05rem;
  font-weight: 750;
  letter-spacing: -0.08em;
  line-height: 0.82;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.brand-edits {
  position: absolute;
  top: -1px;
  left: 50%;
  z-index: 1;
  color: var(--coral);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-50%) rotate(-3deg);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  margin-top: 3px;
  color: rgba(243, 239, 229, 0.66);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
  font-size: 0.9rem;
}

.site-nav a {
  color: rgba(246, 242, 232, 0.76);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--on-dark);
  border-bottom-color: var(--coral);
}

.theme-picker {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: rgba(246, 242, 232, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-picker select {
  min-height: 44px;
  padding: 8px 30px 8px 10px;
  color: var(--on-dark);
  background: rgba(246, 242, 232, 0.08);
  border: 1px solid rgba(246, 242, 232, 0.3);
  border-radius: 8px;
  color-scheme: dark;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.theme-picker select:hover {
  border-color: var(--coral);
}

.theme-picker select:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 610px;
  align-items: end;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--dark-surface);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.76) contrast(1.08) blur(0.5px);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.98), rgba(17, 20, 24, 0.67) 52%, rgba(17, 20, 24, 0.26)),
    linear-gradient(0deg, rgba(17, 20, 24, 0.94), transparent 58%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.eyebrow {
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--green);
}

.hero h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(3.65rem, 8.6vw, 6.8rem);
}

.action-row,
.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--on-accent);
  background: var(--coral);
  border-color: var(--coral);
}

.button-secondary {
  color: var(--on-dark);
  background: rgba(246, 242, 232, 0.08);
  border-color: rgba(246, 242, 232, 0.22);
}

.button-dark {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.button-outline {
  color: var(--ink);
  border-color: var(--control-border);
}

.button-imdb {
  color: #111418;
  background: #f5c518;
  border-color: #f5c518;
}

.button-imdb:hover,
.button-imdb:focus-visible {
  background: #e2b616;
  border-color: #111418;
}

.button-imdb:focus-visible {
  outline: 3px solid #111418;
  outline-offset: 3px;
}

.portfolio-reels {
  margin: 1.5rem 0 2rem;
}

.portfolio-reels h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-reel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portfolio-reel-links .button {
  flex: 1 1 240px;
}

.portfolio-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-translucent);
}

.portfolio-bridge h3 {
  max-width: 620px;
  margin: 8px 0 0;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.06;
}

.portfolio-bridge .button {
  flex: 0 0 auto;
}

.portfolio-page-main {
  width: min(1120px, calc(100% - 44px));
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 124px) 0 96px;
}

.portfolio-page-intro {
  max-width: 960px;
}

.portfolio-page-intro h1 {
  margin-top: 16px;
  font-size: clamp(3rem, 5.6vw, 4.6rem);
}

.back-link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.portfolio-sound-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: 58px;
  padding: clamp(24px, 4vw, 48px);
  color: var(--on-dark);
  background: var(--dark-surface-2);
  border-radius: 14px;
  box-shadow: 0 28px 60px -44px var(--shadow);
}

.portfolio-sound-copy h2 {
  max-width: 560px;
  margin-top: 14px;
  font-size: clamp(2.2rem, 4vw, 3.65rem);
}

.portfolio-sound-feature figure {
  width: 100%;
  max-width: 340px;
  justify-self: end;
  margin: 0;
}

.portfolio-sound-feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 10px;
  background: #080b0f;
}

.portfolio-sound-feature figcaption {
  margin-top: 10px;
  color: rgba(243, 239, 229, 0.64);
  font-size: 0.84rem;
}

.portfolio-page-reels {
  margin-top: 58px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.portfolio-page-reels h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.portfolio-page-reels .button {
  min-width: 0;
  min-height: 64px;
  text-align: center;
}

.portfolio-page-reels .portfolio-reel-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-section,
.about-section,
.site-footer {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.work-section {
  padding: 78px 0 84px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.9fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.about-copy h2,
.coming-card h2 {
  margin-top: 10px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.section-heading > p,
.about-copy > p:last-child {
  color: var(--text-muted);
}

.carousel-shell {
  position: relative;
}

.carousel-motion-control {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 9px 16px;
  color: var(--ink);
  background: var(--surface-control);
  border: 1px solid var(--control-border);
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.carousel-motion-control:hover {
  border-color: var(--coral);
  transform: translateY(-1px);
}

.carousel-motion-toggle:focus-visible + .carousel-motion-control {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.carousel-motion-toggle:checked + .carousel-motion-control {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.carousel-motion-toggle:checked + .carousel-motion-control .carousel-motion-pause-label,
.carousel-motion-toggle:not(:checked) + .carousel-motion-control .carousel-motion-resume-label {
  display: none;
}

.poster-wheel {
  --poster-wheel-gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 5px 2px 20px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--focus-ring) var(--scroll-track);
  scrollbar-width: thin;
}

.poster-wheel:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 6px;
}

.poster-wheel-track {
  display: flex;
  width: max-content;
  animation: poster-wheel-turn 240s linear infinite;
  will-change: transform;
}

.poster-wheel-group {
  display: flex;
  flex: 0 0 auto;
}

@media (hover: hover) {
  .poster-wheel:hover .poster-wheel-track {
    animation-play-state: paused;
  }
}

.poster-wheel:focus-within .poster-wheel-track,
.poster-wheel.is-touching .poster-wheel-track {
  animation-play-state: paused;
}

.carousel-motion-toggle:checked ~ .poster-wheel .poster-wheel-track {
  animation-play-state: paused;
}

.poster-wheel::-webkit-scrollbar {
  height: 10px;
}

.poster-wheel::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 999px;
}

.poster-wheel::-webkit-scrollbar-thumb {
  background: var(--focus-ring);
  border-radius: 999px;
}

.poster-card,
.poster-link {
  display: grid;
  grid-template-rows: auto 1fr;
}

.poster-card {
  flex: 0 0 184px;
  min-width: 0;
  margin-right: var(--poster-wheel-gap);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-card);
  box-shadow: 0 18px 44px -36px var(--shadow);
  scroll-snap-align: start;
}

.poster-link {
  min-width: 0;
  color: inherit;
  border-radius: inherit;
  text-decoration: none;
}

.poster-link:hover,
.poster-link:focus-visible {
  background: var(--surface-hover);
}

.poster-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

.poster-art {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  padding: 8px;
  object-fit: contain;
  background: var(--dark-surface-2);
}

.poster-card p {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 10px 12px 12px;
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

@keyframes poster-wheel-turn {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 28px;
  padding: 74px 0 82px;
  border-top: 1px solid var(--line);
}

.about-copy {
  align-self: center;
  padding-right: min(7vw, 74px);
}

.about-copy > p:last-child {
  max-width: 610px;
  margin-top: 22px;
  font-size: 1.05rem;
}

.coming-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-translucent);
  box-shadow: 0 22px 56px -42px var(--shadow);
}

.pdf-status {
  margin-top: 24px;
  padding-top: 18px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer a {
  color: var(--text-link);
  text-underline-offset: 3px;
}

.site-footer p {
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

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

@media (max-width: 960px) {
  .portfolio-page-reels .portfolio-reel-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 820px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
    padding: 10px 22px 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    gap: clamp(6px, 2vw, 16px);
    margin-left: 0;
  }

  .site-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .theme-picker {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    min-height: 560px;
  }

  .section-heading,
  .about-section {
    grid-template-columns: 1fr;
  }

  .portfolio-bridge {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-sound-feature {
    grid-template-columns: 1fr;
  }

  .portfolio-sound-feature figure {
    width: min(100%, clamp(240px, 65vw, 420px));
    max-width: 420px;
    justify-self: center;
    margin: 0 auto;
  }

  .about-copy {
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: relative;
    gap: 4px 8px;
    padding: 9px 16px 10px;
  }

  .brand-logo {
    width: 42px;
    height: 38px;
  }

  .brand-w {
    font-size: 2.72rem;
  }

  .brand-copy strong {
    font-size: 0.88rem;
  }

  .brand-copy span {
    font-size: 0.59rem;
  }

  .site-nav {
    font-size: 0.82rem;
  }

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

  .theme-picker select {
    width: 86px;
    min-height: 44px;
    padding: 7px 24px 7px 8px;
    font-size: 0.75rem;
  }

  .hero {
    min-height: 540px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 76px 0 54px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .action-row .button {
    width: 100%;
  }

  .work-section,
  .about-section,
  .site-footer,
  .portfolio-page-main {
    width: calc(100% - 32px);
  }

  .portfolio-page-main {
    padding: 58px 0 64px;
  }

  .portfolio-page-intro h1 {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .portfolio-sound-feature {
    padding: 24px;
  }

  .portfolio-bridge {
    padding: 24px;
  }

  .portfolio-bridge .button,
  .portfolio-page-reels .button {
    width: 100%;
  }

  .portfolio-page-reels .portfolio-reel-links {
    grid-template-columns: 1fr;
  }

  .portfolio-page-reels .button:last-child {
    grid-column: auto;
  }

  .work-section {
    padding: 58px 0 64px;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 28px;
  }

  .poster-wheel {
    --poster-wheel-gap: 10px;
    padding-bottom: 16px;
  }

  .poster-card {
    flex-basis: 142px;
  }

  .poster-card p {
    min-height: 50px;
    padding: 9px 10px 11px;
    font-size: 0.88rem;
  }

  .about-section {
    padding: 58px 0 64px;
  }

  .coming-card {
    padding: 26px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .carousel-motion-toggle,
  .carousel-motion-control {
    display: none;
  }

  .poster-wheel-track {
    animation: none;
    transform: none;
    will-change: auto;
  }

  .poster-wheel-group[aria-hidden="true"] {
    display: none;
  }
}
