/* ahronedits.com — one-page portfolio. Near-black, one blue, system Arial/Helvetica in heavy
   weights, small uppercase blue labels. */

:root {
  --bg: #080808;
  --surface: #0b0b0b;
  --field: #121315;
  --ink: #f4f4f4;
  --ink-soft: #c9c9c9;
  --muted: #9c9c9c;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --accent: #2f7cff;
  --accent-fill: #256ef0; /* filled buttons: white text on it is 4.6:1 (WCAG AA) */
  --accent-ink: #ffffff;
  --accent-glow: rgba(47, 124, 255, 0.2);
  --live: #65ff90;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(80px, 8vw, 120px);
  --nav-h: 68px;
  --radius: 22px;
  --radius-sm: 14px;

  --font: Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 0.3s;
  --slow: 0.6s;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(47, 124, 255, 0.4);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.accent {
  color: var(--accent);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--fast) ease,
    border-color var(--fast) ease,
    color var(--fast) ease,
    box-shadow var(--fast) ease,
    transform var(--fast) var(--ease);
}

.button-primary {
  background: var(--accent-fill);
  color: var(--accent-ink);
  box-shadow: 0 12px 32px -12px rgba(47, 124, 255, 0.7);
}

.button-primary:hover {
  background: #ffffff;
  color: #080808;
  transform: translateY(-2px);
}

.button-outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--accent-fill);
  background: var(--accent-fill);
  color: var(--accent-ink);
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 8, 8, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
}

.site-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav .button {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(48px, 6vw, 80px));
  padding-bottom: clamp(48px, 5vw, 72px);
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: min(1280px, 100%);
  height: min(820px, 150vw);
  transform: translateX(-50%);
  background:
    radial-gradient(36% 30% at 50% 30%, rgba(120, 170, 255, 0.12), transparent 70%),
    radial-gradient(55% 58% at 50% 28%, rgba(47, 124, 255, 0.2), rgba(47, 124, 255, 0.07) 50%, rgba(47, 124, 255, 0.02) 72%, transparent 90%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero-badge-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow:
    0 0 0 4px rgba(101, 255, 144, 0.12),
    0 0 12px rgba(101, 255, 144, 0.55);
}

.hero-title {
  max-width: 1000px;
  margin: 24px auto 0;
  font-size: clamp(38px, 6.4vw, 80px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 600px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  text-wrap: balance;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: clamp(32px, 4vw, 48px) auto 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px clamp(8px, 2vw, 24px);
}

.hero-stat + .hero-stat {
  border-left: 1px solid var(--line);
}

.hero-stat-value {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero-stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

/* One --section gap between sections (top padding only); the hero's own bottom padding leads into the work. */
.section {
  padding-top: var(--section);
}

.work {
  padding-top: 0;
}

.contact {
  padding-bottom: var(--section);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.section-title {
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

/* ---------- Work: list layouts ---------- */

.work-list {
  display: grid;
  gap: clamp(44px, 5vw, 56px) 24px;
  align-items: start;
}

/* Vertical video: never taller than 70% of the screen, centered in its column. */
.work-card[data-format="9:16"] {
  width: min(100%, 70vh * 9 / 16);
  justify-self: center;
}

@media (min-width: 900px) {
  .work-list[data-layout="pair"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 16:9 + 9:16 at the same height: width ratio (16/9)² ≈ 3.16. */
  .work-list[data-layout="pair"]:has(> [data-format="16:9"]:first-child + [data-format="9:16"]) {
    grid-template-columns: minmax(0, 3.16fr) minmax(0, 1fr);
  }

  .work-list[data-layout="pair"]:has(> [data-format="9:16"]:first-child + [data-format="16:9"]) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3.16fr);
  }

  /* 3+ videos: first one featured full width, the rest in two columns of equal-height cards. */
  .work-list[data-layout="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .work-list[data-layout="grid"] > .work-card:first-child,
  .work-list[data-layout="grid"] > .work-card:nth-child(even):last-child {
    grid-column: 1 / -1;
  }

  .work-list[data-layout="grid"] > .work-card[data-format="9:16"] {
    width: auto;
    justify-self: stretch;
  }

  .work-list[data-layout="grid"] > .work-card:first-child .work-media {
    max-height: 70vh;
  }

  .work-list[data-layout="grid"] [data-format="9:16"] .work-media {
    aspect-ratio: 16 / 9;
  }

  .work-list[data-layout="grid"] [data-format="9:16"] .work-poster,
  .work-list[data-layout="grid"] [data-format="9:16"] .work-preview {
    object-fit: contain;
  }

  .work-list[data-layout="grid"] .work-backdrop {
    display: block;
  }
}

/* ---------- Work: card ---------- */

.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.work-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 34px 70px -36px rgba(0, 0, 0, 0.9);
  transition:
    border-color var(--fast) ease,
    box-shadow var(--slow) var(--ease);
}

.work-card[data-format="9:16"] .work-media {
  aspect-ratio: 9 / 16;
}

.work-poster,
.work-preview,
.work-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-backdrop {
  display: none;
  z-index: 0;
  filter: blur(26px) brightness(0.5) saturate(1.2);
  transform: scale(1.2);
}

.work-poster {
  z-index: 1;
  transition: transform var(--slow) var(--ease);
}

.work-preview {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(12px, 2vw, 20px);
  border: 0;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 42%);
  cursor: pointer;
}

.work-play:focus-visible {
  outline-offset: -4px;
}

.work-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    background-color var(--fast) ease,
    border-color var(--fast) ease;
}

.work-play-icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-fill);
  transition: background-color var(--fast) ease;
}

