/* =========================================================================
   Konstantin Bluz — editorial personal site
   Single stylesheet, no build step.

   Contents
   01  Tokens
   02  Reset & base
   03  Layout primitives
   04  Type primitives
   05  Motion / reveal
   06  Header & navigation
   07  Hero
   08  Bio
   09  Assignments
   10  Transition
   11  The Book (signature interaction)
   12  Audio player
   13  Video facade
   14  Writing
   15  Photographs
   16  Contact & footer
   17  Sub-pages (reader, article)
   18  Responsive
   19  Reduced motion
   ========================================================================= */

/* ---------------------------------------------------------------- 01 tokens */
:root {
  /* Paper mode — the professional half of the story.
     Four text roles, darkest to lightest: title anchors the composition,
     body carries long reading, soft handles leads and secondary description,
     muted is reserved for dates, captions and meta. */
  --paper:        #F4F2ED;
  --paper-2:      #EAE7DE;
  --text-title:   #14130F;
  --text-body:    #353129;
  --text-soft:    #4A473F;
  --text-muted:   #7C7669;
  --rule:         rgba(20, 19, 15, 0.16);
  --rule-soft:    rgba(20, 19, 15, 0.08);
  --accent:       #8A7247;
  --accent-hover: #6E5832;
  --selection:    rgba(138, 114, 71, 0.22);

  --f-display: 'Cormorant Garamond', 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
  --f-sans: 'Inter', 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Fluid scale. Every step is clamped so 360px and 1440px both compose. */
  --t-hero:  clamp(3.4rem, 12vw, 11.5rem);
  --t-xl:    clamp(2.5rem, 6.2vw, 5.75rem);
  --t-lg:    clamp(1.9rem, 3.9vw, 3.5rem);
  --t-md:    clamp(1.45rem, 2.3vw, 2.15rem);
  --t-lead:  clamp(1.25rem, 1.85vw, 1.7rem);
  --t-body:  clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --t-small: 0.875rem;
  --t-meta:  0.6875rem;

  --gutter:  clamp(1.375rem, 4.2vw, 4.5rem);
  --section: clamp(5.5rem, 11vh + 3.5vw, 11rem);
  --measure: 34ch;

  --ease:      cubic-bezier(0.22, 0.61, 0.28, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-turn: cubic-bezier(0.52, 0.02, 0.24, 1);

  --header-h: 4.5rem;
  color-scheme: light;
}

/* Ink mode — the creative half. Same four roles, inverted ground:
   titles stay bright, body steps back into a warmer, quieter tone. */
.mode-ink {
  --paper:        #100F0C;
  --paper-2:      #191811;
  --text-title:   #F4F0E6;
  --text-body:    #D8D1C2;
  --text-soft:    #B4AE9F;
  --text-muted:   #837D6F;
  --rule:         rgba(239, 235, 225, 0.18);
  --rule-soft:    rgba(239, 235, 225, 0.09);
  --accent:       #B7965C;
  --accent-hover: #D1B06F;
  --selection:    rgba(183, 150, 92, 0.26);
  color-scheme: dark;
}

/* ------------------------------------------------------------ 02 reset/base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

/* iOS Safari ignores overflow on html/body when working out how far the page
   can be pinch-zoomed out, so anything wider than the screen (the 3D deck's
   side cards) must be clipped by a non-root box. `clip` rather than `hidden`
   so <main> doesn't become a scroll container and break position: sticky. */
main { overflow-x: clip; }

::selection { background: var(--selection); }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 4px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: 0;
  transform: translateY(-120%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--text-title);
  color: var(--paper);
  font-size: var(--t-small);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0.75rem); }

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

/* --------------------------------------------------------- 03 layout prims */
.wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 1180px; }

.section { padding-block: var(--section); position: relative; }
.section--flush-top { padding-block-start: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.5rem);
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Section marker: 01 / Bio — the site's connective tissue. */
.marker {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--f-sans);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.marker__num { color: var(--accent); font-variant-numeric: tabular-nums; }
.marker__line {
  flex: 1;
  height: 1px;
  background: var(--rule);
  transform: translateY(-0.28em);
}

/* ----------------------------------------------------------- 04 type prims */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--text-title);
}

.lead {
  font-family: var(--f-display);
  font-size: var(--t-lead);
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 30ch;
  color: var(--text-soft);
}

.body-copy { max-width: 52ch; color: var(--text-body); }
.body-copy + .body-copy { margin-block-start: 1.25em; }

.eyebrow {
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pull {
  font-family: var(--f-display);
  font-size: var(--t-md);
  line-height: 1.32;
  font-style: italic;
  color: var(--text-title);
  max-width: 26ch;
}

/* Text link with a rule that draws in from the leading edge. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  position: relative;
  padding-block-end: 0.28em;
  font-size: var(--t-small);
  letter-spacing: 0.02em;
  color: var(--accent);
  transition: color 0.35s var(--ease);
}
.link:hover, .link:focus-visible { color: var(--accent-hover); }
.link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: var(--origin-start, left) center;
  transition: transform 0.55s var(--ease-out);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(0.32); }
.link__arrow { transition: transform 0.45s var(--ease-out); }
.link:hover .link__arrow { transform: translateX(var(--dir-x, 0.35rem)); }

[dir='rtl'] {
  --origin-start: right;
  --dir-x: -0.35rem;
  /* Cormorant carries no Hebrew, so letters fell back to Frank Ruhl while the
     digits stayed behind in Cormorant's old-style figures — smaller and hanging
     below the baseline. Hebrew leads with its own serif so both come from one
     font; lining figures keep years sitting on the baseline either way. */
  --f-display: 'Frank Ruhl Libre', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-sans: 'Heebo', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-variant-numeric: lining-nums;
}

/* --------------------------------------------------------- 05 motion/reveal */
/* Everything below is gated on `.js`, which the script adds to <html> at boot.
   Content is therefore visible by default: if the script never runs, or the
   observer never fires, nothing is left stranded at opacity 0. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.4rem);
  transition:
    opacity 1s var(--ease-out) var(--reveal-delay, 0s),
    transform 1.1s var(--ease-out) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }

/* Masked line reveal for display type. */
[data-reveal-lines] .line { display: block; overflow: hidden; }
.js [data-reveal-lines] .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.15s var(--ease-out) var(--line-delay, 0s);
}
.js [data-reveal-lines].is-in .line > span { transform: none; }

/* Image reveal: the frame wipes open, the picture settles from a slight zoom. */
.figure-reveal { overflow: hidden; }
.js .figure-reveal img {
  transform: scale(1.08);
  transition: transform 1.5s var(--ease-out), opacity 1.1s var(--ease-out);
  opacity: 0;
}
.js .figure-reveal.is-in img { transform: none; opacity: 1; }

