:root {
  --ink: #15211d;
  --ink-soft: #40504a;
  --paper: #f5f1e8;
  --paper-strong: #fffdf8;
  --line: rgba(21, 33, 29, 0.16);
  --mint: #baf7d0;
  --lime: #d9ff75;
  --blue: #9bd7ff;
  --orange: #ff8d5c;
  --purple: #c6b8ff;
  --dark: #13221c;
  --dark-soft: #21372e;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shadow: 0 18px 50px rgba(21, 33, 29, 0.1);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(21, 33, 29, 0.11) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.48;
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
}

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

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(245, 241, 232, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(21, 33, 29, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 10px 10px 10px 3px;
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 15px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--paper-strong);
  color: var(--ink);
}

.nav-link.arcade-link {
  background: var(--dark);
  color: var(--lime);
}

.nav-link.arcade-link:hover,
.nav-link.arcade-link[aria-current="page"] {
  background: var(--orange);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 108px) 0 54px;
}

.hero::after {
  position: absolute;
  top: 42px;
  right: max(-120px, calc((100vw - var(--max-width)) / 2 - 170px));
  z-index: -1;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(21, 33, 29, 0.12);
  border-radius: 42% 58% 50% 50%;
  background: rgba(186, 247, 208, 0.55);
  filter: blur(1px);
  content: "";
  transform: rotate(18deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: clamp(36px, 7vw, 90px);
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
}

.eyebrow::before,
.section-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--orange);
  content: "";
  transform: rotate(12deg);
}

.hero h1,
.page-hero h1,
.project-hero h1 {
  max-width: 890px;
  margin: 0;
  font-size: clamp(48px, 7.6vw, 98px);
  line-height: 0.99;
  letter-spacing: -0.018em;
}

.hero h1 .highlight {
  position: relative;
  display: inline;
  color: var(--ink);
  white-space: normal;
  background: linear-gradient(transparent 70%, var(--lime) 70%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero h1 .highlight::after {
  display: none;
}

.hero-intro {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.card-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 19px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(21, 33, 29, 0.22);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  box-shadow: 2px 2px 0 rgba(21, 33, 29, 0.22);
  transform: translate(2px, 2px);
}

.button.secondary {
  background: var(--paper-strong);
  color: var(--ink);
}

.button.lime {
  background: var(--lime);
  color: var(--ink);
}

.button.small {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 11px;
}

.arrow {
  font-size: 1.1em;
  transition: transform 160ms ease;
}

a:hover .arrow {
  transform: translateX(4px);
}

.hero-side {
  position: relative;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper-strong);
  box-shadow: 9px 9px 0 var(--ink);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 38px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #32c46a;
  box-shadow: 0 0 0 5px rgba(50, 196, 106, 0.14);
  content: "";
}

.hero-note {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.8;
}

.hero-note strong {
  display: block;
  margin-bottom: 5px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.mini-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.impact-strip {
  padding: 26px 0 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric {
  min-height: 176px;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper-strong);
  box-shadow: 5px 5px 0 var(--ink);
}

.metric + .metric {
  border-left: 1px solid var(--ink);
}

.metric:nth-child(2) {
  background: var(--blue);
}

.metric:nth-child(3) {
  background: var(--lime);
}

.metric-value {
  display: block;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-label {
  display: block;
  max-width: 230px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: clamp(58px, 7vw, 92px) 0;
}

.impact-strip + .section {
  padding-top: clamp(44px, 5vw, 64px);
}

.section.dark {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #f8f7f2;
}

.section.dark::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(217, 255, 117, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  pointer-events: none;
}

.section.dark .shell {
  position: relative;
}

.section.dark .section-kicker,
.section.dark .section-copy,
.section.dark .muted {
  color: rgba(248, 247, 242, 0.68);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 40px;
}

.section-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-copy {
  margin: 0;
  color: var(--ink-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  display: flex;
  grid-column: span 6;
  min-height: 410px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper-strong);
  box-shadow: 0 0 0 rgba(21, 33, 29, 0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  box-shadow: 8px 8px 0 var(--ink);
  transform: translate(-4px, -4px);
}

.project-card.featured {
  grid-column: span 7;
  min-height: 380px;
  background: var(--mint);
}

.project-card.arcade-card {
  grid-column: span 5;
  min-height: 380px;
  background: var(--dark-soft);
  color: #fff;
}

.project-card:nth-child(3) {
  background: var(--purple);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-index,
.project-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-status {
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.project-card h3 {
  max-width: 500px;
  margin: 20px 0 12px;
  font-size: clamp(29px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.project-card p {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
}

.project-card.arcade-card p {
  color: rgba(255, 255, 255, 0.68);
}

.project-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  margin-top: 36px;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  font-weight: 800;
}

.arcade-pixel {
  position: absolute;
  right: 34px;
  bottom: 32px;
  display: grid;
  grid-template-columns: repeat(4, 11px);
  gap: 4px;
  transform: rotate(-6deg);
}

.arcade-pixel span {
  width: 11px;
  height: 11px;
  background: var(--lime);
}

.arcade-pixel span:nth-child(3n) {
  background: var(--orange);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.bento-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-strong);
  color: var(--ink);
}

.bento-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.bento-card p {
  margin: 0;
  color: var(--ink-soft);
}

.bento-card.now-card {
  background: var(--blue);
}

.bento-card.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--orange);
}

.quote-card blockquote {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.quote-card cite {
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero {
  padding: clamp(64px, 8vw, 104px) 0 48px;
}

.page-hero h1 {
  font-size: clamp(54px, 8vw, 92px);
}

.page-hero .lead,
.project-hero .lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(19px, 2.3vw, 25px);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.filter-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

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

.work-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-strong);
  transition: border-color 160ms ease, transform 160ms ease;
}

.work-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}

.work-card[hidden] {
  display: none;
}

.work-card h2 {
  margin: 24px 0 12px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.work-card p {
  margin: 0;
  color: var(--ink-soft);
}

.work-card .project-link {
  margin-top: auto;
  padding-top: 32px;
}

.work-card.coming-soon {
  border-style: dashed;
  background: rgba(255, 253, 248, 0.55);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.note-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-strong);
}

.note-card:nth-child(2) {
  background: var(--blue);
}

.note-card:nth-child(3) {
  background: var(--mint);
}

.note-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--ink-soft);
  font-size: 12px;
}

.note-card h2,
.note-card h3 {
  margin: 24px 0 12px;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.note-card p {
  margin: 0;
  color: var(--ink-soft);
}

.note-card .project-link {
  margin-top: auto;
  padding-top: 24px;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-time {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.timeline-item h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.timeline-item p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.arcade-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 140px) 0 80px;
  background: var(--dark);
  color: #fff;
}

.arcade-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 255, 117, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 255, 117, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.arcade-hero .shell {
  position: relative;
}

.arcade-hero h1 {
  margin: 0;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(49px, 10vw, 122px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-shadow: 7px 7px 0 rgba(255, 141, 92, 0.75);
}

.arcade-hero .lead {
  max-width: 720px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
}

.arcade-window {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: #1c2d26;
  box-shadow: 10px 10px 0 var(--ink);
  color: #fff;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.window-bar span:nth-child(2) {
  background: var(--lime);
}

.window-bar span:nth-child(3) {
  background: var(--blue);
}

.window-content {
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: 40px;
  text-align: center;
}

.window-content h2 {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -0.025em;
}

.window-content p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
}

.project-hero {
  padding: clamp(60px, 8vw, 100px) 0 44px;
}

.project-hero h1 {
  font-size: clamp(48px, 7vw, 84px);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-strong);
}

.project-fact {
  min-height: 130px;
  padding: 22px;
}

.project-fact + .project-fact {
  border-left: 1px solid var(--line);
}

.project-fact span {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-fact strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.25;
}

.case-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(40px, 8vw, 100px);
}

