:root {
  --ink: #082338;
  --muted: #385266;
  --blue: #0668aa;
  --pink: #cb005d;
  --green: #00834b;
  --yellow: #f8d928;
  --paper: #fff;
  --surface: #f1f7fb;
  --line: #d8e5ed;
  --page-width: 72rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; width: 100%; height: auto; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.container { width: min(var(--page-width), calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2; padding: .65rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.collaboration-banner { border-bottom: 1px solid var(--line); background: var(--paper); }
.collaboration-inner { display: flex; align-items: center; justify-content: center; gap: clamp(.8rem, 2.5vw, 2rem); min-height: 6.5rem; padding-block: .9rem; }
.collaboration-logos { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 1.35rem); }
.collaboration-logos img:first-child { width: clamp(4.4rem, 8vw, 6.25rem); }
.collaboration-logos img:last-child { width: clamp(7.8rem, 14vw, 11rem); }
.collaboration-symbol { color: var(--ink); font-size: clamp(1.25rem, 2.4vw, 1.85rem); font-weight: 900; line-height: 1; }
.collaboration-inner > p { color: var(--ink); font-size: clamp(.8rem, 1.4vw, 1rem); font-weight: 700; line-height: 1.12; }
.collaboration-inner > p strong { font-size: 1.08em; font-weight: 900; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.wordmark { display: inline-flex; flex: none; align-items: center; font-size: 1.45rem; font-weight: 880; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.wordmark img { width: 2.5rem; margin-right: .5rem; }
.wordmark span { color: var(--blue); }
.wordmark small { align-self: center; color: var(--muted); font-size: .62em; letter-spacing: -.02em; padding-left: .12em; padding-top: .27em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.8rem, 3.3vw, 2rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .94rem; font-weight: 680; text-decoration: none; }
nav a:hover, .text-link:hover { color: var(--pink); text-decoration: underline; }

.hero { background: #f9fcfe; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.6rem, 5vw, 4.75rem); }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: #07598e; font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow > span { flex: 0 0 .5rem; height: .5rem; background: var(--green); border-radius: 50%; }
h1, h2, h3 { line-height: 1.02; letter-spacing: -.06em; }
h1 { margin-top: .95rem; font-size: clamp(3.25rem, 6.35vw, 6.2rem); font-weight: 900; }
h1 em { color: var(--pink); font-style: normal; }
.hero-description, .section-description { margin-block: 1.15rem 1.55rem; max-width: 43ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.17rem); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .75rem; min-height: 48px; padding: .65rem 1.12rem; border-radius: .4rem; background: var(--ink); color: #fff; font-weight: 750; text-decoration: none; }
.button:hover { background: #154967; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--ink); font-size: .94rem; font-weight: 730; text-decoration: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; }
.hero-visual { position: relative; display: grid; place-items: end center; overflow: hidden; min-width: 0; aspect-ratio: 1.1; padding: 1.1rem 1rem .9rem; border: 1px solid #b9d7ea; border-radius: 1rem; background: linear-gradient(108deg, #e5f3fc 39%, var(--yellow) 39.2% 43%, var(--blue) 43.2%); }
.hero-visual > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center bottom; }
.hero-visual figcaption { position: absolute; right: .75rem; bottom: .75rem; padding: .5rem .65rem; border-radius: .3rem; background: var(--yellow); color: var(--ink); text-align: center; font-size: clamp(.57rem, 1.3vw, .75rem); font-weight: 850; line-height: 1.12; letter-spacing: .04em; text-transform: uppercase; }

.section { padding-block: clamp(2.8rem, 5.7vw, 5.1rem); }
h2 { margin-top: .62rem; font-size: clamp(2.1rem, 4.7vw, 3.8rem); font-weight: 850; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.65rem; }
.feature-grid > div { overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); }
.feature-grid img { aspect-ratio: 2 / 1; object-fit: cover; background: var(--surface); }
.feature-grid dt { font-size: 1.06rem; font-weight: 760; line-height: 1.23; }
.feature-grid dt span { display: block; margin: .8rem .95rem .33rem; }
.feature-grid dd { padding: 0 .95rem 1rem; color: var(--muted); font-size: .94rem; }
.games { border-block: 1px solid var(--line); background: var(--surface); }
.games h2 + p { margin-block: .85rem 1.45rem; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.game-card { overflow: hidden; border: 1px solid var(--line); border-bottom: .25rem solid var(--game-color); border-radius: .7rem; background: var(--paper); }
.game-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.ashen { --game-color: var(--blue); }
.serpens { --game-color: var(--green); }
.stilt { --game-color: var(--pink); }
.game-copy { padding: .9rem 1.1rem 1.08rem; }
.game-copy p { margin-bottom: .35rem; color: var(--muted); font-size: .8rem; font-weight: 690; }
.game-copy h3 { font-size: clamp(1.15rem, 2.6vw, 1.6rem); letter-spacing: -.035em; }
.contact { background: var(--yellow); }
.contact .eyebrow, .contact .section-description, .contact address { color: var(--ink); }
.contact .eyebrow span { background: var(--ink); }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
address { display: grid; gap: .4rem; flex: 0 1 22rem; border-left: 1px solid #8e7827; padding-left: 1.35rem; font-style: normal; }
address a { width: fit-content; font-weight: 750; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wordmark { font-size: 1.12rem; }
.site-footer .wordmark img { width: 2rem; }
.partners { display: flex; align-items: center; gap: clamp(.4rem, 2vw, .8rem); font-weight: 800; }
.partners img:first-child { width: clamp(2.4rem, 10vw, 4.1rem); }
.partners img:last-child { width: clamp(3.65rem, 13vw, 6rem); }

@media (max-width: 58rem) {
  .hero-inner { gap: 1.65rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  .container { width: calc(100% - 2rem); }
  .collaboration-inner { flex-wrap: wrap; gap: .35rem .75rem; min-height: 0; padding-block: .7rem; }
  .collaboration-logos { gap: .55rem; }
  .collaboration-logos img:first-child { width: 3.7rem; }
  .collaboration-logos img:last-child { width: 6.6rem; }
  .collaboration-symbol { font-size: 1.1rem; }
  .collaboration-inner > p { font-size: .72rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 32rem; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  address { flex-basis: auto; }
}

@media (max-width: 31rem) {
  .collaboration-inner { justify-content: space-between; }
  .collaboration-equals { display: none; }
  .collaboration-inner > p { flex: 0 0 100%; text-align: center; }
  .header-inner { align-items: flex-start; justify-content: center; flex-direction: column; gap: 0; padding-top: .65rem; }
  nav { gap: 1.3rem; }
  h1 { font-size: clamp(2.65rem, 10.5vw, 3.65rem); }
  .game-grid { grid-template-columns: 1fr; }
}

@media (max-width: 23rem) {
  .feature-grid { grid-template-columns: 1fr; }
}
