:root {
  color-scheme: dark;
  --bg: #101114;
  --gutter: clamp(16px, 3vw, 42px);
  --slant: clamp(34px, 5vw, 76px);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  overflow: hidden;
}
a { color: inherit; }

.landing {
  min-height: 100svh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.055), transparent 58%),
    #101114;
  overflow: hidden;
}
.site-header, .site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}
.site-header { height: 88px; }
.site-footer {
  height: 58px;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}
.brand-mark { color: #d6ff54; font-size: 18px; }
.header-note {
  color: rgba(255,255,255,.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.panels {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  isolation: isolate;
  padding: 12px 0 22px;
}
.panel {
  --image: none;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 25px 38px;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  background: #292b30;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  margin-left: -1.3%;
  transition: flex .55s cubic-bezier(.2,.75,.25,1), filter .35s ease;
}
.panel:first-child { margin-left: 0; }
.panel::before, .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.panel::before {
  z-index: -2;
  background-image: var(--image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform .8s cubic-bezier(.2,.75,.25,1), filter .5s ease;
}
.panel::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 15%, rgba(0,0,0,.12) 42%, rgba(0,0,0,.78) 100%);
  transition: background .35s ease;
}
.panel:hover, .panel:focus-visible {
  flex: 1.28 1 0;
  z-index: 3;
  outline: none;
}
.panel:hover::before, .panel:focus-visible::before { transform: scale(1.13); }
.panels:has(.panel:hover) .panel:not(:hover) { filter: brightness(.72); }
.panel-content {
  width: 100%;
  transform: translateY(0);
  transition: transform .4s ease;
}
.panel-number {
  display: block;
  margin-bottom: 12px;
  color: #d6ff54;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}
.panel-title {
  display: block;
  max-width: 220px;
  font-size: clamp(19px, 2.05vw, 32px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.055em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.panel-description {
  display: block;
  margin-top: 11px;
  max-width: 190px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1.45;
}
.panel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  font-size: 15px;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.panel:hover .panel-arrow, .panel:focus-visible .panel-arrow {
  color: #101114;
  background: #d6ff54;
  border-color: #d6ff54;
  transform: translateX(4px);
}
.panel:focus-visible { outline: 2px solid #d6ff54; outline-offset: -5px; }

@media (max-width: 760px) {
  body { overflow: auto; }
  .landing { height: auto; min-height: 100svh; }
  .site-header { height: 70px; }
  .header-note { display: none; }
  .panels {
    min-height: 690px;
    flex-direction: column;
    gap: 7px;
    padding: 8px 0 18px;
  }
  .panel {
    flex: 1 1 0;
    min-height: 112px;
    margin: 0 !important;
    padding: 15px 25px 15px 32px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  }
  .panel:hover, .panel:focus-visible { flex: 1.35 1 0; }
  .panel-title { font-size: clamp(20px, 6vw, 27px); }
  .panel-description { display: none; }
  .panel-arrow { position: absolute; right: 42px; bottom: 22px; margin: 0; }
  .panel-number { margin-bottom: 7px; }
  .site-footer { height: 48px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
