:root {
  --sky: 192 81% 62%;
  --sky-light: 190 100% 91%;
  --sky-soft: 186 100% 97%;
  --ocean: 193 88% 24%;
  --ocean-mid: 190 81% 39%;
  --aqua: 191 80% 51%;
  --aqua-light: 183 92% 72%;
  --meadow: 116 54% 55%;
  --meadow-deep: 134 56% 36%;
  --sun: 47 100% 64%;
  --sun-deep: 37 92% 55%;
  --cloud: 185 100% 99%;
  --cloud-muted: 184 44% 93%;
  --ink: 194 88% 18%;
  --ink-soft: 193 38% 35%;
  --white: 0 0% 100%;
  --border: 188 100% 100%;
  --glass: 186 100% 99%;
  --glass-strong: 0 0% 100%;
  --shadow-color: 195 78% 25%;
  --gradient-sky: linear-gradient(180deg, hsl(var(--sky)) 0%, hsl(var(--sky-light)) 58%, hsl(var(--sky-soft)) 100%);
  --gradient-aqua: linear-gradient(180deg, hsl(var(--aqua-light)) 0%, hsl(var(--aqua)) 45%, hsl(var(--ocean-mid)) 100%);
  --gradient-green: linear-gradient(180deg, hsl(104 72% 72%) 0%, hsl(var(--meadow)) 45%, hsl(var(--meadow-deep)) 100%);
  --gradient-sun: linear-gradient(180deg, hsl(53 100% 72%) 0%, hsl(var(--sun)) 48%, hsl(var(--sun-deep)) 100%);
  --glass-surface: linear-gradient(145deg, hsl(var(--glass-strong) / 0.88), hsl(var(--glass) / 0.6));
  --shadow-soft: 0 24px 70px hsl(var(--shadow-color) / 0.18);
  --shadow-deep: 0 22px 0 -12px hsl(var(--ocean) / 0.18), 0 36px 70px hsl(var(--shadow-color) / 0.22);
  --shadow-button: inset 0 1px 0 hsl(var(--white) / 0.72), inset 0 -4px 0 hsl(var(--ocean) / 0.18), 0 10px 24px hsl(var(--ocean-mid) / 0.28);
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito Sans", "Avenir Next", sans-serif;
  --page-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 7%, hsl(var(--white) / 0.65) 0 3%, transparent 13%),
    var(--gradient-sky);
  background-attachment: fixed;
  color: hsl(var(--ink));
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.22;
  pointer-events: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

.sky-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  z-index: -1;
  width: 920px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--white) / 0.68), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.cloud {
  position: absolute;
  z-index: -1;
  width: 160px;
  height: 42px;
  border-radius: 999px;
  background: hsl(var(--white) / 0.46);
  filter: blur(1px);
  pointer-events: none;
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 4px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.cloud::before {
  left: 28px;
  width: 68px;
  height: 68px;
}

.cloud::after {
  right: 18px;
  width: 88px;
  height: 88px;
}

.cloud-one {
  top: 174px;
  left: -48px;
  transform: scale(1.15);
}

.cloud-two {
  top: 126px;
  right: -72px;
  transform: scale(0.72);
}

.site-header {
  position: relative;
  z-index: 20;
  width: min(calc(100% - 40px), var(--page-width));
  margin: 18px auto 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 8px 10px 8px 18px;
  border: 1px solid hsl(var(--border) / 0.76);
  border-radius: 999px;
  background: linear-gradient(180deg, hsl(var(--white) / 0.84), hsl(var(--white) / 0.58));
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.9), 0 14px 44px hsl(var(--shadow-color) / 0.13);
  backdrop-filter: blur(18px) saturate(1.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-accent {
  color: hsl(var(--ocean-mid));
}

.brand-orb {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid hsl(var(--white) / 0.84);
  border-radius: 50%;
  background: var(--gradient-aqua);
  box-shadow: inset 0 -5px 8px hsl(var(--ocean) / 0.24), 0 5px 12px hsl(var(--ocean-mid) / 0.25);
}

.brand-orb::before {
  position: absolute;
  top: 5px;
  left: 7px;
  width: 14px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--white) / 0.85);
  content: "";
  filter: blur(0.5px);
  transform: rotate(-25deg);
}

