:root {
  --paper: #ffffff;
  --ink: #111111;
  --grey: #6e6e6e;
  --rule: #111111;
  --hair: #dcdcdc;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; }

.wrap { padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 40px; padding-right: 40px; } }

/* Masthead */
.masthead { padding-top: 20px; padding-bottom: 48px; }

.links { display: flex; justify-content: flex-end; gap: 24px; font-size: 15px; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.name {
  margin-top: clamp(48px, 10vw, 120px);
  font-size: clamp(64px, 17vw, 260px);
  font-weight: 800;
  font-stretch: 68%;
  line-height: 0.84;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.intro {
  display: grid; gap: 20px;
  margin-top: 36px; padding-top: 16px;
  border-top: 2px solid var(--rule);
}
@media (min-width: 820px) {
  .intro { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.intro__role { font-size: 20px; font-weight: 600; line-height: 1.3; }
.intro__role span { font-weight: 400; color: var(--grey); }
.intro__text { font-size: 20px; line-height: 1.45; max-width: 34em; }

/* Projects */
.project { position: relative; background: #222; }
.project__img {
  display: block; width: 100%;
  aspect-ratio: 16 / 10; object-fit: cover;
}
.project__label {
  background: var(--paper);
  padding: 20px 16px 28px;
}
.project__studio { font-size: 14px; color: var(--grey); }
.project__position { color: var(--ink); font-weight: 600; }
.project__position::before { content: "·"; margin: 0 8px; color: var(--grey); font-weight: 400; }
.project__title {
  margin-top: 4px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 0.95;
  text-transform: uppercase;
}
.project__text { margin-top: 14px; }
.project__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.project__link i { font-size: 18px; }
.project__link:hover { color: #3c3c3c; }

.platforms {
  position: absolute; top: 12px; left: 16px; z-index: 1;
  display: flex; align-items: stretch; gap: 18px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.platforms ul { list-style: none; margin: 0; padding: 0; display: flex; gap: inherit; }
.platforms .platforms__engine { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.3); }
.platforms li { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.platforms i { font-size: 24px; line-height: 1; height: 24px; display: grid; place-items: center; }
.platforms__switch { width: 40px; height: 24px; fill: currentColor; }
.platforms__logo { width: 24px; height: 24px; display: block; filter: brightness(0) invert(1); }
.platforms span { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.platforms__api {
  display: grid; place-items: center; height: 24px;
  font-size: 19px; font-weight: 800; font-stretch: 68%; line-height: 1;
  letter-spacing: 0.01em; text-transform: uppercase;
}
@media (max-width: 899px) {
  .project + .project { margin-top: 56px; }
  .project + .project::before {
    content: ""; position: absolute; left: 16px; right: 16px; top: -29px;
    height: 2px; background: var(--ink);
  }
  .platforms { gap: 12px; padding: 10px 12px; }
  .platforms .platforms__engine { padding-left: 12px; }
}
@media (max-width: 479px) {
  .platforms { flex-direction: column; gap: 10px; }
  .platforms ul { gap: 12px; justify-content: center; }
  .platforms .platforms__engine {
    border-left: 0; padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 10px;
  }
}
@media (min-width: 720px) and (max-width: 899px) {
  .project + .project::before { left: 40px; right: 40px; }
}

.project__credit {
  position: absolute; top: calc(62.5vw - 22px); right: 12px;
  font-size: 11px; color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@media (min-width: 900px) {
  .project { min-height: min(88vh, 900px); display: flex; align-items: flex-end; padding: 40px; }
  .project__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .project__label { position: relative; width: 460px; padding: 24px 28px 28px; }
  .project__credit { top: 16px; right: 40px; }
  .platforms { top: 40px; left: 40px; gap: 26px; padding: 14px 20px; }
  .platforms .platforms__engine { padding-left: 26px; }
  .platforms i { font-size: 34px; height: 34px; }
  .platforms__switch { width: 56px; height: 34px; }
  .platforms__logo { width: 34px; height: 34px; }
  .platforms__api { height: 34px; font-size: 27px; }
  .platforms span { font-size: 12px; }
}

/* Contact */
.contact { padding-top: 96px; padding-bottom: 32px; }
.contact__note { font-size: 20px; }
.contact__link {
  display: inline-block; margin-top: 12px;
  font-size: clamp(40px, 8vw, 104px);
  font-weight: 800; font-stretch: 68%;
  line-height: 0.95; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 0.06em solid currentColor;
}
.contact__link:hover { color: #3c3c3c; }
.contact__small { margin-top: 96px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--grey); }

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