/* ==========================================================================
   LCXDM — styles

   1. Design tokens      colours, type, spacing: change the look here
   2. Base               reset, body, links, focus
   3. Typography         headings, eyebrow, lead, gold text
   4. Backdrop           fixed sand photo, gold silk, gold dust, light and shade
   5. Header & footer
   6. Components         button, lists, portraits, reveal
   7. Home page          opening, welcome, statement, figures, gallery, finale
   7b. Chapter pages     scene, topics, doorway to the next chapter
   8. Work with us       people, blocks, phases, contact
   9. Legal pages        long-form text
   10. Motion preferences & print
   ========================================================================== */


/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  /* Colour */
  --black: #070706;
  --white: #f6f3ec;
  --text: rgba(246, 243, 236, 0.74);
  --text-quiet: rgba(246, 243, 236, 0.5);
  --gold: #dbac4b;
  --gold-light: #f2c261;
  --gold-deep: #997428;
  --line: rgba(219, 172, 75, 0.24);
  --line-quiet: rgba(246, 243, 236, 0.1);
  --gold-texture: url("../assets/img/gold.jpg");

  /* Type */
  --font-heading: "Cinzel", "Times New Roman", serif;
  --font-text: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --size-small: 0.8125rem;
  --size-text: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --size-lead: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  --size-h3: clamp(1.45rem, 1.1rem + 1.6vw, 2.35rem);
  --size-h2: clamp(1.8rem, 1.1rem + 3.4vw, 3.6rem);

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --space-section: clamp(6rem, 14vw, 13rem);
  --space-block: clamp(3.5rem, 8vw, 7.5rem);
  --width-page: 76rem;
  --width-text: 40rem;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Set by js/effects.js */
  --scroll: 0;
  --pointer-x: 50vw;
  --pointer-y: 30vh;
}


/* ==========================================================================
   2. Base
   ========================================================================== */

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

html {
  background: var(--black);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-text);
  font-size: var(--size-text);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

img {
  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;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 1px solid var(--gold-light);
  outline-offset: 6px;
  border-radius: 2px;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--black);
  font-weight: 500;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

.noscript {
  position: relative;
  padding: 2rem var(--gutter);
  text-align: center;
  color: var(--white);
}

/* Lenis (smooth scrolling) needs the browser's own smoothing switched off */
html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto;
}

/* ----- Changing language: the whole screen goes dark, the words change,
         and it lights up again (timing matches js/i18n.js) ----- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 75;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.is-switching body::after {
  opacity: 1;
  transition-duration: 0.45s;
}

/* ----- Moving between pages: the same dark layer, a little quicker -----
   Leaving a page fades to black; the next page fades in from black.
   (Timing matches js/effects.js.) */

body::after {
  animation: page-in 0.5s ease-out backwards;
}

.is-leaving body::after {
  opacity: 1;
  transition-duration: 0.3s;
}

@keyframes page-in {
  from { opacity: 1; }
}


/* ==========================================================================
   3. Typography
   ========================================================================== */

/* Cinzel has capitals only, and wide ones: it needs air between the letters
   and must be allowed to hyphenate long (German) words on small screens. */
h1, h2, h3,
.heading {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.035em;
  color: var(--white);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  /* …but only words of 14+ letters, so short words are never split */
  -webkit-hyphenate-limit-before: 6;
  -webkit-hyphenate-limit-after: 5;
  hyphenate-limit-chars: 14 6 5;
}

.eyebrow {
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: var(--size-lead);
  line-height: 1.65;
  color: var(--white);
  text-wrap: pretty;
}

/* Text filled with the gold photograph, with a slow passing glint. */
.gold-text {
  color: var(--gold);
  font-weight: 600;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold-text {
    padding-block: 0.08em;
    background-image:
      linear-gradient(105deg, transparent 42%, rgba(255, 220, 148, 0.85) 50%, transparent 58%),
      var(--gold-texture);
    background-size: 250% 100%, cover;
    background-position: 200% 0, center;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glint 9s var(--ease) infinite;
  }
}

@keyframes glint {
  0%, 55% { background-position: 200% 0, center; }
  100% { background-position: -100% 0, center; }
}


