:root {
  --gt-white: #ffffff;
  --gt-neutral: #f7f7f8;
  --gt-rule: #d7dde5;
  --gt-rule-soft: #eceff3;
  --gt-ink: #111827;
  --gt-muted: #5b6573;
  --gt-accent: #005bbb;
  --gt-green: #00876d;
  --gt-radius: 6px;
  --gt-transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(215, 221, 229, 0.34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(215, 221, 229, 0.34) 1px, transparent 1px),
    var(--gt-white);
  background-size: 72px 72px;
  color: var(--gt-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--gt-ink);
  color: var(--gt-white);
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--gt-rule);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--gt-ink);
  font-weight: 800;
}

.brand__mark-image {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
}

.brand__name {
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
  letter-spacing: 0;
}

.primary-nav {
  justify-self: end;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--gt-rule);
}

.primary-nav a {
  display: inline-flex;
  min-height: 76px;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid var(--gt-rule);
  color: var(--gt-muted);
  font-size: 0.92rem;
  font-weight: 760;
  transition: color var(--gt-transition), background var(--gt-transition);
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--gt-ink);
  background: var(--gt-neutral);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gt-rule);
  border-radius: var(--gt-radius);
  background: var(--gt-white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle__line {
  width: 20px;
  height: 2px;
  background: var(--gt-ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gt-rule);
  background: var(--gt-white);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9) 34%, rgba(255, 255, 255, 0.44) 62%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(247, 247, 248, 0.44));
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 106px 0 124px;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--gt-ink);
  font-size: clamp(2.8rem, 5.75vw, 5.35rem);
  font-weight: 860;
  line-height: 0.96;
  letter-spacing: 0;
  hyphens: none;
  overflow-wrap: normal;
}

.hero__lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--gt-muted);
  font-size: clamp(1.05rem, 1.75vw, 1.28rem);
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--gt-accent);
  font-size: 0.76rem;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__actions,
.site-footer__links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--gt-ink);
  border-radius: var(--gt-radius);
  font-weight: 820;
  line-height: 1.2;
  transition: background var(--gt-transition), color var(--gt-transition), transform var(--gt-transition), border-color var(--gt-transition);
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
  outline: none;
}

.button--primary {
  background: var(--gt-ink);
  color: var(--gt-white);
}

.button--primary:hover,
.button--primary:focus {
  background: var(--gt-accent);
  border-color: var(--gt-accent);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--gt-ink);
}

.button--secondary:hover,
.button--secondary:focus {
  background: var(--gt-neutral);
}

.section,
.expertise-band {
  padding: 96px 0;
  border-bottom: 1px solid var(--gt-rule);
}

.section {
  background: rgba(255, 255, 255, 0.86);
}

.section--compact {
  padding: 82px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--gt-ink);
}

.section-heading h2,
.expertise-band h2,
.identity-grid h2,
.office-block h2,
.prose h1 {
  margin: 0;
  color: var(--gt-ink);
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 840;
  line-height: 1.04;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--gt-rule);
  border-left: 1px solid var(--gt-rule);
}

.service-card {
  min-height: 320px;
  padding: 30px;
  border-right: 1px solid var(--gt-rule);
  border-bottom: 1px solid var(--gt-rule);
  background: rgba(255, 255, 255, 0.9);
  transition: background var(--gt-transition), transform var(--gt-transition);
}

.service-card:hover {
  background: var(--gt-neutral);
  transform: translateY(-2px);
}

.service-card__icon {
  display: inline-flex;
  min-width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin-bottom: 46px;
  border: 1px solid var(--gt-accent);
  color: var(--gt-accent);
  font-weight: 860;
  font-variant-numeric: tabular-nums;
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--gt-ink);
  font-size: 1.34rem;
  line-height: 1.14;
}

.service-card p,
.page-hero p,
.identity-grid p,
.expertise-band p,
.office-block p,
.prose p {
  color: var(--gt-muted);
}

.metrics {
  padding: 0;
  border-bottom: 1px solid var(--gt-rule);
  background: var(--gt-white);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--gt-rule);
}

.metrics__grid div {
  min-height: 178px;
  padding: 32px;
  border-right: 1px solid var(--gt-rule);
  background: rgba(255, 255, 255, 0.88);
}

.metrics strong {
  display: block;
  color: var(--gt-ink);
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  font-weight: 840;
  line-height: 1.02;
}

.metrics span {
  display: block;
  margin-top: 14px;
  color: var(--gt-muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 126px 0 94px;
  border-bottom: 1px solid var(--gt-rule);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9) 48%, rgba(247, 247, 248, 0.74)),
    var(--gt-neutral);
  color: var(--gt-ink);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--gt-ink);
  opacity: 0.18;
}

.page-hero--identity {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0.35)),
    url("../images/gametree-imagegen-hero.png") center / cover;
}

.page-hero p {
  max-width: 730px;
  margin: 24px 0 0;
  color: var(--gt-muted);
  font-size: 1.1rem;
}

