:root {
  color-scheme: dark;
  --bg: #090807;
  --surface: #171512;
  --cream: #f0eae0;
  --muted: #c9c0b7;
  --ember: #e65825;
  --line: #42352d;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

.site-shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  overflow: clip;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 32px;
  width: calc(100% - 120px);
  height: 96px;
  margin-inline: auto;
}
.masthead img { width: 122px; height: auto; flex: none; }
.masthead-rule { height: 1px; flex: 1; background: #3a302a; }

main { padding-inline: 60px; }

.hero {
  position: relative;
  height: 540px;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #151210;
}
.hero-scene { position: absolute; inset: 0; display: block; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; }
.hero-brand-mark {
  position: absolute;
  z-index: 1;
  top: 58px;
  left: 66px;
  width: 73px;
  height: auto;
}
.hero-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: 61%;
  padding: 0 0 63px 66px;
}
.hero h1,
.card-title {
  font-family: "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: -.045em;
}
.hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(69px, 7.45vw, 107px);
  line-height: .82;
}
.hero h1::before {
  content: "";
  position: absolute;
  top: .06em;
  left: -22px;
  width: 4px;
  height: .43em;
  background: var(--ember);
}
.hero p {
  max-width: 590px;
  margin: 31px 0 0;
  font-size: clamp(21px, 1.96vw, 28px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -.016em;
}
.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 11px 24px;
  margin: 22px 0 0;
  padding: 0;
}
.hero-tags li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: clamp(14px, 1.18vw, 16px);
  font-weight: 600;
  letter-spacing: -.008em;
}
.hero-tags li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
}

.cards { display: grid; gap: 18px; }
.card {
  position: relative;
  display: block;
  height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--cream);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .22s ease;
}
.card:hover { border-color: #8e583d; }
.card:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.card-art {
  position: absolute;
  inset-block: 0;
  right: 0;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card-art { transform: scale(1.012); }
.card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}
.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 60%;
  height: 100%;
  padding: 58px 66px 86px;
}
.card-title {
  display: block;
  font-size: clamp(68px, 6.8vw, 98px);
  line-height: .90;
}
.card-description {
  display: block;
  max-width: 600px;
  margin-top: auto;
  color: var(--cream);
  font-size: clamp(18px, 1.54vw, 22px);
  line-height: 1.31;
  font-weight: 500;
  letter-spacing: -.012em;
}
.card-meta {
  display: block;
  margin-top: 17px;
  padding-left: 11px;
  border-left: 2px solid var(--ember);
  color: var(--cream);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .23em;
}
.card-arrow {
  position: relative;
  display: block;
  width: 28px;
  height: 18px;
  margin-top: 47px;
  transition: transform .2s ease;
}
.card-arrow::before,
.card-arrow::after { content: ""; position: absolute; display: block; }
.card-arrow::before { top: 8px; left: 0; width: 27px; height: 2px; background: var(--ember); }
.card-arrow::after {
  top: 2px;
  right: 0;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--ember);
  border-right: 2px solid var(--ember);
  transform: rotate(45deg);
}
.card:hover .card-arrow,
.card:focus-visible .card-arrow { transform: translateX(5px); }

.card-partner .card-art { width: 57%; object-position: center 45%; }
.card-partner::after {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 38%, rgba(23,21,18,.56) 57%, transparent 78%),
              linear-gradient(0deg, rgba(9,8,7,.32), transparent 42%);
}
.card-partner .card-title { font-size: clamp(69px, 6.8vw, 98px); }
.card-partner .card-description { max-width: 590px; }
.card-partner .card-content { padding-bottom: 62px; }

.card-tools .card-art { width: 52.4%; object-position: center 55%; }
.card-tools::after {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 42%, rgba(23,21,18,.22) 55%, transparent 70%);
}
.card-tools .card-title { font-size: clamp(57px, 5.98vw, 86px); }
.card-tools .card-arrow { margin-top: 54px; }

.card-youtube .card-art { width: 42.4%; object-position: center 38%; }
.card-youtube::after {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 52%, rgba(23,21,18,.40) 66%, transparent 78%),
              linear-gradient(0deg, rgba(9,8,7,.28), transparent 40%);
}
.card-youtube .card-title { font-size: clamp(63px, 6.32vw, 91px); }
.card-youtube .card-arrow { margin-top: 54px; }

