/* Alexander Steinberg — site styles
   Palette and type mirror the existing Wix site: black ground, white panels, Poppins. */

:root {
  --black: #000000;
  --white: #ffffff;
  --panel-dark: #1c1c1c;
  --text-dim: #d9d9d9;
  --text-muted: #b3b3b3;
  --text-faint: #8c8c8c;
  --rule: #2a2a2a;
  --rule-light: #e0e0e0;
  --max: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Header / nav */
.site-header { padding: 28px 0 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wordmark { font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase; }
.nav { display: flex; gap: 32px; font-size: 14px; font-weight: 400; letter-spacing: 0.06em; }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--white); padding-bottom: 4px; }

/* Hero */
.hero { text-align: center; padding: 72px 0 88px; }
.hero h1, .hero .title { font-size: clamp(28px, 4.2vw, 52px); font-weight: 300; letter-spacing: 0.34em; text-transform: uppercase; line-height: 1.2; }
.hero .subtitle { font-size: 22px; font-weight: 400; margin-top: 18px; }
.hero .lede { font-size: 17px; color: var(--text-dim); max-width: 760px; margin: 20px auto 0; }

/* Split panels (photo + white panel) */
.split { display: grid; grid-template-columns: 5fr 7fr; }
.split.reverse { grid-template-columns: 5fr 7fr; }
.split .media { background: var(--panel-dark); min-height: 360px; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split .media.contain { background: var(--black); display: flex; align-items: center; }
.split .media.contain img { object-fit: contain; }
.split .panel { background: var(--white); color: var(--black); padding: 56px 64px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.split .panel h1 { font-size: clamp(32px, 3.6vw, 48px); }
.split .panel h2 { font-size: clamp(36px, 4vw, 52px); font-weight: 500; font-style: italic; }
.split .panel p { font-size: 16px; }
.split .panel a.inline { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; padding: 16px 32px; font-size: 14px; font-weight: 300; letter-spacing: 0.04em; min-height: 44px; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-outline { border: 1px solid var(--white); color: var(--white); }
.btn-icon { gap: 12px; padding: 14px 24px; }
.btn-icon svg { display: block; flex-shrink: 0; }

/* Sections */
.section { padding-top: 112px; }
.section-title { font-size: clamp(30px, 3.5vw, 44px); text-align: center; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 3.2vw, 40px); }
.section-note { margin-top: 16px; font-size: 16px; color: var(--text-dim); max-width: 640px; }
.text-link { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--white); padding-bottom: 4px; }

/* Tile grid */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; margin-top: 40px; }
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile .thumb { aspect-ratio: 16 / 9; background: var(--panel-dark); overflow: hidden; }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile h3 { font-size: 19px; }
.tile .meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.tile p { font-size: 14px; color: var(--text-dim); }
.center { display: flex; justify-content: center; margin-top: 48px; }
.tiles.single { grid-template-columns: minmax(0, 360px); justify-content: center; }
.thumb-label { display: flex; align-items: center; justify-content: center; border: 1px solid #333333; }
.thumb-label span { font-size: 32px; font-weight: 500; letter-spacing: 0.06em; color: var(--white); }

/* Homepage video grid: thumbnails that open a lightbox */
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.vtile { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel-dark); overflow: hidden; }
.vtile img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.vtile:hover { opacity: 1; }
.vtile:hover img { transform: scale(1.03); }
.vtile .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)); }
.vtile .badge { position: absolute; top: 10px; right: 10px; padding: 4px 8px; background: rgba(0,0,0,0.7); border-radius: 3px; display: flex; }
.vtile .badge img { height: 26px; width: auto; display: block; }
.vtile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-size: 13px; line-height: 1.4; color: var(--white); background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0)); opacity: 0; transition: opacity 200ms ease; }
.vtile .cap strong { font-weight: 400; }
.vtile:hover .cap, .vtile:focus-visible .cap { opacity: 1; }
@media (hover: none) { .vtile .cap { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vtile img, .vtile .cap { transition: none; } .vtile:hover img { transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.92); }
.lightbox-dialog { position: relative; width: min(1120px, 100%); }
.lightbox-player { aspect-ratio: 16 / 9; background: var(--panel-dark); }
.lightbox-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; }
.lightbox-caption { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 16px; font-size: 15px; color: var(--text-dim); }
.lightbox-links { display: flex; gap: 24px; }
.lightbox-caption a { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--white); padding-bottom: 3px; color: var(--white); }
body.lightbox-open { overflow: hidden; }

