/* Mobile containment and final responsive polish */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

/* The origin story */
.origin {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(154, 255, 88, 0.11), transparent 29rem),
    linear-gradient(135deg, #141712 0%, #0d100d 56%, #17130f 100%);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.origin::before {
  content: "ORIGIN";
  position: absolute;
  z-index: -1;
  right: -0.03em;
  top: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.035);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.origin-heading {
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.origin-heading h2 {
  max-width: 14ch;
}

.origin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: stretch;
}

.origin-story,
.origin-scene {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.origin-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 3.75rem);
  background: rgba(255, 255, 255, 0.025);
}

.origin-story > p:not(.story-kicker) {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.75;
}

.origin-story strong {
  color: #fff;
}

.story-kicker {
  margin-bottom: 1.8rem;
  color: #f45a1c;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.origin-story blockquote {
  position: relative;
  margin: 1.65rem 0;
  padding: 0.15rem 0 0.15rem 1.35rem;
  border-left: 3px solid #9aff58;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.origin-scene {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 10, 8, 0.08), rgba(8, 10, 8, 0.66)),
    linear-gradient(155deg, #1d291d 0%, #111811 54%, #0a0c0a 100%);
}

.origin-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.012) 6px);
  pointer-events: none;
}

.origin-sun {
  position: absolute;
  top: 10%;
  right: 11%;
  width: clamp(7rem, 13vw, 10rem);
  aspect-ratio: 1;
  border: 1px solid rgba(244, 90, 28, 0.65);
  border-radius: 50%;
  background: rgba(244, 90, 28, 0.12);
  box-shadow: 0 0 80px rgba(244, 90, 28, 0.12);
}

.origin-sun::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: inherit;
  background: #f45a1c;
  box-shadow: 0 0 40px rgba(244, 90, 28, 0.45);
}

.origin-star {
  position: absolute;
  z-index: 2;
  color: #9aff58;
  animation: originTwinkle 2.8s ease-in-out infinite;
}

.star-one {
  top: 15%;
  left: 18%;
}

.star-two {
  top: 29%;
  left: 42%;
  font-size: 0.65rem;
  animation-delay: -1.4s;
}

.mountain {
  position: absolute;
  transform-origin: bottom center;
}

.mountain-back {
  z-index: 1;
  right: -16%;
  bottom: 13%;
  width: 100%;
  height: 61%;
  background: #1f2a1d;
  clip-path: polygon(0 100%, 41% 15%, 53% 35%, 66% 5%, 100% 100%);
  animation: mountainIn 1s cubic-bezier(.2,.8,.2,1) both;
}

