@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;800&display=swap");

:root {
  --black: #050505;
  --ink: #171717;
  --muted: #626262;
  --line: #d8d8d8;
  --paper: #ffffff;
  --soft: #f4f4f4;
  --accent: #b51217;
  --max: 1060px;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  line-height: 1.55;
  color: var(--ink);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #050505 url("../images/event-bg.jpg") center top / 1530px auto repeat-y;
  border-bottom: 1px solid #222;
}

.header-inner {
  width: min(1920px, calc(100% - 52px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo img {
  width: 300px;
  max-height: 62px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #cfcfcf;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #3b3b3b;
  background: #111;
  color: #fff;
  font-size: 24px;
}

.hero {
  min-height: min(650px, calc(100vh - 92px));
  display: grid;
  align-items: end;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .02) 48%, rgba(0, 0, 0, .22) 100%), var(--hero-image) center / cover no-repeat;
}

.hero-content {
  width: min(100%, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 28px;
}

.hero h1,
.hero .hero-title {
  margin: 0;
  font-size: clamp(54px, 6.1vw, 92px);
  line-height: .95;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .36);
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 3vw, 44px);
  font-weight: 700;
}

.hero p {
  max-width: 720px;
  margin: 10px 0 18px;
  font-size: 15px;
  color: #e5e5e5;
}

.hero h1 {
  margin: 18px 0 0 180px;
  max-width: 860px;
  font-size: clamp(22px, 2vw, 36px);
  font-weight: 400;
}

.hero .button-row {
  margin-top: 6px;
}

.home-page {
  color: #fff;
  background: #050505 url("../images/event-bg.jpg") center top / 1530px auto repeat-y;
}

.home-contact-strip {
  padding: 28px 0 30px;
  color: #fff;
  text-align: center;
  background: #050505 url("../images/event-bg.jpg") center top / 1530px auto repeat-y;
  border-top: 20px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.home-contact-strip .container {
  font-size: clamp(13px, 1.1vw, 18px);
  font-weight: 500;
  letter-spacing: 5px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-contact-strip a {
  color: #fff;
  text-decoration: none;
}

.home-contact-strip span {
  margin: 0 8px;
  color: rgba(255, 255, 255, .75);
}

.home-image-band {
  padding: 0 0 88px;
  background: #050505 url("../images/event-bg.jpg") center top / 1530px auto repeat-y;
}

.home-feature-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(700px, calc(100% - 36px));
  gap: 0;
}

.home-feature-images img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
}

.home-workshop,
.home-offer {
  color: #f5f5f5;
  background: #101010 url("../carcrew-media/Wabenstruktur_edited.jpg") center / cover fixed;
}

.home-workshop {
  padding-top: 86px;
  text-align: center;
}

.home-workshop .container,
.home-offer .container {
  width: min(1360px, calc(100% - 56px));
}

.home-workshop h2,
.home-offer h2 {
  color: #fff;
  font-size: clamp(34px, 3.9vw, 58px);
  font-weight: 800;
  text-align: center;
}

.home-workshop p {
  max-width: 1160px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(18px, 1.4vw, 26px);
}

.home-workshop .button-row {
  justify-content: center;
  margin-top: 56px;
  gap: 104px;
}

.home-workshop .btn,
.home-offer .btn {
  min-width: 250px;
  background: rgba(235, 235, 235, .86);
  color: #242424;
  border: 2px solid rgba(255, 255, 255, .55);
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: none;
}

.home-offer {
  padding-top: 82px;
}

.home-offer .services {
  margin-top: 64px;
  border: 0;
}

.home-offer .service {
  min-height: 300px;
  padding: 0 52px;
  border: 0;
}

.home-offer .service h3 {
  color: #fff;
  font-size: clamp(22px, 1.8vw, 31px);
  font-weight: 500;
}

.home-offer .service p {
  color: #f0f0f0;
  font-size: clamp(17px, 1.35vw, 25px);
  font-style: italic;
  line-height: 1.75;
}

.about-video-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 92px));
  overflow: hidden;
  background: #050505;
}

.about-video-hero video {
  width: 100%;
  height: min(720px, calc(100vh - 92px));
  min-height: 460px;
  object-fit: cover;
}

.about-video-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .08) 46%, rgba(0, 0, 0, .48));
  pointer-events: none;
}

.about-video-caption {
  position: absolute;
  left: max(28px, calc((100vw - var(--max)) / 2));
  bottom: 46px;
  z-index: 1;
  color: #fff;
}

.about-video-caption h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  text-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}

.map-section {
  padding: 74px 0 92px;
  background: #050505 url("../images/event-bg.jpg") center top / 1530px auto repeat-y;
}

.map-section .container {
  width: min(1680px, calc(100% - 72px));
}

