:root {
  color-scheme: light;
  --ink: #241306;
  --text: #3b2412;
  --muted: #6b5131;
  --cream: #fff3c7;
  --paper: #ead59f;
  --honey: #ffc247;
  --honey-light: #ffe6a7;
  --button-blue: #1678d2;
  --button-blue-dark: #0b4b83;
  --orange: #d96b28;
  --red: #c43d32;
  --green: #2f8b4f;
  --grass: #8fbd64;
  --river: #12a7d8;
  --sky: #8fd0ff;
  --brown: #6b3d21;
  --deep: #180d07;
  --panel: rgba(24, 13, 7, 0.9);
  --line: rgba(107, 61, 33, 0.24);
  --shadow: 0 24px 60px rgba(79, 43, 15, 0.2);
  --font-title: "Bungee", system-ui, sans-serif;
  --font-ui: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(255, 194, 71, 0.72);
  color: var(--ink);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px) 0 0 / 100% 38px,
    linear-gradient(90deg, rgba(107, 61, 33, 0.07) 2px, transparent 2px) 0 0 / 38px 100%,
    linear-gradient(180deg, #8fd0ff 0%, #ffd5a4 24%, #f2d17a 44%, #ead59f 100%);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 12%, rgba(18, 167, 216, 0.34), transparent 28rem),
    radial-gradient(circle at 86% 7%, rgba(196, 61, 50, 0.2), transparent 24rem),
    radial-gradient(circle at 72% 76%, rgba(47, 139, 79, 0.22), transparent 30rem);
}

body.has-open-memory {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.bee-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: clamp(26px, 2.8vw, 42px);
  aspect-ratio: 400 / 320;
  opacity: 0.96;
  pointer-events: none;
  background: url("assets/bee-fly-sprite.png") 0 0 / 400% 100% no-repeat;
  filter: drop-shadow(0 10px 10px rgba(36, 19, 6, 0.28));
  overflow: hidden;
  transform: translate3d(-120px, -120px, 0);
  transform-origin: 50% 50%;
  transition: opacity 180ms ease;
  animation: bee-float 1.25s ease-in-out infinite, bee-flap 0.46s steps(1) infinite;
}

.bee-cursor img {
  display: none;
}

@media (max-width: 760px) {
  .bee-cursor {
    width: 34px;
    z-index: 90;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-title);
  letter-spacing: 0;
}

h1 {
  color: var(--honey);
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  line-height: 0.92;
  text-shadow: 5px 5px 0 var(--brown), 8px 8px 0 rgba(36, 19, 6, 0.3);
  -webkit-text-stroke: 1px #241306;
}

h2 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.02;
}

h3 {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.35rem;
  line-height: 1.14;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.site-header {
  position: fixed;
  inset: 16px 22px auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 8px 12px 8px 16px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: rgba(255, 243, 199, 0.88);
  box-shadow: 0 8px 0 rgba(107, 61, 33, 0.32), var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 243, 199, 0.97);
  transform: translateY(-3px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: clamp(130px, 10vw, 160px);
  min-height: 50px;
}

.brand img {
  width: 100%;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 3px 0 rgba(107, 61, 33, 0.28));
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--brown);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a,
.header-cta,
.btn {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
}

.header-cta {
  padding: 0 18px;
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--brown);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  min-height: 100vh;
  padding: 112px clamp(20px, 5vw, 76px) 62px;
}

.hero-media {
  position: relative;
  min-height: clamp(430px, 52vw, 720px);
  border: 5px solid var(--deep);
  border-radius: 8px;
  background: var(--deep);
  box-shadow: 0 12px 0 var(--brown), var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
}

.snake-frame {
  padding: 8px;
  border: 0;
}

.snake-frame::before {
  content: "";
  position: absolute;
  inset: -42%;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 258deg,
    var(--honey) 258deg 286deg,
    #48b7ff 286deg 308deg,
    transparent 308deg 360deg
  );
  animation: snake-border 4s linear infinite;
}

.snake-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  border-radius: 5px;
  background: var(--deep);
}

