:root {
  --ink: #f5f4f0;
  --muted: #b8bac4;
  --dim: #818592;
  --night: #07080b;
  --panel: #101218;
  --line: #2b2e38;
  --blue: #5db7ff;
  --cyan: #50e7df;
  --violet: #d792ff;
  --orange: #ff9a45;
  --content: 1180px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 8%, rgb(64 45 115 / 22%), transparent 28rem),
    var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.08rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #05060a;
  font-weight: 750;
  transform: translateY(-180%);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, calc(var(--content) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 1.35rem var(--gutter);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.wordmark {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 350;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark span {
  font-weight: 800;
}

nav {
  display: flex;
  gap: clamp(0.8rem, 2.5vw, 2rem);
}

nav a {
  color: #d6d7dc;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  width: min(100%, calc(var(--content) + 2 * var(--gutter)));
  min-height: min(820px, calc(100vh - 5rem));
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
}

.kicker,
.section-label,
.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-copy > h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(3.3rem, 7.2vw, 7.3rem);
}

.hero h1 em {
  color: var(--violet);
  font-weight: inherit;
}

.hero-intro {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: #d3d4da;
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: #08090d;
}

.button-primary:hover {
  background: var(--cyan);
}

.button-light {
  margin-top: 1.5rem;
  background: #07080b;
  color: #fff;
}

.button-light:hover {
  background: #2b1d41;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  color: var(--cyan);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
}

.hero-visual::after {
  position: absolute;
  z-index: -1;
  inset: 15% -8% -8% 20%;
  background: linear-gradient(135deg, rgb(47 190 255 / 34%), rgb(199 88 255 / 24%));
  filter: blur(75px);
  content: "";
}

.hero-visual picture {
  position: absolute;
  inset: 9%;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
}

.orbit-one {
  transform: rotate(24deg) scaleY(0.62);
}

.orbit-two {
  transform: rotate(-58deg) scaleY(0.72);
}

.orbit-one::after,
.orbit-two::after {
  position: absolute;
  top: 49%;
  right: -0.28rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 1rem var(--cyan);
  content: "";
}

.orbit-two::after {
  background: var(--violet);
  box-shadow: 0 0 1rem var(--violet);
}

.reel-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 4rem) max(var(--gutter), calc((100vw - var(--content)) / 2));
  border-block: 1px solid var(--line);
  background: rgb(16 18 24 / 72%);
}

.reel-band h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 650;
}

.reel-link {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
  min-width: 16rem;
  padding: 1rem 1.2rem;
  border: 1px solid #4a4e5d;
  text-decoration: none;
}

.reel-link:hover {
  border-color: var(--cyan);
}

.play {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #071012;
  font-size: 0.8rem;
}

.reel-link > span:last-child {
  font-weight: 800;
}

