:root {
  --bg: #101413; --panel: #181e1b; --line: #39433d; --text: #f7f8f0;
  --muted: #bfc6bf; --lime: #d0f165; --paper: #f2f2eb; --ink: #161c18;
  --max: 1264px;
}
body { font-family: Inter, "Helvetica Neue", Arial, sans-serif; }
.mast, .studio-foot { color: var(--text); background: #101412; }
.mast { position: relative; z-index: 4; border-bottom: 1px solid #303932; }
.mast-inner { min-height: 78px; display: flex; gap: 36px; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; letter-spacing: -.06em; font-weight: 750; line-height: 1; }
.wordmark b { font-weight: 450; }
.wordmark img { width: 48px; height: 48px; }
.wordmark:hover { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: clamp(16px,3vw,38px); margin-left: auto; font-weight: 540; font-size: 14px; }
.languages { position: relative; padding: 0; line-height: 1.2; }
.languages summary { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid #526156; border-radius: 5px; font-size: 13px; font-weight: 650; }
.languages summary::after { content: none; }
.languages > div { position: absolute; z-index: 8; right: 0; top: calc(100% + 6px); min-width: 150px; padding: 5px; border: 1px solid #526156; border-radius: 7px; background: #19201c; box-shadow: 0 10px 20px #0005; }
.languages a { display: flex; gap: 10px; align-items: center; padding: 10px; font-size: 14px; border-radius: 4px; }
.languages a[aria-current] { background: #313d2d; color: var(--lime); }
.languages a:hover { background: #343f37; }
.page-home { background: var(--paper); color: var(--ink); }
.studio-front { background: #f4f5ef; }
.front-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(32px,5vw,80px); align-items: center; padding-block: clamp(50px,6vw,92px); }
.front-copy .product-edition { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #425444; margin: 0 0 14px; font-weight: 650; }
.product-edition span { border-left: 1px solid #adb8a9; padding-left: 10px; font: 500 14px ui-monospace, monospace; }
.front-copy h1 { font-size: clamp(62px,6.6vw,104px); line-height: .98; letter-spacing: -.075em; font-weight: 620; margin: 0 0 22px; }
.front-intro { font-size: clamp(23px,2.15vw,34px); line-height: 1.17; letter-spacing: -.036em; max-width: 24ch; margin: 0 0 16px; }
.front-detail { font-size: clamp(16px,1.18vw,19px); line-height: 1.55; color: #4a564e; max-width: 50ch; margin: 0; }
.front-copy .actions { gap: 15px 24px; }
.front-copy .button.primary { background: #223a2b; color: #fff; border-color: #223a2b; }
.front-copy .text-link { border-color: #839282; }
.front-photo { margin: 0; border-radius: 9px; overflow: hidden; background: #1c2921; }
.front-photo img { width: 100%; height: clamp(310px,28vw,445px); object-fit: cover; object-position: 74% 58%; }
.front-photo figcaption { display: flex; align-items: center; justify-content: center; gap: clamp(8px,2.5vw,36px); color: #dbe4d6; font-size: 13px; padding: 12px; }
.front-photo figcaption span { padding-inline: clamp(8px,2.5vw,36px); border-inline: 1px solid #566557; }
.button { border-radius: 6px; }
.product-links { background: #22362b; color: white; }
.product-links .wrap { display: grid; grid-template-columns: repeat(3,1fr); }
.product-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px clamp(12px,2vw,32px); font-weight: 550; line-height: 1.4; }
.product-links a + a { border-left: 1px solid #526759; }
.product-links a span { color: var(--lime); }
.studio-projects { background: #fcfcf8; padding-block: clamp(40px,5vw,72px); }
.studio-projects h2 { font-size: clamp(30px,3vw,46px); margin-bottom: 28px; }
.work-section { display: grid; grid-template-columns: minmax(115px,.55fr) minmax(0,3fr); gap: 18px; padding-block: 25px; border-top: 1px solid #ccd3c9; }
.work-section h3 { font-size: 19px; margin: 0; }
.work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.project,.habitat { display: grid; grid-template-columns: clamp(62px,6vw,92px) minmax(0,1fr); align-items: start; gap: 14px; }
.work-art,.habitat > img { width: 100%; height: 64px; border-radius: 6px; }
.work-art { display: flex; align-items: center; justify-content: center; }
.rmu-art { background: #3d1a24; }
.rmu-art img { width: 76%; }
.game-artwork { background: #253746; gap: 4px; }
.game-artwork img { width: 34%; }
.habitat > img { object-fit: cover; }
.work-copy h4 { font-size: 19px; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 5px; }
.work-copy p { color: #4d5a50; font-size: 14px; line-height: 1.55; margin: 0; max-width: 60ch; }
.habitat .text-link { display: inline-block; margin-top: 6px; }
.company-credit { display: grid; gap: 2px; }
.company-credit small { color: #bbc6bc; }
.studio-foot > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.studio-foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.catalog { padding-block: clamp(40px,5vw,80px); background: var(--paper); color: var(--ink); }
.catalog-layout { display: grid; grid-template-columns: minmax(170px,.76fr) 3fr; gap: clamp(25px,4vw,55px); align-items: start; }
.catalog-index { position: sticky; top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 14px; }
.catalog-index a { color: #324735; border-bottom: 1px solid #a8b4a4; }
.catalog-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.catalog .feature { border: 1px solid #cbd3c8; background: #fcfcf7; padding: clamp(18px,2vw,28px); border-radius: 8px; scroll-margin-top: 20px; }
.catalog .feature h3 { font-size: clamp(20px,2vw,26px); letter-spacing: -.035em; }
.catalog .feature li { color: #35443a; padding-left: 1px; line-height: 1.55; }
.catalog .feature li::marker { color: #4f701c; }
.catalog .feature ul { margin-bottom: 0; }
.catalog :focus-visible, .work-section :focus-visible { outline-color: #416314; }
.offer .payment p { margin: .4em 0 0; }
#license { white-space: pre-wrap; overflow-wrap: anywhere; }
button[hidden] { display: none; }
@media (max-width: 850px) {
  .catalog-layout { display: block; }
  .catalog-index { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 22px; }
  .work-section { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .mast-inner { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding-block: 14px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; justify-content: space-between; gap: 10px; }
  .languages { grid-column: 2; grid-row: 1; }
  .wordmark { font-size: 21px; }
  .wordmark img { width: 36px; height: 36px; }
  .front-grid { grid-template-columns: 1fr; padding-block: 36px 24px; gap: 22px; }
  .front-copy h1 { margin-bottom: 16px; font-size: clamp(50px,10vw,74px); }
  .front-copy .actions { margin-top: 20px; }
  .front-photo img { height: clamp(175px,43vw,260px); }
  .front-photo figcaption { font-size: 12px; padding: 9px; }
  .product-links .wrap,.work-grid,.catalog-items { grid-template-columns: 1fr; }
  .product-links a { padding: 12px 0; }
  .product-links a + a { border-left: 0; border-top: 1px solid #526759; }
  .studio-foot > div { flex-wrap: wrap; }
}

.page-home .languages { margin-left: auto; }
.support-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px,5vw,80px); align-items: start; }
.support-grid h1 { font-size: clamp(40px,6vw,76px); }
.support-grid h2 { font-size: clamp(23px,3vw,32px); }
.support-card { padding: clamp(18px,3vw,32px); border: 1px solid var(--line); border-radius: 10px; }
.support-card form { display: grid; gap: 9px; }
.support-card form[hidden] { display: none; }
.support-card label { font-weight: 650; margin-top: 10px; }
.support-card input,.support-card textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid #78877d; border-radius: 5px; }
.support-card .button { justify-self: start; }
@media(max-width: 760px) { .support-grid { grid-template-columns: 1fr; } }
