:root {
  --ink: #0E1114;
  --ink-2: #181D22;
  --paper: #F6F4EE;
  --paper-2: #ECE8DE;
  --text: #15191D;
  --muted: #5B6268;
  --yellow: #FDC500;
  --blue: #00509D;
  --on-dark: #F4F2EC;
  --on-dark-muted: #A7AEB4;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
/* Dark canvas so iOS Safari tints the status bar and overscroll areas to match the hero and footer */
html { scroll-padding-top: 4rem; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.kicker {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}

h2 {
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 900; font-stretch: 125%;
  line-height: 0.85; letter-spacing: -0.04em; text-transform: uppercase;
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--gutter);
  padding-top: max(0.9rem, env(safe-area-inset-top));
  color: #fff;
  transition: background 0.3s, color 0.3s, padding 0.3s;
}
.site-header.scrolled {
  background: var(--ink);
  padding-block: 0.6rem;
}
.mark { display: block; color: #fff; transition: color 0.2s, transform 0.2s; }
.mark svg { display: block; width: 68px; height: 33px; }
.mark:hover { color: var(--yellow); transform: rotate(-4deg); }
.site-header ul { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.site-header nav a {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding-block: 0.25rem;
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 0 3px;
  transition: background-size 0.25s;
}
.site-header nav a:hover { background-size: 100% 3px; }
/* Email icon: sized to the label cap height, same underline hover as the text links */
.nav-icon svg { display: inline-block; vertical-align: baseline; width: 1.04em; height: 0.73em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: miter; overflow: visible; }

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; background: var(--ink); overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 66% 40%;
}
/* Portrait screens only show a narrow slice; shift left so all three hikers fit */
@media (max-aspect-ratio: 4/5) { .hero-img { object-position: 59% 40%; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: drift 24s ease-out both; }
  @keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8, 10, 12, 0.85) 0%, rgba(8, 10, 12, 0.25) 45%, rgba(8, 10, 12, 0) 65%),
    linear-gradient(to bottom, rgba(8, 10, 12, 0.5), rgba(8, 10, 12, 0) 18%);
}
.hero-copy {
  position: relative; z-index: 1;
  padding: 0 var(--gutter) clamp(2.5rem, 7vw, 5rem);
  width: 100%;
}
.hero .kicker { color: var(--yellow); margin-bottom: 1rem; }
.hero h1 {
  font-size: clamp(3.6rem, 15.2vw, 15rem);
  font-weight: 900; font-stretch: 125%;
  line-height: 0.8; letter-spacing: -0.05em; text-transform: uppercase;
  margin: 0 0 0 -0.04em;
}
.hero h1 span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span, .hero .kicker, .roles { animation: rise 0.9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 span:nth-child(2) { animation-delay: 0.1s; }
  .roles { animation-delay: 0.25s; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.4em); } }
}
.roles {
  display: inline-block; margin-top: 1.25rem;
  font-size: clamp(0.95rem, 2vw, 1.35rem); font-weight: 700;
  background: var(--yellow); color: var(--ink);
  padding: 0.35em 0.7em;
}
.roles i { font-style: normal; opacity: 0.45; margin-inline: 0.25em; }
.photo-credit {
  position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(1rem, 3vw, 2rem);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); text-decoration: none;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.photo-credit:hover { color: var(--yellow); }

/* Ticker */
.ticker { background: var(--yellow); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); }
.ticker-track {
  display: flex; width: max-content; align-items: center; gap: 1.5rem;
  padding-block: 0.9rem;
  font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 900; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap;
}
.ticker-track b { font-size: 0.7em; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 30s linear infinite; }
  @keyframes ticker { to { transform: translateX(calc(-50% - 0.75rem)); } }
}

/* About */
.about { padding-block: clamp(5rem, 12vw, 9rem); }
.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
.statement {
  font-size: clamp(1.75rem, 4.4vw, 3.6rem);
  font-weight: 800; font-stretch: 100%;
  line-height: 1.08; letter-spacing: -0.03em;
}
.statement a { text-decoration-color: var(--yellow); text-decoration-thickness: 0.12em; text-underline-offset: 0.12em; }
.statement a:hover { background: var(--yellow); }
mark {
  background: linear-gradient(transparent 55%, var(--yellow) 55%);
  color: inherit; padding-inline: 0.05em;
}
.polaroid {
  background: #fff; padding: 0.7rem 0.7rem 0;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.35);
  transform: rotate(3deg); max-width: min(380px, 80%); justify-self: center;
  transition: transform 0.3s;
}
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
.polaroid img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 57% 50%; width: 100%; }
.polaroid figcaption {
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  text-align: center; padding: 0.8rem 0 1rem;
}
.facts { display: grid; gap: 0; border-top: 3px solid var(--text); align-self: start; }
.facts li {
  display: grid; grid-template-columns: 7rem 1fr; gap: 1rem;
  padding-block: 0.9rem; border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  font-weight: 600;
}
.facts span { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 0.2rem; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; }
  .statement { grid-column: 1; grid-row: 1; }
  .polaroid { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .facts { grid-column: 1; grid-row: 2; max-width: 34rem; }
}