.reel-link small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.work-section,
.about-section,
.services-section {
  width: min(100%, calc(var(--content) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  column-gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-heading .section-label {
  grid-column: 1 / -1;
}

.section-heading h2,
.about-copy > h2 {
  font-size: clamp(3rem, 6.5vw, 6rem);
}

.section-heading > p:last-child {
  max-width: 34rem;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.project-list {
  display: grid;
  gap: clamp(7rem, 15vw, 13rem);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.project:nth-child(even) .project-figure {
  order: 2;
}

.project-figure {
  margin: 0;
}

.project-figure picture {
  display: block;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 2rem 5rem rgb(0 0 0 / 38%);
}

.project-image {
  width: 100%;
  height: auto;
  transition: transform 700ms ease;
}

.project-figure:hover .project-image {
  transform: scale(1.018);
}

.project-image-wide {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-image-poster {
  aspect-ratio: 2 / 2.96;
  object-fit: cover;
}

.project-figure figcaption {
  margin-top: 0.75rem;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.5;
}

.project-copy h3 {
  max-width: 14ch;
  margin: 0 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.project-copy > p:not(.eyebrow, .project-number, .contribution) {
  color: #c6c8d0;
  font-size: 1.16rem;
}

.project-number {
  margin: 0 0 2rem;
  color: #3d414d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}

.contribution {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--violet);
  color: var(--muted);
  font-size: 1rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 10vw, 10rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.about-portrait {
  position: sticky;
  top: 5rem;
  align-self: start;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.about-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-copy > h2 {
  margin-bottom: 2.5rem;
}

.about-copy > p:not(.section-label) {
  max-width: 47rem;
  color: var(--muted);
}

.about-copy .about-lead {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.55;
}

.award {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 1.5rem;
  border: 1px solid #414554;
  background: linear-gradient(135deg, rgb(93 183 255 / 9%), rgb(215 146 255 / 9%));
}

.award-year {
  margin: 0;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.award h3,
.award p {
  margin-top: 0;
}

.award h3 {
  margin-bottom: 0.3rem;
  font-size: 1.32rem;
}

.award p {
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.award .text-link {
  font-size: 0.94rem;
}

.services-section {
  border-top: 1px solid var(--line);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 4rem minmax(14rem, 0.85fr) minmax(18rem, 1.15fr);
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  margin: 0;
  color: var(--dim);
  font-size: 0.84rem;
}

.service h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
}

.service > p:last-child {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  padding: clamp(5rem, 12vw, 10rem) max(var(--gutter), calc((100vw - var(--content)) / 2));
  background:
    radial-gradient(circle at 85% 20%, rgb(215 146 255 / 28%), transparent 27rem),
    linear-gradient(135deg, #42b7d4, #8075e0 66%, #a978d7);
  color: #07080b;
}

.contact-section .section-label {
  color: #16152a;
}

.contact-section h2 {
  max-width: 14ch;
  font-size: clamp(3.2rem, 7.5vw, 7rem);
}

.contact-section > p:not(.section-label, .email) {
  max-width: 42rem;
  margin: 2rem 0 0;
  font-size: 1.28rem;
}

.email {
  margin: 0.8rem 0 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.privacy-section {
  display: grid;
  grid-template-columns: 0.35fr 1.65fr;
  gap: 2rem;
  width: min(100%, calc(var(--content) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 3rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.privacy-section h2,
.privacy-section p {
  margin: 0;
}

.privacy-section h2 {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-section p {
  max-width: 52rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(100%, calc(var(--content) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  color: var(--dim);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer a:hover {
  color: var(--cyan);
}

.pi-link {
  color: #a8abb5;
  text-decoration: none;
}

/* Secret arcade ---------------------------------------------------------- */

.arcade-main {
  overflow: hidden;
}

.arcade-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  width: min(100%, calc(var(--content) + 2 * var(--gutter)));
  min-height: min(700px, calc(100vh - 5rem));
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
}

.arcade-hero h1,
.arcade-section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.arcade-hero h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 8.5vw, 8rem);
}

.arcade-hero h1 em {
  color: var(--violet);
  font-weight: inherit;
}

.arcade-hero > div:first-child > p:last-child {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: #d3d4da;
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
  line-height: 1.7;
}

.arcade-mark {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgb(80 231 223 / 22%), transparent 34%),
    radial-gradient(circle at 62% 63%, rgb(215 146 255 / 25%), transparent 38%),
    #0b0d12;
  box-shadow: 0 2rem 7rem rgb(112 86 225 / 22%);
  color: var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 1;
}

.arcade-games {
  padding: clamp(5rem, 10vw, 9rem) max(var(--gutter), calc((100vw - var(--content)) / 2));
  border-block: 1px solid var(--line);
  background: rgb(16 18 24 / 68%);
}

.arcade-section-heading {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.arcade-section-heading h2 {
  font-size: clamp(3rem, 6.5vw, 6rem);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.game-card {
  min-width: 0;
  align-self: start;
  border: 1px solid #3b3f4b;
  background: #0a0b0f;
  transition: border-color 180ms ease, transform 180ms ease;
}

.game-card:hover {
  border-color: var(--violet);
  transform: translateY(-0.25rem);
}

.game-card > a {
  display: block;
  width: 100%;
  text-decoration: none;
}

.game-card picture {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #050609;
}

.game-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 500ms ease;
}

.game-card:hover img {
  transform: scale(1.015);
}

.game-card-copy {
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.game-card-copy .eyebrow {
  margin-bottom: 1rem;
}

.game-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.game-title-row h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.game-title-row > span {
  color: var(--violet);
  font-size: 1.6rem;
}

.game-card-copy > p:not(.eyebrow) {
  max-width: 42rem;
  margin: 1.25rem 0;
  color: var(--muted);
}

.game-cta {
  display: inline-block;
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    z-index: 1;
  }

  .hero-visual {
    width: min(100%, 32rem);
    margin: 0 auto;
  }

  .section-heading,
  .project,
  .about-section {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child {
    margin-top: 1.5rem;
  }

  .project:nth-child(even) .project-figure {
    order: initial;
  }

  .project-copy {
    max-width: 42rem;
  }

  .about-portrait {
    position: static;
    max-width: 34rem;
  }

  .arcade-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .arcade-mark {
    width: min(65vw, 22rem);
  }
}

@media (max-width: 650px) {
  .site-header {
    align-items: flex-start;
    gap: 1.25rem;
  }

  nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
    row-gap: 0.4rem;
  }

  .reel-band {
    align-items: stretch;
    flex-direction: column;
  }

  .reel-link {
    min-width: 0;
  }

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

  .service > p:last-child {
    grid-column: 2;
  }

  .privacy-section {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .site-header {
    flex-direction: column;
  }

  nav {
    width: 100%;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }

  .arcade-header nav {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-number {
    margin-bottom: 1rem;
  }

  .award {
    grid-template-columns: 1fr;
  }

  .arcade-hero {
    padding-top: 4rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .button,
  .reel-link,
  .award,
  .game-card,
  .arcade-mark {
    border: 2px solid CanvasText;
  }

  .play {
    border: 1px solid CanvasText;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .reel-band,
  .privacy-section,
  footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .project-figure figcaption,
  .project-copy > p,
  .about-copy > p,
  .service > p {
    color: #222 !important;
  }
}
