/* ============================================================
   LEMONSHARK GAMES — vibrant high-end studio system
   Paper canvas · 4 brights · expressive type · playful detail
   Part 1: tokens, base, nav, buttons, hero
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* canvas */
  --paper: #F3ECDD;
  --paper-2: #ECE2CE;
  --card: #FBF7EE;
  --ink: #181410;
  --ink-soft: #5A5347;
  --ink-mute: #8C8472;
  --line: #181410;

  /* brights */
  --tangerine: #FF5A2C;
  --violet: #6B4BFF;
  --lime: #BFEE3B;
  --pink: #FF3E8E;
  --sky: #2BC4E6;

  /* fonts */
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --s-9: 110px; --s-10: 150px;

  --maxw: 1280px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --bounce: cubic-bezier(.34,1.56,.64,1);
  --r: 22px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce){ html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--violet); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-6); }
@media (max-width: 640px){ .wrap { padding: 0 var(--s-5); } }
.section { padding: var(--s-10) 0; position: relative; }
@media (max-width: 820px){ .section { padding: var(--s-9) 0; } }

/* type */
h1,h2,h3,h4 { font-family: var(--display); font-weight: 800; line-height: .98; letter-spacing: -0.03em; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
.kicker { display: inline-flex; align-items: center; gap: .6em; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kicker .sq { width: 11px; height: 11px; border-radius: 3px; background: var(--tangerine); }

.h-xl { font-size: clamp(2.6rem, 7vw, 6.2rem); }
.h-lg { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.lead { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.5; text-wrap: pretty; }

/* sticker tag */
.sticker { display: inline-flex; align-items: center; gap: .5em; font-family: var(--mono); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 7px 13px; border: 2px solid var(--ink); border-radius: 99px; background: var(--card); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; white-space: nowrap; font-family: var(--body); font-weight: 700; font-size: 1rem; padding: 15px 26px; border: 2px solid var(--ink); border-radius: 99px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); transition: transform .14s var(--ease), box-shadow .14s var(--ease), background .2s; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.btn svg { width: 18px; height: 18px; }
.btn-tang { background: var(--tangerine); color: #fff; }
.btn-violet { background: var(--violet); color: #fff; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: transform .3s var(--ease); }
.nav-inner { max-width: var(--maxw); margin: 12px auto 0; padding: 10px 14px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); border: 2px solid var(--ink); border-radius: 99px; background: var(--card); box-shadow: var(--shadow); }
@media (min-width: 641px){ .nav { padding: 0 var(--s-6); } }
@media (max-width: 640px){ .nav { padding: 0 var(--s-4); } .nav-inner { margin-top: 10px; } }
.nav-links { display: flex; align-items: center; gap: var(--s-6); }
.nav-links a { font-weight: 600; font-size: .95rem; position: relative; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px; border-radius: 3px; background: var(--tangerine); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: var(--s-3); }
.nav .btn { padding: 11px 20px; font-size: .92rem; box-shadow: 3px 3px 0 var(--ink); }
.nav .btn:hover { box-shadow: 5px 5px 0 var(--ink); }
.menu-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 99px; background: var(--lime); }
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 900px){ .nav-links { display: none; } .nav-right .desktop { display: none; } .menu-toggle { display: inline-flex; } }

/* logo */
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo .mark { width: 30px; height: 30px; flex-shrink: 0; }

/* ============ HERO ============ */
.hero { padding: 150px 0 var(--s-9); position: relative; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .9; z-index: 0; }
.hero-grid2 { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: center; }
@media (max-width: 960px){ .hero-grid2 { grid-template-columns: 1fr; gap: var(--s-7); } }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 6.6rem); letter-spacing: -0.04em; margin: var(--s-5) 0; }
.hero h1 .pop { color: var(--tangerine); }
.hero h1 .pop2 { color: var(--violet); }
.hero-lead { font-size: 1.24rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: var(--s-7); line-height: 1.45; text-wrap: pretty; }
.hero-actions { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero-meta { display: flex; gap: var(--s-5); margin-top: var(--s-7); flex-wrap: wrap; }
.hero-meta .hm { display: flex; flex-direction: column; }
.hero-meta b { font-family: var(--display); font-weight: 800; font-size: 1.7rem; }
.hero-meta span { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }

/* ---- Tic-Tac-Toe card ---- */
.ttt-card { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: var(--s-6); }
.ttt-card::before { content: "2P · LOCAL"; position: absolute; top: -14px; left: 22px; font-family: var(--mono); font-weight: 700; font-size: .7rem; letter-spacing: .1em; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 4px 12px; }
.ttt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-5); gap: var(--s-3); }
.ttt-title { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.ttt-turn { font-family: var(--mono); font-size: .78rem; font-weight: 700; display: flex; align-items: center; gap: .5em; }
.ttt-turn .who { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 8px; }
.ttt-turn .who.x { color: var(--tangerine); } .ttt-turn .who.o { color: var(--violet); }
.ttt-turn .who svg { width: 15px; height: 15px; }
.ttt-board { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.ttt-cell { aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); display: grid; place-items: center; transition: transform .12s var(--bounce); }
.ttt-cell:hover:not(.filled) { background: var(--paper-2); transform: translateY(-2px); }
.ttt-cell:active:not(.filled) { transform: translateY(1px); }
.ttt-cell.filled { cursor: default; }
.ttt-cell.win { background: var(--lime); }
.ttt-cell svg { width: 54%; height: 54%; }
.ttt-cell .mx { stroke: var(--tangerine); }
.ttt-cell .mo { stroke: var(--violet); }
.ttt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-5); gap: var(--s-3); }
.ttt-score { display: flex; gap: var(--s-4); font-family: var(--mono); font-size: .82rem; font-weight: 700; }
.ttt-score .sx b { color: var(--tangerine); } .ttt-score .so b { color: var(--violet); }
.ttt-reset { font-family: var(--mono); font-weight: 700; font-size: .8rem; padding: 9px 16px; border: 2px solid var(--ink); border-radius: 99px; background: var(--card); box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.ttt-reset:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.ttt-reset:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.ttt-banner { font-family: var(--mono); font-weight: 700; font-size: .82rem; }

/* ---- tape / marquee strip (static, bold) ---- */
.tape { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--violet); color: #fff; overflow: hidden; }
.tape-row { display: flex; align-items: center; gap: var(--s-6); padding: 14px 0; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: -0.01em; flex-wrap: wrap; justify-content: center; }
.tape-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }

