/* css/style.css frontend*/

:root {
  color-scheme: dark;
  --gold: #ffd466;
  --gold-strong: #ffca41;
  --discord: #5865f2;
  --discord-soft: #8b93ff;
  --ink: #0b0b0c;
  --dark: #050505;
  --dark-2: #0a0a0b;
  --text: #f6f4ee;
  --muted: #96918a;
  --muted-light: #bdb8b0;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .14);
  --glass-light: rgba(255, 255, 255, .30);
  --glass-border: rgba(255, 255, 255, .48);
  --shell: 1440px;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 26px 70px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--dark);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }

.app-root {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--gold);
  border-radius: 0;
}

.shell {
  position: relative;
  width: min(var(--shell), calc(100% - 64px));
  margin: 0 auto;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px max(24px, calc((100vw - var(--shell)) / 2));
  background: var(--glass-light);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 12px 34px rgba(77, 58, 16, .13);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  transform: translate3d(0, 0, 0);
  transition: transform .42s cubic-bezier(.22, .7, .22, 1), opacity .28s ease, background .28s ease, color .28s ease;
  will-change: transform;
}

.site-nav.nav-hidden {
  transform: translate3d(0, -115%, 0);
  opacity: 0;
  pointer-events: none;
}

.site-nav.nav-on-dark {
  background: rgba(255, 255, 255, .09);
  border-bottom-color: rgba(255, 255, 255, .12);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: #17120a;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.035em;
}

.brand-name {
  color: #17120a;
  white-space: nowrap;
}

.site-nav.nav-on-dark .brand,
.site-nav.nav-on-dark .brand-name { color: #fff; }

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(145deg, #ffe39a, var(--gold));
  box-shadow: 0 9px 24px rgba(47, 33, 7, .15);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: rgba(23, 18, 10, .80);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  padding: 10px 12px;
  border-radius: 12px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.site-nav.nav-on-dark .nav-links a { color: rgba(255, 255, 255, .84); }
.nav-links a:hover {
  color: #11100d;
  background: rgba(255, 255, 255, .34);
  transform: translateY(-1px);
}
.site-nav.nav-on-dark .nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.10);
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: min(780px, 88vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 148px 0 116px;
  background:
    radial-gradient(circle at 84% 18%, rgba(88,101,242,.17), transparent 21%),
    radial-gradient(circle at 10% 80%, rgba(255,247,211,.45), transparent 29%),
    radial-gradient(circle at 92% 82%, rgba(219,143,13,.22), transparent 24%),
    linear-gradient(125deg, #ffd466 0%, #ffd879 42%, #f1bc46 73%, #ffd466 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: -180px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.20), transparent 65%);
  filter: blur(10px);
  opacity: .75;
  pointer-events: none;
  z-index: -1;
  animation: heroHalo 14s ease-in-out infinite alternate;
}

.hero-grid {
  width: min(var(--shell), calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, .42fr);
  gap: clamp(46px, 7vw, 120px);
  align-items: center;
}

.hero-grid > div:first-child { animation: contentReveal .78s cubic-bezier(.2,.75,.25,1) .06s both; }

h1 {
  margin: 0 0 20px;
  max-width: 1040px;
  font-size: clamp(56px, 6.3vw, 112px);
  line-height: .91;
  letter-spacing: -.075em;
  color: var(--ink);
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.62;
  color: rgba(11, 11, 12, .69);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: var(--gold);
  background: var(--ink);
  box-shadow: 0 15px 30px rgba(11,11,12,.18);
}
.btn-primary:hover { box-shadow: 0 19px 38px rgba(11,11,12,.24); }

.hero-icon {
  position: relative;
  justify-self: end;
  width: clamp(150px, 17vw, 270px);
  display: grid;
  place-items: center;
  animation: iconReveal .88s cubic-bezier(.2,.75,.25,1) .16s both;
}

.hero-icon::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.34), transparent 62%);
  filter: blur(18px);
  opacity: .62;
  z-index: -1;
  animation: iconHalo 6.5s ease-in-out infinite;
}

.hero-icon img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(39,29,8,.16));
  animation: iconFloat 7s ease-in-out infinite;
  will-change: transform;
}

.blueprint-zone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: var(--text);
  border-top: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 -18px 42px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,212,102,.08);
}

.blueprint-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .055;
  background-image:
    linear-gradient(rgba(255,255,255,.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.42) 1px, transparent 1px);
  background-size: 36px 36px;
}