/* ------------------------------------------------------------- 06 header */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  mix-blend-mode: normal;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
              transform 0.5s var(--ease), border-color 0.45s var(--ease);
  border-block-end: 1px solid transparent;
}
/* Solid paper first: iOS < 16.2 drops color-mix() and older Safari needs the
   -webkit- backdrop prefix — without these the bar went see-through on iPhone. */
.header.is-scrolled {
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  backdrop-filter: saturate(1.1) blur(10px);
  border-block-end-color: var(--rule-soft);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.brand {
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: 0.005em;
  color: var(--text-title);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav a {
  font-size: var(--t-small);
  color: var(--text-soft);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0.1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: var(--origin-start, left) center;
  transition: transform 0.5s var(--ease-out);
}
.nav a:hover, .nav a[aria-current='true'] { color: var(--text-title); }
.nav a:hover::after, .nav a[aria-current='true']::after { transform: scaleX(1); }

.langs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.langs a { transition: color 0.3s var(--ease); }
.langs a:hover { color: var(--accent); }
.langs [aria-current='page'] { color: var(--text-title); }
.langs span[aria-hidden] { opacity: 0.4; }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-inline-end: -0.5rem;
  position: relative;
  z-index: 2;
}
.menu-toggle span {
  position: absolute;
  inset-inline: 0.4rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.25s linear;
}
.menu-toggle span:nth-child(1) { top: 1rem; }
.menu-toggle span:nth-child(2) { bottom: 1rem; }
.is-menu-open .menu-toggle span:nth-child(1) { transform: translateY(0.24rem) rotate(11deg); }
.is-menu-open .menu-toggle span:nth-child(2) { transform: translateY(-0.24rem) rotate(-11deg); }

/* --------------------------------------------------------------- 07 hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: calc(var(--header-h) + 3rem) clamp(1.5rem, 4vh, 3rem);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.5rem);
  align-items: end;
  flex: 1;
  align-content: end;
}

.hero__type {
  grid-column: 1 / 9;
  grid-row: 1;
  z-index: 2;
  align-self: end;
  padding-block-end: clamp(0.5rem, 3vh, 2.5rem);
}

.hero__name {
  font-size: var(--t-hero);
  margin-inline-start: -0.06em;
}
.hero__name .line + .line { margin-inline-start: clamp(0rem, 4vw, 4.5rem); }

.hero__figure {
  grid-column: 8 / 13;
  grid-row: 1;
  z-index: 1;
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  align-self: end;
  justify-self: end;
  width: 100%;
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }

.hero__foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.5rem);
  align-items: start;
  padding-block-start: 1.5rem;
  margin-block-start: clamp(1.5rem, 4vh, 3rem);
  border-block-start: 1px solid var(--rule);
}
.hero__position {
  grid-column: 1 / 7;
  font-size: var(--t-lead);
  font-family: var(--f-display);
  line-height: 1.34;
  max-width: 24ch;
}
.hero__aside {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: var(--t-small);
  color: var(--text-muted);
  text-align: end;
  align-items: flex-end;
}

/* hero--stacked: flexible text column + fixed-width photo column, vertically centred */
.hero--stacked {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + 3rem) 2rem;
}
.hero--stacked .hero__grid {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 0 1 auto;
}
.hero--stacked .hero__type {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  padding: 0;
}
.hero--stacked .hero__name {
  font-size: clamp(3.5rem, 7vw, 8.25rem);
  line-height: 1.0;
  margin-block-end: 1.25rem;
}
.hero--stacked .hero__name .line + .line { margin-inline-start: 0; }
.hero--stacked .hero__position {
  margin-block-start: 0;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-family: var(--f-display);
  line-height: 1.4;
  max-width: 640px;
  color: var(--text-soft);
}
.hero--stacked .hero__figure {
  flex: 0 0 clamp(320px, 46vh, 560px);
  width: clamp(320px, 46vh, 560px);
  aspect-ratio: 4 / 5;
  align-self: center;
  max-height: none;
  margin: 0;
}
.hero--stacked .hero__figure img { object-position: 50% 18%; }

.hero--stacked .hero__photo {
  flex: 0 0 clamp(320px, 46vh, 560px);
  width: clamp(320px, 46vh, 560px);
  align-self: center;
  display: flex;
  flex-direction: column;
}
.hero__photo .hero__figure { flex: none; width: 100%; margin: 0; }
.hero__quote {
  margin-block-start: 1.05rem;
}
.hero__quote p {
  margin: 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.62;
  color: var(--text-soft);
  text-indent: -0.42em;
}
.hero__quote cite {
  display: block;
  margin-block-start: 0.7rem;
  font-family: var(--f-display);
  font-style: normal;
  font-size: var(--t-small);
  letter-spacing: 0.02em;
  color: var(--accent);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(to bottom, var(--rule), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: -60%;
  height: 60%;
  background: var(--accent);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(340%); opacity: 0; }
}

/* ----------------------------------------------------------------- 08 bio */
.bio__intro { margin-block-start: clamp(3rem, 7vh, 5.5rem); }
.bio__intro-text {
  grid-column: 1 / 9;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  line-height: 1.28;
  letter-spacing: -0.012em;
  text-wrap: pretty;
  color: var(--text-soft);
}
.bio__intro-text em { font-style: italic; color: var(--accent); }
.bio__intro-text--full { grid-column: 1 / 13; }
.bio__intro-line { display: inline; }
@media (min-width: 640px) {
  .bio__intro-line { display: inline-block; white-space: nowrap; }
}
.bio__intro-text--full + .bio__intro-text--full { margin-block-start: 0.15em; }

.bio__note {
  grid-column: 10 / 13;
  align-self: end;
  color: var(--text-muted);
  font-size: var(--t-small);
  max-width: 26ch;
}

/* Timeline — asymmetric, ruled, never a card. */
.timeline { margin-block-start: clamp(4rem, 9vh, 7rem); }
.tl-item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.5rem);
  padding-block: clamp(1.6rem, 3.4vh, 2.5rem);
  border-block-start: 1px solid var(--rule);
  align-items: baseline;
}
.tl-item:last-child { border-block-end: 1px solid var(--rule); }

.tl-years {
  grid-column: 1 / 3;
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
}
.tl-role {
  grid-column: 3 / 8;
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text-title);
}
.tl-desc {
  grid-column: 8 / 13;
  color: var(--text-soft);
  font-size: var(--t-small);
  max-width: 44ch;
}

/* Gas-policy accordion — a plain three-column grid per row (date / title /
   summary), the same editorial rhythm as the timeline above but wide
   enough to carry a summary paragraph and its own disclosure. .gas-row is
   the grid itself (not a button wrapping everything) — years/title/summary
   are ordinary cells in row 1, and the details panel is a fourth cell that
   auto-places into row 2, spanning just the title + summary columns. */
.gas-timeline { margin-block-start: clamp(2rem, 4vh, 3rem); }

