/* ==========================================================================
   Stephen Michael Media
   Design tokens — change these first, everything else follows.
   ========================================================================== */

:root {
  /* --- Type ------------------------------------------------------------ */
  --font-display: "Archivo Black", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;

  /* Fluid scale: shrinks on phones, grows on desktop, no media queries. */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.11rem + 0.42vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.31rem + 0.93vw, 2.05rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.75rem, 1.7rem + 5.2vw, 6rem); /* banner titles */

  /* --- Spacing --------------------------------------------------------- */
  --space-2xs: 0.375rem;
  --space-xs: 0.75rem;
  --space-s: 1.125rem;
  --space-m: 1.75rem;
  --space-l: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  /* --- Layout ---------------------------------------------------------- */
  --measure: 62ch;
  --container: 78rem;
  --gutter: 1.5rem;
  --rule: 2.5px; /* the black hairline under the header */

  /* --- Color ------------------------------------------------------------
     One theme only, on purpose. The whole site sits on a bright animated
     lava-lamp backdrop (see "The lava-lamp background"), so type has to stay dark whatever
     the visitor's light/dark setting. There is no dark mode to maintain. */
  color-scheme: light;

  --sun-yellow: #ffc629;
  --sun-orange: #f4731f;
  /* A touch lighter than a pure stripe red, so dark body text on the reddest
     patches still clears 4.5:1 contrast. #e0241c does not. */
  --sun-red: #e93a24;

  --bg: transparent;
  --bg-alt: rgb(255 255 255 / 0.22); /* faint wash, e.g. behind loading images */
  --surface: rgb(255 255 255 / 0.62); /* panel behind long-form text */
  --ink: #111014; /* near-black for type and rules */
  --ink-muted: #241a16;
  --border: #111014;
  --link: #111014; /* blue on orange is unreadable; links are dark + underlined */
  --focus: #111014;
  --on-gradient: #111014;

  --shadow-tile: 0 10px 30px -12px rgb(17 16 20 / 0.45);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

* {
  margin: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100svh;
  /* Must stay transparent: a body background would paint over the fixed
     sunset layers sitting behind it. */
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Archivo Black only ships one weight */
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
}
h2 {
  font-size: var(--step-2);
}
h3 {
  font-size: var(--step-1);
}

p,
li {
  text-wrap: pretty;
}

p + p {
  margin-top: var(--space-s);
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: var(--measure);
}

.section {
  padding-block: var(--space-xl);
}

.stack > * + * {
  margin-top: var(--space-s);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: var(--space-xs) var(--space-s);
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   The lava-lamp background
   --------------------------------------------------------------------------
   Behind the whole site: warm "liquid" (a fixed gradient, glowing brightest
   at the bottom like a lamp lit from its base) with eight blobs of "wax"
   drifting up and down through it, in the yellow, orange and red tokens.

   The markup is one decorative block at the top of <body> on every page:
     <div class="lava" aria-hidden="true"><span></span> x8</div>

   IMPORTANT: on almost every visitor's screen these CSS blobs are only the
   stand-in. site.js replaces them with a WebGL canvas whose blobs really fuse
   and split (see "The live version" below, and "Lava lamp" in site.js). To
   change how the lamp looks for most people, edit site.js. The CSS blobs are
   what shows without WebGL, without JavaScript, or with reduced motion on.

   What makes it read as lava rather than floating circles:
   - each blob squashes flat where it pools at the bottom and top, and
     stretches tall while it travels, the way rising wax does;
   - every blob has its own size, speed, sideways wander and start point
     (the negative delays), so they never move in step;
   - crisp, slightly lopsided outlines with a glossy highlight, so each one
     reads as a solid lump of wax and wobbles as it leans.

   Why it stays smooth: the blobs are painted once and then only moved with
   `transform` (and `translate` for the scroll nudge), which the browser
   does on the graphics card without repainting. There is deliberately no
   blur or "gooey" filter over the whole screen: that looks slightly more
   liquid but redraws the full page every frame and stutters on phones.

   To tune one blob, edit its line in the table below:
     --x start position across the screen   --s size multiplier
     --t seconds for one trip up (or down)  --d head start (negative = mid-trip)
     --wx sideways wander   --rot lean      --dx/--dy how far scrolling nudges it
     --hot centre colour    --wax body colour    (--shape: outline, set by the
     three odd/even/3n rules above the table)
   ========================================================================== */

html {
  background-color: var(--sun-orange);
}

.lava {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #ffb62e 0%,
    #f98a22 22%,
    var(--sun-orange) 55%,
    #ee5526 100%
  );
}

