/* Kelken Studios — kelkenstudios.com
   Colours come from the brand artwork: navy #071A2B, teal #2DD4BF, mist #EEF4F8. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #071A2B;
  --navy-deep: #04111D;
  --navy-raised: #0B2438;
  --teal: #2DD4BF;
  --teal-soft: rgba(45, 212, 191, 0.14);
  --mist: #EEF4F8;
  --text: #E6F1F8;
  --muted: #9DB3C4;
  --line: rgba(238, 244, 248, 0.09);
  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font: 400 17px/1.65 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--teal); color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--teal); color: var(--navy); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 26, 43, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; gap: clamp(18px, 3vw, 36px); }
.site-nav a {
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--mist); }
@media (max-width: 560px) {
  .site-header .wrap { height: 64px; }
  .brand img { height: 36px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
}

/* ---------------------------------------------------------------- type */

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal);
}
h1, h2, h3 { margin: 0; color: var(--mist); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -0.03em; }
h3 { font-size: 22px; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 34em; }

/* ---------------------------------------------------------------- buttons */

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em; text-decoration: none;
  transition: transform .2s, background-color .2s, border-color .2s, color .2s;
}
.button.primary { background: var(--teal); color: var(--navy); }
.button.primary:hover { background: #5EE3D2; transform: translateY(-1px); }
.button.ghost { border: 1px solid rgba(238, 244, 248, 0.22); color: var(--mist); }
.button.ghost:hover { border-color: var(--teal); color: var(--teal); }
.arrow { transition: transform .2s; }
a:hover .arrow { transform: translateX(4px); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 150px) 0 clamp(80px, 12vw, 140px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 .accent { color: var(--teal); }
.hero .lede { margin: 28px 0 0; }

.hero-mark { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: end; }
.hero-mark img { position: absolute; inset: 22%; width: 56%; height: 56%; }
.ripple {
  position: absolute; inset: 22%; border-radius: 50%;
  border: 2px solid var(--teal); opacity: 0;
  animation: ripple 6s cubic-bezier(.2, .6, .35, 1) infinite;
}
.ripple:nth-child(2) { animation-delay: 2s; }
.ripple:nth-child(3) { animation-delay: 4s; }
@keyframes ripple {
  0%   { transform: scale(1);    opacity: .55; }
  100% { transform: scale(1.75); opacity: 0; }
}
.hero-glow {
  position: absolute; z-index: 0; right: -10%; top: 50%;
  width: 70vw; max-width: 900px; aspect-ratio: 1; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.16), transparent);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .ripple { animation: none; opacity: .25; }
  .ripple:nth-child(2) { transform: scale(1.3); opacity: .15; }
  .ripple:nth-child(3) { transform: scale(1.6); opacity: .08; }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; max-width: 240px; margin: -24px 0 -8px -28px; }
}

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.section.deep { background: var(--navy-deep); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .lede { margin: 0; max-width: 30em; }

/* ---------------------------------------------------------------- games */

.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.game {
  position: relative; display: flex; flex-direction: column;
  background: var(--navy-raised); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), border-color .35s, box-shadow .35s;
}
.game:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.4); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7); }
.game-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-deep); }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.game:hover .game-art img { transform: scale(1.04); }
.badge {
  position: absolute; left: 18px; top: 18px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(4, 17, 29, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(45, 212, 191, 0.35);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
}
.game-body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.6vw, 32px); }
.genre { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.game h3 { font-size: clamp(24px, 2.4vw, 30px); }
.game p.summary { margin: 12px 0 0; color: var(--muted); }
.game-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  margin-top: auto; padding-top: 24px;
  font-size: 14px;
}
.platforms { color: var(--muted); }
.visit { font-weight: 700; color: var(--teal); display: inline-flex; gap: 8px; }

.game.featured { grid-column: 1 / -1; flex-direction: row; }
.game.featured .game-art { flex: 1.45; aspect-ratio: auto; min-height: 380px; }
.game.featured .game-body { flex: 1; justify-content: center; padding: clamp(28px, 4vw, 52px); }
.game.featured h3 { font-size: clamp(30px, 3.4vw, 42px); }
.game.featured .game-foot { margin-top: 32px; }

@media (max-width: 860px) {
  .games { grid-template-columns: 1fr; }
  .game.featured { flex-direction: column; }
  .game.featured .game-art { aspect-ratio: 16 / 9; min-height: 0; }
}

/* ---------------------------------------------------------------- contact */

.contact { position: relative; overflow: hidden; text-align: center; }
.contact .lede { margin: 22px auto 0; }
.contact .actions { justify-content: center; }
.contact-rings {
  position: absolute; left: 50%; top: 50%; width: 1100px; aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none;
  border-radius: 50%; border: 2px solid rgba(45, 212, 191, 0.06);
}
.contact-rings::before, .contact-rings::after {
  content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(45, 212, 191, 0.1);
}
.contact-rings::before { inset: 18%; }
.contact-rings::after { inset: 34%; border-color: rgba(45, 212, 191, 0.14); }
.contact .wrap { position: relative; }
.email { font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: var(--mist); text-decoration: none; letter-spacing: -0.01em; border-bottom: 2px solid var(--teal); padding-bottom: 2px; }
.email:hover { color: var(--teal); }

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); background: var(--navy-deep); padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; padding-bottom: 40px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin: 16px 0 0; max-width: 22em; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer-cols h4 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-cols a { text-decoration: none; transition: color .2s; }
.footer-cols a:hover { color: var(--teal); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------------------------------------------------------------- prose pages (privacy, 404) */

.page { padding: clamp(64px, 9vw, 110px) 0 clamp(80px, 10vw, 120px); }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); }
.prose .updated { margin: 18px 0 44px; color: var(--muted); font-size: 15px; }
.prose h2 { font-size: 24px; letter-spacing: -0.015em; margin: 48px 0 14px; }
.prose p, .prose li { color: #C4D4E0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--teal); text-underline-offset: 3px; }

.notfound { min-height: calc(100vh - 72px - 240px); display: grid; place-items: center; text-align: center; }
.notfound img { width: 140px; margin: 0 auto 36px; }
.notfound .lede { margin: 20px auto 0; }
.notfound .actions { justify-content: center; }
.footer-bottom a { text-decoration: none; } .footer-bottom a:hover { color: var(--teal); }

/* ---------------------------------------------------------------- divisions (home hub) */

.divisions { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.division {
  position: relative; display: flex; flex-direction: column; scroll-margin-top: 96px;
  padding: clamp(28px, 3.6vw, 48px);
  background: var(--navy-raised); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), border-color .35s, box-shadow .35s;
}
.division:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.4); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7); }
.division-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 28px;
  border-radius: 16px; background: var(--teal-soft); color: var(--teal);
}
.division-icon svg { width: 32px; height: 32px; }
.division .eyebrow { margin-bottom: 12px; }
.division h3 { font-size: clamp(28px, 3vw, 38px); }
.division p.summary { margin: 16px 0 0; color: var(--muted); max-width: 30em; }
.division .visit { margin-top: auto; padding-top: 32px; font-size: 15px; }
@media (max-width: 860px) { .divisions { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- areas (technology) */

.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.area {
  padding: clamp(24px, 3vw, 36px);
  background: var(--navy-raised); border: 1px solid var(--line); border-radius: var(--radius);
}
.area .division-icon { width: 52px; height: 52px; margin-bottom: 22px; border-radius: 14px; }
.area .division-icon svg { width: 26px; height: 26px; }
.area p { margin: 12px 0 0; color: var(--muted); }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }

.hero.compact { padding-bottom: clamp(56px, 8vw, 96px); }
