:root {
  --ink: #272932;
  --ink-soft: #555762;
  --coffee: #1f1300;
  --lilac: #bd93bd;
  --pink: #f05365;
  --teal: #90aa86;
  --paper: #f4f1eb;
  --paper-bright: #fbfaf7;
  --line: rgba(39, 41, 50, 0.13);
  --line-strong: rgba(39, 41, 50, 0.22);
  --shadow: 0 24px 70px rgba(39, 41, 50, 0.08);
  --shadow-soft: 0 12px 36px rgba(39, 41, 50, 0.06);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 42px;
  --container: min(1240px, calc(100vw - 64px));
  --header-height: 78px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(189,147,189,.09), transparent 32rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(189,147,189,.45); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--ease); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: var(--container);
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244,241,235,.86);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 650;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(39,41,50,.06);
}
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.brand-name { white-space: nowrap; }
.site-header .brand { view-transition-name: site-brand; }

.desktop-nav {
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
}
.desktop-nav a,
.site-footer nav a {
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .9rem;
  transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--ink);
  background: rgba(39,41,50,.055);
}
.desktop-nav a:active { transform: translateY(1px); }

.menu-button {
  display: none;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 10px;
}
.menu-lines,
.menu-lines::before,
.menu-lines::after {
  width: 18px;
  height: 1.5px;
  background: currentColor;
  display: block;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -5px; }
.menu-lines::after { top: 5px; }
.menu-button[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-button[aria-expanded="true"] .menu-lines::before { transform: translateY(5px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-lines::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251,250,247,.97);
  box-shadow: var(--shadow-soft);
}
.mobile-menu a { display: block; padding: 14px; border-radius: 12px; }
.mobile-menu a:hover { background: rgba(39,41,50,.05); }

.site-main { min-height: 62vh; }
.section-shell { width: var(--container); margin-inline: auto; }
.section-space { padding-block: clamp(76px, 10vw, 140px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 720;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.hero {
  width: var(--container);
  margin: 0 auto;
  min-height: min(720px, calc(100svh - var(--header-height)));
  padding: clamp(76px, 10vw, 136px) 0 clamp(64px, 8vw, 108px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, .55fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: end;
}
.hero-copy { max-width: 790px; }
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.15rem, 7vw, 7.1rem);
  line-height: .93;
  letter-spacing: -.065em;
  font-weight: 620;
}
.hero h1 .hero-emphasis {
  display: block;
  color: rgba(39,41,50,.58);
  font-weight: 520;
}
.hero-intro {
  max-width: 690px;
  margin: 30px 0 0;
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
  line-height: 1.62;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.button:hover, .button:focus-visible { transform: translateY(-2px); border-color: rgba(39,41,50,.38); }
.button--primary { background: var(--ink); color: white; border-color: var(--ink); }
.button--primary:hover, .button--primary:focus-visible { background: #17181e; }
.button--soft { background: rgba(39,41,50,.045); }
.button--light { background: white; color: var(--ink); border-color: rgba(255,255,255,.8); }
.button--icon { width: 44px; padding-inline: 0; }
.arrow { transition: transform .22s var(--ease); }
.button:hover .arrow, a:hover > .arrow { transform: translate(3px,-2px); }

.hero-note {
  align-self: end;
  padding-bottom: 12px;
  color: var(--ink-soft);
}
.hero-note dl { margin: 0; display: grid; gap: 18px; }
.hero-note div { padding-top: 16px; border-top: 1px solid var(--line); }
.hero-note dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; color: rgba(39,41,50,.5); }
.hero-note dd { margin: 5px 0 0; font-size: .95rem; color: var(--ink); }

.featured-section { padding: 0 0 clamp(90px, 12vw, 160px); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .6fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.052em;
  font-weight: 600;
}
.section-heading p { max-width: 540px; justify-self: end; margin: 0; color: var(--ink-soft); }

.featured-stage {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}
.featured-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #17181e;
}
.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, rgba(39,41,50,.34));
  pointer-events: none;
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity .45s var(--ease), transform 1.4s var(--ease);
}
.featured-stage.is-changing .featured-media img { opacity: .35; transform: scale(1.018); }
.featured-copy {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}
.featured-copy .eyebrow { color: rgba(255,255,255,.58); }
.featured-copy .eyebrow::before { background: white; }
.featured-copy h3 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: .98;
  letter-spacing: -.048em;
  font-weight: 580;
}
.featured-description { color: rgba(255,255,255,.72); font-size: 1.05rem; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(39,41,50,.06);
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 600;
}
.featured-copy .tag { color: rgba(255,255,255,.82); background: rgba(255,255,255,.09); }
.featured-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.featured-controls { display: flex; align-items: center; gap: 10px; }
.featured-progress {
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
}
.featured-progress span { display: block; width: 0; height: 100%; background: rgba(255,255,255,.75); }
.featured-progress.is-running span { animation: feature-progress 8.5s linear forwards; }
@keyframes feature-progress { from { width: 0; } to { width: 100%; } }

.featured-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 16px 2px 8px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.featured-thumbs::-webkit-scrollbar { display: none; }
.featured-thumb {
  scroll-snap-align: start;
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: .58;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.featured-thumb:hover, .featured-thumb:focus-visible, .featured-thumb.is-active { opacity: 1; }
.featured-thumb:hover { transform: translateY(-2px); }
.featured-thumb-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(39,41,50,.05);
}
.featured-thumb.is-active .featured-thumb-image { box-shadow: inset 0 0 0 2px var(--ink); }
.featured-thumb-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.featured-thumb strong { display: block; margin-top: 9px; font-size: .84rem; letter-spacing: -.015em; }
.featured-thumb span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .72rem; }

