@font-face {
  font-family: "TAN Memories";
  src: url("assets/TAN-MEMORIES-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TAN Memories";
  src: url("assets/TAN-MEMORIES-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/inter-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/inter-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --charcoal: #090909;
  --ink: #131312;
  --ivory: #fff8dd;
  --muted: rgba(255, 248, 221, 0.8);
  --faint: rgba(255, 248, 221, 0.6);
  --orange: #ff8847;
  --gold: #c99b57;
  --line: rgba(201, 155, 87, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.waiting-page {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--charcoal);
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.02), rgba(9, 9, 9, 0.46)),
    url("assets/background-pattern.webp");
  background-position:
    center,
    center;
  background-size:
    auto,
    320px 512px;
  background-repeat:
    no-repeat,
    repeat;
}

.waiting-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 136, 71, 0.16), transparent 25%),
    radial-gradient(circle at 50% 48%, rgba(255, 248, 221, 0.055), transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.waiting-page::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 200px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100vw;
  max-width: 100vw;
  padding: clamp(20px, 2vw, 34px) clamp(20px, 2.2vw, 42px) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(154px, 10vw, 196px);
  height: auto;
}

.brand,
.header-meta,
.hero-emblem,
h1,
.hero-ornament,
.intro,
.offer-tags,
.cta,
.site-footer {
  opacity: 0;
  animation: cascade-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  animation-delay: 20ms;
}

.header-meta {
  animation-delay: 50ms;
}

.hero-emblem {
  animation-delay: 90ms;
}

h1 {
  animation-delay: 140ms;
}

.hero-ornament {
  animation-name: separator-in;
  animation-delay: 200ms;
  transform-origin: center;
}

.intro {
  animation-delay: 250ms;
}

.offer-tags {
  animation-delay: 300ms;
}

.cta {
  animation-delay: 350ms;
}

.site-footer {
  animation-delay: 410ms;
}

