/* Perpshood landing — tokens from the brand kit (Colour + Typography pages). */
:root {
  --ph-glade: #EBFF8B;
  --ph-new-leaf: #BDFF6D;
  --ph-sprout: #739C42;
  --ph-bark: #888448;
  --ph-forest-floor: #242D24;
  --ph-clearing: #F3F3ED;
  --ph-signal-red: #EF4343;

  --night: #0E110E;
  --night-2: #121712;
  --panel: #1A211A;
  --panel-2: #171C17;
  --line: #242D24;
  --lime-art: #DAFFAD;
  --deep: #111F00;

  --text: #FFFFFF;
  --muted: #9EA59B;
  --ink: #242D24;
  --ink-muted: #4F5548;
  --rule-light: #DAD9C6;

  --gutter: 70px;
  --maxw: 1440px;
  --radius-section: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "DM Sans", Inter, system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 1.27;
  letter-spacing: -0.036em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ph-glade); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ── */
.display {
  font-size: 110px;
  line-height: 92px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.h2 {
  font-size: 68px;
  line-height: .92;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.eyebrow { font-size: 15px; color: var(--ph-glade); margin-bottom: 18px; letter-spacing: -0.02em; }
.eyebrow--dark { color: var(--ink); }
.lede { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 19px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  height: 50px; padding: 0 25px; border-radius: 999px;
  font-size: 15px; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn:has(.btn__dot) { padding: 0 16px 0 5px; }
.btn__dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--deep); color: var(--ph-glade);
  transition: transform .45s var(--ease);
}
.btn__dot svg { width: 22px; height: 22px; }
.btn:hover .btn__dot { transform: translateX(3px) rotate(0deg); }
.btn:hover { transform: translateY(-1px); }
.btn--olive { background: var(--ph-bark); color: #fff; }
.btn--olive .btn__dot { background: #2B321F; }
.btn--olive:hover { background: #979253; }
.btn--dark { background: rgba(36, 45, 36, .82); backdrop-filter: blur(6px); }
.btn--dark:hover { background: #2D382D; }
.btn--ghost { border: 1px solid rgba(235, 255, 139, .35); background: rgba(14, 17, 14, .25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--ph-glade); color: var(--ph-glade); }

/* ── Hero ── */
.hero { position: relative; height: 860px; min-height: 640px; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
  transform-origin: 61% 0;
  animation: heroBreath 18s ease-in-out infinite alternate;
}
@keyframes heroBreath {
  from { transform: scale(1.02); }
  to   { transform: scale(1.06); }
}
/* Light shaft from the opening above the rock: a soft additive cone that shimmers. */
.hero__rays {
  position: absolute; inset: 0;
  background:
    conic-gradient(from 197deg at 61% -2%, transparent 0deg, rgba(220, 235, 210, .10) 10deg, transparent 18deg, rgba(220, 235, 210, .07) 26deg, transparent 33deg, rgba(220, 235, 210, .09) 41deg, transparent 50deg, transparent 360deg);
  mix-blend-mode: screen;
  filter: blur(6px);
  animation: rays 7s ease-in-out infinite alternate;
  transform-origin: 61% 0;
  pointer-events: none;
}
@keyframes rays {
  0%   { opacity: .35; transform: rotate(-1.2deg); }
  50%  { opacity: .9; }
  100% { opacity: .5; transform: rotate(1.4deg); }
}
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero__fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 17, 14, 0) 55%, rgba(14, 17, 14, .55) 82%, var(--night) 100%),
    linear-gradient(90deg, rgba(14, 17, 14, .35) 0%, rgba(14, 17, 14, 0) 45%);
}

.nav {
  position: absolute; top: 34px; left: 50%; transform: translateX(-50%);
  width: calc(min(100%, var(--maxw)) - 2 * var(--gutter));
  height: 82px; padding: 0 16px 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px;
  background: rgba(30, 38, 30, .42);
  border: 1px solid rgba(235, 255, 139, .10);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  z-index: 20;
  animation: navIn .9s var(--ease) both;
}
@keyframes navIn { from { opacity: 0; transform: translate(-50%, -14px); } }
.nav__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 52px; font-size: 15px; }
.nav__links a { position: relative; opacity: .92; transition: opacity .25s, color .25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--ph-glade); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover { opacity: 1; color: var(--ph-glade); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; }
.nav__sheet { display: none; }

.logo { display: inline-flex; align-items: center; gap: 6px; color: var(--ph-glade); }
.logo__mark { width: 40px; height: 40px; fill: currentColor; }
.logo__word { font-size: 26px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }

.hero__body {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 60px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.hero__sub { margin-top: 22px; font-size: 15px; line-height: 19px; color: rgba(255, 255, 255, .92); }
.hero__ctas { margin-top: 30px; display: flex; gap: 16px; }

/* Fees routed: the hover component. */
.fees { position: relative; width: 376px; flex: none; padding-top: 12px; cursor: default; }
.fees__back {
  position: absolute; top: 0; left: 0; right: 0; height: 60px;
  border-radius: 10px; background: #2C352C; opacity: .55;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.fees__card {
  position: relative; padding: 15px 10px 10px;
  border-radius: 10px;
  background: rgba(36, 45, 36, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.fees:hover .fees__card, .fees:focus-visible .fees__card { transform: translateY(-6px); box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(235, 255, 139, .14); }
.fees:hover .fees__back, .fees:focus-visible .fees__back { transform: translateY(-14px) scaleX(.94); opacity: .8; }
.fees__head { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 0 15px; }
.fees__value { font-size: 24px; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fees__label { margin-top: 2px; font-size: 15px; color: #6E7769; }
.live {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 3px; padding: 3px 9px; border-radius: 999px;
  background: var(--ph-glade); color: #1C2410;
  font-size: 11px; font-weight: 500; letter-spacing: .02em;
}
.live i { width: 5px; height: 5px; border-radius: 50%; background: #1C2410; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .25; } }
.fees__chart { height: 110px; border-radius: 8px; background: var(--deep); overflow: hidden; }
.fees__chart svg { width: 100%; height: 100%; }

/* ── Features ── */
.features {
  position: relative; z-index: 2;
  background: var(--night);
  padding: 150px 0 140px;
  border-radius: 0 0 var(--radius-section) var(--radius-section);
}
.features .h2 { margin-top: 0; }
.cards { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 15px 15px 20px;
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.card:hover { border-color: #39443A; transform: translateY(-3px); }
.card h3 { margin-top: 30px; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.19; }
.card p { margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 19px; }
.art { aspect-ratio: 388 / 246; border-radius: 3px; overflow: hidden; background: var(--lime-art); }
.art svg { width: 100%; height: 100%; }

/* 1 — sawtooth: a row of extruded teeth riding a travelling wave. */
.tooth { animation: toothWave 3s ease-in-out infinite; animation-delay: calc(var(--i) * -0.32s); }
@keyframes toothWave {
  0%, 100% { transform: translateY(14px); }
  50%      { transform: translateY(-12px); }
}

/* 2 — coin rolls through the vault under the lime ledge. */
.coin { animation: coinRoll 3s cubic-bezier(.4, .15, .6, .85) infinite; }
@keyframes coinRoll {
  0%   { transform: translate(-120px, 187px); }
  78%  { transform: translate(510px, 187px); }
  100% { transform: translate(510px, 187px); }
}
.coin__spin { animation: coinSpin 3s cubic-bezier(.4, .15, .6, .85) infinite; }
@keyframes coinSpin { 0% { transform: rotate(0); } 78%, 100% { transform: rotate(320deg); } }

/* 3 — three plates drop in and stack, hold, then lift away. */
.plate { animation: plateDrop 3.6s var(--ease) infinite; }
.p3 { animation-delay: 0s; }
.p2 { animation-delay: .12s; }
.p1 { animation-delay: .24s; }
@keyframes plateDrop {
  0%   { transform: translateY(-250px); }
  26%  { transform: translateY(0); }
  31%  { transform: translateY(-5px); }
  36%, 82% { transform: translateY(0); }
  100% { transform: translateY(260px); }
}

/* ── How it works (Clearing) ── */
.how {
  position: relative; z-index: 1;
  background: var(--ph-clearing); color: var(--ink);
  margin-top: calc(-1 * var(--radius-section));
  padding: calc(150px + var(--radius-section)) 0 calc(130px + var(--radius-section));
}
.how .lede { color: var(--ink-muted); }
.steps { margin-top: 72px; }
.step {
  display: grid; grid-template-columns: 200px 460px 1fr; align-items: center;
  min-height: 123px; padding: 18px 0;
  border-top: 1px solid var(--rule-light);
}
.step__n, .step__t { font-size: 42px; font-weight: 400; letter-spacing: -0.005em; line-height: 1; }
.step__t { font-weight: 450; }
.step__d { font-size: 15px; line-height: 19px; color: var(--ink-muted); max-width: 430px; }
.step__n { transition: color .35s var(--ease), transform .45s var(--ease); }
.step:hover .step__n { color: var(--ph-sprout); transform: translateX(6px); }

/* ── FAQ + CTA ── */
.faq {
  position: relative; z-index: 2;
  background: var(--night);
  margin-top: calc(-1 * var(--radius-section));
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  padding-top: 140px;
}
.faq__grid { display: grid; grid-template-columns: 560px 1fr; }
.acc { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: 4px; overflow: hidden; }
.acc__item { background: var(--panel-2); }
.acc__q {
  width: 100%; height: 64px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; text-align: left;
  font-size: 15px; transition: color .25s;
}
.acc__q:hover { color: var(--ph-glade); }
.acc__q i { position: relative; width: 18px; height: 18px; flex: none; }
.acc__q i::before, .acc__q i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px;
  background: var(--ph-glade); transform: translate(-50%, -50%);
  transition: transform .4s var(--ease);
}
.acc__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__q[aria-expanded="true"] i::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__q[aria-expanded="true"] i::before { transform: translate(-50%, -50%) rotate(180deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 56px 20px 16px; color: var(--muted); line-height: 1.45; }
.acc__item.open .acc__a { grid-template-rows: 1fr; }

.cta { position: relative; margin-top: 140px; height: 572px; }
.cta__vines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cta__img {
  position: absolute; left: 50%; bottom: 0; width: max(100%, 1440px); height: 100%;
  object-fit: cover; object-position: 50% 100%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: vineSway 9s ease-in-out infinite alternate;
}
/* the "semi animated" pass: a brighter copy whose glow breathes over the base image */
.cta__img--glow {
  mix-blend-mode: screen;
  filter: brightness(1.7) saturate(1.4) blur(1.5px);
  opacity: 0;
  animation: vineSway 9s ease-in-out infinite alternate, vineGlow 3.2s ease-in-out infinite;
}
@keyframes vineSway {
  0%   { transform: translateX(-50%) scale(1) skewX(0deg); }
  50%  { transform: translateX(-50.3%) scale(1.012, 1.02) skewX(-.4deg); }
  100% { transform: translateX(-49.8%) scale(1.006, 1.01) skewX(.35deg); }
}
@keyframes vineGlow {
  0%, 100% { opacity: 0; }
  50%      { opacity: .42; }
}
.cta__body { position: relative; text-align: center; padding-top: 196px; }
.cta__body .lede { max-width: 520px; margin: 14px auto 0; }
.cta .dot { color: var(--ph-glade); }
.cta__btns { margin-top: 30px; display: flex; gap: 16px; justify-content: center; }

/* ── Footer ── */
.footer { background: var(--night-2); padding-top: 55px; overflow: hidden; }
.footer .wrap { padding: 0 80px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; }
.logo--lg .logo__word { font-size: 28px; }
.footer__tag { margin-top: 32px; color: var(--muted); line-height: 19px; }
.footer__cols { display: grid; grid-template-columns: 194px 194px 160px; margin-top: 72px; }
.footer__cols h4 { font-size: 15px; font-weight: 400; color: var(--ph-glade); margin-bottom: 10px; }
.footer__cols a { display: block; line-height: 28px; width: fit-content; transition: color .25s, transform .35s var(--ease); }
.footer__cols a:hover { color: var(--ph-glade); transform: translateX(3px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 120px; color: var(--muted); }
.footer__word {
  max-width: var(--maxw); margin: 40px auto 0; padding: 0 76px;
  height: 0.7em; font-size: 284px; line-height: 1;
  overflow: hidden; user-select: none;
}
/* Brand rule: display moments at 177px+ are Bricolage Grotesque SemiBold. */
.footer__word span {
  display: inline-block; font-family: "Bricolage Grotesque", "DM Sans", sans-serif; font-weight: 600; letter-spacing: -0.035em; white-space: nowrap;
  color: #1A211A;
  background: linear-gradient(180deg, #1C231C 0%, #161C16 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Reveal on scroll ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1240px) {
  :root { --gutter: 40px; }
  .display { font-size: 88px; line-height: 76px; }
  .step { grid-template-columns: 120px 1fr 1fr; gap: 20px; }
  .faq__grid { grid-template-columns: 1fr 1.3fr; gap: 40px; }
  .footer .wrap { padding: 0 40px; }
  .footer__cols { grid-template-columns: repeat(3, 160px); }
}
@media (max-width: 960px) {
  .nav__links, .nav > .btn { display: none; }
  .nav { height: 64px; padding: 0 12px 0 20px; top: 20px; }
  .nav__burger { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; border-radius: 50%; background: var(--ph-bark); }
  .nav__burger span { width: 18px; height: 1.5px; background: #fff; transition: transform .35s var(--ease); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__sheet:not([hidden]) {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; z-index: 19; top: 92px; left: var(--gutter); right: var(--gutter);
    padding: 16px; border-radius: 20px;
    background: rgba(26, 33, 26, .94); border: 1px solid rgba(235, 255, 139, .1);
    backdrop-filter: blur(14px);
    animation: navIn .4s var(--ease) both;
  }
  .nav__sheet a:not(.btn) { padding: 12px 8px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__sheet .btn { margin-top: 10px; align-self: flex-start; }
  .hero { height: auto; min-height: 760px; }
  .hero__body { position: relative; left: auto; transform: none; bottom: auto; padding-top: 300px; padding-bottom: 60px; flex-direction: column; align-items: flex-start; }
  .fees { width: 100%; max-width: 376px; }
  .cards { grid-template-columns: 1fr; max-width: 520px; }
  .step { grid-template-columns: 70px 1fr; row-gap: 10px; }
  .step__d { grid-column: 2; }
  .faq__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__top { flex-direction: column; }
  .footer__cols { margin-top: 24px; }
  .footer__bottom { flex-direction: column; margin-top: 64px; }
  .br-lg { display: none; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --radius-section: 18px; }
  .display { font-size: 54px; line-height: 50px; }
  .h2 { font-size: 42px; }
  .step__n, .step__t { font-size: 30px; }
  .features { padding: 96px 0; }
  .how { padding: calc(96px + var(--radius-section)) 0 calc(80px + var(--radius-section)); }
  .faq { padding-top: 96px; }
  .cta { margin-top: 80px; height: 520px; }
  .cta__body { padding-top: 150px; }
  .cta__img { width: 1300px; }
  .hero__ctas, .cta__btns { flex-wrap: wrap; }
  .footer .wrap { padding: 0 var(--gutter); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .footer__word { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tooth, .plate, .coin, .coin__spin { animation: none !important; }
  .coin { transform: translate(141px, 187px); }
}