.brand-orb span {
  position: absolute;
  bottom: -5px;
  width: 32px;
  height: 16px;
  border-radius: 50% 50% 0 0;
  background: var(--gradient-green);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu > a {
  padding: 10px 14px;
  border-radius: 999px;
  color: hsl(var(--ink-soft));
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav-menu > a:hover,
.nav-menu > a:focus-visible {
  background: hsl(var(--white) / 0.72);
  color: hsl(var(--ocean));
}

.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid hsl(var(--white) / 0.7);
  border-radius: 999px;
  background: var(--gradient-aqua);
  box-shadow: var(--shadow-button);
  color: hsl(var(--white));
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, filter 180ms ease;
}

.nav-action svg,
.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nav-action:hover,
.nav-action:focus-visible,
.button:hover,
.button:focus-visible {
  filter: saturate(1.08) brightness(1.03);
  transform: translateY(-2px);
}

.nav-action:active,
.button:active {
  transform: translateY(1px) scale(0.985);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  border-radius: 50%;
  background: hsl(var(--white) / 0.62);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: hsl(var(--ocean));
}

.hero {
  display: grid;
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 650px;
  margin: 0 auto;
  padding: 58px 0 76px;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(42px, 6vw, 84px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: 6px;
}

.eyebrow,
.mini-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: hsl(var(--ocean));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 8px 13px 8px 10px;
  border: 1px solid hsl(var(--white) / 0.72);
  border-radius: 999px;
  background: hsl(var(--white) / 0.5);
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.76), 0 8px 24px hsl(var(--shadow-color) / 0.08);
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 10px;
  height: 10px;
  border: 2px solid hsl(var(--white) / 0.8);
  border-radius: 50%;
  background: hsl(var(--meadow));
  box-shadow: 0 0 0 4px hsl(var(--meadow) / 0.16), 0 0 16px hsl(var(--meadow) / 0.55);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1 {
  max-width: 700px;
  margin: 22px 0 20px;
  color: hsl(var(--ink));
  font-size: clamp(54px, 5.3vw, 76px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

h1 span {
  position: relative;
  display: inline-block;
  color: hsl(var(--ocean-mid));
  text-shadow: 0 2px 0 hsl(var(--white) / 0.5);
}

h1 span::after {
  position: absolute;
  right: 2%;
  bottom: -10px;
  left: 2%;
  height: 10px;
  border-radius: 50%;
  background: hsl(var(--sun) / 0.65);
  content: "";
  filter: blur(6px);
  transform: rotate(-1deg);
}

.hero-lede {
  max-width: 570px;
  margin-bottom: 28px;
  color: hsl(var(--ink-soft));
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid hsl(var(--white) / 0.76);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  background: var(--gradient-aqua);
  box-shadow: var(--shadow-button);
  color: hsl(var(--white));
}

.button-glass {
  background: linear-gradient(180deg, hsl(var(--white) / 0.84), hsl(var(--white) / 0.58));
  box-shadow: inset 0 1px 0 hsl(var(--white)), 0 10px 30px hsl(var(--shadow-color) / 0.12);
  color: hsl(var(--ocean));
}

.button-orb {
  width: 17px;
  height: 17px;
  border: 1px solid hsl(var(--white) / 0.95);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, hsl(var(--white)) 0 9%, hsl(var(--aqua-light) / 0.4) 22%, hsl(var(--aqua) / 0.4) 58%, hsl(310 70% 76% / 0.48) 100%);
  box-shadow: inset -2px -2px 5px hsl(var(--ocean-mid) / 0.18), 0 2px 5px hsl(var(--ocean-mid) / 0.16);
}

.tiny-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  color: hsl(var(--ink-soft));
  font-size: 13px;
}

.tiny-note p {
  margin: 0;
}

.tiny-note strong {
  color: hsl(var(--ocean));
  font-variant-numeric: tabular-nums;
}

.tiny-avatars {
  display: flex;
}

.tiny-avatars span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: -6px;
  place-items: center;
  border: 2px solid hsl(var(--sky-light));
  border-radius: 50%;
  background: hsl(var(--white) / 0.82);
  box-shadow: 0 4px 12px hsl(var(--shadow-color) / 0.12);
  color: hsl(var(--ocean-mid));
}

.tiny-avatars span:first-child {
  margin-left: 0;
  color: hsl(var(--sun-deep));
}

.tiny-avatars span:nth-child(2) {
  color: hsl(var(--meadow-deep));
}

.hero-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
}

.visual-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.03 / 1;
  padding: 9px;
  border: 1px solid hsl(var(--white) / 0.9);
  border-radius: 36px;
  background: linear-gradient(145deg, hsl(var(--white) / 0.94), hsl(var(--aqua-light) / 0.32));
  box-shadow: var(--shadow-deep), inset 0 1px 0 hsl(var(--white));
  transform: rotate(1.4deg);
}

.visual-frame::after {
  position: absolute;
  inset: 9px;
  border: 1px solid hsl(var(--white) / 0.54);
  border-radius: 28px;
  box-shadow: inset 0 0 40px hsl(var(--ocean) / 0.12);
  content: "";
  pointer-events: none;
}

.visual-frame img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
}

.frame-gloss {
  position: absolute;
  top: 14px;
  right: 16%;
  left: 16%;
  height: 22%;
  border-radius: 50%;
  background: linear-gradient(180deg, hsl(var(--white) / 0.34), transparent);
  filter: blur(8px);
  pointer-events: none;
}

.weather-pill,
.eco-pill {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  border: 1px solid hsl(var(--white) / 0.8);
  background: linear-gradient(145deg, hsl(var(--white) / 0.9), hsl(var(--white) / 0.64));
  box-shadow: 0 10px 30px hsl(var(--ocean) / 0.18), inset 0 1px 0 hsl(var(--white));
  backdrop-filter: blur(12px) saturate(1.3);
}

.weather-pill {
  top: 25px;
  right: 22px;
  gap: 10px;
  padding: 9px 13px 9px 9px;
  border-radius: 18px;
  transform: rotate(-1.4deg);
}

.weather-sun {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-sun);
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.7), 0 4px 10px hsl(var(--sun-deep) / 0.28);
  color: hsl(var(--white));
}

.weather-pill > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.weather-pill strong {
  font-family: var(--font-display);
  font-size: 15px;
}

.weather-pill small {
  margin-top: 3px;
  color: hsl(var(--ink-soft));
  font-size: 10px;
  font-weight: 700;
}

.eco-pill {
  right: 20px;
  bottom: 22px;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: hsl(var(--meadow-deep));
  font-size: 12px;
  font-weight: 800;
  transform: rotate(-1.4deg);
}

.leaf-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 10px;
  overflow: hidden;
  border-radius: 100% 0 100% 0;
  background: var(--gradient-green);
  color: transparent;
  transform: rotate(-30deg);
}

.bubble {
  position: absolute;
  z-index: 5;
  border: 1px solid hsl(var(--white) / 0.84);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, hsl(var(--white) / 0.92) 0 6%, hsl(var(--aqua-light) / 0.16) 21%, hsl(var(--aqua) / 0.14) 61%, hsl(312 70% 73% / 0.24) 83%, hsl(var(--white) / 0.42) 100%);
  box-shadow: inset -6px -8px 12px hsl(var(--ocean) / 0.1), inset 4px 4px 8px hsl(var(--white) / 0.64), 0 10px 30px hsl(var(--ocean-mid) / 0.15);
  animation: bob 5s ease-in-out infinite;
  pointer-events: none;
}

