/* Talent Post — matches the original Wix design: light gray page, deep purple text,
   centered header, two-column wall of posters. Colors meet WCAG 2.1 AA. */
:root {
  --bg: #f5f5f5;
  --ink: #281a39;        /* 14.6:1 on --bg */
  --nav: #281a39;
  --link: #3b2a8f;       /* 8.9:1 on --bg */
  --line: #dcdcdc;
  --imdb: #f5c518;
  /* Wix used Avenir LT 85 Heavy for nearly all text. Devices that have Avenir (Mac, iPhone) use it;
     everyone else gets Nunito Sans, the closest free match. */
  --heading: "TP Avenir Heavy", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --light: "TP Avenir Light", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --menu: "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Tahoma, Verdana, sans-serif;
  color-scheme: light;
}
@font-face { font-family: "TP Avenir Heavy"; font-weight: 400 900;
  src: local("Avenir Heavy"), local("Avenir-Heavy"), local("Avenir LT Std 85 Heavy"), local("AvenirLTStd-Heavy"), local("Avenir LT Pro 85 Heavy"), local("AvenirLTPro-Heavy"); }
@font-face { font-family: "TP Avenir Light"; font-weight: 400 900;
  src: local("Avenir Light"), local("Avenir-Light"), local("Avenir LT Std 35 Light"), local("AvenirLTStd-Light"), local("Avenir LT Pro 35 Light"), local("AvenirLTPro-Light"); }
*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: clip; margin: 0; background: var(--bg); color: var(--ink); font: 800 1rem/1.5 var(--heading); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
h1, h2 { font-family: var(--heading); font-weight: 800; margin: 0; line-height: 1.15; }
p { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
main { max-width: 1100px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); }
main:focus { outline: none; }

/* header */
.site-header { text-align: center; padding: 48px 16px 8px; }
.site-title { font-family: var(--heading); font-weight: 800; font-size: clamp(2rem, 6vw, 2.625rem); line-height: 1.2; }
.site-title a { color: var(--ink); text-decoration: none; }
.site-tagline { font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; list-style: none; margin: 10px 0 0; padding: 0; }
.nav a { display: block; padding: 6px 12px; font: 400 .9375rem/2 var(--menu); color: var(--nav); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.page-title { font-size: 1.875rem; text-align: center; margin: 24px 0 28px; }
.intro { max-width: 700px; margin: 0 auto 32px; text-align: center; font: 700 1rem/1.3 var(--light); text-wrap: pretty; }
.page-title + .intro { margin-top: -16px; }  /* keep the intro close to its heading */

/* home */
.features { max-width: 860px; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; margin-top: 56px; }
.feature { color: var(--ink); text-decoration: none; display: grid; gap: 10px; }
.feature h2 { font-size: 1.875rem; text-align: center; }
.feature img { width: 100%; aspect-ratio: 419 / 541; object-fit: cover; }
.feature:hover h2 { text-decoration: underline; }

/* poster wall: three columns */
.wall-wrap { container-type: inline-size; }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 14px; grid-auto-flow: dense;
  grid-auto-rows: calc((100cqw - 28px) / 300); }
.wall li { grid-column: var(--col); grid-row-end: span var(--span); }
.wall a { display: block; }
.wall img { width: 100%; }
/* Wix hover effect: the poster slowly zooms to 110% inside its frame */
.wall .tile { display: block; }
/* Networks: even grid of same-size logo tiles */
.wall.uniform { grid-template-columns: repeat(6, 1fr); grid-auto-rows: auto; gap: 14px; grid-auto-flow: row; }
.wall.uniform li { grid-column: span 2; grid-row-end: auto; }   /* three logos per row */
/* center an incomplete last row: one logo in the middle, or two side by side */
.wall.uniform li:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
.wall.uniform li:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
.wall.uniform .tile { aspect-ratio: 16 / 9; }
.wall.uniform .tile img { width: 100%; height: 100%; object-fit: cover; }
.wall.uniform .tile.fit img { object-fit: contain; }

/* Hover: the poster grows and lifts above its neighbors (mouse devices only) */
/* A hovered poster jumps to the top layer at once; a poster you leave slides down
   through the layers as it shrinks, so the newly hovered one always stays on top. */