.lanes { padding-block: clamp(90px, 12vw, 160px); border-top: 1px solid var(--line); }
.lane-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lane-card {
  min-height: 350px;
  padding: clamp(28px, 3vw, 42px);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
  overflow: hidden;
  position: relative;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.lane-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.lane-card--games { background: color-mix(in srgb, var(--pink) 13%, var(--paper-bright)); }
.lane-card--tools { background: color-mix(in srgb, var(--lilac) 18%, var(--paper-bright)); }
.lane-card--dm { background: color-mix(in srgb, var(--teal) 18%, var(--paper-bright)); }
.lane-card small { font-size: .73rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
.lane-card h3 { margin: 12px 0 0; max-width: 300px; font-size: clamp(1.9rem, 3vw, 3.2rem); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.lane-card p { max-width: 340px; margin: 18px 0 0; color: var(--ink-soft); }
.lane-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .88rem; font-weight: 650; }
.lane-card .lane-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(39,41,50,.08);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.lane-card:hover .lane-arrow { transform: translate(3px,-3px); background: rgba(39,41,50,.13); }

.workbench { padding: 0 0 clamp(90px, 12vw, 160px); }
.rail-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.rail-header h2 { margin: 0; font-size: clamp(1.9rem, 3.2vw, 3.4rem); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.rail-controls { display: flex; gap: 8px; }
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.36);
  display: grid;
  place-items: center;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.icon-button:hover { transform: translateY(-2px); background: var(--paper-bright); }
.project-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 32%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 3px 2px 12px;
}
.project-rail::-webkit-scrollbar { display: none; }
.project-card {
  position: relative;
  scroll-snap-align: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(251,250,247,.6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); background: var(--paper-bright); }
.project-card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(39,41,50,.055);
}
.project-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .55s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.018); }
.project-card-body { padding: 18px 12px 12px; }
.project-card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.project-card h3 { margin: 10px 0 8px; font-size: 1.3rem; line-height: 1.15; letter-spacing: -.035em; }
.project-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card-links { margin-top: 18px; display: flex; align-items: center; gap: 14px; font-size: .82rem; font-weight: 650; }
.project-card-links a:last-child { color: var(--ink-soft); }

.about-block {
  width: var(--container);
  margin: 0 auto clamp(80px, 10vw, 130px);
  padding: clamp(42px, 7vw, 88px);
  border-radius: var(--radius-xl);
  background: var(--coffee);
  color: #f8f5ef;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(300px, .7fr);
  gap: clamp(50px, 8vw, 110px);
}
.about-block .eyebrow { color: rgba(255,255,255,.55); }
.about-block h2 { margin: 0; font-size: clamp(2.2rem, 4.2vw, 4.8rem); line-height: .98; letter-spacing: -.055em; font-weight: 580; }
.about-copy { align-self: end; }
.about-copy p { margin: 0 0 28px; color: rgba(255,255,255,.7); font-size: 1.02rem; }
.about-points { display: grid; gap: 0; }
.about-point { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.82); font-size: .9rem; }
.about-point::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}
.footer-inner { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 42px; align-items: start; }
.brand--footer { margin-bottom: 16px; }
.site-footer p { max-width: 430px; margin: 0; color: var(--ink-soft); font-size: .86rem; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 2px 8px; }
.site-footer .footer-meta { text-align: right; }

/* Directory */
.directory-hero {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(82px, 10vw, 138px) 0 54px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .65fr);
  gap: 60px;
  align-items: end;
}
.directory-hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 6.6rem); line-height: .94; letter-spacing: -.06em; font-weight: 600; }
.directory-hero p { margin: 0; max-width: 540px; color: var(--ink-soft); font-size: 1.05rem; }
.directory-tools {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  width: 100%;
  background: rgba(244,241,235,.9);
  backdrop-filter: blur(16px);
  border-block: 1px solid var(--line);
}
.directory-tools-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.search-field { position: relative; max-width: 540px; }
.search-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px 10px 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.48);
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.search-field input:focus { border-color: rgba(39,41,50,.35); background: var(--paper-bright); box-shadow: 0 0 0 4px rgba(189,147,189,.12); }
.search-field svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); opacity: .45; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-pill {
  white-space: nowrap;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: .82rem;
  color: var(--ink-soft);
}
.filter-pill.is-active { background: var(--ink); color: white; border-color: var(--ink); }
.directory-content { width: var(--container); margin: 0 auto; padding: 38px 0 120px; }
.directory-summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; color: var(--ink-soft); font-size: .84rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-grid .project-card { min-height: 100%; }
.empty-state { padding: 72px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }

/* Detail page */
.project-hero {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(76px, 9vw, 126px) 0 clamp(70px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(300px, .75fr) minmax(0, 1.15fr);
  gap: clamp(50px, 8vw, 112px);
  align-items: center;
}
.project-hero-copy h1 { margin: 0; max-width: 670px; font-size: clamp(3rem, 5.5vw, 6rem); line-height: .94; letter-spacing: -.06em; font-weight: 600; }
.project-hero-copy .project-lede { max-width: 610px; margin: 26px 0 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.65; }
.project-hero-copy .featured-tags { margin-top: 24px; }
.project-hero-copy .hero-actions { margin-top: 30px; }
.project-preview {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--project-accent, var(--lilac)) 17%, white);
  box-shadow: var(--shadow);
  view-transition-name: project-preview;
}
.project-preview::before { content: ""; position: absolute; inset: 7px; border-radius: calc(var(--radius-lg) - 7px); border: 1px solid rgba(39,41,50,.08); pointer-events: none; }
.project-preview img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: calc(var(--radius-lg) - 10px); background: white; }
.project-preview-label { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 5px 2px; color: var(--ink-soft); font-size: .75rem; }

