@font-face {
  font-family: "Roboto Condensed";
  src: url("fonts/roboto-condensed-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f0e4;
  --paper-2: #efe6d6;
  --ink: #1b120d;
  --ink-2: #261a13;
  --ink-soft: #3a2d25;
  --muted: #6e5e52;
  --muted-on-ink: #b8a998;
  --rule: #d9cbb8;
  --rule-on-ink: #45352b;
  --accent: #c05b33;
  --accent-ink: #8e3f1f;
  --accent-on-ink: #e07a50;
  --display: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 144px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 20;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Shared type */

.index {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-copy > .index {
  justify-self: stretch;
  margin-bottom: 0;
}

.index-n {
  color: var(--accent-ink);
  letter-spacing: 0.08em;
}

.title {
  font-size: clamp(40px, 6.2vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.005em;
}

.lead {
  max-width: 46ch;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover {
  background: var(--accent-ink);
}

.btn--paper {
  background: var(--paper);
  color: var(--ink);
}

.btn--paper:hover {
  background: var(--accent-on-ink);
}

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 220ms var(--ease-out), color 160ms ease;
}

.link-arrow::after {
  content: "→";
  transition: transform 220ms var(--ease-out);
}

.link-arrow[href^="http"]::after {
  content: "↗";
}

.link-arrow:hover {
  color: var(--accent-ink);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.link-arrow[href^="http"]:hover::after {
  transform: translate(2px, -2px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--ink);
  flex: none;
}

.brand-mark img {
  width: 27px;
}

.brand-type {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.brand-type span {
  margin-top: 5px;
  margin-left: 1px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--accent-ink);
}

.site-footer .brand-type span {
  color: var(--accent-on-ink);
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 8px 0;
  text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat;
  transition: background-size 220ms var(--ease-out);
}

.site-nav a:hover {
  background-size: 100% 1px;
}

.site-nav a[aria-current="page"] {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px;
}

.header-cta {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

/* Home: hero */

.hero {
  padding-top: clamp(40px, 7vw, 88px);
}

.hero-title {
  font-size: clamp(44px, 8.2vw, 118px);
  line-height: 0.92;
  letter-spacing: -0.012em;
}

.hero-title .line {
  display: block;
}

.hero-title .line--accent {
  color: var(--accent);
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* Home: contact sheet */

.sheet {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  background: var(--ink);
  border-block: 2px solid var(--ink);
}

.tile {
  position: relative;
  display: block;
  height: clamp(260px, 26vw, 400px);
  overflow: hidden;
  color: var(--paper);
  text-decoration: none;
  background: var(--ink-2);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, rgb(27 18 13 / 0), rgb(27 18 13 / 0.5));
}

.tile-cap {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 16px clamp(14px, 1.6vw, 22px) 18px;
  background: var(--ink);
}

.tile-n {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-on-ink);
}

.tile-name {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.tile-kind {
  font-size: 14px;
  line-height: 1.4;
  color: var(--paper-2);
}

.tile:hover img {
  transform: scale(1.06);
}

.tile:focus-visible {
  outline-offset: -4px;
  outline-color: var(--paper);
}

/* Sections */

.section {
  padding-block: var(--section-y);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 112px);
  align-items: start;
}

.split--media-first {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.section-copy {
  display: grid;
  justify-items: start;
  gap: clamp(18px, 2vw, 26px);
}

/* Home: games */

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

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.row-name {
  font-family: var(--display);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.row-arrow {
  grid-row: span 2;
  align-self: center;
  font-size: 22px;
  color: var(--muted);
  transition: transform 220ms var(--ease-out), color 160ms ease;
}

.row-desc {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  color: var(--ink-soft);
}

.row-meta {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  overflow-wrap: anywhere;
}

a.row:hover .row-name {
  color: var(--accent-ink);
}

a.row:hover .row-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* Home: Trucoshi band */

.band {
  position: relative;
  height: clamp(420px, 56vw, 760px);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(27 18 13 / 0.78), rgb(27 18 13 / 0.2) 60%, rgb(27 18 13 / 0));
}

.band-cap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 24px;
  padding-bottom: clamp(36px, 5vw, 72px);
}

.band-line {
  font-family: var(--display);
  font-size: clamp(48px, 8.4vw, 124px);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.band-cap .link-arrow:hover {
  color: var(--accent-on-ink);
}

/* Ink sections */

.on-ink {
  background: var(--ink);
  color: var(--paper);
}

.on-ink .index {
  border-top-color: var(--rule-on-ink);
  color: var(--muted-on-ink);
}

.on-ink .index-n {
  color: var(--accent-on-ink);
}

.on-ink .lead {
  color: var(--paper-2);
}

.on-ink .link-arrow:hover {
  color: var(--accent-on-ink);
}

/* Home: software */

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-on-ink);
}

.status--paper {
  color: var(--muted);
}

.status--paper::before {
  background: var(--accent-ink);
}

.queue {
  width: 100%;
  margin-top: clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--rule-on-ink);
}

.queue dt {
  padding: 16px 0 6px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
}

.queue dd {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-on-ink);
  color: var(--paper-2);
}

.queue strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
}

.shot {
  border: 1px solid var(--rule-on-ink);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0a;
}

.shot--paper {
  border-color: var(--rule);
  background: var(--paper-2);
}

/* Home and trabajos: trades */

.trades {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px);
}

.trades li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.trades h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
}

.trades p {
  color: var(--ink-soft);
}

/* Contact */

.contact {
  container-type: inline-size;
  background: var(--accent);
  color: var(--ink);
}

