/* ---------- Reset ---------- */

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

* {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

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

body {
  min-height: 100svh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
}

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

button, input, textarea, select {
  background: none;
  border: none;
  appearance: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  border: none;
}

/* ---------- Your styles below ---------- */

/* Scrolls, but shows no scrollbar (the page, walls, panels, tab bodies). */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

html, body {
  height: 100%;
  background: #000;
}

html {
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.main-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* lvh: the tallest the screen gets (mobile browser bars hidden), so the
     fixed background never shows a gap as they slide away. */
  height: 100vh;
  height: 100lvh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame {
  position: relative;
  height: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

/* Background reel (YouTube), laid over the placeholder still (js/script.js):
   invisible until it's actually playing, then fading in. */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.bg-video.is-playing {
  opacity: 1;
}

.pages {
  position: relative;
  z-index: 1;
}

/* Screen heights: svh, the visible height with mobile browser bars
   showing (vh is the height with them hidden, so a 100vh section runs
   under the bars and its bottom -- the drawer, dots, cue -- is cut off).
   svh never changes while scrolling, so nothing re-lays-out mid-scroll
   (dvh would). On desktop all three are the same. The vh line is the
   fallback for browsers without them. */
.page {
  height: 100vh;
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--page-bg);
  /* The page colour a step darker: behind the wall's tiles and the photo
     slideshow (worked out per section, from its own --page-bg). */
  --wall-bg: color-mix(in srgb, var(--page-bg) 85%, black);
}

/* ---------- Video series pages ---------- */

.video-page {
  position: relative;
  display: flex;
  flex-direction: row;
  --carousel-width: calc(100svh * 9 / 16);
}

/* Below 2x --carousel-width there's no room left for a side-by-side
   layout (both sides have that same min-width) -- script.js toggles
   this class and page-info becomes a bottom drawer over a full-bleed
   carousel instead. See .drawer-fab / .page-info.is-open below. */
:is(.video-page, .grid-page).drawer-mode {
  overflow: hidden;
}

.video-page.drawer-mode .carousel {
  max-width: none;
  width: 100%;
}

:is(.video-page, .grid-page).drawer-mode .page-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-width: 0;
  height: 75%;
  justify-content: flex-start;
  /* The page background, lifted like the side panel (--panel-lift). */
  background: color-mix(in srgb, var(--page-bg), white var(--panel-lift));
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
  z-index: 4; /* above .carousel-nav's z-index: 3 */
  /* --peek-gap is sized for the side-by-side layout's nav-button
     clearance and balloons once the carousel goes full-bleed here --
     it has nothing to do with this drawer, so pin real fixed values
     instead of inheriting it. */
  padding: 0 24px 32px;
  gap: 10px;
  /* Closed, only the peek strip shows: the site and page titles. */
  transform: translateY(calc(100% - var(--drawer-peek)));
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  /* Content fills the drawer's width, left-justified at its padding,
     the same as the side panel (no centred column). */
  align-items: stretch;
}

:is(.video-page, .grid-page).drawer-mode .page-subtitle,
:is(.video-page, .grid-page).drawer-mode .page-meta,
:is(.video-page, .grid-page).drawer-mode .tabs {
  width: 100%;
  /* rem, not ch -- ch is relative to each element's OWN font-size, so
     the same "75ch" resolves to a different pixel width on the 18px
     subtitle vs. the ~16px body text and they'd never actually match up.
     rem is anchored to the root font-size instead, so this is a fixed,
     consistent width across all of them (~75ch at a 16px base). */
  max-width: 37.5rem;
}

/* The site title and page name are centred in the peek strip (its full
   height), so they stay put as the drawer opens. */
:is(.video-page, .grid-page).drawer-mode .site-head {
  min-height: var(--drawer-peek);
  justify-content: center;
  /* The body starts right under the strip: no gap above it (cancels the
     drawer's 10px gap, set below, for this one join). */
  margin-bottom: -10px;
}

/* The drawer's column is wider (75ch) than the side-by-side layout's
   (45ch, still the default outside drawer-mode) -- match it here so
   the tab body doesn't wrap narrower than the rest of the block. */
:is(.video-page, .grid-page).drawer-mode .tab-pane {
  max-width: none;
}

:is(.video-page, .grid-page).drawer-mode .page-info.is-open {
  transform: translateY(0);
}

:is(.video-page, .grid-page).drawer-mode .page-info::before {
  content: none;
}

/* While closed, the whole peeking strip is the tap target to open --
   there's nothing else visible/interactive in that sliver. Once open,
   this doesn't apply, so tabs/text/links inside stay normal (closing
   is the fab's job, not an easy-to-trigger click-anywhere). */
:is(.video-page, .grid-page).drawer-mode .page-info:not(.is-open) {
  cursor: pointer;
}

.carousel {
  position: relative;
  flex: 1 1 60%;
  max-width: var(--carousel-width);
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--page-bg) 85%, black);
}