/* ==========================================================================
   4. Backdrop — one fixed element behind every page
      layer 1: the black-sand photograph, darkened, drifting slowly on scroll
      layer 2: folds of gold silk (a <canvas> drawn by js/silk.js)
      layer 3: gold dust (a <canvas> drawn by js/effects.js)
      layer 4: a glow that follows the mouse, and a vignette
   ========================================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(rgba(7, 7, 6, 0.8), rgba(7, 7, 6, 0.8)),
    var(--black) url("../assets/img/background.jpg") no-repeat;
  background-size: auto, max(100%, 185vh) auto;
  background-position: 0 0, 50% calc(var(--scroll) * 100%);
}

.backdrop canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.backdrop__silk {
  mix-blend-mode: screen;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(34rem circle at var(--pointer-x) var(--pointer-y), rgba(219, 172, 75, 0.09), transparent 70%),
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(7, 7, 6, 0.7) 100%);
}

/* Thin golden reading-progress line at the very top */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transform: scaleX(var(--scroll));
  transform-origin: left;
}


/* ==========================================================================
   5. Header & footer
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s, border-color 0.5s, padding 0.5s var(--ease);
}

.is-scrolled .site-header {
  padding-block: 0.6rem;
  background: rgba(7, 7, 6, 0.72);
  border-color: var(--line-quiet);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header__brand {
  margin-right: auto;
  transition: opacity 0.4s;
}

.site-header__brand:hover {
  opacity: 0.7;
}

.site-header__brand img {
  width: clamp(2.25rem, 4vw, 2.75rem);
}

/* Visible navigation (wide screens only; see the media query further down) */
.site-nav {
  display: none;
  gap: clamp(1.25rem, 2.2vw, 2.5rem);
  margin-right: clamp(1rem, 3vw, 3rem);
}

.site-nav > span {
  display: contents;
}

.site-nav a {
  position: relative;
  padding-block: 0.6rem;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0.26em 0.25rem 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a[aria-current]::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (min-width: 1100px) {
  .site-nav {
    display: flex;
  }

  .site-header .menu-button {
    display: none;
  }

  .site-header .lang-switch {
    margin-right: 0;
  }
}

.site-nav a,
.lang-switch button,
.menu-button {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s;
}

/* "Menu" / "Close": two words stacked, the second slides in when open */
.menu-button {
  display: grid;
  padding: 0.6rem 0 0.6rem 0.26em;
  overflow: hidden;
  color: var(--white);
}

.menu-button span {
  grid-area: 1 / 1;
  text-align: right;
  transition: transform 0.6s var(--ease);
}

.menu-button__close,
.has-menu-open .menu-button__open {
  transform: translateY(160%);
}

.has-menu-open .menu-button__close {
  transform: none;
}

.menu-button:hover {
  color: var(--gold);
}

/* ----- Full-screen menu ----- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 5vh, 4rem);
  padding: clamp(4.5rem, 12vh, 6rem) max(var(--gutter), 8vw) clamp(1.5rem, 5vh, 3rem);
  overflow-y: auto;
  background: rgba(7, 7, 6, 0.94);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s 0.9s;
}

.has-menu-open .menu {
  clip-path: inset(0);
  visibility: visible;
  transition-delay: 0s;
}

.has-menu-open .site-header {
  background: none;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.menu__list {
  counter-reset: entry -1;
}

.menu__list li {
  counter-increment: entry;
  overflow: hidden;
}

.menu__list a {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(0.9rem, 3vw, 1.5rem);
  padding-block: 0.12em;
  font-family: var(--font-heading);
  /* as large as the screen allows: limited by its height and, on phones, by its width */
  font-size: clamp(1.4rem, min(1rem + 4.6vh + 1.2vw, 8.4vw, 8.6vh), 4.6rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--white);
  transform: translateY(110%);
  transition: transform 0.9s var(--ease), color 0.4s;
}

.menu__list a::before {
  content: counter(entry, decimal-leading-zero);
  font-family: var(--font-text);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.has-menu-open .menu__list a {
  transform: none;
}

.has-menu-open .menu__list li:nth-child(1) a { transition-delay: 0.25s, 0s; }
.has-menu-open .menu__list li:nth-child(2) a { transition-delay: 0.31s, 0s; }
.has-menu-open .menu__list li:nth-child(3) a { transition-delay: 0.37s, 0s; }
.has-menu-open .menu__list li:nth-child(4) a { transition-delay: 0.43s, 0s; }
.has-menu-open .menu__list li:nth-child(5) a { transition-delay: 0.49s, 0s; }
.has-menu-open .menu__list li:nth-child(6) a { transition-delay: 0.55s, 0s; }

.menu__list a:hover,
.menu__list a[aria-current] {
  color: var(--gold);
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-quiet);
  font-size: var(--size-small);
  letter-spacing: 0.08em;
  color: var(--text-quiet);
}