.lava span {
  position: absolute;
  top: 100%; /* parked just below the screen; the animation lifts it in */
  left: var(--x);
  width: clamp(calc(var(--s) * 130px), calc(var(--s) * 27vw), calc(var(--s) * 470px));
  aspect-ratio: 1 / 1.08;
  /* A hard, slightly lopsided outline (the owner asked for defined, sharp
     blobs rather than soft glows). The lopsidedness matters: as the animation
     leans and stretches the blob, an uneven shape visibly wobbles where a
     perfect oval would just look like an oval. */
  border-radius: var(--shape);
  /* Brighter off-centre core, so each blob looks lit from inside. */
  background: radial-gradient(circle at 40% 36%, var(--hot) 0%, var(--wax) 62%);
  /* A soft highlight on the upper left and a faint shade on the lower right:
     the glossy, rounded look of wax behind glass. Painted once, not per frame. */
  box-shadow:
    inset 0.7vmax 0.9vmax 2.2vmax rgb(255 255 255 / 0.28),
    inset -0.6vmax -0.8vmax 2vmax rgb(120 20 0 / 0.1);
  animation: lava-float var(--t) linear var(--d) infinite alternate;
  /* The scroll nudge. Separate from the `transform` the animation drives, so
     the two add together instead of fighting. Eased so wheel steps glide. */
  translate: calc(var(--drift-x, 0) * var(--dx)) calc(var(--drift-y, 1) * var(--dy));
  transition: translate 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.lava span:nth-child(odd)  { --shape: 46% 54% 42% 58% / 56% 44% 56% 44%; }
.lava span:nth-child(even) { --shape: 57% 43% 52% 48% / 45% 55% 47% 53%; }
.lava span:nth-child(3n)   { --shape: 50% 50% 38% 62% / 60% 42% 58% 40%; }

/*                          across  size   trip    start   wander   lean     scroll nudge        colours */
.lava span:nth-child(1) { --x: 2%;   --s: 1.25; --t: 34s; --d: -4s;  --wx: 5vw;  --rot: 8deg;   --dx: 3vw;  --dy: 5vh;  --hot: #ffe07a; --wax: var(--sun-yellow); }
.lava span:nth-child(2) { --x: 56%;  --s: 1.45; --t: 44s; --d: -19s; --wx: -6vw; --rot: -10deg; --dx: -4vw; --dy: 8vh;  --hot: #f4603a; --wax: var(--sun-red); }
.lava span:nth-child(3) { --x: 30%;  --s: 0.8;  --t: 26s; --d: -9s;  --wx: 7vw;  --rot: 12deg;  --dx: 5vw;  --dy: -6vh; --hot: #f4603a; --wax: var(--sun-red); }
.lava span:nth-child(4) { --x: 74%;  --s: 0.95; --t: 36s; --d: -24s; --wx: -5vw; --rot: 6deg;   --dx: -3vw; --dy: 7vh;  --hot: #ffe07a; --wax: var(--sun-yellow); }
.lava span:nth-child(5) { --x: -10%; --s: 1.1;  --t: 48s; --d: -30s; --wx: 8vw;  --rot: -7deg;  --dx: 4vw;  --dy: -4vh; --hot: #f4603a; --wax: var(--sun-red); }
.lava span:nth-child(6) { --x: 42%;  --s: 0.62; --t: 22s; --d: -2s;  --wx: -8vw; --rot: 14deg;  --dx: -6vw; --dy: 9vh;  --hot: #ffe07a; --wax: var(--sun-yellow); }
.lava span:nth-child(7) { --x: 84%;  --s: 0.72; --t: 29s; --d: -13s; --wx: 4vw;  --rot: -12deg; --dx: 3vw;  --dy: -7vh; --hot: #ffb347; --wax: #fb8c2a; }
.lava span:nth-child(8) { --x: 16%;  --s: 0.55; --t: 24s; --d: -15s; --wx: -6vw; --rot: 9deg;   --dx: -5vw; --dy: 6vh;  --hot: #ffb347; --wax: #fb8c2a; }

/* --- The live version ---------------------------------------------------
   site.js draws the real lamp into a <canvas> it adds here, with blobs that
   fuse and pinch apart, which separate CSS shapes cannot do. The canvas fades
   in over the CSS blobs once its first picture is ready; the CSS blobs then
   stop and hide, so only one version is ever running. If the canvas never
   starts (no WebGL, or the visitor prefers reduced motion), none of this
   applies and the CSS blobs above are the background. */

.lava canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 600ms ease;
}

.lava--live canvas {
  opacity: 1;
}

.lava--live span {
  visibility: hidden;
  animation-play-state: paused;
  transition: visibility 0s 600ms; /* wait for the fade before hiding */
}

/* One trip from the bottom pool to the top pool; `alternate` brings it back.
   -50% keeps the blob's centre on the screen edge at each end, so it sits
   half-submerged like pooled wax instead of vanishing. The per-step easing
   starts it gently, keeps it moving through the middle, and settles it. */
@keyframes lava-float {
  0% {
    transform: translate3d(0, -50%, 0) rotate(0deg) scale(1.25, 0.8);
    animation-timing-function: cubic-bezier(0.45, 0, 0.75, 0.6);
  }
  15% {
    transform: translate3d(calc(var(--wx) * 0.6), calc(-50% - 12vh), 0) rotate(calc(var(--rot) * 0.5)) scale(0.92, 1.22);
    animation-timing-function: linear;
  }
  50% {
    transform: translate3d(var(--wx), calc(-50% - 50vh), 0) rotate(var(--rot)) scale(1.02, 1.04);
    animation-timing-function: linear;
  }
  85% {
    transform: translate3d(calc(var(--wx) * -0.4), calc(-50% - 88vh), 0) rotate(calc(var(--rot) * 0.4)) scale(0.94, 1.18);
    animation-timing-function: cubic-bezier(0.25, 0.4, 0.55, 1);
  }
  100% {
    transform: translate3d(0, calc(-50% - 100vh), 0) rotate(0deg) scale(1.22, 0.82);
  }
}

/* Visitors who ask for less motion get the lamp frozen mid-flow. The global
   reduced-motion rule near the top would otherwise snap every blob to the end
   of its trip, so its !important settings are countered here and the blobs
   are paused where their head starts left them. */
@media (prefers-reduced-motion: reduce) {
  .lava span {
    animation-duration: var(--t) !important;
    animation-iteration-count: infinite !important;
    animation-play-state: paused;
    translate: none;
    transition: none;
  }
}

/* --- Banner wrapper ------------------------------------------------------
   Used to carry its own gradient per page. The background is now shared, so
   this only keeps header + title grouped and their type dark. */

.banner {
  position: relative;
  isolation: isolate;
  color: var(--on-gradient);
}

.banner > * {
  position: relative;
  z-index: 1;
}

/* --- Hero (front page) -------------------------------------------------- */

.hero {
  padding-block: clamp(var(--space-xl), 9vw, var(--space-2xl));
  max-width: 46rem;
}

.hero h1 {
  /* The longest line, "VIDEOGRAPHER &", measures 9.96em in this font. Capping
     the size at (screen width - gutters) / 10.1 guarantees it fits on any
     phone; without the cap it ran off the edge and widened the whole page.
     On larger screens the normal --step-4 size is the smaller of the two. */
  font-size: min(var(--step-4), calc((100vw - 3rem) / 10.1));
  text-transform: uppercase;
  margin-top: var(--space-2xs);
}

.hero__lede {
  margin-top: var(--space-s);
  font-size: var(--step-1);
  line-height: 1.45;
  font-weight: 500;
  max-width: 34ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-m);
}

/* --- Section headings --------------------------------------------------- */

/* The header is sticky, so an anchor jump must stop short of it or the
   heading lands underneath. */
[id] {
  scroll-margin-top: 6rem;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
  flex-wrap: wrap;
  border-bottom: var(--rule) solid var(--border);
  padding-bottom: var(--space-xs);
}

.section__head h2 {
  font-size: var(--step-3);
  text-transform: uppercase;
}

.section__head a {
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step-0);
  white-space: nowrap;
}

.section--tinted {
  background: transparent;
  border-block: var(--rule) solid var(--border);
}

/* --- Banner title block ------------------------------------------------ */

.banner__title {
  padding-block: var(--space-xl) var(--space-2xl);
  text-align: center;
}

.banner__title h1 {
  font-size: var(--step-4);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* An accent colour for a single page's title, as the old site did with the
   electric blue on PEOPLE. */
.banner__title--blue h1 {
  color: var(--link);
}

/* ==========================================================================
   Header / nav
   --------------------------------------------------------------------------
   Sits transparently on top of the banner, with the black rule beneath it.
   ========================================================================== */

.site-header {
  border-bottom: var(--rule) solid #111014;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: 6.75rem; /* was taller, to fit the old round badge */
}

/* The logo: a camera with a globe in the lens, and the name stacked beside
   it. A simplified spin on the owner's original round badge. The camera is an
   image (assets/img/logo-mark.svg); the words are real text in the display
   font, so they stay sharp, readable by screen readers, and easy to edit. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
  color: #111014;
  flex-shrink: 0;
}

.brand__mark {
  width: clamp(3.5rem, 5.4vw, 4.75rem);
  height: auto;
}

.brand__words {
  font-family: var(--font-display);
  /* Sized so the three lines stand about as tall as the camera. */
  font-size: clamp(0.95rem, 1.42vw, 1.25rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.2vw, 2.25rem);
}

.nav a {
  color: #111014;
  text-decoration: none;
  font-size: var(--step-0);
  font-weight: 500;
  padding-block: 0.2em;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: #111014;
}

.nav a[aria-current="page"] {
  border-bottom-color: #111014;
}

@media (max-width: 38rem) {
  .site-header__inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-height: 0;
    padding-block: var(--space-s);
  }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   Buttons
   --------------------------------------------------------------------------
   These sit on top of gradient banners most of the time, so they use the
   fixed ink colour rather than the themed one — the gradients stay bright in
   dark mode, so the type on them must stay dark.
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1.5em;
  border: 2px solid #111014;
  background: #111014;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover {
  background: transparent;
  color: #111014;
}

.button:active {
  transform: translateY(1px);
}

.button--ghost {
  background: transparent;
  color: #111014;
}

.button--ghost:hover {
  background: #111014;
  color: #fff;
}

/* The "Book" nav item, marked out from the plain links beside it. */
.nav a.nav__cta {
  border: 2px solid #111014;
  border-radius: 999px;
  padding: 0.2em 0.95em;
  font-weight: 600;
}

.nav a.nav__cta:hover,
.nav a.nav__cta[aria-current="page"] {
  background: #111014;
  color: #fff;
}

/* ==========================================================================
   Click feedback
   --------------------------------------------------------------------------
   Everything button-like gives a quick springy "pop" when clicked, and the
   boxed ones also send a ripple out from the exact spot that was pressed.
   site.js ("Click feedback") adds .is-pressed plus the --press-x / --press-y
   position, and takes the class off again when the pop finishes, so the next
   click starts fresh.

   `scale` is used instead of `transform` so the pop adds to the hover and
   pressed transforms these elements already have, rather than replacing them.
   Visitors with reduced motion switched on get none of this: the global rule
   near the top of this file cuts every animation to nothing.
   ========================================================================== */

.is-pressed {
  animation: press-pop 450ms ease-out;
}

@keyframes press-pop {
  0%   { scale: 1; }
  30%  { scale: 0.93; }
  65%  { scale: 1.045; }
  100% { scale: 1; }
}

/* The ripple needs a box to stay inside. `isolation` lets the ripple sit
   above the button's background but below its label (see z-index: -1). */
.button,
.nav a.nav__cta,
.lightbox__close {
  overflow: hidden;
  isolation: isolate;
}

.button,
.nav a.nav__cta {
  position: relative;
}

.button::after,
.nav a.nav__cta::after,
.lightbox__close::after,
.video__frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--press-x, 50%);
  top: var(--press-y, 50%);
  width: 250%; /* wide enough to reach the far corner from any press point */
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  scale: 0;
  opacity: 0;
  background: rgb(255 226 120 / 0.6); /* warm lava yellow */
  pointer-events: none;
}

/* Over a video thumbnail or the dark lightbox, a white flash reads better,
   and on the video it has to sit above the picture, not behind it. */
.video__frame::after {
  z-index: 1;
  background: rgb(255 255 255 / 0.4);
}

.lightbox__close::after {
  background: rgb(255 255 255 / 0.4);
}

.is-pressed::after {
  animation: press-ripple 450ms ease-out;
}

@keyframes press-ripple {
  from { scale: 0; opacity: 1; }
  to   { scale: 1; opacity: 0; }
}

/* ==========================================================================
   Category tiles (the Work index)
   ========================================================================== */

.tiles {
  display: grid;
  gap: clamp(var(--space-m), 5vw, var(--space-xl));
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  padding-block: var(--space-xl) var(--space-2xl);
}

.tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: #111014;
  box-shadow: var(--shadow-tile);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -14px rgb(17 16 20 / 0.6);
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 500ms ease;
}

.tile:hover img {
  transform: scale(1.04);
}

/* Scrim so the black label stays readable whatever the photo does. */
.tile__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-xl) var(--space-s) var(--space-m);
  font-family: var(--font-display);
  font-size: var(--step-2);
  text-align: center;
  background: linear-gradient(
    to top,
    rgb(255 255 255 / 0.82) 0%,
    rgb(255 255 255 / 0.55) 45%,
    transparent 100%
  );
}