/* Sinks the carousel visually below the page and fades peeking cards
   under the frame edges, so they read as sliding underneath. */
.carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 12%),
    linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 12%);
  box-shadow: inset 0 0 24px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1;
}

.carousel-track {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  cursor: grab;
  touch-action: pan-x;
}

.carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.carousel-item {
  position: relative;
  flex: 0 0 auto;
  height: 62%;
  aspect-ratio: 9 / 16;
  margin-inline: 14px;
  scroll-snap-align: center;
  overflow: hidden;
  background: #111;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: scale(0.8);
  opacity: 0.75;
  filter: saturate(0.95) brightness(0.88);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
  cursor: pointer;
}

.carousel-item.is-active {
  transform: scale(1.15);
  opacity: 1;
  filter: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  z-index: 2;
  cursor: default;
}

.carousel-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Glossy Apple-like sheen */
.carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0.12) 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

.carousel-nav {
  position: absolute;
  /* Sized and inset purely from --peek-gap (the layout-stable distance
     between the active card's edge and the carousel's edge), rather than
     a fixed px size -- keeps the button consistent even while cards are
     mid scale-transition, since --peek-gap never changes during that
     animation (only on resize). */
  top: calc(var(--peek-gap, 64px) * 0.075);
  bottom: calc(var(--peek-gap, 64px) * 0.075);
  width: calc(var(--peek-gap, 64px) * 0.85);
  /* The look is .edge-pane (grid.css); this only places it and
     shows it while the carousel is hovered. */
  opacity: 0;
  z-index: 3;
}

.carousel:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

.carousel-nav.prev {
  left: calc(var(--peek-gap, 64px) * 0.075);
}

.carousel-nav.next {
  right: calc(var(--peek-gap, 64px) * 0.075);
}

.page-info {
  flex: 1 1 40%;
  min-width: var(--carousel-width);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 48px;
  /* Guarantees at least as much breathing room above/below the content
     as the carousel-nav button occupies at the carousel's edge, no
     matter how long the active tab's body text runs -- see .tab-panes,
     which is the flex item that actually shrinks/scrolls to make room. */
  padding-block: var(--peek-gap, 64px);
  color: var(--text-color);
}

/* Pushes the centered content block down on wide screens, so the line
   between the tab nav and its body drifts toward (but stays a bit
   above) viewport center; closes to nothing below ~1667px wide so
   narrower screens keep the plain centered look. Tune the vw/px
   constants directly if the push needs to start earlier/later or
   grow larger. */
.page-info::before {
  content: '';
  flex-shrink: 0;
  height: clamp(0px, 30vw - 500px, 260px);
}

/* Site title + per-page subheading at the top of every page's panel. */
.site-head {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: .08em;
}

/* Shared subheading style: small bold caps, dimmed. */
/* The page name: the panel's subheading (h2) and, scaled up, its menu
   item -- one style at two sizes. */