.blueprint-zone .shell,
.blueprint-zone section,
.blueprint-zone footer { position: relative; z-index: 1; }

.section { padding: 116px 0 98px; }
.section-head { display: block; margin-bottom: 32px; }
.kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}
h2 {
  margin: 8px 0 0;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: .96;
  letter-spacing: -.06em;
}
.section-intro {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 20px;
  height: auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(15,15,15,.72);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  contain: layout paint;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -85px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  opacity: .10;
  transition: transform .42s ease, opacity .42s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 24px 52px rgba(0,0,0,.20);
}
.product-card:hover::after { transform: scale(1.15); opacity: .17; }
.product-card.active { border-color: rgba(255,212,102,.42); }

.product-poster {
  position: relative;
  width: calc(100% + 40px);
  margin: -20px -20px 24px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.09);
  border-radius: 21px 21px 13px 13px;
  background: rgba(255,255,255,.035);
  aspect-ratio: 3000 / 560;
}

.product-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-poster-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .10em;
  text-align: center;
  text-transform: uppercase;
}
.product-poster img[hidden] + .product-poster-fallback { display: flex; }

.product-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: #9b968f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.product-card p {
  margin: 0;
  max-width: 520px;
  color: #a49f98;
  font-size: 14px;
  line-height: 1.62;
}