.expertise-band {
  background: rgba(255, 255, 255, 0.92);
}

.expertise-band:nth-of-type(odd) {
  background: rgba(247, 247, 248, 0.92);
}

.expertise-band__grid,
.identity-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 58px;
  align-items: center;
}

.expertise-band--reverse .expertise-band__image {
  order: 2;
}

.expertise-band__image {
  overflow: hidden;
  border: 1px solid var(--gt-rule);
  border-radius: var(--gt-radius);
  background: var(--gt-neutral);
}

.expertise-band__image img {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.expertise-band__content {
  padding-top: 22px;
  border-top: 1px solid var(--gt-ink);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--gt-ink);
  font-weight: 760;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 16px;
  height: 2px;
  background: var(--gt-green);
}

.identity-section,
.contact-section {
  background: rgba(247, 247, 248, 0.88);
}

.identity-panel,
.office-block,
.contact-form {
  border: 1px solid var(--gt-rule);
  border-radius: var(--gt-radius);
  background: rgba(255, 255, 255, 0.92);
}

.identity-panel {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr);
  gap: 0;
}

.identity-panel span,
.identity-panel strong {
  min-height: 64px;
  padding: 18px;
  border-bottom: 1px solid var(--gt-rule);
}

.identity-panel span {
  color: var(--gt-muted);
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: uppercase;
}

.identity-panel strong {
  color: var(--gt-ink);
  font-size: 1rem;
}

.identity-panel span:nth-last-child(-n+2),
.identity-panel strong:nth-last-child(-n+1) {
  border-bottom: 0;
}

.office-block,
.contact-form {
  align-self: stretch;
  padding: 34px;
}

address {
  margin: 22px 0;
  color: var(--gt-ink);
  font-size: 1.14rem;
  font-style: normal;
  font-weight: 820;
  line-height: 1.48;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--gt-ink);
  font-weight: 820;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--gt-rule);
  border-radius: var(--gt-radius);
  padding: 13px 14px;
  background: var(--gt-white);
  color: var(--gt-ink);
  font: inherit;
  transition: border-color var(--gt-transition), box-shadow var(--gt-transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gt-accent);
  box-shadow: 0 0 0 3px rgba(0, 91, 187, 0.12);
  outline: none;
}

.form-notice {
  padding: 12px 14px;
  border: 1px solid #b91c1c;
  border-radius: var(--gt-radius);
  background: #fff5f5;
  color: #991b1b;
  font-weight: 820;
}

.form-notice--success {
  border-color: var(--gt-green);
  background: #f0fdfa;
  color: #065f46;
}

.prose {
  max-width: 850px;
}

.site-footer {
  border-top: 1px solid var(--gt-rule);
  background: var(--gt-white);
}

.site-footer__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 154px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--gt-muted);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.site-footer__brand img {
  width: 118px;
  flex: 0 0 118px;
}

.site-footer__brand p {
  max-width: 560px;
  margin: 0;
}

.site-footer a {
  color: var(--gt-ink);
  font-weight: 820;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--gt-accent);
  outline: none;
}

@media (max-width: 920px) {
  .container,
  .site-footer__inner {
    width: min(100% - 28px, 720px);
  }

  .site-header__inner {
    width: calc(100% - 24px);
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand__mark-image {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand__name {
    max-width: 220px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: none;
    padding: 0;
    border: 1px solid var(--gt-rule);
    background: rgba(255, 255, 255, 0.98);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav__list {
    display: grid;
    border-left: 0;
  }

  .primary-nav a {
    width: 100%;
    min-height: 50px;
    border-right: 0;
    border-bottom: 1px solid var(--gt-rule);
  }

  .primary-nav li:last-child a {
    border-bottom: 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86) 62%, rgba(255, 255, 255, 0.62)),
      linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  }

  .hero__media img {
    object-position: center right;
  }

  .hero__content {
    padding: 78px 0 92px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.45rem, 11vw, 4.2rem);
  }

  .section,
  .expertise-band {
    padding: 68px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .service-grid,
  .metrics__grid,
  .expertise-band__grid,
  .identity-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .expertise-band__grid,
  .identity-grid,
  .contact-grid {
    gap: 34px;
  }

  .expertise-band--reverse .expertise-band__image {
    order: 0;
  }

  .service-card {
    min-height: 0;
  }

  .page-hero {
    padding: 86px 0 68px;
  }

  .site-footer__inner,
  .site-footer__brand {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    background-size: 48px 48px;
  }

  .brand__name {
    max-width: 178px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 620px;
  }

  .button {
    width: 100%;
  }

  .office-block,
  .contact-form,
  .service-card {
    padding: 24px;
  }

  .identity-panel {
    grid-template-columns: 1fr;
  }

  .identity-panel span {
    min-height: 0;
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .identity-panel strong {
    min-height: 0;
    padding-top: 0;
  }
}