.work-play-icon::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 13px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #ffffff;
}

.work-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.work-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .work-card.is-previewing .work-preview {
    opacity: 1;
  }

  .work-card:hover .work-media {
    border-color: rgba(47, 124, 255, 0.55);
    box-shadow:
      0 34px 70px -36px rgba(0, 0, 0, 0.95),
      0 0 44px -8px var(--accent-glow);
  }

  .work-card:hover .work-poster {
    transform: scale(1.03);
  }

  .work-card:hover .work-play-pill {
    border-color: var(--accent-fill);
    background: var(--accent-fill);
  }

  .work-card:hover .work-play-icon {
    background: rgba(255, 255, 255, 0.2);
  }
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 2px 0;
}

.work-title {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.work-desc {
  max-width: 64ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.work-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.work-services li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.2;
}

/* ---------- Testimonials ---------- */

/* Phones: horizontal scroll-snap row, the next card peeking. */
.quotes {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 2px var(--gutter) 12px;
  scrollbar-width: none;
}

.quotes::-webkit-scrollbar {
  display: none;
}

.quotes:focus-visible {
  outline-offset: -2px;
}

.quote-card {
  position: relative;
  display: flex;
  flex: 0 0 min(84%, 340px);
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 24px 24px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015) 60%);
  scroll-snap-align: start;
}

.quote-mark {
  display: block;
  height: 26px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 0.85;
}

.quote-text {
  flex: 1;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.quote-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.quote-source {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.quote-by {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

@media (min-width: 720px) {
  .quotes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }

  .quote-card {
    padding: 28px 28px 24px;
  }

  .quote-text {
    font-size: 17px;
  }
}

/* No holes: a lone last card spans the row. */
@media (min-width: 720px) and (max-width: 1023.98px) {
  .quote-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .quotes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .quote-card {
    grid-column: span 2;
  }

  .quote-card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }

  .quote-card:last-child:nth-child(3n + 1) .quote-text {
    font-size: clamp(20px, 1.9vw, 24px);
    letter-spacing: -0.01em;
  }

  .quote-card:nth-last-child(2):nth-child(3n + 1),
  .quote-card:last-child:nth-child(3n + 2) {
    grid-column: span 3;
  }
}

/* ---------- About ---------- */

.about {
  overflow-x: clip; /* the portrait glow may reach past the screen edge on phones */
}

.about-grid {
  display: grid;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.about-portrait {
  position: relative;
  isolation: isolate;
  width: min(100%, 420px);
  justify-self: center;
}

.about-portrait::before {
  content: "";
  position: absolute;
  inset: 12% -8% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 124, 255, 0.28), transparent);
}

.about-portrait img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.about-body {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}

.about-copy .button {
  margin-top: 8px;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--line-soft);
}

.contact-glow {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: min(1100px, 100%);
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 0%, rgba(47, 124, 255, 0.16), rgba(47, 124, 255, 0.04) 60%, transparent 85%);
  pointer-events: none;
}

