:root {
  --ink: #101113;
  --paper: #f5f6f4;
  --white: #ffffff;
  --line: #c7cbc7;
  --muted: #5d625f;
  --red: #ef4938;
  --green: #4eb879;
  --blue: #4a84e8;
  --yellow: #e6b72f;
  --shell: min(1240px, calc(100% - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body,
a {
  cursor: default;
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

a[href],
button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 760;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.brand-mark span {
  background: var(--ink);
}

.brand-mark span:nth-child(2) { background: var(--red); }
.brand-mark span:nth-child(3) { background: var(--blue); }
.brand-mark span:nth-child(4) { background: var(--green); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--ink);
}

.nav-contact::after {
  content: "\2197";
  margin-left: 6px;
}

.hero {
  position: relative;
  height: min(78svh, 760px);
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--ink);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  transform: scale(1.025);
  will-change: transform;
}

.hero-shade {
  z-index: -1;
  background: rgba(7, 8, 10, 0.44);
}

.hero-content {
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  padding: 58px 0 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: end;
}

.eyebrow,
.section-index,
.product-meta,
.product-open {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 720;
  text-transform: uppercase;
}

.eyebrow {
  grid-column: 1 / -1;
  align-self: start;
}

.hero h1 {
  grid-column: 1 / -1;
  align-self: end;
  font-size: 112px;
  line-height: 0.9;
  font-weight: 750;
  letter-spacing: 0;
}

.hero-copy {
  grid-column: 2;
  padding-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  font-size: 20px;
}

.hero-copy p {
  max-width: 480px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateY(3px);
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.intro {
  min-height: 600px;
  padding: 88px 0 104px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.section-index {
  color: var(--muted);
}

.intro-copy h2,
.products-heading h2,
.statement h2 {
  font-size: 58px;
  line-height: 1.03;
  font-weight: 690;
  letter-spacing: 0;
}

.intro-copy p {
  max-width: 650px;
  margin-top: 48px;
  font-size: 23px;
  line-height: 1.42;
}

.studio-facts {
  border-top: 1px solid var(--ink);
}

.studio-facts div {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.studio-facts dt {
  color: var(--muted);
}

.studio-facts dd {
  font-weight: 650;
}

.products {
  border-top: 1px solid var(--ink);
}

.products-heading {
  min-height: 310px;
  padding: 66px 0;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
}

.product {
  border-top: 1px solid var(--ink);
}

.product-link {
  width: var(--shell);
  min-height: 610px;
  margin: 0 auto;
  padding: 40px 0 34px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition: color 180ms ease;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
}

.product-number {
  color: var(--muted);
}

.product-body {
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-body h3 {
  font-size: 76px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0;
}

.product-body p {
  max-width: 470px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 19px;
}

.product-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.product-link:hover .product-visual img,
.product-link:focus-visible .product-visual img {
  transform: scale(1.035);
}

.product-open {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
}

.product-bytebot { background: #f7d4cf; }
.product-forge { background: #d6ecd9; }
.product-pixel { background: #d8e5fa; }
.product-moyu { background: #f1e3b1; }

.statement {
  min-height: 720px;
  padding: 34px 32px 76px;
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.statement-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #b9bdb9;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.statement-track i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--red);
}

.statement-track i:nth-of-type(2) { background: var(--green); }
.statement-track i:nth-of-type(3) { background: var(--blue); }

.statement-copy {
  width: var(--shell);
  margin: 0 auto;
  align-self: end;
}

.statement-copy p {
  margin-bottom: 24px;
  color: #b9bdb9;
}

.statement h2 {
  font-size: 76px;
}

.site-footer {
  min-height: 280px;
  padding: 48px 32px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  border-top: 1px solid var(--ink);
}

.site-footer > p,
.footer-links {
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.copyright {
  grid-column: 1 / -1;
  align-self: end;
  color: var(--muted);
}

.reveal {
  opacity: 0.88;
  transform: translateY(12px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  :root {
    --shell: min(100% - 40px, 820px);
  }

  .hero h1 {
    font-size: 82px;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .intro {
    grid-template-columns: 1fr 2fr;
  }

  .studio-facts {
    grid-column: 2;
    width: 100%;
    margin-top: 20px;
  }

  .product-link {
    min-height: 520px;
  }

  .product-body h3 {
    font-size: 58px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .site-header {
    min-height: 60px;
    padding: 0 16px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 20px;
    height: 20px;
  }

  .site-nav {
    gap: 16px;
    font-size: 12px;
  }

  .site-nav a:nth-child(2) {
    display: none;
  }

  .hero {
    height: 76svh;
    min-height: 520px;
  }

  .hero-content {
    padding: 32px 0 34px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-copy {
    padding-top: 24px;
    grid-template-columns: 1fr;
    gap: 18px;
    font-size: 17px;
  }

  .text-link {
    width: max-content;
  }

  .intro {
    min-height: 0;
    padding: 58px 0 68px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .intro-copy h2,
  .products-heading h2,
  .statement h2 {
    font-size: 38px;
  }

  .intro-copy p {
    margin-top: 30px;
    font-size: 18px;
  }

  .studio-facts {
    grid-column: 1;
    margin-top: 4px;
  }

  .products-heading {
    min-height: 230px;
    padding: 46px 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .product-link {
    min-height: 0;
    padding: 28px 0 26px;
  }

  .product-meta {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }

  .product-body {
    padding: 36px 0 42px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-body h3 {
    font-size: 48px;
  }

  .product-body p {
    margin-top: 18px;
    font-size: 17px;
  }

  .product-open {
    gap: 16px;
    overflow-wrap: anywhere;
  }

  .statement {
    min-height: 560px;
    padding: 24px 16px 48px;
  }

  .statement-track {
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
  }

  .statement h2 {
    font-size: 42px;
  }

  .site-footer {
    min-height: 320px;
    padding: 38px 16px 24px;
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > p:not(.copyright) {
    display: none;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-image,
  .product-visual img,
  .reveal {
    transition: none;
    transform: none;
  }
}
