@font-face {
  font-family: "TASA Orbiter";
  src: url("assets/fonts/tasa-orbiter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f8f8f8;
  --ink: #121a2b;
  --muted: #69748f;
  --blue: #0856f8;
  --line: #dbe2ef;
  --tint: #f0f5ff;
  --gutter: clamp(24px, 5.2vw, 80px);
  font-family: "TASA Orbiter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  scrollbar-color: #a5b4d0 var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; background: var(--paper); font-size: 17px; line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: #c9dcff; color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 16px; background: var(--blue); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.masthead { height: 72px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; width: 42px; height: 44px; align-items: center; text-decoration: none; }
.brand-mark { display: block; width: 34px; height: 34px; background: var(--blue); -webkit-mask: url("assets/mons-games-mark.png") center / contain no-repeat; mask: url("assets/mons-games-mark.png") center / contain no-repeat; }
.masthead nav { display: flex; align-items: center; gap: 40px; }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 500; line-height: 1; text-decoration: none; text-transform: uppercase; }
.masthead nav a:hover { color: var(--blue); }
.menu-toggle { display: none; }

.hero { min-height: 340px; padding: 40px var(--gutter) 26px; text-align: center; }
.hero h1 { margin-top: 44px; font-size: clamp(70px, 7vw, 107px); font-weight: 700; line-height: 1; letter-spacing: -.025em; }
.hero-intro { margin-top: 8px; color: var(--muted); font-size: 30px; line-height: 1.23; letter-spacing: -.02em; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 36px; margin-top: 28px; }
.hero-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 54px; font-size: 21px; font-weight: 500; line-height: 1; text-decoration: none; }
.hero-actions svg { width: 20px; height: 20px; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.hero-actions a:hover svg, .hero-actions a:focus-visible svg { transform: translateX(5px); }
.button-primary { padding: 0 31px; border-radius: 5px; background: var(--blue); color: #fff; }
.button-primary:hover { background: #064bd9; }
.button-text { color: var(--blue); }
.button-text:hover { text-decoration: underline; }

.selected-work { padding: 22px var(--gutter) 0; }
.section-label { color: #61708d; font-size: 15px; font-weight: 500; line-height: 20px; letter-spacing: .23em; text-transform: uppercase; }
.project-index { margin-top: 18px; border-top: 1px solid var(--line); }
.project-row { min-height: 140px; display: grid; grid-template-columns: 140px minmax(0, 1fr) 42px; align-items: center; gap: 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .35s cubic-bezier(.16,1,.3,1); }
.project-number { color: var(--muted); font-size: 31px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; transform: translateY(-20px); }
.project-row:nth-child(2) .project-number { transform: translateY(-26px); }
.project-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.project-name { font-size: 46px; font-weight: 700; line-height: 1.05; letter-spacing: -.025em; transition: color .35s cubic-bezier(.16,1,.3,1); }
.project-description { color: var(--muted); font-size: 23px; line-height: 1.3; }
.project-arrow { width: 32px; height: 32px; color: var(--blue); justify-self: end; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.project-row:hover, .project-row:focus-visible { background: #f3f7ff; }
.project-row:hover .project-arrow, .project-row:focus-visible .project-arrow { transform: translateX(5px); }
.project-row:hover .project-name { color: var(--blue); }

.practice { padding: 36px var(--gutter) 34px; }
.practice .section-label { letter-spacing: .14em; }
.practice-grid { display: grid; grid-template-columns: 1fr 1.16fr 1fr; margin-top: 18px; }
.practice-item { min-height: 170px; padding: 14px 40px 0 0; }
.practice-item h3 { max-width: 330px; font-size: 29px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.practice-item p { max-width: 360px; margin-top: 11px; color: var(--muted); font-size: 20px; line-height: 1.35; }
.practice-item--vita, .practice-item--ai { border-left: 1px solid var(--line); }
.practice-item--vita { position: relative; z-index: 0; padding-left: 65px; padding-right: 54px; }
.practice-item--vita::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 33px; right: 30px; border-radius: 6px; background: var(--tint); }
.practice-item--vita h3 { color: var(--blue); }
.practice-item--ai { padding-left: 50px; padding-right: 0; }
.practice-note { max-width: 830px; margin: 42px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }

.studio-detail, .contact { padding: 80px var(--gutter) 90px; }
.studio-detail { border-top: 1px solid var(--line); }
.studio-detail-layout, .contact-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 130px); }
.studio-detail h2, .contact h2 { font-size: clamp(54px, 6vw, 82px); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; }
.studio-detail-copy { max-width: 650px; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; }
.studio-detail-copy p + p { margin-top: 20px; }
.inline-link { display: inline-flex; align-items: center; gap: 13px; min-height: 48px; margin-top: 28px; color: var(--blue); font-size: 20px; font-weight: 600; text-decoration: none; }
.inline-link svg, .contact-email svg { width: 22px; height: 22px; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.inline-link:hover svg, .inline-link:focus-visible svg, .contact-email:hover svg, .contact-email:focus-visible svg { transform: translateX(5px); }
.inline-link:hover, .contact-email:hover { text-decoration: underline; }
.contact { background: var(--tint); }
.contact-copy { max-width: 650px; }
.contact-copy p { color: #475a7a; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; }
.contact-email { display: inline-flex; align-items: center; gap: 16px; min-height: 54px; margin-top: 24px; color: var(--blue); font-size: clamp(21px, 2.35vw, 32px); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding: 30px var(--gutter); border-top: 1px solid var(--line); font-size: 14px; }
.footer-name { font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; column-gap: 24px; row-gap: 4px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: #526382; text-decoration: none; }
.footer nav a:hover { color: var(--blue); text-decoration: underline; }

@media (min-width: 1200px) and (max-width: 1535px) {
  .masthead { height: calc(4.6875vw - 8px); }
  .hero { min-height: 22.1354vw; padding-top: 2.6042vw; padding-bottom: 1.6927vw; }
  .selected-work { padding-top: 1.4323vw; }
  .project-index { margin-top: 1.1719vw; }
  .project-row { min-height: 9.1146vw; }
  .project-number { font-size: 2.0182vw; }
  .project-name { font-size: 2.9948vw; }
  .project-description { font-size: 1.4974vw; }
  .practice { padding-top: 2.3438vw; }
  .practice-grid { margin-top: 1.1719vw; }
  .practice-item { min-height: 11.0677vw; }
  .practice-item h3 { font-size: 1.888vw; line-height: 1.05; }
  .practice-item p { margin-top: 7px; font-size: 1.3021vw; }
}

@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(68px, 7vw, 88px); }
  .hero-intro { font-size: 26px; }
  .project-row { grid-template-columns: 110px minmax(0, 1fr) 36px; }
  .project-name { font-size: 40px; }
  .project-description { font-size: 20px; }
  .practice-item { padding-right: 28px; }
  .practice-item h3 { font-size: 25px; }
  .practice-item p { font-size: 18px; }
  .practice-item--vita { padding-left: 36px; padding-right: 28px; }
  .practice-item--vita::before { left: 18px; right: 14px; }
  .practice-item--ai { padding-left: 30px; padding-right: 0; }
}

@media (max-width: 760px) {
  .masthead { height: 64px; }
  .masthead nav { gap: clamp(12px, 3vw, 22px); }
  .masthead nav a { font-size: 14px; }
  .brand { width: 38px; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { min-height: 0; padding-top: 54px; padding-bottom: 62px; }
  .hero h1 { margin-top: 40px; font-size: clamp(48px, 8.4vw, 68px); line-height: 1.03; text-wrap: balance; }
  .hero-intro { max-width: 570px; margin: 18px auto 0; font-size: 21px; line-height: 1.35; }
  .hero-actions { margin-top: 28px; gap: 20px; }
  .hero-actions a { min-height: 48px; font-size: 17px; }
  .button-primary { padding: 0 20px; }
  .selected-work { padding-top: 8px; }
  .project-row { grid-template-columns: 56px minmax(0, 1fr) 30px; min-height: 120px; gap: 6px; }
  .project-number { font-size: 22px; transform: none; }
  .project-row:nth-child(2) .project-number { transform: none; }
  .project-name { font-size: 31px; }
  .project-description { margin-top: 5px; font-size: 17px; }
  .project-arrow { width: 26px; height: 26px; }
  .practice { padding-top: 44px; padding-bottom: 56px; }
  .practice-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .practice-item { min-height: 0; padding: 22px 0 25px; border-top: 1px solid var(--line); }
  .practice-item h3 { max-width: 560px; font-size: 27px; }
  .practice-item p { max-width: 580px; margin-top: 8px; font-size: 18px; }
  .practice-item--vita { padding: 22px 22px 25px; border-left: 0; background: var(--tint); }
  .practice-item--vita::before { display: none; }
  .practice-item--ai { padding-left: 0; border-left: 0; }
  .practice-note { margin-top: 24px; font-size: 16px; }
  .studio-detail, .contact { padding-top: 64px; padding-bottom: 70px; }
  .studio-detail-layout, .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .studio-detail h2, .contact h2 { font-size: clamp(48px, 9vw, 70px); }
  .studio-detail-copy, .contact-copy p { font-size: 19px; }
  .contact-email { font-size: clamp(20px, 4.5vw, 28px); }
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer nav { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: clamp(47px, 12.4vw, 56px); }
  .hero-intro { font-size: 19px; }
  .project-row { grid-template-columns: 43px minmax(0, 1fr) 25px; min-height: 126px; }
  .project-name { font-size: 27px; }
  .project-description { font-size: 15px; }
  .project-arrow { width: 23px; height: 23px; }
  .footer nav { column-gap: 18px; }
}

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