:root {
  color-scheme: light;
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #20292b;
  background: #f4f3ee;
  --ink: #20292b;
  --paper: #f4f3ee;
  --green: #65b47d;
  --green-dark: #28483f;
  --coral: #e77b6f;
  --muted: #66716d;
  --line: #c9cfcb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); }
body:has(.age-gate:not([hidden])) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.home-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 6vw, 88px);
  border-bottom: 1px solid rgba(32,41,43,.18);
}
.home-brand { display: grid; width: max-content; color: var(--ink); text-decoration: none; line-height: 1; }
.home-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 25px; text-transform: lowercase; }
.home-brand span { margin-top: 5px; color: #60706a; font: 800 8px monospace; letter-spacing: 1.4px; }
nav { display: flex; gap: clamp(20px, 4vw, 48px); }
nav a { font-size: 12px; font-weight: 800; text-decoration: none; }

.eyebrow { margin: 0 0 16px; color: var(--green-dark); font: 900 10px monospace; letter-spacing: 1.7px; }
.home-hero {
  min-height: min(780px, 82vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 118px 24px 60px;
  text-align: center;
  background: #f7f5ef;
  border-bottom: 5px solid var(--green);
}
.home-logo { width: clamp(180px, 24vw, 300px); aspect-ratio: 1; object-fit: contain; margin-bottom: 18px; }
.home-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 8vw, 104px); line-height: .95; text-transform: lowercase; letter-spacing: 0; }
.home-hero > p:not(.eyebrow) { margin: 24px 0 30px; color: #56625e; font-size: clamp(15px, 1.6vw, 20px); font-weight: 700; line-height: 1.8; }
.down-link { color: var(--green-dark); font: 900 10px monospace; letter-spacing: 1.4px; text-decoration: none; border-bottom: 1px solid var(--green-dark); padding-bottom: 5px; }

.games { padding: clamp(82px, 10vw, 150px) clamp(22px, 7vw, 104px); background: #151b1c; color: #eef2ef; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 44px; }
.section-heading .eyebrow { color: #91d6b9; }
h2 { margin: 0; font-size: clamp(34px, 5vw, 68px); line-height: 1.1; letter-spacing: 0; }
.project-feature { position: relative; min-height: clamp(520px, 66vw, 760px); display: flex; align-items: center; overflow: hidden; color: #fff; text-decoration: none; border-block: 1px solid #3a4442; }
.project-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,11,12,.97) 0%, rgba(8,11,12,.84) 38%, rgba(8,11,12,.1) 72%); }
.project-feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.project-feature:hover > img { transform: scale(1.015); }
.project-copy { position: relative; z-index: 2; width: min(580px, 53%); padding: clamp(30px, 5vw, 72px); }
.project-status { display: inline-block; padding: 7px 9px; border: 1px solid #e5c26c; color: #e5c26c; font: 900 9px monospace; letter-spacing: 1px; }
.project-type { margin: 24px 0 10px; color: #91d6b9; font: 900 10px monospace; letter-spacing: 1.5px; }
.project-copy h3 { margin: 0; font: 900 clamp(43px, 7vw, 96px)/.95 Impact, "Arial Black", sans-serif; letter-spacing: 0; }
.project-copy > p:not(.project-type) { margin: 28px 0; color: #c3ccc8; font-size: 14px; line-height: 1.9; }
.project-link { display: inline-flex; gap: 14px; align-items: center; color: #fff; font-size: 13px; font-weight: 900; border-bottom: 1px solid #fff; padding-bottom: 5px; }
.project-link b { font-size: 18px; }

.about { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, .85fr); gap: clamp(46px, 9vw, 140px); padding: clamp(90px, 12vw, 170px) clamp(22px, 8vw, 120px); background: #edf0eb; }
.about-copy > p { margin: 0 0 20px; color: #5d6965; line-height: 2; }
.about-copy dl { margin: 38px 0 0; border-block: 1px solid #b9c2bd; }
.about-copy dl div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid #d2d8d4; }
.about-copy dl div:last-child { border-bottom: 0; }
.about-copy dt { color: #71807a; font: 900 9px monospace; letter-spacing: 1px; }
.about-copy dd { margin: 0; font-size: 13px; font-weight: 800; }

footer { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px clamp(22px, 8vw, 120px); background: #20292b; color: #9eaaa5; font-size: 11px; }
footer .home-brand { color: #eef2ef; }
footer .home-brand span { color: #91d6b9; }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; border-radius: 3px; font: inherit; font-size: 13px; font-weight: 900; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--coral); color: #211816; box-shadow: 6px 6px 0 #7d3b35; }
.button.secondary { border-color: #4a5652; color: #bac4bf; background: transparent; }
.age-gate { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: rgba(13,17,18,.97); transition: opacity .24s ease; }
.age-gate[hidden] { display: none; }
.age-gate.is-leaving { opacity: 0; }
.age-panel { width: min(560px, 100%); padding: clamp(28px, 5vw, 48px); border-top: 5px solid var(--green); background: #1c2425; color: #eef2ef; box-shadow: 0 28px 80px #000; }
.age-panel > img { width: 96px; height: 96px; object-fit: cover; margin-bottom: 24px; background: #f7f5ef; }
.age-panel .eyebrow { color: #91d6b9; }
.age-panel h1 { margin: 0 0 16px; font-size: clamp(26px, 5vw, 40px); }
.age-panel > p:not(.eyebrow) { color: #aab5b0; line-height: 1.9; }
.age-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }

@media (max-width: 760px) {
  .home-header { height: 72px; padding-inline: 18px; }
  nav a { font-size: 10px; }
  .home-hero { min-height: 78svh; padding-top: 96px; }
  .home-logo { width: 180px; }
  .project-feature { min-height: 650px; align-items: end; }
  .project-feature::after { background: linear-gradient(180deg, rgba(8,11,12,.08) 0%, rgba(8,11,12,.84) 54%, rgba(8,11,12,.98) 100%); }
  .project-feature > img { object-position: 63% center; }
  .project-copy { width: 100%; padding: 28px 20px 42px; }
  .about { grid-template-columns: 1fr; }
  .about-copy dl div { grid-template-columns: 1fr; gap: 7px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .home-header nav a:last-child { display: none; }
  .home-brand strong { font-size: 22px; }
  .home-hero h1 { font-size: 54px; }
  .project-copy h3 { font-size: 44px; }
  .age-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-height: 560px) {
  .age-gate { align-items: start; }
  .age-panel { margin-block: 12px; }
}