.footer {
  min-height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer img { width: 120px; height: auto; }

@media (min-width: 901px) and (max-width: 1100px) {
  .masthead { width: calc(100% - 72px); }
  main { padding-inline: 36px; }
  .hero { height: 490px; }
  .hero-scene img { object-position: 70% center; }
  .hero-brand-mark { top: 50px; left: 44px; width: 65px; }
  .hero-copy { width: 66%; padding-left: 44px; padding-bottom: 81px; }
  .hero h1 { font-size: clamp(69px, 7.5vw, 82px); }
  .hero p { max-width: 400px; font-size: 21px; }
  .card { height: 480px; }
  .card-content { width: 64%; padding: 55px 44px 73px; }
  .card-partner .card-title { font-size: clamp(69px, 7vw, 80px); }
  .card-tools .card-title { font-size: clamp(55px, 5.85vw, 65px); }
  .card-youtube .card-title { font-size: clamp(62px, 6.35vw, 70px); }
  .card-description { font-size: 18px; }
  .card-partner .card-content { padding-bottom: 58px; }
}

@media (max-width: 900px) {
  .masthead { width: calc(100% - 56px); height: 67px; gap: 19px; }
  .masthead img { width: 105px; }
  main { padding: 0; }

  .hero {
    height: min(653px, 151.86vw);
    margin-bottom: 9px;
    border: 0;
  }
  .hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
  .hero-scene img { width: 100%; height: 100%; object-fit: cover; }
  .hero-brand-mark { top: 34px; left: 28px; width: 59px; }
  .hero-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    padding: 0 28px 57px;
    background: transparent;
  }
  .hero h1 { font-size: clamp(48px, 15.35vw, 66px); line-height: .88; }
  .hero h1::before { left: -17px; height: .5em; }
  .hero p {
    max-width: 390px;
    margin-top: 11px;
    font-size: clamp(16px, 3.95vw, 17px);
    line-height: 1.22;
  }
  .hero-tags { gap: 8px 16px; margin-top: 15px; }
  .hero-tags li { font-size: 13px; gap: 7px; }
  .hero-tags li::before { width: 6px; height: 6px; }

  .cards { width: calc(100% - 28px); max-width: 620px; margin-inline: auto; gap: 13px; }
  .card { height: 415px; }
  .card-partner { height: 460px; }
  .card-art { inset: 0; width: 100% !important; height: 100%; object-fit: cover; }
  .card-content { width: 100%; padding: 23px 24px 73px; }
  .card-title { font-size: clamp(42px, 11.9vw, 51px); line-height: .9; }
  .card-arrow { margin-top: 35px !important; }
  .card-description {
    max-width: 350px;
    font-size: clamp(16px, 3.95vw, 17px);
    line-height: 1.28;
  }
  .card-meta { margin-top: 12px; font-size: 11px; letter-spacing: .21em; }
  .card-partner .card-content { padding-bottom: 45px; }

  .card-partner .card-art { object-position: center 45%; }
  .card-partner::after {
    background: linear-gradient(90deg, rgba(9,8,7,.94) 0%, rgba(9,8,7,.72) 32%, transparent 78%),
                linear-gradient(0deg, rgba(9,8,7,.77), transparent 39%);
  }
  .card-tools .card-art { object-position: center 55%; }
  .card-tools::after {
    background: linear-gradient(180deg, rgba(9,8,7,.85) 0%, transparent 40%, rgba(9,8,7,.77) 100%);
  }
  .card-youtube .card-art { object-position: center 38%; }
  .card-youtube::after {
    background: linear-gradient(90deg, rgba(9,8,7,.81) 0%, rgba(9,8,7,.44) 39%, transparent 74%),
                linear-gradient(0deg, rgba(9,8,7,.72), transparent 42%);
  }
  .card-partner .card-title,
  .card-tools .card-title,
  .card-youtube .card-title { font-size: clamp(42px, 11.9vw, 51px); }
  .card-tools .card-description { max-width: 355px; }
  .card-youtube .card-description { max-width: 355px; }

  .footer { min-height: 113px; }
  .footer img { width: 100px; }
}

@media (max-width: 370px) {
  .masthead { width: calc(100% - 40px); }
  .hero-copy { padding-inline: 21px; }
  .cards { width: calc(100% - 20px); }
  .card-content { padding-inline: 21px; }
  .card-description { max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card-art, .card-arrow { transition: none; }
}