.header-meta {
  position: absolute;
  top: clamp(28px, 2.2vw, 42px);
  right: clamp(18px, 2.2vw, 42px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 0.9vw, 16px);
  max-width: calc(100% - 260px);
  min-width: 0;
  color: var(--ivory);
  font-size: clamp(0.66rem, 0.78vw, 0.9rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-meta sup {
  position: relative;
  top: -0.22em;
  font-size: 0.58em;
  letter-spacing: 0.02em;
  text-transform: none;
}

.header-meta a {
  display: inline-grid;
  min-width: 1.05rem;
  place-items: center;
  font-weight: 700;
  transition: color 180ms ease;
}

.header-meta a:hover,
.header-meta a:focus-visible {
  color: var(--orange);
}

.spark {
  color: var(--orange);
  font-size: 0.72em;
}

.mobile-break {
  display: none;
}

.title-break {
  display: block;
}

.desktop-break {
  display: block;
}

.hero {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(1180px, calc(100vw - 40px));
  margin-top: clamp(-18px, -2vh, 0px);
  padding-bottom: clamp(14px, 2vh, 28px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: min(720px, 82vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 136, 71, 0.14), rgba(255, 136, 71, 0.045) 34%, transparent 68%);
  opacity: 0.76;
  transform: translate(-50%, -48%);
  pointer-events: none;
}

.hero-emblem {
  position: relative;
  width: clamp(74px, 6.2vw, 118px);
  margin: 0 auto clamp(26px, 3.2vh, 42px);
}

.hero-emblem img {
  display: block;
  width: 100%;
  height: auto;
}

h1 {
  max-width: min(1040px, calc(100vw - 64px));
  margin: 0 auto;
  color: var(--ivory);
  font-family: "TAN Memories", Georgia, serif;
  font-size: clamp(3.55rem, 4.25vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 span {
  color: var(--orange);
  font-style: normal;
}

.hero-ornament {
  width: clamp(108px, 11vw, 156px);
  height: 18px;
  margin: clamp(30px, 4vh, 50px) auto clamp(26px, 3.4vh, 42px);
  object-fit: contain;
  opacity: 0.86;
}

.intro {
  max-width: 860px;
  margin: 0 auto;
  color: var(--ivory);
  font-family: "TAN Memories", Georgia, serif;
  font-size: clamp(1.18rem, 1.34vw, 1.48rem);
  line-height: 1.45;
  text-wrap: balance;
}

.offer-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  max-width: 860px;
  margin: clamp(18px, 2.8vh, 32px) auto 0;
  padding: 0;
  color: rgba(255, 248, 221, 0.62);
  font-size: clamp(0.6rem, 0.68vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  list-style: none;
  text-transform: uppercase;
}

.offer-tags li {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.offer-tags li:not(:last-child)::after {
  content: "\2726";
  color: rgba(255, 136, 71, 0.72);
  font-size: 0.62em;
}

.cta {
  --notch: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: min(390px, calc(100vw - 48px));
  min-height: 64px;
  margin-top: clamp(28px, 4.1vh, 46px);
  padding: 0 44px;
  background: var(--orange);
  color: var(--ink);
  clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, var(--notch) 100%, 0 50%);
  font-family: "TAN Memories", Georgia, serif;
  font-size: clamp(1.1rem, 1.22vw, 1.42rem);
  line-height: 1;
  box-shadow:
    0 12px 32px rgba(255, 136, 71, 0.12),
    inset 0 1px 0 rgba(255, 248, 221, 0.22);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.cta span {
  color: var(--ivory);
  font-family: Inter, sans-serif;
  font-size: 0.56em;
}

.cta-arrow {
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-size: 0.92em;
  line-height: 1;
  transition: transform 180ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: #ff9658;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(255, 136, 71, 0.18),
    inset 0 1px 0 rgba(255, 248, 221, 0.28);
}

.cta:hover .cta-arrow,
.cta:focus-visible .cta-arrow {
  transform: translateX(3px);
}

.site-footer {
  --logo-rail-height: 76px;
  --ornament-height: 28px;
  position: relative;
  z-index: 1;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.logo-marquee {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  height: var(--logo-rail-height);
  overflow: hidden;
  animation: logo-marquee 34s linear infinite;
  will-change: transform;
}

.client-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(20px, 2vw, 42px);
  min-width: max-content;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-strip li {
  flex: 0 0 auto;
  display: grid;
  width: clamp(118px, 8.6vw, 156px);
  height: 100%;
  place-items: center;
  opacity: 0;
  animation: logo-rise 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.client-strip img {
  display: block;
  width: 100%;
  height: calc(var(--logo-rail-height) - 12px);
  object-fit: contain;
  filter: saturate(1.04) brightness(1.02);
}

.gold-border {
  width: 100%;
  height: var(--ornament-height);
  background: url("assets/ornement.jpg") left top / auto 100% repeat-x;
  border-top: 1px solid rgba(255, 248, 221, 0.24);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.42);
  filter: sepia(0.85) saturate(1.7) brightness(1.08);
}

.client-strip li:nth-child(1) { animation-delay: 420ms; }
.client-strip li:nth-child(2) { animation-delay: 432ms; }
.client-strip li:nth-child(3) { animation-delay: 444ms; }
.client-strip li:nth-child(4) { animation-delay: 456ms; }
.client-strip li:nth-child(5) { animation-delay: 468ms; }
.client-strip li:nth-child(6) { animation-delay: 480ms; }
.client-strip li:nth-child(7) { animation-delay: 492ms; }
.client-strip li:nth-child(8) { animation-delay: 504ms; }
.client-strip li:nth-child(9) { animation-delay: 516ms; }
.client-strip li:nth-child(10) { animation-delay: 528ms; }
.client-strip li:nth-child(11) { animation-delay: 540ms; }
.client-strip li:nth-child(12) { animation-delay: 552ms; }
.client-strip li:nth-child(13) { animation-delay: 564ms; }
.client-strip li:nth-child(14) { animation-delay: 576ms; }
.client-strip li:nth-child(15) { animation-delay: 588ms; }
.client-strip li:nth-child(16) { animation-delay: 600ms; }
.client-strip li:nth-child(17) { animation-delay: 612ms; }
.client-strip li:nth-child(18) { animation-delay: 624ms; }
.client-strip li:nth-child(19) { animation-delay: 636ms; }
.client-strip li:nth-child(20) { animation-delay: 648ms; }
.client-strip li:nth-child(21) { animation-delay: 660ms; }
.client-strip li:nth-child(22) { animation-delay: 672ms; }
.client-strip li:nth-child(23) { animation-delay: 684ms; }
.client-strip li:nth-child(24) { animation-delay: 696ms; }

@keyframes cascade-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes separator-in {
  from {
    opacity: 0;
    clip-path: inset(0 50%);
    transform: translate3d(0, 10px, 0) scaleX(0.62);
    filter: blur(4px);
  }

  to {
    opacity: 0.92;
    clip-path: inset(0 0);
    transform: translate3d(0, 0, 0) scaleX(1);
    filter: blur(0);
  }
}

@keyframes logo-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes logo-rise {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .header-meta {
    top: 22px;
    right: 18px;
    gap: 10px;
    max-width: calc(100% - 190px);
    font-size: 0.68rem;
  }

  .header-meta a:nth-of-type(2),
  .header-meta a:nth-of-type(3) {
    display: none;
  }

  .hero {
    width: min(100% - 32px, 760px);
  }

  h1 {
    font-size: clamp(3rem, 7vw, 4.2rem);
  }

  .intro {
    max-width: 640px;
  }
}

@media (max-width: 560px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .waiting-page {
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .site-header {
    gap: 14px;
    padding: 16px 18px 0;
  }

  .brand img {
    width: 132px;
  }

  .header-meta {
    display: none;
  }

  .hero {
    align-self: center;
    width: calc(100vw - 20px);
    max-width: none;
    margin: 0 auto;
    padding-bottom: 0;
    transform: translateY(-0.4vh);
  }

  .hero-emblem {
    width: clamp(52px, 15vw, 64px);
    margin-bottom: clamp(12px, 2vh, 18px);
  }

  h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(1.95rem, 7.35vw, 2.32rem);
    line-height: 1.12;
    text-wrap: initial;
  }

  .mobile-break {
    display: block;
  }

  .desktop-break {
    display: none;
  }

  .hero-ornament {
    width: 116px;
    height: 14px;
    margin: clamp(14px, 2.2vh, 20px) auto clamp(14px, 2.1vh, 18px);
  }

  .intro {
    width: 100%;
    max-width: none;
    font-size: clamp(0.82rem, 3.55vw, 0.94rem);
    line-height: 1.44;
    overflow-wrap: normal;
    text-wrap: initial;
    white-space: normal;
  }

  .offer-tags {
    gap: 5px 12px;
    max-width: 25rem;
    margin-top: clamp(13px, 2vh, 18px);
    font-size: 0.52rem;
    line-height: 1.5;
    letter-spacing: 0.14em;
  }

  .offer-tags li {
    white-space: normal;
  }

  .cta {
    --notch: 15px;
    width: min(360px, 100%);
    min-width: 0;
    min-height: 54px;
    margin-top: clamp(18px, 3vh, 26px);
    padding: 0 30px;
    font-size: 1rem;
  }

  .client-strip {
    gap: 16px;
    padding-inline: 0;
  }

  .client-strip li {
    width: 104px;
  }

  .site-footer {
    --logo-rail-height: 62px;
    --ornament-height: 22px;
  }

  .gold-border {
    height: var(--ornament-height);
    background-size: auto 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-height: 760px) and (min-width: 760px) {
  .hero-emblem {
    width: 78px;
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(3.7rem, 5.4vw, 5rem);
  }

  .hero-ornament {
    margin-block: 24px 22px;
  }

  .intro {
    font-size: clamp(1.18rem, 1.45vw, 1.55rem);
  }

  .cta {
    min-height: 52px;
    margin-top: 28px;
  }

  .client-strip li {
    width: clamp(114px, 8vw, 148px);
  }

  .site-footer {
    --logo-rail-height: 72px;
    --ornament-height: 26px;
  }

}