.hero-bg {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  image-rendering: auto;
}

.hero-video {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: inherit;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 5px;
  background: var(--deep);
}

.hero-hud,
.dialogue-box {
  position: absolute;
  z-index: 5;
  border: 3px solid var(--honey);
  border-radius: 8px;
  background: var(--panel);
  color: var(--cream);
  box-shadow: 0 8px 0 rgba(24, 13, 7, 0.28);
}

.hero-hud {
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.hero-hud span {
  color: var(--honey-light);
  font-size: 0.78rem;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy p {
  margin-top: 24px;
  color: #4d3218;
  font-size: 1.22rem;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--red);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 6px;
  border-radius: 8px;
  background: var(--honey);
  border: 2px solid var(--brown);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  padding: 0 22px;
  box-shadow: 0 6px 0 var(--brown);
}

.btn.primary {
  background: var(--honey);
  color: var(--ink);
}

.btn.secondary {
  background: var(--cream);
  color: var(--brown);
}

.btn.light {
  background: var(--cream);
}

.credits-marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-block: 3px solid rgba(107, 61, 33, 0.22);
  background:
    linear-gradient(90deg, #fff7dc 0, transparent 8%, transparent 92%, #fff7dc 100%),
    linear-gradient(180deg, rgba(143, 208, 255, 0.34) 0%, #fff7dc 100%);
}

.credits-track {
  display: flex;
  width: max-content;
  animation: credits-scroll 64s linear infinite;
  will-change: transform;
}

.credits-group {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  padding-right: clamp(18px, 3vw, 42px);
  color: var(--brown);
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.credits-group strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(107, 61, 33, 0.28);
}

.credits-group span {
  color: var(--text);
}

.section,
.mission-section,
.inventory-section,
.world-section,
.next-section,
.download-section,
.institutional-section,
.partner-section,
.cta-section {
  padding: clamp(70px, 9vw, 132px) clamp(20px, 5vw, 76px);
  scroll-margin-top: 110px;
}

.section-heading {
  max-width: 980px;
}

.section-heading p {
  max-width: 780px;
  margin-top: 18px;
}

.journey-section {
  background: #fff7dc;
}

.game-frame {
  position: relative;
  margin-top: 42px;
  border: 5px solid var(--deep);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 12px 0 var(--brown), var(--shadow);
  overflow: hidden;
}

.gameplay-shot {
  width: 100%;
  aspect-ratio: 2048 / 922;
  object-fit: cover;
}

.dialogue-box {
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
}

.dialogue-box strong {
  color: var(--honey);
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.dialogue-box span {
  color: var(--cream);
  font-weight: 700;
}

.mission-section {
  background:
    linear-gradient(180deg, rgba(255, 243, 199, 0.82), rgba(234, 213, 159, 0.96)),
    var(--paper);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.mission-hint {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 8px 12px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(107, 61, 33, 0.34);
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
}

.mission-card {
  position: relative;
  border: 4px solid var(--brown);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 9px 0 rgba(107, 61, 33, 0.34), var(--shadow);
  overflow: hidden;
}

.mission-camera {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-bottom: 4px solid rgba(107, 61, 33, 0.34);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 194, 71, 0.35), transparent 5rem),
    linear-gradient(135deg, #fff7dc, #f3d686);
  cursor: pointer;
  overflow: hidden;
}

.mission-camera::before,
.mission-camera::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mission-camera::before {
  inset: 14px;
  border: 3px dashed rgba(107, 61, 33, 0.28);
  border-radius: 8px;
}

.mission-camera::after {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  filter: blur(18px);
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 180ms ease, transform 240ms ease;
}

.mission-camera:hover::after,
.mission-camera:focus-visible::after {
  opacity: 1;
  transform: scale(2.6);
}

.mission-camera:hover img,
.mission-camera:focus-visible img {
  transform: translateY(-6px) rotate(-2deg) scale(1.07);
}

.mission-camera:focus-visible {
  outline: 4px solid var(--button-blue);
  outline-offset: -8px;
}

.mission-camera img {
  position: relative;
  z-index: 1;
  width: clamp(76px, 24%, 118px);
  max-height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 12px 0 rgba(107, 61, 33, 0.24));
  transition: transform 220ms ease;
}

.mission-card div {
  padding: 20px;
}

.mission-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: var(--honey);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
}

.mission-card p {
  margin-top: 10px;
}

.memory-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(24, 13, 7, 0.76);
  backdrop-filter: blur(8px);
}

