:root {
  --ink: #171725;
  --paper: #fff7e6;
  --paper-bright: #fffdf8;
  --coral: #ff6b5e;
  --yellow: #f7e764;
  --aqua: #54ded4;
  --violet: #7c68ff;
  --shared-slate: #595968;
  --sky: #8dd7ff;
  --navy: #17324d;
  --sage: #9cb98b;
  --line: rgba(23, 23, 37, 0.16);
  --radius-lg: 42px;
  --radius-md: 26px;
  --shadow: 0 30px 70px rgba(23, 23, 37, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 20%, rgba(84, 222, 212, 0.2), transparent 24rem),
    radial-gradient(circle at 92% 5%, rgba(247, 231, 100, 0.3), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--paper-bright);
}

.skip-link:focus { top: 12px; }

.scroll-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--yellow) 45%, var(--aqua) 75%, var(--violet));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}

.site-header,
main,
footer {
  width: min(1440px, calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  gap: 24px;
}

.studio-lockup {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.studio-lockup img {
  width: 250px;
  height: auto;
}

.site-header nav { display: flex; gap: 8px; }

.site-header nav a {
  padding: 12px 17px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible { background: rgba(23, 23, 37, 0.08); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  align-items: center;
  min-height: 740px;
  padding: 74px clamp(34px, 6vw, 96px);
  border: 3px solid var(--ink);
  border-radius: 54px;
  background:
    linear-gradient(135deg, transparent 0 61%, rgba(255, 255, 255, 0.24) 61% 62%, transparent 62%),
    var(--coral);
  box-shadow: 12px 14px 0 var(--ink);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -120px;
  top: -170px;
  border: 60px solid var(--yellow);
  border-radius: 50%;
  opacity: 0.9;
}

.hero-copy { position: relative; z-index: 2; max-width: 730px; }

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(4.1rem, 8.6vw, 9rem);
  font-weight: 500;
}

h1 em {
  display: inline-block;
  color: var(--ink);
  font-weight: 700;
  text-shadow: 5px 5px 0 var(--paper-bright);
  transform: rotate(-3deg);
}

.hero-lede {
  max-width: 670px;
  margin-bottom: 34px;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  font-weight: 650;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

a.button:hover,
a.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(23, 23, 37, 0.18);
}

.button-primary { background: var(--ink); color: #fff; }
.button-light { background: var(--paper-bright); color: var(--ink); }
.button-dark { background: var(--ink); color: #fff; }
.button-muted { cursor: default; border-color: rgba(23, 50, 77, 0.35); background: rgba(255, 255, 255, 0.58); color: var(--navy); }
.project-gamenight a.button:focus-visible,
.project-boardlark a.button:focus-visible { outline-color: var(--yellow); }

.hero-stack {
  position: relative;
  z-index: 2;
  min-height: 520px;
  perspective: 1200px;
}

.hero-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 250px;
  height: 310px;
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  box-shadow: 10px 12px 0 var(--ink);
  font-size: 1.2rem;
}

.hero-card img { width: 96px; height: 96px; object-fit: contain; }
.hero-card-one { top: 40px; left: 4%; z-index: 3; background: var(--yellow); transform: translateY(var(--hero-shift-a, 0px)) rotate(-8deg); }
.hero-card-two { top: 158px; right: 0; z-index: 2; background: var(--aqua); transform: translateY(var(--hero-shift-b, 0px)) rotate(8deg); }
.hero-card-three { bottom: 6px; left: 18%; z-index: 4; background: var(--paper-bright); transform: translateY(var(--hero-shift-c, 0px)) rotate(-1deg); }

.mini-status {
  padding: 7px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-spark { position: absolute; z-index: 1; font-size: 7rem; }
.hero-spark-one { left: 47%; bottom: -22px; color: var(--yellow); transform: rotate(12deg); }
.hero-spark-two { left: 49%; top: 70px; color: var(--violet); font-size: 3rem; }

.projects { padding: 150px 0 80px; }

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 72px;
  margin: 0 auto 62px;
  padding-inline: clamp(0px, 4vw, 64px);
}

.section-heading h2,
.studio h2 { margin-bottom: 0; font-size: clamp(3rem, 6vw, 6rem); font-weight: 500; }
.section-heading > p { max-width: 650px; margin-bottom: 8px; font-size: 1.08rem; }

.project {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 680px;
  margin-bottom: 42px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 9px 10px 0 var(--ink);
  overflow: hidden;
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(36px, 5vw, 78px);
}

.project-content > p:not(.project-tagline) { max-width: 660px; }

.project-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin-bottom: 50px;
}

.status,
.platform {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.status i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); }
.status-development { color: var(--navy); }
.platform { opacity: 0.72; }

.product-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  margin-bottom: 26px;
}