.product-arrow {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  color: rgba(255,255,255,.60);
  transition: transform .25s ease, color .25s ease;
}
.product-card:hover .product-arrow { transform: translate(3px,-3px); color: #fff; }

footer { padding: 0 0 34px; }
.footer-line {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
  transition: color .22s ease;
}
.footer-contact a:hover { color: var(--gold); }

@keyframes heroHalo {
  from { transform: translate3d(-2%, 0, 0) scale(.98); }
  to { transform: translate3d(3%, 4%, 0) scale(1.04); }
}
@keyframes navReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes contentReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes iconReveal {
  from { opacity: 0; transform: translateX(18px) scale(.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes iconHalo {
  0%, 100% { transform: scale(.92); opacity: .45; }
  50% { transform: scale(1.08); opacity: .72; }
}

@media (max-width: 1200px) {
  .shell { width: min(1240px, calc(100% - 48px)); }
  .site-nav { padding-left: max(24px, calc((100vw - 1240px) / 2)); padding-right: max(24px, calc((100vw - 1240px) / 2)); }
  .hero-grid { width: min(1240px, calc(100% - 48px)); gap: 56px; }
  h1 { font-size: clamp(54px, 6.4vw, 92px); }
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding: 132px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 170px; gap: 28px; }
  .hero-icon { justify-self: end; width: 170px; }
  .products { grid-template-columns: 1fr; gap: 18px; }
  .product-card { min-height: 0; }
  .section { padding-top: 102px; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  .shell { width: calc(100% - 30px); }
  .site-nav { min-height: 54px; padding: 9px 15px; gap: 8px; }
  .brand { flex: 0 1 auto; max-width: 58%; gap: 9px; font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; flex: 0 0 28px; }
  .brand-name {
    max-width: clamp(72px, calc(100vw - 230px), 205px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-links { flex: 0 0 auto; gap: 6px; }
  .nav-links a { padding: 9px 10px; font-size: 12px; white-space: nowrap; }
  .hero { padding-top: 110px; padding-bottom: 74px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 92px; gap: 14px; width: calc(100% - 30px); }
  .hero-icon { width: 92px; }
  h1 { font-size: clamp(42px, 13vw, 68px); letter-spacing: -.07em; }
  .hero-copy { font-size: 15px; line-height: 1.56; }
  .hero-actions { margin-top: 25px; }
  .btn { width: 100%; }
  .blueprint-zone { box-shadow: 0 -12px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,212,102,.08); }
  .section { padding: 88px 0 72px; }
  h2 { font-size: clamp(34px, 10vw, 54px); }
  .section-intro { font-size: 14px; }
  .product-card { padding: 18px; }
  .product-poster { width: calc(100% + 36px); margin: -18px -18px 22px; border-radius: 17px 17px 12px 12px; }
}

@media (max-width: 480px) {
  .hero-grid { width: calc(100% - 24px); grid-template-columns: minmax(0, 1fr) 70px; gap: 10px; }
  .hero-icon { width: 70px; }
  .hero-copy { max-width: 100%; }
  .product-poster { margin-bottom: 20px; }
}

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

@font-face {
      font-family: "Magnifico";
      src: url("../assets/fonts/magnifico_nighttime_regular.otf") format("opentype");
      font-style: normal;
      font-weight: 400;
      font-display: swap;
    }

    .pancake-page {
      position: relative;
      min-height: 100vh;
      overflow: hidden;
      background: var(--dark);
    }

    .pancake-hero {
      position: relative;
      isolation: isolate;
      width: 100vw;
      min-height: max(720px, 100svh);
      margin-left: calc(50% - 50vw);
      display: grid;
      place-items: center;
      overflow: hidden;
      padding: 130px 24px 110px;
    }

    .pancake-video {
      position: absolute;
      inset: 0;

      width: 100%;
      height: 100%;
      min-width: 100%;
      min-height: 100%;

      object-fit: cover;
      object-position: center center;

      transform: scale(1.015);
      transform-origin: center center;

      z-index: -3;
      background: var(--dark);
    }

    .pancake-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      pointer-events: none;

      background:
        radial-gradient(
          circle at 50% 44%,
          rgba(255, 255, 255, .28) 0%,
          rgba(255, 255, 255, .17) 27%,
          rgba(255, 255, 255, .08) 58%,
          rgba(255, 255, 255, .04) 100%
        );

      backdrop-filter:
        blur(5px)
        saturate(125%)
        brightness(1.08);

      -webkit-backdrop-filter:
        blur(5px)
        saturate(125%)
        brightness(1.08);
    }

    .pancake-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;

      background:
        linear-gradient(
          180deg,
          rgba(255, 255, 255, .08) 0%,
          rgba(255, 255, 255, .025) 36%,
          rgba(0, 0, 0, .13) 100%
        );
    }

    .pancake-content {
      width: min(1180px, calc(100% - 48px));

      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;

      text-align: center;
    }

    .pancake-title {
      margin: 0;

      color: #000;
      font-family: "Magnifico", cursive;

      font-size: clamp(58px, 8vw, 108px);
      line-height: .92;

      font-weight: 400;
      letter-spacing: 0;

      text-transform: uppercase;
      text-align: center;

      text-shadow: none;
    }

    .pancake-subtitle {
      max-width: 680px;
      margin: 18px 0 0;

      color: #0b0b0c;
      opacity: 1;

      font-size: clamp(16px, 1.35vw, 20px);
      line-height: 1.45;

      font-weight: 750;
      letter-spacing: -.02em;
      text-align: center;
    }

    .pancake-actions {
      display: flex;
      flex-direction: column;
      align-items: center;

      gap: 12px;
      margin-top: 34px;
    }

    .pancake-actions .btn {
      width: auto;
    }

    .pancake-actions .btn-primary {
      color: var(--gold);
      background: var(--ink);
      border-color: transparent;

      box-shadow:
        0 15px 30px rgba(11, 11, 12, .18),
        0 6px 14px rgba(11, 11, 12, .10);
    }

    .pancake-actions .btn-secondary {
      color: var(--ink);
      background: rgba(255, 255, 255, .38);

      border-color: rgba(255, 255, 255, .56);

      backdrop-filter: blur(16px) saturate(120%);
      -webkit-backdrop-filter: blur(16px) saturate(120%);

      box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
    }

    .pancake-actions .btn-secondary:hover {
      background: rgba(255, 255, 255, .50);
      border-color: rgba(255, 255, 255, .70);
    }

    .pancake-more {
      position: absolute;
      left: 50%;
      bottom: 38px;

      transform: translateX(-50%);

      color: rgba(255, 255, 255, .86);

      font-size: 11px;
      font-weight: 850;
      letter-spacing: .15em;

      text-transform: uppercase;
      text-decoration: none;

      transition:
        color .2s ease,
        transform .2s ease;

      white-space: nowrap;
    }

    .pancake-more:hover {
      color: #fff;
      transform: translateX(-50%) translateY(-2px);
    }

    .pancake-blueprint {
      position: relative;
      isolation: isolate;

      overflow: hidden;

      min-height: auto;
      padding: 92px 0 120px;

      background: var(--dark);
      color: var(--text);

      border-top: 0;
      box-shadow: none;
    }

    .pancake-blueprint::after {
      content: "";

      position: absolute;
      inset: 0;

      z-index: 0;
      pointer-events: none;

      opacity: .045;

      background-image:
        linear-gradient(
          rgba(255,255,255,.42) 1px,
          transparent 1px
        ),
        linear-gradient(
          90deg,
          rgba(255,255,255,.42) 1px,
          transparent 1px
        );

      background-size: 36px 36px;
    }

    .pancake-blueprint .shell {
      position: relative;
      z-index: 1;
    }

    .pancake-blueprint-content {
      width: min(1180px, calc(100% - 48px));

      margin: 0 auto;
    }

    .pancake-teaser {
      width: min(980px, 100%);

      margin: 0 auto;

      text-align: center;
    }

    .pancake-blueprint .kicker {
      color: var(--gold);
    }

    .pancake-teaser h3 {
      margin: 9px 0 0;

      font-size: clamp(32px, 4.3vw, 50px);
      line-height: .98;

      letter-spacing: -.055em;
    }

    .pancake-teaser > p {
      max-width: 680px;

      margin: 18px auto 0;

      color: var(--muted);

      line-height: 1.65;
      font-size: 15px;
    }

    .pancake-video-embed {
      position: relative;

      width: min(900px, 100%);

      aspect-ratio: 16 / 9;

      margin: 34px auto 0;

      overflow: hidden;
      box-sizing: border-box;

      border-radius: 24px;
      border: 1px solid rgba(255, 255, 255, .10);

      background: #000;

      box-shadow:
        0 28px 70px rgba(0, 0, 0, .30),
        0 10px 26px rgba(0, 0, 0, .16);
    }

    .pancake-video-embed iframe {
      position: absolute;
      inset: 0;

      display: block;

      width: 100%;
      height: 100%;

      border: 0;
    }

    .pancake-showcase {
      display: grid;

      grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

      align-items: center;

      gap: clamp(42px, 7vw, 110px);

      margin-top: clamp(110px, 12vw, 170px);
    }

    .pancake-showcase.reverse .pancake-showcase-visual {
      order: 2;
    }

    .pancake-showcase.reverse .pancake-showcase-copy {
      order: 1;
    }

    .pancake-showcase-copy {
      max-width: 550px;
    }

    .pancake-showcase-copy .kicker {
      margin-bottom: 10px;

      font-size: 11px;
      font-weight: 850;
      letter-spacing: .16em;

      text-transform: uppercase;
    }

    .pancake-showcase-copy h4 {
      margin: 0;

      font-size: clamp(34px, 4.6vw, 58px);
      line-height: .95;

      letter-spacing: -.06em;
    }

    .pancake-showcase-copy p {
      max-width: 520px;

      margin: 22px 0 0;

      color: var(--muted);

      font-size: 16px;
      line-height: 1.75;
    }

    .pancake-showcase-copy strong {
      color: var(--text);
      font-weight: 750;
    }

    .pancake-showcase-visual {
      position: relative;

      display: flex;
      align-items: center;
      justify-content: center;

      min-height: 430px;

      padding: 0;

      border-radius: 32px;
      overflow: hidden;

      background:
        radial-gradient(
          circle at 50% 35%,
          rgba(255, 212, 102, .12),
          rgba(255, 212, 102, 0) 55%
        ),
        rgba(255, 255, 255, .025);

      border: 1px solid rgba(255, 255, 255, .08);

      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 24px 60px rgba(0, 0, 0, .16);
    }

    .pancake-showcase-visual::before {
      content: "";

      position: absolute;
      inset: 0;

      pointer-events: none;
      z-index: 1;

      background:
        linear-gradient(
          135deg,
          rgba(255, 255, 255, .08),
          transparent 35%,
          transparent 70%,
          rgba(255, 212, 102, .05)
        );
    }

    .pancake-feature-image {
      position: relative;
      z-index: 2;

      display: block;

      max-width: 100%;
      height: auto;

      border-radius: 22px;

      object-fit: contain;

      box-shadow:
        0 28px 55px rgba(0, 0, 0, .20),
        0 0 0 1px rgba(255,255,255,.05);
    }

    .pancake-feature-image--square {
      width: min(430px, 86%);
      aspect-ratio: 1 / 1;

      object-fit: cover;
    }

    .pancake-showcase.github-showcase {
      display: flex;
      flex-direction: column;

      width: min(1040px, 100%);

      margin-left: auto;
      margin-right: auto;

      gap: 42px;

      text-align: center;
    }

    .pancake-showcase.github-showcase
    .pancake-showcase-copy {
      width: min(760px, 100%);
      max-width: 760px;

      margin-left: auto;
      margin-right: auto;
    }

    .pancake-showcase.github-showcase
    .pancake-showcase-copy p {
      margin-left: auto;
      margin-right: auto;
    }

    .pancake-showcase.github-showcase
    .pancake-showcase-visual {
      width: min(920px, 100%);

      min-height: 0;

      margin-left: auto;
      margin-right: auto;

      aspect-ratio: 3000 / 1250;
    }

    .pancake-feature-image--github {
      width: 100%;
      height: 100%;

      border-radius: 22px;

      object-fit: cover;
    }

    .github-actions {
      display: flex;
      justify-content: center;

      margin-top: 28px;
    }

    .discord-join-actions {
      display: flex;
      justify-content: center;
      margin-top: -14px;
    }

    .pancake-documentation {
      position: relative;
      isolation: isolate;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
      width: min(900px, 100%);
      margin: clamp(42px, 6vw, 76px) auto 0;
      padding: clamp(24px, 4vw, 38px);
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, .09);
      border-radius: 28px;
      background:
        radial-gradient(circle at 8% 0%, rgba(255, 212, 102, .13), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018));
      box-shadow: 0 24px 55px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .05);
    }

    .pancake-documentation-copy {
      min-width: 0;
    }

    .pancake-documentation .kicker {
      margin-bottom: 10px;
      font-size: 10px;
      font-weight: 850;
      letter-spacing: .16em;
      text-transform: uppercase;
    }

    .pancake-documentation h4 {
      margin: 0;
      color: var(--text);
      font-size: clamp(23px, 3vw, 34px);
      line-height: 1.08;
      letter-spacing: -.045em;
    }

    .pancake-documentation p {
      max-width: 540px;
      margin: 12px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65;
    }

    .pancake-documentation-button {
      flex: 0 0 auto;
      white-space: nowrap;
    }

    .pancake-final-cta {
      position: relative;
      isolation: isolate;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: min(1040px, 100%);
      margin: clamp(100px, 12vw, 160px) auto 8px;
      padding: clamp(44px, 7vw, 82px) clamp(22px, 6vw, 76px);
      overflow: hidden;
      text-align: center;
      border: 1px solid rgba(255, 255, 255, .10);
      border-radius: 34px;
      background:
        radial-gradient(ellipse at 50% -10%, rgba(255, 212, 102, .19), transparent 58%),
        linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018));
      box-shadow: 0 30px 75px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .06);
    }

    .pancake-final-cta::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      opacity: .035;
      background-image:
        linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
      background-size: 34px 34px;
      mask-image: linear-gradient(to bottom, black, transparent 90%);
    }

    .pancake-final-cta .kicker {
      color: var(--gold);
      font-size: 10px;
      font-weight: 850;
      letter-spacing: .19em;
      text-transform: uppercase;
    }

    .pancake-final-cta h2 {
      margin: 16px 0 0;
      color: var(--text);
      font-size: clamp(39px, 6.5vw, 72px);
      line-height: .96;
      letter-spacing: -.065em;
      text-wrap: balance;
    }

    .pancake-final-cta > p {
      max-width: 560px;
      margin: 20px auto 0;
      color: var(--muted);
      font-size: clamp(14px, 1.5vw, 16px);
      line-height: 1.75;
    }

    .pancake-final-cta-actions {
      display: flex;
      justify-content: center;
      width: 100%;
      margin-top: 32px;
    }

    .pancake-final-cta .btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      min-width: 260px;
      min-height: 64px;
      padding: 18px 34px;
      border-radius: 16px;
      font-size: 16px;
      font-weight: 850;
      box-shadow: 0 18px 38px rgba(0, 0, 0, .24), 0 0 0 1px rgba(255, 212, 102, .12);
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }

    .pancake-final-cta .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 23px 44px rgba(0, 0, 0, .29), 0 0 0 1px rgba(255, 212, 102, .2);
    }

    @media (max-width: 960px) {

      .pancake-showcase {
        grid-template-columns: 1fr;

        gap: 46px;

        margin-top: 100px;
      }

      .pancake-showcase.reverse
      .pancake-showcase-visual,
      .pancake-showcase.reverse
      .pancake-showcase-copy {
        order: initial;
      }

      .pancake-showcase-copy {
        max-width: 720px;

        margin: 0 auto;

        text-align: center;
      }

      .pancake-showcase-copy p {
        margin-left: auto;
        margin-right: auto;
      }

      .pancake-showcase-visual {
        min-height: 390px;
      }

      .pancake-showcase.github-showcase {
        gap: 38px;
      }
    }

    @media (max-width: 680px) {

      .pancake-hero {
        min-height: 100svh;

        padding: 110px 15px 92px;
      }

      .pancake-content {
        width: calc(100% - 12px);
      }

      .pancake-title {
        font-size: clamp(56px, 12vw, 88px);
      }

      .pancake-subtitle {
        max-width: 340px;

        margin-top: 14px;

        font-size: 15px;
        line-height: 1.5;
      }

      .pancake-actions {
        width: min(100%, 360px);

        margin-top: 28px;
      }

      .pancake-actions .btn {
        width: 100%;
      }

      .pancake-more {
        bottom: 26px;

        font-size: 10px;
        letter-spacing: .12em;
      }

      .pancake-blueprint {
        padding: 72px 0 85px;
      }

      .pancake-blueprint-content {
        width: calc(100% - 30px);
      }

      .pancake-teaser h3 {
        font-size: clamp(30px, 9vw, 42px);
      }

      .pancake-teaser > p {
        max-width: 92%;

        font-size: 14px;
      }

      .pancake-video-embed {
        margin-top: 26px;

        border-radius: 18px;
      }

      .pancake-documentation {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        margin-top: 44px;
        padding: 25px 22px;
        border-radius: 23px;
      }

      .pancake-documentation h4 {
        font-size: clamp(24px, 7vw, 32px);
      }

      .pancake-documentation p {
        font-size: 13px;
      }

      .pancake-documentation-button {
        width: 100%;
        justify-content: center;
      }

      .pancake-final-cta {
        margin-top: 86px;
        padding: 42px 22px;
        border-radius: 26px;
      }

      .pancake-final-cta h2 {
        font-size: clamp(37px, 10vw, 48px);
      }

      .pancake-final-cta > p {
        font-size: 14px;
      }

      .pancake-final-cta-actions {
        margin-top: 26px;
      }

      .pancake-final-cta .btn-primary {
        width: 100%;
        min-width: 0;
        min-height: 60px;
        padding: 17px 22px;
        font-size: 15px;
      }

      .pancake-showcase {
        margin-top: 84px;

        gap: 34px;
      }

      .pancake-showcase-copy h4 {
        font-size: clamp(34px, 10vw, 48px);
      }

      .pancake-showcase-copy p {
        margin-top: 17px;

        font-size: 14px;
        line-height: 1.7;
      }

      .pancake-showcase-visual {
        min-height: 0;

        padding: 0;

        border-radius: 24px;
      }

      .pancake-feature-image--square {
        width: 86%;

        border-radius: 18px;
      }

      .pancake-showcase.github-showcase {
        width: 100%;

        gap: 30px;
      }

      .pancake-showcase.github-showcase
      .pancake-showcase-visual {
        width: 100%;

        aspect-ratio: 16 / 9;

        border-radius: 24px;
      }

      .pancake-feature-image--github {
        border-radius: 18px;
      }

      .github-actions {
        margin-top: 24px;
      }
    }

    @media (max-width: 420px) {

      .pancake-hero {
        padding-left: 12px;
        padding-right: 12px;
      }

      .pancake-title {
        font-size: 12vw;
      }

      .pancake-blueprint-content {
        width: calc(100% - 22px);
      }

      .pancake-showcase-visual {
        min-height: 0;
      }

      .pancake-feature-image--square {
        width: 90%;
      }

      .pancake-showcase.github-showcase
      .pancake-showcase-visual {
        aspect-ratio: 3000 / 1250;
      }
    }

    @media (min-width: 1600px) {

      .pancake-content {
        width: min(1280px, calc(100% - 100px));
      }

      .pancake-blueprint-content {
        width: min(1280px, calc(100% - 100px));
      }

      .pancake-hero {
        padding-top: 150px;
        padding-bottom: 130px;
      }
    }

    @media (prefers-reduced-motion: reduce) {

      html {
        scroll-behavior: auto;
      }

      .pancake-video {
        display: none;
      }
    }


