/* Content-driven layout overrides.
   Kept separate so the main visual system stays untouched. */

:root {
  /* Official Leuphana website accent / jasper red. */
  --red: var(--red-dark);
  --red-dark: var(--red-deep);
  --red-soft: #fdf3f4;
}

.person-card h3,
.project-cols b,
.project-person small {
  color: var(--red);
}

.courses .course-filters {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: .6rem;
  max-width: 100%;
  padding: .25rem;
  overflow: visible;
}

.courses .course-filters button {
  --filter-color: #35434d;
  background: #fff;
  color: var(--filter-color);
  border: 1px solid var(--filter-color);
  border-radius: 999px;
  padding: .65rem 1.05rem;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.courses .course-filters button[data-course-filter="major"] { --filter-color: #235b83; }
.courses .course-filters button[data-course-filter="minor"] { --filter-color: #60695e; }
.courses .course-filters button[data-course-filter="master"] { --filter-color: var(--red); }
.courses .course-filters button:hover { background: #f0f2f3; }
.courses .course-filters button.active {
  background: var(--filter-color);
  color: #fff;
}
.courses .course-filters button:focus-visible {
  outline: 2px solid var(--filter-color);
  outline-offset: 3px;
}
@media (max-width: 1200px) {
  .courses .section-heading { flex-direction: column; gap: 1rem; }
}

.area-card.image-abstract {
  background-image: linear-gradient(120deg, #150813, var(--red-dark) 55%, var(--red));
}

/* Research hero: experimental laboratory with space for the headline. */
.page-hero.image-research {
  background-image: linear-gradient(90deg, rgba(3,10,17,.55), rgba(3,10,17,.15) 55%, rgba(3,10,17,.05)), url('../images/research/hero-lab.webp');
  background-position: center;
}

@media (max-width: 720px) {
  .page-hero.image-research {
    background-position: 65% center;
    background-image: linear-gradient(90deg, rgba(3,10,17,.85), rgba(3,10,17,.35)), url('../images/research/hero-lab.webp');
  }
}

/* Current research project tiles. */
.research-card {
  height: auto;
  min-height: 350px;
  padding-top: 5rem;
  gap: 1rem;
}

.research-card > .research-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .3s ease;
}

.research-card::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(3,14,22,.35), rgba(3,14,22,.45) 30%, rgba(3,14,22,.95));
}

.research-card > span { font-size: .8rem; letter-spacing: .08em; }
.research-card h3 { font-size: clamp(1.8rem, 3vw, 2.2rem); }
.research-card p { max-width: 30rem; color: #e3e8eb; }
.research-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.research-tags span { padding: .2rem .6rem; border: 1px solid #ffffff60; font-size: .7rem; border-radius: 2px; }
.research-card:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.research-card:hover > img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) {
  .research-card > .research-card-image { transition: none; }
  .research-card:hover > img { transform: none; }
}

/* Study page layout. */
[data-page="study"] .site-header {
  border-color: rgba(0, 0, 0, .14);
  color: #111;
}

[data-page="study"] .menu-toggle span {
  background: #111;
}

.study-hero {
  background: var(--paper);
  color: #111;
}

.study-hero .section-heading > p {
  color: #555d62;
}

.courses-section {
  color: #fff;
}

.courses-section .course-card {
  border-color: #41515b;
  background: rgba(255, 255, 255, .025);
}

.courses-section .course-card h3,
.courses-section .course-card a {
  color: #fff;
}

.courses-section .course-card p,
.courses-section .course-card > div {
  color: #b9c3c9;
}

.courses-section .course-card > a {
  border-color: #41515b;
}

.courses-section .course-card:hover {
  border-color: #71838e;
  background: rgba(255, 255, 255, .05);
}

.opportunities.light-section {
  background: var(--paper);
  color: #111;
}

.opportunities.light-section .section-heading > p {
  color: #666;
}

.opportunities.light-section .table,
.opportunities.light-section .table-row,
.opportunities.light-section .tabs {
  border-color: var(--line);
}

.opportunities.light-section .table-row:hover {
  background: #fff;
}

.opportunities.light-section .tabs {
  background: var(--white);
}

.opportunities.light-section .tabs button {
  color: #4a5258;
}

.opportunities.light-section .tabs button:hover {
  background: var(--paper);
  color: #111;
}

.opportunities.light-section .tabs button.active {
  background: var(--red);
  color: #fff;
}

.table-head,
.table-row {
  grid-template-columns: 2.2fr 1.35fr .8fr .8fr auto;
}

.table-research .table-head,
.table-research .table-row {
  grid-template-columns: 2.2fr 1.25fr .75fr .8fr auto;
}

.table-row.has-download {
  cursor: download;
}

.table-note {
  margin: 1rem 0 0;
  font-size: .95rem;
  opacity: .8;
}

.table:has(> .job-table-status) > .table-head {
  display: none;
}

.job-table-status {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem;
  color: #4a5258;
  font-size: .95rem;
  font-weight: 500;
  text-align: center;
}


.table-row.has-download:hover {
  background: var(--red-soft);
}

.download-action {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}

.download-action small {
  font-size: .58rem;
  letter-spacing: .08em;
}

/* Interlocking honeycomb. Explicit row/column coordinates prevent items from
   being reflowed unpredictably when content lengths differ. */
/* Wabenraster (pointy-top): benachbarte Zeilen ueberlappen sich um 1/4 der
   Wabenhoehe, der Zeilenabstand betraegt also 3/4 der Hoehe.

   Der Query-Container sitzt bewusst auf dem Wrapper und nicht auf dem Grid
   selbst: ein Element ist nie sein eigener Container: cqw wuerde sonst auf
   die Viewport-Breite zurueckfallen und die Zeilen auseinanderziehen. */
.hex-wrap {
  /* Regelmaessiges Sechseck: W/H = sqrt(3)/2. Nur bei diesem Verhaeltnis sind
     alle sechs Kanten gleich weit vom Mittelpunkt entfernt, wodurch das
     zentrische Schrumpfen unten ueberall exakt gleich breite Fugen ergibt. */
  --hex-ratio: .8660254;
  /* Fuge als Anteil der Wabenbreite. Sie entsteht durch Schrumpfen der Wabe,
     nicht durch einen Raster-Abstand: ein horizontaler Raster-Abstand wirkt
     an den senkrechten Kanten voll, an den schraegen aber nur mit seiner
     Senkrechtkomponente: die Fugen waeren dort rund 4x schmaler. */
  --hex-gap: .028;
  --hex-scale: calc(1 - var(--hex-gap));
  container-type: inline-size;
  max-width: 1200px;
  margin-inline: auto;
}

.hex-grid {
  /* Wabenbreite = 2 Spalten + 1 Spaltenabstand */
  --cols: 11;
  --col-gap: 0px;
  --hex-w: calc((100cqw - (var(--cols) - 1) * var(--col-gap)) / var(--cols) * 2 + var(--col-gap));
  --hex-pitch: calc(var(--hex-w) / var(--hex-ratio) * .75);
  --hex-overhang: calc(var(--hex-w) / var(--hex-ratio) * .25);

  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(3, var(--hex-pitch));
  gap: 0 var(--col-gap);
  padding: 2rem 0 var(--hex-overhang);
}

.hex {
  grid-column: var(--hex-col) / span 2;
  grid-row: var(--hex-row);
  width: 100%;
  aspect-ratio: var(--hex-ratio);
  align-self: start;

  /* Sechseck, zentrisch um --hex-scale verkleinert: jede Kante rueckt um
     denselben Betrag nach innen, die Fugen werden dadurch ueberall gleich. */
  --hex-x: calc(50% * var(--hex-scale));
  --hex-y: calc(50% * var(--hex-scale));
  --hex-q: calc(25% * var(--hex-scale));
  clip-path: polygon(
    50% calc(50% - var(--hex-y)),
    calc(50% + var(--hex-x)) calc(50% - var(--hex-q)),
    calc(50% + var(--hex-x)) calc(50% + var(--hex-q)),
    50% calc(50% + var(--hex-y)),
    calc(50% - var(--hex-x)) calc(50% + var(--hex-q)),
    calc(50% - var(--hex-x)) calc(50% - var(--hex-q))
  );
  padding: 18% 12%;
  transform: none !important;
}

.hex[data-course-select] span {
  font-size: 1.5rem;
}

.hex[data-course-select]:hover,
.hex[data-course-select]:focus-visible {
  position: relative;
  z-index: 2;
  transform: translateY(-8px) scale(1.025) !important;
}

.hex:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid currentColor;
  outline-offset: -12px;
}

.people-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.avatar {
  overflow: hidden;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-person .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animated "Ich will" carousel. The complete list moves as one track, while
   the fixed center rails make the active choice feel like it snaps into place. */
.intent-grid {
  grid-template-columns: .75fr 1.5fr auto 70px;
  gap: 1.5rem;
}

/* "Ich will" now stands alone in its column — centre it against the carousel. */
.intent-grid > div:first-child {
  justify-content: center;
}

.intent-carousel {
  display: grid;
  grid-template-rows: 26px 200px 26px;
  align-items: center;
  min-width: 0;
}

.word-viewport {
  position: relative;
  height: 200px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}

.word-track {
  position: absolute;
  inset: 0 0 auto;
  transform: translate3d(0, var(--track-offset, 13px), 0);
  transition: transform 650ms cubic-bezier(.22, .8, .24, 1);
  will-change: transform;
}

.word-track.no-transition {
  transition: none;
}

.word-slide {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: center;
  color: #9aa6ad;
  font: 400 clamp(1.3rem, 2.2vw, 1.95rem)/1 var(--serif);
  opacity: .28;
  transform: scale(.86);
  transition: opacity 500ms ease, transform 500ms ease, color 500ms ease;
  white-space: nowrap;
}

.word-slide.is-active {
  color: #fff;
  opacity: 1;
  transform: scale(1.35);
}

.word-highlight {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 6%;
  left: 6%;
  height: 58px;
  transform: translateY(-50%);
  border-block: 1px solid var(--red);
  pointer-events: none;
}

.word-control {
  position: relative;
  z-index: 3;
  justify-self: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #82919a;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.word-control:hover,
.word-control:focus-visible {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.intent-index {
  position: relative;
  display: flex;
  min-height: 200px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.intent-index button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid #82919a;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .25s, border-color .25s, background .25s;
}

.intent-index button:hover { transform: scale(1.35); }
.intent-index button.active {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(123, 14, 48, .16);
}

@media (prefers-reduced-motion: reduce) {
  .word-track,
  .word-slide {
    transition-duration: 1ms;
  }
}

@media (min-width: 721px) and (max-width: 1000px) {
  .table-head,
  .table-row {
    grid-template-columns: 2fr 1fr .8fr auto;
  }

  .table-head span:nth-child(3),
  .table-row span:nth-child(3) {
    display: none;
  }

  .table-head span:nth-child(4),
  .table-row span:nth-child(4) {
    display: block;
  }

  .table-research .table-head,
  .table-research .table-row {
    grid-template-columns: 2fr 1fr .8fr .8fr auto;
  }

  .table-research .table-head span:nth-child(3),
  .table-research .table-row span:nth-child(3) {
    display: block;
  }
}

@media (max-width: 720px) {
  .people-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  }

  [data-page="study"] .main-nav {
    color: #fff;
  }

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

  .intent-grid > div:first-child,
  .intent-grid > .circle-link {
    grid-column: 1 / -1;
  }

  .intent-carousel {
    grid-column: 1;
  }

  .intent-index {
    grid-column: 2;
    grid-row: 2;
    min-height: 170px;
  }

  .word-slide.is-active {
    transform: scale(1.08);
  }

  .hex-grid {
    --cols: 5;
    grid-template-rows: repeat(8, var(--hex-pitch));
    padding: 1.5rem 0 var(--hex-overhang);
  }

  .hex {
    grid-column: var(--hex-col-mobile) / span 2;
    grid-row: var(--hex-row-mobile);
    font-size: clamp(.66rem, 2.6vw, .82rem);
  }
}

@media (max-width: 460px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared light surfaces across overview, research, industry and study.
   Dark tones belong to photography; content uses paper, white and warm gray. */
:root {
  --paper: #fafaf9;
  --surface-muted: #f0efec;
  --line: #e1e2e3;
  --muted: #555d62;
}

.site-header {
  position: sticky;
  background: var(--white);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.site-header .brand span,
.footer-brand span { color: #42484c; }

/* Wordmark typeface.
   Space Grotesk — a modern geometric grotesque that signals the AI-first
   positioning. To fall back to the DM Serif Display version, set
   --wordmark-font: var(--serif) and --wordmark-tracking: 0 below. */
:root {
  --wordmark-font: 'Space Grotesk', var(--sans);
  --wordmark-weight: 500;
  --wordmark-tracking: -0.02em;
}

.site-header .brand strong,
.footer-brand strong {
  font-family: var(--wordmark-font);
  font-weight: var(--wordmark-weight);
  text-transform: none;
  letter-spacing: var(--wordmark-tracking);
  line-height: 1;
}

.site-header .brand strong { font-size: 1.5rem; }
.footer-brand strong { font-size: 1.25rem; }
.site-header .button { color: var(--red); border-radius: 4px; }
.site-header .button:hover { color: #fff; }
.menu-toggle span { background: var(--ink); }
.page-hero-inner { padding-top: 0; }
.study-hero { padding-top: 4rem; }

.site-footer {
  background: var(--white);
  color: #343b40;
  border-top: 1px solid var(--line);
}
.footer-grid > div,
.footer-base { border-color: var(--line); }

.intent-section {
  background: var(--surface-muted);
  color: var(--ink);
}
.intent-grid > div:first-child,
.intent-index { border-color: #d5d4d1; }
.word-slide { color: #526778; opacity: .7; }
.word-slide.is-active { color: var(--red); }
.word-control { color: #555d62; }
.word-control:hover,
.word-control:focus-visible { background: #e2e0dd; color: var(--red); }
.circle-link { color: var(--red); }
.person-card { background: var(--white); }

.research-grid-wrap.dark-section,
.courses-section.dark-section {
  background: var(--paper);
  color: var(--ink);
}
.research-grid-wrap { padding-top: 2rem; }
.research-card {
  color: #fff;
  background: var(--ink);
  border-color: var(--line);
  border-radius: 8px;
}
.research-card:focus-visible { outline-color: var(--red); }

.contact-band,
.contact-band-dark {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  border-radius: 6px;
}
.contact-band p,
.contact-band-dark p { color: var(--muted); }
.contact-band-dark .contact-icon { color: var(--red); background: var(--red-soft); }

.learning-section { background: var(--surface-muted); color: var(--ink); }
.learning-copy > p,
.feature-grid p { color: var(--muted); }
.feature-grid > div { border-color: #d5d4d1; }
.learning-copy .button { color: var(--red); }
.learning-copy .button:hover { color: #fff; }

.image-production-planning { background-image: url('../images/industry/production-planning.webp'); }
.image-remanufacturing-twin { background-image: url('../images/industry/remanufacturing-twin.webp'); }
.courses-section { border-top: 1px solid var(--line); }
.courses-section .course-card {
  background: var(--white);
  border-color: var(--line);
  border-radius: 6px;
}
.courses-section .course-card h3 { color: var(--ink); }
.courses-section .course-card p,
.courses-section .course-card > div { color: #42484c; }
.courses-section .course-card > a { border-color: var(--line); color: #235b83; }
.courses-section .course-minor > a { color: #6d7777; }
.courses-section .course-card { --course-color: #235b83; --course-tint: #edf3f8; }
.courses-section .course-minor { --course-color: #6d7777; --course-tint: #eef0ef; }
.courses-section .course-master { --course-color: var(--red); --course-tint: var(--red-soft); }
.courses-section .course-major.course-minor {
  --course-color: #235b83;
  --course-tint: linear-gradient(90deg, #edf3f8 0 50%, #eef0ef 50% 100%);
}
.course-level {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--course-color);
  font-size: .75rem;
  font-weight: 600;
}
.courses-section .course-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: var(--course-tint);
  color: var(--course-color);
}
.course-icon svg { width: 24px; height: 24px; }
.courses-section .course-master > a { color: var(--red); }
.courses-section .course-card:hover { background: #f5f6f6; border-color: #aab5bd; }

.hex-neutral small { margin-top: .4rem; font-size: .65rem; font-weight: 400; }
.courses-section .course-card { position: relative; }
.course-open {
  margin-top: 1rem;
  padding: .85rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--course-color);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.course-open::after { content: ''; position: absolute; inset: 0; border-radius: 6px; }
.course-open:focus-visible { outline: none; }
.course-open:focus-visible::after { outline: 3px solid var(--course-color); outline-offset: 3px; }
.course-dialog-open { overflow: hidden; }
.jobs-panel-heading { display: none; }
.course-page { padding-top: 9rem; max-width: 980px; }
.course-page h1 { font: 400 clamp(2rem, 5vw, 3.5rem)/1.15 var(--serif); overflow-wrap: anywhere; }
.course-page article > p { line-height: 1.7; }
.course-page article h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.course-page article h3 { font-size: 1.2rem; margin: 2rem 0 .8rem; }
.course-page article h4 { font-size: 1rem; margin: 1.5rem 0 .5rem; color: var(--red-dark); }
.breadcrumbs { font-size: .85rem; margin-bottom: 2rem; }
.breadcrumbs a, .related-courses a { text-decoration: underline; text-underline-offset: .2em; }
.related-courses { margin-top: 3rem; }
.related-courses ul { display: flex; flex-wrap: wrap; gap: .75rem 2rem; padding-left: 1.2rem; }
/* The project tile is a grid cell that used to be a background-image div.
   The <img> carries width/height attributes for CLS, so the height has to be
   reset here - otherwise the presentational 1024px blows the row open. */
.project-image { width: 100%; height: 100%; min-height: 260px; object-fit: cover; align-self: stretch; }
.projects > h2 { hyphens: auto; overflow-wrap: break-word; }
.course-dialog {
  width: min(720px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  overflow-y: auto;
}
.course-dialog::backdrop { background: rgb(6 19 29 / 65%); }
.course-dialog-close {
  display: block;
  margin-left: auto;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.course-dialog h2 { font: 400 clamp(1.65rem, 5vw, 2.5rem)/1.15 var(--serif); overflow-wrap: anywhere; }
.course-dialog p { line-height: 1.65; }
.course-facts { margin-block: 1.5rem; }
.course-facts > div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 1rem; padding-block: .75rem; border-top: 1px solid var(--line); }
.course-facts dt { font-weight: 600; }
.course-facts dd { margin: 0; overflow-wrap: anywhere; }
.course-detail-note { background: var(--paper); padding: 1rem; border-left: 3px solid var(--red); }
.course-source-note { font-size: .75rem; color: #63686c; margin-top: 1.5rem; }
.table-thesis .table-head,
.table-thesis .table-row { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
@media (min-width: 721px) {
  .table-thesis .table-head > span,
  .table-thesis .table-row > span { display: block; }
}
@media (max-width: 720px) {
  .table-thesis .table-row { grid-template-columns: minmax(0, 1fr) 42px; }
}
.courses-section .courses { padding-bottom: 1.5rem; }
.courses > .course-source-note { margin-bottom: 0; }
[data-page="study"] .opportunities > .section { padding-top: 1.5rem; }
@media (max-width: 460px) {
  .course-facts > div { grid-template-columns: 1fr; gap: .25rem; }
}

.table { background: var(--white); }
.table-row:hover,
.opportunities.light-section .table-row:hover { background: #f1f3f4; }
.tabs,
.opportunities.light-section .tabs { background: var(--white); border: 1px solid var(--line); }
.tabs button,
.opportunities.light-section .tabs button { color: #4a5258; }
.tabs button:hover,
.opportunities.light-section .tabs button:hover { background: var(--paper); color: #111; }
.tabs button.active,
.opportunities.light-section .tabs button.active {
  background: var(--red);
  color: #fff;
  font-weight: 600;
}
.tabs button.active .tab-count,
.opportunities.light-section .tabs button.active .tab-count { opacity: 1; }

@media (max-width: 720px) {
  .main-nav,
  [data-page="study"] .main-nav {
    background: var(--white);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .study-hero { padding-top: 2.5rem; }
  .project-row { grid-template-columns: 32px minmax(0, 1fr); }
  .project-copy,
  .project-person { min-width: 0; overflow-wrap: anywhere; }
  .courses .section-heading h2 { overflow-wrap: anywhere; }
  .site-header .brand strong { font-size: 1.18rem; }
}

/* ---------------------------------------------------------------------------
   Partner marquee.
   Two identical <ul> tracks scroll left in lock-step; each shifts by 100 % of
   its own width, so the trailing track lands exactly where the leading one
   started — an endless loop with no visible seam. Hover pauses it; reduced
   motion turns it into a centred static wrap.
   Shows company names as wordmarks; logos are pending permission.
   --------------------------------------------------------------------------- */
.partners { overflow: hidden; }

.logo-marquee {
  --logo-gap: 4.5rem;
  display: flex;
  margin-top: 1.75rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.logo-track {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  margin: 0;
  padding: 0 var(--logo-gap) 0 0;
  list-style: none;
  animation: logo-marquee 44s linear infinite;
}

.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
  animation-play-state: paused;
}

.logo-item {
  flex: none;
  display: flex;
  align-items: center;
}

/* Wordmarks stand in for the logos until we have the companies' permission. */
.logo-item span {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
  color: #6a7178;
  transition: color .25s ease;
}

.logo-item:hover span {
  color: var(--ink);
}

@keyframes logo-marquee {
  to { transform: translateX(-100%); }
}

@media (max-width: 720px) {
  .logo-marquee { --logo-gap: 3rem; }
  .logo-item span { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .partners { overflow: visible; }
  .logo-marquee {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .logo-track {
    /* Override the base flex:none so the row fills the marquee and wraps
       instead of overflowing it on one line. */
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 3rem;
    padding: 0;
    animation: none;
  }
  .logo-track[aria-hidden="true"] { display: none; }
}
/* Daylight hero on the homepage. */
body[data-page="overview"] .page-hero {
  background-color: #edf1f2;
  background-image: linear-gradient(90deg, rgba(247,249,250,.96) 0%, rgba(247,249,250,.82) 35%, rgba(247,249,250,.08) 73%), url('../images/hero-factory-daylight.webp');
  color: var(--ink);
}

body[data-page="overview"] .page-hero p {
  color: #344550;
}

body[data-page="overview"] .site-header {
  color: var(--ink);
  background: #fff;
  border-bottom-color: rgba(6,19,29,.12);
}

body[data-page="overview"] .site-header .brand span,
body[data-page="overview"] .play-button {
  color: var(--ink);
}

body[data-page="overview"] .menu-toggle span {
  background: var(--ink);
}

@media (max-width: 720px) {
  body[data-page="overview"] .main-nav {
    background: #fff;
  }

  body[data-page="overview"] .page-hero {
    background-image: linear-gradient(90deg, rgba(247,249,250,.94), rgba(247,249,250,.66)), url('../images/hero-factory-daylight.webp');
  }
}

.person-card { position: relative; }
.person-card .person-profile-link {
  display: inline;
  color: inherit;
  font: inherit;
  margin: 0;
}
.person-profile-link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.person-profile-link:focus-visible::after {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.person-card > a[href^="mailto:"] {
  position: relative;
  z-index: 1;
}