.map-section iframe {
  display: block;
  width: 100%;
  height: clamp(360px, 38vw, 540px);
  border: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}

.btn.light {
  border-color: #fff;
  background: transparent;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.section {
  padding: 72px 0;
}

.section.tight {
  padding: 46px 0;
}

.section.dark {
  background: #050505;
  color: #fff;
}

.section.soft {
  background: var(--soft);
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
  gap: 52px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, .92fr) minmax(0, 1fr);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  line-height: 1.16;
  margin: 0 0 18px;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 62px);
}

h2 {
  font-size: clamp(26px, 3.5vw, 42px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 700;
}

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

.wide-image {
  width: 100%;
  min-height: 330px;
  object-fit: cover;
}

.story-video {
  display: block;
  width: 100%;
  max-height: 620px;
  background: #050505;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.gallery-mosaic img:nth-child(1),
.gallery-mosaic img:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 394px;
}

.gallery-mosaic.compact img {
  min-height: 160px;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service {
  min-height: 240px;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
}

.service:last-child {
  border-right: 0;
}

.service h3 {
  text-transform: uppercase;
  font-size: 20px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-details {
  font-size: 17px;
}

.contact-details strong {
  display: block;
  margin: 22px 0 6px;
}

.form-grid {
  display: grid;
  gap: 15px;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #9a9a9a;
  border-radius: 0;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-message {
  margin: 8px 0 0;
  color: #206b2f;
}

.page-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 118px 0 74px;
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .28)), var(--hero-image) center / cover no-repeat;
}

.page-hero .container {
  width: min(var(--max), calc(100% - 36px));
}

.content {
  max-width: 830px;
}

.story-block {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.story-block h3 {
  text-transform: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
}

.member {
  text-align: center;
}

.member img {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
}

.member h3 {
  margin-bottom: 6px;
}

.member .role {
  margin-bottom: 10px;
  font-weight: 700;
}

.team-page {
  background: #050505 url("../images/event-bg.jpg") center top / 1530px auto repeat-y;
}

.team-intro {
  padding: 18px 0 0;
  background: #050505 url("../images/event-bg.jpg") center top / 1530px auto repeat-y;
}

.team-intro .content {
  width: min(100%, 1920px);
  max-width: none;
  padding: 30px min(14vw, 300px) 34px;
  color: #050505;
  background-color: rgba(215, 215, 215, .66);
  background-image: linear-gradient(rgba(225, 225, 225, .5), rgba(225, 225, 225, .5)), url("../images/event-bg.jpg");
  background-size: auto, 960px auto;
  background-position: center, center;
  background-blend-mode: normal, screen;
}

.team-intro h1 {
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
}

.team-intro p {
  max-width: 1420px;
  margin: 0 auto 11px;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.45;
}

.team-intro p:last-child {
  margin-bottom: 0;
}

.team-showcase {
  position: relative;
  padding: 76px 0 170px;
  background: #050505 url("../images/event-bg.jpg") center top / 1530px auto repeat-y;
}

.team-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .42));
  pointer-events: none;
}

.team-cards {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(2048px, calc(100% - 48px));
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 230px 58px;
  align-items: start;
}

.team-hover-card {
  position: relative;
  width: 100%;
  min-height: 405px;
  margin: 0;
  outline: none;
  transition: min-height .28s ease;
}

.team-info-panel {
  position: absolute;
  top: 154px;
  right: 0;
  left: 38px;
  bottom: auto;
  width: auto;
  min-height: 286px;
  padding: 34px 30px 42px;
  color: #000;
  background-color: rgba(218, 218, 218, .55);
  background-image: linear-gradient(rgba(226, 226, 226, .38), rgba(226, 226, 226, .38)), url("../images/event-bg.jpg");
  background-size: auto, 720px auto;
  background-position: center, center;
  background-blend-mode: normal, screen;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
  overflow: visible;
  transition: inset .28s ease, min-height .28s ease, padding .28s ease, box-shadow .28s ease;
}

.team-info-panel h3 {
  margin: 0 0 4px 172px;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  max-width: calc(100% - 184px);
  font-size: clamp(20px, 1.08vw, 24px);
  font-weight: 800;
  line-height: 1.08;
  white-space: normal;
  transition: transform .28s ease;
}

.team-info-panel .role {
  margin: 0 0 4px 172px;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  max-width: calc(100% - 184px);
  font-size: clamp(15px, .82vw, 18px);
  font-weight: 500;
  transition: transform .28s ease;
}

.team-info-panel .qual {
  margin: 0 0 0 172px;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  max-width: calc(100% - 184px);
  font-size: clamp(13px, .72vw, 16px);
  font-style: italic;
  line-height: 1.45;
  transition: transform .28s ease;
}

.team-info-panel .bio {
  max-width: none;
  margin: 52px 0 0;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-size: clamp(14px, .76vw, 17px);
  line-height: 1.45;
  transition: transform .28s ease;
}