/* ================================
   PANCAKE — SUBTLE ANIMATIONS
   ================================ */

@media (prefers-reduced-motion: no-preference) {

  /* Smooth navigation */
  html {
    scroll-behavior: smooth;
  }

  /* Hero entrance */
  .pancake-hero .pancake-content {
    animation: pancakeFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  /* Scroll reveal for page sections */
  .pancake-page .reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.65s ease,
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .pancake-page .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Buttons: subtle lift on hover */
  .pancake-page .btn {
    transition:
      transform 0.22s ease,
      filter 0.22s ease,
      box-shadow 0.22s ease;
  }

  .pancake-page .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
  }

  .pancake-page .btn:active {
    transform: translateY(0);
  }

  /* Navigation and footer links */
  .pancake-page .footer-contact a {
    transition:
      color 0.2s ease,
      opacity 0.2s ease;
  }

  .pancake-page .footer-contact a:hover {
    opacity: 0.75;
  }

  /* Feature images: minimal zoom */
  .pancake-page .pancake-feature-image {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .pancake-page .pancake-showcase:hover .pancake-feature-image {
    transform: scale(1.025);
  }
}

/* Shared entrance animation */
@keyframes pancakeFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   PANCAKE — RESPONSIVE ADJUSTMENTS
   ========================================= */

/* Tablets and smaller laptops */
@media (max-width: 960px) {

  .pancake-page,
  .pancake-page * {
    min-width: 0;
  }

  .pancake-page .pancake-hero {
    width: 100%;
    margin-left: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: 110px 24px 85px;
  }

  .pancake-page .pancake-content {
    width: 100%;
    max-width: 760px;
  }

  .pancake-page .pancake-title {
    font-size: clamp(52px, 12vw, 88px);
    overflow-wrap: break-word;
  }

  .pancake-page .pancake-subtitle {
    max-width: 100%;
  }

  .pancake-page .pancake-blueprint {
    padding: 72px 0 90px;
  }

  .pancake-page .pancake-blueprint > .shell {
    width: calc(100% - 40px);
  }

  .pancake-page .pancake-blueprint-content {
    width: 100%;
  }

  .pancake-page .pancake-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-top: 90px;
  }

  .pancake-page .pancake-showcase.reverse .pancake-showcase-visual,
  .pancake-page .pancake-showcase.reverse .pancake-showcase-copy {
    order: initial;
  }

  .pancake-page .pancake-showcase-copy {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
  }

  .pancake-page .pancake-showcase-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .pancake-page .pancake-showcase-visual {
    width: 100%;
    min-height: clamp(260px, 42vw, 390px);
  }

  .pancake-page .pancake-feature-image--square {
    width: min(86%, 430px);
  }

  .pancake-page .pancake-documentation {
    gap: 22px;
  }

  .pancake-page .pancake-final-cta {
    width: 100%;
  }

  .pancake-page .pancake-video-embed {
    width: 100%;
  }
}

