
:root {
  --bg: #04070d;
  --bg-soft: #07111d;
  --panel: rgba(13, 24, 38, 0.68);
  --panel-strong: rgba(16, 29, 46, 0.9);
  --line: rgba(152, 207, 255, 0.22);
  --line-strong: rgba(139, 210, 255, 0.42);
  --text: #f6fbff;
  --muted: #aab7c6;
  --muted-2: #76879a;
  --blue: #69c8ff;
  --blue-strong: #2aa7ff;
  --cyan: #76f4ff;
  --peach: #ffb5a8;
  --rose: #ff7e93;
  --mint: #8af4df;
  --yellow: #ffd166;
  --shadow: 0 26px 80px rgba(0,0,0,.42);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --content: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 0%, #0c2233 0%, transparent 28%),
              radial-gradient(circle at 85% 12%, #0a1c34 0%, transparent 34%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(55px);
  opacity: .42;
  transform: translateZ(0);
}

.orb-a {
  width: 420px;
  height: 420px;
  left: -150px;
  top: 120px;
  background: rgba(54, 193, 255, .23);
}

.orb-b {
  width: 520px;
  height: 520px;
  right: -190px;
  top: 210px;
  background: rgba(33, 120, 255, .18);
}

.orb-c {
  width: 340px;
  height: 340px;
  left: 45%;
  bottom: -190px;
  background: rgba(255, 135, 166, .13);
}

.grid-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(105,200,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105,200,255,.03) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 70%);
}

.site-header {
  width: min(100% - 28px, calc(var(--content) + 80px));
  margin: 14px auto 0;
  min-height: 78px;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 10px;
  z-index: 20;
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  background:
    linear-gradient(135deg, rgba(9, 22, 36, .62), rgba(7, 16, 28, .38)),
    radial-gradient(circle at 18% 50%, rgba(105,200,255,.10), transparent 30%);
  border: 1px solid rgba(152,207,255,.14);
  border-radius: 22px;
  box-shadow:
    0 16px 42px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: .96;
}

.brand-wordmark {
  width: 180px;
  max-width: 34vw;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
  white-space: nowrap;
}

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



.mail-pill {
  border: 1px solid rgba(152,207,255,.18);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.mail-pill:hover {
  border-color: rgba(152,207,255,.42);
  background: rgba(105,200,255,.08);
}

.section {
  width: min(var(--content), calc(100% - 52px));
  margin-inline: auto;
}

.hero {
  padding: 54px 0 28px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 92px);
}

.hero-logo-card {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 50% 26%, rgba(98, 197, 255, .18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(42, 167, 255, .22), transparent 38%),
    linear-gradient(135deg, rgba(9, 20, 34, .92), rgba(8, 15, 26, .78));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 54px;
}

.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.42) .8px, transparent .8px);
  background-size: 38px 38px;
  opacity: .1;
}

.logo-halo {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105,200,255,.18), transparent 62%);
  filter: blur(8px);
}

.hero-full-logo {
  position: relative;
  width: min(430px, 84%);
  filter: drop-shadow(0 0 22px rgba(128,210,255,.36));
  z-index: 2;
}

.horizon {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(105,200,255,.7), transparent);
  box-shadow: 0 0 34px 14px rgba(42,167,255,.16);
}

.hero-copy {
  position: relative;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 700;
}

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

h1 {
  font-size: clamp(3.3rem, 7vw, 6.7rem);
  line-height: .9;
  letter-spacing: -.075em;
  margin-bottom: 28px;
}

.hero-lead {
  color: #d5e0ed;
  font-size: clamp(1.08rem, 1.6vw, 1.36rem);
  line-height: 1.75;
  max-width: 660px;
  margin-bottom: 22px;
}

.legal-line {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-meta span {
  color: #c8d7e7;
  font-size: 14px;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(152,207,255,.16);
  background: rgba(255,255,255,.035);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.primary-button {
  background: linear-gradient(135deg, rgba(105,200,255,.95), rgba(118,244,255,.78));
  color: #04101d;
  box-shadow: 0 14px 36px rgba(42,167,255,.18);
}

.secondary-button {
  border: 1px solid rgba(152,207,255,.26);
  color: #dceafa;
  background: rgba(255,255,255,.035);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.studio-note,
.release-note {
  margin-top: 18px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 36px;
  align-items: end;
  padding: 34px;
  border: 1px solid rgba(152,207,255,.18);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}

.studio-note h2,
.release-note h2,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.055em;
  margin-bottom: 0;
}

.studio-note p:last-child,
.release-note p:last-child {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.work {
  padding-top: 96px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-top: 18px;
}

.section-heading.compact {
  max-width: 660px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(152,207,255,.18);
  min-height: 430px;
  padding: 28px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .82;
  pointer-events: none;
}

.project-auri {
  border-color: rgba(255,181,168,.36);
  background: linear-gradient(135deg, rgba(35, 17, 25, .92), rgba(13,20,32,.84));
}

.project-auri::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,126,147,.2), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(255,181,168,.14), transparent 28%);
}