.streaming-line { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.streaming-line img { height: 22px; width: auto; }

/* Filters (projects page) */
.filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.filters button { padding: 12px 24px; border: 1px solid var(--white); background: transparent; color: var(--white); font: inherit; font-size: 14px; letter-spacing: 0.06em; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.filters button:hover { opacity: 0.75; }
.filters button[aria-pressed="true"] { background: var(--white); color: var(--black); opacity: 1; }
.tile[hidden] { display: none; }
.empty { text-align: center; color: var(--text-muted); padding: 48px 0; }

/* White callout panel with image (Wild Comet / Media) */
.callout { background: var(--white); color: var(--black); display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: center; padding: 64px; margin-top: 96px; }
.callout .copy { display: flex; flex-direction: column; gap: 20px; }
.callout h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; font-style: italic; }
.callout p { font-size: 17px; max-width: 560px; }
.callout .media { background: var(--panel-dark); aspect-ratio: 16 / 9; overflow: hidden; }
.callout .media img { width: 100%; height: 100%; object-fit: cover; }

/* About page */
.about-page { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: start; }
.about-portrait { position: sticky; top: 24px; }
.about-portrait img { width: 100%; height: auto; }
.prose { max-width: 680px; display: flex; flex-direction: column; gap: 22px; }
.prose p { font-size: 17px; line-height: 1.8; color: var(--text-dim); }
.prose p:first-child { font-size: 20px; color: var(--white); font-weight: 400; }
.about-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 16px; }

/* Series page */
.crumb { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); padding-top: 56px; }
.keyart { aspect-ratio: 2 / 1; background: var(--panel-dark); margin-top: 24px; overflow: hidden; }
.keyart img { width: 100%; height: 100%; object-fit: cover; }
.series-intro { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.streaming { display: inline-flex; align-items: center; gap: 16px; align-self: flex-start; padding: 8px 18px 8px 8px; border: 1px solid #333333; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.streaming img { height: 48px; width: auto; display: block; }
.award { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; margin-top: 4px; font-size: 15px; color: var(--text-dim); }
.award img { height: 40px; width: auto; display: block; }
.award-pill { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--white); color: var(--white); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.award:hover { opacity: 1; } .award:hover span:last-child { opacity: 0.75; }
.series-intro .kicker { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.series-intro h1 { font-size: clamp(30px, 3.6vw, 44px); }
.series-intro .facts { font-size: 14px; color: var(--text-dim); }
.series-intro p { font-size: 16px; color: var(--text-dim); max-width: 720px; }

.episodes { display: flex; flex-direction: column; gap: 56px; margin-top: 56px; }
.episode { display: grid; grid-template-columns: 640px 1fr; gap: 64px; align-items: center; }
.episode:nth-child(even) { grid-template-columns: 1fr 640px; }
.episode:nth-child(even) .player { order: 2; }
.episode:nth-child(even) .info { text-align: right; align-items: flex-end; }
.player { aspect-ratio: 16 / 9; background: var(--panel-dark); position: relative; display: block; overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.18); }
.player:hover { opacity: 1; }
.player:hover .play { background: rgba(0,0,0,0.05); }
iframe.player { width: 100%; border: 0; }
.info { display: flex; flex-direction: column; gap: 14px; }
.info .meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.info h3 { font-size: clamp(22px, 2.4vw, 28px); }
.info p { font-size: 15px; color: var(--text-dim); max-width: 400px; }
.info .text-link { align-self: flex-start; }
.info .credit-line { color: var(--white); }
.episode:nth-child(even) .info .text-link { align-self: flex-end; }

.more { background: var(--white); color: var(--black); padding: 48px 64px; margin-top: 96px; display: flex; flex-direction: column; gap: 32px; }
.more h2 { font-size: 36px; font-weight: 500; font-style: italic; }
.more .tiles { margin-top: 0; gap: 32px; }
.more .tile h3 { font-size: 17px; }

/* Reactions strip (series pages) */
.rgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.rcard { display: flex; flex-direction: column; gap: 14px; }
.rcard-img { aspect-ratio: 4 / 5; background: var(--white); overflow: hidden; }
.rcard-img img { width: 100%; height: 100%; object-fit: contain; }
.rcard p { font-size: 14px; color: var(--text-dim); }
.press-line { margin-top: 40px; font-size: 15px; color: var(--text-dim); }

/* Footer */
.site-footer { text-align: center; padding: 96px 0 48px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.site-footer h2 { font-size: clamp(30px, 3.2vw, 40px); }
.site-footer .email { font-size: 18px; }
.site-footer .links { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 12px; }
.site-footer .copyright { font-size: 12px; color: var(--text-faint); margin-top: 24px; }

/* Responsive */
@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-page { grid-template-columns: 1fr; gap: 32px; }
  .about-portrait { position: static; max-width: 360px; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .episode, .episode:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .episode:nth-child(even) .player { order: 0; }
  .episode:nth-child(even) .info { text-align: left; align-items: flex-start; }
  .episode:nth-child(even) .info .text-link { align-self: flex-start; }
.info .credit-line { color: var(--white); }
  .callout { grid-template-columns: 1fr; padding: 48px; gap: 32px; }
}
@media (max-width: 720px) {
  .site-header .wrap { justify-content: center; text-align: center; }
  .nav { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 56px 0 64px; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .panel { padding: 40px 28px; }
  .tiles { grid-template-columns: 1fr; gap: 40px; }
  .vgrid { grid-template-columns: 1fr; gap: 12px; }
  .rgrid { grid-template-columns: 1fr; }
  .lightbox { padding: 12px; }
  .lightbox-close { top: -44px; }
  .section { padding-top: 80px; }
  .callout { padding: 32px 24px; margin-top: 64px; }
  .more { padding: 32px 24px; }
  .more .tiles { grid-template-columns: 1fr; }
  .site-footer { padding-top: 64px; }
}
