@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700;900&family=Fraunces:ital,opsz,wght@1,9..144,600&display=swap");

:root {
  --forest: #06383b;
  --deep: #05252f;
  --ocean: #07576a;
  --paper: #eaffdf;
  --acid: #d9ff3f;
  --aqua: #62f5e8;
  --coral: #ff786e;
  --violet: #b994ff;
  --sun: #ffd95a;
  --blue: #72bfff;
  --line: rgba(234, 255, 223, 0.27);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--deep); color: var(--paper); font-family: "DM Sans", Arial, sans-serif; overflow-x: hidden; }
a { color: inherit; }

.wonder-lok {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(55, 224, 231, 0.27), transparent 30rem),
    radial-gradient(circle at 8% 52%, rgba(217, 255, 63, 0.12), transparent 36rem),
    linear-gradient(145deg, #063f3e, #052936 56%, #07354d);
  position: relative;
}

.bloom {
  position: fixed;
  z-index: 0;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(98, 245, 232, 0.18);
  border-radius: 43% 57% 64% 36% / 58% 36% 64% 42%;
  pointer-events: none;
  animation: bloom-spin 28s linear infinite;
}
.bloom-one { top: -23rem; right: -13rem; box-shadow: inset 0 0 80px rgba(98, 245, 232, 0.08); }
.bloom-two { bottom: -27rem; left: -19rem; border-color: rgba(217, 255, 63, 0.15); animation-direction: reverse; }
@keyframes bloom-spin { to { transform: rotate(360deg); } }

.site-header, main, footer { position: relative; z-index: 2; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(18px, 4vw, 62px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 37, 47, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--deep);
  box-shadow: 4px 4px 0 var(--coral);
  text-decoration: none;
}
.brand img { width: 53px; height: 53px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-size: 0.78rem; letter-spacing: 0.16em; }
.brand small { font-size: 0.65rem; opacity: 0.7; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.07em; text-decoration: none; }
.nav-links a:hover { color: var(--acid); }
.nav-links .learning-link { padding: 11px 15px; border: 1px solid var(--acid); border-radius: 99px; color: var(--acid); }
.menu-toggle, .menu-button { display: none; }

.hero {
  width: min(calc(100% - 36px), 1380px);
  min-height: calc(100svh - 82px);
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 7vw;
  padding: 85px 0;
}
.eyebrow, .section-label, .section-heading > div > p {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--acid);
}
.eyebrow span { padding: 0 8px; color: var(--coral); }
.hero h1 {
  margin: 18px 0 28px;
  font-size: clamp(3.4rem, 7.4vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
}
.hero h1 em, .section-heading h2 em {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--aqua);
  text-shadow: 3px 3px 0 rgba(255, 120, 110, 0.8);
}
.hero-intro { max-width: 660px; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.65; color: rgba(234,255,223,0.74); }
.primary-button {
  display: inline-flex;
  gap: 30px;
  margin-top: 24px;
  padding: 15px 19px;
  border: 1px solid var(--deep);
  background: var(--acid);
  color: var(--deep);
  box-shadow: 6px 6px 0 var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  transition: 0.2s ease;
}
.primary-button:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--aqua); }