.memory-viewer[hidden] {
  display: none;
}

.memory-viewer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.52), transparent 22rem);
  animation: camera-flash 520ms ease both;
  pointer-events: none;
}

.memory-photo {
  position: relative;
  z-index: 1;
  width: min(920px, 92vw);
  margin: 0;
  padding: clamp(12px, 2vw, 20px);
  border: 5px solid var(--brown);
  border-radius: 8px;
  background: #fff7dc;
  box-shadow: 0 18px 0 rgba(24, 13, 7, 0.42), 0 26px 80px rgba(0, 0, 0, 0.36);
  transform-origin: 50% 65%;
  animation: photo-pop 460ms cubic-bezier(0.2, 0.9, 0.22, 1.15) both;
}

.memory-photo img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.memory-photo figcaption {
  display: grid;
  gap: 8px;
  padding: 16px 8px 4px;
}

.memory-photo strong {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.memory-photo span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.memory-close {
  position: fixed;
  top: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 6px 0 rgba(107, 61, 33, 0.58);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 700;
}

.inventory-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.52fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #173b28;
}

.inventory-section h2,
.inventory-section p {
  color: var(--cream);
}

.inventory-section .eyebrow {
  color: var(--honey);
}

.inventory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 4px solid var(--honey);
  border-radius: 8px;
  background: rgba(24, 13, 7, 0.82);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.24), var(--shadow);
}

.slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 5px solid var(--deep);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 48%),
    #fff7dc;
  box-shadow: 0 8px 0 var(--brown), 0 18px 28px rgba(24, 13, 7, 0.2);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.slot::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 1;
  border: 2px solid rgba(107, 61, 33, 0.2);
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px rgba(255, 230, 167, 0.46);
  pointer-events: none;
}

.slot:hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 0 var(--brown), 0 24px 38px rgba(24, 13, 7, 0.24);
}

.slot.active {
  background: var(--honey-light);
  box-shadow: 0 0 0 4px rgba(255, 194, 71, 0.24);
}

.slot img {
  position: relative;
  z-index: 2;
  width: 78%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 10px 5px rgba(36, 19, 6, 0.25));
}

.slot.item-bottle img {
  width: 86%;
  max-height: 86%;
}

.world-section {
  background: #fff7dc;
}

.world-carousel {
  position: relative;
  margin-top: 42px;
  border: 4px solid var(--brown);
  border-radius: 8px;
  background: var(--deep);
  box-shadow: 0 9px 0 rgba(107, 61, 33, 0.28), var(--shadow);
  overflow: hidden;
}

.carousel-track {
  position: relative;
  aspect-ratio: 2048 / 922;
  min-height: 360px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border: 3px solid var(--honey);
  border-radius: 8px;
  background: rgba(24, 13, 7, 0.86);
  color: var(--cream);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 58px;
  border: 3px solid var(--button-blue-dark);
  border-radius: 8px;
  background: var(--button-blue);
  color: var(--cream);
  box-shadow: 0 5px 0 var(--button-blue-dark);
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 74px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid var(--brown);
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 34px;
  background: var(--button-blue);
}

.next-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 194, 71, 0.18), rgba(47, 139, 79, 0.18)),
    #fff7dc;
}

.next-copy p {
  margin-top: 18px;
  max-width: 700px;
}

.next-panel {
  position: relative;
  min-height: 390px;
  border: 5px solid var(--deep);
  border-radius: 8px;
  background: var(--deep);
  box-shadow: 0 12px 0 rgba(107, 61, 33, 0.28), var(--shadow);
  overflow: hidden;
}

