:root {
  --ink: #171513;
  --paper: #fff8ec;
  --cream: #f7f1e3;
  --coral: #ff7650;
  --rose: #f7a6bd;
  --sun: #f6c84e;
  --teal: #1e8b8a;
  --blue: #384a76;
  --plum: #6b3b61;
  --accent: var(--teal);
  --story-scroll: 0;
  --shadow: 0 28px 80px rgba(23, 21, 19, 0.22);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 20%, rgba(246, 200, 78, 0.28), transparent 34%),
    linear-gradient(135deg, #fbfaf4 0%, #f0eadc 46%, #dfe9e3 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(23, 21, 19, 0.2) 0 0.6px, transparent 0.8px),
    radial-gradient(circle at 72% 44%, rgba(255, 255, 255, 0.65) 0 0.5px, transparent 0.7px);
  background-size: 9px 9px, 13px 13px;
  mix-blend-mode: multiply;
}

body::after {
  opacity: 0.34;
  background:
    radial-gradient(circle at var(--glow-x, 32%) 28%, rgba(255, 118, 80, 0.18), transparent 28%),
    radial-gradient(circle at 78% var(--glow-y, 62%), rgba(30, 139, 138, 0.2), transparent 30%);
  background-size: 120% 120%;
  animation: background-drift 18s ease-in-out infinite alternate;
}

main {
  position: relative;
  z-index: 1;
}