/* Section heads */
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head .kicker { color: var(--blue); }

/* Work */
.work { background: var(--paper-2); padding-block: clamp(5rem, 12vw, 9rem); border-top: 3px solid var(--text); }
.project {
  display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  margin-bottom: clamp(4rem, 9vw, 7rem);
}
@media (min-width: 900px) {
  .project { grid-template-columns: 1.35fr 1fr; }
  .project.flip { grid-template-columns: 1fr 1.35fr; }
  .project.flip .browser { order: 2; }
}
.browser {
  display: block; text-decoration: none;
  background: var(--ink); border-radius: 10px; overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--yellow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.project.flip .browser { box-shadow: -14px 14px 0 var(--blue); }
.browser:hover { transform: translate(-4px, -4px); box-shadow: 20px 20px 0 var(--yellow); }
.project.flip .browser:hover { transform: translate(4px, -4px); box-shadow: -20px 20px 0 var(--blue); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 0.55rem 0.8rem; color: var(--on-dark-muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A4148; }
.browser-bar i:first-child { background: #FF5F57; }
.browser-bar i:nth-child(2) { background: #FEBC2E; }
.browser-bar i:nth-child(3) { background: #28C840; }
.browser-bar em { font-style: normal; font-family: var(--mono); font-size: 0.72rem; margin-left: 0.75rem; }
.project-num {
  font-family: var(--display); font-size: clamp(4rem, 9vw, 7rem); font-weight: 900; font-stretch: 125%;
  line-height: 0.8; color: transparent; -webkit-text-stroke: 2px var(--text);
}
.project h3 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; font-stretch: 112%;
  line-height: 1; letter-spacing: -0.03em; text-transform: uppercase;
  margin: 1rem 0;
}
.project h3:has(.project-logo) { display: flex; align-items: center; gap: 0.35em; }
.project-logo { width: 1.1em; height: 1.1em; flex: none; border-radius: 22.5%; }
.project-copy > p:not(.project-num) { color: var(--muted); max-width: 32rem; margin-bottom: 1.75rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.95rem;
  padding: 0.85rem 1.3rem; background: var(--ink); color: #fff;
  border: 3px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--yellow); color: var(--ink); }

.github {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem); border: 3px solid var(--text);
  text-decoration: none; transition: background 0.2s;
}
.github .project-num { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.github-copy { color: var(--muted); }
.github-copy strong { display: block; color: var(--text); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.github-arrow { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; transition: transform 0.2s; }
.github:hover { background: var(--yellow); }
.github:hover .github-copy { color: var(--text); }
.github:hover .github-arrow { transform: translate(4px, -4px); }

/* Photos */
.photos { background: var(--ink); color: var(--on-dark); padding-block: clamp(5rem, 12vw, 9rem); }
.photos .section-head .kicker { color: var(--yellow); }
.photos h2 { color: var(--on-dark); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.filters button {
  font: 600 0.78rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-dark); background: transparent; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3); padding: 0.55rem 0.95rem; border-radius: 999px;
  transition: all 0.2s;
}
.filters button:hover { border-color: var(--yellow); color: var(--yellow); }
.filters button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.mosaic {
  display: grid; gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 42vw; grid-auto-flow: dense;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 700px) { .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 22vw; } }
@media (min-width: 1100px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; } }
.mosaic .w2 { grid-column: span 2; }
.mosaic .h2 { grid-row: span 2; }
.mosaic li.hidden { display: none; }
.mosaic a { position: relative; display: block; height: 100%; overflow: hidden; background: var(--ink-2); text-decoration: none; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1), filter 0.3s; }
.mosaic a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}
.mosaic span {
  position: absolute; z-index: 1; left: 0.9rem; right: 0.9rem; bottom: 0.8rem;
  font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.05;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  opacity: 0; transform: translateY(8px); transition: all 0.3s;
}
.mosaic small { display: block; font: 400 0.7rem var(--mono); letter-spacing: 0.08em; color: var(--yellow); margin-top: 0.2rem; }
.mosaic a:hover img, .mosaic a:focus-visible img { transform: scale(1.06); }
.mosaic a:hover::after, .mosaic a:focus-visible::after,
.mosaic a:hover span, .mosaic a:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) {
  .mosaic a::after, .mosaic span { opacity: 1; transform: none; }
}
.btn-big { background: var(--yellow); color: var(--ink); border-color: var(--yellow); font-size: clamp(1rem, 2vw, 1.25rem); padding: 1.1rem 1.6rem; }
.btn-big:hover { background: transparent; color: var(--yellow); }