.next-panel img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.next-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 3px solid var(--honey);
  border-radius: 8px;
  background: rgba(24, 13, 7, 0.88);
  color: var(--cream);
  box-shadow: 0 8px 0 rgba(24, 13, 7, 0.24);
}

.next-status strong {
  color: var(--honey);
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.next-status span {
  font-weight: 800;
}

.next-roadmap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.next-roadmap article {
  padding: 20px;
  border: 4px solid var(--brown);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 9px 0 rgba(107, 61, 33, 0.28), var(--shadow);
}

.next-roadmap span {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
}

.next-roadmap p {
  margin-top: 10px;
}

.download-section {
  background:
    linear-gradient(180deg, rgba(255, 247, 220, 0.96), rgba(255, 230, 167, 0.92)),
    var(--cream);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: clamp(18px, 2vw, 22px);
  border: 4px solid var(--brown);
  border-radius: 8px;
  background: #fff7dc;
  box-shadow: 0 9px 0 rgba(107, 61, 33, 0.3), var(--shadow);
}

.download-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 194, 71, 0.24), rgba(255, 247, 220, 0.96)),
    #fff7dc;
}

.download-card > span,
.partner-options span {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 36px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: var(--honey);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
}

.download-card p {
  margin-top: 10px;
}

.download-card .btn {
  width: 100%;
  margin-top: auto;
}

.download-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  border: 3px solid rgba(107, 61, 33, 0.42);
  border-radius: 8px;
  background: var(--cream);
}

.download-icon img {
  width: 68%;
  max-height: 68%;
  object-fit: contain;
}

.mac-guide {
  border: 4px solid var(--deep);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 194, 71, 0.16), rgba(18, 167, 216, 0.08)),
    var(--panel);
  box-shadow: 0 10px 0 rgba(24, 13, 7, 0.28), var(--shadow);
  overflow: hidden;
}

.mac-guide:not([open]) {
  display: none;
}

.mac-guide[open] {
  display: block;
  margin-top: 28px;
}

.mac-guide summary,
.mac-guide summary::-webkit-details-marker {
  display: none;
}

.mac-guide-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mac-guide-title .eyebrow {
  margin-bottom: 0;
}

.mac-guide-title .eyebrow::before {
  display: none;
}

.macos-guide-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
  background: var(--honey-light);
}

.mac-guide-body {
  display: grid;
  grid-template-columns: minmax(300px, 0.32fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
  padding: clamp(22px, 4vw, 34px);
}

.mac-guide-title {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.mac-guide h3,
.mac-guide p,
.mac-guide .eyebrow {
  color: var(--cream);
}

.mac-guide p {
  grid-column: 2;
  margin-top: 0;
}

.mac-guide ol {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mac-step;
  align-self: stretch;
  scroll-margin-top: 130px;
}

.mac-guide li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  border: 3px solid rgba(255, 230, 167, 0.58);
  border-radius: 8px;
  background: rgba(255, 243, 199, 0.12);
  color: var(--cream);
  font-weight: 800;
  line-height: 1.38;
}

.mac-guide li::before {
  counter-increment: mac-step;
  content: counter(mac-step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--brown);
  border-radius: 8px;
  background: var(--honey);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
}

.mac-guide li span {
  min-width: 0;
}

.demo-feedback {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.68fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  margin-top: clamp(34px, 5vw, 58px);
  padding: clamp(22px, 4vw, 34px);
  border: 4px solid var(--brown);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 194, 71, 0.22), rgba(18, 167, 216, 0.1)),
    #fff7dc;
  box-shadow: 0 10px 0 rgba(107, 61, 33, 0.28), var(--shadow);
}

.demo-feedback .eyebrow::before {
  background: var(--blue);
}

.demo-feedback h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.demo-feedback p {
  margin-top: 16px;
  max-width: 680px;
}

.demo-feedback-form {
  min-width: 0;
  padding: 18px;
  border: 3px solid rgba(107, 61, 33, 0.28);
  border-radius: 8px;
  background: rgba(255, 243, 199, 0.76);
}

