@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800;900&family=Lora:wght@600;700&family=Manrope:wght@500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap");

:root {
  /* Brand colours */
  --petal: #fca153ff;
  --leaf: #4ab0b5ff;

  /* Base palette */
  --cream: #fff7ec;
  --cream-soft: #e8f5f4;
  --muted: #b7d7d6;
  --deep-teal: #10282d;
  --deep-teal-2: #17363b;
  --near-black: #171214;

  /* Reusable surfaces */
  --surface: rgba(16, 40, 45, 0.74);
  --surface-strong: rgba(16, 40, 45, 0.82);
  --surface-soft: rgba(255, 247, 236, 0.08);
  --surface-gradient: linear-gradient(145deg, rgba(255, 247, 236, 0.12), rgba(255, 247, 236, 0.055));
  --line: rgba(255, 247, 236, 0.18);
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.42);

  /* Typography */
  --font-sans: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Lora", "Playfair Display", Georgia, "Times New Roman", serif;

  /* Layout */
  --max-width: 1380px;
  --nav-width: 1720px;
  --section-x: 14px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;
}

/* Reset */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 16% 14%, rgba(252, 161, 83, 0.32), transparent 31%),
    radial-gradient(circle at 84% 18%, rgba(74, 176, 181, 0.32), transparent 34%),
    radial-gradient(circle at 50% 112%, rgba(252, 161, 83, 0.18), transparent 38%),
    linear-gradient(135deg, var(--deep-teal-2) 0%, var(--deep-teal) 48%, var(--near-black) 100%);
  overflow-x: hidden;
}

body::selection {
  color: #21150f;
  background: var(--petal);
}

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

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

button {
  font: inherit;
}

strong,
.accent-petal {
  color: var(--petal);
}

.accent-leaf {
  color: var(--leaf);
}

.section-kicker,
.section-kicker.accent-petal {
  color: var(--petal);
}

/* Reusable typography */

h1,
h2,
h3,
.text-serif {
  font-family: var(--font-serif);
}

.text-sans {
  font-family: var(--font-sans);
}

.section-kicker {
  color: var(--petal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title,
.section-heading h2,
.identity-copy h2,
.contact-copy h2 {
  margin-top: 10px;
  color: var(--cream);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.body-copy,
.section-heading p:not(.section-kicker),
.identity-copy p:not(.section-kicker),
.contact-copy p:not(.section-kicker),
.playlist-copy p {
  color: var(--cream-soft);
  line-height: 1.8;
}

.identity-copy p:not(.section-kicker) {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Reusable layout */

.section-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.section-heading {
  width: min(900px, 100%);
  margin-bottom: 34px;
}

.section-heading p:not(.section-kicker) {
  margin-top: 18px;
  font-size: 1.04rem;
}

.section-heading .section-kicker,
.identity-copy .section-kicker,
.contact-copy .section-kicker {
  margin-top: 0;
  color: var(--petal);
}

.centered-heading {
  margin-inline: auto;
  text-align: center;
}

.glass-panel {
  border: 1px solid var(--line);
  background: var(--surface-gradient), var(--surface);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 900;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

/* Background */

.table-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle, black, transparent 78%);
  z-index: -5;
}

.background-orb,
.floating-piece {
  position: fixed;
  pointer-events: none;
  z-index: -4;
}

.background-orb {
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.55;
  animation: orbDrift 12s ease-in-out infinite;
}

.orb-one {
  width: 240px;
  height: 240px;
  top: 9%;
  left: 7%;
  background: rgba(252, 161, 83, 0.20);
}

.orb-two {
  width: 310px;
  height: 310px;
  top: 13%;
  right: 5%;
  background: rgba(74, 176, 181, 0.18);
  animation-delay: -3s;
  animation-duration: 14s;
}

.orb-three {
  width: 180px;
  height: 180px;
  left: 22%;
  bottom: 10%;
  background: rgba(74, 176, 181, 0.16);
  animation-delay: -6s;
  animation-duration: 10s;
}

.orb-four {
  width: 220px;
  height: 220px;
  right: 18%;
  bottom: 8%;
  background: rgba(252, 161, 83, 0.17);
  animation-delay: -8s;
  animation-duration: 13s;
}

.orb-five {
  width: 120px;
  height: 120px;
  top: 58%;
  left: 6%;
  background: rgba(255, 247, 236, 0.10);
  animation-delay: -5s;
  animation-duration: 9s;
}

.floating-piece {
  opacity: 0.58;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.34));
  animation: floatPiece 7s ease-in-out infinite;
  z-index: -2;
}

.piece-one {
  width: 76px;
  height: 76px;
  top: 16%;
  left: 13%;
  border-radius: 18px;
  background: var(--petal);
  transform: rotate(18deg);
}

.piece-two {
  width: 58px;
  height: 58px;
  top: 20%;
  right: 16%;
  border-radius: 50%;
  background: var(--leaf);
  animation-delay: 1.4s;
}

.piece-three {
  width: 96px;
  height: 58px;
  left: 13%;
  bottom: 15%;
  border-radius: 999px 999px 20px 20px;
  background: var(--leaf);
  transform: rotate(-12deg);
  animation-delay: 2.2s;
}

.piece-four {
  width: 70px;
  height: 70px;
  right: 16%;
  bottom: 17%;
  background: var(--petal);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation-delay: 3s;
}

/* Navigation */

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  width: min(var(--nav-width), calc(100% - 16px));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 34px 12px 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(16, 40, 45, 0.78);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -28px);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.28s ease;
}