.menu__foot a:hover {
  color: var(--gold);
}

.lang-switch {
  display: flex;
  align-items: center;
  margin-right: clamp(0.5rem, 2vw, 1.5rem);
}

.lang-switch button {
  padding: 0.6rem 0.15rem 0.6rem 0.4rem;
  color: var(--text-quiet);
}

.lang-switch button + button::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--text-quiet);
}

.lang-switch button:hover,
.lang-switch button[aria-pressed="true"] {
  color: var(--gold-light);
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem var(--gutter);
  padding: clamp(4rem, 8vw, 6.5rem) max(var(--gutter), calc((100% - var(--width-page)) / 2)) 2.5rem;
  font-size: 0.92rem;
  line-height: 1.9;
  background: linear-gradient(transparent, rgba(7, 7, 6, 0.85) 30%);
  border-top: 1px solid var(--line-quiet);
}

.site-footer__brand img {
  width: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.site-footer__brand p {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

.site-footer .eyebrow {
  margin-bottom: 1.1rem;
}

.site-footer a {
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.site-footer__copyright {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid var(--line-quiet);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-quiet);
}


/* ==========================================================================
   6. Components
   ========================================================================== */

/* ----- Button ----- */

.button {
  position: relative;
  display: inline-block;
  padding: 1.15rem 2.75rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--gold);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: color 0.5s var(--ease);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-texture) center / cover;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}

.button:hover,
.button:focus-visible {
  color: var(--black);
}

.button:hover::before,
.button:focus-visible::before {
  transform: none;
}

/* ----- Pill list (industries, countries) ----- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: 2rem;
}

.tag-list li {
  padding: 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  font-size: var(--size-small);
  letter-spacing: 0.06em;
  color: var(--white);
  transition: border-color 0.4s, color 0.4s, background-color 0.4s;
}

.tag-list li:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(219, 172, 75, 0.07);
}

/* ----- Portraits: monochrome, edges melting into the dark ----- */

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(1) contrast(1.05) brightness(0.82);
  -webkit-mask-image: radial-gradient(closest-side, #000 38%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 38%, transparent 100%);
  transition: filter 1.6s var(--ease);
}

.person:hover .portrait img {
  filter: grayscale(1) contrast(1.05) brightness(1);
}

/* ----- A film laid behind a whole section, fading out at its edges ----- */

.backplate {
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}

.backplate video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 50%;
}

/* ----- Pictures that float in the dark: their edges melt away, no visible frame ----- */

.scene__image,
.door__image,
.onward__image {
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
}

/* ----- Headings marked data-rise: each word rises from below, one after another ----- */

.has-motion [data-rise] .word {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.has-motion [data-rise] .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease) calc(0.15s + var(--i) * 55ms);
}

.has-motion .is-visible [data-rise] .word > span,
.has-motion [data-rise].is-visible .word > span {
  transform: none;
}

/* ----- Step counter at the left edge: "03 / 07" (added by js/effects.js) ----- */

.counter {
  position: fixed;
  right: var(--gutter);
  bottom: 2rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--white);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.6s, transform 0.6s var(--ease);
  pointer-events: none;
}

.counter.is-shown {
  opacity: 1;
  transform: none;
}

.counter span:last-child {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-quiet);
}

.counter span:last-child::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

/* ----- A giant word, barely visible, drifting sideways behind a section ----- */

.ghost {
  height: 0;
  font-family: var(--font-heading);
  font-size: clamp(6rem, 24vw, 26rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgba(246, 243, 236, 0.035);
  transform: translateX(calc(30vw - var(--p, 0.5) * 60vw));
  pointer-events: none;
  user-select: none;
}

/* ----- The one ornament: a short vertical gold line above a label ----- */

.scene__label::before,
.gallery__label::before,
.page-hero .eyebrow::before {
  content: "";
  display: block;
  width: 1px;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(transparent, var(--gold));
  transform-origin: top;
  animation: draw 1.6s var(--ease) 0.4s backwards;
}

.gallery__label::before,
.page-hero .eyebrow::before {
  margin-inline: auto;
}

@keyframes draw {
  from { transform: scaleY(0); }
}

/* ----- Scroll reveal (only when js/effects.js is running) ----- */

.has-motion .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  filter: blur(6px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease);
}

