/* ---------- Fonts ---------- */
@font-face {
  font-family: "Anton SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/anton-sc-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/inter-variable-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --color-bg: #1a0308;
  --color-text: #f4d7cf;
  --color-white: #fff8f3;
  --color-muted: #cfb2b5;
  --color-line: rgb(244 215 207 / 0.2);
  --color-surface: rgb(244 215 207 / 0.06);
  --color-tint: #6e2733;

  --font-heading: "Anton SC", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --size-base: 0.875rem;
  --line-height-base: 1.3;
  --letter-spacing-base: -0.03em;
  --line-height-display: 1.1;

  --space-section: 5rem;
  --space-section-medium: 5rem;
  --space-gutter: 1rem;
  --content-max: 90rem;
  /* Left column of all desktop label/content grids; titles of every section start on the same line */
  --label-col: 15.625rem;

  --ease-out: cubic-bezier(.25, .46, .45, .94);
  --ease-out-strong: cubic-bezier(.22, 1, .36, 1);
  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --duration: 300ms;
}

@media (min-width: 768px) {
  :root {
    --space-gutter: 2rem;
    --space-section: 6rem;
    --space-section-medium: 4rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --size-base: 1rem;
    --space-gutter: 3.75rem;
    --space-section-medium: 5rem;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

/* ---------- Shared ---------- */
.section-tag {
  color: var(--color-white);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  /* Like the reference: at least one screen tall, but never shorter than padding + content,
     so a low browser window scrolls instead of squeezing title and text together. */
  min-height: 100svh;
  padding: 18.75rem var(--space-gutter) 3rem;
  overflow: clip;
  text-transform: uppercase;
}

/* Extends above the section so the downward parallax never reveals the background */
.hero__media {
  position: absolute;
  inset: -3rem 0 0;
  overflow: hidden;
  isolation: isolate;
}

/* Recolors the photo: blend mode "color" takes hue and saturation from the tint
   but keeps the photo's own brightness, so nothing gets lighter or darker */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-tint);
  mix-blend-mode: color;
  pointer-events: none;
}

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

.hero__title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 27vw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.hero__title-line--end {
  align-self: flex-end;
}

.hero__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.hero__description {
  max-width: 26.5rem;
  margin-inline: auto;
  text-align: center;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.hero__link .bracket-link__label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

@media (min-width: 768px) {
  .hero {
    padding-block: 15rem;
  }

  .hero__title {
    font-size: 18vw;
  }

  /* Like the reference: text bottom left, links bottom right on one line */
  .hero__bottom {
    position: absolute;
    inset: auto 0 0;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 var(--space-gutter) 4rem;
  }

  .hero__description {
    margin-inline: 0;
    text-align: start;
  }

  .hero__links {
    flex-wrap: nowrap;
    gap: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .hero {
    padding-block: 17rem;
  }
}

/* About */
.about {
  padding-block: var(--space-section-medium);
  overflow-x: clip;
  text-transform: uppercase;
}

.about__wrap {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

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


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

.about__title {
  max-width: 30rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: var(--line-height-display);
}

.about__title--indent {
  max-width: none;
  padding-left: 20%;
}

.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  align-items: start;
  gap: 1.5rem;
}

.about__card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--color-text);
  color: var(--color-bg);
}

.about__year {
  font-family: var(--font-heading);
  font-size: 15vw;
  line-height: 1;
}

