/* ==========================================================================
   TRYHRD — Pro Gaming Training Rooms
   Monochrome + one red. Straight corners, hairline table borders, no shadows.
   ========================================================================== */

:root {
  --bg-light: #f4f4f4;
  --bg-dark: #101010;
  --text-on-light: #101010;
  --text-on-dark: #f4f4f4;
  --accent: #e10600;      /* accent-1 */
  --muted: #9a9a9a;       /* accent-2 */

  --line-light: #101010;  /* hairline on light bg */
  --line-dark: #f4f4f4;   /* hairline on dark bg */

  --font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Roboto", Arial, Helvetica, sans-serif;

  --radius: 0px;
  --border: 1px;

  --pad-section: clamp(72px, 12vw, 128px);
  --wrap: 1200px;
  --nav-h: 68px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.02; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px;
  font-weight: 700; letter-spacing: .04em;
}

.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  font-weight: 700;
}
.unit { font-size: .55em; letter-spacing: .06em; color: var(--muted); margin-left: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: var(--border) solid var(--line-light);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn--accent { background: var(--bg-dark); color: var(--text-on-dark); border-color: var(--bg-dark); }
.btn--accent:hover, .btn--accent:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--text-on-light); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--bg-dark); color: var(--text-on-dark); }

.section--dark .btn--ghost { color: var(--text-on-dark); border-color: var(--line-dark); }
.section--dark .btn--ghost:hover { background: var(--text-on-dark); color: var(--text-on-light); }

/* ==========================================================================
   NAV — nav-underline-bar
   ========================================================================== */
.nav--underline {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-light);
  border-bottom: var(--border) solid var(--line-light);
  transition: padding .25s ease, background-color .25s ease;
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 48px);
  display: flex; align-items: center; gap: 24px;
  transition: padding .25s ease;
}
.nav.is-scrolled .nav__inner { padding-top: 10px; padding-bottom: 10px; }
.nav__logo {
  font-family: var(--font-head); font-weight: 800;
  font-size: 22px; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 10px;
}
.logo-mark { flex: none; display: block; }
.nav__wordmark { display: inline-block; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  position: relative; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 500; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 10px 18px; }

/* ==========================================================================
   HERO — hero-diagonal-split + Split Beam Slide bg
   ========================================================================== */
.hero--diagonal {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--bg-light);
  padding-block: 64px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__beam {
  position: absolute; top: -20%; left: -30%;
  width: 45%; height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: rotate(12deg) translateX(-40vw);
  will-change: transform;
  animation: beam-intro 8s linear 1, beam-slide 24s linear 8s infinite;
}
@keyframes beam-intro { from { transform: rotate(12deg) translateX(-40vw); } to { transform: rotate(12deg) translateX(160vw); } }
@keyframes beam-slide { from { transform: rotate(12deg) translateX(-40vw); } to { transform: rotate(12deg) translateX(160vw); } }