.site-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-brand,
.nav-wordmark,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-brand {
  flex: 0 0 auto;
  gap: 10px;
  min-width: fit-content;
}

.nav-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(252, 161, 83, 0.18));
}

.nav-wordmark {
  gap: 0.18em;
  align-items: baseline;
  line-height: 1;
}

.nav-nelumbo,
.brand-nelumbo {
  color: var(--leaf);
  font-family: var(--font-serif);
}

.nav-games,
.brand-games {
  color: var(--petal);
  font-family: var(--font-sans);
}

.nav-nelumbo {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.nav-games {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.nav-links {
  flex: 1;
  justify-content: flex-end;
  gap: clamp(32px, 5.8vw, 92px);
  color: var(--cream-soft);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--petal);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--petal);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 247, 236, 0.07);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: var(--radius-pill);
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.hero-content {
  position: relative;
  width: min(1040px, 100%);
  padding: clamp(24px, 5vw, 52px);
  animation: reveal 0.8s ease both;
}

.hero-logo {
  width: clamp(150px, 19vw, 220px);
  height: clamp(150px, 19vw, 220px);
  object-fit: contain;
  margin: 0 auto 26px;
  filter:
    drop-shadow(0 18px 30px rgba(252, 161, 83, 0.30))
    drop-shadow(0 0 34px rgba(74, 176, 181, 0.16));
  animation: logoFloat 6s ease-in-out infinite;
}

.brand-title {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0.22em;
  row-gap: 0.06em;
  line-height: 0.92;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.brand-nelumbo {
  font-size: clamp(4.5rem, 12vw, 9.6rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  text-shadow: 0 0 32px rgba(74, 176, 181, 0.26), 0 16px 45px rgba(0, 0, 0, 0.28);
}

.brand-games {
  font-size: clamp(3.5rem, 9vw, 7.6rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  text-shadow: 0 0 32px rgba(252, 161, 83, 0.28), 0 16px 45px rgba(0, 0, 0, 0.28);
}

.hero-subtitle {
  margin-top: 30px;
  color: var(--cream);
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.hero-copy {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--cream-soft);
  font-size: clamp(1rem, 1.7vw, 1.13rem);
  line-height: 1.8;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.scroll-link {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 5vh, 48px);
  min-height: 48px;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid rgba(74, 176, 181, 0.6);
  color: var(--cream);
  background: rgba(74, 176, 181, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}

.scroll-link:hover {
  border-color: var(--petal);
  background: rgba(252, 161, 83, 0.12);
  transform: translate(-50%, -2px);
}

.scroll-link.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
}

/* Sections */

.projects-section,
.identity-section,
.design-notes-section,
.contact-section {
  position: relative;
  padding-left: var(--section-x);
  padding-right: var(--section-x);
}

.projects-section {
  padding-top: 96px;
  padding-bottom: 110px;
}

.projects-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 40, 45, 0.72) 16%, rgba(16, 40, 45, 0.9) 100%);
  pointer-events: none;
  z-index: -1;
}

.identity-section {
  padding-top: 108px;
  padding-bottom: 116px;
  background:
    linear-gradient(180deg, rgba(16, 40, 45, 0.9), rgba(16, 40, 45, 0.78)),
    radial-gradient(circle at 12% 30%, rgba(74, 176, 181, 0.14), transparent 34%),
    radial-gradient(circle at 88% 70%, rgba(252, 161, 83, 0.14), transparent 34%);
}

