/* ==========================================================================
   Inside Future — site styles
   Concept: "Mapping the future" — alpine contour lines (Engelberg) meet
   strategic foresight. One bold element (the living contour map), everything
   else quiet, gridded and Swiss.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — no third-party requests) ---------- */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* Palette: glacier night, whitewashed stucco, baroque gilt */
  --ink: #0d1a22;          /* glacier night — dark sections */
  --ink-2: #132630;        /* pine slate — secondary dark */
  --stucco: #f1f3f0;       /* monastery whitewash — light sections */
  --paper: #ffffff;
  --text: #1b252a;
  --muted: #55636a;
  --line: rgba(27, 37, 42, 0.14);
  --on-dark: #e8eeec;
  --on-dark-muted: #a3b5b7;
  --line-dark: rgba(232, 238, 236, 0.16);
  --gilt: #c9a35e;         /* accent: the one highlighted contour, actions */
  --gilt-deep: #8a6a2e;    /* gilt for text/lines on light backgrounds (AA) */
  --glacier: #8fb8b4;      /* contour lines */

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section-y: clamp(88px, 11vw, 168px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  background: var(--stucco);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.1875rem;               /* 19px serif body */
  line-height: 1.62;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--gilt);
  color: var(--ink);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gilt); color: var(--ink); }

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(2.75rem, 6.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  font-weight: 500;
}

.h2 {
  font-size: clamp(2.125rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.h3 {
  font-size: clamp(1.375rem, 1.8vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 600;
}

.lede {
  font-size: clamp(1.25rem, 1.75vw, 1.5rem);
  line-height: 1.5;
  max-width: 34em;
}

.small {
  font-family: var(--font-display);
  font-size: 0.875rem;
  line-height: 1.45;
  letter-spacing: 0.005em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--gilt { background: var(--gilt); color: var(--ink); }
.btn--gilt:hover { background: #d9b673; }
.btn--ghost { border-color: var(--line-dark); color: var(--on-dark); background: transparent; }
.btn--ghost:hover { border-color: var(--on-dark); }
.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: var(--ink-2); }

.text-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: var(--gilt);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.site-header.is-solid,
.site-header--solid {
  background: rgba(13, 26, 34, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: block;
  width: 132px;
  color: var(--on-dark);
  text-decoration: none;
}
.logo svg { width: 100%; height: auto; overflow: visible; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__list {
  display: flex;
  gap: clamp(16px, 2.2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark-muted);
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gilt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="true"] { color: var(--on-dark); }
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

.nav__cta { min-height: 42px; padding: 9px 18px; font-size: 0.9375rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px;
  background: none;
  border: 0;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 22px; height: 12px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 10px; }
.nav-open .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    padding: 32px var(--gutter) 48px;
    background: var(--ink);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
    overflow-y: auto;
  }
  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav__list { flex-direction: column; gap: 4px; width: 100%; }
  .nav__link {
    font-size: 1.75rem;
    letter-spacing: -0.015em;
    color: var(--on-dark);
    padding: 8px 0;
  }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__terrain,
.hero__signals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  transition: opacity 1.8s var(--ease);
}
.js .hero__terrain,
.js .hero__signals { opacity: 0; }
.js.is-loaded .hero__terrain,
.js.is-loaded .hero__signals { opacity: 1; }
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 26, 34, 0.86) 0%, rgba(13, 26, 34, 0.55) 36%, rgba(13, 26, 34, 0) 62%),
    linear-gradient(0deg, rgba(13, 26, 34, 0.95) 0%, rgba(13, 26, 34, 0) 42%);
}
.hero__content {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero__title { max-width: 11.5em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span {
  display: block;
  transition: transform 1.1s var(--ease);
}
.js .hero__title .line > span { transform: translateY(105%); }
.js.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 0.12s; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 0.24s; }

.hero__lede {
  margin-top: clamp(24px, 3vw, 36px);
  color: var(--on-dark-muted);
  max-width: 31em;
  transition: opacity 0.9s var(--ease) 0.5s, transform 0.9s var(--ease) 0.5s;
}
.hero__lede strong { color: var(--on-dark); font-weight: 500; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 40px);
  transition: opacity 0.9s var(--ease) 0.65s, transform 0.9s var(--ease) 0.65s;
}
.js .hero__lede,
.js .hero__actions { opacity: 0; transform: translateY(12px); }
.js.is-loaded .hero__lede,
.js.is-loaded .hero__actions { opacity: 1; transform: none; }

.hero__meta {
  border-top: 1px solid var(--line-dark);
}
.hero__meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 0 auto;
  padding-block: 18px 22px;
  list-style: none;
  color: var(--on-dark-muted);
}
.hero__meta-list li:nth-child(3) { margin-left: auto; }
.hero__hint {
  color: var(--on-dark-muted);
}