.about__center {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__img {
  overflow: clip;
}

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

.about__img--main {
  aspect-ratio: 848 / 912;
}

.about__img--side {
  display: none;
  aspect-ratio: 624 / 510;
}

.bracket-link {
  display: inline-flex;
  align-self: flex-start;
  gap: 0.35em;
  color: var(--color-white);
  text-decoration: none;
}

button.bracket-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

/* Rolling hover label: each char has a copy below it that slides into place */
.roll {
  display: inline-flex;
  overflow: hidden;
}

.roll__char {
  position: relative;
  display: inline-block;
  white-space: pre;
}

.roll__char::after {
  content: attr(data-char);
  position: absolute;
  inset: 100% 0 auto;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .roll__char {
    transition: transform 400ms var(--ease-out);
    transition-delay: var(--char-delay, 0ms);
  }

  .bracket-link:hover .roll__char,
  .bracket-link:focus-visible .roll__char {
    transform: translateY(-100%);
  }
}

@media (min-width: 768px) {
  .about__title {
    max-width: 50rem;
    font-size: 3rem;
  }

  .about__title--indent {
    padding-left: 12.5%;
  }

  .about__grid {
    grid-template-columns: 1fr 1.66fr;
  }

  .about__img--side {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35%;
    aspect-ratio: 246 / 211;
  }
}

@media (min-width: 1200px) {
  .about__header {
    display: grid;
    grid-template-columns: var(--label-col) 1fr;
    align-items: start;
  }

  /* Keeps the headline in the right column even without a label on the left */
  .about__headline {
    grid-column: 2;
  }

  .about__title {
    font-size: 3.5vw;
  }

  .about__title--indent {
    padding-right: 4rem;
  }

  .about__grid {
    grid-template-columns: 1.46fr 1.375fr 1fr;
  }

  .about__year {
    font-size: 13.9vw;
  }

  .about__img--side {
    position: static;
    width: auto;
    aspect-ratio: 624 / 510;
  }
}

/* Schedule */
.schedule {
  padding-block: var(--space-section-medium);
  overflow-x: clip;
  text-transform: uppercase;
}

.schedule__wrap {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

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

.schedule__list {
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--color-line);
}

.schedule__item {
  border-top: 1px solid var(--color-line);
}

.schedule__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding-block: 1.5rem;
  text-decoration: none;
}

/* Hover surface sits slightly outside the row, like a highlight behind it */
.schedule__link::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--space-gutter) * -0.5);
  background: var(--color-surface);
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.schedule__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.schedule__name {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: var(--line-height-display);
  letter-spacing: 0;
}

.schedule__name-text {
  position: relative;
}

.schedule__name-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease-out);
}

.schedule__arrow {
  flex: none;
  width: 0.6em;
  height: 0.6em;
  fill: none;
  stroke: var(--color-white);
  stroke-width: 1.5;
  opacity: 0;
  transform: translate3d(-0.25em, 0.25em, 0);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.schedule__desc {
  color: var(--color-muted);
  transition: color var(--duration) var(--ease-out);
}

/* Address sits after a blank line, in the accent colour with a pin, so guests can scan for it.
   It is the Google Maps link of the row. */
.schedule__address {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  width: fit-content;
  margin-top: calc(var(--line-height-base) * 1em);
  color: var(--color-text);
  text-decoration: none;
}

.schedule__address:hover span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.schedule__pin {
  flex: none;
  width: 0.9em;
  height: 0.9em;
  transform: translateY(0.1em);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.schedule__more {
  display: flex;
  width: fit-content;
  margin-top: 0.75em;
}

.schedule__more .bracket-link__label {
  font-weight: 500;
  letter-spacing: 0.16em;
}

.schedule__time {
  position: relative;
  order: -1;
  flex: none;
  color: var(--color-white);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
}

.schedule__link:hover::before,
.schedule__link:focus-visible::before {
  opacity: 1;
  transform: none;
}

.schedule__link:hover .schedule__name-text::after,
.schedule__link:focus-visible .schedule__name-text::after {
  transform: scaleX(1);
}

.schedule__link:hover .schedule__arrow,
.schedule__link:focus-visible .schedule__arrow {
  opacity: 1;
  transform: none;
}

.schedule__link:hover .schedule__desc,
.schedule__link:focus-visible .schedule__desc {
  color: var(--color-text);
}

/* Floating image that follows the cursor; only on devices with a real pointer */
.hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  /* Fixed frame: every location photo is cropped to the same size, whatever its format */
  width: 20rem;
  height: 13.75rem;
  overflow: hidden;
  background: var(--color-bg);
  pointer-events: none;
  opacity: 0;
  scale: 0.8;
  transition:
    opacity var(--duration) var(--ease-out),
    scale var(--duration) var(--ease-out);
}

.hover-preview.is-visible {
  opacity: 1;
  scale: 1;
}

.hover-preview__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  scale: 1.1;
  filter: blur(10px);
  transition:
    opacity 400ms var(--ease-out),
    scale 400ms var(--ease-out),
    filter 400ms var(--ease-out);
}

