:root {
  --ink: #17362a;
  --forest: #183c2c;
  --forest-deep: #0d271d;
  --leaf: #8dd12c;
  --leaf-bright: #b8f455;
  --cream: #f7f0d8;
  --paper: #fffaf0;
  --peach: #f1a969;
  --lilac: #b7a3d9;
  --line: rgba(23, 54, 42, 0.18);
  --shadow: 0 24px 60px rgba(18, 55, 40, 0.13);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img { filter: drop-shadow(0 5px 8px rgba(24, 60, 44, 0.12)); }

nav { display: flex; gap: 8px; }

nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

nav a:hover { background: rgba(255,255,255,0.54); transform: translateY(-1px); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: 750px;
  padding: 126px max(24px, calc((100vw - 1180px) / 2)) 74px;
  background:
    radial-gradient(circle at 10% 78%, rgba(141, 209, 44, 0.18), transparent 22%),
    linear-gradient(132deg, #fbf3dc 0%, #f4edcf 48%, #dcebb6 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(24, 60, 44, 0.09);
  border-radius: 50%;
}

.hero-copy { align-self: center; max-width: 600px; padding: 36px 44px 40px 0; }

.eyebrow {
  margin: 0 0 20px;
  color: #517541;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow span { margin-right: 7px; color: var(--leaf); }

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

h1, h2 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.97;
}

h1 { font-size: clamp(4rem, 7vw, 6.7rem); }
h1 em { color: #619820; font-weight: 400; }
h2 { font-size: clamp(3.25rem, 6vw, 5.5rem); }

.lede { max-width: 520px; color: #476256; font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 23px;
  border: 0;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--forest); box-shadow: 0 12px 25px rgba(24, 60, 44, 0.2); }
.button-dark { color: white; background: var(--forest-deep); }
.button-cream { color: var(--forest-deep); background: var(--cream); }
.button.is-pending { color: #9bad91; background: #e9eedf; box-shadow: none; }
.text-link { font-size: 0.9rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.hero-scene {
  position: relative;
  align-self: center;
  min-height: 550px;
  border: 1px solid rgba(24, 60, 44, 0.12);
  border-radius: 48% 48% 36% 36% / 46% 46% 32% 32%;
  background:
    linear-gradient(180deg, transparent 61%, rgba(255,255,255,0.28) 61% 62%, transparent 62%),
    linear-gradient(180deg, #cfe5cb 0%, #b7d8b6 61%, #769f6f 61%, #416f58 100%);
  box-shadow: inset 0 -50px 90px rgba(13, 39, 29, 0.16), var(--shadow);
  overflow: hidden;
}

.sun { position: absolute; top: 78px; right: 90px; width: 88px; height: 88px; border-radius: 50%; background: #f8d27f; box-shadow: 0 0 0 16px rgba(248,210,127,0.13); }
.cloud { position: absolute; top: 90px; left: 66px; width: 72px; height: 20px; border-radius: 999px; background: rgba(255,255,255,0.55); }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.cloud::before { left: 16px; width: 36px; height: 36px; }
.cloud::after { left: 42px; width: 27px; height: 27px; }
.cloud-two { top: 176px; left: auto; right: 160px; scale: 0.65; opacity: 0.55; }

.frog { position: absolute; left: 50%; bottom: 86px; width: 260px; height: 335px; transform: translateX(-50%); }
.frog-body { position: absolute; left: 35px; bottom: 0; width: 190px; height: 210px; border-radius: 47% 47% 32% 32%; background: var(--leaf); box-shadow: inset -22px -18px 0 rgba(74, 137, 25, 0.18); }
.frog-face { position: absolute; z-index: 3; left: 21px; top: 28px; width: 218px; height: 174px; border-radius: 47% 47% 50% 50%; background: #9ddd35; box-shadow: inset -18px -10px 0 rgba(74, 137, 25, 0.12); }
.eye { position: absolute; z-index: 4; top: 0; width: 82px; height: 88px; border-radius: 52% 52% 45% 45%; background: #a9e33d; }
.eye-left { left: 32px; transform: rotate(-7deg); }
.eye-right { right: 32px; transform: rotate(7deg); }
.eye i { position: absolute; top: 25px; left: 27px; width: 29px; height: 37px; border-radius: 50%; background: var(--forest-deep); }
.eye i::after { content: ""; position: absolute; top: 7px; left: 8px; width: 8px; height: 11px; border-radius: 50%; background: white; }
.smile { position: absolute; left: 76px; bottom: 42px; width: 72px; height: 30px; border-bottom: 4px solid var(--forest); border-radius: 0 0 50% 50%; }
.smile::before, .smile::after { content: ""; position: absolute; bottom: -4px; width: 4px; height: 4px; border-radius: 50%; background: var(--forest); }
.smile::before { left: 0; } .smile::after { right: 0; }
.bow { position: absolute; z-index: 5; top: 181px; background: #111713; }
.bow-left { left: 74px; width: 56px; height: 42px; border-radius: 9px 55% 55% 9px; transform: rotate(9deg); }
.bow-right { right: 74px; width: 56px; height: 42px; border-radius: 55% 9px 9px 55%; transform: rotate(-9deg); }
.bow-knot { left: 116px; top: 184px; width: 30px; height: 34px; border-radius: 9px; }

.lily { position: absolute; bottom: 52px; width: 150px; height: 54px; border-radius: 50%; background: #285940; transform: skewX(-12deg); box-shadow: inset -25px -8px 0 rgba(13,39,29,0.16); }
.lily::after { content: ""; position: absolute; top: -1px; left: 62px; border-style: solid; border-width: 28px 13px 0; border-color: #476f55 transparent transparent; }
.lily-one { left: -18px; }
.lily-two { right: -10px; bottom: 30px; scale: 0.76; }
.reed { position: absolute; bottom: 78px; width: 3px; height: 130px; background: #3f704a; transform-origin: bottom; }
.reed::after { content: ""; position: absolute; top: -8px; left: -6px; width: 16px; height: 40px; border-radius: 50%; background: #986a3d; }
.reed-one { left: 55px; rotate: -5deg; }
.reed-two { right: 46px; height: 102px; rotate: 7deg; }
.scene-note { position: absolute; right: 42px; bottom: 28px; margin: 0; color: rgba(255,255,255,0.82); font-family: Georgia, serif; font-size: 0.94rem; font-style: italic; }

.marquee { width: 100%; max-width: 100vw; overflow: hidden; padding: 13px 0; color: var(--cream); background: var(--forest); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.21em; white-space: nowrap; }
.marquee div { width: max-content; animation: marquee 26s linear infinite; }
.marquee span { display: inline-block; padding: 0 30px; color: var(--leaf-bright); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 112px max(24px, calc((100vw - 1120px) / 2)); }
.section-heading { display: grid; grid-template-columns: 1fr 0.85fr; gap: 90px; align-items: end; margin-bottom: 58px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0 0 8px; color: #5a6d63; font-size: 1.06rem; line-height: 1.75; }

.play-section { background: var(--paper); }
.game-card { display: grid; grid-template-columns: 1.2fr 0.8fr; min-height: 500px; border: 1px solid var(--line); border-radius: var(--radius); background: #f0ebd7; box-shadow: var(--shadow); overflow: hidden; }
.game-preview { position: relative; min-height: 500px; background: #172e32; overflow: hidden; }
.game-preview > img { width: 100%; height: 100%; object-fit: cover; }
.preview-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #426572, #152d36 66%); }
.preview-fallback::before { content: ""; position: absolute; inset: auto -10% -25% -10%; height: 55%; border-radius: 50% 50% 0 0; background: #234d3d; box-shadow: inset 0 24px 0 rgba(255,255,255,0.04); }
.preview-fallback p { position: relative; z-index: 2; color: var(--cream); text-align: center; }
.preview-fallback p span { display: block; font-family: Georgia, serif; font-size: clamp(2.6rem, 5vw, 4.8rem); font-style: italic; line-height: 1; }
.preview-fallback p small { display: block; margin-top: 12px; color: #aec7b8; font-size: 0.66rem; font-weight: 850; letter-spacing: 0.18em; text-transform: uppercase; }
.moon { position: absolute; top: 72px; right: 86px; width: 72px; height: 72px; border-radius: 50%; background: #f4e5a4; box-shadow: 0 0 48px rgba(244,229,164,0.3); }
.moon::after { content: ""; position: absolute; top: -9px; left: -14px; width: 70px; height: 70px; border-radius: 50%; background: #315666; }
.firefly { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #f5e875; box-shadow: 0 0 13px 6px rgba(245,232,117,0.18); }
.firefly-a { left: 16%; top: 29%; } .firefly-b { right: 24%; top: 54%; } .firefly-c { left: 34%; bottom: 25%; }
.mode-badge { position: absolute; z-index: 5; left: 22px; top: 22px; padding: 8px 13px; color: #f7f0d8; border: 1px solid rgba(255,255,255,0.32); border-radius: 999px; background: rgba(13,39,29,0.36); backdrop-filter: blur(8px); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.game-details { display: flex; flex-direction: column; justify-content: center; padding: 58px; }
.card-kicker { margin-bottom: 16px; color: #6e8e5b; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.17em; text-transform: uppercase; }
.game-details h3 { margin-bottom: 22px; font-family: Georgia, serif; font-size: clamp(2rem, 3.2vw, 3.2rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.03; }
.game-details > p:not(.card-kicker):not(.status-note) { color: #596e63; line-height: 1.7; }
.game-details .button { align-self: flex-start; margin-top: 14px; }
.status-note { margin: 15px 0 0; color: #81917e; font-size: 0.75rem; }
.status-note span { margin-right: 6px; color: var(--leaf); }

.music-section { color: var(--cream); background: var(--forest); }
.section-heading.light .eyebrow { color: var(--leaf-bright); }
.section-heading.light > p { color: #bfd0c5; }
.track-list { border-top: 1px solid rgba(247,240,216,0.2); }
.track { position: relative; display: grid; grid-template-columns: 58px minmax(210px, 0.7fr) 1fr 42px; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(247,240,216,0.2); }
.play-button { display: grid; place-items: center; width: 50px; height: 50px; padding: 0 0 0 3px; color: var(--forest-deep); border: 0; border-radius: 50%; background: var(--leaf-bright); cursor: pointer; transition: transform 150ms ease; }
.play-button:hover:not(:disabled) { transform: scale(1.06); }
.play-button:disabled { color: #69816f; background: #355b48; cursor: wait; }
.track-copy h3 { margin: 0 0 3px; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 500; }
.track-copy p { margin: 0; color: #9fb5a8; font-size: 0.72rem; }
.waveform { height: 32px; opacity: 0.7; background: center / auto 32px repeat-x url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='32' viewBox='0 0 120 32'%3E%3Cpath d='M2 16h3m3 0h2m3-5v10m5-15v20m5-12v4m5-9v14m5-19v24m5-17v10m5-5h3m4-8v16m5-11v6m5-14v22m5-10v8m5-4h4m4-7v14m5-10v6m5-15v24m5-18v12m5-9v6m5-3h4' stroke='%23b8f455' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.waveform-two { filter: hue-rotate(28deg); } .waveform-three { filter: hue-rotate(330deg); } .waveform-four { opacity: 0.48; filter: hue-rotate(70deg); }
.download { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(247,240,216,0.27); border-radius: 50%; text-decoration: none; }
.track.is-playing { background: rgba(255,255,255,0.035); }
.track.is-playing .waveform { animation: wave-drift 2s linear infinite; opacity: 1; }
@keyframes wave-drift { to { background-position-x: 120px; } }

.studio-callout { display: grid; grid-template-columns: 70px 1fr auto; gap: 30px; align-items: center; margin-top: 62px; padding: 37px 42px; border: 1px solid rgba(247,240,216,0.25); border-radius: var(--radius); background: #224b38; }
.music-flower { color: var(--leaf-bright); font-size: 3.5rem; line-height: 1; }
.studio-callout .eyebrow { margin-bottom: 10px; color: #9fbeaa; }
.studio-callout h3 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1.1; }

.about-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; align-items: center; background: #f3af70; }
.about-portrait { position: relative; display: grid; place-items: center; min-height: 400px; }
.portrait-ring { position: absolute; width: 370px; height: 370px; border: 1px solid rgba(23,54,42,0.22); border-radius: 50%; }
.portrait-ring::after { content: ""; position: absolute; inset: 24px; border: 1px dashed rgba(23,54,42,0.22); border-radius: 50%; }
.about-portrait img { position: relative; width: 230px; height: 230px; filter: drop-shadow(0 22px 18px rgba(72,67,29,0.18)); }
.spark { position: absolute; font-size: 1.6rem; }
.spark-one { top: 54px; left: 20%; } .spark-two { bottom: 55px; right: 18%; font-size: 1rem; }
.about-copy { max-width: 620px; }
.about-copy .eyebrow { color: #6a5f32; }
.about-lede { font-family: Georgia, serif; font-size: clamp(1.45rem, 2.7vw, 2.1rem); line-height: 1.38; }
.about-copy > p:not(.eyebrow):not(.about-lede) { max-width: 540px; color: #4f5d4f; line-height: 1.75; }
.signature { display: flex; align-items: center; gap: 8px; margin-top: 30px; }
.signature span { font-family: "Segoe Script", "Bradley Hand", cursive; font-size: 2.4rem; }
.signature i { font-style: normal; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px max(24px, calc((100vw - 1120px) / 2)); color: #aec2b4; background: var(--forest-deep); font-size: 0.78rem; }
footer p { margin: 0; }
footer > a:last-child { text-underline-offset: 5px; }
.footer-brand { color: var(--cream); }

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms ease; }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 116px; }
  .hero-copy { padding-right: 0; }
  .hero-scene { min-height: 520px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p { max-width: 600px; }
  .game-card { grid-template-columns: 1fr; }
  .game-preview { min-height: 420px; }
  .about-section { grid-template-columns: 1fr; gap: 40px; }
  .about-copy { margin: 0 auto; }
}

@media (max-width: 640px) {
  .site-header { width: calc(100% - 32px); padding-top: 16px; }
  .brand span { font-size: 0.96rem; }
  nav { gap: 0; }
  nav a { padding: 9px; font-size: 0.76rem; }
  nav a:last-child { display: none; }
  .hero { min-height: auto; padding-inline: 20px; padding-bottom: 44px; }
  .hero-copy { padding-block: 30px 16px; }
  h1 { font-size: clamp(3.05rem, 13.5vw, 4.2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-scene { min-height: 410px; border-radius: 48% 48% 28px 28px / 38% 38% 28px 28px; }
  .frog { bottom: 56px; scale: 0.75; transform-origin: bottom left; }
  .sun { top: 60px; right: 55px; width: 64px; height: 64px; }
  .cloud { top: 72px; left: 38px; scale: 0.75; }
  .section { padding: 78px 20px; }
  .section-heading { margin-bottom: 38px; }
  h2 { font-size: 3.6rem; }
  .game-card, .studio-callout { border-radius: 22px; }
  .game-preview { min-height: 340px; }
  .game-details { padding: 36px 28px 40px; }
  .track { grid-template-columns: 50px 1fr 34px; gap: 15px; }
  .waveform { grid-column: 2 / 4; width: 100%; }
  .download { grid-column: 3; grid-row: 1; width: 34px; height: 34px; }
  .studio-callout { grid-template-columns: 1fr; padding: 30px; }
  .music-flower { font-size: 2.7rem; }
  .studio-callout .button { justify-self: start; }
  .about-section { gap: 16px; }
  .about-portrait { min-height: 300px; }
  .portrait-ring { width: 280px; height: 280px; }
  .about-portrait img { width: 180px; height: 180px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