.subheading,
.menu-item {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.subheading {
  font-size: 13px;
  opacity: 0.6;
}

.page-subtitle {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 18px;
  opacity: 0.7;
}

/* Carousel metadata: tag pairs (grid.css); this only places the block. */
.page-meta {
  flex-shrink: 0;
  padding-bottom: 18px;
  max-width: 73ch;
}

/* ---------- Tabs ---------- */

.tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tabs::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--page-bg));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tabs.has-overflow::after {
  opacity: 1;
}

.tab-nav {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 14px;
  padding: 0 0 10px;
  opacity: 0.55;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  font-kerning: normal;
}

.tab-btn:hover {
  opacity: 0.8;
}

.tab-btn.is-active {
  opacity: 1;
  border-bottom-color: currentColor;
}

.tab-panes {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin-top: 16px;
}

/* Only reserved once the text alone (see the has-overflow check in
   script.js, which measures before this padding exists) actually
   spills past the container -- lets the last line clear the bottom
   gradient and sit closer to center once scrolled all the way down,
   instead of ending flush against the edge. */
.tabs.has-overflow .tab-panes {
  padding-bottom: 20svh;
}

/* Tab bodies are .prose (page-info.njk); this only shows the active one. */
.tab-pane {
  display: none;
  text-align: left;
}

.tab-pane.is-active {
  display: block;
}

/* Top bar of the menu: icons + hamburger, right-aligned on one 44px line,
   24px in from the top and right. Only its buttons take clicks, so the
   empty part of the bar never blocks the page while the menu is closed. */
.menu-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  height: var(--menu-row);
  padding: 0 var(--edge);
}