.design-notes-section {
  padding-top: 96px;
  padding-bottom: 120px;
  background:
    linear-gradient(180deg, rgba(16, 40, 45, 0.78), rgba(16, 40, 45, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(252, 161, 83, 0.13), transparent 36%),
    radial-gradient(circle at 82% 62%, rgba(74, 176, 181, 0.16), transparent 38%);
}

.contact-section {
  padding-top: 96px;
  padding-bottom: 124px;
  background:
    linear-gradient(180deg, rgba(16, 40, 45, 0.92), rgba(16, 40, 45, 0.82)),
    radial-gradient(circle at 14% 32%, rgba(252, 161, 83, 0.15), transparent 34%),
    radial-gradient(circle at 84% 68%, rgba(74, 176, 181, 0.16), transparent 36%);
}

/* Projects */

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

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-gradient), var(--surface);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
  animation: reveal 0.7s ease both;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(252, 161, 83, 0.42);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
}

.carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 20% 18%, rgba(252, 161, 83, 0.24), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(74, 176, 181, 0.24), transparent 32%),
    rgba(0, 0, 0, 0.24);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--cream-soft);
}

.carousel-placeholder span {
  display: block;
  margin-bottom: 8px;
  color: var(--petal);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
}

.carousel-control {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 247, 236, 0.32);
  border-radius: var(--radius-pill);
  color: var(--cream);
  background: rgba(16, 40, 45, 0.66);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease;
}

.carousel-control:hover {
  color: #21150f;
  background: rgba(252, 161, 83, 0.82);
}

.carousel-control.prev {
  left: 12px;
}

.carousel-control.next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 247, 236, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dot.is-active {
  width: 22px;
  background: var(--petal);
}

.project-content {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.status {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(74, 176, 181, 0.52);
  border-radius: var(--radius-pill);
  color: var(--leaf);
  background: rgba(74, 176, 181, 0.11);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status.publisher-ready {
  border-color: rgba(252, 161, 83, 0.68);
  color: var(--petal);
  background: rgba(252, 161, 83, 0.11);
}

.status.blind-testing {
  border-color: rgba(74, 176, 181, 0.68);
  color: var(--leaf);
  background: rgba(74, 176, 181, 0.11);
}

.status.in-development {
  border-color: rgba(255, 247, 236, 0.24);
  color: var(--cream-soft);
}

.project-card h3 {
  color: var(--cream);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.specs {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.hook {
  margin-top: 18px;
  color: var(--cream-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.highlights {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 247, 236, 0.13);
}

.highlights h4 {
  margin-bottom: 10px;
  color: var(--petal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.highlights ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--cream-soft);
  line-height: 1.6;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.project-button,
.contact-button,
.scroll-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 900;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.24s ease;
}

.project-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 247, 236, 0.16);
  color: var(--cream);
  background: rgba(255, 247, 236, 0.08);
  font-size: 0.84rem;
}

.project-button:hover {
  transform: translateY(-2px);
  border-color: var(--petal);
  background: rgba(252, 161, 83, 0.12);
}

.project-button.primary {
  color: #21150f;
  border-color: transparent;
  background: var(--petal);
}

.project-button.primary:hover {
  background: #ffb16a;
}

.project-button.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Identity */

.identity-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(38px, 8vw, 92px);
  align-items: center;
}

.identity-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.identity-logo-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(210px, 30vw, 330px);
  height: clamp(210px, 30vw, 330px);
  border: 1px solid rgba(255, 247, 236, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 247, 236, 0.08), transparent 68%),
    radial-gradient(circle at 35% 25%, rgba(252, 161, 83, 0.20), transparent 38%),
    radial-gradient(circle at 75% 75%, rgba(74, 176, 181, 0.18), transparent 42%);
  box-shadow: inset 0 0 60px rgba(255, 247, 236, 0.04), 0 30px 90px rgba(0, 0, 0, 0.30);
}

.identity-logo-orbit::before,
.identity-logo-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  animation: slowSpin 28s linear infinite;
}

.identity-logo-orbit::before {
  inset: 22px;
  border: 1px dashed rgba(255, 247, 236, 0.22);
}

.identity-logo-orbit::after {
  inset: 48px;
  border: 1px dashed rgba(74, 176, 181, 0.32);
  animation-direction: reverse;
  animation-duration: 34s;
}

.identity-logo {
  position: relative;
  z-index: 1;
  width: 44%;
  filter: drop-shadow(0 18px 28px rgba(252, 161, 83, 0.22)) drop-shadow(0 0 34px rgba(74, 176, 181, 0.15));
}