.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__media {
  position: relative; margin: 0;
  border: var(--border) solid var(--line-light);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.hero__media img {
  width: 100%; height: 100%;
  aspect-ratio: 3 / 2; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .4s ease;
}
.hero__media:hover img { filter: grayscale(0) contrast(1.05); }

.hero__content {
  max-width: 560px;
  width: 100%;
}
.hero__eyebrow {
  font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(48px, 8vw, 104px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero__slogan {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: .02em; color: var(--accent);
  margin-bottom: 20px;
}
.hero__lede { max-width: 42ch; color: var(--text-on-light); margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   SECTION shells
   ========================================================================== */
.section { padding-block: var(--pad-section); }
.section--light { background: var(--bg-light); color: var(--text-on-light); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }

.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__index {
  font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: .18em; color: var(--muted);
  margin-bottom: 16px;
}
.section__title {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.01em; margin-bottom: 20px;
}
.section__title .accent {
  color: var(--accent);
  opacity: 0; transform: translateY(6px);
  display: inline-block;
  transition: opacity .4s ease .2s, transform .4s ease .2s;
}
.reveal.is-visible .section__title .accent,
.section__head.is-visible .section__title .accent { opacity: 1; transform: none; }
.section__sub { max-width: 60ch; color: var(--muted); font-size: 16px; }
.section--light .section__sub { color: #55565a; }

/* ==========================================================================
   ROOMS
   ========================================================================== */
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.room-card {
  position: relative;
  border: var(--border) solid var(--line-light);
  padding: 28px;
  background: var(--bg-light);
}
.room-card__num {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--font-head); font-weight: 800;
  font-size: 34px; color: var(--muted); opacity: .4;
  font-variant-numeric: tabular-nums;
}
.room-card__figure { margin: 0 0 22px; border: var(--border) solid var(--line-light); }
.room-card__figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .4s ease;
}
.room-card__figure:hover img,
.room-card__figure:focus-within img { filter: grayscale(0) contrast(1.05); }
.room-card__figure figcaption {
  font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px; border-top: var(--border) solid var(--line-light);
}
.room-card__title {
  font-weight: 700; text-transform: uppercase;
  font-size: 20px; letter-spacing: .02em; margin-bottom: 10px;
}
.room-card__text { color: #55565a; margin-bottom: 20px; }

.spec { display: block; border-top: var(--border) solid var(--line-light); }
.spec__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: var(--border) solid var(--line-light);
}
.spec__row dt {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.spec__row dd { margin: 0; font-size: 22px; }

/* ==========================================================================
   METHOD — numbered list (dark)
   ========================================================================== */
.method { border-top: var(--border) solid var(--line-dark); }
.method__item {
  display: flex; gap: clamp(20px, 4vw, 56px); align-items: flex-start;
  padding: 32px 0; border-bottom: var(--border) solid var(--line-dark);
}
.method__num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  font-variant-numeric: tabular-nums; color: var(--muted);
  min-width: 2.2ch;
  transform-origin: left center;
}
.reveal.is-visible .method__num.stamp { animation: stamp .4s ease both; }
@keyframes stamp {
  0% { transform: scale(1.15); filter: brightness(.4); }
  100% { transform: scale(1); filter: brightness(1); }
}
.method__body h3 {
  font-weight: 700; text-transform: uppercase; font-size: 22px;
  letter-spacing: .02em; margin-bottom: 8px; padding-top: 8px;
}
.method__body p { color: #c4c4c4; max-width: 60ch; margin: 0; }

/* ==========================================================================
   RATES — lined table
   ========================================================================== */
.rates { overflow-x: auto; }
.rate-table {
  width: 100%; border-collapse: collapse;
  border: var(--border) solid var(--line-light);
  min-width: 600px;
}
.rate-table thead th {
  background: var(--bg-dark); color: var(--text-on-dark);
  font-family: var(--font-head); font-weight: 700;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  text-align: left; padding: 14px 18px;
}
.rate-table thead th:last-child { text-align: right; }
.rate-table td, .rate-table tbody th {
  padding: 16px 18px; border-top: var(--border) solid var(--line-light);
  font-weight: 400; text-align: left; vertical-align: middle;
}
.rate-table tbody th {
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; font-size: 13px; letter-spacing: .04em;
  white-space: nowrap;
}
.rate-table td:last-child { text-align: right; font-size: 20px; white-space: nowrap; }
.rate-row { transition: background-color .2s ease, color .2s ease; }
.rate-row:hover { background: var(--bg-dark); color: var(--text-on-dark); }
.rate-row:hover .unit { color: #c4c4c4; }
.rates__note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ==========================================================================
   DISCIPLINE — zigzag (dark)
   ========================================================================== */
.discipline__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.discipline__text p { color: #c4c4c4; max-width: 48ch; }
.discipline__line {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px); color: var(--accent);
  margin-top: 24px; letter-spacing: .02em;
}
.discipline__figure { margin: 0; border: var(--border) solid var(--line-dark); }
.discipline__figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: grayscale(1) contrast(1.05); transition: filter .4s ease;
}
.discipline__figure:hover img { filter: grayscale(0) contrast(1.05); }
.discipline__figure figcaption {
  font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px;
  border-top: var(--border) solid var(--line-dark);
}

/* ==========================================================================
   FORM
   ========================================================================== */
.cta-form--centered .form { max-width: 520px; margin: 0 auto; }
.field { margin-bottom: 22px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.field input, .field select {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  color: var(--text-on-light); background: transparent;
  border: 0; border-bottom: var(--border) solid var(--line-light);
  border-radius: 0; padding: 10px 2px; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-on-light) 50%),
                    linear-gradient(135deg, var(--text-on-light) 50%, transparent 50%);
  background-position: right 8px center, right 3px center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus {
  outline: none; border-bottom-width: 2px; border-bottom-color: var(--accent);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { margin-top: 8px; }
.form__actions .btn { width: 100%; }
.form__status { margin-top: 16px; font-size: 14px; min-height: 1.2em; text-align: center; }
.form__status.success { color: #0a7d15; font-weight: 700; }
.form__status.error { color: var(--accent); font-weight: 700; }

/* ==========================================================================
   FOOTER — footer-link-columns
   ========================================================================== */
.footer--columns { background: var(--bg-dark); color: var(--text-on-dark); padding-top: 72px; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer__logo { font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 10px; }
.footer__slogan { color: var(--accent); font-family: var(--font-head); font-weight: 700; margin-top: 8px; }
.footer__col h4 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; font-weight: 700;
}
.footer__col a, .footer__col p { display: block; margin-bottom: 10px; color: #c4c4c4; }
.footer__col a { position: relative; transition: color .2s ease; }
.footer__col a:hover { color: var(--text-on-dark); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center;
  border-top: var(--border) solid var(--line-dark);
  padding-block: 24px 40px;
}
.footer__disclaimer {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: 14px; letter-spacing: .02em; color: var(--text-on-dark);
}
.footer__copy { margin: 0; font-size: 13px; color: var(--muted); }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding-block: 20px;
  border-top: var(--border) solid var(--line-dark);
}
.footer__legal a {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 500; color: #c4c4c4; transition: color .2s ease;
}
.footer__legal a:hover, .footer__legal a:focus-visible { color: var(--text-on-dark); }

/* ==========================================================================
   LEGAL pages
   ========================================================================== */
.legal { padding-block: clamp(56px, 9vw, 104px); }
.legal__inner { max-width: 760px; }
.legal__eyebrow {
  font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.legal h1 {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.01em; margin-bottom: 12px;
}
.legal__updated { color: var(--muted); font-size: 13px; margin-bottom: 40px; }
.legal h2 {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(18px, 2.4vw, 24px); letter-spacing: .02em;
  margin: 40px 0 12px; padding-top: 20px;
  border-top: var(--border) solid var(--line-light);
}
.legal p, .legal li { color: #55565a; max-width: 68ch; }
.legal ul { list-style: none; margin: 0 0 1em; }
.legal li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.legal li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 8px; height: 2px; background: var(--accent);
}
.legal__back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 48px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.legal__back::before { content: "←"; color: var(--accent); }
.legal__back:hover, .legal__back:focus-visible { color: var(--accent); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease-out, transform .55s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .discipline__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 44px); }
  .hero__media { clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%); order: -1; }
  .hero__content { max-width: 620px; }
}
@media (max-width: 768px) {
  .nav__links { gap: 18px; }
  .nav__cta { display: none; }
  .rooms { grid-template-columns: 1fr; }
  .hero--diagonal { background: var(--bg-light); min-height: 0; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
  .nav__links a { font-size: 12px; }
  .method__item { gap: 16px; }
}
@media (max-width: 480px) {
  .nav__logo { font-size: 19px; }
  .btn { padding: 12px 20px; }
}

/* ==========================================================================
   Reduced motion — kill all motion, content visible immediately
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__beam { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section__title .accent { opacity: 1 !important; transform: none !important; }
}
