.th-home {
  display: flex;
  flex-direction: column;
  width: min(80rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4.5rem) 0 5rem;
}

.th-home.is-authenticated .th-events {
  padding-top: 0;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.th-home *,
.th-home *::before,
.th-home *::after {
  box-sizing: border-box;
}

.th-home h1,
.th-home h2,
.th-home h3,
.th-home p,
.th-home ul {
  margin: 0;
}

.th-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 34rem;
}

.th-hero-copy {
  display: grid;
  gap: 1.35rem;
}

.th-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--wa-color-brand);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.th-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.th-hero h1 span {
  color: var(--wa-color-brand);
}

.th-hero-lede {
  max-width: 44rem;
  color: var(--wa-color-text-quiet);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.th-actions,
.th-access-auth,
.th-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.th-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--wa-border-radius-m);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.th-button:hover {
  transform: translateY(-1px);
}

.th-button:focus-visible,
.th-text-link:focus-visible,
.th-command-list a:focus-visible,
.th-path-card a:focus-visible {
  outline: 2px solid var(--wa-color-brand);
  outline-offset: 3px;
}

.th-button-primary {
  background: var(--wa-color-brand-fill-loud);
  color: var(--wa-color-brand-on-loud);
}

.th-button-secondary {
  border-color: var(--wa-color-neutral-border-normal);
  background: var(--wa-color-surface-raised);
  color: var(--wa-color-text-normal);
}

.th-button-quiet {
  border-color: var(--wa-color-brand-border-normal);
  background: var(--wa-color-brand-fill-quiet);
  color: var(--wa-color-brand-on-quiet);
}

.th-capability-line {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  padding: 0;
  color: var(--wa-color-text-quiet);
  font-size: .84rem;
  list-style: none;
}

.th-capability-line li {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.th-capability-line wa-icon {
  color: var(--wa-color-success);
}

.th-access-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--wa-color-neutral-border-normal);
  border-radius: calc(var(--wa-border-radius-l) * 1.35);
  background:
    radial-gradient(circle at 100% 0, rgb(28 165 189 / 16%), transparent 35%),
    var(--wa-color-surface-raised);
  box-shadow: var(--wa-shadow-l);
}

.th-access-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.th-access-panel > p {
  color: var(--wa-color-text-quiet);
  line-height: 1.55;
}

.th-command-list {
  display: grid;
  gap: .65rem;
}

.th-command-list a {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: .75rem;
  border: 1px solid var(--wa-color-neutral-border-quiet);
  border-radius: var(--wa-border-radius-m);
  background: rgb(0 0 0 / 14%);
  color: var(--wa-color-text-normal);
  text-decoration: none;
}

.th-command-list a:hover {
  border-color: var(--wa-color-brand-border-normal);
  background: var(--wa-color-brand-fill-quiet);
}

.th-command-list a > span:nth-child(2) {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.th-command-list small {
  overflow: hidden;
  color: var(--wa-color-text-quiet);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-command-icon {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: .65rem;
  background: var(--wa-color-brand-fill-quiet);
  color: var(--wa-color-brand);
}

.th-access-auth .th-button {
  flex: 1 1 8rem;
}

.th-access-note {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding-top: 1rem;
  border-top: 1px solid var(--wa-color-neutral-border-quiet);
  color: var(--wa-color-text-quiet);
  font-size: .8rem;
  line-height: 1.5;
}

.th-access-note wa-icon {
  flex: 0 0 auto;
  color: var(--wa-color-brand);
}

.th-section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.th-section-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.th-section-header h2,
.th-gamification h2,
.titan-android-download h2 {
  margin-top: .45rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.th-section-header > p {
  max-width: 34rem;
  color: var(--wa-color-text-quiet);
  line-height: 1.55;
}

.th-path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.th-path-card {
  display: grid;
  min-height: 18rem;
  grid-template-rows: auto auto 1fr auto;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--wa-color-neutral-border-normal);
  border-radius: var(--wa-border-radius-l);
  background: var(--wa-color-surface-raised);
}

.th-path-icon {
  display: grid;
  width: 3.3rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--wa-color-brand-border-normal);
  border-radius: .9rem;
  background: var(--wa-color-brand-fill-quiet);
  color: var(--wa-color-brand);
  font-size: 1.35rem;
}

.th-path-card h3 {
  font-size: 1.25rem;
}

.th-path-card p {
  color: var(--wa-color-text-quiet);
  line-height: 1.6;
}

.th-path-card > a,
.th-text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--wa-color-brand);
  font-weight: 750;
  text-decoration: none;
}

.titan-android-download {
  margin: 1rem 0 4rem;
}