.specimen { position: relative; min-height: 500px; display: grid; place-items: center; }
.specimen-core {
  width: min(28vw, 380px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 42% 58% 35% 65% / 48% 35% 65% 52%;
  background: radial-gradient(circle at 32% 28%, #7af9dc, #0aa6a4 42%, #07576a 68%, #04252e);
  color: var(--acid);
  box-shadow: 0 0 90px rgba(98,245,232,0.2);
  font: 600 clamp(8rem, 15vw, 15rem)/1 "Fraunces", Georgia, serif;
  animation: specimen-float 7s ease-in-out infinite;
}
.specimen::before, .specimen::after {
  content: "";
  position: absolute;
  width: 90%; height: 35%;
  border: 1px dashed rgba(234,255,223,0.4);
  border-radius: 50%;
  transform: rotate(-24deg);
}
.specimen::after { width: 70%; height: 68%; transform: rotate(35deg); }
@keyframes specimen-float {
  50% { border-radius: 63% 37% 57% 43% / 35% 64% 36% 65%; transform: translateY(-12px) rotate(3deg); }
}
.specimen-note { position: absolute; z-index: 2; padding: 8px 10px; background: var(--coral); color: var(--deep); box-shadow: 4px 4px 0 var(--acid); font-size: 0.6rem; font-weight: 900; letter-spacing: 0.1em; }
.note-one { top: 14%; left: 2%; transform: rotate(-6deg); }
.note-two { right: 0; bottom: 15%; background: var(--acid); box-shadow: 4px 4px 0 var(--violet); transform: rotate(5deg); }
.specimen i { position: absolute; width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--acid); box-shadow: 0 0 16px var(--acid); }
.specimen i:nth-of-type(1) { top: 10%; right: 28%; }
.specimen i:nth-of-type(2) { bottom: 7%; left: 18%; }
.specimen i:nth-of-type(3) { top: 36%; left: 0; }
.specimen i:nth-of-type(4) { right: 7%; top: 50%; }

.trail-map, .life-worlds, .feature-zone, .crossroads {
  width: min(calc(100% - 36px), 1280px);
  margin: auto;
  padding: 115px 0;
}
.trail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; margin-top: 28px; }
.trail-card {
  min-height: 465px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 2px solid var(--deep);
  border-radius: 100px 100px 14px 14px;
  color: var(--deep);
  box-shadow: 8px 9px 0 var(--deep);
  text-decoration: none;
  transition: 0.25s ease;
}
.trail-card:hover { transform: translateY(-8px); box-shadow: 12px 16px 0 var(--deep); }
.life-card { background: var(--acid); }
.work-card { background: var(--coral); }
.world-card { background: var(--aqua); }
.trail-number { width: 42px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--deep); border-radius: 50%; font-weight: 900; }
.trail-card small { margin: 40px 0 13px; font-size: 0.61rem; font-weight: 900; letter-spacing: 0.12em; line-height: 1.5; }
.trail-card h2 { margin: 0; font-size: clamp(2.8rem, 4.5vw, 5.1rem); line-height: 0.8; letter-spacing: -0.07em; }
.trail-card h2 em { font-family: "Fraunces", Georgia, serif; font-weight: 600; }
.trail-card p { margin: auto 0 22px; line-height: 1.5; opacity: 0.75; }
.trail-card b { font-size: 0.72rem; letter-spacing: 0.09em; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 45px; }
.section-heading h2 { margin: 14px 0 0; font-size: clamp(3rem, 6vw, 6rem); line-height: 0.85; letter-spacing: -0.06em; }
.section-heading > p { max-width: 420px; margin: 0; color: rgba(234,255,223,0.66); line-height: 1.6; }
.world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.human-world {
  --world-colour: var(--acid);
  min-height: 190px;
  display: grid;
  grid-template-columns: 35px 70px 1fr;
  grid-template-rows: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 23px;
  border: 1px solid rgba(234,255,223,0.38);
  border-radius: 14px 45px 14px 14px;
  background: rgba(3,32,39,0.48);
  text-decoration: none;
  transition: 0.25s ease;
}
.human-world:hover { background: var(--world-colour); color: var(--deep); transform: translateY(-5px); }
.world-number { font-size: 0.63rem; opacity: 0.6; }
.world-mark { width: 61px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; background: var(--world-colour); color: var(--deep); font: 700 1.35rem Georgia, serif; }
.human-world h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 2vw, 1.8rem); }
.human-world p { margin: 0; opacity: 0.65; line-height: 1.5; }
.human-world > i { grid-column: 3; justify-self: end; font-size: 0.65rem; font-style: normal; font-weight: 900; letter-spacing: 0.1em; }
.human-world.aqua { --world-colour: var(--aqua); }
.human-world.coral { --world-colour: var(--coral); }
.human-world.violet { --world-colour: var(--violet); }
.human-world.sun { --world-colour: var(--sun); }
.human-world.blue { --world-colour: var(--blue); }