@keyframes background-drift {
  0% {
    --glow-x: 24%;
    --glow-y: 68%;
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  100% {
    --glow-x: 42%;
    --glow-y: 48%;
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

body[data-page="reel"] {
  --accent: var(--teal);
  background:
    radial-gradient(circle at 70% 34%, rgba(255, 118, 80, 0.2), transparent 34%),
    radial-gradient(circle at 20% 24%, rgba(30, 139, 138, 0.22), transparent 34%),
    linear-gradient(135deg, #1a1d21 0%, #28242b 48%, #412b37 100%);
}

body[data-page="gallery"] {
  --accent: #255e77;
}

body[data-page="casting"] {
  --accent: #d75849;
}

body[data-page="personality"] {
  --accent: var(--plum);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(251, 250, 244, 0.72);
  border-bottom: 1px solid rgba(23, 21, 19, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
  line-height: 1;
}

.brand-name {
  font-size: 1rem;
}

.brand-role {
  color: rgba(23, 21, 19, 0.56);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  font-weight: 750;
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.site-nav a {
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.admin-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  color: #fff8ec;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(23, 21, 19, 0.18);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 850;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.admin-trigger:hover,
.admin-trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(23, 21, 19, 0.24);
}

body[data-page="reel"] .site-header {
  background: rgba(17, 18, 20, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body[data-page="reel"] .brand,
body[data-page="reel"] .site-nav {
  color: #fff8ec;
}

body[data-page="reel"] .brand-mark {
  color: var(--ink);
  background: #fff8ec;
}

body[data-page="reel"] .brand-role {
  color: rgba(255, 248, 236, 0.6);
}

body[data-page="reel"] .admin-trigger {
  color: var(--ink);
  background: #fff8ec;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  align-items: center;
  min-height: 88vh;
  padding: 7.75rem clamp(1rem, 5vw, 5rem) 3rem;
  gap: clamp(2rem, 7vw, 6rem);
}

.reveal-item {
  --reveal-y: 1.25rem;
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-section.is-visible .reveal-item {
  --reveal-y: 0rem;
  opacity: 1;
}

.reveal-section.is-visible .reveal-item:nth-child(2) {
  transition-delay: 120ms;
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: clamp(0.82rem, 1.5vw, 0.98rem);
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 11vw, 10.5rem);
  font-weight: 500;
  line-height: 0.84;
}

body[data-page="personality"] h1 {
  max-width: 100%;
  font-size: clamp(3.6rem, 7.1vw, 6.8rem);
}

.hero-line {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: rgba(23, 21, 19, 0.72);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
}

body[data-page="reel"] .hero-copy {
  color: #fff8ec;
}

body[data-page="reel"] .hero-line {
  color: rgba(255, 248, 236, 0.74);
}

.page-cue {
  margin: 1rem 0 0;
  color: var(--accent);
  font-size: clamp(0.78rem, 1.3vw, 0.92rem);
  font-weight: 950;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid currentColor;
  color: var(--ink);
  font-weight: 850;
}

.text-link::after {
  content: "\2197";
  margin-left: 0.45rem;
}

.text-link.muted {
  color: rgba(23, 21, 19, 0.55);
}

body[data-page="reel"] .text-link {
  color: #fff8ec;
}

body[data-page="reel"] .text-link.muted {
  color: rgba(255, 248, 236, 0.58);
}

.card-stage {
  position: relative;
  width: min(100%, 41rem);
  aspect-ratio: 1.2 / 1;
  justify-self: center;
  perspective: 1400px;
  transform: translate3d(0, calc(var(--reveal-y, 0rem) + (var(--story-scroll) * -0.9rem)), 0) rotateX(calc(var(--story-scroll) * 1.2deg));
  transform-style: preserve-3d;
  transition: transform 180ms linear;
}

.card-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -11%;
  z-index: 0;
  height: 24%;
  background: radial-gradient(ellipse at center, rgba(23, 21, 19, 0.28), rgba(23, 21, 19, 0) 68%);
  filter: blur(16px);
  opacity: 0.78;
  transform: translate3d(0, calc(var(--story-scroll) * 0.8rem), -6rem) scale(calc(1 + var(--story-scroll) * 0.08));
  transition: opacity 320ms ease;
}

.portfolio-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--ink);
  background: linear-gradient(145deg, #ff7d4d 0%, #ff7d4d 48%, #f5a2ba 100%);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  transform-origin: center;
  will-change: transform, filter;
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 320ms ease,
    box-shadow 320ms ease;
}

.portfolio-card:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 6px;
}

.portfolio-card:not(.is-active) {
  filter: saturate(0.9) brightness(0.97);
}

.gallery-card {
  background: linear-gradient(145deg, #255e77 0%, #2f8c8a 54%, #f0c957 100%);
}

.casting-card {
  background: linear-gradient(145deg, #fff5e2 0%, #f5cb52 45%, #d75849 100%);
}

.personality-card {
  background: linear-gradient(145deg, #2d273f 0%, #6b3b61 46%, #df6d5a 100%);
}

.portfolio-card.stack-slot-1 {
  z-index: 5;
  transform: translate3d(-1.35rem, 1.45rem, -1.6rem) rotate(-7deg);
}

.portfolio-card.stack-slot-2 {
  z-index: 4;
  transform: translate3d(1.85rem, 2.7rem, -2.8rem) rotate(6deg);
}

.portfolio-card.stack-slot-3 {
  z-index: 3;
  transform: translate3d(-0.15rem, 4rem, -4rem) rotate(2deg);
}

.portfolio-card.is-active {
  z-index: 8;
  transform: translate3d(0, 0, 5rem) rotate(-1deg);
  filter: saturate(1.04);
}

body[data-page="gallery"] .portfolio-card {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="gallery"] .portfolio-card.is-active {
  transform: translate3d(0, 0, 5.25rem) rotate(-2deg) scale(1.01);
}

body[data-page="gallery"] .portfolio-card.stack-slot-1 {
  transform: translate3d(-3.2rem, 1.05rem, -1.25rem) rotate(-12deg);
}

body[data-page="gallery"] .portfolio-card.stack-slot-2 {
  transform: translate3d(2.7rem, 1.8rem, -2.2rem) rotate(9deg);
}

body[data-page="gallery"] .portfolio-card.stack-slot-3 {
  transform: translate3d(-0.5rem, 3.6rem, -3.4rem) rotate(3deg);
}

body[data-page="reel"] .portfolio-card {
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body[data-page="reel"] .portfolio-card:not(.is-active) {
  filter: blur(1.35px) saturate(0.62) brightness(0.62);
  opacity: 0.72;
}

body[data-page="reel"] .portfolio-card.is-active {
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(255, 248, 236, 0.18),
    0 34px 100px rgba(0, 0, 0, 0.48);
  transform: translate3d(0, -0.25rem, 6.5rem) rotate(0deg) scale(1.075);
}

body[data-page="reel"] .portfolio-card.stack-slot-1 {
  transform: translate3d(0, 0.9rem, -1.6rem) rotate(0deg) scale(0.96);
}

body[data-page="reel"] .portfolio-card.stack-slot-2 {
  transform: translate3d(0, 1.8rem, -2.7rem) rotate(0deg) scale(0.92);
}

body[data-page="reel"] .portfolio-card.stack-slot-3 {
  transform: translate3d(0, 2.7rem, -3.8rem) rotate(0deg) scale(0.88);
}

body[data-page="reel"] .reel-card.is-active .paper-stack {
  transform: rotate(0deg) scale(1.08);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

body[data-page="reel"] .reel-card.is-active .photo-strip {
  box-shadow: inset 0 0 0 2px rgba(255, 248, 236, 0.78);
}

body[data-page="casting"] .portfolio-card {
  transition-duration: 520ms;
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body[data-page="casting"] .portfolio-card.is-active {
  border-radius: 4px;
  box-shadow: 0 18px 54px rgba(23, 21, 19, 0.18);
  transform: translate3d(0, 0, 5.25rem) rotate(0deg) scale(1);
}

body[data-page="casting"] .portfolio-card.stack-slot-1 {
  transform: translate3d(-0.55rem, 0.85rem, -1.3rem) rotate(-1deg) scale(0.985);
}

body[data-page="casting"] .portfolio-card.stack-slot-2 {
  transform: translate3d(0.55rem, 1.7rem, -2.4rem) rotate(1deg) scale(0.965);
}

body[data-page="casting"] .portfolio-card.stack-slot-3 {
  transform: translate3d(0, 2.55rem, -3.5rem) rotate(0deg) scale(0.945);
}

body[data-page="casting"] .casting-card.is-active .casting-sheet {
  transform: rotate(0deg);
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body[data-page="personality"] .portfolio-card {
  transition-duration: 880ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="personality"] .portfolio-card.is-active {
  animation: soft-card-float 5.8s ease-in-out infinite;
  transform: translate3d(0, 0, 5rem) rotate(-1.5deg);
}

body[data-page="personality"] .portfolio-card.stack-slot-1 {
  transform: translate3d(-1.25rem, 1.15rem, -1.8rem) rotate(-4deg);
}

body[data-page="personality"] .portfolio-card.stack-slot-2 {
  transform: translate3d(1.45rem, 2.1rem, -2.9rem) rotate(3deg);
}

body[data-page="personality"] .portfolio-card.stack-slot-3 {
  transform: translate3d(-0.2rem, 3.1rem, -4rem) rotate(1deg);
}

@keyframes soft-card-float {
  0%,
  100% {
    transform: translate3d(0, 0, 5rem) rotate(-1.5deg);
  }

  50% {
    transform: translate3d(0, -0.65rem, 5rem) rotate(0.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .portfolio-card,
  .paper-stack,
  .casting-sheet,
  .reveal-item,
  .card-stage,
  .card-stage::before,
  .video-modal-panel {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  body::after,
  .reveal-item,
  .card-stage,
  .card-stage::before,
  .video-modal-panel {
    transform: none !important;
  }

  .reveal-item {
    opacity: 1;
  }
}

.card-kicker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  font-weight: 850;
  text-transform: uppercase;
}

.card-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 850;
}

.count-badge {
  display: inline-grid;
  min-width: 3.25rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(92, 53, 57, 0.58);
  color: #fff;
  font-size: 0.95rem;
}

.paper-stack {
  position: absolute;
  left: 9%;
  right: 7%;
  top: 12%;
  bottom: 15%;
  transform: rotate(-3deg);
}

.paper {
  position: absolute;
  display: block;
  background: #fffdf6;
  box-shadow: 0 14px 18px rgba(23, 21, 19, 0.2);
}

.tab-paper {
  inset: 17% 14% 8% 2%;
  transform: rotate(-11deg);
  background:
    linear-gradient(90deg, #fff6dc 0 30%, #f0c94e 30% 68%, #f26e58 68%),
    #fff6dc;
}

.tab-paper::before {
  content: "ISABEL";
  position: absolute;
  top: 18%;
  left: 7%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 5vw, 3rem);
  font-weight: 800;
}

.casting-paper {
  inset: 20% 4% 2% 18%;
  transform: rotate(8deg);
}

.casting-paper::before {
  content: "CHAD WOODS";
  position: absolute;
  left: 10%;
  bottom: 8%;
  font-size: clamp(2.2rem, 7vw, 5.75rem);
  font-weight: 950;
  letter-spacing: 0;
}

.hero-paper {
  inset: 0 3% 13% 10%;
  padding: 6% 7%;
  transform: rotate(4deg);
}

.tiny-type {
  position: absolute;
  top: 10%;
  right: 8%;
  color: rgba(23, 21, 19, 0.56);
  font-size: clamp(0.38rem, 1.1vw, 0.65rem);
  font-weight: 800;
  text-transform: uppercase;
}

.photo-strip {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 31%;
  height: 45%;
  overflow: hidden;
  background: #d8eff1;
  transform: skewX(6deg);
}

.card-play-button {
  position: absolute;
  right: 6%;
  bottom: 8%;
  z-index: 4;
  display: grid;
  min-width: clamp(3.1rem, 7vw, 5.4rem);
  min-height: clamp(1.85rem, 4vw, 2.75rem);
  place-items: center;
  color: #fff8ec;
  background: rgba(23, 21, 19, 0.78);
  border: 1px solid rgba(255, 248, 236, 0.34);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(23, 21, 19, 0.24);
  cursor: pointer;
  font-size: clamp(0.58rem, 1.3vw, 0.82rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    background 220ms ease;
}

.card-play-button:hover,
.card-play-button:focus-visible {
  background: rgba(23, 21, 19, 0.92);
  transform: scale(1.04);
}

.reel-card:not(.is-active) .card-play-button {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

.portrait {
  position: absolute;
  display: block;
  inset: 0;
}

.portrait-main {
  background:
    radial-gradient(circle at 58% 34%, #f4c7a9 0 9%, transparent 10%),
    radial-gradient(circle at 61% 53%, #bf3d3e 0 4%, transparent 5%),
    radial-gradient(circle at 63% 35%, #8c513a 0 18%, transparent 19%),
    linear-gradient(100deg, #f1d23e 0 31%, transparent 32%),
    linear-gradient(180deg, #abd9dd 0 55%, #f3eee4 56% 100%);
}

.portrait-side {
  clip-path: polygon(57% 0, 100% 0, 100% 100%, 46% 100%);
  background:
    radial-gradient(circle at 70% 63%, #f0b289 0 13%, transparent 14%),
    radial-gradient(circle at 72% 48%, #8c513a 0 17%, transparent 18%),
    linear-gradient(180deg, #ea6956 0 60%, #f2b347 61% 100%);
  mix-blend-mode: multiply;
  opacity: 0.8;
}

.gallery-grid {
  position: absolute;
  inset: 18% 10% 19%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(0.45rem, 1.5vw, 0.9rem);
  transform: rotate(-2deg);
}

.gallery-grid span {
  display: block;
  border: 0.35rem solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 24px rgba(23, 21, 19, 0.18);
  background:
    radial-gradient(circle at 54% 32%, #f4c4a4 0 14%, transparent 15%),
    linear-gradient(160deg, #f5d154 0 35%, #2f8c8a 36% 64%, #263d5e 65%);
}

.gallery-grid span:nth-child(2) {
  background:
    radial-gradient(circle at 50% 28%, #d9a079 0 13%, transparent 14%),
    linear-gradient(150deg, #f7f1e3 0 40%, #d75849 41% 100%);
}

.gallery-grid span:nth-child(3) {
  background:
    radial-gradient(circle at 46% 35%, #e7ad89 0 13%, transparent 14%),
    linear-gradient(160deg, #35446f 0 50%, #ff7650 51% 100%);
}

.gallery-grid span:nth-child(4) {
  grid-column: span 2;
  background:
    radial-gradient(circle at 30% 32%, #efbe9b 0 12%, transparent 13%),
    linear-gradient(120deg, #1e8b8a 0 54%, #f6c84e 55% 100%);
}

.gallery-grid span.has-upload {
  background-color: #dfe9e3;
}

.casting-sheet {
  position: absolute;
  inset: 16% 10% 17%;
  display: grid;
  align-content: start;
  gap: clamp(0.34rem, 1vw, 0.72rem);
  padding: clamp(0.9rem, 2.5vw, 1.65rem);
  background: #fffdf6;
  box-shadow: 0 22px 38px rgba(23, 21, 19, 0.22);
  transform: rotate(3deg);
}

.casting-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3.7vw, 3.35rem);
  line-height: 0.88;
}

.resume-section {
  display: grid;
  gap: 0.16rem;
  padding-top: clamp(0.18rem, 0.6vw, 0.42rem);
  border-top: 1px solid rgba(23, 21, 19, 0.16);
}

.resume-heading {
  color: #d75849;
  font-size: clamp(0.46rem, 1.15vw, 0.72rem);
  font-weight: 950;
  text-transform: uppercase;
}

.resume-line,
.resume-note {
  display: block;
  color: rgba(23, 21, 19, 0.74);
  font-size: clamp(0.45rem, 1.08vw, 0.68rem);
  font-weight: 800;
  line-height: 1.1;
}

.resume-note {
  color: rgba(23, 21, 19, 0.52);
}

.personality-collage {
  position: absolute;
  inset: 18% 8% 22%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: clamp(0.58rem, 1.4vw, 0.95rem);
  transform: rotate(-4deg);
}

.tone-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: clamp(2.1rem, 4.8vw, 3.65rem);
  padding: 0 clamp(0.8rem, 1.9vw, 1.35rem);
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  font-size: clamp(0.88rem, 1.9vw, 1.6rem);
  font-weight: 850;
}

.page-panel {
  padding: 0 clamp(1rem, 5vw, 5rem) 5rem;
}

.page-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3rem) 0 0;
  border-top: 1px solid rgba(23, 21, 19, 0.14);
}

.page-number {
  color: var(--accent);
  font-weight: 900;
}

.page-panel h2 {
  margin: 2.2rem 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
}

.page-panel p {
  margin: 0;
  color: rgba(23, 21, 19, 0.66);
  line-height: 1.6;
}

.detail-list {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-list li {
  display: grid;
  align-content: center;
  gap: 0.38rem;
  min-height: 4.25rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(23, 21, 19, 0.12);
  color: rgba(23, 21, 19, 0.78);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
}

.detail-list h3 {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.detail-list p {
  margin: 0;
  color: rgba(23, 21, 19, 0.72);
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  font-weight: 750;
  line-height: 1.45;
}

.detail-list li:last-child {
  border-bottom: 1px solid rgba(23, 21, 19, 0.12);
}

.media-showcase {
  padding: 0 clamp(1rem, 5vw, 5rem) 6rem;
}

.media-showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.media-showcase-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
}

.media-showcase-copy,
.media-status {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: rgba(23, 21, 19, 0.7);
  line-height: 1.65;
}

.media-status {
  max-width: 20rem;
  font-weight: 750;
}

.media-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.media-surface {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(23, 21, 19, 0.1);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(23, 21, 19, 0.09);
  backdrop-filter: blur(18px);
}

.surface-heading-row,
.admin-library-heading,
.admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.surface-kicker {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surface-heading-row h3,
.admin-form h3,
.admin-library-heading h3,
.admin-auth-card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.surface-count,
.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(37, 94, 119, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-badge.is-draft {
  color: #675f4c;
  background: rgba(103, 95, 76, 0.14);
}

.admin-badge.is-live {
  color: #0b5755;
  background: rgba(30, 139, 138, 0.14);
}

.admin-badge.is-featured {
  color: #8e4133;
  background: rgba(215, 88, 73, 0.16);
}

.gallery-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 21, 19, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(23, 21, 19, 0.08);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #dfe9e3;
}

.gallery-item figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
}

.gallery-item h4,
.featured-reel-copy h4,
.reel-item h4,
.admin-library-copy h4 {
  margin: 0;
  font-size: 1rem;
}

.gallery-item p,
.featured-reel-copy p,
.reel-item p,
.admin-library-copy p,
.admin-auth-card p,
.admin-form-copy,
.admin-note,
.admin-toolbar-note,
.admin-empty p {
  margin: 0;
  color: rgba(23, 21, 19, 0.7);
  line-height: 1.6;
}

.media-meta {
  color: rgba(23, 21, 19, 0.54);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.media-empty,
.admin-empty {
  display: grid;
  gap: 0.45rem;
  align-content: center;
  min-height: 13.5rem;
  padding: 1.2rem;
  border: 1px dashed rgba(23, 21, 19, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.media-empty h4,
.admin-empty h4 {
  margin: 0;
  font-size: 1rem;
}

.featured-reel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  gap: 1rem;
  margin-top: 1rem;
}

.featured-reel-player-shell {
  overflow: hidden;
  background: #050505;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(23, 21, 19, 0.16);
}

.featured-reel-player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.featured-reel-copy {
  display: grid;
  align-content: center;
  gap: 0.55rem;
}

.featured-reel-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reel-feed {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.reel-item,
.admin-library-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 21, 19, 0.08);
  border-radius: 18px;
}

.reel-item.is-featured {
  border-color: rgba(37, 94, 119, 0.3);
  box-shadow: inset 0 0 0 1px rgba(37, 94, 119, 0.26);
}

.reel-item-copy {
  display: grid;
  gap: 0.35rem;
}

.reel-item-actions {
  display: flex;
  justify-content: flex-end;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 850;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.primary-button {
  color: #fff8ec;
  background: var(--ink);
  border: 0;
  box-shadow: 0 16px 32px rgba(23, 21, 19, 0.2);
}

.secondary-button {
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(23, 21, 19, 0.16);
}

.ghost-button {
  color: var(--ink);
  background: rgba(23, 21, 19, 0.04);
  border: 1px solid rgba(23, 21, 19, 0.1);
}

.ghost-button.danger {
  color: #a63232;
  border-color: rgba(166, 50, 50, 0.22);
}

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

.admin-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  justify-items: end;
  padding: 1rem;
}

.admin-shell[hidden] {
  display: none;
}

.admin-shell-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 20, 0.7);
  border: 0;
  backdrop-filter: blur(12px);
}

.admin-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 44rem);
  height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(246, 200, 78, 0.22), transparent 26%),
    linear-gradient(180deg, #fff9ef 0%, #eef4ef 100%);
  border: 1px solid rgba(23, 21, 19, 0.08);
  border-radius: 26px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.28);
}

.admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-panel-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
}

.admin-close {
  display: grid;
  width: 2.75rem;
  aspect-ratio: 1;
  place-items: center;
  color: #fff8ec;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.admin-auth-card,
.admin-form,
.admin-library-section {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 21, 19, 0.08);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(23, 21, 19, 0.08);
}

.admin-auth-card,
.admin-form {
  display: grid;
  gap: 0.35rem;
}

.admin-dashboard {
  display: grid;
  gap: 1rem;
}

.admin-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-group {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.field-group span,
.checkbox-field span {
  color: rgba(23, 21, 19, 0.84);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 21, 19, 0.14);
  border-radius: 16px;
  font: inherit;
}

.field-group textarea {
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.checkbox-field input {
  width: 1rem;
  height: 1rem;
}

.form-status {
  margin: 0.2rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(30, 139, 138, 0.1);
  color: #0b5755;
  font-size: 0.88rem;
  font-weight: 750;
}

.form-status.is-error {
  background: rgba(166, 50, 50, 0.12);
  color: #8b2020;
}

.admin-library {
  display: grid;
  gap: 1rem;
}

.admin-library-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.admin-library-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-library-thumb {
  width: 4rem;
  aspect-ratio: 1;
  background-color: #dfe9e3;
  background-position: center;
  background-size: cover;
  border-radius: 16px;
}

.admin-library-thumb.is-reel {
  display: grid;
  place-items: center;
  color: #fff8ec;
  background: linear-gradient(145deg, #255e77, #2f8c8a);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.admin-library-copy {
  display: grid;
  gap: 0.3rem;
}

.admin-library-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

body.is-admin-open {
  overflow: hidden;
}

body[data-page="reel"] .page-panel {
  color: #fff8ec;
}

body[data-page="reel"] .page-panel-inner,
body[data-page="reel"] .detail-list li,
body[data-page="reel"] .detail-list li:last-child {
  border-color: rgba(255, 248, 236, 0.16);
}

body[data-page="reel"] .page-panel p,
body[data-page="reel"] .detail-list li {
  color: rgba(255, 248, 236, 0.72);
}

body[data-page="reel"] .detail-list {
  grid-column: 1 / -1;
}

body[data-page="reel"] .media-showcase-header h2,
body[data-page="reel"] .media-surface,
body[data-page="reel"] .gallery-item,
body[data-page="reel"] .reel-item,
body[data-page="reel"] .media-empty {
  color: #fff8ec;
}

body[data-page="reel"] .media-showcase-copy,
body[data-page="reel"] .media-status,
body[data-page="reel"] .gallery-item p,
body[data-page="reel"] .featured-reel-copy p,
body[data-page="reel"] .reel-item p,
body[data-page="reel"] .media-empty p {
  color: rgba(255, 248, 236, 0.76);
}

body[data-page="reel"] .media-meta {
  color: rgba(255, 248, 236, 0.58);
}

body[data-page="reel"] .media-surface,
body[data-page="reel"] .gallery-item,
body[data-page="reel"] .reel-item,
body[data-page="reel"] .media-empty {
  background: rgba(255, 248, 236, 0.08);
  border-color: rgba(255, 248, 236, 0.14);
}

body[data-page="reel"] .surface-count,
body[data-page="reel"] .admin-badge {
  color: #fff8ec;
  background: rgba(255, 248, 236, 0.12);
}

body[data-page="reel"] .secondary-button,
body[data-page="reel"] .ghost-button {
  color: #fff8ec;
  border-color: rgba(255, 248, 236, 0.22);
  background: rgba(255, 248, 236, 0.08);
}

body.is-video-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 20, 0.74);
  border: 0;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 70rem);
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 248, 236, 0.08),
    0 38px 120px rgba(0, 0, 0, 0.56);
  animation: video-pop 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.video-modal video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 8rem);
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

.video-close {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  color: #fff8ec;
  background: rgba(17, 18, 20, 0.74);
  border: 1px solid rgba(255, 248, 236, 0.28);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

@keyframes video-pop {
  from {
    opacity: 0;
    transform: translate3d(0, 1rem, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (hover: hover) {
  .portfolio-card:hover {
    box-shadow: 0 34px 92px rgba(23, 21, 19, 0.28);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 7rem;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 12ch;
  }

  .card-stage {
    width: min(100%, 35rem);
  }

  .page-panel-inner {
    grid-template-columns: 1fr;
  }

  .site-header-actions,
  .media-layout,
  .featured-reel,
  .admin-forms {
    grid-template-columns: 1fr;
  }

  .site-header-actions {
    justify-content: stretch;
  }

  .media-showcase-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    justify-content: flex-start;
    font-size: 0.84rem;
  }

  .site-header-actions {
    width: 100%;
    display: grid;
    gap: 0.75rem;
  }

  .admin-trigger {
    width: 100%;
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: clamp(3.9rem, 17vw, 5rem);
  }

  body[data-page="personality"] h1 {
    font-size: clamp(3rem, 13vw, 4.35rem);
  }

  .hero-actions {
    margin-top: 1.45rem;
  }

  .card-stage {
    aspect-ratio: 1.18 / 1;
  }

  .portfolio-card {
    padding: 1rem;
  }

  .portfolio-card.stack-slot-1 {
    transform: translate3d(-0.7rem, 1rem, -1.6rem) rotate(-6deg);
  }

  .portfolio-card.stack-slot-2 {
    transform: translate3d(0.8rem, 1.9rem, -2.8rem) rotate(5deg);
  }

  .portfolio-card.stack-slot-3 {
    transform: translate3d(-0.05rem, 2.75rem, -4rem) rotate(2deg);
  }

  .portfolio-card.is-active {
    transform: translate3d(0, 0, 5rem) rotate(-1deg);
  }

  body[data-page="gallery"] .portfolio-card.stack-slot-1 {
    transform: translate3d(-1.15rem, 0.9rem, -1.25rem) rotate(-9deg);
  }

  body[data-page="gallery"] .portfolio-card.stack-slot-2 {
    transform: translate3d(1.1rem, 1.45rem, -2.2rem) rotate(7deg);
  }

  body[data-page="gallery"] .portfolio-card.stack-slot-3 {
    transform: translate3d(-0.15rem, 2.35rem, -3.4rem) rotate(2deg);
  }

  body[data-page="reel"] .portfolio-card.stack-slot-1 {
    transform: translate3d(0, 0.75rem, -1.6rem) rotate(0deg) scale(0.96);
  }

  body[data-page="reel"] .portfolio-card.stack-slot-2 {
    transform: translate3d(0, 1.5rem, -2.7rem) rotate(0deg) scale(0.92);
  }

  body[data-page="reel"] .portfolio-card.stack-slot-3 {
    transform: translate3d(0, 2.25rem, -3.8rem) rotate(0deg) scale(0.88);
  }

  body[data-page="casting"] .portfolio-card.stack-slot-1 {
    transform: translate3d(-0.3rem, 0.75rem, -1.3rem) rotate(-1deg) scale(0.985);
  }

  body[data-page="casting"] .portfolio-card.stack-slot-2 {
    transform: translate3d(0.3rem, 1.5rem, -2.4rem) rotate(1deg) scale(0.965);
  }

  body[data-page="casting"] .portfolio-card.stack-slot-3 {
    transform: translate3d(0, 2.25rem, -3.5rem) rotate(0deg) scale(0.945);
  }

  body[data-page="personality"] .portfolio-card.stack-slot-1 {
    transform: translate3d(-0.7rem, 0.9rem, -1.8rem) rotate(-3deg);
  }

  body[data-page="personality"] .portfolio-card.stack-slot-2 {
    transform: translate3d(0.8rem, 1.65rem, -2.9rem) rotate(3deg);
  }

  body[data-page="personality"] .portfolio-card.stack-slot-3 {
    transform: translate3d(-0.1rem, 2.45rem, -4rem) rotate(1deg);
  }

  .paper-stack,
  .gallery-grid,
  .casting-sheet,
  .personality-collage {
    inset: 20% 9% 20%;
  }

  .personality-collage {
    inset: 18% 7% 24%;
  }

  .page-panel {
    padding-bottom: 3rem;
  }

  .media-showcase {
    padding-bottom: 3rem;
  }

  .admin-shell {
    padding: 0;
  }

  .admin-panel {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .reel-item,
  .admin-library-item {
    grid-template-columns: 1fr;
  }

  .reel-item-actions,
  .admin-library-actions {
    justify-content: flex-start;
  }
}