@media (max-width: 720px) {
  .hero__shade {
    background: linear-gradient(0deg, rgba(13, 26, 34, 0.97) 0%, rgba(13, 26, 34, 0.75) 55%, rgba(13, 26, 34, 0.25) 100%);
  }
  .hero__meta-list li:nth-child(3) { margin-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--pine { background: var(--ink-2); color: var(--on-dark); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 24px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head__title { grid-column: 1 / span 6; }
.section-head__lede { grid-column: 8 / span 5; align-self: end; color: var(--muted); }
.section--ink .section-head__lede,
.section--pine .section-head__lede { color: var(--on-dark-muted); }

@media (max-width: 860px) {
  .section-head__title,
  .section-head__lede { grid-column: 1 / -1; }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 40px;
}
.about__heading { grid-column: 1 / span 5; }
.about__heading-inner { position: sticky; top: calc(var(--header-h) + 40px); }
.about__heading .h2 { max-width: 9.5em; }
.about__body { grid-column: 7 / span 6; }
.about__body p { max-width: 36em; }
.about__body p:first-child {
  font-size: clamp(1.3rem, 1.8vw, 1.5625rem);
  line-height: 1.45;
}

.principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(56px, 7vw, 104px);
  padding: 0;
  list-style: none;
}
.principle {
  padding-top: 22px;
  border-top: 1px solid var(--text);
}
.principle .h3 { margin-bottom: 12px; }
.principle p { color: var(--muted); font-size: 1.0625rem; }

@media (max-width: 860px) {
  .about__heading,
  .about__body { grid-column: 1 / -1; }
  .about__heading-inner { position: static; }
  .principles { grid-template-columns: 1fr; }
}

/* ---------- Offering: the route ---------- */
.route { position: relative; }
.route__stations {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.route__track {
  position: absolute;
  left: 22px;
  right: calc(25% - 16px);
  top: 22px;
  height: 2px;
  background: var(--line);
  pointer-events: none;
}
.route__track span {
  position: absolute;
  inset: 0;
  background: var(--gilt-deep);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  transition: transform 0.6s var(--ease);
}

.station {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 0 12px 20px 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--muted);
  font-family: var(--font-display);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.station__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.station__name {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.station:hover { color: var(--text); }
.station:hover .station__num { border-color: var(--gilt-deep); }
.station.is-done .station__num { border-color: var(--gilt-deep); color: var(--gilt-deep); }
.station[aria-selected="true"] { color: var(--text); }
.station[aria-selected="true"] .station__num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gilt);
  transform: scale(1.08);
}

.route__panels {
  margin-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.route__panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 24px;
  padding-top: clamp(32px, 4vw, 56px);
}
.route__panel[hidden] { display: none; }
.route__panel.is-entering { animation: panel-in 0.5s var(--ease) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.route__panel-title { grid-column: 1 / span 5; }
.route__panel-title .h3 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; }
.route__panel-body { grid-column: 7 / span 6; }
.route__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.route__facts dt { color: var(--muted); }
.route__facts dd { margin: 0; font-weight: 600; color: var(--text); }
.route__facts > div { display: flex; flex-direction: column; gap: 2px; }

@media (max-width: 860px) {
  .route__stations { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .route__track { display: none; }
  .station { flex-direction: row; align-items: center; gap: 12px; padding: 8px 0; }
  .station__num { width: 40px; height: 40px; flex: none; }
  .route__panel-title,
  .route__panel-body { grid-column: 1 / -1; }
}

/* Formats beyond the route */
.formats {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 48px;
  margin-top: clamp(80px, 10vw, 144px);
}
.formats__side {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.formats__intro .h3 { margin-bottom: 14px; }
.formats__intro p { color: var(--muted); }
.format--circle {
  grid-column: 1 / span 7;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.format--circle picture img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.05);
}
.format__body { padding: clamp(24px, 3.4vw, 44px); }
.format__body .h3 { margin-bottom: 14px; }
.format--circle p { color: var(--on-dark-muted); }
.format__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}
.format__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gilt);
}
.format__facts span { color: var(--on-dark-muted); }

