*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
:root {
  --bg: #0e0e10;
  --text: #f2f2f3;
  --muted: #a7a7ad;
  --card: #151518;
  --primary: #f0b429;
  --accent: #7dd3fc;
  --outline: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.light {
  --bg: #fff;
  --text: #0f1115;
  --muted: #5b5f67;
  --card: #f5f6f8;
  --primary: #0ea5e9;
  --accent: #f59e0b;
  --outline: rgba(0, 0, 0, 0.08);
}





img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* CANVAS BACKGROUND */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  filter: blur(0.4px) saturate(1.1);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline);
  z-index: 50;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.logo-mark {
  font-size: 1.35rem;
}
.logo-text {
  font-family: "Shadows Into Light", cursive;
  font-size: 1.35rem;
  filter: url(#roughen);
}
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--outline);
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  color: var(--text);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav__list a:hover {
  border-color: var(--outline);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0b0b0c;
  font-weight: 700;
}
.btn--ghost {
  background: transparent;
}
.btn:is(:hover, :focus-visible) {
  transform: translateY(-2px);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  padding: min(12vh, 120px) 20px;
}
.hero__title {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  color: var(--muted);
  max-width: 55ch;
}
.hero__cta {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.1rem;
}
.hero__figure {
  display: flex;
  justify-content: center;
}
.hero-svg {
  width: clamp(260px, 36vw, 420px);
  height: auto;
  color: var(--text);
  opacity: 0.9;
}

.hero__marquee {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  margin-top: 2rem;
}
.marquee {
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.3;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}
.section--alt {
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--card) 60%, transparent),
    transparent
  );
}
.section__header {
  text-align: center;
  margin-bottom: 34px;
}
.section__title {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin: 0.2rem 0;
}
.section__lead {
  color: var(--muted);
}

/* GALLERY */
.grid {
  --gap: 16px;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(12, 1fr);
  padding: 0 20px;
}
.gallery .card {
  grid-column: span 3;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery .card:nth-child(2n) {
  grid-column: span 4;
}
.gallery .card:nth-child(3n) {
  grid-column: span 5;
}
.card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.card__media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #111 0%, #222 50%, #111 100%),
    radial-gradient(
      120% 140% at 30% 10%,
      rgba(240, 180, 41, 0.25),
      transparent 60%
    ),
    radial-gradient(
      120% 140% at 80% 80%,
      rgba(125, 211, 252, 0.25),
      transparent 60%
    );
  background-blend-mode: overlay, normal, normal;
  position: relative;
  isolation: isolate;
}
.card__media::after {
  content: attr(data-title) " — " attr(data-tags);
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  opacity: 0.85;
}
.card__caption {
  padding: 10px 14px;
  color: var(--muted);
  border-top: 1px dashed var(--outline);
  filter: url(#roughen);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 0.8rem 0 0;
}
.taglist li {
  border: 1px dashed var(--outline);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
}
.about__facts {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}
.fact {
  background: var(--card);
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--outline);
  text-align: center;
  min-width: 140px;
}
.fact__num {
  font-weight: 800;
  font-size: 2rem;
}
.fact__label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* TIMELINE */
.timeline {
  list-style: none;
  padding: 0 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--primary), transparent);
}
.timeline__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 20px 0;
}
.timeline__item:nth-child(odd) {
  direction: rtl;
}
.timeline__item:nth-child(odd) > * {
  direction: ltr;
}
.timeline__dot {
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--primary) 25%, transparent);
  justify-self: center;
}

/* FORM */
.form {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}
input,
textarea {
  background: #0a0a0d;
  color: var(--text);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
}
.light input,
.light textarea {
  background: #fff;
}
.form__note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--outline);
  padding: 26px 20px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  border: 1px solid var(--outline);
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__figure {
  width: min(92vw, 1024px);
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lightbox__figure img {
  width: 100%;
  height: auto;
  display: block;
}
.lightbox__figure figcaption {
  padding: 10px 14px;
  color: var(--muted);
  border-top: 1px dashed var(--outline);
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: 1px solid var(--outline);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ANIMATIONS & EFFECTS */
.sketch-underline {
  position: relative;
}
.sketch-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  filter: url(#squiggle);
  mix-blend-mode: multiply;
  opacity: 0.6;
}

.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* MAGNETIC buttons */
.magnet {
  position: relative;
  overflow: hidden;
}
.magnet::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.35),
    transparent 35%
  );
  opacity: 0;
  transition: opacity 0.15s ease;
}
.magnet:hover::after {
  opacity: 1;
}

