/* ==========================================================================
   Tyler Zanona — Portfolio
   Warm, filmic, editorial. Plain CSS, no build step.
   Sections: fonts → tokens → base → type → utilities → header → buttons
   → hero → story → projects → beyond → contact → footer → project pages
   → motion → responsive
   ========================================================================== */

/* ---------- Fonts (self-hosted variable woff2) ---------- */

@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/ebgaramond-var.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/ebgaramond-var-italic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('/assets/fonts/karla-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('/assets/fonts/karla-var-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* palette — moss-black, aged paper, brass and clay: old-library vintage */
  --paper: #171811;
  --paper-deep: #1E2016;
  --card: #23251B;
  --ink: #E9E4D3;
  --ink-soft: #A19C86;
  --hairline: #363829;
  --accent: #B29245;
  --accent-deep: #D3B876;
  --gold: #AF6A4D;
  --ph-grad: linear-gradient(135deg, #8A6D2F, #C9A85C);

  /* type */
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'Karla', -apple-system, 'Helvetica Neue', sans-serif;
  --text-hero: clamp(2.75rem, 8vw, 5.5rem);
  --text-h2: clamp(1.9rem, 4vw, 3rem);
  --text-h3: 1.375rem;
  --text-quote: clamp(1.5rem, 3.2vw, 2.25rem);

  /* spacing (4px scale) */
  --s1: 4px;  --s2: 8px;   --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px;  --s8: 72px; --s9: 112px;
  --section-gap: var(--s9);

  /* misc */
  --radius: 14px;
  --shadow: 0 12px 40px rgb(0 0 0 / 0.35);
  --shadow-lift: 0 20px 56px rgb(0 0 0 / 0.5);
  --header-h: 68px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: #B29245; color: #171811; }

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s5);
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }

h3 {
  font-family: var(--font-body);
  font-weight: 640;
  font-size: var(--text-h3);
  line-height: 1.3;
  margin: 0 0 var(--s3);
}

p { margin: 0 0 var(--s4); max-width: 65ch; }

a {
  color: var(--accent-deep);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
a:hover { background-size: 100% 1px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 var(--s4);
}

/* ---------- Utilities ---------- */

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--s3); left: var(--s3);
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s3) var(--s5);
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
  background-size: 0;
}

.gap-top { margin-top: var(--s6); }

section { padding-block: calc(var(--section-gap) / 2); }

/* anchor jumps land below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* extend into the iOS status-bar safe area so content never scrolls above the bar */
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease;
}
.site-header.is-scrolled {
  background: rgb(23 24 17 / 0.88);
  border-color: var(--hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monogram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: none;
}

.site-nav { display: flex; gap: var(--s6); }
.site-nav a {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 540;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9875rem;
  line-height: 1.2;
  background-image: none;
  transition: transform 200ms ease, box-shadow 200ms ease,
              background-color 200ms ease, color 200ms ease;
}
.btn:hover { transform: translateY(-2px); background-size: 0; }

.btn--fill {
  background-color: var(--accent);
  color: #171811;
  box-shadow: 0 6px 20px rgb(178 146 69 / 0.22);
}
.btn--fill:hover { background-color: var(--accent-deep); box-shadow: var(--shadow-lift); }

.btn--ghost {
  color: var(--ink);
  border: 1.5px solid var(--hairline);
  background-color: transparent;
}
.btn--ghost:hover { border-color: var(--ink-soft); }

/* ---------- Hero ---------- */

.hero {
  min-height: calc(92vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(var(--s6), 6vw, var(--s8));
  padding-block: var(--s7) var(--s8);
}

.hero-copy .eyebrow { margin-bottom: var(--s5); }

.hero-lede {
  font-size: clamp(1.125rem, 1.9vw, 1.3125rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 34em;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s6);
}

.hero-portrait {
  position: relative;
  margin: 0;
}

/* ---------- Placeholder figures (.shot) ----------
   Until a real image lands, each figure shows the project gradient
   plus a large low-opacity monogram from data-ph. Drop an <img> inside
   and the placeholder art hides itself. */

.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ph-grad);
  box-shadow: var(--shadow);
}
.shot::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4rem, 14vw, 9rem);
  color: rgb(250 245 238 / 0.4);
}
.shot::before {
  content: 'Artwork coming soon';
  position: absolute;
  left: var(--s5); bottom: var(--s4);
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(250 245 238 / 0.75);
}
.shot:has(img)::after, .shot:has(img)::before { display: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.shot--portrait { aspect-ratio: 4 / 5; }
.shot--phone { aspect-ratio: 9 / 19.5; border-radius: 26px; }

.phone-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s5);
  max-width: 780px;
}