.mountain-front {
  z-index: 2;
  left: -12%;
  bottom: 0;
  width: 116%;
  height: 67%;
  background: linear-gradient(115deg, #293622 0 46%, #141b12 46.2% 100%);
  clip-path: polygon(0 100%, 37% 38%, 49% 11%, 59% 42%, 100% 100%);
  filter: drop-shadow(0 -12px 30px rgba(0, 0, 0, 0.28));
  animation: mountainIn 1.15s .08s cubic-bezier(.2,.8,.2,1) both;
}

.summit-pair {
  position: absolute;
  z-index: 4;
  left: 46.5%;
  top: 40%;
  display: flex;
  align-items: end;
  gap: 0.72rem;
  transform: translateX(-50%);
}

.sake-figure,
.sage-figure {
  position: relative;
  display: block;
  width: 1rem;
  height: 2.6rem;
  border-radius: 0.55rem 0.55rem 0.15rem 0.15rem;
  background: #f45a1c;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.sake-figure::before,
.sage-figure::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.75rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: inherit;
  transform: translateX(-50%);
}

.sage-figure {
  height: 2.25rem;
  background: #d8d4c9;
}

.sage-figure::after {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 0.8rem;
  width: 1.7rem;
  height: 1.5rem;
  border: 1px solid rgba(216, 212, 201, 0.7);
  border-top: 0;
  border-radius: 0 0 50% 50%;
}

.wisdom-lines {
  align-self: center;
  margin-bottom: 1.1rem;
  color: #9aff58;
  font-family: var(--font-geist-mono), monospace;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.origin-caption {
  position: absolute;
  z-index: 7;
  right: clamp(1.25rem, 3vw, 2.5rem);
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  left: clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.origin-caption span {
  color: #9aff58;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.origin-caption strong {
  max-width: 11ch;
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.05;
  text-align: right;
}

@keyframes originTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(12deg); }
}

@keyframes mountainIn {
  from { opacity: 0; transform: translateY(12%) scaleY(0.9); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

.hero,
.ticker,
.final {
  max-width: 100%;
}

@media (max-width: 900px) {
  .origin-grid {
    grid-template-columns: 1fr;
  }

  .origin-scene {
    min-height: 520px;
  }

  .hero {
    overflow: hidden;
    overflow: clip;
  }

  .hero-art {
    width: 96%;
    right: -2%;
  }

  .ticker {
    width: 100%;
    transform: none;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .nav {
    height: 72px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-cta {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding-inline: 0.85rem;
  }

  .hero {
    min-height: 780px;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.4rem, 17.4vw, 4.8rem);
    line-height: 0.82;
  }

  h1 span {
    max-width: 100%;
  }

  .hero-detail {
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
    min-height: 54px;
  }

  .text-link {
    align-self: flex-start;
    padding-block: 0.25rem;
  }

  .hero-art {
    width: 100%;
    height: 29%;
    right: 0;
    bottom: 0;
    opacity: 0.62;
  }

  .hero-art::before {
    inset: 8% 2% 7% 4%;
  }

  .orbit-one {
    width: 70%;
    right: -4%;
  }

  .orbit-two {
    left: 8%;
  }

  .men-bars {
    right: 2%;
  }

  .label-men {
    right: 2%;
  }

  .proof-grid {
    width: 100%;
    overflow: hidden;
  }

  .proof-grid > div {
    min-width: 0;
    padding: 1rem;
  }

  .proof-grid span {
    font-size: 0.65rem;
    line-height: 1.35;
  }

  .ticker > div {
    gap: 1.5rem;
    padding-block: 0.72rem;
  }

  .section {
    padding-block: 4.75rem;
  }

  .section-number {
    margin-bottom: 1.6rem;
  }

  .origin-heading {
    margin-bottom: 2rem;
  }

  .origin-heading > p {
    max-width: 30ch;
  }

  .origin-story {
    padding: 1.45rem;
  }

  .origin-story blockquote {
    margin-block: 1.35rem;
    padding-left: 1rem;
    font-size: 1.2rem;
  }

  .origin-scene {
    min-height: 420px;
  }

  .origin-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .origin-caption strong {
    max-width: 100%;
    text-align: left;
  }

  h2,
  .section-heading h2 {
    line-height: 1.01;
  }

  .ingredient-grid article {
    min-height: 400px;
  }

  .egg-names > div,
  .men-list > div {
    min-width: 0;
  }

  .equation {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 1.25rem;
    overflow: hidden;
  }

  .equation span {
    min-width: 0;
    letter-spacing: 0.05em;
  }

  .reason {
    min-height: 350px;
  }

  .faq summary {
    min-height: 0;
    align-items: flex-start;
    gap: 1.25rem;
    padding-block: 1.45rem;
    line-height: 1.2;
  }

  .faq summary span {
    flex: 0 0 auto;
    line-height: 1;
  }

  .faq details p {
    margin-top: -0.2rem;
    padding-right: 2.75rem;
  }

  .final {
    min-height: 640px;
    padding-block: 4rem;
  }

  .final-egg {
    width: 90vw;
    max-width: 100%;
  }

  .final .button {
    max-width: 320px;
  }

  footer .shell {
    min-height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    padding-block: 2rem;
  }

  .footer-note {
    line-height: 1.45;
  }
}

@media (max-width: 360px) {
  :root {
    --shell: calc(100% - 20px);
  }

  .nav-cta {
    padding-inline: 0.7rem;
    font-size: 0.68rem;
  }

  .eyebrow::before {
    width: 1.5rem;
    flex: 0 0 auto;
  }

  h1 {
    font-size: 17.2vw;
  }

  .proof-grid > div {
    padding-inline: 0.8rem;
  }

  .egg-names strong {
    font-size: 3rem;
  }

  .men-list strong {
    font-size: 2rem;
  }
}