.product-lockup h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.product-lockup-dark img { width: min(430px, 100%); height: auto; }
.product-lockup-boardlark img { width: min(370px, 100%); }
.project-tagline { margin-bottom: 18px; font-size: 1.3rem; font-weight: 900; }
.project .button { margin-top: 15px; }

.project-visual {
  position: relative;
  min-height: 0;
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
}

.project-visual > img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.project-gamenight { background: #2a241e; color: #fffaf0; }
.project-gamenight .project-visual { display: flex; align-items: center; background: #e8d4ae; }
.project-gamenight .project-visual::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, transparent 0 80px, rgba(42, 36, 30, 0.06) 80px 82px); }
.project-gamenight .project-visual img { position: relative; z-index: 1; height: auto; }

.project-boardlark { background: #173b3c; color: #faf5e9; }
.project-boardlark .project-visual { display: flex; align-items: center; background: var(--yellow); }
.project-boardlark .project-visual > img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; transform: translate3d(0, var(--parallax-y, 0px), 0); }

.project-ministry { background: #fff5db; color: var(--navy); }
.project-ministry .project-visual { display: flex; align-items: center; justify-content: center; background: #d6ede4; }
.tablet-frame {
  position: relative;
  display: flex;
  flex: none;
  width: auto;
  height: 100%;
  max-height: 610px;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  padding: 14px 9px;
  border: 3px solid #141923;
  border-radius: 34px;
  background: linear-gradient(145deg, #465c68, #1e2c37 60%, #101922);
  box-shadow: 8px 12px 0 rgba(23, 23, 37, 0.18), 0 24px 50px rgba(23, 23, 37, 0.22);
}
.tablet-frame::before {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9db9ba;
}
.tablet-screen {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 2px solid #0d1721;
  border-radius: 20px;
  background: #d6ede4;
}
.tablet-screen > img { width: 100%; height: 100%; object-fit: contain; }

.ministry-lockup { flex-shrink: 0; }
.ministry-lockup img { width: 108px; height: 108px; object-fit: contain; }
.ministry-lockup p { margin: 0; color: var(--navy); font-size: 1.55rem; font-weight: 1000; letter-spacing: 0.04em; line-height: 1; text-transform: uppercase; }
.ministry-lockup h3 { margin-top: 8px; font-family: inherit; font-size: clamp(2rem, 4vw, 4rem); font-weight: 850; letter-spacing: -0.045em; }

.studio {
  display: grid;
  grid-template-columns: 180px 1fr 0.8fr;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  margin: 70px 0 120px;
  padding: clamp(42px, 6vw, 88px);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: #6652d8;
  color: #fff;
  box-shadow: 10px 12px 0 var(--ink);
}

.studio-mark img { filter: drop-shadow(9px 10px 0 rgba(23, 23, 37, 0.48)); transform: rotate(-7deg); }
.studio > p { margin: 0; font-size: 1.1rem; }

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .scroll-reveal {
    opacity: 0;
    transform: translateY(34px) scale(0.985);
    transition: opacity 700ms ease, transform 850ms cubic-bezier(0.18, 0.7, 0.2, 1);
  }

  .motion-ready .scroll-reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
  .motion-ready .project-visual > img[data-parallax] { will-change: transform; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-progress { display: none; }
  .hero-card-one, .hero-card-two, .hero-card-three { transition: none; }
  .project-boardlark .project-visual > img { transform: none; }
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 36px;
  padding: 34px 0 44px;
  border-top: 2px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}

footer p { margin: 0; }
footer a { font-weight: 900; text-underline-offset: 0.2em; }

.legal-page {
  width: min(860px, calc(100% - 40px));
  margin: 48px auto 96px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-bottom: 30px;
  font-size: 0.86rem;
  font-weight: 900;
  text-underline-offset: 0.22em;
}

.legal-card {
  padding: clamp(32px, 7vw, 72px);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper-bright);
  box-shadow: 10px 12px 0 var(--ink);
}

.legal-card h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 9vw, 6.2rem);
}