.format--talks {
  padding-top: 22px;
  border-top: 1px solid var(--text);
}
.format--talks .h3 { margin-bottom: 14px; }
.format--talks p { color: var(--muted); }
.format--talks .text-link { margin-top: 18px; display: inline-block; }

@media (max-width: 960px) {
  .format--circle,
  .formats__side { grid-column: 1 / -1; }
  .formats__side { order: -1; }
}

/* ---------- Briefings ---------- */
.briefings__list {
  border-top: 1px solid var(--line-dark);
}
.briefing {
  border-bottom: 1px solid var(--line-dark);
}
.briefing summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 32px) 0;
  cursor: pointer;
  list-style: none;
}
.briefing summary::-webkit-details-marker { display: none; }
.briefing__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease), transform 0.35s var(--ease);
}
.briefing summary:hover .briefing__title { color: #fff; transform: translateX(6px); }
.briefing__icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.briefing__icon::before,
.briefing__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  margin: -1px 0 0 -7px;
  background: var(--on-dark);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}
.briefing__icon::after { transform: rotate(90deg); }
.briefing[open] .briefing__icon { background: var(--gilt); border-color: var(--gilt); transform: rotate(180deg); }
.briefing[open] .briefing__icon::before,
.briefing[open] .briefing__icon::after { background: var(--ink); }
.briefing[open] .briefing__icon::after { transform: rotate(180deg); }
.briefing[open] .briefing__title { color: var(--gilt); }

.briefing__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  padding-bottom: clamp(28px, 3vw, 40px);
}
.briefing__body > div { grid-column: 1 / span 7; }
.briefing__body p { color: var(--on-dark-muted); font-size: clamp(1.125rem, 1.4vw, 1.25rem); }
.briefing__body .text-link { margin-top: 8px; display: inline-block; color: var(--on-dark); }
.briefing[open] .briefing__body { animation: panel-in 0.45s var(--ease) both; }

.briefings__note {
  margin-top: clamp(40px, 5vw, 64px);
  color: var(--on-dark-muted);
  max-width: 40em;
}

@media (max-width: 860px) {
  .briefing__body > div { grid-column: 1 / -1; }
}

/* ---------- Engelberg ---------- */
.engelberg { padding-top: 0; }
.engelberg__figure {
  position: relative;
  margin: 0;
  min-height: clamp(420px, 62vw, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.engelberg__figure picture,
.engelberg__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.engelberg__figure img { object-position: 50% 60%; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.engelberg__figure.is-visible img { transform: scale(1); }
.engelberg__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--ink-2) 0%, rgba(19, 38, 48, 0.55) 35%, rgba(19, 38, 48, 0.05) 70%),
    linear-gradient(90deg, rgba(19, 38, 48, 0.35), rgba(19, 38, 48, 0));
  mix-blend-mode: normal;
}
.engelberg__caption { padding-bottom: clamp(32px, 4vw, 56px); }
.engelberg__caption .display { font-size: clamp(2.5rem, 6vw, 5.25rem); max-width: 10em; }
.engelberg__caption p { margin-top: 18px; color: var(--on-dark-muted); max-width: 30em; }

.engelberg__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 40px;
  margin-top: clamp(48px, 6vw, 88px);
}
.engelberg__text { grid-column: 1 / span 6; }
.engelberg__text p { color: var(--on-dark-muted); max-width: 34em; }
.engelberg__text p:first-child { color: var(--on-dark); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.48; }
.engelberg__photo { grid-column: 8 / span 5; margin: 0; }
.engelberg__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.35) contrast(1.04) brightness(0.92);
}
.engelberg__photo figcaption { margin-top: 12px; color: var(--on-dark-muted); }