.identity-token {
  position: absolute;
  border-radius: var(--radius-md);
  opacity: 0.75;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.28));
  animation: floatPiece 7s ease-in-out infinite;
}

.token-petal {
  width: 62px;
  height: 62px;
  top: 8%;
  right: 12%;
  background: var(--petal);
  transform: rotate(16deg);
}

.token-leaf {
  width: 72px;
  height: 44px;
  bottom: 12%;
  left: 10%;
  border-radius: 999px 999px 18px 18px;
  background: var(--leaf);
  animation-delay: -2s;
}

.token-cream {
  width: 42px;
  height: 42px;
  right: 20%;
  bottom: 18%;
  border-radius: 50%;
  background: rgba(255, 247, 236, 0.72);
  animation-delay: -4s;
}

.identity-copy {
  max-width: 720px;
}

.identity-copy p:not(.section-kicker) {
  margin-top: 18px;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
}

/* Design Notes */

.playlist-frame {
  width: min(980px, 100%);
  min-height: auto;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(252, 161, 83, 0.18), transparent 32%),
    radial-gradient(circle at 82% 80%, rgba(74, 176, 181, 0.18), transparent 34%),
    var(--surface);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px);
}

.playlist-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.playlist-frame .loading-message,
.playlist-frame .error-message {
  height: 100%;
  display: grid;
  place-items: center;
  margin: 0;
  border: 0;
  border-radius: 0;
}

/* Contact */

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface-gradient), rgba(16, 40, 45, 0.78);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px);
}

.contact-copy p:not(.section-kicker) {
  margin-top: 18px;
  font-size: 1.06rem;
  line-height: 1.85;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.contact-button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 247, 236, 0.20);
  color: var(--cream);
  background: rgba(255, 247, 236, 0.08);
}

.contact-button.primary {
  color: #21150f;
  border-color: transparent;
  background: var(--petal);
  box-shadow: 0 14px 34px rgba(252, 161, 83, 0.22);
}

.contact-button:hover {
  border-color: var(--petal);
  background: rgba(252, 161, 83, 0.12);
}

.contact-button.primary:hover {
  background: #ffb16a;
}

/* Messages */

.loading-message,
.error-message {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--cream-soft);
  background: rgba(255, 247, 236, 0.07);
}

.error-message {
  color: #ffd3bf;
}

/* Animations */

@keyframes orbDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  33% {
    transform: translate3d(26px, -28px, 0) scale(1.06);
  }

  66% {
    transform: translate3d(-22px, 24px, 0) scale(0.95);
  }
}

@keyframes floatPiece {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -26px;
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */

@media (min-width: 1400px) {
  .project-grid {
    gap: 30px;
  }

  .project-content {
    padding: 28px;
  }
}

@media (max-width: 960px) {
  .identity-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .identity-visual {
    min-height: 280px;
  }
}

@media (max-width: 860px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-md);
  }

  .nav-brand {
    min-width: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 10px;
  }

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

  .nav-links a {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 247, 236, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(255, 247, 236, 0.07);
    text-align: center;
  }

  .nav-links a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --section-x: 16px;
  }

  body {
    overflow-y: auto;
  }

  .hero {
    padding: 18px;
  }

  .brand-title {
    flex-direction: column;
    align-items: center;
  }

  .brand-nelumbo,
  .brand-games {
    letter-spacing: -0.065em;
  }

  .background-orb {
    opacity: 0.42;
  }

  .floating-piece {
    opacity: 0.28;
  }

  .piece-one {
    left: -12px;
  }

  .piece-two {
    right: -10px;
  }

  .piece-three {
    left: -20px;
    bottom: 6%;
  }

  .piece-four {
    right: -16px;
    bottom: 8%;
  }

  .scroll-link {
    bottom: 18px;
  }

  .projects-section,
  .identity-section,
  .design-notes-section,
  .contact-section {
    padding-top: 78px;
    padding-bottom: 86px;
  }

  .project-content {
    padding: 20px;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-button,
  .contact-button {
    width: 100%;
  }

  .playlist-frame {
    min-height: 240px;
  }

}

@media (max-width: 420px) {
  .nav-wordmark {
    gap: 0.12em;
  }

  .nav-nelumbo {
    font-size: 1.2rem;
  }

  .nav-games {
    font-size: 1rem;
  }

  .nav-logo {
    width: 36px;
    height: 36px;
  }
}


/* Layout and typography refinements */