.contact-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 60px);
  text-align: center;
}

.contact-title {
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.contact-body {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
}

.contact-grid {
  display: grid;
  gap: 16px;
}

.contact-links {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  text-decoration: none;
  transition:
    border-color var(--fast) ease,
    background-color var(--fast) ease,
    transform var(--fast) var(--ease);
}

.contact-link:hover {
  border-color: rgba(47, 124, 255, 0.55);
  background-color: rgba(47, 124, 255, 0.08);
  transform: translateY(-2px);
}

.contact-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(47, 124, 255, 0.12);
  color: var(--accent);
}

.contact-link-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.contact-value {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-arrow {
  flex: none;
  color: var(--muted);
  font-size: 20px;
  transition:
    color var(--fast) ease,
    transform var(--fast) var(--ease);
}

.contact-link:hover .contact-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field);
  font-size: 16px;
  line-height: 1.4;
  transition:
    border-color var(--fast) ease,
    box-shadow var(--fast) ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(47, 124, 255, 0.28);
}

.field ::placeholder {
  color: #858585;
  opacity: 1;
}

/* Honeypot: off-screen for people, still in the form for bots. */
.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile renders a 65 px widget; the space is kept so nothing jumps. */
.contact-turnstile {
  min-height: 65px;
}

.contact-submit {
  justify-self: start;
  min-width: 180px;
}

.form-status {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

.form-status[data-state="error"] {
  color: #ff9a9a;
}

.contact-form[hidden] {
  display: none;
}

.form-noscript {
  color: var(--ink-soft);
  font-size: 14px;
}

.form-thanks {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
}

.form-thanks:focus {
  outline: none;
}

.form-thanks h3 {
  font-size: clamp(22px, 3vw, 28px);
}

.form-thanks p {
  color: var(--ink-soft);
}

/* ---------- Player dialog ---------- */

.player {
  --player-room: 150px; /* bar + tabs + padding: what the video must leave free vertically */
  width: min(1100px, 100vw - 24px);
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}

.player[data-format="9:16"] {
  width: min(520px, 100vw - 24px);
}

.player::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.player-frame {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.player-title {
  min-width: 0;
  overflow: hidden;
  padding-left: 6px;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--fast) ease, border-color var(--fast) ease;
}

.player-close:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.player-tabs {
  display: flex;
  gap: 6px;
}

.player-tabs[hidden] {
  display: none;
}

.player-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.player-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--ink);
}

.player-stage {
  display: flex;
  justify-content: center;
}

.player-video {
  display: block;
  width: min(100%, calc((100vh - var(--player-room)) * 16 / 9));
  width: min(100%, calc((100dvh - var(--player-room)) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: #000;
  object-fit: contain;
}

.player[data-format="9:16"] .player-video {
  width: min(100%, calc((100vh - var(--player-room)) * 9 / 16));
  width: min(100%, calc((100dvh - var(--player-room)) * 9 / 16));
  aspect-ratio: 9 / 16;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 28px 36px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Motion hooks ---------- */

/* site.js adds .motion to <html> and .is-in to each .reveal; without it nothing is hidden. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .motion .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity var(--slow) var(--ease),
      transform var(--slow) var(--ease);
  }

  .motion .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Legal pages and 404 ---------- */

.legal {
  max-width: 760px;
  padding-block: calc(var(--nav-h) + 48px) 72px;
}

.legal-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal h1 {
  margin-block: 8px 6px;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.legal h2 {
  margin-block: 36px 10px;
  font-size: 22px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  margin: 8px 0 0 22px;
  list-style: disc;
}

.legal li + li {
  margin-top: 6px;
}

.legal a:not(.button) {
  color: var(--accent);
  text-underline-offset: 3px;
}

.legal a:not(.button):hover {
  color: var(--ink);
}

.legal code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--field);
  font-size: 0.92em;
}

.legal-summary,
.legal-id {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.legal-summary ul {
  margin-top: 8px;
}

.legal-id p + p {
  margin-top: 2px;
}

.legal-id-line {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}

.legal-404 {
  min-height: 70vh;
}

.legal-lead {
  margin-bottom: 24px;
  font-size: 18px;
}