/* ---------- Story ---------- */

.story-beats {
  display: grid;
  gap: var(--s7);
  margin-top: var(--s7);
}

.beat {
  display: grid;
  grid-template-columns: minmax(72px, 120px) minmax(0, 1fr);
  gap: clamp(var(--s5), 4vw, var(--s7));
  align-items: start;
}
.beat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 460;
  line-height: 1;
  color: var(--accent);
  opacity: 0.38;
}
.beat h3 { margin-top: var(--s2); }
.beat p { color: var(--ink-soft); }
.beat p strong { color: var(--ink); font-weight: 600; }

.pull-quote {
  margin: var(--s8) auto 0;
  max-width: 21em;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-size: var(--text-quote);
  line-height: 1.35;
  color: var(--ink);
}
.pull-quote::before {
  content: '“';
  display: block;
  font-size: 1.6em;
  line-height: 0.6;
  color: var(--gold);
}
.pull-quote cite {
  display: block;
  margin-top: var(--s5);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* a longer passage from the script — a quiet, readable hook */
.script-quote {
  margin: var(--s6) auto 0;
  max-width: 34em;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 440;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.75;
  color: var(--ink);
}
.script-quote::before {
  content: '“';
  display: block;
  font-family: var(--font-display);
  font-size: 2.5em;
  line-height: 0.5;
  color: var(--gold);
  margin-bottom: var(--s3);
}
.script-quote cite {
  display: block;
  margin-top: var(--s5);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.script-note {
  margin: var(--s7) auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Projects ---------- */

.section-intro { color: var(--ink-soft); }

.project-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--ink);
  background-image: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  background-size: 0;
}

.card-body { padding: var(--s6); }
.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 620;
}
.card-role {
  font-size: 0.8125rem;
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--s4);
}
.card-hook { color: var(--ink-soft); margin-bottom: var(--s5); }
.card-cta {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-deep);
}

.status-pill {
  display: inline-block;
  padding: 0.35em 1em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgb(255 255 255 / 0.04);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  margin-top: var(--s7);
}
.feature-card .shot {
  aspect-ratio: auto;
  min-height: 340px;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}
.feature-card .card-body {
  padding: clamp(var(--s6), 4vw, var(--s8));
  align-self: center;
}
.feature-card .card-body h3 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }

.cards-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
  margin-top: var(--s6);
}
.cards-row .shot { border-radius: 0; box-shadow: none; }
.cards-row .card-body { padding: var(--s6); }

/* per-project accent scopes (cards + detail pages) — lifted for dark ground */
.theme-bodfish {
  --accent: #C05A3A;
  --accent-deep: #E07E5B;
  --ph-grad: linear-gradient(135deg, #8C2F1B, #C77B4A);
}
.theme-dewdrop {
  --accent: #55917D;
  --accent-deep: #82B9A4;
  --ph-grad: linear-gradient(135deg, #3E7C6B, #85B4A2);
}
.theme-day-night {
  --accent: #8878B8;
  --accent-deep: #AC9DDB;
  --ph-grad: linear-gradient(135deg, #C98A4B 0%, #4A3A78 55%, #241E44 100%);
}

/* ---------- Beyond the work ---------- */

.beyond { background: var(--paper-deep); }

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6) var(--s7);
  margin-top: var(--s7);
}
.beyond-item { padding-top: var(--s4); position: relative; }
.beyond-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 42px; height: 2px;
  background: var(--gold);
}
.beyond-item h3 { font-size: 1.0625rem; }
.beyond-item p { color: var(--ink-soft); font-size: 0.9875rem; margin: 0; }

.beyond-closing {
  margin-top: var(--s7);
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

/* ---------- Contact ---------- */

.contact {
  padding-block: var(--section-gap);
}
.contact h2 { margin-bottom: var(--s4); }
.contact p { color: var(--ink-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(var(--s6), 5vw, var(--s8));
  align-items: center;
  max-width: 880px;
  margin-inline: auto;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; text-align: center; }
  .contact-grid .frame { max-width: 300px; margin-inline: auto; }
  .contact-grid p { margin-inline: auto; }
}

.contact-email {
  display: inline-block;
  margin-top: var(--s6);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.4vw, 2.125rem);
  font-weight: 560;
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 0.15em;
  transition: color 200ms ease;
}
.contact-email:hover { color: var(--accent-deep); }

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--s6);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  justify-content: space-between;
}
.site-footer p { margin: 0; }

/* ---------- Project detail pages ---------- */

