:root {
  --cream:  #fbf4eb;
  --pink:   #f283af;
  --yellow: #f5d23d;
  --butter: #ffeda8;
  --grey:   #575b58;
  --dark:   #1a1a1a;
  --white:  #ffffff;

  --max-w:  1200px;
  --gutter: 24px;
  --pad:    clamp(1rem, 5vw, 5rem);
  --nav-h:  72px;

  /* 4px spacing grid */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t:  0.3s var(--ease-out);
  --t2: 0.55s var(--ease-out);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  mix-blend-mode: multiply;
}
.cursor-dot.is-visible { opacity: 0.9; }
.cursor-dot.is-hover {
  mix-blend-mode: normal;
  opacity: 1;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 1px rgba(242, 131, 175, 0.35),
    0 2px 8px rgba(242, 131, 175, 0.2);
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot { display: none; }
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.container--wide {
  max-width: 1280px;
}
.section       { padding: clamp(80px, 10vw, 120px) 0; }
.section--dark { background: var(--dark); color: var(--cream); }

h1, h2, h3, h4, h5, h6 {
  font-family: "Geologica", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.page-title,
.section-title,
.hero__line,
.contact__headline,
.project-name {
  font-weight: 900;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 12px;
}
.section-label--muted { color: rgba(251,244,235,0.35); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--t);
  white-space: nowrap;
}
.btn--primary {
  background: var(--yellow);
  color: var(--dark);
  border: 2px solid var(--yellow);
}
.btn--primary:hover {
  background: var(--butter);
  border-color: var(--butter);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,210,61,0.35);
}
.btn--ghost {
  background: transparent;
  color: rgba(251,244,235,0.7);
  border: 1.5px solid rgba(251,244,235,0.22);
}
.btn--ghost:hover {
  border-color: rgba(251,244,235,0.55);
  color: var(--cream);
  background: rgba(255,255,255,0.05);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background var(--t);
}

body.menu-open .nav {
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__bar {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  box-sizing: border-box;
}

.nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t), border-color var(--t);
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--dark);
  transition: var(--t);
}
.nav__burger:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--butter);
}

.nav__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t), border-color var(--t);
}
.nav__close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  background: var(--dark);
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  padding:
    var(--s6)
    max(var(--pad), env(safe-area-inset-right, 0px))
    max(var(--s6), env(safe-area-inset-bottom, 0px))
    max(var(--pad), env(safe-area-inset-left, 0px));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav__list {
  width: 100%;
  margin: 0;
  padding: 0;
}
.mobile-nav__list li {
  width: 100%;
  overflow: visible;
}
.mobile-nav__list a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: clamp(2.25rem, 10vw, 4.5rem);
  font-weight: 700;
  color: var(--cream);
  text-align: center;
  padding: var(--s4) var(--pad);
  transition: color var(--t), background var(--t);
}
.mobile-nav__list a:hover,
.mobile-nav__list a:focus-visible {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.04);
}

.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
  margin-top: auto;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy  { font-size: 0.8rem; color: rgba(251,244,235,0.28); }
.footer__links { display: flex; gap: 28px; align-items: center; }
.footer__links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(251,244,235,0.35);
  transition: color var(--t);
}
.footer__links a:hover { color: var(--cream); }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
              transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-40px); }
.reveal--left.in-view { transform: none; }

/* Stagger siblings */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

@media (max-width: 768px) {
  :root { --nav-h: 60px; --gutter: 16px; --pad: 1rem; }

  .nav {
    min-height: var(--nav-h);
    padding: env(safe-area-inset-top, 0px) 0 0;
  }

  .nav.nav--glass.nav--hero {
    padding: env(safe-area-inset-top, 0px) 0 0;
  }

  .nav__bar.nav__inner--glass {
    max-width: none;
    display: flex;
    grid-template-columns: unset;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    min-height: var(--nav-h);
    padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
    padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  }

  .nav__logo {
    flex-shrink: 0;
    margin-right: auto;
  }

  .nav__pill { display: none; }

  .nav__utilities {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav__burger { display: inline-flex; }

  body.menu-open .nav__burger { display: none; }
  body.menu-open .nav__close { display: inline-flex; }

  body.menu-open .nav__logo-img {
    filter: brightness(0) invert(1);
  }

  body.menu-open .hero-glass-btn {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }

  body.menu-open .hero-glass-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
  }

  .mobile-nav {
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  }

  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9000;
  background: var(--dark);
  color: var(--cream);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 780px;
  width: calc(100% - 48px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner__text {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(251,244,235,0.8);
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.cookie-btn--accept {
  background: var(--pink);
  color: var(--white);
}
.cookie-btn--accept:hover { background: #e96d9e; }
.cookie-btn--decline {
  background: transparent;
  color: rgba(251,244,235,0.55);
  border: 1px solid rgba(251,244,235,0.15);
}
.cookie-btn--decline:hover { color: var(--cream); border-color: rgba(251,244,235,0.4); }
@media (max-width: 500px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.nav.nav--glass:not(.nav--hero) {
  height: auto;
  min-height: var(--nav-h);
  padding: 12px 0;
}

.nav.nav--glass.nav--hero {
  height: auto;
  padding: clamp(16px, 2.5vh, 24px) 0;
}

@media (min-width: 769px) {
  .nav__inner--glass {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .nav__close {
    display: none !important;
  }
}

.nav__logo { display: flex; align-items: center; justify-self: start; }
.nav__logo-img { height: 26px; width: auto; }

.nav__pill {
  justify-self: center;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.06);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
}

.nav--glass.nav--hero .nav__links {
  gap: 2px;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px clamp(14px, 1.5vw, 18px);
  line-height: 1.2;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey);
  border-radius: 999px;
  transition: color var(--t), background var(--t);
}

.nav--glass.nav--hero .nav__links a {
  font-size: 0.8125rem;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--dark);
  background: var(--butter);
}

.nav__links a.active {
  font-weight: 700;
}

.nav__utilities {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.hero-glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.05);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.hero-glass-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--butter);
}
.hero-glass-btn:focus-visible {
  border-color: var(--butter);
}
.hero-glass-btn--icon {
  padding: 0;
  width: 44px;
}

@media (min-width: 769px) {
  .nav__burger {
    display: none;
  }
}

