:root {
  --ink: #121a20;
  --night: #111c24;
  --paper: #f2f1ed;
  --white: #fff;
  --ice: #b9d7e8;
  --yellow: #e1d45a;
  --muted: #65717a;
  --line: rgba(18, 26, 32, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
body::selection { color: var(--night); background: var(--yellow); }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 64px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, padding 180ms ease;
}
.site-header.is-scrolled {
  padding-block: 12px;
  color: var(--ink);
  background: rgba(242, 241, 237, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 0.78rem;
}
.brand-name { font-size: 0.9rem; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
.site-nav a { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; }
.site-nav a:hover, .site-nav a.is-active { color: var(--yellow); }
.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.is-active { color: #667000; }
.menu-toggle { display: none; border: 0; padding: 8px; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 4px 0; background: currentColor; }

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 88px) 64px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 12, 17, 0.88), rgba(6, 12, 17, 0.3) 52%, rgba(6, 12, 17, 0.08)),
    url("assets/kira-hero.png") center / cover no-repeat;
}
.hero::after {
  position: absolute;
  right: 5vw;
  bottom: 52px;
  width: min(18vw, 260px);
  height: 1px;
  background: var(--yellow);
  content: "";
}
.hero-copy { position: relative; z-index: 1; max-width: 800px; }
.eyebrow, .section-label {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.76;
}
.tagline { margin-bottom: 28px; color: rgba(255,255,255,0.82); font-size: clamp(1.1rem, 2vw, 1.5rem); }
.hero-note {
  position: absolute;
  right: clamp(20px, 6vw, 88px);
  bottom: 65px;
  z-index: 1;
  max-width: 300px;
  color: rgba(255,255,255,0.78);
  font-size: 0.8rem;
  font-weight: 750;
  text-align: right;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 12px 18px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--night); border-color: var(--white); background: var(--white); }
.button-dark { color: var(--white); border-color: var(--night); background: var(--night); }

.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); }
.stat-bar article { min-height: 126px; padding: 24px clamp(18px, 3vw, 44px); border-right: 1px solid var(--line); }
.stat-bar article:last-child { border-right: 0; }
.stat-bar span { display: block; margin-bottom: 26px; color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.stat-bar strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 3rem); font-weight: 400; line-height: 1; }

.section { padding: clamp(76px, 10vw, 140px) clamp(20px, 6vw, 88px); }
.section-label { color: #75820c; }
.profile { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(280px, 0.58fr); gap: clamp(28px, 6vw, 86px); align-items: start; }
.profile-copy .lead { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.18; }
.profile-copy > p:not(.lead), .section-heading p, .team p { max-width: 680px; color: var(--muted); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
dt { margin-bottom: 4px; color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
dd { margin: 0; font-weight: 700; }

.game { color: var(--white); background: var(--night); }
.game .section-label { color: var(--yellow); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr); gap: 30px; align-items: end; margin-bottom: 46px; }
h2 { margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6vw, 6rem); font-weight: 400; line-height: 0.92; }
.game .section-heading p { color: rgba(255,255,255,0.65); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,0.18); }
.game-grid article { min-height: 270px; padding: 28px; border-right: 1px solid rgba(255,255,255,0.18); }
.game-grid article:last-child { border-right: 0; }
.game-grid span { color: var(--yellow); font-size: 0.74rem; font-weight: 800; }
.game-grid h3 { margin: 90px 0 12px; font-size: 1.15rem; text-transform: uppercase; }
.game-grid p { color: rgba(255,255,255,0.65); }

.results { background: #e8edf0; }
.table-shell { overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
th, td { padding: 18px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; }
td { font-size: 0.92rem; font-weight: 650; }

.match-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 70px); align-items: start; }
.matches .table-shell { min-width: 0; }
.win, .loss { display: inline-grid; width: 28px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--white); font-size: 0.7rem; }
.win { background: #2f7568; }
.loss { background: #a54a45; }
.money-card { padding: 30px; color: var(--white); background: var(--night); }
.money-card > p { margin-bottom: 4px; color: var(--ice); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; }
.money-card > strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 400; line-height: 1; }
.money-card > span { color: rgba(255,255,255,0.6); font-size: 0.78rem; }
.money-card dl { margin: 32px 0 0; }
.money-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.18); }
.money-card dt { color: rgba(255,255,255,0.55); }
.money-card dd { font-size: 0.84rem; }

.team { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: clamp(26px, 5vw, 72px); align-items: center; background: var(--yellow); }
.team .section-label { color: var(--ink); }
.team h2 { font-size: clamp(2.4rem, 5vw, 5rem); }
.team p { margin: 18px 0 0; color: rgba(18,26,32,0.72); }
footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding: 28px clamp(20px, 6vw, 88px); color: rgba(255,255,255,0.58); background: #0a1116; font-size: 0.75rem; }
footer p { margin: 0; }
footer p:first-child { max-width: 820px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; z-index: 2; }
  .site-nav { position: absolute; top: 100%; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; color: var(--ink); background: var(--white); border: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 12px; }
  .hero-note { display: none; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-bar article:nth-child(2) { border-right: 0; }
  .stat-bar article { border-bottom: 1px solid var(--line); }
  .profile { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .game-grid { grid-template-columns: 1fr; }
  .game-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
  .game-grid h3 { margin-top: 34px; }
  .match-layout { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; align-items: start; }
  .team .button { justify-self: start; }
}

@media (max-width: 560px) {
  .brand-name { display: none; }
  .hero { min-height: 78svh; background-position: 62% center; }
  .stat-bar strong { font-size: 1.45rem; }
  .section { padding-block: 68px; }
  footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