.hover-preview__img.is-active {
  opacity: 1;
  scale: 1;
  filter: none;
}

@media not ((hover: hover) and (pointer: fine)) {
  .hover-preview {
    display: none;
  }
}

@media (min-width: 768px) {
  .schedule__link {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 2rem;
  }

  .schedule__time {
    order: 0;
  }

  .schedule__name {
    font-size: 3rem;
  }
}

@media (min-width: 1200px) {
  .schedule__header {
    display: grid;
    grid-template-columns: var(--label-col) 1fr;
    align-items: start;
  }


  .schedule__link {
    display: grid;
    grid-template-columns: var(--label-col) 1fr;
    align-items: baseline;
    gap: 1rem;
  }

  .schedule__time {
    grid-row: 1;
    grid-column: 1;
  }

  /* Title and text share the row in two equal columns */
  .schedule__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: baseline;
    gap: 2rem;
  }

  .schedule__name {
    font-size: 4rem;
  }

  .schedule__desc {
    text-align: end;
  }

  .schedule__address,
  .schedule__more {
    margin-left: auto;
  }
}

/* Stories */
.stories {
  padding-block: var(--space-section-medium);
  /* Extra room after the last section so the quote is not glued to the end of the page */
  padding-bottom: calc(var(--space-section-medium) + 50vh);
  overflow-x: clip;
  text-transform: uppercase;
}

.stories__wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Empty first column where the photo used to be: keeps the quote in place on wider screens */
.stories__spacer {
  display: none;
}

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

.stories__line {
  max-width: 30rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: var(--line-height-display);
}

.stories__line--indent {
  max-width: 55rem;
  padding-left: 20%;
}

@media (min-width: 768px) {
  .stories__wrap {
    display: grid;
    grid-template-columns: 20% 1fr;
    align-items: start;
  }

  .stories__spacer {
    display: block;
  }

  .stories__line {
    max-width: 50rem;
    font-size: 3rem;
  }

  .stories__line--indent {
    max-width: 55rem;
    padding-left: 12.5%;
  }
}

@media (min-width: 1200px) {
  .stories__wrap {
    grid-template-columns: 16.4% 1fr;
    gap: 8%;
  }

  .stories__line {
    font-size: 3.5vw;
  }

  .stories__line--indent {
    padding-right: 4rem;
  }
}

/* Zoom */
.zoom {
  padding-block: var(--space-section-medium);
  overflow-x: clip;
  text-transform: uppercase;
}

/* After the schedule the gap is doubled, to set the livestream info clearly apart */
.schedule + .zoom {
  margin-top: calc(var(--space-section-medium) * 2);
}

.zoom__wrap {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

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

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

.zoom__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: var(--line-height-display);
}

.zoom__text {
  max-width: 32rem;
  color: var(--color-muted);
}

/* Same address line as in the schedule, but left-aligned under the intro text;
   the intro gap already provides the spacing above */
.zoom__intro .zoom__address {
  margin-top: 0;
  margin-left: 0;
}

.zoom__data {
  border-bottom: 1px solid var(--color-line);
}

.zoom__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.zoom__value-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

/* The "Kopiert" confirmation hangs below the button so it never shifts the layout */
.zoom__copy-wrap {
  position: relative;
  display: inline-flex;
}

.zoom__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: var(--line-height-display);
  font-variant-numeric: tabular-nums;
}

.zoom__tel {
  color: inherit;
  text-decoration: none;
}

.zoom__tel:hover {
  text-decoration: underline;
  text-underline-offset: 0.1em;
}

.zoom__meta {
  color: var(--color-muted);
}

.zoom__copy .bracket-link__label,
.zoom__link .bracket-link__label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.copy-status {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 0.25rem;
  white-space: nowrap;
  color: var(--color-muted);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .zoom__title {
    font-size: 3rem;
  }

  .zoom__row {
    padding-block: 2rem;
  }

  .zoom__value {
    font-size: 3rem;
  }
}