.bubble::before {
  position: absolute;
  top: 17%;
  left: 20%;
  width: 26%;
  height: 15%;
  border-radius: 50%;
  background: hsl(var(--white) / 0.78);
  content: "";
  filter: blur(1px);
  transform: rotate(-30deg);
}

.bubble-a {
  top: 10%;
  left: -34px;
  width: 72px;
  height: 72px;
}

.bubble-b {
  right: -22px;
  bottom: 20%;
  width: 46px;
  height: 46px;
  animation-delay: -1.6s;
}

.bubble-c {
  bottom: -24px;
  left: 16%;
  width: 38px;
  height: 38px;
  animation-delay: -3s;
}

.sparkle {
  position: absolute;
  z-index: 6;
  color: hsl(var(--white));
  font-size: 24px;
  text-shadow: 0 0 12px hsl(var(--aqua));
  animation: twinkle 2.8s ease-in-out infinite;
}

.sparkle-a {
  top: 2%;
  right: 11%;
}

.sparkle-b {
  bottom: 7%;
  left: -1%;
  font-size: 17px;
  animation-delay: -1.2s;
}

.good-things {
  position: relative;
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 72px 0 82px;
}

.good-things::before {
  position: absolute;
  top: 0;
  right: -20vw;
  bottom: 0;
  left: -20vw;
  z-index: -1;
  border-top: 1px solid hsl(var(--white) / 0.68);
  background: linear-gradient(180deg, hsl(var(--sky-soft) / 0.62), hsl(var(--white) / 0.48));
  content: "";
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}

.section-heading h2,
.hello-card h2 {
  margin: 8px 0 0;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-heading > p {
  max-width: 440px;
  margin: 0 0 4px;
  color: hsl(var(--ink-soft));
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 25px;
  border: 1px solid hsl(var(--border) / 0.88);
  border-radius: 28px;
  background: var(--glass-surface);
  box-shadow: inset 0 1px 0 hsl(var(--white)), 0 18px 45px hsl(var(--shadow-color) / 0.12);
  backdrop-filter: blur(10px);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.feature-card::after {
  position: absolute;
  right: -40px;
  bottom: -64px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--aqua-light) / 0.2), transparent 68%);
  content: "";
}

.feature-card:hover {
  box-shadow: inset 0 1px 0 hsl(var(--white)), 0 24px 54px hsl(var(--shadow-color) / 0.17);
  transform: translateY(-5px);
}

.feature-icon {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid hsl(var(--white) / 0.86);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.84), 0 12px 24px hsl(var(--shadow-color) / 0.16);
}

.feature-air .feature-icon {
  background: var(--gradient-aqua);
}

.feature-kind .feature-icon {
  background: var(--gradient-green);
}

.feature-play .feature-icon {
  background: var(--gradient-sun);
}

.mini-cloud {
  position: relative;
  width: 43px;
  height: 17px;
  border-radius: 999px;
  background: hsl(var(--white) / 0.92);
  box-shadow: 0 5px 10px hsl(var(--ocean) / 0.12);
}

.mini-cloud::before,
.mini-cloud::after {
  position: absolute;
  bottom: 3px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.mini-cloud::before {
  left: 8px;
  width: 22px;
  height: 22px;
}

.mini-cloud::after {
  right: 6px;
  width: 27px;
  height: 27px;
}

.mini-breeze {
  position: absolute;
  right: 9px;
  bottom: 6px;
  color: hsl(var(--white) / 0.82);
  font-size: 22px;
  font-weight: 800;
}

.mini-globe,
.mini-flower {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid hsl(var(--white) / 0.78);
  border-radius: 50%;
  color: hsl(var(--white));
  font-size: 24px;
  box-shadow: inset 0 0 0 5px hsl(var(--white) / 0.12);
}

.mini-flower {
  border: 0;
  font-size: 43px;
  text-shadow: 0 3px 0 hsl(var(--sun-deep) / 0.18);
}

.feature-number {
  position: absolute;
  top: 25px;
  right: 25px;
  color: hsl(var(--ocean-mid) / 0.42);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.feature-card p {
  max-width: 31ch;
  margin-bottom: 23px;
  color: hsl(var(--ink-soft));
  font-size: 14px;
}

.card-link {
  position: relative;
  z-index: 2;
  color: hsl(var(--ocean-mid));
  font-size: 13px;
  font-weight: 800;
}

.card-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms ease;
}

.feature-card:hover .card-link span {
  transform: translateX(4px);
}

.card-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hello-card {
  position: relative;
  display: grid;
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 250px;
  margin: 84px auto;
  overflow: hidden;
  padding: 48px 52px;
  border: 1px solid hsl(var(--white) / 0.8);
  border-radius: 34px;
  background: linear-gradient(125deg, hsl(var(--ocean-mid)) 0%, hsl(var(--aqua)) 50%, hsl(var(--aqua-light)) 115%);
  box-shadow: var(--shadow-deep), inset 0 1px 0 hsl(var(--white) / 0.45);
  color: hsl(var(--white));
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 44px;
}

.hello-card::before {
  position: absolute;
  top: -170px;
  left: 35%;
  width: 420px;
  height: 420px;
  border: 1px solid hsl(var(--white) / 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 70px hsl(var(--white) / 0.06), 0 0 0 140px hsl(var(--white) / 0.035);
  content: "";
}

.hello-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hello-card .mini-kicker {
  color: hsl(var(--white) / 0.78);
}

.hello-card h2 {
  max-width: 740px;
  color: hsl(var(--white));
  text-shadow: 0 2px 0 hsl(var(--ocean) / 0.16);
}

.button-sun {
  position: relative;
  z-index: 2;
  min-width: 156px;
  background: var(--gradient-sun);
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.74), inset 0 -4px 0 hsl(var(--sun-deep) / 0.25), 0 12px 24px hsl(var(--ocean) / 0.24);
  color: hsl(var(--ink));
}

.hello-orbit span {
  position: absolute;
  border: 1px solid hsl(var(--white) / 0.62);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, hsl(var(--white) / 0.86), hsl(var(--aqua-light) / 0.12) 50%, hsl(312 70% 76% / 0.24));
  box-shadow: inset -4px -4px 8px hsl(var(--ocean) / 0.13);
}