.team-portrait {
  position: absolute;
  left: 0;
  top: 72px;
  z-index: 4;
  width: 184px;
  height: 184px;
  object-fit: cover;
  background: #000;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .48);
  transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease, filter .28s ease;
}

.team-action-carousel {
  position: absolute;
  top: -10px;
  right: 10px;
  z-index: 3;
  width: min(430px, 67%);
  aspect-ratio: 1.55;
  height: auto;
  background: #e8e8e8;
  box-shadow: 0 7px 14px rgba(0, 0, 0, .36);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(.985);
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
  overflow: hidden;
  pointer-events: none;
}

.team-action-carousel img {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  max-width: none;
  object-fit: cover;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transform: translateX(24px);
}

.team-action-carousel img:first-child {
  opacity: 1;
  clip-path: inset(0);
  transform: translateX(0);
}

.team-action-carousel img:nth-child(2) {
  animation-delay: 3s;
}

.team-action-carousel img:nth-child(3) {
  animation-delay: 6s;
}

.team-action-carousel img:nth-child(4) {
  animation-delay: 9s;
}

@keyframes teamSwipe {
  0% {
    opacity: 1;
    clip-path: inset(0);
    transform: translateX(0);
  }

  23% {
    opacity: 1;
    clip-path: inset(0);
    transform: translateX(0);
  }

  31%,
  100% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-26px);
  }
}

.team-hover-card:hover,
.team-hover-card:focus,
.team-hover-card.is-active {
  z-index: 6;
  min-height: 405px;
}

.team-hover-card:hover .team-action-carousel,
.team-hover-card:focus .team-action-carousel,
.team-hover-card.is-active .team-action-carousel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.team-hover-card:hover .team-portrait,
.team-hover-card:focus .team-portrait,
.team-hover-card.is-active .team-portrait {
  left: -18px;
  top: 92px;
  width: 184px;
  height: 184px;
  filter: contrast(1.05);
}

.team-hover-card:hover .team-info-panel,
.team-hover-card:focus .team-info-panel,
.team-hover-card.is-active .team-info-panel {
  top: 154px;
  left: 38px;
  min-height: 286px;
  padding: 34px 30px 42px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, .28);
}

.team-hover-card:hover .team-info-panel h3,
.team-hover-card:focus .team-info-panel h3,
.team-hover-card.is-active .team-info-panel h3 {
  margin-left: 172px;
  font-size: clamp(20px, 1.08vw, 24px);
  transform: translateY(10px);
}

.team-hover-card:hover .team-info-panel .role,
.team-hover-card:focus .team-info-panel .role,
.team-hover-card.is-active .team-info-panel .role {
  margin-left: 172px;
  font-size: clamp(15px, .82vw, 18px);
  transform: translateY(10px);
}

.team-hover-card:hover .team-info-panel .qual,
.team-hover-card:focus .team-info-panel .qual,
.team-hover-card.is-active .team-info-panel .qual {
  margin-left: 172px;
  margin-bottom: 0;
  font-size: clamp(13px, .72vw, 16px);
  transform: translateY(10px);
}

.team-hover-card:hover .team-info-panel .bio,
.team-hover-card:focus .team-info-panel .bio,
.team-hover-card.is-active .team-info-panel .bio {
  max-width: none;
  font-size: clamp(14px, .76vw, 17px);
  transform: translateY(10px);
}

.team-hover-card:hover .team-action-carousel img,
.team-hover-card:focus .team-action-carousel img,
.team-hover-card.is-active .team-action-carousel img {
  animation-name: teamSwipe;
  animation-duration: 12s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: none;
}

.articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.article-card {
  border: 1px solid var(--line);
  background: #fff;
}

.article-card img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
}

.article-card div {
  padding: 26px;
}

.article-card h3 {
  min-height: 58px;
  text-transform: none;
}

.article-body {
  max-width: 850px;
  margin: 0 auto;
}

.article-body figure {
  margin: 34px 0;
}

.article-body figure img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 36px;
}

.feature-list {
  display: grid;
  gap: 22px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 20px 0 20px 28px;
  border-left: 4px solid var(--accent);
}

.spec-table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.event-frame {
  min-height: 760px;
  padding: 70px 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: #070707 url("../images/event-bg.jpg") center / cover repeat;
  color: #fff;
}

.event-frame .panel {
  width: min(780px, calc(100% - 36px));
  padding: 42px;
  background: rgba(0, 0, 0, .72);
  border: 1px solid rgba(255, 255, 255, .22);
}