@media (max-width: 860px) {
  .engelberg__text,
  .engelberg__photo { grid-column: 1 / -1; }
}

/* Timeline — a true sequence, drawn once when it scrolls into view */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin: clamp(64px, 8vw, 112px) 0 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 7px;
  height: 1px;
  background: var(--line-dark);
}
.timeline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 7px;
  height: 1px;
  background: var(--gilt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease);
}
.timeline.is-visible::after { transform: scaleX(1); }
.timeline__item { position: relative; padding-top: 36px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.timeline.is-visible .timeline__item::before { background: var(--gilt); border-color: var(--gilt); }
.timeline.is-visible .timeline__item:nth-child(2)::before { transition-delay: 0.4s; }
.timeline.is-visible .timeline__item:nth-child(3)::before { transition-delay: 0.8s; }
.timeline.is-visible .timeline__item:nth-child(4)::before { transition-delay: 1.2s; }
.timeline__year {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.timeline__item p { color: var(--on-dark-muted); font-size: 1.0625rem; max-width: 16em; }

@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before, .timeline::after { display: none; }
}

/* ---------- Team ---------- */
.team__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.person {
  display: grid;
  grid-template-columns: clamp(120px, 14vw, 184px) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}
.person__photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.person__name { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.person__role { margin: 6px 0 16px; color: var(--gilt-deep); font-weight: 600; }
.person__bio { color: var(--muted); font-size: 1.0625rem; }
.person .text-link { margin-top: 14px; display: inline-block; }

.team__network {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
}
.team__network p { grid-column: 1 / span 8; color: var(--muted); }

@media (max-width: 960px) {
  .team__list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .person { grid-template-columns: 1fr; }
  .person__photo { width: 140px; }
  .team__network p { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
.contact { overflow: hidden; isolation: isolate; }
.contact__terrain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 56px;
}
.contact__intro { grid-column: 1 / span 5; }
.contact__intro .lede { color: var(--on-dark-muted); margin-top: 24px; }
.contact__note {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--gilt);
  color: var(--on-dark);
}
.contact__details {
  margin-top: 40px;
  font-style: normal;
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
}
.contact__details a { color: var(--on-dark); text-decoration-color: var(--line-dark); text-underline-offset: 4px; }
.contact__details a:hover { text-decoration-color: var(--gilt); }
.contact__details strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--on-dark); font-size: 1rem; margin-bottom: 4px; }

.contact__form-wrap { grid-column: 7 / span 6; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: clamp(24px, 3.4vw, 44px);
  background: rgba(19, 38, 48, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label,
.field legend {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-dark);
}
.field .optional { font-weight: 400; color: var(--on-dark-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--on-dark);
  background: rgba(13, 26, 34, 0.7);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-muted) 50%), linear-gradient(135deg, var(--on-dark-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option,
.field select optgroup { color: var(--text); background: var(--paper); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(232, 238, 236, 0.32); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gilt); background: rgba(13, 26, 34, 0.95); }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #e08a74; }

.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.consent input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--gilt);
}
.consent a { color: var(--on-dark); text-underline-offset: 3px; }

.form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.form__actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.form__status { font-family: var(--font-display); font-size: 0.9375rem; color: var(--on-dark-muted); }
.form__status[data-state="error"] { color: #f0b09f; }
.form__hp { position: absolute; left: -9999px; }

.form-success {
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--gilt);
  border-radius: var(--radius);
  background: rgba(19, 38, 48, 0.9);
}
.form-success[hidden] { display: none; }
.form-success .h3 { color: var(--gilt); margin-bottom: 12px; }
.form-success p { color: var(--on-dark-muted); }