.project-info {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 clamp(90px, 12vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .65fr);
  gap: clamp(54px, 8vw, 120px);
}
.project-info h2 { margin: 0 0 24px; font-size: clamp(2rem, 3.6vw, 4rem); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.project-info p { color: var(--ink-soft); font-size: 1.04rem; }
.fact-list { margin: 0; border-top: 1px solid var(--line); }
.fact-list div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 18px; }
.fact-list dt { color: var(--ink-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.fact-list dd { margin: 0; font-size: .92rem; }
.fact-list a { text-decoration: underline; text-decoration-color: rgba(39,41,50,.2); text-underline-offset: 4px; }
.related { padding: clamp(84px, 11vw, 140px) 0; border-top: 1px solid var(--line); }

.project-detail-pink { --project-accent: var(--pink); }
.project-detail-lilac { --project-accent: var(--lilac); }
.project-detail-teal { --project-accent: var(--teal); }
.project-detail-coffee { --project-accent: #8c724c; }

/* SEO no-JS fallback */
.seo-snapshot {
  width: var(--container);
  margin: 0 auto;
  padding: 90px 0 110px;
}
.seo-snapshot h1 { max-width: 780px; margin: 0; font-size: clamp(3rem, 6vw, 6rem); line-height: .96; letter-spacing: -.055em; }
.seo-snapshot h2 { margin: 70px 0 18px; font-size: 2rem; }
.seo-snapshot p { max-width: 720px; color: var(--ink-soft); }
.seo-snapshot ul { list-style: none; padding: 0; display: grid; gap: 0; max-width: 920px; }
.seo-snapshot li { padding: 18px 0; border-top: 1px solid var(--line); }
.seo-snapshot li strong { font-size: 1.05rem; }
.seo-snapshot .seo-actions { margin-top: 28px; }
.js .seo-snapshot { display: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

:focus-visible { outline: 2px solid rgba(39,41,50,.8); outline-offset: 3px; }

@media (max-width: 1050px) {
  :root { --container: min(100% - 40px, 1180px); }
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 64px; }
  .hero-note { max-width: 700px; }
  .hero-note dl { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .featured-stage { grid-template-columns: 1fr; }
  .featured-media { min-height: 430px; }
  .featured-copy { min-height: 390px; }
  .lane-grid { grid-template-columns: 1fr 1fr; }
  .lane-card:last-child { grid-column: 1 / -1; min-height: 280px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-rail { grid-auto-columns: minmax(300px, 46%); }
  .project-hero { grid-template-columns: 1fr; }
  .project-hero-copy { max-width: 800px; }
}

@media (max-width: 760px) {
  :root { --container: calc(100vw - 28px); --header-height: 68px; --radius-xl: 28px; --radius-lg: 22px; }
  .brand-name { font-size: .93rem; }
  .site-header { min-height: var(--header-height); }
  .hero { padding-top: 68px; padding-bottom: 84px; gap: 48px; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 5.5rem); }
  .hero-intro { margin-top: 24px; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-note dl { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .section-heading p { justify-self: start; }
  .featured-stage { min-height: 0; }
  .featured-media { min-height: 300px; }
  .featured-copy { padding: 30px 24px; min-height: 370px; }
  .featured-controls { gap: 7px; }
  .featured-thumbs { grid-auto-columns: 145px; }
  .lane-grid { grid-template-columns: 1fr; }
  .lane-card, .lane-card:last-child { grid-column: auto; min-height: 290px; }
  .project-rail { grid-auto-columns: minmax(272px, 86%); }
  .rail-header { align-items: center; }
  .about-block { grid-template-columns: 1fr; padding: 38px 26px; gap: 46px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .site-footer nav { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-meta { text-align: left; }
  .directory-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 70px; }
  .directory-hero h1 { font-size: clamp(3.2rem, 15vw, 5.4rem); }
  .directory-tools-inner { grid-template-columns: 1fr; gap: 10px; }
  .filter-row { margin-right: -14px; padding-right: 14px; }
  .project-grid { grid-template-columns: 1fr; }
  .directory-content { padding-top: 28px; }
  .project-hero { padding-top: 64px; gap: 46px; }
  .project-hero-copy h1 { font-size: clamp(3.1rem, 14vw, 5rem); }
  .project-info { grid-template-columns: 1fr; gap: 48px; }
  .fact-list div { grid-template-columns: 90px 1fr; }
}

@media (max-width: 460px) {
  :root { --container: calc(100vw - 22px); }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark img { width: 27px; height: 27px; }
  .menu-button span:first-child { display: none; }
  .hero h1 { font-size: clamp(2.95rem, 16.5vw, 4.7rem); }
  .featured-media { min-height: 240px; }
  .featured-copy h3 { font-size: 2.2rem; }
  .button { min-height: 44px; }
  .project-card { border-radius: 19px; }
  .project-card-media { border-radius: 13px; }
}

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

/* Editorial grid system: product-led, precise, and intentionally restrained. */
:root {
  --accent: #f05365;
  --grid-line: rgba(39, 41, 50, .28);
  --grid-line-soft: rgba(39, 41, 50, .14);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: calc(100vw - 12px);
  --header-height: 58px;
}

body {
  background: #f4f1eb;
  background-image: radial-gradient(rgba(39,41,50,.055) .55px, transparent .55px);
  background-size: 4px 4px;
}

.site-header {
  width: var(--container);
  min-height: var(--header-height);
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 0;
  border: 1px solid var(--grid-line);
  border-top: 0;
  background: rgba(244,241,235,.94);
}
.site-header.is-scrolled { background: rgba(244,241,235,.94); border-color: var(--grid-line); }
.site-header .brand { height: 57px; padding: 0 25px; }
.site-header .brand-mark { border-radius: 0; background: transparent; }
.site-header .brand-name { font-size: 1.05rem; text-transform: uppercase; letter-spacing: -.04em; }
.desktop-nav { height: 57px; gap: 0; border-left: 1px solid var(--grid-line); }
.desktop-nav a {
  height: 57px;
  min-width: 128px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--grid-line);
  border-radius: 0;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.desktop-nav a:hover,.desktop-nav a:focus-visible { color: var(--accent); background: rgba(255,255,255,.35); }

.eyebrow {
  gap: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: -.01em;
}
.eyebrow::before { display: none; }
.button {
  min-height: 45px;
  padding: 0 15px;
  border-radius: 0;
  border-color: var(--grid-line);
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 0;
}
.button--primary { background: var(--accent); border-color: var(--accent); }
.button--primary:hover,.button--primary:focus-visible { background: #d94153; }
.button--soft { background: transparent; }

.editorial-hero {
  width: var(--container);
  min-height: calc(100svh - var(--header-height) - 6px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(180px, 16%) minmax(0, 50%);
  grid-template-rows: minmax(500px, 1fr) 108px;
  border-inline: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
}
.editorial-hero-title {
  grid-column: 1 / 3;
  grid-row: 1;
  padding: clamp(40px, 5vw, 72px) 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.editorial-hero-title h1 {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(3.4rem, 6.5vw, 7.25rem);
  line-height: .87;
  letter-spacing: -.072em;
  text-transform: uppercase;
  font-weight: 660;
}
.editorial-hero-title h1 span { display: block; color: var(--ink); }
.editorial-hero-showcase { grid-column: 3; grid-row: 1 / 3; min-width: 0; border-left: 1px solid var(--grid-line); }
.editorial-hero-intro {
  grid-column: 1;
  grid-row: 2;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--grid-line);
}
.editorial-hero-intro p { margin: 0; max-width: 430px; font-size: .95rem; line-height: 1.35; letter-spacing: -.025em; }
.editorial-hero-action {
  grid-column: 2;
  grid-row: 2;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--grid-line);
  border-left: 1px solid var(--grid-line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
}
.editorial-hero-action:hover svg { transform: translate(4px,-4px); }

.hero-product { position: relative; height: 100%; min-height: 608px; overflow: hidden; background: #d7d3cc; }
.hero-product > img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: grayscale(1) contrast(.9); opacity: .92;
  transition: opacity .35s var(--ease), transform 1s var(--ease), filter .35s var(--ease);
}
.hero-product::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(244,241,235,.12),transparent 42%,rgba(31,19,0,.18)); pointer-events:none; }
.hero-product.is-changing > img { opacity: .25; transform: scale(1.015); }
.hero-product:hover > img { filter: grayscale(.65) contrast(.92); }
.hero-product-stats {
  position: absolute; z-index: 2; top: 86px; left: 0; right: 12%;
  display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--ink); border-right: 1px solid var(--ink);
  background: rgba(244,241,235,.92);
}
.hero-product-stats span { min-height: 67px; padding: 10px 12px; border-left: 1px solid var(--ink); display:flex; flex-direction:column; justify-content:space-between; }
.hero-product-stats span:first-child { border-left: 0; }
.hero-product-stats small { font-family:var(--mono); text-transform:uppercase; font-size:.56rem; }
.hero-product-stats strong { font-size:1.15rem; font-weight:600; text-transform:uppercase; }
.hero-product-panel {
  position:absolute; z-index:3; right:5%; bottom:11%; width:min(84%,420px);
  border:1px solid var(--ink); background:rgba(244,241,235,.95); color:var(--ink); box-shadow:8px 8px 0 var(--ink);
}
.hero-product-panel > p:first-child { margin:0; padding:8px 12px; border-bottom:1px solid var(--ink); background:var(--ink); color:var(--paper); font: .62rem var(--mono); text-transform:uppercase; }
.hero-product-panel h2 { margin:0; padding:14px 14px 4px; font-size:1.25rem; line-height:1; letter-spacing:-.04em; text-transform:uppercase; }
.hero-product-panel h2 + p { margin:0; padding:7px 14px 16px; font-size:.75rem; line-height:1.35; color:var(--ink-soft); }
.hero-product-panel > div { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--ink); }
.hero-product-panel a { padding:11px 12px; display:flex; justify-content:space-between; align-items:center; font:.62rem var(--mono); text-transform:uppercase; }
.hero-product-panel a + a { border-left:1px solid var(--ink); color:var(--accent); }
.hero-product-index { position:absolute; z-index:3; left:20px; bottom:18px; display:flex; align-items:center; gap:9px; color:white; font:.68rem var(--mono); text-shadow:0 1px 4px rgba(0,0,0,.5); }
.hero-product-index i { width:48px; height:1px; background:currentColor; }

.project-ticker {
  width: var(--container); margin: 0 auto; min-height: 86px;
  display:grid; grid-template-columns:64px minmax(0,1fr) 64px;
  border-inline:1px solid var(--grid-line); border-bottom:1px solid var(--grid-line);
}
.project-ticker > button { border:0; background:transparent; border-right:1px solid var(--grid-line); }
.project-ticker > button:last-child { border-right:0; border-left:1px solid var(--grid-line); }
.project-ticker > div { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(150px,1fr); overflow:hidden; }
.project-ticker > div button { min-width:0; border:0; border-right:1px solid var(--grid-line-soft); background:transparent; padding:14px; font:.62rem var(--mono); text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.project-ticker > div button.is-active { background:var(--ink); color:var(--paper); }

.oversight-section { width:var(--container); margin:0 auto; border-inline:1px solid var(--grid-line); }
.oversight-heading { min-height:340px; padding:90px 24px 48px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; }
.oversight-heading h2,.steps-heading h2 { margin:14px 0 0; font-size:clamp(2.8rem,5.2vw,5.6rem); line-height:.91; letter-spacing:-.065em; text-transform:uppercase; font-weight:610; }
.overview-tabs { display:grid; grid-template-columns:repeat(3,1fr); border-block:1px solid var(--grid-line); }
.overview-tab { min-height:74px; padding:12px; border:0; border-right:1px solid var(--grid-line); background:transparent; text-align:left; display:flex; flex-direction:column; justify-content:space-between; font-family:var(--mono); text-transform:uppercase; }
.overview-tab:last-child { border-right:0; }
.overview-tab span { font-size:.62rem; }
.overview-tab strong { font-size:.7rem; font-weight:500; }
.overview-tab.is-active { background:var(--ink); color:var(--paper); }
.overview-stage { min-height:590px; display:grid; grid-template-columns:34% 66%; border-bottom:1px solid var(--grid-line); overflow:hidden; transition:opacity .25s,transform .25s; }
.overview-stage.is-changing { opacity:.25; transform:translateY(6px); }
.overview-copy { padding:60px 26px; display:flex; flex-direction:column; justify-content:flex-end; border-right:1px solid var(--grid-line); }
.overview-copy h3 { margin:14px 0 18px; font-size:clamp(2.5rem,4.6vw,5rem); line-height:.9; letter-spacing:-.065em; text-transform:uppercase; font-weight:610; }
.overview-copy > p { color:var(--ink-soft); max-width:390px; }
.text-link { margin-top:30px; padding-top:15px; border-top:1px solid var(--grid-line); display:flex; align-items:center; justify-content:space-between; color:var(--accent); font:.7rem var(--mono); text-transform:uppercase; }
.overview-media { position:relative; min-width:0; background:#d9d5ce; overflow:hidden; }
.overview-media img { width:100%; height:100%; object-fit:cover; object-position:top center; filter:grayscale(1) contrast(.9); }
.overview-media::after { content:""; position:absolute; inset:0; background:linear-gradient(135deg,transparent 62%,rgba(240,83,101,.2)); }
.overview-media > span { position:absolute; z-index:2; right:22px; top:18px; color:white; font:clamp(3rem,7vw,8rem)/1 var(--mono); mix-blend-mode:difference; }

.steps-section { width:var(--container); margin:0 auto; border-inline:1px solid var(--grid-line); }
.steps-heading { min-height:360px; padding:80px 24px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; border-bottom:1px solid var(--grid-line); }
.steps-grid { display:grid; grid-template-columns:repeat(3,1fr); }
.step { min-height:410px; padding:25px; display:flex; flex-direction:column; border-right:1px solid var(--grid-line); }
.step:last-child { border-right:0; }
.step > span { font:.68rem var(--mono); color:var(--accent); }
.step h3 { margin:auto 0 22px; font-size:clamp(2.4rem,4vw,4.5rem); line-height:.9; letter-spacing:-.06em; text-transform:uppercase; font-weight:610; }
.step p { min-height:58px; max-width:340px; margin:0; padding-top:16px; border-top:1px solid var(--grid-line); color:var(--ink-soft); font-size:.85rem; }

.workshop-cta,.studio-note { width:var(--container); margin:0 auto; display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--grid-line); border-bottom:0; }
.workshop-cta > div,.studio-note > div { min-height:390px; padding:clamp(35px,5vw,72px) 25px; display:flex; flex-direction:column; justify-content:space-between; }
.workshop-cta > div + div,.studio-note > div + div { border-left:1px solid var(--grid-line); }
.workshop-cta h2,.studio-note h2 { max-width:680px; margin:18px 0 0; font-size:clamp(3rem,5.4vw,6rem); line-height:.9; letter-spacing:-.068em; text-transform:uppercase; font-weight:610; }
.workshop-cta p,.studio-note p { max-width:510px; margin:0; color:var(--ink-soft); font-size:1rem; }
.cta-link { min-height:62px; margin-top:auto; padding:0 16px; border:1px solid var(--grid-line); display:flex; align-items:center; justify-content:space-between; color:var(--accent); font:.72rem var(--mono); text-transform:uppercase; }
.studio-note { background:var(--coffee); color:var(--paper); border-color:rgba(244,241,235,.25); }
.studio-note > div + div { border-color:rgba(244,241,235,.25); }
.studio-note .eyebrow,.studio-note p { color:rgba(244,241,235,.65); }
.studio-points { margin-top:auto; }
.studio-points div { padding:13px 0; border-top:1px solid rgba(244,241,235,.22); display:grid; grid-template-columns:48px 1fr; font:.72rem var(--mono); text-transform:uppercase; }
.studio-points span { color:var(--teal); }

.site-footer { width:var(--container); padding:34px 24px; border:1px solid var(--grid-line); margin:0 auto 6px; }
.site-footer .brand-mark { border-radius:0; background:transparent; }
.site-footer nav a { border-radius:0; font-family:var(--mono); font-size:.65rem; text-transform:uppercase; }

/* Carry the grid language into the directory and project pages. */
.directory-hero { width:var(--container); padding:90px 25px 54px; border-inline:1px solid var(--grid-line); border-bottom:1px solid var(--grid-line); }
.directory-hero h1 { text-transform:uppercase; font-weight:620; }
.directory-tools { top:var(--header-height); border-bottom-color:var(--grid-line); }
.directory-tools-inner { width:var(--container); padding:0; border-inline:1px solid var(--grid-line); }
.search-field { max-width:none; }
.search-field input { min-height:58px; border:0; border-right:1px solid var(--grid-line); border-radius:0; background:transparent; font-family:var(--mono); font-size:.72rem; }
.filter-row { gap:0; height:58px; }
.filter-pill { min-height:58px; padding:0 18px; border:0; border-left:1px solid var(--grid-line); border-radius:0; background:transparent; font:.65rem var(--mono); text-transform:uppercase; }
.filter-pill.is-active { background:var(--ink); color:var(--paper); }
.directory-content { width:var(--container); padding:0 0 90px; border-inline:1px solid var(--grid-line); }
.directory-summary { padding:20px 24px; border-bottom:1px solid var(--grid-line); font-family:var(--mono); text-transform:uppercase; font-size:.7rem; }
.project-grid { gap:0; grid-template-columns:repeat(3,1fr); }
.project-card { padding:12px; border:0; border-right:1px solid var(--grid-line); border-bottom:1px solid var(--grid-line); border-radius:0; background:transparent; box-shadow:none; }
.project-card:hover { transform:none; background:rgba(255,255,255,.34); box-shadow:none; }
.project-card-media { border-radius:0; filter:grayscale(1); }
.project-card-body { padding:18px 8px 10px; }
.tag { border-radius:0; font-family:var(--mono); text-transform:uppercase; }
.project-hero { width:var(--container); margin:0 auto; padding:70px 24px; border-inline:1px solid var(--grid-line); border-bottom:1px solid var(--grid-line); }
.project-hero-copy h1 { text-transform:uppercase; font-weight:620; }
.project-preview { border-radius:0; border:1px solid var(--grid-line); box-shadow:none; filter:grayscale(.75); }
.project-info { width:var(--container); margin:0 auto; border-inline:1px solid var(--grid-line); }
.fact-list { border-radius:0; }
.related { width:var(--container); margin:0 auto; padding-inline:24px; border-inline:1px solid var(--grid-line); }

@media (max-width: 980px) {
  .desktop-nav a { min-width:104px; padding-inline:12px; }
  .editorial-hero { grid-template-columns:1fr 1fr; grid-template-rows:auto minmax(500px,65svh) auto; }
  .editorial-hero-title { grid-column:1 / 3; grid-row:1; min-height:430px; border-bottom:1px solid var(--grid-line); }
  .editorial-hero-showcase { grid-column:1 / 3; grid-row:2; border-left:0; }
  .editorial-hero-intro { grid-column:1; grid-row:3; }
  .editorial-hero-action { grid-column:2; grid-row:3; }
  .hero-product { min-height:500px; }
  .overview-stage { grid-template-columns:42% 58%; }
  .project-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 760px) {
  :root { --container:calc(100vw - 8px); --header-height:56px; }
  .site-header { grid-template-columns:1fr auto; }
  .site-header .brand { height:55px; padding-inline:14px; }
  .menu-button { height:55px; display:flex; border-left:1px solid var(--grid-line); border-radius:0; }
  .mobile-menu { top:100%; right:-1px; width:calc(100vw - 8px); border-radius:0; border-color:var(--grid-line); background:var(--paper); }
  .mobile-menu a { border-radius:0; font-family:var(--mono); text-transform:uppercase; }
  .editorial-hero { grid-template-columns:1fr; grid-template-rows:auto minmax(400px,66svh) auto auto; }
  .editorial-hero-title { grid-column:1; min-height:340px; padding:42px 16px; }
  .editorial-hero-title h1 { font-size:clamp(3rem,15vw,5rem); }
  .editorial-hero-showcase { grid-column:1; grid-row:2; }
  .editorial-hero-intro { grid-column:1; grid-row:3; min-height:100px; padding:18px 16px; }
  .editorial-hero-action { grid-column:1; grid-row:4; min-height:64px; padding:14px 16px; border-left:0; }
  .hero-product { min-height:400px; }
  .hero-product-stats { top:22px; right:16px; }
  .hero-product-panel { right:18px; bottom:44px; width:calc(100% - 36px); }
  .project-ticker { grid-template-columns:48px minmax(0,1fr) 48px; min-height:70px; }
  .project-ticker > div { grid-auto-columns:minmax(142px,55vw); overflow-x:auto; }
  .oversight-heading,.steps-heading { min-height:280px; padding:68px 18px 38px; }
  .overview-tabs { grid-template-columns:1fr; }
  .overview-tab { min-height:58px; border-right:0; border-bottom:1px solid var(--grid-line); flex-direction:row; align-items:center; }
  .overview-tab:last-child { border-bottom:0; }
  .overview-stage { min-height:0; grid-template-columns:1fr; }
  .overview-copy { min-height:360px; padding:42px 18px; border-right:0; border-bottom:1px solid var(--grid-line); }
  .overview-media { min-height:330px; }
  .steps-grid { grid-template-columns:1fr; }
  .step { min-height:330px; border-right:0; border-bottom:1px solid var(--grid-line); padding:22px 18px; }
  .step:last-child { border-bottom:0; }
  .workshop-cta,.studio-note { grid-template-columns:1fr; }
  .workshop-cta > div,.studio-note > div { min-height:310px; padding:42px 18px; }
  .workshop-cta > div + div,.studio-note > div + div { border-left:0; border-top:1px solid var(--grid-line); }
  .studio-note > div + div { border-color:rgba(244,241,235,.25); }
  .site-footer { padding-inline:16px; }
  .footer-inner { grid-template-columns:1fr; }
  .site-footer .footer-meta { text-align:left; }
  .directory-hero { padding:60px 16px 34px; }
  .directory-tools-inner { grid-template-columns:1fr; }
  .search-field input { border-right:0; border-bottom:1px solid var(--grid-line); }
  .filter-row { width:100%; overflow-x:auto; }
  .filter-pill { flex:1; min-width:max-content; }
  .project-grid { grid-template-columns:1fr; }
  .project-card { border-right:0; }
  .project-hero { padding-inline:16px; }
}

/* Motion and color layer for the editorial grid. */
:root {
  --accent-games: #c9364d;
  --accent-tools: #7f5088;
  --accent-dm: #34745f;
  --accent-warm: #ef8a42;
  --spring: cubic-bezier(.16, 1, .3, 1);
  --snap: cubic-bezier(.76, 0, .24, 1);
}

body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(240, 83, 101, .11), transparent 27rem),
    radial-gradient(circle at 91% 43%, rgba(155, 106, 162, .09), transparent 31rem),
    radial-gradient(circle at 18% 92%, rgba(77, 143, 121, .08), transparent 29rem),
    radial-gradient(rgba(39, 41, 50, .055) .55px, transparent .55px);
  background-size: auto, auto, auto, 4px 4px;
}

/* Directional page and section entrances replace generic fades. */
::view-transition-old(root) {
  animation: page-out .28s var(--snap) both;
}

::view-transition-new(root) {
  animation: page-in .52s var(--spring) both;
}

@keyframes page-out {
  to { opacity: .65; transform: translateX(-22px) scale(.992); filter: saturate(.6); }
}

@keyframes page-in {
  from { clip-path: inset(0 0 0 100%); transform: translateX(32px); }
  to { clip-path: inset(0); transform: none; }
}

.reveal {
  opacity: 1;
  clip-path: none;
  transform: none;
  transform-origin: top left;
  transition:
    clip-path .86s var(--spring),
    transform .86s var(--spring);
  transition-delay: calc(var(--reveal-order, 0) * 38ms);
}

.reveal.is-reveal-pending {
  clip-path: inset(0 0 100% 0);
  transform: translateY(30px) skewY(.55deg);
}

.reveal.is-visible {
  opacity: 1;
  clip-path: inset(-2px);
  transform: none;
}

/* A quiet field of color follows the pointer through the otherwise open hero. */
.editorial-hero {
  --cursor-x: 27%;
  --cursor-y: 30%;
  background:
    radial-gradient(circle 380px at var(--cursor-x) var(--cursor-y), rgba(240, 83, 101, .13), transparent 67%);
  transition: background-position .18s linear;
}

.editorial-hero-title {
  position: relative;
  overflow: hidden;
}

.editorial-hero-title::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 28px;
  width: clamp(54px, 7vw, 110px);
  height: 8px;
  background: linear-gradient(90deg, var(--accent-games), var(--accent-warm));
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-accent .85s .45s var(--spring) forwards;
}

@keyframes draw-accent {
  to { transform: scaleX(1); }
}

.editorial-hero-title h1 span {
  color: transparent;
  background: linear-gradient(96deg, #d83f55 3%, #9b5e91 61%, #367760 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

/* Navigation and calls to action use moving color fields, not opacity changes. */
.desktop-nav a,
.site-footer nav a,
.editorial-hero-action,
.cta-link,
.text-link,
.icon-button,
.filter-pill {
  background-image: linear-gradient(90deg, rgba(240, 83, 101, .14), rgba(189, 147, 189, .16));
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 0 100%;
  transition:
    color .32s var(--spring),
    background-size .45s var(--spring),
    transform .32s var(--spring),
    border-color .32s var(--spring);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible,
.editorial-hero-action:hover,
.editorial-hero-action:focus-visible,
.cta-link:hover,
.cta-link:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  background-size: 100% 100%;
  background-position: 0 100%;
}

.editorial-hero-action svg,
.cta-link svg,
.text-link svg,
.project-card-links svg {
  transition: transform .42s var(--spring);
}

.editorial-hero-action:hover svg,
.cta-link:hover svg,
.text-link:hover svg,
.project-card-links a:hover svg {
  transform: translate(7px, -3px) rotate(-7deg);
}

/* Featured work shifts through a lateral mask and blooms into full color. */
.hero-product {
  --surface-accent: var(--accent-games);
  isolation: isolate;
}

.hero-product[data-family="tools"] { --surface-accent: var(--accent-tools); }
.hero-product[data-family="dm"] { --surface-accent: var(--accent-dm); }

.hero-product::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(145deg, transparent 42%, color-mix(in srgb, var(--surface-accent) 70%, transparent));
  mix-blend-mode: color;
  opacity: 0;
  transition: opacity .55s var(--spring);
  pointer-events: none;
}

.hero-product:hover::before { opacity: .72; }

.hero-product > img {
  opacity: .94;
  clip-path: inset(0);
  filter: grayscale(.94) contrast(.92) saturate(.78);
  transition:
    clip-path .66s var(--snap),
    transform 1.1s var(--spring),
    filter .7s var(--spring),
    opacity .24s linear;
}

.hero-product:hover > img {
  filter: grayscale(0) contrast(.97) saturate(1.18);
  transform: scale(1.035);
}

.hero-product.is-changing > img {
  opacity: .82;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-5%) scale(1.07);
  transition-duration: .18s, .24s, .24s, .18s;
}

.hero-product-panel,
.hero-product-stats,
.hero-product-index {
  transition:
    transform .58s var(--spring),
    clip-path .5s var(--spring),
    box-shadow .5s var(--spring),
    background-color .5s var(--spring);
}

.hero-product:hover .hero-product-panel {
  transform: translate(-6px, -7px);
  box-shadow: 13px 13px 0 var(--surface-accent);
}

.hero-product.is-changing .hero-product-panel {
  clip-path: inset(0 0 100% 0);
  transform: translateY(24px) rotate(.7deg);
}

.hero-product.is-changing .hero-product-stats { transform: translateX(105%); }
.hero-product.is-changing .hero-product-index { transform: translateX(-125%); }

.project-ticker > button,
.project-ticker > div button {
  position: relative;
  overflow: hidden;
  transition: color .35s var(--spring), background-color .35s var(--spring), transform .35s var(--spring);
}

.project-ticker > button:hover { color: var(--accent-games); transform: scale(1.08); }
.project-ticker > div button:hover { background: rgba(240, 83, 101, .12); color: #b42c40; }
.project-ticker > div button[data-family="tools"]:hover { background: rgba(155, 106, 162, .17); color: #704278; }
.project-ticker > div button[data-family="dm"]:hover { background: rgba(77, 143, 121, .17); color: #2c6a56; }
.project-ticker > div button.is-active { background: var(--accent-games); color: white; }
.project-ticker > div button.is-active[data-family="tools"] { background: var(--accent-tools); }
.project-ticker > div button.is-active[data-family="dm"] { background: var(--accent-dm); }

/* Category switcher: color identifies the three lanes and the panel wipes sideways. */
.overview-tab {
  position: relative;
  overflow: hidden;
  transition: color .38s var(--spring), background-color .38s var(--spring), padding .38s var(--spring);
}

.overview-tab::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--tab-accent, var(--accent-games));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .44s var(--spring);
}

.overview-tab[data-overview="games"] { --tab-accent: var(--accent-games); }
.overview-tab[data-overview="tools"] { --tab-accent: var(--accent-tools); }
.overview-tab[data-overview="dm"] { --tab-accent: var(--accent-dm); }
.overview-tab:hover::before,
.overview-tab:focus-visible::before,
.overview-tab.is-active::before { transform: scaleX(1); }
.overview-tab:hover { padding-left: 22px; }
.overview-tab.is-active { background: var(--tab-accent); color: white; }

.overview-stage {
  --surface-accent: var(--accent-games);
  opacity: 1;
  clip-path: inset(0);
  transform: none;
  transition:
    clip-path .62s var(--spring),
    transform .62s var(--spring),
    background-color .45s var(--spring);
}

.overview-stage[data-family="tools"] { --surface-accent: var(--accent-tools); }
.overview-stage[data-family="dm"] { --surface-accent: var(--accent-dm); }
.overview-stage.is-changing {
  opacity: 1;
  clip-path: inset(0 0 0 98%);
  transform: translateX(22px) skewX(-1deg);
  transition-duration: .17s;
}

.overview-media img {
  filter: grayscale(.88) contrast(.91) saturate(.82);
  transform: scale(1.015);
  transition: transform 1.1s var(--spring), filter .72s var(--spring);
}

.overview-stage:hover .overview-media img {
  filter: grayscale(0) contrast(.96) saturate(1.15);
  transform: scale(1.055) translateX(-1%);
}

.overview-media::after {
  background: linear-gradient(135deg, transparent 54%, color-mix(in srgb, var(--surface-accent) 42%, transparent));
  transition: background .5s var(--spring);
}

.overview-copy h3,
.overview-copy .eyebrow,
.text-link { transition: color .45s var(--spring), transform .45s var(--spring); }
.overview-stage:hover .overview-copy h3 { transform: translateX(8px); color: var(--surface-accent); }
.overview-stage .text-link { color: var(--surface-accent); }

/* Process cards carry a different accent and invert as the pointer crosses them. */
.step {
  --step-accent: var(--accent-games);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color .5s var(--spring), transform .5s var(--spring);
}

.step:nth-child(2) { --step-accent: var(--accent-tools); }
.step:nth-child(3) { --step-accent: var(--accent-dm); }
.step::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--step-accent);
  transform: translateY(calc(100% - 7px));
  transition: transform .58s var(--spring);
}

.step:hover::before { transform: translateY(0); }
.step:hover { color: white; transform: translateY(-7px); }
.step h3,
.step p,
.step > span { transition: color .38s var(--spring), transform .48s var(--spring), border-color .38s var(--spring); }
.step:hover h3 { transform: translateX(10px); }
.step:hover p { color: rgba(255,255,255,.86); border-color: rgba(255,255,255,.48); }
.step:hover > span { color: white; transform: translateX(8px); }

/* Directory and related cards: category color, depth, and pointer-responsive light. */
.project-card {
  --card-accent: var(--accent-tools);
  --pointer-x: 50%;
  --pointer-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform .46s var(--spring),
    box-shadow .46s var(--spring),
    background-color .4s var(--spring),
    color .4s var(--spring);
}

.project-card[data-family="games"] { --card-accent: var(--accent-games); }
.project-card[data-family="dm"] { --card-accent: var(--accent-dm); }
.project-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 88%, white) 0%, var(--card-accent) 100%);
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path .52s var(--spring);
}