.has-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* A button that fades in keeps its soft colour change on hover */
.has-motion .button.reveal {
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease), color 0.5s var(--ease);
}


/* ==========================================================================
   7. Home page
   ========================================================================== */

/* ----- Opening curtain: a short count, then it lifts ----- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background: var(--black);
  transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
  animation: curtain-failsafe 0.01s 6s forwards; /* never block the page */
}

.is-open .curtain {
  transform: translateY(-100%);
}

.curtain img {
  width: 3.5rem;
  animation: turn 1.6s var(--ease) both;
}

.curtain__count {
  width: 9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-align: center;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

@keyframes curtain-failsafe {
  to { visibility: hidden; }
}

@keyframes turn {
  from { opacity: 0; rotate: -90deg; }
}

/* ----- Opening: the name, and nothing else ----- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100svh;
  min-height: 32rem;
  padding: 6rem var(--gutter);
  text-align: center;
  overflow: clip;
}

/* Drifts towards the viewer and fades as the page scrolls on (--p) */
.hero__wordmark {
  margin-right: -0.2em; /* evens out the space after the last letter */
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 18.6vw, 18.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.2em; /* the spacing of the printed logo */
  opacity: calc(1 - var(--p, 0) * 1.7);
  transform: scale(calc(1 + var(--p, 0) * 0.3));
  animation: unveil 2.6s var(--ease) 0.2s backwards, glint 9s var(--ease) 3s infinite;
}

/* With motion, the wordmark is built letter by letter: each letter carries
   its own piece of the gold leaf and arrives after the one before it. As the
   page scrolls on, the letters drift apart. */
.has-motion .hero__wordmark[data-letters] {
  background: none;
  animation: none;
  opacity: calc(1 - var(--p, 0) * 1.7);
}

.hero__wordmark .letter {
  display: inline-block;
  background: var(--gold-texture) calc(var(--i) * 25%) 50% / 500% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* drifts away from the middle letter while scrolling (cheap: no re-layout) */
  transform: translateX(calc((var(--i) - (var(--letters) - 1) / 2) * var(--p, 0) * 0.3em));
  /* The wordmark appears slowly from left to right: each letter fades in
     0.4s after the one before it, about three seconds in all. */
  animation: letter-in 1.4s ease-out calc(0.2s + var(--i) * 0.4s) backwards;
}

@keyframes letter-in {
  from { opacity: 0; transform: translateX(-0.12em); filter: blur(10px); }
}

/* The opening waits until the curtain has lifted (js/effects.js adds "is-ready") */
.has-motion:not(.is-ready) .hero__wordmark .letter,
.has-motion:not(.is-ready) .hero__tagline,
.has-motion:not(.is-ready) .scroll-cue {
  animation-play-state: paused;
}

.hero__tagline {
  margin-top: 1.6em;
  font-family: var(--font-heading);
  font-size: clamp(0.62rem, 0.3rem + 1.3vw, 1.4rem);
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: var(--white);
  opacity: calc(1 - var(--p, 0) * 2.4);
  animation: rise 1.6s var(--ease) 2.6s backwards;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--white);
  transform: translateX(-50%);
  animation: rise 1.4s var(--ease) 3.4s backwards;
  transition: color 0.3s;
}

.scroll-cue:hover {
  color: var(--gold-light);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: clamp(4.5rem, 14vh, 8.5rem);
  margin-bottom: -2rem; /* runs off the bottom edge: the page goes on */
  background: linear-gradient(var(--gold), var(--gold) 60%, transparent);
  transform-origin: top;
  animation: drip 2.4s var(--ease) infinite;
}

@keyframes unveil {
  from { opacity: 0; letter-spacing: 0.4em; filter: blur(14px); }
}

@keyframes rise {
  from { opacity: 0; translate: 0 1.5rem; }
}

@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ----- Welcome ----- */

.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: var(--space-section) var(--gutter);
  text-align: center;
}

.welcome__title {
  max-width: 12em;
  font-size: clamp(2rem, 1rem + 4.2vw, 5rem);
  line-height: 1.14;
}

.welcome__intro {
  max-width: 40rem;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  font-size: var(--size-lead);
  line-height: 1.7;
  text-wrap: pretty;
}