.hello-orbit span:first-child {
  top: 22px;
  right: 28%;
  width: 33px;
  height: 33px;
}

.hello-orbit span:nth-child(2) {
  right: 15%;
  bottom: -16px;
  width: 78px;
  height: 78px;
}

.hello-orbit span:last-child {
  top: -24px;
  right: 4%;
  width: 54px;
  height: 54px;
}

.site-footer {
  display: grid;
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 120px;
  margin: 0 auto;
  padding: 32px 0 38px;
  border-top: 1px solid hsl(var(--white) / 0.68);
  color: hsl(var(--ink-soft));
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer > a:last-child {
  justify-self: end;
  font-weight: 700;
}

.footer-brand {
  color: hsl(var(--ink));
  font-size: 16px;
}

.footer-brand .brand-orb {
  width: 28px;
  height: 28px;
}

.bubble-stage {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}

.released-bubble {
  position: absolute;
  bottom: -90px;
  border: 1px solid hsl(var(--white) / 0.86);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, hsl(var(--white) / 0.95) 0 7%, hsl(var(--aqua-light) / 0.18) 24%, hsl(var(--aqua) / 0.16) 65%, hsl(312 70% 76% / 0.3));
  box-shadow: inset -8px -10px 15px hsl(var(--ocean) / 0.11), inset 5px 5px 10px hsl(var(--white) / 0.74), 0 12px 28px hsl(var(--ocean-mid) / 0.15);
  animation: release 3.8s cubic-bezier(0.21, 0.68, 0.32, 1) forwards;
}

.released-bubble::before {
  position: absolute;
  top: 18%;
  left: 20%;
  width: 28%;
  height: 16%;
  border-radius: 50%;
  background: hsl(var(--white) / 0.8);
  content: "";
  transform: rotate(-28deg);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  padding: 12px 18px;
  border: 1px solid hsl(var(--white) / 0.8);
  border-radius: 999px;
  background: hsl(var(--white) / 0.78);
  box-shadow: 0 14px 40px hsl(var(--shadow-color) / 0.18);
  color: hsl(var(--ocean));
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(14px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(2) {
  transition-delay: 80ms;
}

.feature-card:nth-child(3) {
  transition-delay: 160ms;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.75) rotate(0); }
  50% { opacity: 1; transform: scale(1.15) rotate(14deg); }
}

@keyframes release {
  0% { opacity: 0; transform: translate3d(0, 20px, 0) scale(0.7); }
  12% { opacity: 1; }
  70% { opacity: 0.92; }
  100% { opacity: 0; transform: translate3d(var(--drift), -105vh, 0) scale(1.16); }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
    gap: 38px;
  }

  h1 {
    font-size: clamp(50px, 5.6vw, 64px);
  }

  .visual-frame {
    border-radius: 30px;
  }
}