.case-nav {
  position: sticky;
  top: 92px;
  align-self: start;
}

.case-nav p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-nav a {
  display: block;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.case-nav a:hover {
  color: var(--ink);
}

.case-content {
  min-width: 0;
}

.case-block {
  padding: 0 0 70px;
}

.case-block + .case-block {
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.case-block h2 {
  margin: 0 0 22px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.case-block h3 {
  margin: 30px 0 10px;
  font-size: 22px;
}

.case-block p,
.case-block li {
  color: var(--ink-soft);
  font-size: 17px;
}

.case-block ul {
  padding-left: 20px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 30px;
}

.flow-step {
  position: relative;
  min-height: 140px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-strong);
}

.flow-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 2;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  content: "→";
  font-size: 11px;
  transform: translateY(-50%);
}

.flow-step span {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.flow-step strong {
  display: block;
  margin-top: 20px;
  line-height: 1.3;
}

.privacy-note {
  margin-top: 28px;
  padding: 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 141, 92, 0.1);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: clamp(30px, 6vw, 62px);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--lime);
  box-shadow: 10px 10px 0 var(--ink);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.cta-panel p {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.site-footer {
  padding: 50px 0 26px;
  background: var(--dark);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 40px;
}

.footer-statement {
  max-width: 600px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 10px 30px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

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

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

@media (max-width: 900px) {
  .hero-grid,
  .section-head,
  .case-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-side {
    max-width: 560px;
  }

  .project-card.featured,
  .project-card.arcade-card,
  .project-card {
    grid-column: span 12;
  }

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

  .bento-card:first-child {
    grid-column: span 2;
  }

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

  .project-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-fact:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .project-fact:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .case-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 10px;
  }

  .case-nav p {
    display: none;
  }

  .case-nav a {
    flex: 0 0 auto;
  }

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

  .flow-step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper-strong);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: space-between;
    border-radius: 10px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 .highlight {
    white-space: normal;
  }

  .metric-grid,
  .work-list,
  .note-grid,
  .bento-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric + .metric {
    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
  }

  .metric {
    min-height: auto;
  }

  .metric:nth-child(2),
  .metric:nth-child(3) {
    transform: none;
  }

  .project-card,
  .project-card.featured,
  .project-card.arcade-card {
    min-height: 390px;
  }

  .bento-card:first-child {
    grid-column: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-fact + .project-fact,
  .project-fact:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .flow-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -15px;
    transform: translateX(50%) rotate(90deg);
  }

  .flow-step:nth-child(2)::after {
    display: grid;
  }

  .cta-panel {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
