/* ============================================================
   alexyounglive.com — "A Site in Five Scenes"
   Tokens: sand #F8F4EC · ink #22201C · terracotta #B0552E
   ============================================================ */

:root {
  --sand: #F8F4EC;
  --ink: #22201C;
  --terracotta: #B0552E;
  --muted: rgba(34, 32, 28, 0.55);
  --muted-45: rgba(34, 32, 28, 0.45);
  --hairline: rgba(34, 32, 28, 0.1);
  --on-dark: #F8F4EC;
  --mono: ui-monospace, Menlo, monospace;
  --serif: "Source Serif 4", serif;
  --sans: "Archivo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--terracotta); }
::selection { background: var(--terracotta); color: var(--sand); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  text-transform: uppercase;
}

.pill {
  display: inline-block;
  background: var(--ink);
  color: var(--sand);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 17px;
  border-radius: 999px;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.pill:hover { background: var(--terracotta); color: var(--sand); }
.pill-lg { font-size: 14px; padding: 15px 26px; }

/* ================= scroll track & stage ================= */
.track { height: 560vh; position: relative; }
/* real anchor targets so index.html#scene-N native-scrolls to the right frame */
.scene-anchor {
  position: absolute; left: 0;
  width: 1px; height: 1px;
  pointer-events: none; visibility: hidden;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ================= header ================= */
.site-nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(16px, 3vw, 36px);
  border-bottom: 1px solid var(--hairline);
  z-index: 10;
}
.site-nav .brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.timecode {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(34, 32, 28, 0.5);
}

/* ================= scenes ================= */
.scenes { flex: 1; position: relative; min-height: 0; }
.scenes-layers { position: absolute; inset: 0; pointer-events: none; }

.scene { position: absolute; inset: 0; will-change: opacity, transform; }

.scene-scroll {
  height: 100%;
  display: flex;
  overflow-y: auto;
  padding: 24px clamp(20px, 4vw, 48px);
}
.scene-scroll > .inner { margin: auto; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  margin: 0;
}
h1 em, h2 em { font-style: italic; font-weight: inherit; }
h2 em { color: var(--terracotta); }

/* ---- scene 00: title ---- */
.s-title {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative;
}
.s-title .leader-circle {
  position: absolute;
  width: min(72vh, 80vw);
  aspect-ratio: 1;
  border: 1px solid rgba(34, 32, 28, 0.15);
  border-radius: 999px;
}
.s-title .leader-h {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: rgba(34, 32, 28, 0.08);
}
.s-title .leader-v {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: rgba(34, 32, 28, 0.08);
}
.s-title .eyebrow { position: relative; }
.s-title h1 {
  position: relative;
  font-size: clamp(48px, 7.5vw, 92px);
  line-height: 1.05;
  margin-top: 22px;
}
.s-title .hint {
  position: relative;
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}

/* ---- scene 01: hello ---- */
.s-hello {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1060px;
}
.s-hello .text { flex: 1 1 420px; min-width: 300px; }
.s-hello h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.08;
  margin-top: 20px;
}
.s-hello p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 20px 0 0;
  max-width: 50ch;
  text-wrap: pretty;
}
.s-hello figure {
  flex: 0 1 300px;
  min-width: 220px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lens-wrap { position: relative; width: min(300px, 100%); aspect-ratio: 1; }
.lens-ring {
  position: absolute; inset: -16px;
  border: 1px solid rgba(34, 32, 28, 0.2);
  border-radius: 999px;
}
.lens-dot {
  position: absolute; top: -20px; left: 50%;
  width: 8px; height: 8px; margin-left: -4px;
  border-radius: 999px; background: var(--terracotta);
}
.lens-wrap img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: 999px;
  filter: grayscale(1) contrast(1.05);
}
.s-hello figcaption {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-45);
}

/* ---- scene 02: reel ---- */
.s-reel { width: min(1060px, 100%); }
.scene-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.scene-label-row .dim { color: var(--muted-45); font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; }
.reel-box {
  position: relative;
  aspect-ratio: 16 / 8.2;
  max-height: 62vh;
  margin: 0 auto;
  background: repeating-linear-gradient(135deg, #22201B 0px, #22201B 14px, #1C1A16 14px, #1C1A16 28px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.reel-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-box .play-note {
  position: absolute; left: 22px; bottom: 16px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: rgba(248, 244, 236, 0.6);
}

/* ---- scene 03: selects ---- */
.s-selects { width: min(1060px, 100%); }
.s-selects .scene-label-row { margin-bottom: 18px; }
.more-link {
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1px solid rgba(34, 32, 28, 0.3);
  padding-bottom: 2px;
  cursor: pointer;
}
.selects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}
.select-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, #22201B 0px, #22201B 12px, #1C1A16 12px, #1C1A16 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.select-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.select-thumb svg { position: relative; z-index: 1; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35)); }
.select-title { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-top: 12px; }
.select-caption { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 3px; }