/* ==========================================================================
   Photo gallery
   ========================================================================== */

.gallery {
  display: grid;
  gap: clamp(var(--space-s), 2.5vw, var(--space-m));
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  padding-block: var(--space-xl);
}

.gallery figure {
  margin: 0;
}

/* <picture> is inline by default, which leaves a stray baseline gap under
   each photo. */
.gallery picture {
  display: block;
}

.gallery img {
  width: 100%;
  height: auto;
  background: var(--bg-alt); /* placeholder tone while loading */
  cursor: zoom-in;
}

.gallery figcaption {
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* ==========================================================================
   Video grid + click-to-load YouTube facade
   --------------------------------------------------------------------------
   A real YouTube iframe pulls ~1MB of script before anyone presses play. This
   loads a thumbnail instead and only swaps in the iframe on click, which is
   dramatically faster and doesn't set third-party cookies on arrival.
   ========================================================================== */

.videos {
  display: grid;
  gap: clamp(var(--space-m), 4vw, var(--space-xl));
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  padding-block: var(--space-xl);
}

.video {
  margin: 0;
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.video__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, opacity 200ms ease;
}

.video__frame:hover img {
  transform: scale(1.03);
  opacity: 0.85;
}

/* A facade with no real video ID yet: show the placeholder art, but don't
   promise a play button that does nothing. */
.video__frame:disabled {
  cursor: default;
  background: var(--bg-alt);
}

.video__frame:disabled .video__play {
  display: none;
}

.video__frame:disabled img {
  object-fit: contain; /* don't crop the placeholder's message */
}

.video__frame:disabled:hover img {
  transform: none;
  opacity: 1;
}

.video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 4.5rem;
  height: 3.15rem;
  border-radius: 0.75rem;
  background: #f00;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: scale 200ms ease;
}