.institutional-section {
  scroll-margin-top: 132px;
  background:
    radial-gradient(circle at 86% 12%, rgba(18, 167, 216, 0.12), transparent 26rem),
    linear-gradient(180deg, rgba(255, 230, 167, 0.96), rgba(255, 247, 220, 0.94)),
    var(--cream);
}

.institutional-section .section-heading {
  max-width: 1060px;
}

.institutional-section .eyebrow {
  color: var(--orange);
}

.institutional-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.52fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.institutional-visual {
  position: relative;
  min-height: clamp(260px, 30vw, 430px);
}

.institutional-screen {
  width: 100%;
  min-height: 230px;
  border: 4px solid var(--brown);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 0 rgba(107, 61, 33, 0.28), var(--shadow);
}

.institutional-character {
  position: absolute;
  right: clamp(8px, 3vw, 28px);
  bottom: clamp(-22px, -2vw, -10px);
  width: clamp(118px, 13vw, 190px);
  filter: drop-shadow(0 18px 14px rgba(36, 19, 6, 0.28));
}

.partner-section {
  padding-top: clamp(112px, 10vw, 150px);
  scroll-margin-top: 140px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 194, 71, 0.11), transparent 28rem),
    linear-gradient(180deg, rgba(23, 59, 40, 0.98), rgba(24, 13, 7, 0.96)),
    #173b28;
}

.partner-section h2,
.partner-section p {
  color: var(--cream);
}

.partner-section .eyebrow {
  color: var(--honey);
}

.partner-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  margin-top: 42px;
}

.partner-showcase {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.brand-mission {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1535 / 688;
  border: 4px solid rgba(255, 194, 71, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(rgba(24, 13, 7, 0.2), rgba(24, 13, 7, 0.2)),
    url("assets/parceria-missao-picos.png") center / cover no-repeat,
    var(--deep);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.3), 0 24px 52px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.brand-mission img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-tag {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 3px solid var(--honey);
  border-radius: 8px;
  background: rgba(24, 13, 7, 0.88);
  color: var(--cream);
  box-shadow: 0 8px 0 rgba(24, 13, 7, 0.24);
}

.brand-tag strong {
  color: var(--honey);
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.brand-tag span {
  font-weight: 800;
  line-height: 1.35;
}

.partner-options {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.partner-options article,
.partner-wide-card {
  position: relative;
  min-height: 142px;
  padding: 22px 24px 22px 82px;
  border: 3px solid rgba(255, 194, 71, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 243, 199, 0.98), rgba(255, 230, 167, 0.88)),
    var(--cream);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.partner-wide-card {
  margin-top: clamp(28px, 4vw, 44px);
  min-height: 132px;
  border-color: transparent;
  box-shadow: none;
}

.partner-options article::before,
.partner-wide-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 48px;
  background:
    linear-gradient(180deg, rgba(255, 194, 71, 0.88), rgba(217, 107, 40, 0.84)),
    var(--honey);
}

.partner-options span,
.partner-wide-card span {
  position: absolute;
  top: 22px;
  left: 14px;
  z-index: 1;
  min-width: 40px;
  min-height: 34px;
  margin: 0;
  padding: 0 8px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: var(--button-blue);
  color: var(--cream);
  box-shadow: 0 4px 0 rgba(24, 13, 7, 0.34);
}

.partner-options p,
.partner-wide-card p {
  margin-top: 8px;
  color: var(--text);
  line-height: 1.5;
}

.partner-options h3,
.partner-wide-card h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.1;
}

.partner-steps {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(22px, 4vw, 34px);
  border: 3px solid rgba(255, 194, 71, 0.78);
  border-radius: 8px;
  background: rgba(24, 13, 7, 0.58);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.22);
}

.partner-steps h3 {
  color: var(--cream);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.08;
}

.partner-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: partner-step;
}

.partner-steps li {
  position: relative;
  min-height: 86px;
  padding: 18px 18px 18px 64px;
  border: 3px solid rgba(255, 194, 71, 0.7);
  border-radius: 8px;
  background: rgba(255, 243, 199, 0.96);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.25;
  counter-increment: partner-step;
}

