* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink-700);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  height: 100dvh;
  padding: 40px 56px;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink-700);
}

.stage__mark {
  position: absolute;
  right: -12vmin;
  bottom: -18vmin;
  width: 62vmin;
  min-width: 360px;
  max-width: 720px;
  pointer-events: none;
  user-select: none;
  opacity: 0.05;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  min-height: 30px;
}

.top__logo {
  width: 120px;
  height: auto;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
}

.hero__h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 78px;
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  line-height: 1.02;
  text-wrap: balance;
}

.hero__h1 span {
  color: var(--clay-500);
}

.hero__sub {
  max-width: 42ch;
  margin: 0;
  color: var(--ink-600);
  font-size: 21px;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 4px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--clay-500);
  box-shadow: var(--shadow-md);
  color: var(--text-on-clay);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--clay-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.hero__cta:active {
  transform: translateY(0) scale(0.99);
}

.hero__cta svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quotes {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: none;
  gap: 22px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.quote__mark {
  height: 18px;
  color: var(--clay-400);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 0.6;
  opacity: 0.85;
}

.quote__text {
  margin: 0;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.quote__by {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.quote__avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 1px solid var(--clay-200);
  border-radius: 50%;
  background: var(--clay-50);
}

.quote__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quote__role {
  color: var(--ink-900);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  white-space: nowrap;
}

.quote__role span {
  color: var(--ink-400);
  font-size: inherit;
  font-weight: var(--weight-regular);
}

.fade {
  opacity: 0;
  transform: translateY(8px);
  animation: fadein var(--dur-slow) var(--ease-out) forwards;
}

.d1 {
  animation-delay: 0.04s;
}

.d2 {
  animation-delay: 0.12s;
}

.d3 {
  animation-delay: 0.2s;
}

.d4 {
  animation-delay: 0.3s;
}

.d5 {
  animation-delay: 0.38s;
}

@keyframes fadein {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .stage {
    padding: 32px 34px;
  }

  .hero__h1 {
    font-size: 64px;
  }

  .hero__sub {
    font-size: 19px;
  }

  .quote {
    padding: 20px 22px;
  }

  .quote__text {
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  .stage {
    min-height: 540px;
    padding: 22px 20px;
  }

  .top__logo {
    width: 106px;
  }

  .hero {
    gap: 18px;
  }

  .hero__h1 {
    font-size: 44px;
  }

  .hero__sub {
    max-width: 34ch;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero__cta {
    min-height: 48px;
    padding: 0 24px;
  }

  .quotes {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 520px;
  }

  .quote {
    gap: 8px;
    padding: 13px 16px;
    border-radius: 16px;
  }

  .quote__mark {
    height: 10px;
    font-size: 24px;
  }

  .quote__text {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .quote__avatar {
    width: 26px;
    height: 26px;
  }

  .quote__role {
    font-size: 12px;
  }

  .quote__role span {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .stage {
    padding: 18px 16px;
  }

  .hero__h1 {
    font-size: 40px;
  }

  .hero__sub {
    font-size: 15.5px;
  }
}

@media (max-height: 740px) {
  .stage {
    padding-top: 24px;
    padding-bottom: 22px;
  }

  .hero {
    gap: 18px;
  }

  .hero__h1 {
    font-size: 60px;
  }

  .hero__sub {
    font-size: 18px;
    line-height: 1.45;
  }

  .quote {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .quote__text {
    font-size: 13.5px;
    line-height: 1.42;
  }
}

@media (max-width: 720px) and (max-height: 740px) {
  .hero__h1 {
    font-size: 36px;
  }

  .hero__sub {
    font-size: 14.5px;
  }

  .quote__text {
    -webkit-line-clamp: 2;
  }
}

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