@media (min-width: 1200px) {
  .zoom__header,
  .zoom__row {
    display: grid;
    grid-template-columns: var(--label-col) 1fr;
    align-items: baseline;
    gap: 1rem;
  }

  .zoom__title {
    font-size: 3.5vw;
  }

  .zoom__value {
    font-size: 4rem;
  }

  .zoom__action {
    padding-left: calc(var(--label-col) + 1rem);
  }
}

/* Info */
.info {
  padding-top: 8rem;
  padding-bottom: var(--space-section-medium);
  overflow-x: clip;
  text-transform: uppercase;
}

.info__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.info__top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info__title {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 400;
  line-height: var(--line-height-display);
}

/* Like the reference: the intro text is left out on phones */
.info__desc {
  display: none;
  color: var(--color-muted);
}

.info__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.info__fact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info__fact--wide {
  grid-column: 1 / -1;
}

.info__bank-open {
  margin-top: 0.25rem;
}

.info__bank-open .bracket-link__label,
.dialog__close .bracket-link__label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

/* Bank details popup (native <dialog>: focus trap, Esc to close) */
.dialog {
  /* The global margin reset removes the browser's auto-centering of modal dialogs */
  margin: auto;
  width: min(100% - 2 * var(--space-gutter), 40rem);
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 1px solid var(--color-line);
  background: var(--color-bg);
  color: var(--color-text);
  text-transform: uppercase;
}

.dialog::backdrop {
  background: rgb(0 0 0 / 0.7);
}

.dialog__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem;
}

.dialog__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.dialog__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: var(--line-height-display);
}

.dialog__data {
  border-bottom: 1px solid var(--color-line);
}

.dialog__row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
  border-top: 1px solid var(--color-line);
}

/* Phones: value full width, copy button below. From tablets: button to the right */
.dialog__value-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.dialog__value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .dialog__inner {
    padding: 2.5rem;
  }

  .dialog__title {
    font-size: 3rem;
  }

  .dialog__value {
    font-size: 2rem;
  }

  .dialog__value-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .dialog[open] {
    animation: dialog-in var(--duration) var(--ease-out-strong);
  }

  .dialog[open]::backdrop {
    animation: fade-in var(--duration) var(--ease-out);
  }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(1rem) scale(0.98); }
  to { opacity: 1; transform: none; }
}

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

.info__visual {
  position: relative;
  aspect-ratio: 628 / 725;
  overflow: clip;
}

.info__visual img,
.info__visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .info__title {
    font-size: 6rem;
  }

  .info__desc {
    display: block;
  }

  .info__facts {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .info {
    padding-top: 10rem;
  }

  .info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .info__title {
    font-size: 7rem;
  }
}

/* Team */
.team {
  padding-block: var(--space-section-medium);
  overflow-x: clip;
  text-transform: uppercase;
}

.team__wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.team__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 12.5vw, 6.25rem);
  font-weight: 400;
  line-height: var(--line-height-display);
}

.team__intro {
  color: var(--color-muted);
}

.team__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

/* Thin vertical rules frame each card; in two columns the right rule of the left card
   doubles as the divider, so only left-column cards get a left rule */
.team__card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-inline: 1rem;
  border-inline: 1px solid var(--color-line);
}

.team__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.team__img {
  position: relative;
  aspect-ratio: 1;
  overflow: clip;
}

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

.team__text {
  max-width: 17rem;
  color: var(--color-muted);
}

.team__name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.team__name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

.team__role {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: end;
}

@media (min-width: 768px) {
  .team__wrap {
    gap: 4rem;
  }

  .team__list {
    grid-template-columns: 1fr 1fr;
    row-gap: 4rem;
    column-gap: 0;
  }

  .team__card {
    gap: 3rem;
    padding-inline: 1.5rem;
    border-left: 0;
  }

  .team__card:nth-child(odd) {
    border-left: 1px solid var(--color-line);
  }

  .team__top {
    display: grid;
    grid-template-columns: minmax(26%, 15rem) 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1200px) {
  .team__top {
    gap: 3rem;
  }
}

/* Language switch (entrance page at / and /zoom/) */
.switch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  min-height: 100svh;
  padding: 3rem var(--space-gutter);
  overflow: clip;
  text-transform: uppercase;
}