.menu-toggle {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

/* Social icons, left of the hamburger in the menu bar. Clickable whether or
   not the menu is open, on every screen size. */
.social-links {
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 1;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.menu-toggle .bar {
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Same size/corner treatment as .menu-toggle, mirrored to the opposite
   corner -- toggles whichever .video-page is currently in view (see
   script.js), so it's only ever shown while that page is in
   drawer-mode. */
.drawer-fab[hidden] {
  display: none;
}

.drawer-fab {
  position: fixed;
  /* Centred in the drawer's peek strip, as the hamburger is in its bar. */
  bottom: calc((var(--drawer-peek) - 44px) / 2);
  right: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-fab .bar {
  position: absolute;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s ease;
}

.drawer-fab .bar-h {
  width: 28px;
  height: 2px;
}

.drawer-fab .bar-v {
  width: 2px;
  height: 28px;
}

.drawer-fab.is-open .bar-h,
.drawer-fab.is-open .bar-v {
  transform: rotate(45deg);
}

.menu-toggle.is-open .bar-top {
  transform: translateY(8px);
  opacity: 0;
}

.menu-toggle.is-open .bar-bottom {
  transform: translateY(-8px);
  opacity: 0;
}

:root {
  /* Type and colour, site-wide. */
  --font-display: 'Montserrat', sans-serif; /* titles, labels */
  --font-body: 'Karla', sans-serif; /* body text, tags */
  --text-color: #f2efe9;
  /* The one pill's size (grid.css "The one pill"): ~19px tall, 12px text,
     6px between pills. Compact screens raise it to a touch target (below). */
  --pill-h: 18.8px;
  --pill-line: calc(var(--pill-h) - 2px); /* inside its 1px outline */
  --pill-font: 12px;
  --pill-pad: 8px;
  --pill-min: 0px;
  --pill-gap: 6px;
  /* How far the side panel and the drawer lift the page background toward
     white (grid.css .panel-glass, the drawer rule below). */
  --panel-lift: 5%;
  /* Side-column width, shared by the grid's metadata panel and the menu. */
  --panel-w: clamp(280px, 26vw, 380px);
  /* The screen-edge margin: the menu bar's inset and the scroll cues'. */
  --edge: 24px;
  /* The shadow under presented media: the stage, its strip slides and the
     slideshow's photos (as box-shadow, or drop-shadow() to follow a fitted
     image's own edges). */
  --media-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  /* Menu rows: the top bar (icons) keeps the broad 92px band; the page
     items are tighter, at a comfortable 44px tap height. */
  --menu-row: 92px;
  --menu-item-row: 44px;
  /* The side buttons' width (.edge-pane on the stage and the slideshow),
     also the scroll cue's side margins and the slideshow dots' inset. */
  --pane-w: 96px;
  /* The closed drawer's visible strip (compact screens): the site and
     page titles (~50px) with tight margins; the drawer button is centred
     in it. */
  --drawer-peek: 72px;
}

/* Compact screens (js/screens.js): slimmer side buttons, and every pill
   (grid.css "The one pill") at WCAG 2.5.8's 24px minimum, with its
   touch target reaching flush to its neighbours' across the gap
   (.grid-tag::after: 32px). */
:root.screen-compact {
  --pane-w: 44px;
  --pill-h: 24px;
  --pill-font: 13px;
  --pill-pad: 10px;
  --pill-min: 24px;
  --pill-gap: 8px;
}

/* Short screens (js/screens.js: phones held sideways, very short windows):
   a slimmer top band, so the side panel below it keeps more height. */
:root.screen-short {
  --menu-row: 64px;
}

.menu {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--panel-w);
  z-index: 9;
  /* The nav itself never hides, because the social icons in its top band
     stay up on wide screens. Closed, it's just a transparent, click-through
     box; opening fades in the panel (below) and the list. */
  background: transparent;
  border-bottom: 1px solid transparent;
  pointer-events: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Open: opaque so it doesn't compete with the background. The faint edge
   matches the side panel's; the heavier shadow puts it in front of
   everything else on the site. */
.menu.is-open {
  background: #000;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

/* The page list, under the bar. visibility also drops it from the
   accessibility tree while closed. */
.menu-list {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px; /* the last item clear of the panel's bottom edge */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.menu.is-open .menu-list {
  opacity: 1;
  visibility: visible;
}


/* Items are glass keys running the menu's full width; 32px padding lines
   the text up with the side panel's margin. The edge is an inset
   box-shadow, so it never shifts layout. */
.menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* right-justified, under the menu bar's icons */
  width: 100%;
  height: var(--menu-item-row);
  /* Face, weight, caps and tracking: shared with .subheading, above. */
  font-size: 13px; /* the subheading's size: same style, same scale */
  text-align: right;
  /* Dimmed a little, like the subheading (whose 0.6 is stronger); lit to
     full on hover/focus/press. Dims the text only, not the hover glass. */
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  /* Right edge on the hamburger bars' right edge; less the tracking, which
     trails the last letter. */
  padding: 0 calc(32px - 0.16em) 0 32px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover: the text lights up over a faint flat tint. */
.menu-item:hover,
.menu-item:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}

/* Pressed (and held for the moment before the menu closes): one step up. */
.menu-item:active,
.menu-item.is-active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
}

/* ---------- Prose: the shared text module ----------
   Put .prose on any block of rendered Markdown (front-matter text through
   the markdown filter) to get the site's body-text standard. Its direct
   children are modules -- paragraphs, tables, lists, a jobs block -- spaced
   evenly. Paragraphs keep a reading measure; other modules may run wider
   (up to the .prose box itself). */
.prose {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

.prose > * + * {
  margin-top: 1em;
}

.prose > p {
  max-width: 36ch;
}

.prose a {
  text-decoration: underline;
  opacity: 0.85;
}

.prose a:hover {
  opacity: 1;
}

/* Chapter opener: bold words that start the first paragraph
   (`**Connor Jacob** is ...`) become a title line above the text, in the
   same face as .site-title (the panel's "Connor Jacob"). */
.prose > p:first-child > strong:first-child {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

/* Small text: compact body text, e.g. the About jobs block and a page's
   panel description (`blurb`). Declared after .prose so it can be combined
   with it (`class="prose small-text"`): the prose spacing stays, the
   size steps down. */
.small-text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.35;
}

/* ---------- Photo slideshow (js/slideshow.js) ----------
   A photos page's landing section (photos.njk `landing`): one photo at a
   time, fitted whole to the viewport (never cropped), crossfading, with
   the page's other elements -- the side panes, the dots, the menu --
   in front of it. The panes are the shared .edge-pane, placed by the
   stage/wall rule in grid.css. */
.photo-landing {
  position: relative;
  overflow: hidden;
  background: var(--wall-bg); /* the wall's colour, so the two meet seamlessly */
}

.slideshow {
  position: absolute;
  inset: 0;
}

/* Under everything else in the section (z-index 0; panes and dots sit above). */
.slideshow-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Follows the fitted photo's edges, not the full-screen box. */
  filter: drop-shadow(var(--media-shadow));
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

.slideshow-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Controls above the photo (the scroll cue sits above them; clicks pass
   through it). */
.slideshow .slideshow-step {
  z-index: 2;
}

/* Bottom right, floating in from the edge so it sits between the scroll
   cue ("Photo") and the right edge and balances it. Its inset closes as
   the screen narrows: about a fifth of the screen at 1920px, down to
   flush with the next pane's inner edge (--pane-w) at the 760px compact
   breakpoint, and flush with the slimmer pane below it. Above the side
   panes (z-index 3), so the dots stay clickable; wraps leftward if there
   are many. */
.slideshow-dots {
  position: absolute;
  right: max(var(--pane-w, 96px), calc(var(--pane-w, 96px) + (100vw - 760px) / 4));
  bottom: 20px;
  z-index: 3;
  max-width: 50%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* A 20px hit area around an 8px dot. */
.slideshow-dot {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.slideshow-dot::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease;
}

.slideshow-dot:hover::after {
  background: rgba(255, 255, 255, 0.7);
}

.slideshow-dot.is-active::after {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .slideshow-slide,
  .slideshow-dot::after {
    transition: none;
  }
}

/* ---------- Scroll cue (partials/scroll-cue.njk) ----------
   A giant word partly off a section's bottom edge (.is-top: its top edge),
   hinting there's more past it: "Video" on the landing reel, "Photo" on
   the Photos/Stills slideshow, "About" off the top of the About page. Left
   aligned at the menu's edge margin (--edge); --cue-show of the lettering
   (cap height to baseline) stays in view. Translucent, on top of
   everything in its section (the slideshow's panes and dots too); clicks
   pass through it to whatever is underneath. Sized by the smaller of width
   and height so a long word still fits. */
.has-cue {
  position: relative;
  overflow: hidden;
}

.scroll-cue {
  --cue-show: 75%;
  position: absolute;
  bottom: 0;
  z-index: 3; /* on top of everything in its section, controls included */
  font-family: var(--font-display);
  font-weight: 700; /* Montserrat's heaviest loaded weight (css/fonts.css) */
  left: var(--edge);
  /* Sized by the screen's height, until the word would need more than the
     screen's width minus its edge margin on both sides; from there it
     shrinks with the width, keeping that margin either side. --cue-w is
     the word's own width in em (partials/scroll-cue.njk). */
  font-size: min(21svh, calc((100vw - 2 * var(--edge)) / var(--cue-w, 3.1)));
  line-height: 0.72; /* about the cap height, where text-box isn't supported */
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--text-color);
  opacity: 0.18; /* translucent: what's under it shows through */
  transform: translateY(calc(100% - var(--cue-show)));
  pointer-events: none;
  user-select: none;
}

/* Trim the box to the lettering itself (cap height to baseline), so
   --cue-show is a share of the letters, not of the line around them. */
@supports (text-box: trim-both cap alphabetic) {
  .scroll-cue {
    line-height: 1;
    text-box: trim-both cap alphabetic;
  }
}

.scroll-cue.is-top {
  top: 0;
  bottom: auto;
  transform: translateY(calc(var(--cue-show) - 100%));
}