.quiz-steps,
.quiz-questions {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.quiz-steps li {
  margin: 8px 0;
  font-size: clamp(19px, 2.4vw, 30px);
  font-weight: 700;
}

.quiz-question {
  margin-top: 42px;
}

.quiz-question h2 {
  font-size: clamp(32px, 5vw, 50px);
}

.audio-card {
  width: min(420px, 100%);
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
  text-align: left;
  color: #111;
  background: #fff;
  padding: 12px;
}

.audio-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.audio-title {
  margin: 0 0 4px;
  font-weight: 700;
}

.audio-meta,
.audio-time {
  margin: 0;
  color: #555;
  font-size: 13px;
}

.site-footer {
  padding: 30px 0;
  background: #050505;
  color: #fff;
  text-align: center;
  font-size: 13px;
}

.social {
  display: inline-flex;
  gap: 14px;
  margin-top: 10px;
}

.social img {
  width: 28px;
  height: 28px;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    padding: 20px 28px 26px;
    background: #050505;
    border-top: 1px solid #252525;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 560px;
  }

  .split,
  .split.reverse,
  .contact-band,
  .story-block {
    grid-template-columns: 1fr;
  }

  .services,
  .team-grid,
  .articles,
  .image-grid,
  .gallery-mosaic {
    grid-template-columns: 1fr;
  }

  .gallery-mosaic img:nth-child(1),
  .gallery-mosaic img:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
  }

  .team-showcase {
    padding: 58px 0 92px;
    background-size: 960px auto;
  }

  .team-cards {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 94px;
  }

  .team-hover-card {
    min-height: 0;
    display: block;
  }

  .team-hover-card:hover,
  .team-hover-card:focus,
  .team-hover-card.is-active {
    grid-column: auto;
    min-height: 0;
  }

  .team-action-carousel,
  .team-portrait,
  .team-info-panel {
    position: relative;
    inset: auto;
  }

  .team-action-carousel,
  .team-hover-card:hover .team-action-carousel,
  .team-hover-card:focus .team-action-carousel,
  .team-hover-card.is-active .team-action-carousel {
    z-index: 1;
    width: min(58%, 430px);
    margin-left: auto;
    margin-right: 34px;
    height: auto;
    aspect-ratio: 1.58;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .team-action-carousel img {
    animation-name: teamSwipe;
    animation-duration: 12s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
  }

  .team-portrait {
    z-index: 3;
    width: min(280px, 38vw);
    height: auto;
    aspect-ratio: 1;
    margin-top: -54px;
    margin-left: 34px;
  }

  .team-hover-card:hover .team-portrait,
  .team-hover-card:focus .team-portrait,
  .team-hover-card.is-active .team-portrait {
    left: auto;
    top: auto;
    width: min(280px, 38vw);
    height: auto;
    aspect-ratio: 1;
    filter: none;
  }

  .team-info-panel {
    z-index: 2;
    display: block;
    width: calc(100% - 68px);
    min-height: 0;
    margin-top: -44px;
    margin-left: 34px;
    padding: 82px 38px 58px;
  }

  .team-hover-card:hover .team-info-panel,
  .team-hover-card:focus .team-info-panel,
  .team-hover-card.is-active .team-info-panel {
    inset: auto;
    min-height: 0;
    padding: 82px 38px 58px;
  }

  .team-info-panel h3,
  .team-hover-card:hover .team-info-panel h3,
  .team-hover-card:focus .team-info-panel h3,
  .team-hover-card.is-active .team-info-panel h3 {
    margin-left: 0;
    white-space: normal;
    max-width: none;
    font-size: clamp(28px, 5.5vw, 38px);
    transform: none;
  }

  .team-info-panel .role {
    margin-bottom: 10px;
  }

  .team-info-panel .role,
  .team-hover-card:hover .team-info-panel .role,
  .team-hover-card:focus .team-info-panel .role,
  .team-hover-card.is-active .team-info-panel .role {
    margin-left: 0;
    max-width: none;
    font-size: clamp(22px, 4.7vw, 32px);
    transform: none;
  }

  .team-info-panel .qual,
  .team-hover-card:hover .team-info-panel .qual,
  .team-hover-card:focus .team-info-panel .qual,
  .team-hover-card.is-active .team-info-panel .qual {
    margin-left: 0;
    margin-bottom: 42px;
    max-width: none;
    font-size: clamp(20px, 4.5vw, 31px);
    transform: none;
  }

  .team-info-panel .bio,
  .team-hover-card:hover .team-info-panel .bio,
  .team-hover-card:focus .team-info-panel .bio,
  .team-hover-card.is-active .team-info-panel .bio {
    font-size: clamp(20px, 4.5vw, 31px);
    transform: none;
  }

  .service {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .logo img {
    width: 210px;
  }

  .section {
    padding: 52px 0;
  }

  .hero-content {
    padding: 86px 0 70px;
  }

  .page-hero {
    min-height: 360px;
    padding: 92px 0 54px;
  }

  .wide-image {
    min-height: 240px;
  }
}