.contact .wrap {
  padding-block: clamp(56px, 9vw, 128px);
}

.contact-title {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
}

.contact-mail {
  display: inline-block;
  margin-top: clamp(12px, 2vw, 24px);
  font-family: var(--display);
  font-size: clamp(36px, 11.4vw, 164px);
  font-size: min(11.4cqi, 164px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 0.06em no-repeat;
  padding-bottom: 0.06em;
  transition: background-size 320ms var(--ease-out);
}

.contact-mail:hover {
  background-size: 100% 0.06em;
}

.contact-mail:focus-visible {
  outline-color: var(--ink);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 56px);
  padding-block: clamp(56px, 7vw, 88px) 40px;
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.footer-brand .brand-mark {
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--rule-on-ink);
}

.footer-brand p {
  max-width: 28ch;
  color: var(--muted-on-ink);
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted-on-ink);
}

.footer-col li + li {
  margin-top: 6px;
}

.footer-col a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 220ms var(--ease-out), color 160ms ease;
}

.footer-col a:hover {
  color: var(--accent-on-ink);
  background-size: 100% 1px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 32px;
  border-top: 1px solid var(--rule-on-ink);
  font-size: 14px;
  color: var(--muted-on-ink);
}

/* Interior pages */

.page-head {
  padding-block: clamp(48px, 8vw, 112px) clamp(48px, 6vw, 80px);
}

.page-title {
  max-width: 14ch;
  font-size: clamp(46px, 8.6vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.01em;
}

.page-head .lead {
  margin-top: clamp(20px, 3vw, 32px);
}

.page-head .actions {
  margin-top: clamp(24px, 3vw, 36px);
}

/* Trabajos: offer */

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

.offer > li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px clamp(36px, 6vw, 112px);
  padding-block: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
}

.offer-head {
  display: grid;
  gap: 8px;
}

.offer-n {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.offer h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
}

.offer-body {
  display: grid;
  gap: 18px;
}

.offer-body > p {
  font-size: 18px;
  color: var(--ink-soft);
}

.ticks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.ticks li {
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--rule);
  position: relative;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

/* Trabajos: process */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 72px);
}

.steps li {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-on-ink);
}

.steps-n {
  font-family: var(--display);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.8;
  color: var(--accent-on-ink);
}

.steps h3 {
  font-size: 24px;
  line-height: 1.05;
}

.steps p {
  color: var(--paper-2);
}

.basics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--ink);
}

.basics li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.2;
}

/* Trabajos: proof */

.proof {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.proof-media {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.proof-media img {
  width: 100%;
  height: clamp(220px, 26vw, 380px);
  object-fit: cover;
}

/* Legal */

.legal {
  border-top: 1px solid var(--ink);
  margin-bottom: var(--section-y);
}

.legal > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 8px clamp(24px, 5vw, 96px);
  padding-block: 24px;
  border-bottom: 1px solid var(--rule);
}

.legal dt {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.legal dd {
  display: grid;
  gap: 10px;
  max-width: 62ch;
}

.legal dd a,
.offer-body a {
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

.legal dd a:hover,
.offer-body a:hover {
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-title .line,
  .hero-foot,
  .page-head > * {
    animation: rise 900ms var(--ease-out) both;
  }

  .hero-title .line:nth-child(2) {
    animation-delay: 90ms;
  }

  .hero-title .line:nth-child(3) {
    animation-delay: 180ms;
  }

  .hero-foot {
    animation-delay: 300ms;
  }

  .page-head > :nth-child(2) {
    animation-delay: 80ms;
  }

  .page-head > :nth-child(n + 3) {
    animation-delay: 180ms;
  }

  .sheet li {
    animation: develop 1100ms var(--ease-out) both;
  }

  .sheet li:nth-child(2) {
    animation-delay: 80ms;
  }

  .sheet li:nth-child(3) {
    animation-delay: 160ms;
  }

  .sheet li:nth-child(4) {
    animation-delay: 240ms;
  }

  .sheet li:nth-child(5) {
    animation-delay: 320ms;
  }

  @supports (animation-timeline: view()) {
    .band img {
      animation: drift linear both;
      animation-timeline: view();
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
}

@keyframes develop {
  from {
    opacity: 0;
    filter: sepia(1) brightness(0.4);
  }
}

@keyframes drift {
  from {
    transform: scale(1.14) translateY(-5%);
  }

  to {
    transform: scale(1.14) translateY(5%);
  }
}

/* Responsive */

@media (max-width: 1080px) {
  .sheet {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .sheet li {
    grid-column: span 2;
  }

  .sheet li:nth-child(n + 4) {
    grid-column: span 3;
  }

  .trades,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trades {
    row-gap: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 112px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 12px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 24px;
    margin-top: 8px;
    padding-block: 4px 6px;
    border-top: 1px solid var(--rule);
  }

  .split,
  .split--media-first,
  .offer > li,
  .proof,
  .legal > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--media-first .shot,
  .proof-media {
    order: 2;
  }
}

@media (max-width: 600px) {
  .sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet li,
  .sheet li:nth-child(n + 4) {
    grid-column: auto;
  }

  .sheet li:last-child {
    grid-column: 1 / -1;
  }

  .tile {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .sheet li:last-child .tile {
    aspect-ratio: 2 / 1;
  }

  .sheet li:last-child img {
    object-position: 50% 20%;
  }

  .tile-kind {
    font-size: 13px;
  }

  .trades,
  .steps,
  .ticks,
  .basics {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .brand-type {
    font-size: 17px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .brand-mark img {
    width: 24px;
  }

  .header-cta {
    padding: 0 14px;
  }
}