/* ---- section heads ---- */
.shead { max-width: 760px; }
.shead.center { margin: 0 auto; text-align: center; }
.shead h2 { margin: var(--s-4) 0; }
.shead p { color: var(--ink-soft); font-size: 1.14rem; max-width: 54ch; text-wrap: pretty; }
.shead.center p { margin: 0 auto; }

/* ---- capability color cards ---- */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-5); margin-top: var(--s-8); }
@media (max-width: 900px){ .cards { grid-template-columns: 1fr; } }
.ccard { border: 2px solid var(--ink); border-radius: var(--r); padding: var(--s-6); box-shadow: var(--shadow); transition: transform .16s var(--ease), box-shadow .16s var(--ease); position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; }
.ccard:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.ccard.c1 { background: var(--tangerine); color: #fff; }
.ccard.c2 { background: var(--lime); color: var(--ink); }
.ccard.c3 { background: var(--pink); color: #fff; }
.ccard-num { font-family: var(--mono); font-weight: 700; font-size: .82rem; letter-spacing: .1em; }
.ccard h3 { font-size: 2rem; margin: var(--s-5) 0 var(--s-4); letter-spacing: -0.03em; }
.ccard p { font-size: 1.02rem; line-height: 1.5; opacity: .92; }
.ccard .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: var(--s-6); }
.ccard .tag { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .03em; padding: 5px 10px; border: 2px solid currentColor; border-radius: 99px; }
.ccard .blobnum { position: absolute; right: -10px; bottom: -28px; font-family: var(--display); font-weight: 800; font-size: 9rem; opacity: .14; line-height: 1; }

/* ---- process ---- */
.process { background: var(--ink); color: var(--paper); border-top: 2px solid var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s-5); margin-top: var(--s-8); }
@media (max-width: 900px){ .steps { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
@media (max-width: 560px){ .steps { grid-template-columns: 1fr; } }
.step { border: 2px solid var(--paper); border-radius: var(--r); padding: var(--s-6); background: transparent; }
.step .sn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); margin-bottom: var(--s-5); }
.step:nth-child(1) .sn { background: var(--tangerine); }
.step:nth-child(2) .sn { background: var(--lime); }
.step:nth-child(3) .sn { background: var(--pink); }
.step:nth-child(4) .sn { background: var(--sky); }
.step h4 { font-size: 1.3rem; margin-bottom: var(--s-3); }
.step p { color: #C9C2B4; font-size: .98rem; line-height: 1.5; }
.process .shead h2, .process .shead p { color: var(--paper); }
.process .shead p { color: #C9C2B4; }

/* ---- platforms ---- */
.plat-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-8); }
@media (max-width: 760px){ .plat-wrap { grid-template-columns: 1fr; } }
.plat { display: flex; align-items: center; gap: var(--s-5); border: 2px solid var(--ink); border-radius: var(--r); padding: var(--s-6); background: var(--card); box-shadow: var(--shadow); transition: transform .14s var(--ease); }
.plat:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); }
.plat-ico { width: 56px; height: 56px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 14px; display: grid; place-items: center; background: var(--violet); color: #fff; }
.plat-ico svg { width: 28px; height: 28px; fill: currentColor; }
.plat h4 { font-size: 1.4rem; } .plat p { color: var(--ink-soft); font-size: .98rem; margin-top: 2px; }

/* ---- studio ---- */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
@media (max-width: 900px){ .studio-grid { grid-template-columns: 1fr; gap: var(--s-7); } }
.studio-lead { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem,3vw,2.4rem); line-height: 1.18; letter-spacing: -0.02em; }
.studio-lead .serif { color: var(--tangerine); }
.studio-body { color: var(--ink-soft); font-size: 1.08rem; margin-top: var(--s-5); }
.studio-photo { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--lime); }
.studio-photo image-slot { width: 100%; height: 100%; }
.studio-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- CTA ---- */
.cta { background: var(--tangerine); color: #fff; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-align: center; }
.cta h2 { font-size: clamp(2.6rem,6vw,5.2rem); letter-spacing: -0.04em; }
.cta p { font-size: 1.2rem; max-width: 44ch; margin: var(--s-5) auto var(--s-7); opacity: .95; }
.cta .btn { box-shadow: var(--shadow); }

/* ---- footer ---- */
.footer { background: var(--ink); color: var(--paper); padding: var(--s-9) 0 var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: var(--s-7); }
.footer-grid-3 { grid-template-columns: 1.8fr 1fr 1fr; }
@media (max-width: 720px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
.footer .logo { color: var(--paper); }
.footer-brand p { color: #B7B0A2; margin-top: var(--s-4); max-width: 34ch; }
.footer-col h5 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: var(--s-4); }
.footer-col a { display: block; color: #C9C2B4; padding: 5px 0; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid #333; }
.footer-bottom p { font-family: var(--mono); font-size: .76rem; color: var(--ink-mute); }
.socials { display: flex; gap: var(--s-2); }
.social { width: 40px; height: 40px; border-radius: 11px; border: 2px solid #3a352c; display: grid; place-items: center; color: #C9C2B4; transition: background .2s, color .2s, border-color .2s; }
.social:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* reveal (transform-only, capture-safe) */
.reveal { transform: translateY(22px); transition: transform .7s var(--ease); }
.reveal.in { transform: none; }
.reveal[data-d="1"]{ transition-delay:.06s; } .reveal[data-d="2"]{ transition-delay:.12s; } .reveal[data-d="3"]{ transition-delay:.18s; }

/* mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 200; background: var(--lime); display: flex; flex-direction: column; padding: var(--s-9) var(--s-6); gap: var(--s-2); transform: translateY(-100%); transition: transform .4s var(--ease); }
.sheet.open { transform: none; }
.sheet a { font-family: var(--display); font-weight: 800; font-size: 2.2rem; padding: var(--s-3) 0; border-bottom: 2px solid var(--ink); }
.sheet-close { position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 99px; display: grid; place-items: center; background: var(--card); }
.sheet-close svg { width: 24px; height: 24px; }

/* ============ LEGAL / POLICY PAGES ============ */
.legal { padding: 150px 0 var(--s-9); }
.legal .wrap { max-width: 820px; }
.legal-head { margin-bottom: var(--s-8); }
.legal-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.04em; margin: var(--s-5) 0 var(--s-4); }
.legal-head .updated { font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.legal-body h2 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; margin: var(--s-7) 0 var(--s-3); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; text-wrap: pretty; }
.legal-body p { margin-bottom: var(--s-4); }
.legal-body ul { margin: 0 0 var(--s-4) var(--s-5); }
.legal-body li { margin-bottom: var(--s-2); }
.legal-body a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--ink); }
.legal-card { border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); padding: var(--s-6); margin: var(--s-5) 0; }
.legal-back { display: inline-flex; align-items: center; gap: .5em; font-family: var(--mono); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--s-5); }
.legal-back svg { width: 16px; height: 16px; }
