/* ClassicShark studio hub. Plain CSS, no build step.
   Deep-sea teal for the studio; Rifters keeps its own violet inside its panel. */

:root {
  --bg: #04090f;
  --bg-2: #08131d;
  --bg-3: #0c1c29;
  --ink: #eef8f8;
  --ink-2: #b4c8cc;
  --muted: #7d9399;
  --line: rgba(190, 240, 236, .12);
  --teal: #37e0cf;
  --teal-2: #14b8a6;
  --violet: #8b5cf6;

  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--teal-2); color: #001614; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }

.kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--display); letter-spacing: .32em; text-transform: uppercase; color: var(--teal); }
.kicker::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--teal)); }
.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section-title { margin-top: 14px; font: 700 clamp(2rem, 1.2rem + 3.2vw, 3.6rem)/1.05 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.section-lead { margin-top: 16px; max-width: 56ch; color: var(--ink-2); font-size: clamp(1rem, .95rem + .25vw, 1.125rem); }

.btn { --h: 52px; display: inline-flex; align-items: center; justify-content: center; height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--display); letter-spacing: .04em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .35s; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 13px; }
.btn--teal { color: #00201d; background: linear-gradient(180deg, #7ff5e8, var(--teal)); box-shadow: 0 10px 30px -10px rgba(55, 224, 207, .6); }
.btn--teal:hover { box-shadow: 0 16px 40px -10px rgba(55, 224, 207, .85); }
.btn--violet { color: #fff; background: linear-gradient(180deg, #a78bfa, #7c3aed); box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .8); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); background: rgba(55, 224, 207, .08); }
.btn--glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .18); }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); border-bottom: 1px solid transparent; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.site-header.is-scrolled { background: rgba(4, 9, 15, .72); border-bottom-color: var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; fill: var(--teal); }
.brand__name { font: 700 15px/1 var(--display); letter-spacing: .14em; }
.brand__name b { margin-left: .08em; color: var(--teal); font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link { position: relative; padding: 10px 14px; font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); transition: color .25s; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .header-cta { margin-left: auto; }
  .menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); cursor: pointer; }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; z-index: -1; margin: 0; flex-direction: column; justify-content: center; padding: 0 var(--gutter); background: rgba(4, 9, 15, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); clip-path: circle(0% at calc(100% - 40px) 32px); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s linear .7s; }
  .nav.is-open { clip-path: circle(150% at calc(100% - 40px) 32px); visibility: visible; transition: clip-path .7s var(--ease); }
  .nav__link { font-size: 2.2rem; letter-spacing: .04em; padding: 10px 0; }
  .nav__link::after { left: 0; right: auto; width: 40px; }
}
@media (max-width: 400px) { .header-cta { display: none; } .menu-btn { margin-left: auto; } }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero__sea { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 50% 45% at var(--gx, 70%) var(--gy, 30%), rgba(55, 224, 207, .18), transparent 70%), linear-gradient(180deg, transparent 70%, var(--bg)); }
.hero__inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 40px) var(--gutter) 120px; }
.hero__mark { display: block; width: clamp(56px, 7vw, 84px); margin-bottom: 28px; fill: rgba(55, 224, 207, 0); stroke: var(--teal); stroke-width: .7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) .2s forwards, fillIn .8s ease 1.6s forwards; filter: drop-shadow(0 0 18px rgba(55, 224, 207, .5)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--teal); } }
.hero__title { margin-top: 18px; font: 700 clamp(3.2rem, 1.6rem + 8vw, 8.5rem)/.92 var(--display); letter-spacing: -.03em; }
.hero__title .line { display: inline-block; overflow: hidden; padding-bottom: .06em; vertical-align: top; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line + .line > span { animation-delay: .15s; }
.hero__title .accent { color: var(--teal); }
@keyframes rise { to { transform: none; } }
.hero__sub { margin-top: 26px; max-width: 52ch; color: var(--ink-2); font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); opacity: 0; animation: fadeUp 1s var(--ease) .55s forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards; }
.hero .kicker { opacity: 0; animation: fadeUp 1s var(--ease) .1s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 10px/1 var(--display); letter-spacing: .35em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.scroll-cue i { position: relative; width: 1px; height: 46px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--teal); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* --------------------------------------------------------------- marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font: 700 clamp(1.4rem, 1rem + 1.6vw, 2.4rem)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(190, 240, 236, .45); white-space: nowrap; }
.marquee span:nth-of-type(2n) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee i { width: 12px; height: 12px; flex: none; background: var(--teal); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- games */
.games { padding: clamp(90px, 14vh, 160px) 0 clamp(60px, 10vh, 120px); }
.showcase {
  position: relative; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) + 80px); margin: 48px auto 0;
  min-height: min(84svh, 760px); border-radius: 32px; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 60px 120px -40px rgba(124, 58, 237, .55);
}
.showcase__slides { position: absolute; inset: 0; z-index: -3; }
.showcase__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transform: scale(1.12); transition: opacity 1.4s var(--ease), transform 9s linear; }
.showcase__slides img.is-active { opacity: 1; transform: scale(1.01); }
.showcase__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(10, 6, 20, .9), rgba(10, 6, 20, .55) 45%, rgba(10, 6, 20, .05) 80%), linear-gradient(0deg, rgba(10, 6, 20, .85), transparent 45%); }
.showcase__portal { position: absolute; right: 2%; top: 46%; width: min(70vw, 900px); aspect-ratio: 1; translate: 0 -50%; z-index: -1; mix-blend-mode: screen; opacity: .75; }
.showcase__portal div, .showcase__portal div img { position: absolute; inset: 0; width: 100%; height: 100%; }
.showcase__portal div { -webkit-mask: radial-gradient(circle, #000 6%, transparent 31%); mask: radial-gradient(circle, #000 6%, transparent 31%); }
.showcase__portal div img { animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.showcase__dimons { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.showcase__dimons img { position: absolute; width: var(--s); translate: calc(var(--mx, 0) * var(--d) * 1px) calc(var(--my, 0) * var(--d) * 1px); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .45)); animation: float var(--dur) ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(-10px) rotate(-2deg); } to { transform: translateY(10px) rotate(2deg); } }
.showcase__body { max-width: 540px; }
.showcase__status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .15); font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.showcase__logo { width: min(100%, 380px); height: auto; margin-top: 18px; filter: drop-shadow(0 8px 30px rgba(124, 58, 237, .7)); }
.showcase__lead { margin-top: 14px; color: #ece6ff; font-size: 1.05rem; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.showcase__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.showcase__tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(196, 181, 253, .35); background: rgba(139, 92, 246, .16); font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #ddd6fe; }
.showcase__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.showcase__facts { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; text-align: right; }
.showcase__facts b { display: block; font: 700 clamp(2rem, 1.4rem + 2vw, 3.2rem)/1 var(--display); background: linear-gradient(180deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.showcase__facts span { font: 600 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: #cfc6ee; }
.showcase__dots { position: absolute; right: clamp(28px, 5vw, 64px); top: clamp(24px, 4vw, 48px); display: flex; gap: 8px; }
.showcase__dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .25); cursor: pointer; overflow: hidden; position: relative; }
.showcase__dots button::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.showcase__dots button[aria-selected="true"]::after { animation: fill var(--slide, 6s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; min-height: 0; padding-top: 52%; border-radius: 24px; }
  .showcase__shade { background: linear-gradient(0deg, rgba(10, 6, 20, .96) 40%, rgba(10, 6, 20, .2) 75%); }
  .showcase__portal { right: auto; left: 50%; top: 0; width: 150%; translate: -50% -38%; }
  .showcase__facts { flex-direction: row; justify-content: space-between; text-align: left; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }
}

.next {
  position: relative; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) + 80px); margin: 24px auto 0;
  padding: clamp(28px, 5vw, 56px); border-radius: 28px; overflow: hidden; isolation: isolate;
  border: 1px dashed rgba(190, 240, 236, .22); background: var(--bg-2);
}
.next__noise { position: absolute; inset: 0; z-index: -1; opacity: .5; background: repeating-linear-gradient(0deg, rgba(55, 224, 207, .04) 0 2px, transparent 2px 4px), radial-gradient(ellipse 50% 80% at 85% 50%, rgba(55, 224, 207, .12), transparent 70%); animation: scan 6s linear infinite; }
@keyframes scan { to { background-position: 0 40px, 0 0; } }
.next__title { margin-top: 14px; font: 700 clamp(1.8rem, 1.2rem + 2.4vw, 3rem)/1 var(--display); letter-spacing: .02em; }
.next p:last-child { margin-top: 12px; max-width: 56ch; color: var(--ink-2); }

