:root {
  --bg: #fffffa;
  --ink: #10100e;
  --muted: #999;
  --radius: 6px;
  --gutter: 92px;
  --col-gap: 32px;
  --sf: "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Switzer", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 92px var(--gutter) 64px;
}

/* ---------- Header ---------- */

.logo { display: inline-block; margin-left: 1px; }
.logo img { width: 108.776px; height: 48px; }

.intro {
  margin: 37px 0 0 auto;
  max-width: 837px;
  font-size: 24px;
  line-height: 1.3;
}

h1 {
  margin: 78px 0 0 1px;
  max-width: 837px;
  font-size: 72px;
  font-weight: 500;
  line-height: 78px;
  letter-spacing: -0.01em;
}

/* ---------- Grid ---------- */

.grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 22px;
}

.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 612 / 520;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d9d9d9;
  cursor: pointer;
  text-decoration: none;
  container-type: inline-size;
  font: inherit;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover > img { transform: scale(1.02); }

.card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Play button: 128px circle centred, matching the layout */
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 128px;
  transform: translate(-50%, -50%);
  background: url("assets/play-circle.svg") center / 100% 100% no-repeat;
  transition: transform 0.25s ease;
}

.play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 27.71px;
  margin: -13.86px 0 0 -12px;
  background: url("assets/play.svg") center / 100% 100% no-repeat;
  transform: rotate(90deg);
}

.card--video:hover .play { transform: translate(-50%, -50%) scale(1.06); }

/* ---------- Caption ---------- */

.caption {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  align-items: start;
  padding: 16px 6px 0;
}

.caption > div { display: contents; }

.caption h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
}

.caption p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.url {
  grid-column: 2;
  grid-row: 1;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.url:hover { color: var(--ink); }

/* ---------- Oh no, email card (612 × 520 artboard, scaled with cqw) ---------- */

.card--email {
  background: #fdfdfb;
  box-shadow: inset 0 0 0 1px #e1e1e1;
}

.card--email .email-icon {
  position: absolute;
  left: calc(47 / 612 * 100cqw);
  top: calc(47 / 612 * 100cqw);
  width: calc(56 / 612 * 100cqw);
  height: auto;
}

.email-headline,
.email-sub,
.meetings-headline,
.meetings-sub {
  position: absolute;
  font-family: var(--sf);
  white-space: nowrap;
}

.email-headline {
  left: calc(47 / 612 * 100cqw);
  top: calc(255 / 612 * 100cqw);
  font-size: calc(72 / 612 * 100cqw);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #332a26;
}

.email-sub {
  left: calc(47 / 612 * 100cqw);
  top: calc(431 / 612 * 100cqw);
  font-size: calc(20 / 612 * 100cqw);
  font-weight: 400;
  color: #75655a;
}

/* ---------- Oh no, meetings card ---------- */

.card--meetings { background: #332a26; }

.card--meetings .meetings-icon {
  position: absolute;
  left: 50%;
  top: calc(161 / 612 * 100cqw);
  width: calc(168 / 612 * 100cqw);
  height: auto;
  transform: translate(-50%, -50%) rotate(-5deg);
}

.meetings-headline,
.meetings-sub {
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff1d8;
}

.meetings-headline {
  top: calc(280 / 612 * 100cqw);
  font-size: calc(52 / 612 * 100cqw);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.meetings-sub {
  top: calc(420 / 612 * 100cqw);
  font-size: calc(17 / 612 * 100cqw);
  font-weight: 400;
  color: rgba(255, 241, 216, 0.7);
}

/* ---------- Footer ---------- */

footer {
  margin-top: 89px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.outro {
  margin: 0 0 0 1px;
  max-width: 837px;
  font-size: 24px;
  line-height: 1.3;
}

.outro a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

.copyright {
  flex: none;
  margin: 0 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Video player ---------- */

.player {
  width: min(1200px, 100vw - 48px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.player::backdrop {
  background: rgba(16, 16, 14, 0.86);
  backdrop-filter: blur(6px);
}

.player[open] { animation: player-in 0.25s ease; }

@keyframes player-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  min-height: 40px;
}

.player-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 250, 0.12);
}

.player-tabs[hidden] { display: none; }

.player-tabs button {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 250, 0.75);
  font: 600 14px/1 "Switzer", system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.player-tabs button:hover { color: #fffffa; }

.player-tabs button[aria-selected="true"] {
  background: #fffffa;
  color: var(--ink);
}

.player-close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 250, 0.12);
  color: #fffffa;
  cursor: pointer;
  transition: background 0.2s ease;
}

.player-close:hover { background: rgba(255, 255, 250, 0.22); }

.player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 120px);
  border-radius: var(--radius);
  background: #000;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  :root { --gutter: 48px; --col-gap: 24px; }
  .page { padding-top: 56px; }
  h1 { font-size: 56px; line-height: 62px; }
  .intro, .outro { font-size: 21px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .page { padding-top: 32px; padding-bottom: 40px; }
  .intro { margin: 32px 0 0; font-size: 19px; }
  h1 { margin-top: 40px; font-size: 40px; line-height: 1.1; }
  .grid { grid-template-columns: 1fr; row-gap: 36px; margin-top: 28px; }
  .play { width: 96px; height: 96px; }
  .play::after { width: 26px; height: 22.5px; margin: -11.25px 0 0 -10px; }
  .caption { flex-direction: column; gap: 6px; }
  .url { padding-top: 0; }
  footer { flex-direction: column; align-items: flex-start; margin-top: 64px; }
  .outro { font-size: 19px; }
  .copyright { margin: 0; }
  .player { width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
