:root {
  color-scheme: light dark;
  --bg: #fff;
  --paper: #fff;
  --ink: #201f1d;
  --muted: #65605a;
  --line: #ded6ca;
  --lime: #c9f03a;
  --coral: #ff7a66;
  --lucid-pink: #f263be;
  --blue: #5bbec4;
  --shadow: 0 22px 50px rgba(32, 31, 29, 0.12);
  --on-accent: rgba(32, 31, 29, 0.82);
  --now-bg: #e9f8f6;
  --now-line: #b4dcda;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131210;
    --paper: #1d1b18;
    --ink: #f4efe6;
    --muted: #aaa198;
    --line: #39332d;
    --lime: #c9f03a;
    --coral: #ff866f;
    --lucid-pink: #ff7ac9;
    --blue: #70d3d8;
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
    --on-accent: rgba(32, 31, 29, 0.86);
    --now-bg: #173332;
    --now-line: #2d6866;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body {
  background: var(--bg);
  margin: 0;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 56px);
}

.wordmark {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

main {
  overflow: hidden;
}

section,
.hero-copy,
.copy-block,
.now-note,
.now-main,
.work-card,
.text-only-card {
  min-width: 0;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  min-height: min(760px, calc(100vh - 82px));
  padding: clamp(30px, 5vw, 72px) clamp(18px, 4vw, 56px) clamp(42px, 7vw, 92px);
}

.hero-copy {
  align-self: center;
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.kicker,
.eyebrow,
.date {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.7rem, 9.6vw, 8.8rem);
  letter-spacing: 0;
  line-height: 0.78;
  margin-bottom: 28px;
  max-width: 780px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(4.1rem, 10.5vw, 9.6rem);
  max-width: 860px;
  position: relative;
  z-index: 3;
}

.page-hero h1 {
  font-size: clamp(3.4rem, 9vw, 9rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
  margin-bottom: 18px;
  overflow-wrap: break-word;
}

.lede {
  color: var(--ink);
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.hero-media,
.media-link {
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--paper);
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.hero-media {
  align-self: stretch;
  min-height: 420px;
  z-index: 1;
}

.hero-image,
.media-link img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-image {
  object-position: 58% 42%;
}

.placeholder-image {
  background:
    linear-gradient(135deg, rgba(255, 122, 102, 0.9), rgba(91, 190, 196, 0.78)),
    repeating-linear-gradient(45deg, rgba(255, 253, 248, 0.18) 0 1px, transparent 1px 18px);
  display: grid;
  place-items: center;
}

.placeholder-image::before {
  border: 1px solid rgba(255, 253, 248, 0.55);
  border-radius: 999px;
  content: "";
  height: min(36vw, 360px);
  position: absolute;
  width: min(36vw, 360px);
}

.placeholder-label {
  background: rgba(32, 31, 29, 0.82);
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 999px;
  color: var(--paper);
  font-weight: 850;
  padding: 12px 16px;
  position: relative;
}

.play-pill {
  background: var(--lime);
  border-radius: 999px;
  bottom: 18px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  left: 18px;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  position: absolute;
}

.work-grid,
.content,
.video-section,
.now-list {
  padding: 0 clamp(18px, 4vw, 56px) clamp(40px, 7vw, 84px);
}

.work-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.work-card.feature {
  align-items: stretch;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.work-card.feature.reverse {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.work-card.feature.reverse .media-link {
  order: 2;
}

.work-card > div,
.text-only-card {
  padding: clamp(22px, 4vw, 44px);
}

.text-only-card {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 46px);
  min-height: 100%;
}

.macstories-card {
  gap: 18px;
  position: relative;
}

.text-only-card.accent {
  background: var(--lucid-pink);
}

.text-only-card.accent p,
.text-only-card.accent .eyebrow {
  color: var(--on-accent);
}

.wide-card-image {
  border-radius: 8px;
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  flex: 1 1 auto;
  height: clamp(170px, 18vw, 240px);
  min-height: 170px;
  object-fit: cover;
  width: 100%;
}

.text-link {
  color: var(--ink);
  display: inline-block;
  font-weight: 850;
}

.page-hero {
  padding: clamp(34px, 6vw, 86px) clamp(18px, 4vw, 56px) clamp(22px, 4vw, 46px);
}

.page-hero .lede {
  max-width: 920px;
}

.split {
  display: grid;
  gap: clamp(22px, 5vw, 70px);
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
}

.meta-panel {
  border-top: 3px solid var(--coral);
  padding-top: 16px;
}

.copy-block {
  max-width: 900px;
}

.lucid-copy-layout {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.lucid-copy-layout .meta-panel {
  border-top-color: var(--lucid-pink);
}

.luminar-copy {
  display: grid;
  gap: clamp(34px, 6vw, 78px);
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

.video-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid.single {
  grid-template-columns: minmax(0, 1fr);
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.luminar-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.luminar-video-grid .video-card-feature {
  grid-column: 1 / -1;
}

.luminar-video-grid .video-card-feature h3 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  padding: 20px 24px 24px;
}

.video-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.video-card h3 {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 18px 18px;
}

.video-year {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 800;
}

.now-list {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.now-note,
.now-main {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 44px);
}

.now-main {
  background: var(--now-bg);
  border-color: var(--now-line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px clamp(18px, 4vw, 56px) 40px;
}

.site-footer p {
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 920px) {
  .hero,
  .work-card.feature,
  .work-card.feature.reverse,
  .split,
  .now-list {
    grid-template-columns: 1fr;
  }

  .work-card.feature.reverse .media-link {
    order: 0;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .luminar-video-grid {
    grid-template-columns: 1fr;
  }
}

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

  nav {
    justify-content: flex-start;
  }

  .hero,
  .page-hero,
  .work-grid,
  .content,
  .video-section,
  .now-list {
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
  }

  .hero {
    display: block;
  }

  .hero-copy,
  .hero-media,
  .page-hero > *,
  .copy-block,
  .now-note,
  .now-main,
  .work-card,
  .text-only-card,
  p {
    max-width: min(calc(100vw - 40px), 350px);
  }

  .luminar-copy {
    grid-template-columns: 1fr;
  }

  .luminar-video-grid .video-card-feature h3 {
    font-size: clamp(1.25rem, 8vw, 1.7rem);
    padding: 16px 18px 18px;
  }

  .hero-media {
    margin-top: 26px;
    min-height: 300px;
  }

  .button-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .wide-card-image {
    height: 86px;
    min-height: 86px;
  }

  .work-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(2.7rem, 11.5vw, 5rem);
  }
}