/* ---------------------------------------------------------------- studio */
.studio { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .5fr); gap: 32px 64px; max-width: var(--max); margin: 0 auto; padding: clamp(90px, 14vh, 160px) var(--gutter); }
.studio__intro { grid-column: 1 / -1; }
.studio__statement { margin-top: 20px; max-width: 22ch; font: 700 clamp(2rem, 1.2rem + 3.4vw, 4rem)/1.08 var(--display); letter-spacing: -.01em; }
.studio__statement .w { color: rgba(238, 248, 248, .16); transition: color .4s; }
.studio__statement .w.is-lit { color: var(--ink); }
.principles { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; align-content: start; }
.principle { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; padding: 26px 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(55, 224, 207, .07), transparent 60%); transition: border-color .4s, transform .5s var(--ease); }
.principle:hover { border-color: rgba(55, 224, 207, .45); transform: translateX(6px); }
.principle__no { grid-row: span 2; font: 700 2.2rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(55, 224, 207, .6); }
.principle h3 { font: 700 1.3rem/1.2 var(--display); }
.principle p { color: var(--ink-2); font-size: .97rem; }
.studio__art { position: relative; margin: 0; align-self: center; display: grid; place-items: center; }
.studio__art::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(55, 224, 207, .22), transparent 65%); }
.studio__art img { position: relative; width: auto; max-width: 100%; height: min(440px, 60vh); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); animation: float 5s ease-in-out infinite alternate; }
@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .studio__art { display: none; }
}

/* --------------------------------------------------------------- contact */
.contact { padding: 0 var(--gutter) clamp(90px, 14vh, 160px); }
.contact__card { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vw, 80px); border-radius: 32px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: var(--bg-3); }
.contact__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 80% at 100% 100%, rgba(55, 224, 207, .22), transparent 60%), radial-gradient(ellipse 40% 60% at 0% 0%, rgba(139, 92, 246, .14), transparent 60%); }
.mail { display: inline-flex; align-items: center; gap: 18px; margin-top: 36px; font: 700 clamp(1.3rem, .9rem + 2.4vw, 2.8rem)/1.1 var(--display); text-decoration: none; letter-spacing: -.01em; background: linear-gradient(90deg, var(--ink), var(--ink)) left bottom / 0 2px no-repeat; padding-bottom: 6px; transition: background-size .6s var(--ease), color .3s; word-break: break-all; }
.mail:hover { background-size: 100% 2px; color: var(--teal); }
.mail svg { width: .9em; height: .9em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.mail:hover svg { transform: translateX(8px); }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom)); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--teal); }
.site-footer p { color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero__title .line > span { transform: none; }
  .hero__mark { stroke-dashoffset: 0; fill: var(--teal); }
}