.legal-card h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.legal-card p,
.legal-card li { max-width: 70ch; }
.legal-card li + li { margin-top: 10px; }
.legal-card a { font-weight: 850; text-underline-offset: 0.2em; }
.legal-meta { color: var(--shared-slate); font-weight: 750; }

@media (min-width: 1061px) and (max-width: 1200px) {
  .project { height: 720px; }
}

@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 800px; }
  .hero-stack { width: min(640px, 100%); min-height: 440px; margin: 30px auto 0; }
  .hero-card { width: 230px; height: 280px; }
  .hero-card-one { left: 0; }
  .hero-card-two { right: 0; }
  .hero-card-three { left: 34%; }
  .project { grid-template-columns: 1fr; grid-template-rows: 600px minmax(0, 1fr); height: 1140px; }
  .project-content { min-height: 0; }
  .project-visual { min-height: 0; }
  .studio { grid-template-columns: 150px 1fr; }
  .studio > p { grid-column: 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header, main, footer { width: min(100% - 28px, 1440px); }
  .site-header { min-height: 84px; }
  .site-header nav a { padding: 10px 11px; font-size: 0.74rem; }
  .site-header nav a:last-child { display: none; }
  .studio-lockup img { width: 190px; height: auto; }
  .hero { min-height: auto; padding: 58px 24px 34px; border-radius: 34px; box-shadow: 7px 8px 0 var(--ink); }
  .hero-lede { font-size: 1rem; }
  h1 { font-size: clamp(3.7rem, 20vw, 6.4rem); }
  h1 em { text-shadow: 3px 3px 0 var(--ink); }
  .hero-stack { min-height: 340px; margin-top: 42px; }
  .hero-card { width: 158px; height: 205px; padding: 14px; border-width: 2px; border-radius: 20px; box-shadow: 6px 7px 0 var(--ink); font-size: 0.83rem; }
  .hero-card img { width: 66px; height: 66px; }
  .hero-card-one { top: 15px; }
  .hero-card-two { top: 75px; }
  .hero-card-three { bottom: 0; left: calc(50% - 79px); }
  .mini-status { padding: 4px 7px; border-width: 1px; font-size: 0.48rem; }
  .projects { padding-top: 110px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 42px; padding: 0 6px; }
  .section-heading h2, .studio h2 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .project { grid-template-rows: minmax(0, 1fr) 340px; height: clamp(1050px, calc(1440px - 100vw), 1120px); margin-bottom: 28px; border-radius: 30px; box-shadow: 6px 7px 0 var(--ink); }
  .project-content { min-height: 0; padding: 42px 26px 48px; }
  .project-topline { align-items: flex-start; margin-bottom: 38px; }
  .platform { width: 100%; }
  .product-lockup { gap: 13px; }
  .product-lockup h3 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .product-lockup-dark img { width: min(310px, 100%); height: auto; }
  .product-lockup-boardlark img { width: 260px; }
  .project-tagline { font-size: 1.12rem; }
  .project-visual { min-height: 0; padding: 24px; }
  .ministry-lockup { align-items: center; }
  .ministry-lockup img { width: 82px; height: 82px; }
  .ministry-lockup p { font-size: 1.05rem; }
  .ministry-lockup h3 { font-size: 2.1rem; }
  .studio { grid-template-columns: 1fr; margin-bottom: 80px; padding: 42px 26px; border-radius: 30px; }
  .studio-mark img { width: 112px; height: 112px; }
  .studio > p { grid-column: auto; }
  footer { grid-template-columns: 1fr; gap: 14px; padding-bottom: 34px; }
  .legal-page { width: min(100% - 28px, 860px); margin-top: 24px; }
  .legal-card { border-radius: 30px; box-shadow: 6px 7px 0 var(--ink); }
}

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