/* =========================================================
   Ape Wif Hat ($APEWIF) — stylesheet
   Palette taken straight from the photo: cream studio wall,
   salmon knitted wool, dark chimp brown.
   ========================================================= */

:root {
  --cream:      #FBF3EA;
  --cream-2:    #F5E9DA;
  --paper:      #FFFDFA;
  --ink:        #241A15;
  --ink-soft:   #5B4A40;
  --ink-mute:   #8A7669;
  --salmon:     #E08A6E;
  --salmon-dk:  #C9694C;
  --salmon-lt:  #F3C4B0;
  --wool:       #E9A996;
  --dark:       #1C1310;
  --dark-2:     #2A1E18;
  --line:       rgba(36, 26, 21, .12);
  --line-lt:    rgba(255, 253, 250, .14);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 44px;

  --shadow-sm: 0 2px 10px rgba(36, 26, 21, .06);
  --shadow-md: 0 14px 40px -18px rgba(36, 26, 21, .28);
  --shadow-lg: 0 40px 90px -40px rgba(36, 26, 21, .45);

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* height:auto stops the width/height HTML attributes (kept for layout
   stability) from beating the CSS aspect-ratio and squashing the circles. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0;
}

h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; }
p  { margin: 0 0 1.1em; }

::selection { background: var(--salmon); color: #fff; }

.wrap {
  width: min(1180px, 92vw);
  margin-inline: auto;
}
.wrap--narrow { width: min(820px, 92vw); }

.tx-accent { color: var(--salmon-dk); }

/* ---------------- Buttons ---------------- */
.btn {
  --btn-bg: var(--salmon);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s cubic-bezier(.2,.9,.3,1.4), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--salmon) 0%, var(--salmon-dk) 100%);
  box-shadow: 0 10px 26px -10px rgba(201, 105, 76, .8);
}
.btn--primary:hover { box-shadow: 0 18px 34px -12px rgba(201, 105, 76, .9); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }

.btn--dark { background: var(--dark); color: #fff; box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(36,26,21,.22); }
.btn--outline:hover { box-shadow: inset 0 0 0 2px var(--ink); }

.btn--sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn--lg { padding: 1.15rem 2.2rem; font-size: 1.1rem; }

.btn__arrow { width: 19px; height: 19px; transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn__tg { width: 19px; height: 19px; fill: currentColor; }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-stuck {
  background: rgba(251, 243, 234, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px -20px rgba(36,26,21,.5);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--salmon);
}
.brand__text {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.brand__text em {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--salmon-dk);
}

.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links > a:not(.btn):not(.nav__tg) {
  font-weight: 500;
  font-size: .97rem;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s;
}
.nav__links > a:not(.btn):not(.nav__tg)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 2px;
  background: var(--salmon);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav__links > a:not(.btn):not(.nav__tg):hover { color: var(--ink); }
.nav__links > a:not(.btn):not(.nav__tg):hover::after { transform: scaleX(1); }

.nav__tg {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .95rem; color: var(--ink);
  transition: color .2s;
}
.nav__tg svg { width: 18px; height: 18px; fill: #2AA3E0; }
.nav__tg:hover { color: #2AA3E0; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 0; border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  cursor: pointer;
  padding: 13px 12px;
}
.burger span {
  display: block; height: 2.4px; border-radius: 2px;
  background: var(--ink);
  transition: transform .28s, opacity .2s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 84px;
  overflow: hidden;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  pointer-events: none;
}
.hero__blob--1 { width: 640px; height: 640px; right: -180px; top: -160px; background: var(--salmon-lt); }
.hero__blob--2 { width: 520px; height: 520px; left: -220px; bottom: -240px; background: #F6DCC5; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem .45rem .75rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  font-size: .84rem; font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #35C46A;
  box-shadow: 0 0 0 0 rgba(53,196,106,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(53,196,106,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(53,196,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,196,106,0); }
}

.hero__title {
  font-size: clamp(3.4rem, 9.5vw, 6.6rem);
  margin-bottom: 1.1rem;
}
.hero__sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 1.9rem;
}

/* Contract address box */
.ca {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  margin-bottom: 1.8rem;
  max-width: 560px;
}
.ca__label {
  display: block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .5rem;
}
.ca__row { display: flex; align-items: center; gap: .8rem; }
.ca__code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;
  font-size: clamp(.72rem, 2.1vw, .92rem);
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.ca__code::-webkit-scrollbar { display: none; }
.ca__copy {
  display: inline-flex; align-items: center; gap: .4rem;
  flex-shrink: 0;
  border: 0; border-radius: 999px;
  padding: .55rem 1rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700; font-size: .85rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.ca__copy svg { width: 15px; height: 15px; fill: currentColor; }
.ca__copy:hover { background: var(--salmon-dk); transform: translateY(-1px); }
.ca__copy.is-done { background: #35A85F; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 2.2rem;
  list-style: none; margin: 0; padding: 0;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 800;
  letter-spacing: -.03em;
  color: var(--salmon-dk);
}
.hero__stats span { font-size: .82rem; color: var(--ink-mute); font-weight: 500; }

/* Hero artwork */
.hero__art { position: relative; display: grid; place-items: center; }
.hero__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, #fff 0%, var(--cream-2) 55%, var(--salmon-lt) 100%);
  box-shadow: var(--shadow-lg);
}
.hero__img {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(-1.2deg); }
}

.sticker {
  position: absolute;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 700; font-size: .92rem;
  box-shadow: var(--shadow-md), inset 0 0 0 1.5px var(--line);
  white-space: nowrap;
}
.sticker--1 { top: 8%; left: -2%; transform: rotate(-9deg); color: var(--salmon-dk); }
.sticker--2 { bottom: 10%; right: -1%; transform: rotate(7deg); background: var(--ink); color: var(--cream); }

/* ---------------- Marquee ---------------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: .95rem 0;
  overflow: hidden;
  transform: rotate(-1.1deg) scale(1.04);
  margin: 1.5rem 0 4.5rem;
}
.marquee__track {
  display: flex; align-items: center; gap: 1.6rem;
  width: max-content;
  animation: slide 34s linear infinite;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .04em;
}
.marquee__track i { color: var(--salmon); font-style: normal; }
@keyframes slide { to { transform: translateX(-33.33%); } }

/* ---------------- Sections ---------------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--cream { background: var(--cream-2); }
.section--dark {
  background: var(--dark);
  color: var(--cream);
  border-radius: var(--r-xl);
  margin-inline: clamp(0px, 2vw, 26px);
}
.section--dark h2, .section--dark h3 { color: var(--paper); }

.kicker {
  display: inline-block;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--salmon-dk);
  margin-bottom: .9rem;
}
.kicker--light { color: var(--wool); }

.head { margin-bottom: 3rem; }
.head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.head__sub { color: var(--ink-soft); font-size: 1.06rem; margin-top: 1rem; }
.section--dark .head__sub { color: rgba(251, 243, 234, .7); }

/* ---------------- Story ---------------- */
.story {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.frame {
  position: relative;
  background: var(--paper);
  padding: 14px 14px 58px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transform: rotate(-2.4deg);
  transition: transform .4s;
}
.frame:hover { transform: rotate(0deg) scale(1.02); }
.frame img { border-radius: 12px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.frame__cap {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-mute);
  font-style: italic;
  padding-inline: 14px;
}

.story__copy p { color: var(--ink-soft); }
.story__copy h2 { margin-bottom: 1.4rem; }
.quote {
  margin: 1.8rem 0;
  padding: 1.2rem 0 1.2rem 1.6rem;
  border-left: 4px solid var(--salmon);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
}
.story__punch {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--ink) !important;
  margin-top: 1.6rem;
}
.story__punch span { color: var(--salmon-dk); }

/* ---------------- Cards (tokenomics) ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
}
.card {
  background: rgba(255, 253, 250, .05);
  border: 1px solid var(--line-lt);
  border-radius: var(--r-md);
  padding: 1.9rem 1.6rem;
  transition: transform .3s, background .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-6px);
  background: rgba(255, 253, 250, .09);
  border-color: rgba(233, 169, 150, .5);
}
.card__ico { font-size: 1.7rem; display: block; margin-bottom: .9rem; }
.card h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.card p { color: rgba(251, 243, 234, .68); font-size: .96rem; margin: 0; }

/* ---------------- Steps ---------------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}
.step {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 2rem 1.6rem 1.7rem;
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md), inset 0 0 0 1px transparent; }
.step__num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--salmon-lt), var(--salmon));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: .55rem; }
.step p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

.buy__cta { text-align: center; margin-top: 3rem; }

/* ---------------- Roadmap ---------------- */
.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}
.phase {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 2.1rem 1.9rem;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  transition: transform .3s;
}
.phase:hover { transform: translateY(-6px); }
.phase--mid { background: var(--ink); color: var(--cream); box-shadow: var(--shadow-lg); }
.phase--mid h3 { color: var(--paper); }
.phase__tag {
  display: inline-block;
  padding: .34rem .85rem;
  border-radius: 999px;
  background: var(--salmon);
  color: #fff;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.phase h3 { font-size: 1.6rem; margin-bottom: 1.1rem; }
.phase ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.phase li {
  position: relative;
  padding-left: 1.7rem;
  font-size: .97rem;
  color: var(--ink-soft);
}
.phase--mid li { color: rgba(251, 243, 234, .74); }
.phase li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--salmon);
}
.phases__note {
  text-align: center;
  margin-top: 2.4rem;
  color: var(--ink-mute);
  font-size: 1.02rem;
}
.phases__note em { color: var(--salmon-dk); font-style: normal; font-weight: 700; }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: .8rem; }
.faq__item {
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: box-shadow .25s;
}
.faq__item[open] { box-shadow: var(--shadow-md), inset 0 0 0 1px transparent; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -.01em;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus {
  position: relative;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream-2);
  transition: background .25s, transform .25s;
}
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute; inset: 50% 7px auto 7px;
  height: 2.2px; border-radius: 2px;
  background: var(--ink);
  transform: translateY(-50%);
  transition: transform .25s, background .25s;
}
.faq__plus::after { transform: translateY(-50%) rotate(90deg); }
.faq__item[open] .faq__plus { background: var(--salmon); }
.faq__item[open] .faq__plus::before,
.faq__item[open] .faq__plus::after { background: #fff; }
.faq__item[open] .faq__plus::after { transform: translateY(-50%) rotate(0deg); }
.faq__item p {
  margin: 0;
  padding: 0 1.5rem 1.4rem;
  color: var(--ink-soft);
  font-size: .99rem;
  max-width: 62ch;
}

/* ---------------- CTA ---------------- */
.cta { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.cta__inner {
  display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, var(--salmon-lt) 0%, var(--wool) 100%);
  border-radius: var(--r-xl);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  box-shadow: var(--shadow-md);
}
.cta__img {
  width: clamp(120px, 20vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(255, 253, 250, .55);
}
.cta h2 { margin-bottom: .7rem; }
.cta p { color: #57392E; max-width: 46ch; }
.cta__btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* ---------------- Footer ---------------- */
.footer { background: var(--dark); color: rgba(251, 243, 234, .72); padding: 3.5rem 0 2.5rem; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line-lt);
}
.footer__brand { display: flex; align-items: center; gap: .85rem; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--paper);
}
.footer__brand span { font-size: .82rem; letter-spacing: .08em; }

.footer__ca { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.footer__ca span {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--wool);
}
.footer__ca code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;
  font-size: .78rem;
  color: rgba(251, 243, 234, .85);
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-weight: 500; font-size: .95rem; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--salmon); }