@media (max-width: 960px) {
  .contact__intro,
  .contact__form-wrap { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--line-dark);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 32px;
}
.site-footer__brand { grid-column: 1 / span 4; }
.site-footer__brand .logo { width: 120px; margin-bottom: 18px; }
.site-footer__brand p { max-width: 24em; }
.site-footer__col { grid-column: span 2; }
.site-footer__col--wide { grid-column: span 3; }
.site-footer h2 { font-size: 0.9375rem; font-weight: 600; color: var(--on-dark); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--gilt); text-underline-offset: 4px; }
.site-footer address { font-style: normal; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

@media (max-width: 960px) {
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__col,
  .site-footer__col--wide { grid-column: span 6; }
}
@media (max-width: 520px) {
  .site-footer__col,
  .site-footer__col--wide { grid-column: 1 / -1; }
}

/* ---------- Legal & utility pages ---------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .contact__terrain { opacity: 0.5; }
.page-hero p { color: var(--on-dark-muted); margin-top: 18px; max-width: 34em; }

.legal { padding-block: clamp(56px, 7vw, 96px); background: var(--paper); }
.legal__body > * { max-width: 760px; }
.legal__body h2 {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 2.2em 0 0.6em;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.125rem; font-weight: 600; margin: 1.6em 0 0.4em; }
.legal__body p,
.legal__body li { color: #3b484e; }
.legal__body ul { padding-left: 1.2em; }
.legal__body address { font-style: normal; margin-bottom: 1em; }
.legal__body dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 1em; }
.legal__body dt { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text); padding-top: 2px; }
.legal__body dd { margin: 0; }
.legal__meta { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 560px) {
  .legal__body dl { grid-template-columns: 1fr; gap: 2px; }
  .legal__body dd { margin-bottom: 10px; }
}

.utility {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
  padding-top: var(--header-h);
}
.utility .lede { color: var(--on-dark-muted); }
.site-footer--compact { padding-top: 28px; }
.site-footer--compact .site-footer__base { margin-top: 0; padding-top: 0; border-top: 0; }
.utility .display { font-size: clamp(2.5rem, 6vw, 4.75rem); max-width: 12em; }
.utility p { margin-top: 20px; }
.utility .btn { margin-top: 32px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hero__title .line > span,
  .hero__lede,
  .hero__actions { transform: none; opacity: 1; }
  .hero__terrain,
  .hero__signals { opacity: 1; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero__terrain, .hero__signals, .contact__terrain, .nav-toggle, .form { display: none !important; }
  .hero, .section--ink, .section--pine, .site-footer { background: #fff !important; color: #000 !important; }
}


/* ==========================================================================
   v2 additions: languages, Member Zone, root chooser
   ========================================================================== */

/* ---------- Header tools: language switch + member link ---------- */
.nav__tools { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.lang-switch { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.lang-switch__link {
  display: inline-block;
  padding: 6px 7px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang-switch__link:hover { color: var(--on-dark); }
.lang-switch__link[aria-current="page"] { color: var(--ink); background: var(--on-dark); }
.nav__members {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
}
.nav__members:hover,
.nav__members[aria-current="page"] { color: var(--on-dark); }
.icon { width: 16px; height: 16px; flex: none; }

/* ---------- Legal note on translated pages ---------- */
.legal__note {
  margin-bottom: 2.4em;
  padding: 12px 16px;
  border-left: 2px solid var(--gilt);
  background: var(--stucco);
  color: var(--muted);
}
.legal__body code { font-size: 0.9em; }

/* ---------- Member Zone: sign-in ---------- */
.auth { padding-block: clamp(48px, 6vw, 88px); background: var(--paper); }
.auth__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: 32px;
  align-items: start;
}
.auth__card {
  grid-column: 1 / span 6;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.auth__aside { grid-column: 8 / span 4; color: var(--muted); padding-top: 8px; }
.auth__aside a { color: var(--text); }
.auth__step { display: grid; gap: 18px; }
.auth__step[hidden] { display: none; }
.auth__step .h3 { margin-bottom: -4px; }
.auth__step p { color: var(--muted); font-size: 1.0625rem; }
.auth__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.auth .field label { color: var(--text); }
.auth .field input {
  color: var(--text);
  background: var(--paper);
  border-color: rgba(27, 37, 42, 0.24);
}
.auth .field input:hover { border-color: rgba(27, 37, 42, 0.45); }
.auth .field input:focus { background: var(--paper); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 163, 94, 0.35); }
.auth .text-link { color: var(--text); }
.code-input { font-size: 1.5rem !important; letter-spacing: 0.32em; font-variant-numeric: tabular-nums; max-width: 12ch; }
.auth__message { margin: 0; font-family: var(--font-display); font-size: 0.9375rem; }
.auth__message:empty { display: none; }
.auth__message { margin-bottom: 18px; padding: 10px 14px; border-radius: var(--radius); background: var(--stucco); color: var(--text); }
.auth__message[data-kind="error"] { background: #fbecea; color: #8a2a1a; }
.auth__checking { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--gilt-deep);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.enroll { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.enroll__qr {
  width: 200px; height: 200px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.enroll__manual { flex: 1 1 200px; color: var(--muted); }
.enroll__manual code {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--stucco);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  word-break: break-all;
  color: var(--text);
}
@media (max-width: 860px) {
  .auth__card, .auth__aside { grid-column: 1 / -1; }
}

/* ---------- Member Zone: dashboard ---------- */
.members__signout { margin-top: 28px; }
.members { padding-block: clamp(48px, 6vw, 88px); background: var(--stucco); }
.members__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.members__card {
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.members__card .h3 { margin-bottom: 12px; }
.members__card p { color: var(--muted); font-size: 1.0625rem; }
.members__card--docs { grid-column: span 2; grid-row: span 2; align-self: start; }
.members__event-name { font-family: var(--font-display); font-weight: 600; color: var(--text) !important; margin-bottom: 6px; }
.doc-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.doc-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}
.doc-list a:hover .doc-list__name { text-decoration: underline; text-decoration-color: var(--gilt); text-underline-offset: 5px; }
.doc-list__name { font-family: var(--font-display); font-weight: 600; }
.doc-list__meta { color: var(--muted); white-space: nowrap; }
.members__note { margin-top: 28px; color: var(--muted); }
@media (max-width: 960px) {
  .members__grid { grid-template-columns: 1fr; }
  .members__card--docs { grid-column: auto; grid-row: auto; }
}

/* ---------- Root language chooser & 404 ---------- */
.root-choice .wrap { position: relative; }
.root-choice__logo { display: block; width: 168px; color: var(--on-dark); margin-bottom: clamp(40px, 6vw, 72px); }
.root-choice__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(16px, 2.4vw, 32px); max-width: 860px; }
.lang-choice {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark);
  text-decoration: none;
}
.lang-choice__name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; }
.lang-choice__claim { color: var(--on-dark-muted); }
.lang-choice:hover .lang-choice__name { color: var(--gilt); }
.notfound__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; max-width: 860px; }
.notfound__list p { color: var(--on-dark-muted); margin-bottom: 6px; }
.notfound__list .text-link { color: var(--on-dark); }
@media (max-width: 640px) {
  .root-choice__list, .notfound__list { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .nav__tools { flex-direction: column; align-items: flex-start; gap: 22px; width: 100%; padding-top: 24px; border-top: 1px solid var(--line-dark); }
  .lang-switch { margin-left: -12px; }
  .lang-switch__link { font-size: 1.0625rem; padding: 8px 12px; }
  .nav__members { font-size: 1.0625rem; }
}

/* ---------- Hero animation: video fallback (no JavaScript) + pause control ---------- */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  z-index: -2;
}
.hero__meta-list li.hero__toggle-item { margin-left: 0; }
.hero__toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -6px 0;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero__toggle:hover { color: var(--on-dark); border-color: var(--on-dark-muted); }
.hero__toggle[hidden] { display: none; }
.hero__toggle-icon { position: relative; width: 10px; height: 10px; }
.hero__toggle-icon::before,
.hero__toggle-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 10px;
  background: currentColor;
  border-radius: 1px;
}
.hero__toggle-icon::before { left: 1px; }
.hero__toggle-icon::after { right: 1px; }
.hero__toggle.is-paused .hero__toggle-icon::before {
  left: 2px;
  width: 0;
  height: 0;
  background: none;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}
.hero__toggle.is-paused .hero__toggle-icon::after { display: none; }
@media (max-width: 720px) {
  .hero__meta-list li.hero__toggle-item { margin-left: auto; }
}

/* small screens: the animation gets the top of the hero, the text follows below */
@media (max-width: 720px) {
  .hero__content { padding-top: max(calc(var(--header-h) + 64px), min(118vw, 52svh)); }
}