.video__frame:hover .video__play {
  scale: 1.08;
}

.video__play::before {
  content: "";
  border-style: solid;
  border-width: 0.65rem 0 0.65rem 1.05rem;
  border-color: transparent transparent transparent #fff;
}

.video__title {
  margin-top: var(--space-xs);
  font-weight: 600;
  font-size: var(--step-0);
}

/* ==========================================================================
   About page
   ========================================================================== */

.about {
  display: grid;
  gap: clamp(var(--space-m), 5vw, var(--space-xl));
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: var(--space-xl);
}

@media (min-width: 55rem) {
  .about {
    grid-template-columns: 1fr 1fr;
  }
}

.about__text {
  background: var(--surface);
  border: var(--rule) solid var(--border);
  padding: clamp(var(--space-m), 4vw, var(--space-xl));
}

.about__photo img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Booking section + form
   ========================================================================== */

.book {
  padding-block: var(--space-xl) var(--space-2xl);
  border-top: var(--rule) solid #111014;
}

.book__inner {
  display: grid;
  gap: clamp(var(--space-m), 5vw, var(--space-xl));
  align-items: start;
}

@media (min-width: 58rem) {
  .book__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.book__intro h2 {
  font-size: var(--step-3);
  text-transform: uppercase;
}

.book__intro p {
  margin-top: var(--space-s);
  max-width: 34ch;
  font-weight: 500;
}

.book__direct a,
.book__intro a {
  color: var(--on-gradient);
}

.book .socials {
  justify-content: flex-start;
}

/* --- Form --------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--space-s);
  background: rgb(255 255 255 / 0.72);
  border: var(--rule) solid #111014;
  padding: clamp(var(--space-m), 4vw, var(--space-l));
  color: #111014;
}

.field {
  display: grid;
  gap: var(--space-2xs);
}

.field label {
  font-weight: 600;
  font-size: var(--step--1);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65em 0.8em;
  border: 2px solid #111014;
  border-radius: 0;
  background: #fff;
  color: #111014;
  font-size: var(--step-0);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 1px;
}

.form .button {
  justify-self: start;
}

.form__status {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  min-height: 1.5em;
}

.form__status[data-state="error"] {
  color: #a3121a;
}

.form__status[data-state="ok"] {
  color: #0d6b4f;
}

.form[data-sent="true"] .field,
.form[data-sent="true"] .button {
  display: none;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact {
  min-height: 72svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: var(--space-s);
  padding-block: var(--space-2xl);
}

.contact h1 {
  font-size: var(--step-3);
}

.contact a {
  color: var(--on-gradient);
}

.socials {
  display: flex;
  gap: var(--space-m);
  justify-content: center;
  margin-top: var(--space-m);
}

.socials a {
  color: var(--on-gradient);
  display: grid;
  place-items: center;
  padding: var(--space-2xs);
}

.socials svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

dialog.lightbox {
  border: none;
  padding: 0;
  max-width: 100vw;
  max-height: 100svh;
  width: 100%;
  height: 100%;
  background: transparent;
  overscroll-behavior: contain;
}

dialog.lightbox::backdrop {
  background: rgb(10 9 12 / 0.93);
}

.lightbox__inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: var(--space-m);
}

.lightbox__inner img {
  max-width: 100%;
  max-height: 88svh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__close {
  position: fixed;
  top: var(--space-s);
  right: var(--space-s);
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox__close:hover {
  background: #fff;
  color: #000;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: var(--rule) solid var(--border);
  padding-block: var(--space-m);
  font-size: var(--step--1);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