.projects-section .section-heading {
  width: min(var(--max-width), 100%);
  margin-inline: auto;
  text-align: center;
}

.projects-section .section-heading p:not(.section-kicker) {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.project-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.project-button {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: normal;
}

.contact-card {
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.5fr);
}

.contact-copy {
  max-width: 860px;
}

.contact-actions {
  width: min(100%, 320px);
  justify-self: end;
}

.contact-button {
  min-height: 48px;
  padding: 0 18px;
}

@media (max-width: 1180px) {
  .project-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    width: min(100%, 360px);
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .projects-section .section-heading {
    text-align: left;
  }

  .projects-section .section-heading p:not(.section-kicker) {
    margin-left: 0;
    margin-right: 0;
  }
}


/* Final project-grid alignment */

.project-grid {
  --project-gap: 26px;
  gap: var(--project-gap);
}

@media (min-width: 861px) {
  .project-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - var(--project-gap)) / 2);
    justify-self: center;
  }
}

@media (min-width: 1400px) {
  .project-grid {
    --project-gap: 30px;
  }
}


/* Mobile/tablet About alignment */

@media (max-width: 960px) {
  .identity-layout {
    text-align: center;
  }

  .identity-copy {
    max-width: 760px;
    margin-inline: auto;
  }

  .identity-copy p:not(.section-kicker) {
    text-align: justify;
    text-align-last: center;
    text-justify: inter-word;
    hyphens: auto;
  }
}


/* Contact form */

.contact-card {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  width: 100%;
}

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

.form-field {
  display: grid;
  gap: 8px;
  color: var(--cream-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 247, 236, 0.20);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--cream);
  background: rgba(255, 247, 236, 0.08);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--petal);
  background: rgba(255, 247, 236, 0.11);
  box-shadow: 0 0 0 4px rgba(252, 161, 83, 0.14);
}

.form-field ::placeholder {
  color: rgba(232, 245, 244, 0.56);
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}


/* Contact layout: text first, form below */

.contact-card {
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-copy {
  max-width: 100%;
}

.contact-copy p:not(.section-kicker) {
  max-width: 980px;
}

.contact-form {
  width: 100%;
  max-width: 980px;
  justify-self: stretch;
}

.contact-form .contact-button {
  width: min(100%, 280px);
}

@media (max-width: 640px) {
  .contact-copy {
    text-align: center;
  }

  .contact-copy p:not(.section-kicker) {
    text-align: justify;
    text-align-last: center;
  }

  .contact-form .contact-button {
    width: 100%;
  }
}


/* Contact polish */

.contact-section .contact-card {
  width: min(1040px, 100%);
  margin-inline: auto;
  padding: clamp(26px, 4vw, 40px);
  text-align: center;
}

.contact-copy {
  margin-inline: auto;
}

.contact-copy p:not(.section-kicker) {
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  text-align-last: center;
}

.contact-form {
  margin-inline: auto;
  max-width: 760px;
  text-align: left;
}

.form-field select {
  color: var(--cream);
  background-color: rgba(16, 40, 45, 0.94);
}

.form-field select option {
  color: var(--cream);
  background-color: var(--deep-teal);
}

.form-field select option:checked,
.form-field select option:hover {
  color: #21150f;
  background-color: var(--petal);
}

.form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.form-actions .contact-button {
  width: min(220px, 100%);
  min-height: 50px;
}

.contact-button.secondary {
  border: 1px solid rgba(74, 176, 181, 0.62);
  color: var(--cream);
  background: rgba(74, 176, 181, 0.12);
}

.contact-button.secondary:hover {
  border-color: var(--petal);
  background: rgba(252, 161, 83, 0.12);
}

.form-note {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.site-footer {
  padding: 32px 16px 44px;
  text-align: center;
  color: var(--muted);
  background: rgba(16, 40, 45, 0.88);
}

.site-footer p {
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .contact-section .contact-card {
    padding: 24px 18px;
  }

  .contact-form {
    text-align: left;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .contact-button {
    width: 100%;
  }
}


/* Final contact form and favicon-support polish */

.contact-card {
  width: min(1120px, 100%);
}

.contact-copy p:not(.section-kicker) {
  max-width: 900px;
  font-size: 1.01rem;
  font-weight: 500;
  opacity: 0.92;
}

.contact-form {
  max-width: 900px;
}

.form-field select {
  appearance: auto;
}

.form-actions {
  margin-top: 8px;
}

.form-note {
  margin-top: -2px;
}