/* Mobile devices */
@media (max-width: 680px) {

  html {
    scroll-padding-top: 70px;
  }

  .pancake-page .shell {
    width: calc(100% - 30px);
  }

  /* Hero */
  .pancake-page .pancake-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 100px 12px 75px;
  }

  .pancake-page .pancake-video {
    object-position: center;
  }

  .pancake-page .pancake-content {
    width: 100%;
  }

  .pancake-page .pancake-title {
    font-size: clamp(48px, 12vw, 82px);
    line-height: 1;
  }

  .pancake-page .pancake-subtitle {
    max-width: 340px;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .pancake-page .pancake-actions {
    width: min(100%, 340px);
    margin-top: 26px;
    gap: 11px;
  }

  .pancake-page .pancake-actions .btn {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    white-space: normal;
    text-align: center;
  }

  /* Content section */
  .pancake-page .pancake-blueprint {
    padding: 58px 0 72px;
  }

  .pancake-page .pancake-blueprint > .shell {
    width: calc(100% - 28px);
  }

  .pancake-page .pancake-blueprint-content {
    width: 100%;
  }

  .pancake-page .pancake-teaser h3 {
    font-size: clamp(28px, 8.5vw, 42px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .pancake-page .pancake-teaser > p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.65;
  }

  /* Responsive YouTube embed */
  .pancake-page .pancake-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 24px;
    border-radius: 16px;
  }

  .pancake-page .pancake-video-embed iframe {
    width: 100%;
    height: 100%;
  }

  /* Documentation */
  .pancake-page .pancake-documentation {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-top: 40px;
    padding: 23px 19px;
    border-radius: 22px;
  }

  .pancake-page .pancake-documentation h4 {
    font-size: clamp(23px, 7vw, 32px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .pancake-page .pancake-documentation p {
    font-size: 13px;
    line-height: 1.65;
  }

  .pancake-page .pancake-documentation > .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  /* Feature showcases */
  .pancake-page .pancake-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 76px;
  }

  .pancake-page .pancake-showcase-copy {
    width: 100%;
    text-align: center;
  }

  .pancake-page .pancake-showcase-copy h4 {
    font-size: clamp(32px, 9.5vw, 46px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .pancake-page .pancake-showcase-copy p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .pancake-page .pancake-showcase-visual {
    width: 100%;
    min-height: 0;
    padding: 12px;
    border-radius: 22px;
  }

  .pancake-page .pancake-feature-image--square {
    width: min(100%, 380px);
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 16px;
  }

  /* Final call to action */
  .pancake-page .pancake-final-cta {
    width: 100%;
    margin-top: 76px;
    padding: 38px 20px;
    border-radius: 23px;
  }

  .pancake-page .pancake-final-cta h2 {
    max-width: 100%;
    font-size: clamp(34px, 9.5vw, 46px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .pancake-page .pancake-final-cta > p {
    margin-top: 17px;
    font-size: 14px;
    line-height: 1.7;
  }

  .pancake-page .pancake-final-cta-actions {
    margin-top: 24px;
  }

  .pancake-page .pancake-final-cta .btn-primary {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 15px 18px;
    font-size: 14px;
  }

  /* Footer */
  .pancake-page .footer-line {
    gap: 12px;
    line-height: 1.6;
  }

  .pancake-page .footer-contact {
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pancake-page .footer-contact a {
    overflow-wrap: anywhere;
  }
}

/* Extra-small phones */
@media (max-width: 360px) {

  .pancake-page .pancake-title {
    font-size: 12vw;
  }

  .pancake-page .pancake-blueprint > .shell {
    width: calc(100% - 22px);
  }

  .pancake-page .pancake-final-cta {
    padding-inline: 15px;
  }
}

/* Touch devices: avoid hover-based movement */
@media (hover: none) and (pointer: coarse) {

  .pancake-page .pancake-showcase:hover .pancake-feature-image {
    transform: none;
  }

  .pancake-page .btn:hover {
    transform: none;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

  .pancake-page *,
  .pancake-page *::before,
  .pancake-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================
   PROJECT PAGE TEMPLATE (merged from project.css)
   Scoped to .project-page to protect the existing site styles.
   ========================================= */
.project-page {
  --page-bg: #050505;
  --panel: rgba(16,16,17,.72);
  --text: #f7f4ed;
  --muted: #9a958e;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.16);
  --accent: #ffd466;
  --accent-2: #ff914d;
  --discord: #5865f2;
  --discord-2: #7289da;
  --radius-xl: 30px;
  --radius-lg: 22px;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--page-bg);
  color: var(--text);
}

.project-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image:
    linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 36px 36px;
}

.project-page a { color: inherit; }
.project-page .shell {
  width: min(1180px, calc(100% - 48px));
}

.project-page .page-main {
  min-height: calc(100vh - 110px);
  display: grid;
  align-items: center;
  padding: 110px 0 90px;
}
.project-page .page-hero { max-width: 920px; }
.project-page .page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.project-page .page-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}
.project-page h1 {
  margin: 18px 0 18px;
  max-width: 900px;
  font-size: clamp(52px, 8vw, 100px);
  line-height: .91;
  letter-spacing: -.075em;
}
.project-page .page-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}
.project-page .page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.project-page .page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.project-page .page-button:hover { transform: translateY(-2px); }
.project-page .page-button.primary {
  color: #060606;
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 18%, transparent);
}
.project-page .page-button.secondary { background: rgba(255,255,255,.04); }
.project-page .page-button.secondary:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.07);
}
.project-page .template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.project-page .template-card {
  min-height: 240px;
  padding: 25px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.project-page .template-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -.045em;
}
.project-page .template-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.project-page .template-card-wide { grid-column: 1 / -1; min-height: 190px; }
.project-page .page-footer {
  margin-top: 70px;
  padding: 22px 0 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}
.project-page .page-footer a { color: var(--muted); text-decoration: none; }
.project-page .page-footer a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .project-page .shell { width: min(100% - 30px, 1180px); }
  .project-page .page-main { padding: 90px 0 70px; }
  .project-page h1 { font-size: clamp(48px, 14vw, 76px); }
  .project-page .template-grid { grid-template-columns: 1fr; }
  .project-page .template-card-wide { grid-column: auto; }
  .project-page .page-footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