@media (max-width: 880px) {
  .nav-menu > a {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 66px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: min(100%, 630px);
    justify-self: center;
  }

  .visual-frame {
    aspect-ratio: 1.2 / 1;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
  }

  .hello-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .button-sun {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .good-things,
  .hello-card,
  .site-footer {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .site-header {
    margin-top: 10px;
  }

  .nav-shell {
    min-height: 58px;
    padding: 6px 7px 6px 13px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-orb {
    width: 34px;
    height: 34px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    padding: 10px;
    border: 1px solid hsl(var(--white) / 0.78);
    border-radius: 24px;
    background: hsl(var(--white) / 0.84);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu > a {
    display: block;
    padding: 12px 14px;
  }

  .nav-action {
    justify-content: center;
    margin-top: 4px;
  }

  .hero {
    padding: 44px 0 58px;
    gap: 48px;
  }

  .hero-copy {
    padding: 0 2px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  h1 {
    margin-top: 18px;
    font-size: clamp(43px, 13vw, 56px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .tiny-note {
    align-items: flex-start;
  }

  .visual-frame {
    aspect-ratio: 1 / 1.04;
    border-radius: 27px;
    transform: rotate(0.7deg);
  }

  .visual-frame img {
    border-radius: 21px;
  }

  .weather-pill {
    top: 18px;
    right: 16px;
    transform: rotate(-0.7deg) scale(0.9);
    transform-origin: top right;
  }

  .eco-pill {
    right: 16px;
    bottom: 18px;
    transform: rotate(-0.7deg) scale(0.92);
    transform-origin: bottom right;
  }

  .bubble-a {
    left: -12px;
    width: 58px;
    height: 58px;
  }

  .bubble-b {
    right: -10px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2,
  .hello-card h2 {
    font-size: 37px;
  }

  .section-heading > p {
    margin-top: 15px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card:last-child {
    min-height: 290px;
    grid-column: auto;
  }

  .hello-card {
    min-height: 360px;
    margin: 62px auto;
    padding: 38px 26px;
    align-content: center;
  }

  .site-footer {
    padding: 32px 0;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer p {
    text-align: left;
  }

  .site-footer > a:last-child {
    justify-self: start;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    text-align: center;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Aero Atlas editorial sections */
.hero h1 {
  font-size: clamp(50px, 4.85vw, 70px);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.hero-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid hsl(var(--white) / 0.62);
  border-radius: 999px;
  background: hsl(var(--white) / 0.38);
  color: hsl(var(--ink-soft));
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-facts strong {
  color: hsl(var(--ocean));
  font-family: var(--font-display);
  font-size: 12px;
}

.content-section {
  position: relative;
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 92px 0;
}

.content-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--white) / 0.85), transparent);
  content: "";
}

.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
  color: hsl(var(--ocean-mid));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section-index::after {
  width: 54px;
  height: 1px;
  background: hsl(var(--ocean-mid) / 0.32);
  content: "";
}

.section-intro h2,
.timeline-intro h2,
.family-heading h2,
.meaning-copy h2,
.sources-card h2 {
  margin: 10px 0 20px;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.definition-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(54px, 8vw, 112px);
  align-items: start;
}

.section-lede {
  max-width: 590px;
  margin: 0;
  color: hsl(var(--ink-soft));
  font-size: 19px;
  line-height: 1.65;
}

.definition-copy {
  padding-top: 27px;
}

.definition-copy p {
  margin-bottom: 20px;
  color: hsl(var(--ink-soft));
  font-size: 16px;
  line-height: 1.78;
}

.definition-copy strong {
  color: hsl(var(--ocean));
}

.definition-panels {
  display: grid;
  margin-top: 52px;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 18px;
}

.one-sentence,
.name-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid hsl(var(--white) / 0.8);
  border-radius: 30px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 hsl(var(--white) / 0.66);
}

.one-sentence {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(128deg, hsl(var(--ocean-mid)) 0%, hsl(var(--aqua)) 53%, hsl(var(--aqua-light)) 125%);
  color: hsl(var(--white));
}

.panel-label {
  position: relative;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.one-sentence .panel-label {
  color: hsl(var(--white) / 0.72);
}

.one-sentence blockquote {
  position: relative;
  z-index: 2;
  max-width: 690px;
  margin: 36px 0 0;
  font-family: var(--font-display);
  font-size: clamp(29px, 3.1vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.panel-orbs span {
  position: absolute;
  border: 1px solid hsl(var(--white) / 0.54);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, hsl(var(--white) / 0.76), hsl(var(--aqua-light) / 0.08) 54%, hsl(315 70% 76% / 0.2));
  box-shadow: inset -5px -6px 11px hsl(var(--ocean) / 0.12);
}

.panel-orbs span:first-child {
  top: -24px;
  right: 18%;
  width: 70px;
  height: 70px;
}

.panel-orbs span:nth-child(2) {
  right: -30px;
  bottom: -28px;
  width: 132px;
  height: 132px;
}

.panel-orbs span:last-child {
  top: 40%;
  right: 5%;
  width: 33px;
  height: 33px;
}

.name-card {
  background: var(--glass-surface);
  backdrop-filter: blur(14px);
}

.name-card .panel-label {
  color: hsl(var(--ocean-mid));
}

.name-equation {
  display: grid;
  margin: 35px 0 24px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.name-equation div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.name-equation strong {
  color: hsl(var(--ocean));
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.03em;
}

.name-equation small {
  margin-top: 4px;
  color: hsl(var(--ink-soft));
  font-size: 10px;
  line-height: 1.3;
}

.name-equation > span {
  color: hsl(var(--meadow));
  font-family: var(--font-display);
  font-size: 22px;
}

.name-card p {
  margin-bottom: 13px;
  color: hsl(var(--ink-soft));
  font-size: 13px;
}

.name-card a,
.text-link {
  color: hsl(var(--ocean-mid));
  font-size: 13px;
  font-weight: 800;
}

.anatomy-section {
  width: min(100%, calc(var(--page-width) + 96px));
  margin-top: 18px;
  padding-right: 48px;
  padding-left: 48px;
  border: 1px solid hsl(var(--white) / 0.66);
  border-radius: 44px;
  background: linear-gradient(180deg, hsl(var(--white) / 0.54), hsl(var(--sky-soft) / 0.72));
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.9), 0 28px 80px hsl(var(--shadow-color) / 0.1);
  backdrop-filter: blur(12px);
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trait-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border: 1px solid hsl(var(--white) / 0.86);
  border-radius: 25px;
  background: hsl(var(--white) / 0.62);
  box-shadow: inset 0 1px 0 hsl(var(--white)), 0 13px 30px hsl(var(--shadow-color) / 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.trait-card:hover {
  box-shadow: inset 0 1px 0 hsl(var(--white)), 0 20px 38px hsl(var(--shadow-color) / 0.14);
  transform: translateY(-4px);
}

.trait-icon {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 31px;
  place-items: center;
  border: 1px solid hsl(var(--white) / 0.9);
  border-radius: 19px;
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.74), 0 9px 18px hsl(var(--shadow-color) / 0.14);
}

.trait-count {
  position: absolute;
  top: 24px;
  right: 24px;
  color: hsl(var(--ocean-mid) / 0.45);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.trait-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.trait-card p {
  margin: 0;
  color: hsl(var(--ink-soft));
  font-size: 13px;
  line-height: 1.65;
}

.icon-gloss {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, hsl(var(--white)) 0 8%, hsl(var(--aqua-light) / 0.45) 22%, hsl(var(--aqua) / 0.55) 64%, hsl(308 72% 76% / 0.62));
}

.icon-gloss::before {
  position: absolute;
  top: 11px;
  left: 14px;
  width: 15px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--white) / 0.86);
  content: "";
  transform: rotate(-28deg);
}

.icon-nature {
  overflow: hidden;
  background: var(--gradient-aqua);
}

.icon-nature::before {
  position: absolute;
  right: -8px;
  bottom: -12px;
  left: -8px;
  height: 35px;
  border-radius: 50%;
  background: var(--gradient-green);
  content: "";
}

.icon-depth {
  background: linear-gradient(150deg, hsl(var(--white)), hsl(var(--aqua-light) / 0.54));
}

.icon-depth::before {
  width: 31px;
  height: 17px;
  border: 1px solid hsl(var(--white) / 0.9);
  border-radius: 999px;
  background: var(--gradient-aqua);
  box-shadow: inset 0 -3px 0 hsl(var(--ocean) / 0.18), 0 5px 8px hsl(var(--ocean) / 0.18);
  content: "";
}

.icon-color {
  background: conic-gradient(from 30deg, hsl(var(--sun)), hsl(var(--meadow)), hsl(var(--aqua)), hsl(316 72% 66%), hsl(var(--sun)));
}

.icon-shape {
  background: var(--gradient-green);
  transform: rotate(6deg);
}

.icon-shape::before {
  width: 30px;
  height: 30px;
  border: 2px solid hsl(var(--white) / 0.76);
  border-radius: 50%;
  content: "";
}

.icon-type {
  background: var(--gradient-sun);
  color: hsl(var(--ink));
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.compare-strip {
  display: grid;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid hsl(var(--white) / 0.82);
  border-radius: 27px;
  background: hsl(var(--white) / 0.5);
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
}

.compare-strip article {
  padding: 21px 20px;
  border-radius: 20px;
}

.compare-strip .is-current {
  background: linear-gradient(145deg, hsl(var(--aqua) / 0.17), hsl(var(--meadow) / 0.1));
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.72);
}

.compare-era {
  color: hsl(var(--ocean-mid));
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare-strip h3 {
  margin: 7px 0 6px;
  font-size: 17px;
}

.compare-strip p {
  margin: 0;
  color: hsl(var(--ink-soft));
  font-size: 11px;
  line-height: 1.55;
}

.compare-arrow {
  display: grid;
  width: 28px;
  place-items: center;
  color: hsl(var(--ocean-mid) / 0.46);
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(62px, 9vw, 132px);
  align-items: start;
}

.timeline-intro {
  position: sticky;
  top: 110px;
}

.timeline-intro p {
  color: hsl(var(--ink-soft));
  line-height: 1.75;
}

.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  position: relative;
  display: grid;
  min-height: 156px;
  padding: 0 0 42px 36px;
  grid-template-columns: 105px 1fr;
  gap: 24px;
}

.timeline-list li::before {
  position: absolute;
  top: 5px;
  bottom: -5px;
  left: 5px;
  width: 1px;
  background: linear-gradient(hsl(var(--aqua)), hsl(var(--aqua) / 0.13));
  content: "";
}

.timeline-list li::after {
  position: absolute;
  top: 3px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 3px solid hsl(var(--white) / 0.86);
  border-radius: 50%;
  background: hsl(var(--aqua));
  box-shadow: 0 0 0 5px hsl(var(--aqua) / 0.13), 0 0 18px hsl(var(--aqua) / 0.45);
  content: "";
}

.timeline-list li:last-child::before {
  display: none;
}

.timeline-year {
  color: hsl(var(--ocean-mid));
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.timeline-list h3 {
  margin: -5px 0 7px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.timeline-list p {
  margin: 0;
  color: hsl(var(--ink-soft));
  font-size: 14px;
  line-height: 1.65;
}

.family-section {
  width: min(100%, calc(var(--page-width) + 96px));
  padding-right: 48px;
  padding-left: 48px;
  border: 1px solid hsl(var(--white) / 0.7);
  border-radius: 44px;
  background: linear-gradient(180deg, hsl(var(--white) / 0.58), hsl(var(--sky-soft) / 0.78));
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.9), 0 32px 90px hsl(var(--shadow-color) / 0.11);
}

.family-heading {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.72fr);
  gap: 70px;
  align-items: end;
}

.family-explainer p {
  margin: 0 0 7px;
  color: hsl(var(--ink-soft));
  font-size: 14px;
  line-height: 1.7;
}

.family-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 34px 0 22px;
}

.filter-button {
  padding: 8px 13px;
  border: 1px solid hsl(var(--white) / 0.84);
  border-radius: 999px;
  background: hsl(var(--white) / 0.55);
  color: hsl(var(--ink-soft));
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: background 170ms ease, color 170ms ease, transform 170ms ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-1px);
}

.filter-button.is-active {
  background: var(--gradient-aqua);
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.65), 0 7px 15px hsl(var(--ocean-mid) / 0.2);
  color: hsl(var(--white));
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.family-card {
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  padding: 10px 10px 20px;
  border: 1px solid hsl(var(--white) / 0.9);
  border-radius: 25px;
  background: hsl(var(--white) / 0.7);
  box-shadow: inset 0 1px 0 hsl(var(--white)), 0 14px 32px hsl(var(--shadow-color) / 0.09);
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.family-card:hover {
  box-shadow: inset 0 1px 0 hsl(var(--white)), 0 22px 46px hsl(var(--shadow-color) / 0.15);
  transform: translateY(-5px);
}

.family-card.is-hidden {
  display: none;
}

.family-art {
  position: relative;
  display: grid;
  height: 158px;
  overflow: hidden;
  place-items: center;
  border: 1px solid hsl(var(--white) / 0.65);
  border-radius: 18px;
  isolation: isolate;
}

.family-art::before,
.family-art::after {
  position: absolute;
  content: "";
}

.family-art::before {
  z-index: -1;
}

.family-art span {
  position: relative;
  z-index: 2;
  color: hsl(var(--white));
  font-family: var(--font-display);
  font-size: 43px;
  font-weight: 700;
  text-shadow: 0 4px 15px hsl(var(--ocean) / 0.26);
}

.art-aero {
  background: linear-gradient(180deg, hsl(var(--sky)) 0 58%, hsl(var(--aqua-light)) 59% 70%, hsl(var(--meadow)) 71%);
}

.art-aero::before {
  right: -12%;
  bottom: -43%;
  left: -12%;
  height: 92px;
  border-radius: 50%;
  background: hsl(var(--meadow-deep));
}

.art-aero::after,
.art-aqua::after {
  top: 19px;
  right: 28px;
  width: 37px;
  height: 37px;
  border: 1px solid hsl(var(--white) / 0.77);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, hsl(var(--white) / 0.9), transparent 20%, hsl(var(--aqua-light) / 0.18));
  box-shadow: inset -4px -5px 8px hsl(var(--ocean) / 0.1);
}

.art-eco {
  background: radial-gradient(circle at 70% 20%, hsl(var(--sun)) 0 8%, transparent 9%), linear-gradient(150deg, hsl(100 68% 73%), hsl(var(--meadow)) 56%, hsl(var(--meadow-deep)));
}

.art-eco::before {
  width: 75px;
  height: 95px;
  border-radius: 70% 0 70% 0;
  background: hsl(var(--white) / 0.25);
  transform: rotate(-26deg);
}

.art-metro {
  background: conic-gradient(from 30deg at 40% 50%, hsl(319 72% 56%), hsl(var(--sun)), hsl(var(--aqua)), hsl(var(--meadow)), hsl(319 72% 56%));
}

.art-metro::before {
  width: 180px;
  height: 60px;
  border: 14px solid hsl(var(--ink) / 0.2);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.art-dorfic {
  background: linear-gradient(130deg, hsl(45 100% 70%), hsl(26 94% 56%) 45%, hsl(3 78% 51%));
}

.art-dorfic::before {
  width: 142px;
  height: 142px;
  border: 19px solid hsl(var(--white) / 0.28);
  border-radius: 50%;
  transform: translate(45px, 34px);
}

.art-aqua {
  background: linear-gradient(180deg, hsl(var(--sky-light)), hsl(var(--aqua)) 40%, hsl(194 82% 33%));
}

.art-aqua::before {
  bottom: -18px;
  left: -5%;
  width: 110%;
  height: 68px;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, hsl(var(--white) / 0.28) 0 3px, transparent 4px 13px);
}

.art-technozen {
  background: linear-gradient(135deg, hsl(var(--white)), hsl(170 35% 86%), hsl(195 55% 82%));
}

.art-technozen span {
  color: hsl(var(--ocean-mid) / 0.52);
  text-shadow: none;
}

.art-technozen::before {
  width: 106px;
  height: 48px;
  border: 1px solid hsl(var(--ocean-mid) / 0.2);
  border-radius: 999px;
  background: hsl(var(--white) / 0.47);
  box-shadow: 0 0 0 18px hsl(var(--white) / 0.19);
}

.art-dark {
  background: radial-gradient(circle at 50% 35%, hsl(var(--aqua) / 0.85), transparent 22%), linear-gradient(145deg, hsl(209 47% 12%), hsl(195 80% 11%));
}

.art-dark::before {
  width: 110px;
  height: 110px;
  border: 1px solid hsl(var(--aqua-light) / 0.6);
  border-radius: 50%;
  box-shadow: 0 0 34px hsl(var(--aqua) / 0.65), inset 0 0 22px hsl(var(--aqua) / 0.3);
}

.art-aurora {
  background: radial-gradient(circle at 75% 24%, hsl(var(--aqua-light) / 0.72), transparent 19%), linear-gradient(135deg, hsl(258 69% 35%), hsl(304 70% 55%) 40%, hsl(var(--aqua)) 75%, hsl(var(--meadow)));
}

.art-aurora::before {
  width: 210px;
  height: 55px;
  border: 12px solid hsl(var(--white) / 0.34);
  border-right-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  filter: blur(5px);
  transform: rotate(-22deg);
}

.art-glacier {
  background: linear-gradient(145deg, hsl(var(--white)), hsl(194 68% 84%) 42%, hsl(204 82% 54%));
}

.art-glacier::before {
  bottom: -36px;
  width: 150px;
  height: 140px;
  background: hsl(var(--white) / 0.66);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.art-jolly {
  background: radial-gradient(circle at 30% 30%, hsl(var(--sun)) 0 4%, transparent 5%), linear-gradient(145deg, hsl(348 72% 51%), hsl(356 73% 37%) 56%, hsl(137 48% 31%));
}

.art-jolly::before {
  width: 115px;
  height: 115px;
  border: 9px dotted hsl(var(--white) / 0.64);
  border-radius: 50%;
}

.art-evil {
  background: radial-gradient(circle at 75% 25%, hsl(14 100% 61%) 0 9%, transparent 10%), linear-gradient(160deg, hsl(4 70% 34%), hsl(213 38% 10%) 54%, hsl(102 42% 18%));
}

.art-evil::before {
  right: -5%;
  bottom: -33px;
  left: -5%;
  height: 82px;
  border-radius: 50%;
  background: hsl(0 0% 3% / 0.65);
}

.family-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 15px 5px 10px;
  color: hsl(var(--ocean-mid) / 0.66);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.family-card h3 {
  margin: 0 5px 8px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.family-card h3 small {
  color: hsl(var(--ink-soft));
  font-size: 12px;
  font-weight: 600;
}

.family-card > p {
  margin: 0 5px 16px;
  color: hsl(var(--ink-soft));
  font-size: 12px;
  line-height: 1.58;
}

.signature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 5px 0;
  padding: 0;
  list-style: none;
}

.signature-list li {
  padding: 5px 8px;
  border: 1px solid hsl(var(--ocean-mid) / 0.11);
  border-radius: 999px;
  background: hsl(var(--aqua-light) / 0.13);
  color: hsl(var(--ocean));
  font-size: 8px;
  font-weight: 800;
}

.taxonomy-panel {
  margin-top: 28px;
  padding: 35px;
  border: 1px solid hsl(var(--white) / 0.74);
  border-radius: 28px;
  background: linear-gradient(138deg, hsl(var(--ocean)) 0%, hsl(194 73% 20%) 52%, hsl(var(--ocean-mid)) 140%);
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.22), 0 20px 48px hsl(var(--ocean) / 0.2);
  color: hsl(var(--white));
}

.taxonomy-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 60px;
  align-items: end;
}

.taxonomy-heading .mini-kicker {
  grid-column: 1 / -1;
  color: hsl(var(--aqua-light));
}

.taxonomy-heading h3 {
  margin: 9px 0 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.taxonomy-heading p {
  margin: 9px 0 0;
  color: hsl(var(--white) / 0.7);
  font-size: 13px;
  line-height: 1.6;
}

.relative-list {
  display: grid;
  margin: 31px 0 22px;
  border-top: 1px solid hsl(var(--white) / 0.14);
  grid-template-columns: 1fr 1fr;
}

.relative-list details {
  border-bottom: 1px solid hsl(var(--white) / 0.14);
}

.relative-list details:nth-child(odd) {
  border-right: 1px solid hsl(var(--white) / 0.14);
}

.relative-list summary {
  position: relative;
  padding: 14px 42px 14px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.relative-list details:nth-child(even) summary,
.relative-list details:nth-child(even) p {
  padding-left: 20px;
}

.relative-list summary::-webkit-details-marker {
  display: none;
}

.relative-list summary::after {
  position: absolute;
  top: 14px;
  right: 15px;
  color: hsl(var(--aqua-light));
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.relative-list details[open] summary::after {
  content: "−";
}

.relative-list p {
  max-width: 52ch;
  margin: -3px 36px 15px 0;
  color: hsl(var(--white) / 0.66);
  font-size: 11px;
  line-height: 1.55;
}

.taxonomy-panel .text-link {
  color: hsl(var(--aqua-light));
}

.meaning-card {
  display: grid;
  overflow: hidden;
  padding: 52px;
  border: 1px solid hsl(var(--white) / 0.82);
  border-radius: 34px;
  background: linear-gradient(145deg, hsl(var(--white) / 0.82), hsl(var(--sky-light) / 0.54));
  box-shadow: inset 0 1px 0 hsl(var(--white)), var(--shadow-soft);
  grid-template-columns: 1.07fr 0.93fr;
  gap: 74px;
}

.meaning-copy p {
  max-width: 650px;
  margin: 0;
  color: hsl(var(--ink-soft));
  line-height: 1.75;
}

.myth-list {
  display: grid;
  gap: 9px;
}

.myth-list div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 95px;
  padding: 16px 19px;
  border: 1px solid hsl(var(--white) / 0.86);
  border-radius: 19px;
  background: hsl(var(--white) / 0.55);
  box-shadow: inset 0 1px 0 hsl(var(--white) / 0.82);
}

.myth-list strong {
  margin-bottom: 4px;
  color: hsl(var(--ocean));
  font-family: var(--font-display);
  font-size: 14px;
}

.myth-list span {
  color: hsl(var(--ink-soft));
  font-size: 11px;
  line-height: 1.5;
}

.sources-card {
  display: grid;
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto 90px;
  padding: 45px;
  border: 1px solid hsl(var(--white) / 0.8);
  border-radius: 32px;
  background: linear-gradient(125deg, hsl(var(--ocean-mid)) 0%, hsl(var(--aqua)) 70%, hsl(var(--aqua-light)) 145%);
  box-shadow: var(--shadow-deep), inset 0 1px 0 hsl(var(--white) / 0.46);
  color: hsl(var(--white));
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.sources-card .mini-kicker {
  color: hsl(var(--white) / 0.72);
}

.sources-card h2 {
  margin-bottom: 10px;
  color: hsl(var(--white));
}

.sources-card p {
  margin: 0;
  color: hsl(var(--white) / 0.72);
  font-size: 13px;
}

.source-links {
  display: grid;
  gap: 7px;
}

.source-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border: 1px solid hsl(var(--white) / 0.25);
  border-radius: 16px;
  background: hsl(var(--white) / 0.12);
  transition: background 170ms ease, transform 170ms ease;
}

.source-links a:hover,
.source-links a:focus-visible {
  background: hsl(var(--white) / 0.2);
  transform: translateX(3px);
}

.source-links span {
  color: hsl(var(--white) / 0.67);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-links strong {
  font-size: 12px;
}

@media (max-width: 1040px) {
  .trait-grid,
  .family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-heading,
  .meaning-card {
    gap: 45px;
  }
}

@media (max-width: 880px) {
  .content-section,
  .anatomy-section,
  .family-section {
    width: min(calc(100% - 40px), var(--page-width));
  }

  .definition-layout,
  .family-heading,
  .timeline-layout,
  .meaning-card,
  .sources-card {
    grid-template-columns: 1fr;
  }

  .definition-copy {
    padding-top: 0;
  }

  .definition-panels {
    grid-template-columns: 1fr;
  }

  .timeline-intro {
    position: static;
  }

  .taxonomy-heading {
    grid-template-columns: 1fr;
  }

  .taxonomy-heading p {
    max-width: 62ch;
  }

  .sources-card {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .content-section,
  .anatomy-section,
  .family-section,
  .sources-card {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .content-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .anatomy-section,
  .family-section {
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 30px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.8vw, 52px);
  }

  .hero-facts {
    gap: 6px;
  }

  .section-index {
    margin-bottom: 30px;
  }

  .section-intro h2,
  .timeline-intro h2,
  .family-heading h2,
  .meaning-copy h2,
  .sources-card h2 {
    font-size: 38px;
  }

  .section-lede {
    font-size: 17px;
  }

  .one-sentence,
  .name-card {
    min-height: 250px;
    padding: 26px;
    border-radius: 24px;
  }

  .name-equation {
    gap: 7px;
  }

  .name-equation strong {
    font-size: 13px;
  }

  .trait-grid,
  .family-grid {
    grid-template-columns: 1fr;
  }

  .trait-card {
    min-height: 230px;
  }

  .compare-strip {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    width: 100%;
    height: 28px;
    transform: rotate(90deg);
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .family-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .family-card {
    min-height: 415px;
  }

  .taxonomy-panel {
    padding: 26px 20px;
  }

  .relative-list {
    grid-template-columns: 1fr;
  }

  .relative-list details:nth-child(odd) {
    border-right: 0;
  }

  .relative-list details:nth-child(even) summary,
  .relative-list details:nth-child(even) p {
    padding-left: 0;
  }

  .meaning-card,
  .sources-card {
    padding: 30px 24px;
    border-radius: 25px;
  }

  .sources-card {
    margin-bottom: 62px;
  }

  .source-links a {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
