:root {
  --brown: #321405;
  --ivory: #f7f0e4;
  --olive: #b8bd13;
  --olive-light: #d1d53d;
}

* { box-sizing: border-box; }

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

body {
  background: var(--brown);
  color: var(--ivory);
  font-family: "Montserrat", Arial, sans-serif;
  overflow: hidden;
}

body.page-ready { overflow: auto; }

.page-loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.15rem;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(88, 38, 13, .62), transparent 42%),
    var(--brown);
  opacity: 1;
  visibility: visible;
  transition: opacity .55s ease, visibility .55s ease;
}

.page-loader--leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  position: relative;
  width: clamp(190px, 30vw, 270px);
  aspect-ratio: 410 / 430;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 76% 72% at center, #000 58%, rgba(0,0,0,.9) 76%, transparent 100%);
  mask-image: radial-gradient(ellipse 76% 72% at center, #000 58%, rgba(0,0,0,.9) 76%, transparent 100%);
}

.loader-mark > img,
.loader-reveal,
.loader-reveal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader-mark > img {
  object-fit: contain;
  opacity: .11;
  filter: grayscale(1) sepia(1);
}

.loader-reveal {
  overflow: hidden;
  animation: build-logo 1.8s cubic-bezier(.65, 0, .2, 1) both;
}

.loader-reveal::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 8%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ivory), transparent);
  box-shadow: 0 0 16px rgba(247, 240, 228, .7);
}

.loader-reveal img { object-fit: contain; }

.loader-copy {
  margin: 0;
  color: rgba(247, 240, 228, .9);
  font-size: clamp(.73rem, 1.8vw, .88rem);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.loader-dots { display: inline-block; animation: pulse-dots .8s ease-in-out infinite alternate; }

@keyframes build-logo {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes pulse-dots {
  from { opacity: .25; transform: translateX(0); }
  to { opacity: 1; transform: translateX(3px); }
}

.landing-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vh, 4.5rem) 1.5rem;
  background:
    radial-gradient(circle at 50% 39%, rgba(88, 38, 13, .52), transparent 40%),
    radial-gradient(circle at 50% 110%, rgba(8, 4, 2, .28), transparent 48%),
    #321405;
}

.content {
  width: min(100%, 680px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-logo {
  display: block;
  width: clamp(255px, 32vw, 390px);
  height: auto;
  margin-bottom: clamp(1.5rem, 4vh, 2.6rem);
  -webkit-mask-image: radial-gradient(ellipse 76% 72% at center, #000 58%, rgba(0,0,0,.9) 76%, transparent 100%);
  mask-image: radial-gradient(ellipse 76% 72% at center, #000 58%, rgba(0,0,0,.9) 76%, transparent 100%);
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.18));
}

.actions {
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.action-button {
  width: min(100%, 340px);
  min-height: 68px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 2px;
  box-shadow: 0 16px 42px rgba(0,0,0,.25);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.action-button--primary {
  color: #161305;
  background: var(--olive);
}

.action-button--secondary {
  color: var(--ivory);
  background: rgba(247, 240, 228, .04);
  border-color: rgba(247, 240, 228, .34);
}

.action-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,.34);
}

.action-button--primary:hover { background: var(--olive-light); }
.action-button--secondary:hover { color: var(--brown); background: var(--ivory); }
.action-button:focus-visible { outline: 3px solid var(--ivory); outline-offset: 5px; }
.arrow { font-size: 1.65rem; font-weight: 400; transition: transform .2s ease; }
.action-button:hover .arrow { transform: translateX(6px); }
.google-mark { font-family: Arial, sans-serif; font-size: 1.25rem; font-weight: 700; text-transform: none; }

.story {
  width: min(100%, 570px);
  margin: clamp(1.8rem, 4vh, 2.8rem) auto 0;
  display: grid;
  grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
  align-items: center;
  gap: 1rem;
}

.flourish {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--olive);
  font-size: .58rem;
}

.flourish::before,
.flourish::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(184, 189, 19, .55));
}

.flourish::after { display: none; }
.flourish:last-child { flex-direction: row-reverse; }
.flourish:last-child::before { background: linear-gradient(90deg, rgba(184, 189, 19, .55), transparent); }

.description {
  margin: 0;
  color: rgba(247, 240, 228, .76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.88rem, 1.5vw, 1.05rem);
  font-style: italic;
  line-height: 1.55;
  letter-spacing: .025em;
  text-wrap: pretty;
}

@media (max-width: 600px) {
  .landing-shell { padding: 1.75rem 1.2rem 2.2rem; }
  .brand-logo { width: min(82vw, 320px); margin-bottom: 1.35rem; }
  .actions { width: min(100%, 320px); grid-template-columns: 1fr; gap: .7rem; }
  .action-button { width: 100%; min-height: 61px; padding-inline: 1.4rem; }
  .story { margin-top: 1.6rem; grid-template-columns: minmax(16px, 1fr) auto minmax(16px, 1fr); gap: .65rem; }
  .description { font-size: .84rem; line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .loader-reveal { animation: none; clip-path: inset(0); }
  .loader-dots { animation: none; }
}