.project-games {
  border-color: rgba(118,244,255,.28);
  background: linear-gradient(135deg, rgba(5, 21, 36, .94), rgba(6, 15, 26, .88));
}

.project-games::before {
  background:
    radial-gradient(circle at 15% 42%, rgba(118,244,255,.18), transparent 36%),
    radial-gradient(circle at 85% 10%, rgba(255,209,102,.12), transparent 26%);
}

.project-visual,
.project-copy {
  position: relative;
  z-index: 2;
}

.project-visual {
  min-height: 320px;
  border-radius: 28px;
  display: grid;
  place-items: center;
}

.warm-glow,
.cool-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  filter: blur(34px);
  opacity: .55;
}

.warm-glow {
  background: rgba(255,126,147,.34);
}

.cool-glow {
  background: rgba(105,200,255,.32);
}

.auri-character {
  width: min(270px, 85%);
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.28));
}

.auri-heart {
  width: 70px;
  position: absolute;
  top: 28px;
  right: 28px;
  transform: rotate(9deg);
  filter: drop-shadow(0 0 22px rgba(255,126,147,.28));
}

.auri-lotus {
  width: 94px;
  position: absolute;
  bottom: 26px;
  right: 20px;
  filter: drop-shadow(0 0 18px rgba(118,244,255,.28));
}

.game-icon {
  width: min(310px, 92%);
  border-radius: 30px;
  box-shadow: 0 22px 46px rgba(0,0,0,.26);
  position: relative;
  z-index: 3;
}

.project-label {
  color: var(--blue);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 14px;
}

.project-auri .project-label,
.project-auri h3 {
  color: var(--peach);
}

.project-games .project-label,
.project-games h3 {
  color: var(--mint);
}

.project-copy h3 {
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  line-height: .92;
  letter-spacing: -.06em;
  margin-bottom: 18px;
}

.project-intro {
  color: var(--text);
  font-size: 1.13rem;
  line-height: 1.55;
  font-weight: 700;
}

.project-copy p:not(.project-label):not(.project-intro) {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.tags span {
  font-size: 13px;
  font-weight: 700;
  color: #dbeafa;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.045);
}

.principles {
  padding-top: 96px;
}

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

.principle-card {
  min-height: 235px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(152,207,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}

.principle-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.principle-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.mini-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.18);
  position: relative;
  background: rgba(255,255,255,.05);
}

.heart-icon {
  box-shadow: 0 0 24px rgba(255,126,147,.18);
}

.heart-icon::before {
  content: "♡";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--peach);
  font-size: 35px;
  line-height: 1;
}

.lotus-icon::before {
  content: "✧";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--mint);
  font-size: 30px;
}

.shield-icon::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
}

.release-note {
  margin-top: 96px;
  margin-bottom: 76px;
}

.site-footer {
  width: min(100%, calc(var(--content) + 80px));
  margin: 0 auto;
  padding: 28px 34px 42px;
  border-top: 1px solid rgba(152,207,255,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: var(--muted-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  color: #dceafa;
  margin-bottom: 4px;
}

.footer-brand span {
  display: block;
  font-size: 13px;
}

.footer-icon {
  width: 42px;
  height: 42px;
  opacity: .8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.legal-page {
  width: min(980px, calc(100% - 52px));
  margin: 0 auto;
  padding: 74px 0 86px;
}

.legal-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(152,207,255,.2);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.055);
  padding: clamp(28px, 6vw, 58px);
}

.legal-card h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 36px;
}

.legal-content {
  color: #d6e1ee;
  line-height: 1.75;
}

.legal-content h2 {
  font-size: 1.35rem;
  letter-spacing: -.02em;
  margin: 34px 0 10px;
  color: var(--text);
}

.legal-content h3 {
  color: var(--text);
  margin: 26px 0 8px;
}

.legal-content p,
.legal-content li {
  color: #c3cedc;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(105,200,255,.35);
  text-underline-offset: 3px;
  word-break: break-word;
}

.privacy-content h1 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1;
  margin-bottom: 28px;
}

.privacy-content ul {
  padding-left: 1.2rem;
}