/* Tablet (≤ 920px) */
@media (max-width: 920px) {
  /* HERO */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero__cta {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero__figure {
    margin-top: 1.5rem;
  }

  /* ABOUT */
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about__facts {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* GALLERY */
  .gallery .card {
    grid-column: span 6 !important; /* 2 cards per row */
  }

  /* NAV */
  .nav__toggle {
    display: block;
  }
  .nav__list {
    position: fixed;
    top: 64px;
    right: 16px;
    width: 220px;
    background: var(--card);
    border: 1px solid var(--outline);
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav__list.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__list a {
    padding: 0.7rem;
    text-align: center;
  }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  /* HERO */
  .hero__title {
    font-size: 1.9rem;
    line-height: 1.2;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .hero-svg {
    width: 80%;
  }

  /* GALLERY */
  .gallery .card {
    grid-column: span 12 !important; /* 1 card per row */
  }

  /* FORM */
  .form__row {
    grid-template-columns: 1fr; /* stack inputs */
  }

  /* TIMELINE */
  .timeline::before {
    left: 6px;
  }
  .timeline__item {
    grid-template-columns: 1fr;
    padding-left: 24px;
  }
  .timeline__dot {
    justify-self: start;
  }

  /* FOOTER */
  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Extra small (≤ 400px) */
@media (max-width: 400px) {
  .hero__title {
    font-size: 1.6rem;
  }
  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}


/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {

  /* HERO */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 16px;
    gap: 24px;
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.3;
  }
  .hero__subtitle {
    font-size: 1rem;
    margin: 12px auto 20px;
    max-width: 90%;
  }
  .hero__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .hero__marquee {
    margin-top: 16px;
    font-size: 0.9rem;
  }
  .hero__figure {
    max-width: 260px;
    margin: 0 auto;
  }
  .hero-svg {
    width: 100%;
    height: auto;
  }

  /* GALLERY */
  .grid.gallery {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 0 16px;
  }
  .card {
    border-radius: 12px;
    overflow: hidden;
  }

  /* ABOUT */
  .about {
    flex-direction: column;
    text-align: center;
    padding: 40px 16px;
    gap: 24px;
  }
  .about__text {
    max-width: 100%;
  }
  .taglist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .about__facts {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .fact {
    padding: 12px;
  }

  /* TIMELINE */
  .timeline {
    padding: 0 16px;
    list-style: none;
  }
  .timeline::before,
  .timeline__dot {
    display: none; /* remove line + dots */
  }
  .timeline__item {
    margin-bottom: 20px;
  }
  .timeline__item h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  .timeline__item p {
    font-size: 0.95rem;
  }

  /* CONTACT FORM */
  .form {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .form__row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .form input,
  .form textarea {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
  }
  .form button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }
}


/* MOBILE FIRST - up to tablets */
@media (max-width: 768px) {

  /* HEADER */
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 16px;
  }
  .nav__menu {
    display: none; /* hide links until toggled */
  }
  .nav__toggle {
    display: block; /* hamburger visible */
  }

  /* HERO */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 50px 16px;
  }
  .hero__title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  .hero__subtitle {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
  }
  .hero__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .hero-svg {
    max-width: 280px;
    margin-top: 20px;
    width: 100%;
    height: auto;
  }

  /* GALLERY / GRID */
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  /* ABOUT */
  .about {
    flex-direction: column;
    text-align: center;
    padding: 40px 16px;
  }
  .about__facts {
    flex-direction: column;
    gap: 16px;
  }

  /* TIMELINE */
  .timeline {
    padding: 0 16px;
  }
  .timeline::before,
  .timeline__dot {
    display: none; /* remove vertical line and dots */
  }
  .timeline__item {
    padding: 16px 0;
  }

  /* FORM */
  .form {
    padding: 20px 16px;
  }
  .form__row {
    flex-direction: column;
    gap: 12px;
  }
  input, textarea, button.btn {
    width: 100%;
  }

  /* FOOTER */
  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .socials {
    justify-content: center;
  }
}