.project-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: radial-gradient(circle 190px at var(--pointer-x) var(--pointer-y), rgba(255,255,255,.36), transparent 72%);
  opacity: 0;
  transition: opacity .32s ease;
  pointer-events: none;
}

.project-card:hover,
.project-card:focus-within {
  z-index: 5;
  color: white;
  background: var(--card-accent);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--card-accent) 28%, transparent);
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-7px) scale(1.015);
}

.project-card:hover::before,
.project-card:focus-within::before {
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}

.project-card:hover::after { opacity: 1; }
.project-card-media,
.project-card-body { position: relative; z-index: 1; transform: translateZ(1px); }
.project-card-media {
  filter: grayscale(.96) contrast(.92) saturate(.72);
  transition: filter .62s var(--spring), transform .62s var(--spring), clip-path .62s var(--spring);
  clip-path: inset(0);
}

.project-card:hover .project-card-media,
.project-card:focus-within .project-card-media {
  filter: grayscale(0) contrast(.98) saturate(1.2);
  transform: translateY(-3px);
  clip-path: inset(5px);
}

.project-card-media img { transition: transform .9s var(--spring), filter .62s var(--spring); }
.project-card:hover .project-card-media img,
.project-card:focus-within .project-card-media img { transform: scale(1.08) translateY(-1.5%); }
.project-card h3,
.project-card p,
.project-card-meta,
.project-card-links,
.project-card-links a:last-child { transition: color .35s var(--spring), transform .45s var(--spring); }
.project-card:hover h3,
.project-card:focus-within h3 { transform: translateX(7px); }
.project-card:hover p,
.project-card:hover .project-card-meta,
.project-card:hover .project-card-links a:last-child,
.project-card:focus-within p,
.project-card:focus-within .project-card-meta,
.project-card:focus-within .project-card-links a:last-child { color: rgba(255,255,255,.83); }