.partner-steps li::before {
  content: counter(partner-step);
  position: absolute;
  top: 16px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: var(--button-blue);
  color: var(--cream);
  box-shadow: 0 4px 0 rgba(24, 13, 7, 0.32);
}

.institutional-partners {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(30px, 5vw, 52px);
  padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 38px) clamp(24px, 4vw, 36px) clamp(34px, 5vw, 54px);
  border: 4px solid var(--brown);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 243, 199, 0.98), rgba(255, 230, 167, 0.86)),
    var(--cream);
  box-shadow: 0 9px 0 rgba(107, 61, 33, 0.28), var(--shadow);
  overflow: hidden;
}

.institutional-partners::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14px;
  background:
    linear-gradient(180deg, rgba(47, 139, 79, 0.95), rgba(18, 167, 216, 0.88)),
    var(--green);
}

.institutional-partners h3,
.institutional-partners p {
  color: var(--ink);
}

.institutional-partners h3 {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.institutional-partners p {
  margin-top: 0;
}

.institutional-lead {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 16px;
}

.institutional-cta {
  min-height: 52px;
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 6px 0 rgba(107, 61, 33, 0.48);
}

.institutional-copy {
  display: grid;
  gap: 18px;
}

.institutional-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.institutional-badges span {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 2px solid rgba(107, 61, 33, 0.58);
  border-radius: 8px;
  background: rgba(255, 247, 220, 0.86);
  color: var(--brown);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.institutional-cards article {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  padding: 12px 16px 16px;
  border: 3px solid rgba(107, 61, 33, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 247, 220, 0.96), rgba(255, 230, 167, 0.7)),
    rgba(255, 247, 220, 0.88);
  box-shadow: 0 5px 0 rgba(107, 61, 33, 0.18);
}

.institutional-cards img {
  justify-self: center;
  width: min(100%, 230px);
  height: 112px;
  margin: -6px 0 8px;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(107, 61, 33, 0.18));
}

.institutional-cards h4 {
  color: var(--brown);
  font-family: var(--font-ui);
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.institutional-cards p {
  margin-top: 8px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.45;
}

.partner-contact {
  margin-top: clamp(34px, 5vw, 58px);
  scroll-margin-top: 132px;
  border: 3px solid rgba(255, 194, 71, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 243, 199, 0.98), rgba(255, 230, 167, 0.86)),
    var(--cream);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.partner-contact summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 118px;
  padding: clamp(20px, 3vw, 30px) clamp(22px, 4vw, 34px);
  cursor: pointer;
  list-style: none;
}

.partner-contact summary::-webkit-details-marker {
  display: none;
}

.partner-contact summary h3 {
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.contact-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--brown);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.partner-contact summary:hover .contact-toggle {
  transform: translateY(-2px);
}

.contact-hide {
  display: none;
}

.partner-contact[open] .contact-show {
  display: none;
}

.partner-contact[open] .contact-hide {
  display: inline;
}

.partner-contact-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.54fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  padding: 0 clamp(22px, 4vw, 34px) clamp(22px, 4vw, 34px);
}

.partner-contact-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.partner-contact-copy p {
  color: var(--ink);
}

.partner-contact-copy p {
  margin-top: 0;
}

.partner-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.partner-form label {
  display: grid;
  gap: 7px;
  color: var(--brown);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
}

.partner-form .full-field,
.partner-form button {
  grid-column: 1 / -1;
}

.partner-form input,
.partner-form select,
.partner-form textarea {
  width: 100%;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: #fff7dc;
  color: var(--ink);
  font: 700 1rem var(--font-body);
  outline: none;
  box-shadow: inset 0 3px 0 rgba(107, 61, 33, 0.12);
}

.partner-form input,
.partner-form select {
  min-height: 48px;
  padding: 0 14px;
}

.partner-form select {
  cursor: pointer;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--brown) 50%) calc(100% - 20px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--brown) 50%, transparent 50%) calc(100% - 13px) 50% / 7px 7px no-repeat,
    #fff7dc;
  padding-right: 38px;
}

.partner-form textarea {
  min-height: 132px;
  padding: 12px 14px;
  resize: vertical;
}