.gas-row {
  display: grid;
  grid-template-columns: 150px minmax(360px, 1fr) minmax(360px, 430px);
  column-gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  border-block-start: 1px solid var(--rule-soft);
}
.gas-row:last-child { border-block-end: 1px solid var(--rule-soft); }

.gas-row__years {
  grid-column: 1;
  grid-row: 1;
  padding-block: clamp(1.3rem, 2.5vw, 2.25rem);
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
}
.gas-row__title {
  grid-column: 2;
  grid-row: 1;
  padding-block: clamp(1.3rem, 2.5vw, 2.25rem);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text-title);
}
.gas-row__summary {
  grid-column: 3;
  grid-row: 1;
  padding-block: clamp(1.3rem, 2.5vw, 2.25rem);
}
.gas-row__summary p {
  color: var(--text-soft);
  font-size: var(--t-small);
  line-height: 1.6;
}
.gas-row__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-block-start: 0.85rem;
  color: var(--accent);
  font-size: var(--t-small);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.gas-row__cta:hover,
.gas-row__cta:focus-visible { color: var(--accent-hover); }
.gas-row__cta-arrow { display: inline-block; transition: transform 0.35s var(--ease-out); }

/* Details panel — spans the title + summary columns only (grid-column 2/4),
   indented under the row header rather than running the row's full width;
   the date column above stays empty beside it, same as the mockup. Height
   is animated via grid-template-rows (0fr -> 1fr) so it never needs JS to
   measure content height, and collapses to a true 0 with no overshoot. */
.gas-panel {
  grid-column: 2 / 4;
  grid-row: 2;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.gas-panel__inner { overflow: hidden; }
.gas-row.is-open .gas-panel { grid-template-rows: 1fr; }
.gas-row.is-open .gas-panel__inner { padding-block: 0.25rem 2.75rem; }

.gas-panel__label {
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-block-end: 1.1rem;
}

.gas-achievements { display: grid; gap: 0.9rem; }
.gas-achievements li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.75rem;
  align-items: baseline;
}
.gas-achievements__num {
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.gas-achievements li p {
  color: var(--text-body);
  font-size: var(--t-small);
  line-height: 1.55;
  max-width: 56ch;
}

.gas-milestones { display: grid; gap: 0.65rem; }
.gas-milestones li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  column-gap: 0.75rem;
  align-items: baseline;
  padding-block: 0.5rem 0;
  border-block-start: 1px solid var(--rule-soft);
}
.gas-milestones li:first-child { border-block-start: 0; padding-block-start: 0; }
.gas-milestones__year {
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.gas-milestones li p {
  color: var(--text-body);
  font-size: var(--t-small);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .gas-panel { transition: none; }
}

/* Ministry projects — an open two-column field, not a register table. One
   narrow title column on the left, projects flowing two-up on the right;
   each entry is just year / short rule / text, no card, no long row-wide
   divider. Grid auto-flow alone puts entries in reading order (left-to-
   right, top-to-bottom), so the sixth "slot" in an odd count is simply
   left empty rather than needing special-cased placement. */
.ministry { margin-block-start: clamp(5rem, 10vh, 7.5rem); }
.ministry__grid {
  display: grid;
  grid-template-columns: minmax(11rem, 26%) 1fr;
  column-gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.ministry__title {
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  line-height: 1.28;
  letter-spacing: -0.012em;
}
/* The two dated projects, still inside the title/content grid column. */
.ministry__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 3vw, 3rem);
  row-gap: clamp(2.5rem, 4vh, 3.25rem);
}
.ministry__cell { display: block; min-width: 0; }

/* The shared date and the three short entries beneath it break out of the
   title/content column split entirely and run the full width of the
   block — same six-unit base grid as before (group takes all 6, each
   short entry takes a third), just no longer nested under the title. */
.ministry__wide {
  margin-block-start: clamp(2.5rem, 4vh, 3.25rem);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: clamp(2rem, 3vw, 3rem);
  row-gap: 0;
}
.ministry__group { grid-column: 1 / -1; }
.ministry__cell--triple { grid-column: span 2; }

.ministry__years {
  font-size: 0.8125rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.ministry__rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-block: 0.6rem 0.9rem;
  background: var(--rule);
}

.ministry__text {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.5;
  color: var(--text-body);
}
.ministry__text em { font-style: italic; color: var(--accent); }

/* Standalone facts, set as a wide type ribbon rather than a card row. */
.facts {
  margin-block-start: clamp(3.5rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.fact__value {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4.2vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-title);
}
.fact__label {
  margin-block-start: 0.7rem;
  font-size: var(--t-small);
  color: var(--text-muted);
  max-width: 22ch;
}

/* --------------------------------------------------------- 09 assignments */
.assignments__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.5rem);
  align-items: end;
  margin-block-end: clamp(2.5rem, 6vh, 4.5rem);
}
.assignments__head h2 { grid-column: 1 / 8; }
.assignments__head p {
  grid-column: 9 / 13;
  color: var(--text-muted);
  font-size: var(--t-small);
  max-width: 30ch;
}

/* Head variant carrying a pull quote beside the title; its columns mirror
   .gas-row so the quote hangs off the same line as the summaries below. */
.assignments__head--quote {
  grid-template-columns: 150px minmax(360px, 1fr) minmax(360px, 430px);
  column-gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}
.assignments__head--quote h2 { grid-column: 1 / 3; }
.assignments__head--quote .head-quote { grid-column: 3; }

/* Literal colours, not tokens: the plaque keeps its warm brown ground in
   both themes, so its text must stay light either way. */
.assignments__head .head-quote {
  background: #5a352c;
  border-radius: clamp(14px, 1.5vw, 22px);
  padding: clamp(0.85rem, 1.2vw, 1.1rem) clamp(1.35rem, 2vw, 1.85rem);
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.62;
  color: #F4F2ED;
  max-width: 34ch;
  text-indent: -0.42em;
}
.head-quote__by {
  display: block;
  margin-block-start: 0.7rem;
  font-style: normal;
  font-size: var(--t-small);
  letter-spacing: 0.02em;
  color: #C9A97A;
  text-indent: 0;
}

.logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block-start: 1px solid var(--rule-soft);
}
.logo-cell {
  position: relative;
  min-height: clamp(9rem, 15vh, 12.5rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  border-block-end: 1px solid var(--rule-soft);
  border-inline-end: 1px solid var(--rule-soft);
  transition: background-color 0.5s var(--ease);
}
.logo-cell:nth-child(4n) { border-inline-end: 0; }
.logo-cell:hover, .logo-cell:focus-within { background: var(--paper-2); }
.logo-cell img[src$="logo-shaham.png"] { --logo-k: 1.4; }
.logo-cell img[src$="logo-ruppin.png"] { --logo-k: 1.25; }

.logo-cell img {
  /* One shared width, nudged per logo with --logo-k: a long wordmark needs
     more of it than a square mark to carry the same weight in the row. */
  width: calc(clamp(7rem, 9vw, 9.5rem) * var(--logo-k, 1));
  height: auto;
  transition: transform 0.6s var(--ease-out);
}
.logo-cell:hover img, .logo-cell:focus-within img {
  transform: translateY(-0.15rem);
}

.logo-cell figcaption {
  font-size: var(--t-small);
  line-height: 1.4;
  color: var(--text-soft);
  max-width: 24ch;
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------- 10 transition */
.transition {
  background: var(--paper);
  color: var(--text-title);
  min-height: 92svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-inline: var(--gutter);
  position: relative;
  overflow: hidden;
}
.transition__inner { max-width: 22ch; }
.transition__line {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.transition__line em { font-style: italic; color: var(--accent); }
.transition__sub {
  margin-block-start: clamp(1.75rem, 4vh, 2.75rem);
  font-size: var(--t-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------------------------------------------------------- 11 the book */
.book {
  background: var(--paper);
  color: var(--text-body);
  position: relative;
}

.book__track { position: relative; }

.book__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.book__frame {
  flex: 1;
  position: relative;
  perspective: 2400px;
  perspective-origin: 50% 45%;
  padding: calc(var(--header-h) + clamp(1rem, 3vh, 2.5rem)) var(--gutter) clamp(4rem, 8vh, 5.5rem);
  display: flex;
}

.book__stage {
  position: relative;
  flex: 1;
  transform-style: preserve-3d;
  max-width: 1560px;
  margin-inline: auto;
  width: 100%;
}

/* A page. In pinned mode all pages stack; JS drives --turn on each. */
.page {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.5rem);
  align-content: center;
  row-gap: clamp(1.25rem, 3vh, 2.25rem);
}
[dir='rtl'] .page { transform-origin: right center; }

/* Paper shading: a soft gradient that deepens along the turning edge.
   Cheap (one composited layer), and the only thing selling "sheet of paper". */
.page__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    to var(--shade-to, right),
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.16) 22%,
    rgba(0, 0, 0, 0) 58%
  );
  transition: opacity 0.12s linear;
}
[dir='rtl'] .page__shade { --shade-to: left; }

.page__index {
  grid-column: 1 / 13;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-size: var(--t-meta);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.page__index b { color: var(--accent); font-weight: 500; }
/* Renders the chapter label as "01 / Novel" without repeating the rule in markup. */
.page__index b::after { content: ' /'; color: var(--text-muted); }

/* --- page layouts ------------------------------------------------------- */
/* The cover and poster are sized from the viewport, never from the height of
   the text column beside them — otherwise a short paragraph shrinks the book. */
.page--cover .page__figure {
  position: relative;
  height: min(62svh, 32rem);
  max-width: 100%;
  align-self: center;
}
.page--cover .page__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 2.5rem 5rem -1.5rem rgba(0, 0, 0, 0.55);
}

.page--cover .page__figure {
  grid-column: 1 / 6;
  aspect-ratio: 1077 / 1460;   /* matches the cover artwork */
  justify-self: start;
}
/* The cover page carries the reviews, so its text column starts at the top
   and runs wider than the other pages to keep the quotes to a few lines. */
.page--cover .page__body { grid-column: 6 / 13; align-self: start; }

.reviews {
  margin-block-start: clamp(1.5rem, 4vh, 2.5rem);
}
.reviews__label {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-title);
}

/* Stage holds one quote at a time; the tallest reserves the height so the
   page never jumps as the reader steps through. */
.reviews__stage {
  display: grid;
  margin-block-start: 1rem;
}
.review {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out);
}
.review.is-current { opacity: 1; visibility: visible; transform: none; }
.review__text {
  font-family: var(--f-display);
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 62ch;
}
.review__by {
  margin-block-start: 0.85rem;
  font-size: var(--t-small);
  color: var(--text-title);
}
.review__by span {
  color: var(--text-muted);
  margin-inline-start: 0.5rem;
}

.reviews__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-start: clamp(1rem, 2.5vh, 1.5rem);
}
.reviews__arrow {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--text-soft);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
              background-color 0.35s var(--ease);
}
.reviews__arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.reviews__count {
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Laptop-height screens: the pinned page cannot grow, so tighten the quote. */
@media (max-height: 860px) {
  .page--cover .page__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
  .page--cover .page__text { margin-block-start: 1rem; }
  .reviews { margin-block-start: 1rem; padding-block-start: 0.85rem; }
  .reviews__stage { margin-block-start: 0.7rem; }
  .review__text { font-size: 0.98rem; line-height: 1.45; }
  .review__by { margin-block-start: 0.6rem; }
  .reviews__nav { margin-block-start: 0.85rem; }
  .reviews__arrow { width: 2.1rem; height: 2.1rem; }
}

/* Touch: keep the arrows at a comfortable tap size whatever the height rule says. */
@media (max-width: 860px) {
  .reviews__arrow { width: 2.75rem !important; height: 2.75rem !important; }
}

.page__title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text-title);
}
.page__meta {
  margin-block-start: 1.5rem;
  display: flex;
  gap: 1.5rem;
  font-size: var(--t-small);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.page__text {
  margin-block-start: 1.75rem;
  color: var(--text-soft);
  max-width: 42ch;
}
.page__text--wide { max-width: 56ch; }
.page__cta { margin-block-start: clamp(1.75rem, 4vh, 2.75rem); }

.page__list {
  margin-block-start: 1rem;
  max-width: 56ch;
}
.page__list li {
  position: relative;
  padding-inline-start: 1.15rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.page__list li + li { margin-block-start: 0.55rem; }
.page__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 0.3rem;
  height: 1px;
  background: var(--accent);
}

.page--about .page__body { grid-column: 1 / 7; align-self: start; }
.page--about .reviews--aside {
  grid-column: 8 / 13;
  align-self: center;
  padding-inline-start: clamp(1.25rem, 2.5vw, 2rem);
  border-inline-start: 1px solid var(--accent);
}
.page__quote {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-style: italic;
  line-height: 1.36;
  padding-inline-start: 1.25rem;
  border-inline-start: 1px solid var(--accent);
  color: var(--text-title);
}
.page__quote--lead {
  margin-block-start: 1.5rem;
  max-width: 52ch;
  padding-inline-start: 0;
  border-inline-start: 0;
}

.page__text--muted { color: var(--text-muted); }

/* A loose column of chapter/section titles — set as a list, not a table of contents. */
.page__titles {
  margin-block-start: 0.85rem;
  columns: 2;
  column-gap: clamp(1.25rem, 3vw, 2rem);
}
.page__titles li {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.5;
  color: var(--text-soft);
  break-inside: avoid;
}

.page--audio .page__body {
  grid-column: 2 / 12;
  text-align: center;
  justify-self: center;
  width: 100%;
  max-width: 46rem;
}
.page--audio .page__meta { justify-content: center; }
.page--audio .page__text { margin-inline: auto; }

.musical-videos {
  grid-column: 8 / 13;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vh, 1.5rem);
}
.musical-videos .video { box-shadow: 0 2.5rem 5rem -1.5rem rgba(0, 0, 0, 0.55); }
.page--musical .page__body { grid-column: 1 / 7; align-self: center; }