.titan-android-download.is-unavailable {
  border-style: dashed;
  box-shadow: none;
}

.titan-android-download__security {
  display: flex;
  gap: .45rem;
  align-items: center;
  margin-top: .65rem;
  color: var(--wa-color-text-quiet);
  font-family: var(--wa-font-family-code);
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.titan-android-download__security wa-icon {
  flex: 0 0 auto;
  color: var(--wa-color-success);
}

.th-button.is-disabled {
  cursor: not-allowed;
  opacity: .58;
}

.th-gamification {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--wa-color-brand-border-normal);
  border-radius: calc(var(--wa-border-radius-l) * 1.35);
  background:
    linear-gradient(120deg, rgb(0 58 72 / 85%), rgb(0 23 31 / 75%)),
    var(--wa-color-surface-raised);
}

.th-gamification-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.th-gamification-copy p {
  max-width: 48rem;
  color: var(--wa-color-text-quiet);
  line-height: 1.7;
}

.th-gamification-list {
  display: grid;
  gap: .75rem;
  padding: 0;
  list-style: none;
}

.th-gamification-list li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--wa-border-radius-m);
  background: rgb(0 0 0 / 20%);
}

.th-gamification-list li > wa-icon {
  color: var(--wa-color-brand);
  font-size: 1.2rem;
}

.th-gamification-list span {
  display: grid;
  gap: .15rem;
}

.th-gamification-list small {
  color: var(--wa-color-text-quiet);
}

.th-events {
  padding-bottom: 1rem;
}

.th-event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.th-event-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 31rem;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--wa-color-neutral-border-normal);
  border-radius: var(--wa-border-radius-l);
  background: #071119;
  box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 24%);
}

.th-event-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.th-event-backdrop::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(3 9 14 / 8%) 0%, rgb(3 9 14 / 30%) 35%, rgb(3 9 14 / 94%) 78%, #03090e 100%),
    linear-gradient(100deg, rgb(0 34 45 / 30%), transparent 60%);
  content: "";
}

.th-event-backdrop > img,
.th-event-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-event-backdrop > img {
  transition: transform .35s ease;
}

.th-event-card:hover .th-event-backdrop > img {
  transform: scale(1.025);
}

.th-event-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 80% 15%, rgb(67 217 239 / 24%), transparent 28%),
    linear-gradient(135deg, #073241, #071119 64%);
  color: var(--wa-color-brand);
  font-size: 4rem;
}

.th-event-body {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  gap: .85rem;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  color: #fff;
  text-shadow: 0 1px 14px rgb(0 0 0 / 72%);
}

.th-event-meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  color: #8beaff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.th-event-body h3 {
  max-width: 17ch;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.th-event-body > p {
  color: rgb(255 255 255 / 82%);
  line-height: 1.55;
}

.th-event-location {
  display: flex;
  gap: .4rem;
  align-items: center;
  font-size: .85rem;
}

.th-event-actions .th-button {
  min-height: 2.45rem;
  padding: .55rem .75rem;
  font-size: .82rem;
  text-shadow: none;
}

.th-event-actions .th-button-secondary {
  border-color: rgb(255 255 255 / 48%);
  background: rgb(5 13 18 / 72%);
  color: #fff;
  backdrop-filter: blur(.45rem);
}

.th-event-actions .th-button-primary {
  box-shadow: 0 .4rem 1.2rem rgb(0 0 0 / 28%);
}

.th-empty-events {
  grid-column: 1 / -1;
  display: grid;
  min-height: 20rem;
  place-items: center;
  align-content: center;
  gap: .8rem;
  padding: 2rem;
  border: 1px dashed var(--wa-color-neutral-border-normal);
  border-radius: var(--wa-border-radius-l);
  background: var(--wa-color-surface-raised);
  text-align: center;
}

.th-empty-events > wa-icon {
  color: var(--wa-color-brand);
  font-size: 2.5rem;
}

.th-empty-events p {
  max-width: 36rem;
  color: var(--wa-color-text-quiet);
}

@media (max-width: 62rem) {
  .th-hero,
  .th-gamification {
    grid-template-columns: 1fr;
  }

  .th-hero {
    min-height: auto;
  }

  .th-path-grid,
  .th-event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 42rem) {
  .th-home {
    width: min(100% - 1rem, 80rem);
    padding-top: 1.25rem;
  }

  .th-hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .th-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .th-path-grid,
  .th-event-grid {
    grid-template-columns: 1fr;
  }

  .th-path-card {
    min-height: auto;
  }

  .th-actions .th-button,
  .th-access-auth .th-button,
  .th-event-actions .th-button {
    flex: 1 1 100%;
  }

  .th-capability-line {
    display: grid;
  }

  .th-event-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