.page-project .site-header { background: rgb(23 24 17 / 0.88); }

.back-link {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 540;
}

.project-hero { padding-block: var(--s8) var(--s7); }
.project-hero .status-pill { margin-bottom: var(--s5); }
.project-hero h1 { margin-bottom: var(--s3); }
.project-role {
  font-size: 0.875rem;
  font-weight: 620;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--s5);
}
.project-logline {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 32em;
}

.project-band {
  height: 8px;
  background: var(--ph-grad);
}

.project-section { padding-block: calc(var(--section-gap) / 2); }
.project-section h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.project-section .prose p { color: var(--ink-soft); }
.project-section .prose p strong { color: var(--ink); font-weight: 600; }

.gallery {
  display: grid;
  gap: var(--s6);
  margin-top: var(--s6);
}
.gallery figcaption {
  margin-top: var(--s3);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.gallery .shot { box-shadow: var(--shadow); }
.gallery figure { margin: 0; }

.build-list {
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s4);
  max-width: 60ch;
}
.build-list li {
  padding-left: var(--s5);
  position: relative;
  color: var(--ink-soft);
}
.build-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.build-list strong { color: var(--ink); font-weight: 600; }

.next-project {
  border-top: 1px solid var(--hairline);
  padding-block: var(--s7);
}
.next-project .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s6);
  align-items: center;
  justify-content: space-between;
}
.next-project a { font-weight: 600; }
.next-label {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: var(--s1);
}
.next-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}

/* ---------- Motion: scroll reveal ---------- */

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}
.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* gentle stagger for grid siblings */
.js-enabled .cards-row > [data-reveal]:nth-child(2),
.js-enabled .beyond-grid > [data-reveal]:nth-child(2) { transition-delay: 90ms; }
.js-enabled .beyond-grid > [data-reveal]:nth-child(3) { transition-delay: 180ms; }
.js-enabled .beyond-grid > [data-reveal]:nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .btn:hover, .project-card:hover { transform: none; }
}

/* ---------- Lofi layer: grain + quiet media frames ---------- */

/* film grain over everything — the quiet analog hum */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* a photo or clip, presented plainly */
.frame { margin: 0; }
.frame img,
.frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.07);
  box-shadow: var(--shadow);
  /* one shared film grade so every photo sits in the same dim room */
  filter: sepia(0.16) saturate(0.85) contrast(0.96) brightness(0.92);
}
.frame figcaption {
  margin-top: var(--s3);
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* photo wall in Beyond */
.photo-wall {
  margin-top: var(--s8);
  display: grid;
  gap: var(--s7);
  justify-items: center;
}
.frame--wide { max-width: 760px; }
.frame--wide figcaption { text-align: center; }
.frame--center {
  max-width: 420px;
  margin-inline: auto;
}
.frame--center figcaption { text-align: center; }
.wall-note {
  margin: 0;
  max-width: 46ch;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.wiggle-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s6) var(--s5);
  align-items: start;
  width: 100%;
}
.wiggle-row video {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-deep);
}

/* real photos dropped into a project gallery */
.gallery .frame { max-width: 400px; }

/* app-UI screenshots stay crisp — no film grade */
.frame--app img { filter: none; }

/* the lab: small experiments that don't need a whole page */
.lab { margin-top: var(--s8); }
.lab-card {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(var(--s5), 4vw, var(--s7));
  align-items: center;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s6);
  box-shadow: var(--shadow);
  margin-top: var(--s5);
}
.lab-card .frame img,
.lab-card .frame video { box-shadow: none; }
.lab-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.24em;
  margin: var(--s4) 0 var(--s3);
}
.theme-whiff {
  --accent: #4FB7DE;
  --accent-deep: #7ED4F0;
}
@media (max-width: 640px) {
  .lab-card { grid-template-columns: 1fr; }
  .lab-card .frame { max-width: 240px; }
}

/* card art that should crop from the top of a tall screenshot */
.shot img.obj-top { object-position: top; }

@media (max-width: 860px) {
  .wiggle-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 860px) {
  :root { --section-gap: var(--s8); }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: var(--s6) var(--s7);
  }
  .hero-portrait {
    max-width: 420px;
    transform: rotate(0.8deg);
  }

  .feature-card { grid-template-columns: 1fr; }
  .feature-card .shot { min-height: 0; aspect-ratio: 16 / 9; }

  .cards-row { grid-template-columns: 1fr; }

  .beat { grid-template-columns: minmax(56px, 72px) minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .site-nav a:not(.nav-contact) { display: none; }
  .beyond-grid { grid-template-columns: 1fr; }
}