.project-rail { padding-top: 14px; }

/* Project pages reveal their own family color rather than staying grey. */
.project-detail-pink { --project-accent: var(--accent-games); }
.project-detail-violet { --project-accent: var(--accent-tools); }
.project-detail-teal { --project-accent: var(--accent-dm); }
.project-preview {
  position: relative;
  overflow: hidden;
  filter: grayscale(.72);
  transition: filter .72s var(--spring), transform .72s var(--spring), box-shadow .72s var(--spring);
}
.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, transparent 55%, color-mix(in srgb, var(--project-accent) 38%, transparent));
  mix-blend-mode: color;
  opacity: .35;
  transition: opacity .55s var(--spring);
  pointer-events: none;
}
.project-preview:hover {
  filter: grayscale(0);
  transform: translate(-5px, -7px) rotate(-.35deg);
  box-shadow: 12px 12px 0 var(--project-accent);
}
.project-preview:hover::after { opacity: .75; }

@media (max-width: 760px) {
  .editorial-hero-title::after { left: 16px; bottom: 16px; height: 6px; }
  .step:hover { transform: none; }
  .project-card:hover,
  .project-card:focus-within {
    transform: translateY(-3px);
  }
}

@media (hover: none) {
  .hero-product > img,
  .overview-media img,
  .project-card-media { filter: grayscale(.35) saturate(1.02); }
  .project-card::before { clip-path: polygon(0 98%, 100% 96%, 100% 100%, 0 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-hero-title::after { animation: none; transform: scaleX(1); }
  .reveal,
  .reveal.is-visible { clip-path: none; transform: none; }
  .project-card { will-change: auto; }
}