.wall li { position: relative; z-index: 0; transition: transform 2.2s cubic-bezier(0.14, 0.4, 0.09, 0.99), z-index 2.2s linear; }
.wall .tile { transition: box-shadow 2.2s cubic-bezier(0.14, 0.4, 0.09, 0.99); }
.wall .cutout img { transition: filter 2.2s cubic-bezier(0.14, 0.4, 0.09, 0.99); }
@media (hover: hover) {
  .wall li:hover, .wall li:has(a:focus-visible) { transform: scale(1.2); z-index: 100; transition: transform 2.2s cubic-bezier(0.14, 0.4, 0.09, 0.99), z-index 0s; }
  .wall li:hover .tile, .wall li:has(a:focus-visible) .tile { box-shadow: 0 10px 28px rgba(20, 12, 30, .55), 0 2px 8px rgba(20, 12, 30, .35); }
  .wall li.cutout:hover .tile, .wall li.cutout:has(a:focus-visible) .tile { box-shadow: none; }
  .wall li.cutout:hover img, .wall li.cutout:has(a:focus-visible) img { filter: drop-shadow(0 4px 5px rgba(20, 12, 30, .22)); }
}

/* about */
.frame { width: min(100%, 380px); margin: 16px auto 40px; padding: 48px; background: #fff; border: 10px solid #e9e9e9; box-shadow: 0 2px 6px rgba(0,0,0,.18), inset 0 0 0 1px #d6d6d6; }
.person { max-width: 460px; margin: 0 auto 36px; text-align: center; display: grid; justify-items: center; gap: 2px; font-size: .8125rem; line-height: 1.3; }
.person h2 { font-size: 1.875rem; }
.role { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.imdb { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 4px; background: var(--imdb); color: #000; font: 900 1.1rem/1.3 Impact, "Arial Black", sans-serif; text-decoration: none; letter-spacing: -.02em; }
.imdb:hover { outline: 2px solid var(--ink); }
.dolby { width: min(100%, 420px); margin: 48px auto 40px; background: #281a39; padding: 14px 18px; border-radius: 4px; }
.suites { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.suites img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.suites .wide { grid-column: 1 / -1; width: min(100%, 420px); justify-self: center; }

/* contact */
.contact { text-align: center; display: grid; justify-items: center; gap: 16px; margin-top: 8px; }
.plane { width: 180px; }
.contact h1 { font-size: 1.875rem; }
.contact-line { font-weight: 800; }

/* text pages */
.prose { max-width: 720px; margin: 24px auto 0; font-size: .8125rem; line-height: 1.3; }
.prose h1 { font-size: 1.25rem; margin-bottom: 6px; }
.prose h2 { font-size: 1rem; margin: 24px 0 6px; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }

.updated-stamp { font-size: .8rem; }
.site-footer { text-align: center; padding: 28px 16px 40px; border-top: 1px solid var(--line); font-size: .9rem; display: grid; gap: 6px; }

@media (max-width: 640px) {
  /* phones: tighter header and headings so the posters start higher */
  .site-header { padding: 14px 12px 0; }
  .site-title { font-size: 1.6rem; line-height: 1.15; }
  .site-tagline { font-size: .9rem; line-height: 1.25; }
  .nav { margin-top: 6px; gap: 0; }
  .nav a { padding: 2px 7px; font-size: .8125rem; line-height: 1.7; }  /* links stay at least 24px tall */
  .nav a[aria-current="page"] { text-underline-offset: 4px; }
  main { padding-top: 6px; }
  .page-title { font-size: 1.35rem; margin: 10px 0 12px; }
  .page-title + .intro { margin-top: -4px; }
  .intro { font-size: .85rem; margin-bottom: 16px; }
  .features { margin-top: 14px; gap: 24px; }
  .feature h2 { font-size: 1.35rem; }
  .features { grid-template-columns: 1fr; }
  .wall { grid-template-columns: 1fr; grid-auto-rows: calc(100cqw / 100); grid-auto-flow: row; }
  .wall li { grid-column: 1; }
  .wall.uniform { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .wall.uniform li, .wall.uniform li:last-child:nth-child(3n+1), .wall.uniform li:nth-last-child(2):nth-child(3n+1) { grid-column: auto; }
  .wall.uniform li:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
  .suites { grid-template-columns: 1fr; }
  .frame { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .wall li:hover, .wall li:has(a:focus-visible) { transform: none; }
}
