:root {
  --bg: #0a0d12;
  --bg-elevated: rgba(18, 23, 31, 0.72);
  --bg-strong: #121720;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6fb;
  --muted: #96a2b7;
  --muted-strong: #cbd4e2;
  --accent: #c8f247;
  --accent-deep: #b5eb6a;
  --flamingo: #ff8c78;
  --gumstory: #84a8ff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(132, 168, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(200, 242, 71, 0.08), transparent 24%),
    linear-gradient(180deg, #0a0d12 0%, #0d1118 100%);
}

a {
  color: inherit;
}

.ambient-grid,
.ambient-glow {
  position: fixed;
  pointer-events: none;
  inset: 0;
}

.ambient-grid {
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.ambient-glow {
  filter: blur(120px);
  opacity: 0.45;
}

.ambient-glow-left {
  background: radial-gradient(circle at 20% 10%, rgba(132, 168, 255, 0.3), transparent 32%);
}

.ambient-glow-right {
  background: radial-gradient(circle at 80% 0%, rgba(255, 140, 120, 0.14), transparent 26%);
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 56px;
  position: relative;
  z-index: 1;
}

.page-shell-narrow {
  width: min(calc(100% - 40px), 920px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  position: sticky;
  top: 18px;
  z-index: 20;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    backdrop-filter 200ms ease,
    transform 200ms ease;
}

.topbar.is-scrolled {
  background: rgba(10, 13, 18, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.brand-mark::before {
  width: 18px;
  height: 18px;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--accent), #ebffac);
}

.brand-mark::after {
  width: 8px;
  height: 8px;
  right: 10px;
  bottom: 10px;
  background: #f3f6fb;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav,
.site-footer-links,
.project-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topnav a,
.site-footer-links a,
.project-links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.topnav a:hover,
.site-footer-links a:hover,
.project-links a:hover,
.hero-text a:hover,
.legal-card a:hover,
.project-copy a:hover {
  color: var(--text);
}

.page-main {
  padding-top: 34px;
}

.hero-grid,
.project-card,
.structure-card,
.legal-card,
.subpage-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 34px;
  padding: 40px;
  border-radius: var(--radius-xl);
}

.hero-copy h1,
.section-intro h2,
.project-copy h3,
.structure-copy h2,
.legal-hero h1,
.subpage-copy h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero-copy h1,
.legal-hero h1,
.subpage-copy h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.1rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(200, 242, 71, 0.2);
  border-radius: 999px;
  background: rgba(200, 242, 71, 0.08);
  color: var(--muted-strong);
  font-size: 0.88rem;
  text-decoration: none;
}

.hero-text,
.legal-card p,
.project-copy p,
.structure-grid p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-text {
  max-width: 62ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #edffae);
  border-color: transparent;
  color: #091016;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.fact-tile {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.fact-tile span,
.project-points span,
.legal-updated,
.section-intro p,
.structure-copy p,
.project-meta,
.preview-header,
.preview-chip,
.visual-floatcard span,
.story-sheet span,
.story-column span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.fact-tile strong,
.project-points strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-surface {
  display: grid;
  align-items: stretch;
}

.hero-gallery {
  display: grid;
  gap: 18px;
  min-height: 100%;
}

.gallery-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.gallery-card::before,
.gallery-card::after {
  content: "";
  position: absolute;
}

.gallery-card-flamingo {
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 140, 120, 0.42), transparent 24%),
    linear-gradient(180deg, #17131b 0%, #141118 100%);
}

.gallery-card-flamingo::before {
  width: 240px;
  height: 240px;
  right: -24px;
  top: -38px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 194, 144, 0.94), rgba(255, 140, 120, 0.08) 66%, transparent 70%);
}

.gallery-card-flamingo::after {
  inset: auto 22px 22px 22px;
  height: 92px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.gallery-card-gumstory {
  background:
    radial-gradient(circle at 76% 18%, rgba(132, 168, 255, 0.32), transparent 22%),
    linear-gradient(180deg, #111722 0%, #10141d 100%);
}

.gallery-card-gumstory::before {
  left: 22px;
  right: 22px;
  top: 22px;
  bottom: 22px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.35;
}

.gallery-card-gumstory::after {
  left: 22px;
  right: 118px;
  bottom: 24px;
  height: 86px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-card-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
}

.gallery-card-copy span {
  display: block;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.gallery-card-copy strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.gallery-card-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.section-intro {
  padding: 76px 8px 24px;
}

.section-intro p,
.structure-copy p {
  margin: 0 0 14px;
}

.section-intro h2,
.structure-copy h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.project-list {
  display: grid;
  gap: 24px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius-xl);
  transition: transform 220ms ease, border-color 220ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.project-name {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.project-state {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.project-copy h3 {
  max-width: 16ch;
  font-size: clamp(1.85rem, 4vw, 3rem);
}

.project-copy p {
  margin: 18px 0 0;
  max-width: 60ch;
}

.project-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.project-points div {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.project-links {
  margin-top: 24px;
  font-weight: 700;
}

.project-visual {
  display: grid;
  align-items: stretch;
}

.project-cover {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.project-cover::before {
  content: "";
  position: absolute;
  inset: 0;
}

.project-cover-flamingo {
  background:
    radial-gradient(circle at 78% 26%, rgba(255, 140, 120, 0.42), transparent 22%),
    linear-gradient(180deg, #19141b 0%, #141117 100%);
}

.project-cover-flamingo::before {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 192, 136, 0.96), rgba(255, 140, 120, 0.08) 66%, transparent 70%),
    linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.03) 100%);
}

.project-cover-gumstory {
  background:
    radial-gradient(circle at 78% 22%, rgba(132, 168, 255, 0.3), transparent 24%),
    linear-gradient(180deg, #111722 0%, #10131b 100%);
}

.project-cover-gumstory::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.28;
}

.cover-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -24px;
  top: -34px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 198, 150, 0.96), rgba(255, 140, 120, 0.08) 68%, transparent 70%);
}

.cover-gridline {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 70%, rgba(255, 255, 255, 0.06) 70% 71%, transparent 71%),
    linear-gradient(180deg, transparent 0 64%, rgba(255, 255, 255, 0.06) 64% 65%, transparent 65%);
  opacity: 0.45;
}

.cover-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.cover-copy span {
  color: var(--muted-strong);
  font-size: 0.84rem;
}

.cover-copy strong {
  display: block;
  margin-top: 10px;
  font-size: 1.7rem;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.cover-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.visual-window {
  position: relative;
  min-height: 340px;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
}

.visual-topbar {
  display: none;
}

.visual-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-canvas-flamingo {
  background:
    radial-gradient(circle at top right, rgba(255, 140, 120, 0.38), transparent 24%),
    linear-gradient(180deg, #18131a 0%, #141118 100%);
}

.visual-canvas-gumstory {
  background:
    radial-gradient(circle at top right, rgba(132, 168, 255, 0.26), transparent 26%),
    linear-gradient(180deg, #121821 0%, #10151d 100%);
}

.visual-floatcard,
.story-sheet,
.story-column {
  position: absolute;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.visual-floatcard {
  left: 20px;
  bottom: 20px;
  padding: 18px;
  width: 220px;
}

.visual-floatcard strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  text-transform: lowercase;
}

.visual-floatcard-small {
  left: auto;
  right: 20px;
  bottom: 20px;
  width: 122px;
}

.story-column {
  top: 22px;
  left: 22px;
  right: 22px;
  padding: 18px;
}

.story-column strong,
.story-sheet strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
}

.story-sheet {
  left: 22px;
  bottom: 88px;
  width: 220px;
  padding: 18px;
}

.story-lines {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  display: grid;
  gap: 10px;
}

.story-lines span:nth-child(1) {
  width: 88%;
}

.story-lines span:nth-child(2) {
  width: 70%;
}

.story-lines span:nth-child(3) {
  width: 64%;
}

.story-lines span:nth-child(4) {
  width: 76%;
}

.structure-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  padding: 34px;
  margin-top: 24px;
  border-radius: var(--radius-xl);
}

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

.structure-grid article {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.structure-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.legal-main {
  padding-top: 42px;
}

.legal-hero {
  padding: 12px 6px 0;
}

.legal-updated {
  margin: 18px 0 0;
}

.legal-card {
  margin-top: 26px;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.subpage-main {
  padding-top: 42px;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.subpage-surface {
  display: grid;
}

.subpage-surface-flamingo .visual-window,
.subpage-surface-gumstory .visual-window {
  background: rgba(255, 255, 255, 0.03);
}

.theme-flamingo .brand-mark {
  background: rgba(255, 255, 255, 0.03);
}

.theme-gumstory .brand-mark {
  background: rgba(255, 255, 255, 0.03);
}

.theme-flamingo .brand-mark::before {
  background: linear-gradient(135deg, #ff9b80, #ffd4b7);
}

.theme-gumstory .brand-mark::before {
  background: linear-gradient(135deg, #9ab8ff, #d3defe);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

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

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

  .topbar,
  .button,
  .project-card,
  [data-reveal] {
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .project-card,
  .structure-card,
  .subpage-hero {
    grid-template-columns: 1fr;
  }

  .hero-facts,
  .project-points,
  .structure-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .page-shell-narrow {
    width: min(calc(100% - 24px), var(--max-width));
    padding-top: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 28px;
  }

  .hero-grid,
  .project-card,
  .structure-card,
  .legal-card,
  .subpage-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .hero-copy h1,
  .legal-hero h1,
  .subpage-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .topnav,
  .site-footer-links,
  .project-links {
    gap: 14px;
  }
}