.footer__legal { padding-top: 1.8rem; }
.footer__legal p { font-size: .82rem; line-height: 1.7; color: rgba(251, 243, 234, .48); max-width: 82ch; }
.footer__copy { margin: 0; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 140%);
  z-index: 90;
  background: var(--ink);
  color: var(--cream);
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow-lg);
  transition: transform .4s cubic-bezier(.2,.9,.3,1.3);
  pointer-events: none;
}
.toast.is-show { transform: translate(-50%, 0); }

/* ---------------- Scroll reveal ----------------
   Only hidden once script.js has flagged the document as JS-capable, so a
   script error or a blocked file can never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__art { order: 1; margin-bottom: 1rem; }
  .hero__img { max-width: 380px; }
  .eyebrow, .ca { margin-inline: auto; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .story { grid-template-columns: 1fr; }
  .story__art { max-width: 420px; margin-inline: auto; }
  .cta__inner { flex-direction: column; text-align: center; }
  .cta p { margin-inline: auto; }
  .cta__btns { justify-content: center; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav.is-open { background: var(--cream); }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    padding: 1.2rem 4vw 1.8rem;
    background: rgba(251, 243, 234, .97);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -24px rgba(36,26,21,.6);
    transform: translateY(-130%);
    transition: transform .35s cubic-bezier(.2,.8,.3,1);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a:not(.btn) { padding: .8rem .2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: .9rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--nav-h) + 26px); }
  .hero__stats { gap: 1.4rem; }
  .hero__stats strong { font-size: 1.45rem; }
  .sticker { font-size: .8rem; padding: .45rem .9rem; }
  .sticker--1 { left: -4%; }
  .sticker--2 { right: -4%; }
  .btn { width: 100%; }
  .hero__cta, .cta__btns { width: 100%; }
  .section--dark { border-radius: var(--r-lg); margin-inline: 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__ca { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