.welcome__intro p + p {
  margin-top: 1em;
  transition-delay: 0.2s;
}

/* ----- One sentence, alone on the screen, in gold ----- */

.statement {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--space-block) var(--gutter);
}

.statement__text {
  max-width: 15em;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 0.9rem + 3.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-align: center;
  text-wrap: balance;
  color: var(--gold);
}

/* Each word carries its own piece of the gold leaf, waits dimmed, and lights
   up in turn as the sentence crosses the screen (--i = its position). */
.statement__text .word {
  white-space: nowrap; /* keeps "hands-on" in one piece */
  background: var(--gold-texture) calc(var(--i) * -11rem) 50% / 80rem auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: calc(0.16 + clamp(0, var(--p, 1) * var(--words) * 1.2 - var(--i), 1) * 0.84);
  transition: opacity 0.4s;
}

/* ----- Four figures ----- */

.figures {
  max-width: 76rem;
  margin-inline: auto;
  padding: var(--space-block) var(--gutter) var(--space-section);
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3.5rem 1rem;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
}

.stat:nth-of-type(2) { transition-delay: 0.12s; }
.stat:nth-of-type(3) { transition-delay: 0.24s; }
.stat:nth-of-type(4) { transition-delay: 0.36s; }

.stat dd {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 1.5rem + 8vw, 9rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ----- The four chapters: a gallery that glides sideways -----
   The section is several screens tall; its stage sticks to the screen and,
   while you keep scrolling down, the row of chapters travels from the first
   to the last (--p runs 0 → 1). Without motion the chapters simply stack. */

.gallery__label {
  padding: 0 var(--gutter) 2rem;
  text-align: center;
}

.gallery__track {
  counter-reset: door;
}

.door {
  counter-increment: door;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem clamp(2rem, 6vw, 7rem);
  padding: var(--space-block) max(var(--gutter), 7vw);
}

.door__image {
  justify-self: center;
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.door__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.door__name {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.door__name::before {
  content: counter(door, upper-roman);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text-quiet);
}

.door__title {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 1rem + 3.6vw, 4.5rem);
  line-height: 1.1;
}

.door__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  max-width: 34rem;
  margin-block: 2rem 2.75rem;
  font-size: var(--size-small);
  letter-spacing: 0.08em;
  color: var(--text);
}

.door__topics li + li::before {
  content: "·";
  margin-inline: 0.75em;
  color: var(--gold);
}

.has-motion .gallery {
  height: 440vh;
}

.has-motion .gallery__stage {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100svh;
  padding-top: 4.5rem;
  overflow: clip;
}

.has-motion .gallery__track {
  display: flex;
  width: max-content;
  transform: translateX(calc(var(--p, 0) * (100vw - 100%)));
  will-change: transform;
}

.has-motion .door {
  width: 100vw;
  padding-block: 0;
}

.has-motion .door__image {
  width: auto;
  height: min(66svh, 42rem);
}

/* The picture lags a little behind its text: depth */
.has-motion .door__image img {
  transform: scale(1.18) translateX(calc((var(--p, 0) * 3 - (var(--door-index, 0))) * -5%));
}

.door:nth-child(2) { --door-index: 0; }
.door:nth-child(3) { --door-index: 1; }
.door:nth-child(4) { --door-index: 2; }
.door:nth-child(5) { --door-index: 3; }

/* ----- Finale ----- */

.finale {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  min-height: 100svh;
  padding: var(--space-section) var(--gutter);
  text-align: center;
}

.finale__title {
  max-width: 11em;
  font-size: clamp(2.2rem, 1rem + 4.4vw, 5.25rem);
  line-height: 1.1;
}

/* On wide screens the words stand to the right of the cathedral */
@media (min-width: 900px) {
  .finale {
    align-items: flex-end;
    padding-right: max(var(--gutter), 8vw);
    text-align: right;
  }
}


/* ==========================================================================
   7b. Chapter pages
   ========================================================================== */

/* Pinned scene. It is two screens tall and its stage sticks for one of them;
   meanwhile --p runs 0 → 1: the picture unveils and settles, the title rises. */
.scene {
  height: 112vh; /* how long the opening scene is held; 100vh = not at all */
}

.scene__stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  height: 100svh;
  max-width: 96rem;
  margin-inline: auto;
  padding: 5.5rem var(--gutter) 2.5rem;
}