/* ---- scene 04: talk ---- */
.s-talk {
  width: min(920px, 100%);
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
  justify-content: center;
}
.s-talk .photo {
  flex: 0 1 320px;
  min-width: 240px;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 14px;
}
.s-talk .text { flex: 1 1 380px; min-width: 300px; }
.s-talk h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; margin-top: 18px; }
.s-talk p {
  font-size: 15px; line-height: 1.65;
  color: var(--muted);
  margin: 16px 0 0; max-width: 46ch;
}
.s-talk .cta-row { margin-top: 24px; }
.newsletter {
  margin-top: 30px;
  border-top: 1px solid rgba(34, 32, 28, 0.14);
  padding-top: 20px;
}
.newsletter .nl-heading { font-size: 13.5px; font-weight: 600; }
.nl-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.nl-form .nl-name { flex: 1 1 130px; }
.nl-form .nl-email { flex: 2 1 200px; }
.nl-form button:disabled { opacity: 0.6; cursor: default; }
.nl-note {
  margin-top: 12px;
  font-size: 13.5px; font-weight: 500;
  color: var(--terracotta);
}
.nl-form input {
  flex: 1 1 200px; min-width: 0;
  font-family: var(--sans); font-size: 13.5px;
  padding: 13px 17px;
  border: 1px solid rgba(34, 32, 28, 0.25);
  border-radius: 999px;
  background: #fff; color: var(--ink);
  outline: none;
}
.nl-form button {
  appearance: none; border: 0;
  background: var(--terracotta); color: var(--sand);
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 13px 21px; border-radius: 999px; cursor: pointer;
}
.talk-links { display: flex; gap: 20px; margin-top: 18px; font-size: 13px; font-weight: 500; }
.talk-links .ig { border-bottom: 1px solid rgba(34, 32, 28, 0.25); padding-bottom: 2px; }
.talk-links .site-label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; color: rgba(34, 32, 28, 0.4);
  align-self: center;
}

/* ================= timeline strip ================= */
.strip {
  flex: none;
  background: var(--ink);
  color: var(--sand);
  padding: 10px clamp(12px, 2vw, 24px) 14px;
  z-index: 10;
}
.ruler {
  position: relative;
  height: 10px;
  margin-bottom: 8px;
  background: repeating-linear-gradient(90deg, rgba(248,244,236,0.25) 0px, rgba(248,244,236,0.25) 1px, transparent 1px, transparent 10%);
}
.playhead {
  position: absolute; top: -4px; bottom: -4px;
  width: 2px; left: 0;
  background: var(--terracotta);
  border-radius: 2px;
}
.clips { position: relative; display: flex; gap: 6px; }
.clip {
  flex: 1;
  appearance: none;
  border: 1px solid rgba(248, 244, 236, 0.15);
  background: rgba(248, 244, 236, 0.06);
  color: rgba(248, 244, 236, 0.55);
  border-radius: 6px;
  padding: 10px 6px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}
.clip.active {
  background: rgba(176, 85, 46, 0.25);
  border-color: var(--terracotta);
  color: var(--sand);
}

/* ================= video modal ================= */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 18, 14, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
}
.modal.open { display: flex; }
.modal-inner {
  width: min(1000px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.modal-inner iframe { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: 20px; right: 26px;
  background: none; border: none;
  color: var(--sand); font-size: 32px;
  cursor: pointer; line-height: 1;
}

/* ================= work.html (archive) ================= */
.work-page { max-width: 1060px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px) 150px; }
.filters-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 34px 0 30px; }
.filters-row .filters { margin: 0; }
.back-link { white-space: nowrap; }
.work-strip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; }
.work-head { padding: 72px 0 12px; }
.work-head h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.06; margin-top: 18px; }
.work-head p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 54ch; margin: 16px 0 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 34px 0 30px; }
.filter-btn {
  appearance: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 32, 28, 0.25);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 26px;
}
.work-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 12px;
}
.work-title { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-top: 5px; }
.work-caption { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-top: 4px; }
.work-cta { text-align: center; border-top: 1px solid rgba(34,32,28,0.14); margin-top: 64px; padding-top: 48px; }
.work-cta h2 { font-size: clamp(26px, 3.4vw, 38px); }
.work-cta p { color: var(--muted); margin: 14px 0 24px; }

/* ================= small screens ================= */
@media (max-width: 640px) {
  .site-nav .timecode { display: none; }
  .clip { padding: 9px 4px; letter-spacing: 0.06em; }
}

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