/* Tohar Brands — hero. Scoped under .tb-hero so nothing else on the page is touched.
   Delete this file and the <section class="tb-hero"> block in index.html to undo. */

@font-face {
  font-family: "Tohar Display";
  src: url("wp-content/uploads/fonts/PlayfairDisplay.ttf") format("truetype-variations");
  font-weight: 400 700;
  font-display: swap;
}

.tb-hero {
  --tb-ink: #f4f1ec;
  --tb-muted: rgba(244, 241, 236, .62);
  --tb-line: rgba(244, 241, 236, .22);
  --tb-beige: #dcd3c8;
  position: relative;
  width: 100%;
  min-height: min(90vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0c0c0c;
  color: var(--tb-ink);
  isolation: isolate;
}

/* soft light behind the video card, keeps the black from going flat */
.tb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 70% at 26% 45%, rgba(220, 211, 200, .16), transparent 70%),
    linear-gradient(180deg, #101010 0%, #0a0a0a 62%, #060606 100%);
  z-index: -2;
}

.tb-hero__inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 40px 96px;
  display: grid;
  grid-template-columns: 1fr .92fr;
  align-items: center;
  gap: 40px;
}

/* ---------- copy ---------- */

.tb-hero__copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: tb-rise .9s cubic-bezier(.22, .61, .36, 1) forwards;
}
.tb-hero__copy > *:nth-child(1) { animation-delay: .05s }
.tb-hero__copy > *:nth-child(2) { animation-delay: .18s }
.tb-hero__copy > *:nth-child(3) { animation-delay: .31s }
.tb-hero__copy > *:nth-child(4) { animation-delay: .44s }

@keyframes tb-rise {
  to { opacity: 1; transform: none }
}

.tb-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  font-family: "Tohar Display", Georgia, serif;
  font-size: 13px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--tb-beige);
}
.tb-hero__eyebrow::after {
  content: "";
  flex: 0 0 74px;
  height: 1px;
  background: var(--tb-line);
}

.tb-hero__title {
  margin: 0;
  font-family: "Heebo", "Assistant", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(34px, 3.7vw, 58px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.tb-hero__title b {
  display: block;
  font-weight: 500;
}
.tb-hero__title span {
  display: block;
  color: var(--tb-muted);
  font-size: .62em;
  font-weight: 200;
  margin-top: .28em;
}

.tb-hero__lead {
  margin: 24px 0 0;
  max-width: 52ch;
  font-family: "Heebo", system-ui, sans-serif;
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--tb-muted);
}

.tb-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.tb-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  padding: 17px 30px;
  font-family: "Heebo", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.tb-hero__btn--solid {
  background: var(--tb-beige);
  color: #101010;
}
.tb-hero__btn--solid:hover {
  background: #fff;
  color: #101010;
}
.tb-hero__btn--ghost {
  border-color: var(--tb-line);
  color: var(--tb-ink);
}
.tb-hero__btn--ghost:hover {
  border-color: var(--tb-beige);
  color: var(--tb-beige);
}

/* ---------- video card ---------- */

.tb-hero__media {
  position: relative;
  justify-self: center;
  width: min(345px, 100%);
  aspect-ratio: 9 / 16;
  max-height: min(64vh, 605px);
  border: 1px solid rgba(244, 241, 236, .14);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .62), 0 0 0 1px rgba(220, 211, 200, .05);
  overflow: hidden;
  opacity: 0;
  animation: tb-card 1.1s cubic-bezier(.22, .61, .36, 1) .1s forwards;
}
@keyframes tb-card {
  from { opacity: 0; transform: translateY(26px) scale(.985) }
  to   { opacity: 1; transform: none }
}
.tb-hero__media video,
.tb-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.14) saturate(1.06) contrast(1.02);
}
/* keeps the burned-in brand mark at the clip edges from feeling like a hard cut */
.tb-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1), transparent 22%, transparent 78%, rgba(0, 0, 0, .28));
  pointer-events: none;
}

/* ---------- brand marquee ---------- */

.tb-hero__brands {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  border-top: 1px solid rgba(244, 241, 236, .1);
  padding: 18px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tb-hero__track {
  display: flex;
  width: max-content;
  animation: tb-marquee 46s linear infinite;
}
.tb-hero__track span {
  flex: none;
  padding: 0 34px;
  font-family: "Montserrat", "Heebo", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, .45);
  white-space: nowrap;
}
@keyframes tb-marquee {
  from { transform: translateX(0) }
  to   { transform: translateX(-50%) }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .tb-hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 72px 28px 104px;
  }
  .tb-hero__media {
    order: -1;
    width: min(320px, 78%);
    max-height: 52vh;
  }
  .tb-hero__copy { text-align: center }
  .tb-hero__eyebrow { justify-content: center }
  .tb-hero__eyebrow::after { flex-basis: 46px }
  .tb-hero__lead { margin-inline: auto }
  .tb-hero__cta { justify-content: center }
}

/* on a phone the clip is already 9:16 — let it fill the screen instead of sitting in a card */
@media (max-width: 640px) {
  .tb-hero { min-height: 94vh }
  .tb-hero__inner {
    grid-template-columns: 1fr;
    padding: 0 24px 112px;
    align-content: end;
    min-height: 94vh;
  }
  .tb-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    box-shadow: none;
    z-index: -1;
    animation: none;
    opacity: 1;
  }
  .tb-hero__media::after {
    background: linear-gradient(180deg, rgba(8, 8, 8, .5) 0%, rgba(8, 8, 8, .34) 26%, rgba(8, 8, 8, .78) 62%, rgba(8, 8, 8, .96) 100%);
  }
  .tb-hero__title { font-size: clamp(30px, 8.2vw, 40px) }
  .tb-hero__lead { font-size: 14.5px; line-height: 1.65; max-width: 30ch; margin-top: 18px }
  .tb-hero__cta { margin-top: 28px }
  .tb-hero__btn { flex: 1 1 100%; min-width: 0 }
}

@media (prefers-reduced-motion: reduce) {
  .tb-hero__copy > *,
  .tb-hero__media { animation: none; opacity: 1; transform: none }
  .tb-hero__track { animation: none }
}

/* tiles: the whole photograph is the link, no button */
.ts-banner .banner-wrapper { position: relative }
.ts-banner .tb-tile-link {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}