.switch__media {
  inset: 0;
}

/* Extra darkening on top of the burgundy tint: darker at top and bottom like a vignette,
   so the big type stays legible on any photo */
.hero::before,
.switch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.25) 50%, rgb(0 0 0 / 0.6));
  pointer-events: none;
}

.switch__header,
.switch__nav {
  position: relative;
  z-index: 2;
}

.switch__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.switch__names {
  color: var(--color-white);
  font-weight: 500;
  letter-spacing: 0.16em;
}

.switch__prompt {
  color: var(--color-muted);
}

.switch__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block: auto;
}

/* Each word sits in a box that clips only top and bottom: it can rise in from below,
   and the sideways hover shift is not cut off */
.switch__link {
  display: block;
  clip-path: inset(0 -1em);
  color: var(--color-text);
  text-decoration: none;
  transition: opacity var(--duration) var(--ease-out);
}

.switch__word {
  display: block;
  font-family: var(--font-heading);
  font-size: 20vw;
  line-height: 1.05;
  transition: transform var(--duration) var(--ease-out);
}

.switch__link:focus-visible {
  outline-offset: -0.1em;
}

@media (hover: hover) {
  .switch__nav:hover .switch__link:not(:hover) {
    opacity: 0.35;
  }

  .switch__link:hover .switch__word {
    transform: translateX(0.05em);
  }
}

.switch__curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-bg);
  transform: translateY(100%);
  pointer-events: none;
}

.is-leaving .switch__curtain {
  transform: none;
  transition: transform 400ms var(--ease-out-strong);
}

@media (min-width: 768px) {
  .switch {
    padding-block: 4rem;
  }

  .switch__word {
    font-size: 13vw;
  }
}

@media (min-width: 1200px) {
  .switch__word {
    font-size: 10vw;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .switch__word {
    animation: switch-rise 900ms var(--ease-out-quart) backwards;
  }

  .switch__link:nth-child(1) .switch__word { animation-delay: 200ms; }
  .switch__link:nth-child(2) .switch__word { animation-delay: 350ms; }
  .switch__link:nth-child(3) .switch__word { animation-delay: 500ms; }

  .switch__header {
    animation: fade-in 600ms var(--ease-out) both;
  }
}

@keyframes switch-rise {
  from { transform: translateY(105%); }
  to { transform: none; }
}

/* Scroll reveal: JS adds .has-motion to <html>, so content stays visible without JS */
@media (prefers-reduced-motion: no-preference) {
  .has-motion [data-reveal] {
    opacity: 0;
    transition:
      opacity 1000ms var(--ease-out-quart),
      transform 1000ms var(--ease-out-quart);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .has-motion [data-reveal="left"] { transform: translate3d(-100px, 0, 0); }
  .has-motion [data-reveal="right"] { transform: translate3d(100px, 0, 0); }
  .has-motion [data-reveal="bottom"] { transform: translate3d(0, 100px, 0); }
  .has-motion [data-reveal="shrink"] { transform: scale(1.25); }

  .highlight-word {
    opacity: 0.5;
  }

  .has-motion [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* Load animation: only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .hero__img {
    animation: hero-img-in 600ms var(--ease-out-strong) both;
  }

  .hero__title {
    animation: fade-in 500ms var(--ease-out) 100ms both;
  }

  .hero__link {
    animation: pop-in 500ms var(--ease-out-strong) both;
  }

  .hero__link:nth-child(1) { animation-delay: 200ms; }
  .hero__link:nth-child(2) { animation-delay: 300ms; }
  .hero__link:nth-child(3) { animation-delay: 400ms; }

  html {
    scroll-behavior: smooth;
  }

  .split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
  }

  .split-word__inner {
    display: inline-block;
    animation: word-up 500ms var(--ease-out) both;
    animation-delay: calc(100ms + var(--word-delay, 0ms));
  }
}

@keyframes hero-img-in {
  from { transform: scale(1.2); }
  to { transform: scale(1); }
}

@keyframes pop-in {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes word-up {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}