/* Journal teaser */
.journal { padding-block: clamp(5rem, 12vw, 9rem); border-top: 3px solid var(--text); }
.latest-img img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.latest-img img[src*="ytimg.com"] { transform: scale(1.19); }
.latest[hidden] { display: none; }
.latest .project-copy > .latest-meta { color: var(--blue); margin-bottom: 0; }
.latest .latest-title { margin: 0.75rem 0 1rem; }

/* Contact */
.contact {
  position: relative; overflow: hidden; color: #fff; background: #1B3550;
  padding-block: clamp(6rem, 16vw, 12rem);
}
.contact-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 18, 32, 0.65), rgba(6, 18, 32, 0.1)); }
.contact-copy { position: relative; z-index: 2; display: grid; gap: 1.25rem; justify-items: start; }
.contact .kicker { color: var(--yellow); }
.email {
  font-size: clamp(1.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em;
  color: #fff; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 100% 0.12em;
  transition: background-size 0.25s, color 0.25s;
}
.email:hover { background-size: 100% 100%; color: var(--ink); }
.social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social a {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social a:hover { background: var(--yellow); color: var(--ink); transform: translateY(-3px); }
.social svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 2rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background: var(--ink); color: var(--on-dark-muted);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
}
.footer-sig { width: 56px; height: 28px; color: var(--yellow); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 8, 10, 0.96); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: transparent; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: clamp(0.5rem, 3vw, 2rem); min-height: 0; }
.lightbox-bar {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.75rem var(--gutter) max(0.75rem, env(safe-area-inset-bottom));
}
.lightbox-title { font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; margin-right: auto; }
.lightbox-title small { font: 400 0.75rem var(--mono); color: var(--yellow); margin-left: 0.5rem; }
.lightbox-album { font: 600 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; margin-right: 0.75rem; }
.lightbox-album:hover { color: var(--yellow); }
.lightbox button {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.1rem;
}
.lightbox button:hover { background: var(--yellow); color: var(--ink); }

@media (max-width: 560px) {
  .site-header nav a { font-size: 0.72rem; }
  .facts li { grid-template-columns: 5.5rem 1fr; }
  .github { grid-template-columns: 1fr auto; }
  .github .project-num { display: none; }
}
.browser.native { border-color: #3A4148; }

/* Video */
.video { background: var(--yellow); color: var(--ink); padding-block: clamp(5rem, 12vw, 9rem); border-top: 3px solid var(--ink); }
.video .section-head .kicker, .video .kicker { color: var(--ink); }
.video .btn:hover { background: var(--paper); }
.vid { display: block; text-decoration: none; color: inherit; }
.thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink); border: 3px solid var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1); }
.vid:hover .thumb img, .vid:focus-visible .thumb img { transform: scale(1.05); }

.series { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
@media (min-width: 900px) { .series { grid-template-columns: 1.4fr 1fr; } }
.feature { position: relative; box-shadow: 14px 14px 0 var(--ink); transition: transform 0.25s, box-shadow 0.25s; }
.feature:hover { transform: translate(-4px, -4px); box-shadow: 20px 20px 0 var(--ink); }
.play {
  position: absolute; left: 50%; top: 50%; width: clamp(4rem, 9vw, 6rem); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink);
  transition: transform 0.2s;
}
.play::after {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 0.9rem 0 0.9rem 1.5rem; border-color: transparent transparent transparent var(--ink);
}
.feature:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.series-copy h3 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; font-stretch: 125%;
  line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; margin: 0.5rem 0 1rem;
}
.series-copy > p:not(.kicker) { max-width: 32rem; margin-bottom: 1.5rem; }
.stats { display: flex; gap: 2.5rem; margin: 0 0 1.75rem; }
.stats dt { font: 600 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.stats dd { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em; line-height: 1; }

.strip-wrap { margin-inline: calc(-1 * var(--gutter)); margin-bottom: clamp(4rem, 9vw, 6rem); }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 290px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 1rem var(--gutter) 1.25rem;
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.strip li { scroll-snap-align: start; }
.ep { display: block; font: 600 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.7rem; }
.vid-title { display: block; font-weight: 800; line-height: 1.2; margin-top: 0.2rem; }
.vid:hover .vid-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

.portfolio-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; border-top: 3px solid var(--ink); padding-top: 1.25rem; margin-bottom: 1.75rem; }
.portfolio-head h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
.reel { display: grid; gap: 1.5rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.reel .vid-title { margin-top: 0.7rem; font-size: 1.1rem; }
.reel .ep { margin-top: 0.15rem; }

/* Video player */
.player {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 8, 10, 0.96); color: #fff;
}
.player[open] { display: grid; grid-template-rows: 1fr auto; }
.player::backdrop { background: transparent; }
.player-frame { display: grid; place-items: center; padding: clamp(0.5rem, 3vw, 2rem); min-height: 0; }
.player iframe { width: min(100%, calc((100dvh - 7rem) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; }
.player .lightbox-bar { justify-content: flex-end; }
.player button {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.1rem;
}
.player button:hover { background: var(--yellow); color: var(--ink); }