.scene__title {
  transform: translateY(calc((0.5 - var(--p, 0.5)) * 6rem));
}

/* "Chapter" + its Roman numeral (the number is set on <body style="--chapter: 2">) */
.page-chapter {
  counter-reset: chapter var(--chapter, 1);
}

.scene__label::after {
  content: " " counter(chapter, upper-roman);
}

.scene__title h1 {
  margin-top: 1.75rem;
  font-size: clamp(2.2rem, 1rem + 4.4vw, 5.25rem);
  line-height: 1.1;
}

.scene__image {
  justify-self: center;
  height: min(78svh, 50rem);
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  clip-path: inset(clamp(0%, calc(100% - var(--p, 1) * 230%), 100%) 0 0 0);
}

.scene__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.4 - var(--p, 1) * 0.4));
}

/* Chapters alternate: picture right, left, right, left */
.page-chapter[style*="2"] .scene__image,
.page-chapter[style*="4"] .scene__image {
  order: -1;
}

/* What follows the scene: introduction and the list of topics */
.chapter__lead {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-block);
  max-width: 62rem;
  margin-inline: auto;
  padding: var(--space-block) var(--gutter);
  text-align: center;
}

.chapter__intro {
  max-width: 44rem;
  font-size: var(--size-lead);
  line-height: 1.7;
  text-wrap: pretty;
}

.chapter__intro p + p {
  margin-top: 1.2em;
}

.chapter__index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 46rem;
}

.chapter__index a {
  display: block;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.4s, border-color 0.4s, background-color 0.4s;
}

/* An invisible full-width item: whatever follows starts a new row */
.chapter__break {
  flex-basis: 100%;
  height: 0;
}

/* The break is a row of its own and would add a second gap: take it back */
.chapter__break ~ li {
  margin-top: -0.75rem;
}

@media (max-width: 700px) {
  .chapter__break {
    display: none;
  }

  .chapter__break ~ li {
    margin-top: 0;
  }
}

.chapter__index a:hover {
  color: var(--black);
  border-color: var(--gold-light);
  background: var(--gold-light);
}

/* ----- Topics ----- */

.chapter {
  overflow-x: clip; /* the ghost word is wider than the screen */
}

.topics {
  counter-reset: topic;
  max-width: calc(var(--width-page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.topic {
  counter-increment: topic;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  padding-block: var(--space-block);
}

.topic__label {
  position: sticky;
  top: 7rem;
  align-self: start;
}

/* The running number, with one small gold stroke above it. It drifts
   upwards a little as its topic crosses the screen (--p). */
.topic__label::before {
  content: counter(topic, decimal-leading-zero);
  display: block;
  width: max-content;
  margin-bottom: 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--gold);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 1.5rem + 4.5vw, 6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text-quiet);
  transform: translateY(calc((1 - var(--p, 1)) * 3rem));
}

.topic__title {
  margin-bottom: 2rem;
  font-size: var(--size-h3);
}

.topic__text {
  max-width: var(--width-text);
}

.topic__text p + p {
  margin-top: 1.15em;
}

/* A topic's paragraphs arrive one after another */
.has-motion .topic .topic__text p,
.has-motion .topic .tag-list {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.has-motion .topic.is-visible .topic__text p,
.has-motion .topic.is-visible .tag-list {
  opacity: 1;
  transform: none;
}

.has-motion .topic.is-visible .topic__text p:nth-of-type(1) { transition-delay: 0.45s; }
.has-motion .topic.is-visible .topic__text p:nth-of-type(2) { transition-delay: 0.6s; }
.has-motion .topic.is-visible .topic__text p:nth-of-type(3) { transition-delay: 0.75s; }
.has-motion .topic.is-visible .topic__text p:nth-of-type(4) { transition-delay: 0.9s; }
.has-motion .topic.is-visible .topic__text p:nth-of-type(n + 5) { transition-delay: 1.05s; }
.has-motion .topic.is-visible .tag-list { transition-delay: 0.7s; }
.has-motion .topic.is-visible .tag-list ~ .topic__text p { transition-delay: 0.95s; }

/* The closing sentence of each topic carries the point: a touch brighter. */
.topic__body > .topic__text:nth-last-child(1 of :not([hidden])) > p:last-child:not(:only-child) {
  color: var(--white);
  font-weight: 400;
}

/* ----- Doorway to the next chapter: a whole screen that is one link ----- */

.onward__link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 100svh;
  padding: var(--space-section) var(--gutter);
  overflow: clip;
  text-align: center;
}

.onward__image {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -2;
  height: min(80svh, 50rem);
  aspect-ratio: 4 / 5;
  opacity: calc(0.15 + var(--p, 1) * 0.4);
  transform: translate(-50%, -50%) scale(calc(0.8 + var(--p, 1) * 0.3));
  transition: opacity 0.8s var(--ease);
}

/* A soft patch of darkness between picture and words, so the gold title
   never sits directly on a golden picture */
.onward__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(100%, 64rem);
  height: min(70svh, 30rem);
  background: radial-gradient(closest-side, rgba(7, 7, 6, 0.92) 35%, rgba(7, 7, 6, 0.6) 65%, transparent);
  transform: translate(-50%, -50%);
}