.feature-zone { position: relative; display: grid; grid-template-columns: 90px 1fr 0.8fr; gap: 45px; align-items: center; border-top: 1px solid var(--line); }
.feature-index { color: var(--coral); font: 600 5rem "Fraunces", Georgia, serif; }
.feature-copy h2 { max-width: 720px; margin: 14px 0 22px; font-size: clamp(2.8rem, 5.5vw, 5.8rem); line-height: 0.86; letter-spacing: -0.06em; }
.feature-copy > p:not(.section-label) { max-width: 650px; color: rgba(234,255,223,0.7); line-height: 1.65; }
.feature-copy ul { padding-left: 18px; color: rgba(234,255,223,0.75); line-height: 1.8; }
.work-poster { min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 2px solid var(--paper); border-radius: 50%; background: var(--coral); color: var(--deep); box-shadow: 12px 12px 0 var(--acid); transform: rotate(4deg); }
.work-poster span { font-size: clamp(3rem, 6vw, 6.5rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.07em; }
.work-poster em { font: 600 4rem "Fraunces", Georgia, serif; }
.work-poster small { max-width: 220px; margin-top: 25px; text-align: center; font-weight: 900; letter-spacing: 0.12em; line-height: 1.5; }

.world-zone { grid-template-columns: 90px 0.9fr 1.1fr; }
.world-zone .feature-index { color: var(--aqua); }
.world-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.world-actions a { padding: 13px 15px; border: 1px solid var(--paper); font-size: 0.72rem; font-weight: 900; text-decoration: none; }
.world-actions a:hover { background: var(--paper); color: var(--deep); }
.wonder-samples { min-height: 420px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px; padding: 30px; border: 1px dashed var(--aqua); border-radius: 45% 55% 58% 42% / 58% 45% 55% 42%; background: rgba(98,245,232,0.07); }
.wonder-samples span { padding: 11px 13px; background: var(--acid); color: var(--deep); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.08em; transform: rotate(-3deg); }
.wonder-samples span:nth-child(even) { background: var(--coral); transform: rotate(4deg); }

.crossroads { text-align: center; border-top: 1px solid var(--line); }
.crossroads > p { color: var(--acid); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.16em; }
.crossroads h2 { margin: 14px auto 35px; font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -0.06em; }
.crossroads div { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.crossroads a { padding: 14px 17px; border: 1px solid var(--paper); font-size: 0.75rem; font-weight: 900; text-decoration: none; }
.crossroads a:last-child { border-color: var(--aqua); background: var(--aqua); color: var(--deep); }

footer { width: min(calc(100% - 36px), 1280px); margin: auto; display: grid; grid-template-columns: 1fr auto; gap: 15px; padding: 40px 0; border-top: 1px solid var(--line); }
footer > a { font-weight: 900; letter-spacing: 0.14em; text-decoration: none; }
footer p { margin: 0; color: rgba(234,255,223,0.62); }
footer small { grid-column: 1 / -1; color: rgba(234,255,223,0.4); }

@media (max-width: 900px) {
  .menu-button { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--paper); cursor: pointer; font-size: 0.65rem; font-weight: 900; letter-spacing: 0.12em; }
  .menu-button i { display: block; width: 27px; height: 1px; background: currentColor; }
  .nav-links { position: absolute; top: 76px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); background: var(--deep); box-shadow: 7px 7px 0 var(--coral); }
  .menu-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a, .nav-links .learning-link { padding: 15px; border: 0; border-bottom: 1px solid rgba(234,255,223,0.18); border-radius: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .specimen { min-height: 390px; }
  .specimen-core { width: min(62vw, 340px); }
  .trail-grid { grid-template-columns: 1fr; }
  .trail-card { min-height: 370px; border-radius: 70px 70px 12px 12px; }
  .world-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .feature-zone, .world-zone { grid-template-columns: 65px 1fr; }
  .work-poster, .wonder-samples { grid-column: 2; }
}

@media (max-width: 560px) {
  .site-header { min-height: 70px; }
  .brand { padding: 4px 10px 4px 5px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 0.66rem; }
  .brand small { display: none; }
  .hero, .trail-map, .life-worlds, .feature-zone, .crossroads, footer { width: min(calc(100% - 24px), 1280px); }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .trail-map, .life-worlds, .feature-zone, .crossroads { padding: 85px 0; }
  .trail-card { min-height: 340px; }
  .human-world { grid-template-columns: 25px 55px 1fr; gap: 10px; padding: 17px; }
  .world-mark { width: 50px; }
  .feature-zone, .world-zone { grid-template-columns: 1fr; gap: 25px; }
  .feature-index { font-size: 3rem; }
  .work-poster, .wonder-samples { grid-column: 1; min-height: 330px; }
  footer { grid-template-columns: 1fr; }
  footer small { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bloom, .specimen-core { animation: none; }
}
/* WONDER LOK — ILLUSTRATED WORLD CARDS */

.world-grid.world-grid-illustrated {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.world-grid-illustrated,
.world-grid-illustrated * {
  box-sizing: border-box;
}

.world-grid-illustrated .illustrated-world {
  --world-accent: #d8ff43;

  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 36%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 26px);

  width: 100%;
  height: auto;
  min-height: 242px;
  padding: 24px;

  overflow: hidden;
  isolation: isolate;

  background: #103c3b;
  color: #eff8df;
  border: 1px solid rgba(221, 244, 218, 0.24);
  border-radius: 22px 48px 22px 22px;

  text-decoration: none;
  text-align: left;

  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

/* Individual world colours */

.world-grid-illustrated .acid {
  --world-accent: #d8ff43;
}

.world-grid-illustrated .aqua {
  --world-accent: #64e8dd;
}

.world-grid-illustrated .coral {
  --world-accent: #ff9387;
}

.world-grid-illustrated .violet {
  --world-accent: #c39aff;
}

.world-grid-illustrated .sun {
  --world-accent: #ffdb65;
}

.world-grid-illustrated .blue {
  --world-accent: #83caff;
}

/* Illustration stays on the left */

.world-grid-illustrated .world-art {
  position: relative;
  display: grid;
  place-items: center;

  width: 100%;
  height: 190px;
  min-width: 0;

  padding: 0;
  margin: 0;
  background: transparent;
}

.world-grid-illustrated .world-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;

  object-fit: contain;
  object-position: center;

  background: transparent;
  border: 0;
  border-radius: 0;

  transition: transform 250ms ease;
}

/* All copy stays on the right */

.world-grid-illustrated .world-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  min-width: 0;
  padding: 0;
  margin: 0;
}

.world-grid-illustrated .world-index {
  display: block;
  margin-bottom: 12px;

  color: var(--world-accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

.world-grid-illustrated .world-copy h3 {
  margin: 0;
  color: #eff8df;

  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;

  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.world-grid-illustrated .world-copy p {
  margin: 12px 0 0;
  max-width: 30ch;

  color: #c0d5cd;
  font-size: 0.93rem;
  line-height: 1.55;
}

.world-grid-illustrated .world-enter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 21px;

  color: var(--world-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.world-grid-illustrated .world-enter span {
  font-size: 1rem;
  transition: transform 220ms ease;
}

/* Keyboard navigation */

.world-grid-illustrated .illustrated-world:focus-visible {
  outline: 3px solid var(--world-accent);
  outline-offset: 5px;
}

/* Hover effects for devices with a mouse */

@media (hover: hover) {
  .world-grid-illustrated .illustrated-world:hover {
    transform: translateY(-4px);
    background: #154947;
    border-color: var(--world-accent);
    box-shadow: 0 12px 28px rgba(0, 20, 24, 0.2);
  }

  .world-grid-illustrated .illustrated-world:hover .world-art img {
    transform: rotate(-3deg) scale(1.05);
  }

  .world-grid-illustrated .illustrated-world:hover .world-enter span {
    transform: translate(3px, -3px);
  }
}

/* Tablet: one card per row, image still left */

@media (max-width: 900px) {
  .world-grid.world-grid-illustrated {
    grid-template-columns: minmax(0, 1fr);
  }

  .world-grid-illustrated .illustrated-world {
    grid-template-columns: minmax(110px, 30%) minmax(0, 1fr);
    min-height: 220px;
  }
}

/* Mobile: preserve the horizontal layout */

@media (max-width: 540px) {
  .world-grid.world-grid-illustrated {
    gap: 14px;
  }

  .world-grid-illustrated .illustrated-world {
    grid-template-columns: minmax(0, 31%) minmax(0, 1fr);
    gap: 14px;

    min-height: 192px;
    padding: 18px 14px;
    border-radius: 18px 34px 18px 18px;
  }

  .world-grid-illustrated .world-art {
    height: 140px;
  }

  .world-grid-illustrated .world-index {
    margin-bottom: 8px;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .world-grid-illustrated .world-copy h3 {
    font-size: clamp(1rem, 4.4vw, 1.3rem);
    line-height: 1.2;
  }

  .world-grid-illustrated .world-copy p {
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .world-grid-illustrated .world-enter {
    margin-top: 13px;
    font-size: 0.6rem;
  }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  .world-grid-illustrated .illustrated-world,
  .world-grid-illustrated .world-art img,
  .world-grid-illustrated .world-enter span {
    transition: none;
    transform: none;
  }
}
