:root {
  --night: #081020;
  --night-soft: #0d1930;
  --navy: #10264a;
  --blue: #247bff;
  --coral: #ff5a45;
  --orange: #ff861e;
  --ivory: #f4ead7;
  --teal: #16c2b8;
  --sand: #d6a65c;
  --muted: rgba(244, 234, 215, .67);
  --faint: rgba(244, 234, 215, .10);
  --line: rgba(244, 234, 215, .13);
  --shell: min(1220px, calc(100vw - 48px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 72% 8%, rgba(36,123,255,.11), transparent 31rem),
    radial-gradient(circle at 20% 48%, rgba(255,90,69,.08), transparent 26rem),
    var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.page-noise {
  position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.ambient { position: fixed; border-radius: 999px; filter: blur(80px); opacity: .15; pointer-events: none; z-index: -1; }
.ambient-one { width: 380px; height: 380px; background: var(--coral); top: 15vh; right: -180px; }
.ambient-two { width: 320px; height: 320px; background: var(--blue); left: -160px; top: 58vh; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(8,16,32,.76); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(244,234,215,.08); }
.header-inner { min-height: 86px; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 28px; }
.brand { width: 190px; display: block; }
.brand img { width: 100%; height: 62px; object-fit: contain; object-position: left center; }
.site-nav { justify-self: center; display: flex; align-items: center; gap: 34px; }
.site-nav a, .language-switch button { text-decoration: none; border: 0; background: none; cursor: pointer; color: rgba(244,234,215,.63); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; transition: color .2s ease; }
.site-nav a:hover, .language-switch button:hover, .language-switch .is-active { color: var(--ivory); }
.language-switch { display: flex; gap: 7px; align-items: center; color: rgba(244,234,215,.25); }
.language-switch .is-active { color: var(--orange); }
.nav-toggle { display: none; }

.hero { min-height: calc(100vh - 86px); display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 70px; padding: 76px 0 86px; }
.kicker, .section-kicker { color: var(--orange); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { margin-top: 22px; font-size: clamp(4.4rem, 8.7vw, 8.7rem); line-height: .82; letter-spacing: -.065em; text-transform: uppercase; max-width: 760px; }
.hero h1 span { display: block; }
.hero h1 em { display: block; color: transparent; font-style: normal; -webkit-text-stroke: 1.5px rgba(255,134,30,.9); text-shadow: 0 0 48px rgba(255,90,69,.08); }
.hero-text { max-width: 670px; margin-top: 34px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.17rem); line-height: 1.85; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn { min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; text-decoration: none; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 850; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #101827; background: linear-gradient(135deg, var(--coral), var(--orange)); box-shadow: 0 16px 42px rgba(255,90,69,.15); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.025); }
.hero-tags { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hero-tags li { padding: 8px 11px; border: 1px solid var(--line); color: rgba(244,234,215,.54); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-art { position: relative; min-height: 600px; display: grid; place-items: center; isolation: isolate; }
.hero-glow { position: absolute; width: 430px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,134,30,.23), rgba(36,123,255,.09) 40%, transparent 70%); filter: blur(20px); animation: pulse 6s ease-in-out infinite; }
.logo-stage { width: min(610px, 100%); position: relative; z-index: 2; transform: translateY(-4px); }
.logo-stage::before { content: ""; position: absolute; inset: 14% 6% 10%; z-index: -1; background: rgba(0,0,0,.22); filter: blur(44px); }
.pixel-cluster { position: absolute; display: grid; gap: 7px; z-index: 1; }
.pixel-cluster i { display: block; width: 8px; height: 8px; background: var(--orange); box-shadow: 0 0 16px rgba(255,134,30,.45); }
.pixels-a { right: 5%; top: 22%; grid-template-columns: repeat(2, 8px); animation: drift 5s ease-in-out infinite; }
.pixels-b { left: 9%; bottom: 28%; grid-template-columns: repeat(3, 8px); animation: drift 6s ease-in-out infinite reverse; }
.pixels-b i { background: var(--blue); box-shadow: 0 0 16px rgba(36,123,255,.45); }
.hero-caption { position: absolute; bottom: 4%; right: 0; display: flex; align-items: center; gap: 12px; color: rgba(244,234,215,.48); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-caption span { color: var(--orange); }
@keyframes pulse { 50% { transform: scale(1.06); opacity: .78; } }
@keyframes drift { 50% { transform: translate(10px,-14px); } }

.section { padding: 120px 0; border-top: 1px solid rgba(244,234,215,.07); }
.section-index { color: rgba(244,234,215,.39); font-size: .69rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.manifesto-grid { display: grid; grid-template-columns: 160px 1fr 250px; gap: 48px; align-items: start; }
.manifesto-copy { max-width: 760px; }
.manifesto-copy h2, .section-heading h2, .dna-copy h2, .newsletter-copy h2 { margin-top: 14px; font-size: clamp(2.6rem, 5vw, 5.3rem); line-height: .96; letter-spacing: -.045em; }
.manifesto-copy > p:last-child { margin-top: 30px; max-width: 680px; color: var(--muted); line-height: 1.9; }
.manifesto-stamp { width: 210px; height: 210px; border: 1px solid rgba(255,134,30,.38); display: grid; place-items: center; align-content: center; gap: 14px; transform: rotate(3deg); background: linear-gradient(145deg, rgba(255,134,30,.06), transparent); }
.manifesto-stamp span { font-size: 7rem; line-height: .75; font-family: Georgia, serif; color: var(--orange); }
.manifesto-stamp small { max-width: 145px; text-align: center; color: rgba(244,234,215,.5); font-size: .55rem; letter-spacing: .2em; line-height: 1.6; }

.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: end; margin-bottom: 58px; }
.section-heading > p { color: var(--muted); line-height: 1.8; max-width: 480px; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.game-card { position: relative; min-width: 0; min-height: 590px; padding: 26px; border-right: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,.018); }
.game-card:last-child { border-right: 0; }
.game-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, rgba(8,16,32,.15) 58%, rgba(8,16,32,.96) 80%); pointer-events: none; }
.card-number { position: relative; z-index: 3; color: rgba(244,234,215,.36); font-size: .68rem; letter-spacing: .16em; }
.card-visual { position: absolute; inset: 0; overflow: hidden; }
.card-content { position: absolute; z-index: 3; left: 26px; right: 26px; bottom: 28px; }
.card-type { color: var(--orange); font-size: .68rem; letter-spacing: .18em; font-weight: 800; }
.card-content h3 { margin-top: 10px; font-size: 1.75rem; line-height: 1.05; letter-spacing: -.03em; }
.card-content > p:last-child { margin-top: 14px; color: var(--muted); font-size: .91rem; line-height: 1.7; }
.sun, .moon { position: absolute; width: 170px; height: 170px; border-radius: 50%; top: 80px; left: calc(50% - 85px); }
.sun { background: radial-gradient(circle, #ffe07a, var(--orange) 52%, transparent 69%); box-shadow: 0 0 65px rgba(255,134,30,.35); }
.cliff { position: absolute; background: #162541; bottom: 180px; transform: rotate(9deg); box-shadow: inset 0 18px 0 rgba(255,134,30,.09); }
.cliff-one { width: 230px; height: 220px; left: -65px; clip-path: polygon(0 40%, 34% 13%, 73% 38%, 100% 15%, 100% 100%, 0 100%); }
.cliff-two { width: 250px; height: 260px; right: -100px; clip-path: polygon(0 38%, 32% 9%, 62% 29%, 100% 4%, 100% 100%, 0 100%); }
.runner { position: absolute; width: 22px; height: 44px; border-radius: 50% 50% 30% 30%; background: var(--ivory); left: 48%; top: 250px; box-shadow: -9px 26px 0 -6px var(--ivory), 10px 25px 0 -6px var(--ivory), 14px 7px 0 -7px var(--ivory); }
.moon { width: 145px; height: 145px; top: 70px; background: radial-gradient(circle at 40% 35%, #fff7d4, #8bb4e7 65%, transparent 68%); box-shadow: 0 0 70px rgba(36,123,255,.28); }
.mountain { position: absolute; bottom: 160px; background: #11233e; }
.mountain-one { width: 110%; height: 330px; left: -20%; clip-path: polygon(0 100%, 26% 41%, 42% 65%, 65% 18%, 100% 100%); }
.mountain-two { width: 100%; height: 260px; right: -27%; background: #18345b; clip-path: polygon(0 100%, 34% 31%, 55% 59%, 77% 15%, 100% 100%); }
.castle { position: absolute; width: 74px; height: 110px; background: #07111f; left: calc(50% - 37px); top: 200px; clip-path: polygon(0 100%,0 44%,12% 44%,12% 27%,22% 27%,22% 5%,32% 27%,49% 27%,49% 37%,66% 37%,66% 16%,76% 0,85% 16%,85% 44%,100% 44%,100% 100%); }
.card-rpg .card-visual { background: linear-gradient(#101c39, #153863 56%, #07101e); }
.card-puzzle .card-visual { background: linear-gradient(#176fc2 0 45%, #0b3d75 45% 66%, #07101f 66%); }
.sea { position: absolute; left: -10%; right: -10%; top: 43%; height: 130px; background: repeating-linear-gradient(170deg, rgba(22,194,184,.65) 0 3px, transparent 3px 13px); transform: rotate(-2deg); }
.island { position: absolute; width: 260px; height: 120px; border-radius: 50%; background: var(--sand); left: calc(50% - 130px); top: 260px; box-shadow: inset 0 18px 0 #4a6c3a; }
.mast { position: absolute; width: 8px; height: 195px; background: #331d13; left: 51%; top: 100px; }
.sail { position: absolute; width: 125px; height: 105px; left: 51%; top: 120px; background: #17223a; clip-path: polygon(5% 0,100% 46%,6% 100%); border-left: 4px solid #c7934d; }
.coin { position: absolute; width: 22px; aspect-ratio: 1; border-radius: 50%; background: var(--orange); border: 2px solid #ffd66b; box-shadow: 0 0 16px rgba(255,134,30,.45); }
.coin-a { top: 130px; left: 24%; } .coin-b { top: 205px; right: 20%; }

.dna-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.dna-copy p:last-child { margin-top: 28px; color: var(--muted); max-width: 460px; line-height: 1.85; }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.principle > span { color: var(--orange); font-size: 1.35rem; }
.principle h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.principle p { margin-top: 5px; color: var(--muted); }

.newsletter-panel { padding: clamp(34px, 5vw, 68px); display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; border: 1px solid rgba(255,134,30,.3); background:
  linear-gradient(135deg, rgba(255,90,69,.08), transparent 35%),
  linear-gradient(315deg, rgba(36,123,255,.08), transparent 35%),
  rgba(255,255,255,.018);
  position: relative; overflow: hidden;
}
.newsletter-panel::after { content: "S"; position: absolute; right: -25px; bottom: -110px; font: 500 24rem/.7 Georgia, serif; color: rgba(255,255,255,.022); pointer-events: none; }
.newsletter-copy p:last-child { margin-top: 24px; color: var(--muted); max-width: 500px; line-height: 1.8; }
.newsletter-form-wrap { position: relative; z-index: 2; }
.email-form { display: grid; grid-template-columns: 1fr auto; padding: 6px; border: 1px solid var(--line); background: rgba(8,16,32,.76); }
.email-form input[type="email"] { min-width: 0; border: 0; outline: 0; padding: 16px; background: transparent; color: var(--ivory); }
.email-form input::placeholder { color: rgba(244,234,215,.34); }
.email-form button { border: 0; padding: 0 20px; min-height: 52px; cursor: pointer; background: linear-gradient(135deg,var(--coral),var(--orange)); color: #111a27; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; display: flex; align-items: center; gap: 18px; }
.email-form button:disabled { opacity: .58; cursor: wait; }
.consent { margin-top: 13px; display: flex; align-items: flex-start; gap: 10px; color: rgba(244,234,215,.46); font-size: .75rem; line-height: 1.55; cursor: pointer; }
.consent input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--orange); flex: 0 0 auto; }
.form-message { min-height: 22px; margin-top: 12px; color: var(--orange); font-size: .78rem; letter-spacing: .03em; }

.site-footer { border-top: 1px solid rgba(244,234,215,.07); padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 70px; align-items: end; }
.footer-brand img { width: 180px; height: 72px; object-fit: contain; object-position: left center; }
.footer-brand p, .footer-meta { color: rgba(244,234,215,.38); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: rgba(244,234,215,.62); text-decoration: none; font-size: .78rem; }
.footer-links a:hover { color: var(--orange); }
.footer-meta { text-align: right; display: grid; gap: 8px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --shell: min(100% - 34px, 1220px); }
  .header-inner { grid-template-columns: 180px 1fr auto; }
  .brand { width: 160px; }
  .site-nav { gap: 18px; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 58px; }
  .hero-art { min-height: 430px; order: -1; }
  .logo-stage { width: min(610px, 86vw); }
  .hero-caption { right: 5%; }
  .manifesto-grid { grid-template-columns: 120px 1fr; }
  .manifesto-stamp { grid-column: 2; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 520px; border-right: 0; border-bottom: 1px solid var(--line); }
  .game-card:last-child { border-bottom: 0; }
  .dna-grid, .newsletter-panel { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 720px) {
  .site-header { position: relative; }
  .header-inner { min-height: 74px; grid-template-columns: 1fr auto auto; }
  .brand { width: 145px; }
  .brand img { height: 54px; }
  .nav-toggle { width: 38px; height: 38px; display: grid; place-content: center; gap: 6px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .nav-toggle span { width: 17px; height: 1px; background: var(--ivory); transition: transform .2s ease; }
  .site-nav { position: absolute; left: 17px; right: 17px; top: calc(100% - 1px); padding: 24px; display: none; flex-direction: column; align-items: flex-start; background: #0b162b; border: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .hero { min-height: auto; padding: 30px 0 74px; }
  .hero-art { min-height: 330px; }
  .hero h1 { font-size: clamp(3.45rem, 18vw, 6rem); }
  .hero-text { margin-top: 25px; }
  .section { padding: 82px 0; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 26px; }
  .manifesto-stamp { grid-column: 1; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .game-card { min-height: 500px; padding: 22px; }
  .card-content { left: 22px; right: 22px; }
  .dna-grid { gap: 42px; }
  .newsletter-panel { padding: 30px 22px; }
  .email-form { grid-template-columns: 1fr; }
  .email-form button { min-height: 52px; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; align-items: start; }
  .footer-meta { text-align: left; }
}

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