.onward__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onward__title {
  max-width: 11em;
  font-size: clamp(2.2rem, 1rem + 4.6vw, 5.5rem);
  line-height: 1.1;
}

.onward__link:hover .onward__image {
  opacity: 0.75;
}


/* ==========================================================================
   8. Work with us (work-with-us.html)
   ========================================================================== */

.page-hero,
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: var(--space-section) var(--gutter);
  text-align: center;
}

.page-hero {
  justify-content: flex-end;
  min-height: 62svh;
  padding-bottom: var(--space-block);
}

.page-hero > * {
  animation: rise 1.4s var(--ease) both;
}

.page-hero > :nth-child(2) { animation-delay: 0.2s; }
.page-hero > :nth-child(3) { animation-delay: 0.45s; }

.page-hero__title,
.contact__title {
  max-width: 9em;
  font-size: clamp(2.2rem, 1rem + 4.4vw, 5.25rem);
  line-height: 1.1;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  justify-items: center;
  gap: 3rem clamp(2rem, 6vw, 7rem);
  max-width: 92rem;
  min-height: 100svh;
  margin-inline: auto;
}

.contact__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact__image {
  width: 100%;
  max-width: 30rem;
  overflow: hidden;
}

.contact__image img {
  width: 100%;
  transition: transform 2.4s var(--ease);
}

.contact__image.is-visible img {
  transform: scale(1.06);
}

.page-hero .lead,
.contact .lead {
  max-width: 36rem;
  color: var(--text);
}

/* ----- People ----- */

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 26rem));
  justify-content: center;
  gap: var(--space-block) clamp(2rem, 8vw, 8rem);
  padding: 0 var(--gutter) var(--space-section);
}

.person:nth-child(2) {
  margin-top: clamp(0rem, 8vw, 7rem);
  transition-delay: 0.2s;
}

.person__text {
  position: relative;
  margin-top: -2rem;
  text-align: center;
  padding-inline: clamp(0rem, 2vw, 1.5rem);
}

.person__name {
  font-size: var(--size-h3);
}

.person__origin {
  margin-top: 0.6rem;
  font-size: var(--size-small);
  letter-spacing: 0.08em;
  color: var(--gold);
}

.fact-list {
  margin-top: 1.75rem;
}

.fact-list li {
  padding-block: 0.7rem;
  border-top: 1px solid var(--line-quiet);
}

/* ----- Content blocks: title on the left, text on the right ----- */

.block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  max-width: calc(var(--width-page) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--space-block) var(--gutter);
}

.block__head {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.block__title {
  margin-top: 1.25rem;
  font-size: var(--size-h2);
}

.block__title:not(.gold-text) {
  font-weight: 400;
}

.block__body .lead {
  margin-bottom: 2rem;
}

.point-list li {
  position: relative;
  padding: 1.5rem 0 1.5rem 2.75rem;
  border-top: 1px solid var(--line-quiet);
  color: var(--white);
}

.point-list li:last-child {
  border-bottom: 1px solid var(--line-quiet);
}

.point-list li::before {
  content: "×";
  position: absolute;
  left: 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.15em;
  line-height: 1.6;
  color: var(--gold);
}

/* ----- The four phases ----- */

.phases {
  counter-reset: phase;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--gold);
}

.phases li {
  counter-increment: phase;
  position: relative;
  padding: 1.75rem 0.75rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 0.7rem + 0.5vw, 1.05rem);
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--white);
  hyphens: manual; /* "Detail-Analyse" breaks at its hyphen; no word is split elsewhere */
}