.partner-form input:focus,
.partner-form select:focus,
.partner-form textarea:focus {
  border-color: var(--honey);
  box-shadow: 0 0 0 4px rgba(255, 194, 71, 0.28);
}

.partner-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  color: var(--brown);
  font-family: var(--font-ui);
  font-weight: 700;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--red);
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background:
    linear-gradient(135deg, rgba(196, 61, 50, 0.95), rgba(217, 107, 40, 0.9)),
    var(--red);
}

.cta-section h2,
.cta-section p,
.cta-section .eyebrow {
  color: var(--cream);
}

.cta-section div {
  max-width: 900px;
}

.cta-section p {
  margin-top: 18px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes credits-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes snake-border {
  to {
    transform: rotate(1turn);
  }
}

@keyframes camera-flash {
  0% {
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes photo-pop {
  from {
    opacity: 0;
    transform: translateY(34px) rotate(-2deg) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes bee-float {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -8px;
  }
}

@keyframes bee-flap {
  0%,
  24.99% {
    background-position: 0 0;
  }
  25%,
  49.99% {
    background-position: 33.333% 0;
  }
  50%,
  74.99% {
    background-position: 66.666% 0;
  }
  75%,
  100% {
    background-position: 100% 0;
  }
}

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

  .credits-track {
    animation: none;
    transform: none;
  }

  .bee-cursor {
    animation: none;
    opacity: 0.72;
    transform: translate3d(calc(100vw - 64px), 118px, 0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .inventory-section,
  .next-section,
  .mac-guide-body,
  .demo-feedback,
  .institutional-hero,
  .institutional-partners,
  .partner-contact-body,
  .partner-layout,
  .partner-steps,
  .partner-steps ol {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .mission-grid,
  .next-roadmap {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mac-guide-title,
  .mac-guide p,
  .mac-guide ol {
    grid-column: auto;
    grid-row: auto;
  }

  .mac-guide ol {
    grid-template-columns: 1fr;
  }

  .institutional-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    inset: 10px 10px auto;
    min-height: 58px;
    padding: 6px 8px 6px 10px;
  }

  .brand {
    width: 128px;
    min-height: 44px;
    margin-left: 0;
  }

  .brand img {
    height: 44px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
    padding-top: 94px;
  }

  .hero-media {
    min-height: 420px;
  }

  .hero-hud {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .credits-marquee {
    padding: 14px 0;
  }

  .dialogue-box {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
  }

  .inventory,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    min-height: 250px;
  }

  .carousel-btn {
    width: 40px;
    height: 48px;
    font-size: 1.55rem;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .carousel-dots {
    bottom: 70px;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-card .btn,
  .demo-feedback-form,
  .partner-contact summary,
  .contact-toggle,
  .partner-form,
  .partner-form label,
  .partner-form button,
  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }

  .partner-form {
    grid-template-columns: 1fr;
  }

  .partner-contact summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-section {
    padding-top: 112px;
  }

  .partner-section .section-heading h2 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 1.03;
  }

  .partner-section .section-heading p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .partner-layout {
    gap: 24px;
    margin-top: 28px;
  }

  .brand-mission {
    display: grid;
    aspect-ratio: auto;
    border-width: 4px;
  }

  .brand-mission img {
    height: auto;
    aspect-ratio: 1535 / 688;
  }

  .brand-tag {
    position: static;
    border: 0;
    border-top: 3px solid var(--honey);
    border-radius: 0;
    background: rgba(24, 13, 7, 0.95);
    box-shadow: none;
    padding: 12px 14px;
  }

  .brand-tag span {
    font-size: 0.92rem;
  }

  .partner-options {
    gap: 14px;
  }

  .partner-options article,
  .partner-wide-card {
    min-height: auto;
    padding: 18px 18px 18px 70px;
    border-width: 3px;
  }

  .partner-options article::before,
  .partner-wide-card::before {
    width: 42px;
  }

  .partner-options span,
  .partner-wide-card span {
    top: 18px;
    left: 10px;
    min-width: 38px;
  }
}