/* Same two-column shape as the flip-book's musical page, but as a plain
   in-flow section on the paper background — no absolute positioning,
   no pinned stage, since this isn't part of the interactive book. */
.musical-standalone {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.5rem);
  row-gap: clamp(1.75rem, 4vh, 2.5rem);
  align-items: center;
}
.musical-standalone .page__body { grid-column: 1 / 7; }
.musical-standalone .musical-videos { grid-column: 8 / 13; }

.page--video .page__body { grid-column: 1 / 13; }
.page--video .page__title { font-size: clamp(1.8rem, 3.2vw, 3rem); }

/* Reel strip */
.reels {
  margin-block-start: clamp(1.5rem, 4vh, 2.5rem);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 1fr);
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-block-end: 0.5rem;
  scroll-snap-type: x mandatory;
}
.reel { scroll-snap-align: start; display: flex; flex-direction: column; }
.reel__label {
  order: -1;
  margin-block-end: 0.75rem;
  font-size: var(--t-small);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Chapter progress rail */
.book__rail {
  position: absolute;
  inset-block-end: clamp(1.25rem, 3vh, 2rem);
  inset-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 5;
}
.book__dots { display: flex; gap: 0.5rem; }
.book__dots button {
  width: 2.25rem;
  height: 1px;
  background: var(--rule);
  position: relative;
  transition: background-color 0.4s var(--ease);
}
.book__dots button::after {
  content: '';
  position: absolute;
  inset: -0.6rem 0;
}
.book__dots button[aria-current='true'] { background: var(--accent); }
.book__count {
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-inline-start: auto;
}

/* Static mode — mobile & reduced motion. Same DOM, read as chapters. */
.book.is-static .book__track { height: auto !important; }
.book.is-static .book__pin {
  position: static;
  height: auto;
  overflow: visible;
}
.book.is-static .book__frame {
  display: block;
  perspective: none;
  padding-block: 0;
}
.book.is-static .book__stage { transform-style: flat; }
.book.is-static .page {
  position: relative;
  inset: auto;
  transform: none !important;
  opacity: 1 !important;
  /* Leftovers from the 3D page-turn: on iOS Safari a compositing ancestor
     like this swallows horizontal swipes, so the reel strip wouldn't scroll. */
  backface-visibility: visible;
  will-change: auto;
  align-content: start;
  padding-block: clamp(3rem, 8vh, 5rem);
  border-block-start: 1px solid var(--rule-soft);
}
.book.is-static .page:first-of-type { border-block-start: 0; }
.book.is-static .page__shade { display: none; }
.book.is-static .book__rail { display: none; }

/* ------------------------------------------------------- 12 audio player */
.audio {
  margin-block-start: clamp(2rem, 5vh, 3rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  padding-block: 1.25rem;
  border-block: 1px solid var(--rule);
  text-align: start;
}

.audio__toggle {
  flex: none;
  width: clamp(3.25rem, 5vw, 4rem);
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              transform 0.4s var(--ease-out);
}
.audio__toggle:hover { border-color: var(--accent); transform: scale(1.04); }
.audio__toggle svg { width: 40%; height: 40%; fill: currentColor; }
.audio__toggle .icon-pause { display: none; }
.audio.is-playing .icon-play { display: none; }
.audio.is-playing .icon-pause { display: block; }

/* Waveform: two identical bar layers, the top one clipped by progress. */
.audio__wave {
  flex: 1;
  position: relative;
  height: 2.75rem;
  cursor: pointer;
  touch-action: none;
}
.audio__wave-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.audio__wave-layer span {
  flex: 1;
  height: calc(var(--h, 0.3) * 100%);
  min-height: 2px;
  background: var(--rule);
  transition: background-color 0.3s var(--ease);
}
.audio__wave-layer--played span { background: var(--accent); }
.audio__wave-layer--played {
  clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0);
}
[dir='rtl'] .audio__wave-layer--played {
  clip-path: inset(0 0 0 calc(100% - var(--p, 0) * 100%));
}

.audio__time {
  flex: none;
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.audio__note {
  margin-block-start: 0.85rem;
  font-size: var(--t-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ------------------------------------------------------ 13 video facade */
.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.video:hover img { transform: scale(1.035); }
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #F4F2ED;
}
.video__play i {
  width: 3.25rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.video__play i::after {
  content: '';
  border-inline-start: 0.7rem solid currentColor;
  border-block: 0.45rem solid transparent;
  margin-inline-start: 0.22rem;
}
[dir='rtl'] .video__play i::after { transform: scaleX(-1); }
.video:hover .video__play i { background: var(--accent); color: #14130F; border-color: var(--accent); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------ 14 writing */
.writing__list { margin-block-start: clamp(2.5rem, 6vh, 4rem); }

.entry {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.75rem, 4vh, 2.75rem);
  border-block-start: 1px solid var(--rule);
  position: relative;
}
.entry:last-child { border-block-end: 1px solid var(--rule); }
.entry__num {
  grid-column: 1 / 2;
  font-size: var(--t-small);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.entry__title {
  grid-column: 2 / 8;
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--text-title);
  transition: transform 0.6s var(--ease-out);
}
.entry__meta {
  grid-column: 9 / 12;
  font-size: var(--t-small);
  color: var(--text-muted);
}
.entry__arrow {
  grid-column: 12 / 13;
  justify-self: end;
  color: var(--text-muted);
  transition: transform 0.6s var(--ease-out), color 0.4s var(--ease);
}
.entry:hover .entry__title { transform: translateX(var(--dir-x, 0.5rem)); }
.entry:hover .entry__arrow { transform: translateX(var(--dir-x, 0.5rem)); color: var(--accent); }

/* Floating preview that tracks the pointer — desktop only, JS-driven. */
.entry__preview {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 17rem;
  aspect-ratio: 3 / 2;
  pointer-events: none;
  opacity: 0;
  z-index: 60;
  overflow: hidden;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(0.94);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease-out);
}
.entry__preview.is-visible { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }
.entry__preview img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------- 15 photographs */
.photos {
  margin-block-start: clamp(2.5rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.5rem);
  row-gap: clamp(2.5rem, 7vh, 5rem);
  align-items: start;
}
.photo figcaption {
  margin-block-start: 0.85rem;
  font-size: var(--t-small);
  color: var(--text-muted);
  max-width: 30ch;
}
.photo--a { grid-column: 1 / 7; }
.photo--b { grid-column: 8 / 13; margin-block-start: clamp(3rem, 12vh, 8rem); }
.photo--c { grid-column: 2 / 6; }
.photo--d { grid-column: 7 / 12; margin-block-start: clamp(-6rem, -6vh, 0rem); }

/* --------------------------------------------------- 15b depth carousel ---
   A coverflow-style photo carousel: one card in focus, the rest recede in Z
   and fan out in X under a perspective on the root. Every dimension is a
   CSS custom property so DepthCarousel (assets/js/carousel.js) never
   hardcodes a number — it reads --dc-* via getComputedStyle at layout time,
   which means a breakpoint below can reshape the whole thing without a
   single line of JS. Distance from the focused card is expressed once
   (in JS) and drives translateX/Z, rotateY, opacity and blur together, so
   the falloff always reads as one coherent depth rather than stacked
   unrelated effects. Cards fade toward the section's own paper colour via
   .dc__tint rather than darkening — a black scrim reads as "dimmed", a
   paper-coloured one reads as "receding into the page". */
.dc {
  --dc-card-w: 420px;
  --dc-card-h: 480px;
  --dc-depth: 110px;
  --dc-spread: 260px;
  --dc-tilt: 24deg;
  --dc-visible: 2;
  --dc-falloff: 0.4;
  --dc-blur: 6px;
  --dc-dots: 44px;
  --dc-perspective: 1400px;

  position: relative;
  margin-block-start: clamp(2.5rem, 6vh, 4rem);
  perspective: var(--dc-perspective);
  outline: none;
}
.dc__stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.dc__card {
  position: absolute;
  top: 0;
  left: 50%;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-2);
  will-change: transform, opacity, filter;
  transition: transform 450ms var(--ease-out), opacity 450ms var(--ease-out),
              filter 450ms var(--ease-out);
}
.dc__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc__tint {
  position: absolute;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms var(--ease-out);
}

.dc__arrow {
  position: absolute;
  top: calc(var(--dc-card-h) / 2);
  transform: translateY(-50%);
  z-index: 20;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  backdrop-filter: saturate(1.1) blur(8px);
  color: var(--text-title);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
              transform 0.4s var(--ease-out);
}
.dc__arrow:hover { color: var(--accent); border-color: var(--accent); }
.dc__arrow svg { width: 1.1rem; height: 1.1rem; }
.dc__arrow--prev { inset-inline-start: 0; }
.dc__arrow--next { inset-inline-end: 0; }
[dir='rtl'] .dc__arrow svg { transform: scaleX(-1); }

.dc__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.dc__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--rule);
  transition: background-color 0.35s var(--ease), width 0.35s var(--ease-out);
}
.dc__dot[aria-selected='true'] {
  width: 1.5rem;
  border-radius: 0.25rem;
  background: var(--accent);
}