.phases li::before {
  content: counter(phase, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-text);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.phases li::after {
  content: "";
  position: absolute;
  top: -0.3rem;
  left: 0;
  width: 0.55rem;
  aspect-ratio: 1;
  background: var(--gold-light);
  transform: rotate(45deg);
}

.phases li:nth-of-type(2) { transition-delay: 0.15s; }
.phases li:nth-of-type(3) { transition-delay: 0.3s; }
.phases li:nth-of-type(4) { transition-delay: 0.45s; }

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

.contact__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 18rem));
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
  margin-block: 1.5rem;
  padding-block: 3rem;
  border-block: 1px solid var(--line);
  line-height: 1.8;
  color: var(--white);
}

.contact__details dt {
  margin-bottom: 0.9rem;
}

/* "At Times" contains one character only, the @, taken from the Times of the
   visitor's device (as on the business card). Everything else stays Cinzel. */
@font-face {
  font-family: "At Times";
  src: local("Times New Roman"), local("Times"), local("Liberation Serif"), local("Tinos"),
       local("Nimbus Roman"), local("Noto Serif"), local("Georgia");
  unicode-range: U+0040;
}

.contact__details a {
  font-family: "At Times", var(--font-heading);
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.5rem);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}

.contact__details a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}


/* ==========================================================================
   9. Legal pages (imprint, privacy policy)
   ========================================================================== */

.prose {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(9rem, 22vh, 14rem) var(--gutter) var(--space-section);
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 4;
  hyphenate-limit-chars: 12 5 4;
}

.prose__notice {
  margin-bottom: 2.5rem;
  font-size: var(--size-small);
  letter-spacing: 0.06em;
  color: var(--gold);
}

.prose h1 {
  margin-bottom: var(--space-block);
  font-size: var(--size-h2);
}

.prose h2 {
  margin-top: 5rem;
  margin-bottom: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
}

.prose h3,
.prose h4 {
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-text);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.prose h3 {
  font-size: 1.1rem;
  color: var(--white);
}

.prose h4 {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.prose p,
.prose ul {
  margin-bottom: 1.15em;
  font-size: 0.97rem;
}

.prose strong {
  font-weight: 500;
  color: var(--white);
}

.prose ul {
  padding-left: 1.25rem;
  list-style: "×  ";
}

.prose li {
  margin-bottom: 0.75em;
}

.prose li::marker {
  color: var(--gold);
}

.prose a {
  color: var(--white);
  border-bottom: 1px solid var(--gold);
  transition: border-color 0.3s;
}

.prose a:hover {
  border-color: var(--gold);
}


/* ==========================================================================
   Smaller screens
   ========================================================================== */

@media (max-width: 820px) {
  .topic,
  .block {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic__label,
  .block__head {
    position: static;
  }

  .topic__label {
    display: flex;
    align-items: baseline;
    gap: 1rem;
  }

  .topic__label::before {
    margin-bottom: 0;
  }

  .stats,
  .phases {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene__label::before {
    margin-inline: auto;
  }

  /* Scene: picture above, title below */
  .scene__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 2.5rem;
    text-align: center;
  }

  .scene__image {
    order: -1;
    height: 46svh;
  }

  /* Gallery: picture above, words beneath */
  .door {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    text-align: center;
  }

  .door__name,
  .door__topics {
    justify-content: center;
  }

  .door__topics {
    margin-inline: auto;
  }

  .has-motion .door__image {
    height: 36svh;
  }

  .door__topics {
    display: none;
  }

  .door__title {
    margin-bottom: 2rem;
  }

  .phases {
    row-gap: 2.5rem;
    border-top: 0;
  }

  .phases li {
    border-top: 1px solid var(--gold);
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .counter {
    display: none;
  }

  .people,
  .contact__details {
    grid-template-columns: minmax(0, 24rem);
  }

  .contact__details {
    justify-content: center;
  }

  .person:nth-child(2) {
    margin-top: 0;
  }


}


/* ==========================================================================
   10. Motion preferences & print
   ========================================================================== */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .has-motion .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .backdrop {
    background-position: center;
  }
}

@media print {
  .backdrop,
  .progress,
  .site-header,
  .menu,
  .counter,
  .ghost,
  .curtain,
  .scroll-cue {
    display: none;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }
}
