/* KalamTech Games — look C "Studio" (picked by Justine 2026-10-27, studio_website Phase 2) */
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
:root {
  --bg: #f3f1ec; --card: #e8e5de; --ink: #111014; --muted: #6b6873; --line: #d7d3ca;
  --accent: #ff7a1a; --dark: #111014;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif; --body: "Inter", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: .95; margin: 0; }
.label { font-family: var(--display); font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.label b { color: var(--ink); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* nav */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo span { width: 22px; height: 22px; background: var(--ink); border-radius: 6px; position: relative; }
.logo span::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 10px; height: 10px; background: var(--accent); border-radius: 3px; }
.nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 500; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--accent); }

/* hero */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(3.2rem, 10.5vw, 9.6rem); margin: 22px 0 36px; }
.hero h1 .o { color: var(--accent); }
.hero-foot { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-foot p { font-size: 1.2rem; max-width: 36rem; margin: 0; color: #2c2a31; }
.arrow-link { font-family: var(--display); font-weight: 600; font-size: 1.1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: gap .2s; }
.arrow-link:hover { gap: 18px; }

.showreel { margin-top: 40px; border-radius: 28px; overflow: hidden; position: relative; aspect-ratio: 16 / 8; background: #222 url("assets/img/cd-hero.webp") center 35% / cover; }
.showreel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%); }
.showreel .cap { position: absolute; left: 28px; bottom: 24px; z-index: 1; color: #fff; display: flex; align-items: center; gap: 14px; }
.showreel .cap img { width: 56px; border-radius: 14px; }
.showreel .cap strong { font-family: var(--display); font-size: 1.4rem; letter-spacing: -.02em; display: block; line-height: 1.1; }
.showreel .cap span { opacity: .8; font-size: .95rem; }

/* games index */
.section { padding: 110px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.game { display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.game:last-child { border-bottom: 1px solid var(--line); }
.num { font-family: var(--display); font-size: 1.1rem; color: var(--muted); padding-top: 8px; }
.game h3 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 14px; }
.game .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.chip.live { background: var(--accent); border-color: var(--accent); color: #fff; }
.game p { color: #3a3840; font-size: 1.05rem; margin: 0 0 22px; max-width: 30rem; }
.feats { list-style: none; padding: 0; margin: 0 0 26px; columns: 2; column-gap: 24px; }
.feats li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.stores img { height: 44px; width: auto; }
.media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.media img { border-radius: 18px; aspect-ratio: 540 / 900; object-fit: cover; object-position: top; transition: transform .3s; }
.media img:hover { transform: translateY(-6px); }
.media img:nth-child(2) { margin-top: 36px; }
.teaser { border-radius: 22px; aspect-ratio: 16 / 10; background: var(--dark); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; position: relative; overflow: hidden; }
.teaser::before { content: ""; position: absolute; width: 380px; height: 380px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,26,.55), transparent 65%); filter: blur(10px); }
.teaser strong { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.04em; position: relative; }
.teaser span { position: relative; color: #bbb6c4; }

/* studio */
.studio { background: var(--dark); color: #f3f1ec; border-radius: 36px; margin: 0 16px; }
.studio .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding-top: 100px; padding-bottom: 100px; }
.studio .label { color: #a5a1ad; } .studio .label b { color: #fff; }
.studio h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); margin-top: 18px; }
.studio p { color: #c9c5d0; font-size: 1.1rem; margin: 0 0 18px; }
.values { display: grid; gap: 0; align-content: start; }
.value { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid #2c2a31; }
.value:last-child { border-bottom: 1px solid #2c2a31; }
.value b { font-family: var(--display); color: var(--accent); }
.value strong { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; display: block; }
.value span { color: #a5a1ad; }

/* contact */
.contact { padding: 120px 0; }
.contact h2 { font-size: clamp(2.8rem, 9vw, 8rem); }
.mail { display: inline-block; margin-top: 28px; font-family: var(--display); font-size: clamp(1.2rem, 3.2vw, 2.2rem); letter-spacing: -.02em; text-decoration: none; border-bottom: 3px solid var(--accent); padding-bottom: 4px; word-break: break-all; }
.mail:hover { color: var(--accent); }

/* document pages (privacy, support, 404) */
.doc { padding: 72px 0 110px; }
.doc-head { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 40px; }
.doc-head h1 { font-size: clamp(2.8rem, 8vw, 6rem); margin: 18px 0 14px; }
.doc-head .meta { color: var(--muted); margin: 0; }
.doc-body { max-width: 760px; }
.doc-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.025em; line-height: 1.15; margin: 48px 0 12px; }
.doc-body p, .doc-body li { color: #2c2a31; }
.doc-body ul { padding-left: 1.2em; }
.doc-body li { margin: 6px 0; }
.doc-body a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.doc-body a:hover { color: var(--accent); }
.box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin: 20px 0; }
.box p { margin: 6px 0; }
.box.dark { background: var(--dark); border-color: var(--dark); color: #f3f1ec; }
.box.dark p { color: #f3f1ec; }
.box.dark .mail { margin-top: 6px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
th { font-family: var(--display); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 16px 36px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }

.rise { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; gap: 20px; }
  .num { padding: 0; }
  .studio .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
  .studio { margin: 0 8px; border-radius: 26px; }
  .hero-foot { grid-template-columns: 1fr; }
  .showreel { aspect-ratio: 4 / 3; }
  .section { padding: 80px 0; }
  .doc { padding: 48px 0 80px; }
}
@media (max-width: 560px) {
  .nav ul { gap: 18px; } .nav ul li:first-child { display: none; }
  .feats { columns: 1; }
  .media img:nth-child(2) { margin-top: 20px; }
}
