/* BrickBucks — cream colony + ant-trail path (distinct from playbill/ticket/dock) */

:root {
  --cream: #fff6e8;
  --cream-deep: #ffe8c8;
  --mint: #7dcf8a;
  --mint-deep: #4fb85f;
  --honey: #f5a623;
  --honey-deep: #e08a10;
  --pink: #ff6fa8;
  --cyan: #3ecfff;
  --gold: #ffd24a;
  --ink: #2d3a1f;
  --ink-soft: rgba(45, 58, 31, 0.72);
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(80, 50, 10, 0.12);
  --radius: 22px;
  --radius-pill: 999px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --nav-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

a {
  color: var(--honey-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.colony {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 90% 0%, rgba(255, 210, 74, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 35% at 5% 80%, rgba(125, 207, 138, 0.28), transparent 50%),
    linear-gradient(180deg, #fff9ef 0%, var(--cream) 45%, #f3ffe8 100%);
}

.colony__dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  opacity: 0.45;
}

.colony__dot--a {
  top: 18%;
  left: 8%;
  background: var(--pink);
  transform: rotate(18deg);
}

.colony__dot--b {
  top: 42%;
  right: 10%;
  background: var(--cyan);
  transform: rotate(-12deg);
}

.colony__dot--c {
  bottom: 20%;
  left: 40%;
  background: var(--gold);
  width: 18px;
  height: 18px;
}

/* Chip nav */
.chip-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 1.25rem 0;
}

.chip-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.85rem 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(245, 166, 35, 0.35);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(80, 50, 10, 0.08);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}

.chip-nav.is-scrolled .chip-nav__inner {
  box-shadow: var(--shadow);
}

.chip-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.15;
  text-decoration: none;
}

.chip-nav__brand img {
  border-radius: 12px;
}

.chip-nav__links {
  display: none;
  gap: 1.35rem;
  margin-left: auto;
}

.chip-nav__links a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.chip-nav__links a:hover {
  color: var(--honey-deep);
}

.chip-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.chip-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(245, 166, 35, 0.15);
  cursor: pointer;
}

.chip-nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .chip-nav__links {
    display: flex;
  }

  .chip-nav__burger {
    display: none;
  }

  .chip-nav__actions {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .chip-nav .btn--sm {
    display: none;
  }
}

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
  background: rgba(255, 246, 232, 0.98);
  backdrop-filter: blur(12px);
}

.nav-sheet[hidden] {
  display: none;
}

.nav-sheet a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--honey {
  color: var(--white);
  background: linear-gradient(180deg, #ffc14d, var(--honey));
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.4);
}

.btn--honey:hover {
  background: linear-gradient(180deg, var(--honey), var(--honey-deep));
}

.btn--mint {
  color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(125, 207, 138, 0.55);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.85rem 1.45rem;
}

.btn--xl {
  padding: 1rem 1.65rem;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

/* Hero */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3.5rem;
}

.hero__banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.95);
  background: #fff3d6;
  margin-bottom: 2.25rem;
}

.hero__banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 500;
  object-fit: contain;
  object-position: center;
}

.hero__split {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__split {
    grid-template-columns: 1.1fr minmax(260px, 340px);
    gap: 3rem;
  }
}

.hero__tagline {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--mint-deep);
}

.hero__copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__copy h1 span {
  color: var(--honey-deep);
}

.hero__lead {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.hero__swatches {
  display: flex;
  gap: 0.55rem;
  margin: 1rem 0 1.35rem;
}

.swatch {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.swatch--pink {
  background: var(--pink);
}

.swatch--cyan {
  background: var(--cyan);
}

.swatch--gold {
  background: var(--gold);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__phone {
  margin: 0 auto;
  width: min(100%, 300px);
  padding: 0.4rem;
  border-radius: 26px;
  background: linear-gradient(160deg, #fff, #ffe8b8);
  border: 2px solid rgba(245, 166, 35, 0.35);
  box-shadow: var(--shadow);
}

@media (min-width: 960px) {
  .hero__phone {
    width: min(100%, 340px);
  }
}

.hero__phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: center top;
  border-radius: 20px;
  background: #3a2a18;
}

/* Section head */
.section-head {
  max-width: 1120px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-deep);
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  font-weight: 800;
}

.section-head h2 span {
  color: var(--honey-deep);
}

.section-head__lead {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--ink-soft);
}

/* Ant trail */
.trail {
  padding: 2rem 0 4rem;
}

.trail__path {
  list-style: none;
  margin: 0 auto;
  padding: 0 1.25rem;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
}

.trail__path::before {
  content: "";
  position: absolute;
  left: calc(1.25rem + 1.35rem);
  top: 1.5rem;
  bottom: 1.5rem;
  width: 4px;
  background: repeating-linear-gradient(
    180deg,
    var(--honey) 0 10px,
    transparent 10px 18px
  );
  border-radius: 999px;
  opacity: 0.55;
}

@media (max-width: 520px) {
  .trail__path::before {
    left: calc(1.25rem + 1.1rem);
  }
}

.trail__step {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.trail__idx {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.trail__step--pink .trail__idx {
  background: var(--pink);
}

.trail__step--cyan .trail__idx {
  background: var(--cyan);
}

.trail__step--gold .trail__idx {
  background: var(--honey);
}

.trail__step--green .trail__idx {
  background: var(--mint-deep);
}

.trail__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(245, 166, 35, 0.35);
  color: var(--honey-deep);
}

.trail__body {
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  border: 2px solid rgba(245, 166, 35, 0.18);
  box-shadow: 0 8px 22px rgba(80, 50, 10, 0.06);
}

.trail__body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 800;
}

.trail__body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Gallery */
.gallery {
  padding: 1rem 0 4rem;
}

.gallery__grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1rem;
  justify-items: center;
}

@media (min-width: 720px) {
  .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery__card {
  margin: 0;
  width: 100%;
  max-width: 220px;
  text-align: center;
}

.gallery__frame {
  width: 100%;
  padding: 0.35rem;
  border-radius: 22px;
  background: linear-gradient(160deg, #fff, #ffe8b8);
  border: 2px solid rgba(245, 166, 35, 0.3);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery__card:hover .gallery__frame {
  transform: translateY(-6px);
}

.gallery__frame--tall,
.gallery__frame--phone {
  aspect-ratio: 9 / 16;
}

.gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 16px;
  background: #3a2a18;
}

.gallery__card figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink-soft);
}

/* Download */
.download {
  padding: 1rem 1.25rem 4.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.download__panel {
  text-align: center;
  padding: 2.5rem 1.75rem;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(245, 166, 35, 0.3);
  box-shadow: var(--shadow);
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 20px;
}

.download__panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.download__lead {
  font-weight: 800;
  color: var(--mint-deep) !important;
}

.download__panel p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Footer */
.footer {
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(45, 58, 31, 0.1);
  background: rgba(255, 255, 255, 0.55);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.footer__brand img {
  border-radius: 10px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer__copy {
  width: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 58, 31, 0.4);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 2px solid rgba(245, 166, 35, 0.3);
  text-align: center;
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink);
  cursor: pointer;
}

.modal__brick {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffc14d, var(--honey));
  color: var(--white);
}

.modal__panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
}

.modal__panel p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