@media (max-width: 1024px) {
  .dc {
    --dc-card-w: 320px;
    --dc-card-h: 400px;
    --dc-depth: 85px;
    --dc-spread: 190px;
    --dc-tilt: 22deg;
  }
}

@media (max-width: 640px) {
  .dc {
    --dc-card-w: 280px;
    --dc-card-h: 340px;
    --dc-depth: 55px;
    --dc-spread: 110px;
    --dc-tilt: 16deg;
    --dc-visible: 1;
    --dc-dots: 36px;
    --dc-perspective: 900px;
  }
  .dc__arrow { width: 2.5rem; height: 2.5rem; }
}

/* ------------------------------------------------------ 16 contact/footer */
.contact { padding-block: clamp(6rem, 16vh, 13rem) clamp(3rem, 6vh, 5rem); }
.contact__line {
  font-family: var(--f-display);
  font-size: var(--t-hero);
  line-height: 0.94;
  letter-spacing: -0.025em;
}
/* Contact: a plain block title, an invitation on the left, links on the right. */
.contact__line--plain {
  margin-block-start: clamp(2rem, 5vh, 3.5rem);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.04;
}

.contact__row {
  margin-block-start: clamp(1.9rem, 5vh, 2.85rem);
  padding-inline-end: clamp(5rem, 8vw, 7.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.contact__intro {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.45;
  color: var(--text-soft);
  max-width: 44ch;
}

.contact__nowrap { white-space: nowrap; }

.contact__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.contact__phone {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  color: var(--text-title);
  transition: color 0.35s var(--ease);
}
.contact__phone:hover { color: var(--accent); }

.contact__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.contact__icons a {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-soft);
  color: var(--text-soft);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
              background-color 0.35s var(--ease);
}
.contact__icons a:hover {
  color: var(--text-title);
  border-color: var(--rule);
  background: var(--paper-2);
}
.contact__icons svg { width: 1.05rem; height: 1.05rem; }

@media (max-width: 640px) {
  .contact__row { flex-direction: column; align-items: flex-start; padding-inline-end: 0; }
  .contact__links { align-items: flex-start; }
}

.contact__grid {
  margin-block-start: clamp(3.5rem, 9vh, 6.5rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2.5rem);
  row-gap: 2.5rem;
  border-block-start: 1px solid var(--rule);
  padding-block-start: clamp(1.75rem, 4vh, 2.75rem);
}
.contact__col--topics { grid-column: 1 / 5; }
.contact__col--direct { grid-column: 6 / 9; }
.contact__col--elsewhere { grid-column: 10 / 13; }
.contact__col h3 {
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-block-end: 1.25rem;
}
.contact__col li + li { margin-block-start: 0.6rem; }
.contact__hint {
  margin-block-start: 0.75rem;
  font-size: var(--t-small);
  color: var(--text-muted);
  max-width: 22ch;
}
.contact__col a {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  color: var(--accent);
  transition: color 0.35s var(--ease);
}
.contact__col a:hover { color: var(--accent-hover); }
.contact__col--topics li {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  color: var(--text-soft);
}

.footer {
  padding-block: 2rem clamp(2rem, 5vh, 3rem);
  border-block-start: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ----------------------------------------------------------- 17 sub-pages */
.subpage { padding-block: calc(var(--header-h) + clamp(3rem, 10vh, 7rem)) var(--section); }
.subpage__head { max-width: 46rem; margin-inline: auto; }
.subpage__title {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-block: 1.25rem 1.5rem;
  text-wrap: balance;
  color: var(--text-title);
}
.subpage__meta {
  font-size: var(--t-small);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.prose {
  max-width: 40rem;
  margin-inline: auto;
  margin-block-start: clamp(3rem, 8vh, 5rem);
}
.prose > * + * { margin-block-start: 1.4em; }
.prose p {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  line-height: 1.66;
  color: var(--text-body);
}
.prose h2 {
  font-family: var(--f-display);
  font-size: var(--t-md);
  line-height: 1.2;
  margin-block-start: 2.5em;
  letter-spacing: -0.01em;
  color: var(--text-title);
}
.prose h2 + p { margin-block-start: 0.8em; }
.prose blockquote {
  border-inline-start: 1px solid var(--accent);
  padding-inline-start: 1.5rem;
  font-style: italic;
  color: var(--text-soft);
}
.prose hr { margin-block: 3rem; height: 1px; background: var(--rule); border: 0; }
.prose .drop::first-letter {
  font-size: 3.4em;
  float: var(--float-start, left);
  line-height: 0.86;
  padding-inline-end: 0.09em;
  padding-block-start: 0.04em;
  color: var(--accent);
}
[dir='rtl'] .prose .drop::first-letter { --float-start: right; }

/* --- Reader: the novel's selected chapters -------------------------------- */
.chapters__epigraph {
  margin-block-start: clamp(2rem, 5vh, 3rem);
  font-family: var(--f-display);
  font-size: var(--t-md);
  font-style: italic;
  color: var(--text-soft);
}

.chapters__toc {
  margin-block-start: clamp(2.5rem, 6vh, 4rem);
  padding-block-start: clamp(1.5rem, 4vh, 2.25rem);
  border-block-start: 1px solid var(--rule);
}
.chapters__toc h2 {
  font-family: var(--f-sans);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-block-end: 1.25rem;
}
.chapters__toc ol { display: grid; gap: 0.5rem; }
.chapters__toc a {
  display: flex;
  gap: 1rem;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-body);
  transition: color 0.35s var(--ease);
}
.chapters__toc a span {
  flex: none;
  min-width: 1.5rem;
  font-size: var(--t-small);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.chapters__toc a:hover { color: var(--accent); }

.chapter { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.chapter + .chapter { margin-block-start: clamp(3.5rem, 9vh, 6rem); }
.chapter__title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--text-title);
  margin-block-end: clamp(1.5rem, 4vh, 2.25rem);
  text-wrap: balance;
}
.chapter__num {
  display: block;
  font-family: var(--f-sans);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-end: 0.75rem;
}

.prose--book > .chapter + .chapter { border-block-start: 1px solid var(--rule); padding-block-start: clamp(3rem, 7vh, 4.5rem); }

.notes {
  margin-block-start: clamp(2rem, 5vh, 3rem);
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--rule-soft);
}
.notes h3 {
  font-family: var(--f-sans);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-block-end: 0.9rem;
}
.notes p {
  font-family: var(--f-sans) !important;
  font-size: var(--t-small) !important;
  line-height: 1.55 !important;
  color: var(--text-muted) !important;
}
.notes p + p { margin-block-start: 0.6rem; }

.prose__colophon {
  font-family: var(--f-sans) !important;
  font-size: var(--t-small) !important;
  color: var(--text-muted) !important;
}

/* Visible marker that a page is still waiting for its final copy. */
.prose p.prose__notice {
  font-family: var(--f-sans);
  font-size: var(--t-meta);
  color: var(--accent);
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-block-end: 1.25rem;
  border-block-end: 1px solid var(--rule);
}

.back-link-wrap { margin: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-small);
  color: var(--text-muted);
  transition: color 0.35s var(--ease);
}
.back-link:hover { color: var(--accent); }
.back-link i { display: inline-block; transition: transform 0.45s var(--ease-out); }
.back-link:hover i { transform: translateX(calc(var(--dir-x, 0.35rem) * -1)); }

