:root {
  --ink: #162238;
  --muted: #5f6c7b;
  --paper: #fffaf0;
  --foam: #f7fbff;
  --blue: #27b8e8;
  --red: #ff5a5f;
  --yellow: #ffd166;
  --green: #34c77b;
  --shadow: 0 24px 70px rgba(22, 34, 56, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Nunito", system-ui, sans-serif;
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 240, 0.82);
  border-bottom: 1px solid rgba(22, 34, 56, 0.08);
  backdrop-filter: blur(16px);
}

.brand-mark {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
}

nav {
  display: flex;
  gap: clamp(10px, 2vw, 24px);
  font-size: 0.92rem;
  font-weight: 800;
}

nav a {
  padding: 8px 0;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--red);
}

.snap-stage {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
}

.panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: 92px clamp(20px, 5vw, 72px) 36px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.panel::before {
  width: 36vmin;
  height: 36vmin;
  right: -11vmin;
  top: 14vmin;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95) 0 12%, transparent 13%),
    radial-gradient(circle, rgba(39, 184, 232, 0.28), transparent 64%);
}

.panel::after {
  width: 18vmin;
  height: 18vmin;
  left: 5vw;
  bottom: 6vh;
  border: 4px solid rgba(255, 90, 95, 0.2);
}

.hero-panel,
.story-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.46), transparent 42%),
    linear-gradient(160deg, var(--foam), #e9fbff 52%, #fff0f1);
}

.hero-copy,
.section-heading,
.story-copy,
.timeline,
.globe-grid,
.founder-frame,
.hero-logo-wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0e7fa6;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Fredoka", system-ui, sans-serif;
  line-height: 0.98;
}

h2 em {
  color: var(--red);
  font-style: italic;
}

h1 {
  max-width: 7ch;
  margin-bottom: 22px;
  font-size: clamp(4.2rem, 11vw, 9.6rem);
}

h2 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 6.1rem);
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

p {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.58;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 20px;
  color: #fff;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 7px 7px 0 var(--yellow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(4px, 4px);
  box-shadow: 3px 3px 0 var(--yellow);
}

.hero-logo-wrap {
  justify-self: center;
  width: min(58vmin, 520px);
  padding: clamp(12px, 2vw, 22px);
  background: #ffffff;
  border: 5px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: bob 4s ease-in-out infinite;
}

.hero-logo {
  border-radius: 50%;
}

.history-panel {
  grid-template-columns: minmax(220px, 0.56fr) minmax(0, 1fr);
  background:
    linear-gradient(130deg, #fff9df, #eaf9ff 48%, #effff5);
}

.history-panel h2 {
  font-size: clamp(2.7rem, 4.4vw, 4rem);
}

.timeline {
  display: grid;
  gap: 16px;
}

.era-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid rgba(22, 34, 56, 0.15);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(22, 34, 56, 0.1);
  transform: rotate(-1deg);
}

.era-card:nth-child(2) {
  transform: rotate(1deg);
}

.era-card img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
}

.era-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 0.92;
}

.era-card p {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.story-panel {
  background:
    linear-gradient(145deg, rgba(52, 199, 123, 0.28), transparent 45%),
    linear-gradient(315deg, #fff2f2, #f8ffed);
}

.founder-frame {
  width: min(66vmin, 520px);
  justify-self: center;
  padding: 12px;
  background: #fff;
  border: 5px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.founder-frame img {
  border-radius: 5px;
}

.story-copy p:last-child {
  padding-left: 22px;
  border-left: 6px solid var(--green);
}

.globe-panel {
  grid-template-rows: auto 1fr;
  align-content: center;
  background:
    linear-gradient(125deg, #eefbff, #fff7e3 46%, #f4f0ff);
}

.globe-panel .section-heading {
  text-align: center;
  justify-self: center;
}

.globe-panel h2,
.globe-panel p {
  margin-left: auto;
  margin-right: auto;
}

.globe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  width: 100%;
}

.globe-grid article {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 rgba(39, 184, 232, 0.34);
  overflow: hidden;
  transition: transform 160ms ease;
}

.globe-grid article:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.globe-grid img {
  aspect-ratio: 1;
  object-fit: cover;
}

.globe-grid h3 {
  margin: 0;
  padding: 14px;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  text-align: center;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }

  50% {
    transform: translateY(-14px) rotate(-1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .site-header {
    padding: 14px 18px;
  }

  nav {
    gap: 12px;
  }

  .panel,
  .hero-panel,
  .history-panel,
  .story-panel {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 92px;
  }

  .snap-stage {
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  h1,
  h2 {
    max-width: 9ch;
  }

  .hero-logo-wrap,
  .founder-frame {
    width: min(86vw, 440px);
  }

  .history-panel .section-heading,
  .story-copy {
    order: -1;
  }

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

@media (max-width: 560px) {
  .brand-mark {
    max-width: 9ch;
    line-height: 0.95;
  }

  nav {
    font-size: 0.82rem;
  }

  .era-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .era-card p {
    display: none;
  }

  .globe-grid {
    gap: 12px;
  }

  .globe-grid article {
    box-shadow: 5px 5px 0 rgba(39, 184, 232, 0.34);
  }
}