.privacy-content .index {
  columns: 2;
  column-gap: 34px;
  padding-left: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

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

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .primary-button:hover,
  .secondary-button:hover {
    transform: none;
  }
}

/* Tablet */
@media (max-width: 980px) {
  .site-header {
    width: min(100% - 22px, calc(var(--content) + 80px));
    margin-top: 12px;
    padding: 14px 18px;
    min-height: 72px;
    top: 8px;
    border-radius: 20px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand-wordmark {
    width: 150px;
  }

  .nav {
    gap: 16px;
  }

  .nav a:not(.mail-pill) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 34px;
    min-height: auto;
  }

  .hero-logo-card {
    min-height: 360px;
    padding: 38px;
    order: -1;
  }

  .hero-full-logo {
    width: min(360px, 84%);
  }

  .studio-note,
  .release-note {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .project-card {
    grid-template-columns: .9fr 1.1fr;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .privacy-content .index {
    columns: 1;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .section,
  .legal-page {
    width: min(100% - 28px, var(--content));
  }

  .site-header {
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 12px 12px;
    gap: 10px;
    top: 6px;
    border-radius: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-wordmark {
    width: 124px;
    max-width: 42vw;
  }

  .nav {
    margin-left: auto;
  }

  .mail-pill {
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero {
    padding: 24px 0 24px;
    gap: 28px;
  }

  .hero-logo-card {
    min-height: 292px;
    border-radius: 26px;
    padding: 30px;
  }

  .hero-full-logo {
    width: min(285px, 92%);
  }

  .horizon {
    bottom: 34px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: .22em;
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4.6rem);
    margin-bottom: 22px;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-meta {
    gap: 8px;
  }

  .hero-meta span {
    font-size: 12px;
    padding: 8px 10px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .studio-note,
  .release-note {
    padding: 24px;
    border-radius: 22px;
  }

  .studio-note h2,
  .release-note h2,
  .section-heading h2 {
    font-size: clamp(2.15rem, 12vw, 3.35rem);
  }

  .work,
  .principles {
    padding-top: 72px;
  }

  .project-card {
    min-height: unset;
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 26px;
  }

  .project-visual {
    min-height: 255px;
  }

  .auri-character {
    width: min(230px, 78%);
  }

  .auri-heart {
    width: 54px;
    top: 18px;
    right: 22px;
  }

  .auri-lotus {
    width: 78px;
    bottom: 20px;
    right: 18px;
  }

  .game-icon {
    width: min(250px, 88%);
    border-radius: 24px;
  }

  .project-copy {
    padding: 4px 4px 8px;
  }

  .project-copy h3 {
    font-size: clamp(2.4rem, 14vw, 3.45rem);
  }

  .project-intro {
    font-size: 1.04rem;
  }

  .principle-card {
    min-height: unset;
    padding: 24px;
  }

  .release-note {
    margin-top: 72px;
    margin-bottom: 56px;
  }

  .site-footer {
    width: 100%;
    padding: 24px 18px 34px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .legal-page {
    padding-top: 38px;
  }

  .legal-card {
    border-radius: 24px;
    padding: 24px;
  }

  .legal-card h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }
}

/* Small phones */
@media (max-width: 380px) {
  .brand-wordmark {
    width: 108px;
  }

  .mail-pill {
    display: none;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-logo-card {
    min-height: 250px;
  }
}


/* v7.2 safety: legal pages are long, so they should never depend on scroll reveal. */
.legal-page .legal-card {
  opacity: 1 !important;
  transform: none !important;
}


/* =========================================================
   THEME TOGGLE + LIGHT THEME
   Default remains dark. Light theme is activated through:
   <html data-theme="light">
   ========================================================= */

.theme-toggle {
  border: 1px solid rgba(152,207,255,.18);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: rgba(152,207,255,.42);
  background: rgba(105,200,255,.08);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  width: 18px;
  text-align: center;
  line-height: 1;
  font-size: 16px;
}

.theme-toggle-text {
  line-height: 1;
}

html[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-soft: #edf2f8;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(98, 123, 158, 0.14);
  --line-strong: rgba(86, 122, 171, 0.24);
  --text: #152235;
  --muted: #5c6a7b;
  --muted-2: #8692a3;
  --blue: #2c7de3;
  --blue-strong: #206bd0;
  --cyan: #67c7ef;
  --peach: #ffb3a7;
  --rose: #f47695;
  --mint: #4fbea4;
  --yellow: #f2bb50;
  --shadow: 0 22px 60px rgba(37, 66, 102, .10);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 0%, rgba(116, 187, 247, .16) 0%, transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(104, 214, 231, .13) 0%, transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #f1f5fa 100%);
  color: var(--text);
}

html[data-theme="light"] .grid-glow {
  background:
    linear-gradient(rgba(44,125,227,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,125,227,.04) 1px, transparent 1px);
}

html[data-theme="light"] .orb {
  opacity: .55;
}

html[data-theme="light"] .orb-a { background: rgba(76, 160, 255, .16); }
html[data-theme="light"] .orb-b { background: rgba(84, 203, 220, .13); }
html[data-theme="light"] .orb-c { background: rgba(255, 160, 181, .11); }

html[data-theme="light"] .site-header {
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(247,250,254,.72)),
    radial-gradient(circle at 18% 50%, rgba(44,125,227,.06), transparent 30%);
  border: 1px solid rgba(98, 123, 158, .14);
  box-shadow:
    0 16px 40px rgba(37, 66, 102, .08),
    inset 0 1px 0 rgba(255,255,255,.90);
}

html[data-theme="light"] .brand-icon,
html[data-theme="light"] .brand-wordmark,
html[data-theme="light"] .footer-icon,
html[data-theme="light"] .hero-full-logo {
  filter: brightness(0) saturate(100%) drop-shadow(0 14px 28px rgba(44,125,227,.10));
}

html[data-theme="light"] .mail-pill,
html[data-theme="light"] .theme-toggle {
  border-color: rgba(98, 123, 158, .18);
  background: rgba(255,255,255,.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.90);
}

html[data-theme="light"] .mail-pill:hover,
html[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(44,125,227,.28);
  background: rgba(44,125,227,.07);
}

html[data-theme="light"] .hero-logo-card {
  background:
    radial-gradient(circle at 50% 24%, rgba(103, 199, 239, .16), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(44, 125, 227, .12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(243,247,252,.95));
  border: 1px solid rgba(86, 122, 171, .22);
  box-shadow:
    0 28px 70px rgba(37, 66, 102, .10),
    inset 0 1px 0 rgba(255,255,255,.95);
}

html[data-theme="light"] .hero-logo-card::before {
  opacity: .08;
}

html[data-theme="light"] .logo-halo {
  background: radial-gradient(circle, rgba(44,125,227,.12), transparent 64%);
  filter: blur(10px);
}

html[data-theme="light"] .horizon {
  background: linear-gradient(90deg, transparent, rgba(44,125,227,.55), transparent);
  box-shadow: 0 0 24px 10px rgba(44,125,227,.08);
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .studio-note h2,
html[data-theme="light"] .release-note h2,
html[data-theme="light"] .project-copy h3,
html[data-theme="light"] .legal-card h1,
html[data-theme="light"] .legal-content h2,
html[data-theme="light"] .legal-content h3 {
  color: var(--text);
}

html[data-theme="light"] .hero-lead,
html[data-theme="light"] .legal-line,
html[data-theme="light"] .section-heading p:not(.eyebrow),
html[data-theme="light"] .studio-note p:last-child,
html[data-theme="light"] .release-note p:last-child,
html[data-theme="light"] .project-copy p:not(.project-label):not(.project-intro),
html[data-theme="light"] .principle-card p,
html[data-theme="light"] .footer-brand span,
html[data-theme="light"] .legal-content,
html[data-theme="light"] .legal-content p,
html[data-theme="light"] .legal-content li {
  color: #58687a;
}

html[data-theme="light"] .project-intro {
  color: #304056;
}

html[data-theme="light"] .hero-meta span,
html[data-theme="light"] .tags span {
  color: #405366;
  border-color: rgba(98, 123, 158, .16);
  background: rgba(255,255,255,.80);
  box-shadow: 0 8px 24px rgba(37, 66, 102, .04);
}

html[data-theme="light"] .primary-button {
  background: linear-gradient(135deg, #2b7ee5, #69c7ef);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(44,125,227,.16);
}

html[data-theme="light"] .secondary-button {
  border: 1px solid rgba(98, 123, 158, .20);
  color: var(--text);
  background: rgba(255,255,255,.82);
}

html[data-theme="light"] .studio-note,
html[data-theme="light"] .release-note,
html[data-theme="light"] .principle-card,
html[data-theme="light"] .legal-card {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,250,253,.88));
  border: 1px solid rgba(98, 123, 158, .15);
  box-shadow:
    0 18px 48px rgba(37, 66, 102, .07),
    inset 0 1px 0 rgba(255,255,255,.95);
}

html[data-theme="light"] .project-card {
  box-shadow:
    0 18px 48px rgba(37, 66, 102, .08),
    inset 0 1px 0 rgba(255,255,255,.85);
}

html[data-theme="light"] .project-auri {
  border-color: rgba(244, 118, 149, .22);
  background:
    radial-gradient(circle at 16% 32%, rgba(244, 118, 149, .13), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,247,248,.90));
}

html[data-theme="light"] .project-games {
  border-color: rgba(80, 190, 164, .22);
  background:
    radial-gradient(circle at 15% 42%, rgba(103,199,239,.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,251,253,.90));
}

html[data-theme="light"] .project-card::before {
  opacity: .22;
}

html[data-theme="light"] .project-visual {
  background: linear-gradient(180deg, rgba(244,248,253,.96), rgba(236,242,249,.92));
  border: 1px solid rgba(98, 123, 158, .10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.90);
}

html[data-theme="light"] .project-auri .project-label,
html[data-theme="light"] .project-auri h3 {
  color: #d76b86;
}

html[data-theme="light"] .project-games .project-label,
html[data-theme="light"] .project-games h3 {
  color: #3ca78e;
}

html[data-theme="light"] .warm-glow { background: rgba(244, 118, 149, .18); }
html[data-theme="light"] .cool-glow { background: rgba(103, 199, 239, .18); }

html[data-theme="light"] .footer-brand strong {
  color: var(--text);
}

html[data-theme="light"] .site-footer {
  border-top: 1px solid rgba(98, 123, 158, .14);
}

html[data-theme="light"] .legal-content a {
  color: var(--blue-strong);
}

@media (max-width: 980px) {
  .theme-toggle-text {
    display: none;
  }

  .theme-toggle {
    min-width: 42px;
    justify-content: center;
    padding-inline: 11px;
  }
}

@media (max-width: 640px) {
  .theme-toggle {
    min-width: 38px;
    min-height: 38px;
    padding-inline: 9px;
  }
}

@media (max-width: 380px) {
  .theme-toggle {
    display: inline-flex;
  }
}

/* =========================================================
   v9.1 mobile header fix + cleaner project visuals
   ========================================================= */

.brand {
  flex: 1 1 auto;
}

.nav {
  flex: 0 0 auto;
}

.mail-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mail-pill-icon {
  display: none;
  line-height: 1;
  font-size: 15px;
}

.mail-pill-text {
  line-height: 1;
}

/* Remove the extra inner "window" behind the Auri and game visuals. */
.project-visual {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Give legal pages the same subtle frosted feel as the main site panels. */
.legal-card {
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

html[data-theme="light"] .project-visual {
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 12px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-wordmark {
    width: 112px;
    max-width: 31vw;
  }

  .nav {
    gap: 8px;
    margin-left: auto;
  }

  .theme-toggle {
    min-width: 40px;
    min-height: 40px;
    padding-inline: 10px;
  }

  .mail-pill {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 999px;
  }

  .mail-pill-icon {
    display: inline-block;
    font-size: 16px;
  }

  .mail-pill-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 380px) {
  .brand-wordmark {
    width: 100px;
    max-width: 28vw;
  }

  .theme-toggle,
  .mail-pill {
    min-width: 36px;
    width: 36px;
    min-height: 36px;
  }
}


/* =========================================================
   v9.3 final merge:
   - keeps v9.2 mobile header/mail icon fix
   - restores stronger frosted/glass legal page treatment
   - keeps project visuals clean without inner panels
   ========================================================= */

.legal-card {
  background: linear-gradient(180deg, rgba(17, 31, 48, .64), rgba(9, 19, 32, .56));
  border: 1px solid rgba(152,207,255,.20);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.07);
}

html[data-theme="light"] .legal-card {
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,250,253,.62));
  border: 1px solid rgba(98, 123, 158, .16);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    0 18px 48px rgba(37, 66, 102, .07),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.project-visual,
html[data-theme="light"] .project-visual {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* =========================================================
   v9.4 final polish:
   - removes direct box/shadow panel behind the construction game icon
   - adds subtle SiteLock seal placement in footer
   ========================================================= */

.game-icon {
  box-shadow: none !important;
  background: transparent !important;
}

html[data-theme="light"] .game-icon {
  box-shadow: none !important;
  background: transparent !important;
}

.sitelock-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 4px;
  opacity: .82;
  transition: opacity .2s ease, transform .2s ease;
}

.sitelock-seal:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.sitelock-seal img {
  display: block;
  max-height: 34px;
  width: auto;
}

@media (max-width: 640px) {
  .sitelock-seal {
    justify-content: flex-start;
    padding: 2px 0 0;
  }

  .sitelock-seal img {
    max-height: 32px;
  }
}