/* --------------------------------------------------------- 18 responsive */
@media (max-width: 1280px) {
  .hero__type { grid-column: 1 / 8; }
  .hero__figure { grid-column: 8 / 13; }
  .tl-desc { grid-column: 8 / 13; }
}

@media (max-width: 1024px) {
  :root { --header-h: 4rem; }

  .hero__figure { grid-column: 7 / 13; max-height: 58vh; }
  .hero__type { grid-column: 1 / 8; }
  .hero__position { grid-column: 1 / 8; }
  .hero__aside { grid-column: 9 / 13; }

  .hero--stacked { min-height: auto; padding-block: calc(var(--header-h) + 5rem) 5rem; }
  .hero--stacked .hero__grid { flex-direction: column; align-items: flex-start; gap: 2.5rem; }
  .hero--stacked .hero__type { flex: none; width: 100%; }
  .hero--stacked .hero__position { max-width: 100%; }
  .hero--stacked .hero__figure { flex: none; align-self: center; width: min(380px, 60vw); }
  .hero--stacked .hero__photo { flex: none; align-self: center; width: min(380px, 60vw); }

  .bio__intro-text { grid-column: 1 / 11; }
  .bio__note { grid-column: 1 / 8; margin-block-start: 2rem; }

  .tl-years { grid-column: 1 / 13; margin-block-end: 0.5rem; }
  .tl-role { grid-column: 1 / 8; }
  .tl-desc { grid-column: 8 / 13; }

  .gas-row {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }
  .assignments__head--quote {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1rem, 2.2vw, 2.5rem);
  }
  .assignments__head--quote h2 { grid-column: 1 / 9; }
  .assignments__head--quote .head-quote { grid-column: 1 / 8; margin-block-start: 1.25rem; max-width: none; }
  .gas-row__years,
  .gas-row__title,
  .gas-row__summary,
  .gas-panel { grid-column: 1; }
  .gas-row__years { grid-row: 1; padding-block: clamp(2rem, 4vw, 3rem) 0; }
  .gas-row__title { grid-row: 2; padding-block: 0; }
  .gas-row__summary { grid-row: 3; padding-block: 0; }
  .gas-panel { grid-row: 4; }

  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-cell:nth-child(4n) { border-inline-end: 1px solid var(--rule-soft); }
  .logo-cell:nth-child(3n) { border-inline-end: 0; }

  .assignments__head h2 { grid-column: 1 / 9; }
  .assignments__head p { grid-column: 1 / 8; margin-block-start: 1.25rem; }

  .page--cover .page__figure { grid-column: 1 / 6; }
  .page--cover .page__body { grid-column: 6 / 13; }
  .page--about .page__body { grid-column: 1 / 8; }
  .page--about .page__quotes { grid-column: 8 / 13; }
  .page--musical .page__body { grid-column: 1 / 8; }
  .musical-videos { grid-column: 8 / 13; }
  .musical-standalone .page__body { grid-column: 1 / 8; }
  .musical-standalone .musical-videos { grid-column: 8 / 13; }

  .entry__title { grid-column: 2 / 9; }
  .entry__meta { grid-column: 9 / 12; }

  .photo--a { grid-column: 1 / 8; }
  .photo--b { grid-column: 8 / 13; }
  .photo--c { grid-column: 1 / 7; }
  .photo--d { grid-column: 7 / 13; }

  .contact__col--topics { grid-column: 1 / 6; }
  .contact__col--direct { grid-column: 7 / 10; }
  .contact__col--elsewhere { grid-column: 10 / 13; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.25rem;
    padding: var(--gutter);
    background: var(--paper);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.7s var(--ease-out);
    z-index: 1;
  }
  .is-menu-open .nav { clip-path: inset(0 0 0 0); }
  .nav a { font-size: clamp(1.75rem, 7vw, 2.5rem); font-family: var(--f-display); }
  .nav a::after { display: none; }
  .menu-toggle { display: block; }
  .header__inner { gap: 1rem; }
  .header .langs { margin-inline-start: auto; }

  .hero { min-height: 100svh; }
  .hero__grid { align-content: end; row-gap: clamp(1.5rem, 4vh, 2.5rem); }
  .hero__type { grid-column: 1 / 13; grid-row: 2; padding-block-end: 0; }
  .hero__figure {
    grid-column: 1 / 11;
    grid-row: 1;
    aspect-ratio: 3 / 4;
    max-height: 46svh;
    justify-self: start;
  }
  .hero__name .line + .line { margin-inline-start: clamp(0rem, 8vw, 3rem); }
  .hero__foot { row-gap: 1.25rem; }
  .hero__position { grid-column: 1 / 13; font-size: var(--t-body); font-family: var(--f-sans); }
  .hero__aside { grid-column: 1 / 13; text-align: start; align-items: flex-start; }
  .scroll-cue { display: none; }

  .hero--stacked { padding-block: calc(var(--header-h) + 4rem) 4rem; }
  .hero--stacked .hero__grid { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
  .hero--stacked .hero__type { width: 100%; }
  .hero--stacked .hero__name { font-size: clamp(2.4rem, 11vw, 3.75rem); margin-block-end: 1rem; }
  .hero--stacked .hero__position { font-size: var(--t-body); font-family: var(--f-sans); max-width: none; }
  .hero--stacked .hero__figure { align-self: center; width: min(300px, 72vw); aspect-ratio: 4 / 5; }
  .hero--stacked .hero__photo { align-self: center; width: min(300px, 72vw); }

  .bio__intro-text, .bio__note { grid-column: 1 / 13; }

  .tl-role, .tl-desc { grid-column: 1 / 13; }
  .tl-desc { margin-block-start: 0.75rem; }

  .gas-achievements li,
  .gas-milestones li { grid-template-columns: 100%; row-gap: 0.35rem; }

  .ministry__grid { grid-template-columns: 1fr; row-gap: clamp(1.5rem, 4vh, 2.25rem); }
  .ministry__body,
  .ministry__wide { grid-template-columns: 1fr; row-gap: clamp(1.75rem, 4.5vh, 2.5rem); }
  .ministry__cell--triple { grid-column: auto; }
  .ministry__group { grid-column: auto; }

  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-cell:nth-child(3n) { border-inline-end: 1px solid var(--rule-soft); }
  .logo-cell:nth-child(2n) { border-inline-end: 0; }
  .logo-cell { min-height: 8.5rem; }
  .logo-cell figcaption { opacity: 1; transform: none; }

  .assignments__head h2, .assignments__head p, .assignments__head .head-quote { grid-column: 1 / 13; }

  .page { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .page > * { grid-column: 1 / 7 !important; }
  .page--cover .page__figure {
    justify-self: start;
    height: min(44svh, 22rem);
  }
  .musical-videos { max-width: 26rem; }
  .musical-standalone { row-gap: 2rem; }
  .musical-standalone .page__body,
  .musical-standalone .musical-videos { grid-column: 1 / 13; }
  .musical-standalone .musical-videos { margin-inline: auto; }
  .page--audio .page__body { text-align: start; }
  .page--audio .page__meta { justify-content: flex-start; }
  .page--audio .page__text { margin-inline: 0; }
  .reels { grid-auto-columns: minmax(13rem, 78vw); }

  .entry { row-gap: 0.4rem; }
  .entry__num { grid-column: 1 / 13; }
  .entry__title { grid-column: 1 / 12; }
  .entry__meta { grid-column: 1 / 12; }
  .entry__arrow { grid-column: 12 / 13; grid-row: 2; align-self: center; }

  .photos { row-gap: clamp(1.75rem, 5vh, 3rem); }
  .photo--a, .photo--b, .photo--c, .photo--d {
    grid-column: 1 / 13;
    margin-block-start: 0;
  }
  .photo--b { grid-column: 3 / 13; }
  .photo--c { grid-column: 1 / 11; }

  .contact__col--topics,
  .contact__col--direct,
  .contact__col--elsewhere { grid-column: 1 / 13; }

  .audio { flex-wrap: wrap; }
  .audio__wave { min-width: 60%; }
}

@media (max-width: 480px) {
  :root { --t-hero: clamp(2.9rem, 15vw, 4.5rem); }
  .hero__figure { max-height: 42svh; }
  .logo-cell { min-height: 0; padding: 1.1rem 0.85rem; gap: 0.7rem; justify-content: flex-start; }
  .logo-cell img { width: 100%; height: 4.5rem; object-fit: contain; object-position: left center; }
  [dir='rtl'] .logo-cell img { object-position: right center; }
  /* Per-logo widths so each mark carries roughly the same visual weight
     (~2900px² of actual ink, max 110×48): the files differ wildly in aspect
     ratio and built-in whitespace, so one shared size made the wide ones
     (EMEX, Energy Infrastructure) dominate and the padded ones look tiny. */
  .logo-cell img[src$="logo-edeltech.png"] { width: 41px; }
  .logo-cell img[src$="logo-emex.png"] { width: 91px; }
  .logo-cell img[src$="logo-energy-infra.png"] { width: 95px; }
  .logo-cell img[src$="logo-izdehar.png"] { width: 53px; }
  .logo-cell img[src$="logo-marsh.png"] { width: 100px; }
  .logo-cell img[src$="logo-merimon.png"] { width: 61px; }
  .logo-cell img[src$="logo-navitas.png"] { width: 72px; }
  .logo-cell img[src$="logo-negev-gas.png"] { width: 72px; }
  .logo-cell img[src$="logo-netanya-college.png"] { width: 72px; }
  .logo-cell img[src$="logo-noga.png"] { width: 91px; }
  .logo-cell img[src$="logo-sonol.png"] { width: 72px; }
  .logo-cell img[src$="logo-sp-global.png"] { width: 125px; }
  .logo-cell img[src$="logo-dan.png"] { width: 69px; }
  .logo-cell img[src$="logo-shaham.png"] { width: 110px; }
  .logo-cell img[src$="logo-ruppin.png"] { width: 98px; }
  .logo-cell figcaption { font-size: 0.8rem; }
  .footer { flex-direction: column; gap: 0.6rem; }
  .audio__time { margin-inline-start: auto; }
}

/* ---------------------------------------------------- 19 reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal-lines] .line > span { transform: none; }
  .js .figure-reveal img { opacity: 1; transform: none; }
  .logo-cell figcaption { opacity: 1; transform: none; }
  .scroll-cue i::after { display: none; }
}
