:root {
  --bg: #000;
  --fg: #f0ede8;
  --muted: #808080;
  --line: rgba(240, 237, 232, 0.18);
  --panel: rgba(240, 237, 232, 0.045);
  --max: 1392px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", "Courier New", monospace;
  letter-spacing: 0;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: min(100%, 1440px);
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand,
.nav-links a {
  padding: 8px;
  font-size: 16px;
  line-height: 1.25;
}

.menu-toggle {
  display: none;
}

.brand:focus-visible,
.nav-links a:focus-visible,
.menu-toggle:focus-visible,
.scroll-link:focus-visible,
.contact-panel a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 5px;
}

.nav-links {
  display: flex;
  gap: 64px;
  align-items: center;
}

.nav-links a {
  color: var(--fg);
}

.resume-download-link {
  position: relative;
}

.resume-download-link::after {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 20;
  padding: 6px 8px;
  border: 1px solid #f0ede8;
  background: #f0ede8;
  color: #000;
  content: "Click to download\A Last updated 20th May 2026";
  font-size: 12px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  text-align: center;
  white-space: pre;
}

.resume-download-link:hover::after,
.resume-download-link:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mobile-home-link {
  display: none;
}

.nav-links a.is-active,
.nav-links a[aria-current="page"],
.brand.is-active,
.brand[aria-current="page"] {
  background: #fff;
  color: #000;
}

.nav-links a:hover,
.contact-action:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-links a.is-active:hover,
.nav-links a[aria-current="page"]:hover,
.brand.is-active:hover,
.brand[aria-current="page"]:hover {
  color: #000;
}

.hero {
  display: grid;
  min-height: 928px;
  place-items: center;
  padding: 112px 24px 160px;
}

.hero-copy {
  width: min(100%, 1170px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(34px, 10.42vw, 150px);
  font-weight: 500;
  line-height: 1.14;
  white-space: nowrap;
}

.hero p {
  margin: 50px 0 0;
  color: var(--fg);
  font-size: clamp(20px, 2.22vw, 32px);
  line-height: 1.25;
}

.typing-line {
  display: block;
  min-height: 2.5em;
}

.typing-line span:first-child {
  overflow-wrap: anywhere;
}

.typing-cursor {
  display: inline-block;
  width: 0.08em;
  height: 1.1em;
  margin-left: 0.18em;
  background: var(--fg);
  animation: cursor-blink 0.9s steps(1) infinite;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 50px;
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1;
}

.scroll-link img {
  width: 14px;
  height: 24px;
  transform: rotate(90deg);
}

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

.section-shell h2 {
  margin: 0;
  font-size: clamp(32px, 2.78vw, 40px);
  line-height: 1.25;
}

.about {
  padding: 48px 0 88px;
  border-top: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 474px);
  gap: 36px;
  align-items: start;
  margin-top: 48px;
}

.about-labels {
  display: none;
}

.about-content {
  display: grid;
  gap: 56px;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(92px, 170px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.info-row h3 {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 100;
  line-height: 1.25;
}

.info-row p {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.23;
}

.career-list div {
  display: grid;
  gap: 0;
}

.career-list p {
  margin-top: 26px;
}

.career-list p:first-child {
  margin-top: 0;
}

.career-list span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
}

.portrait-frame {
  width: 100%;
  margin: 0;
  opacity: 0.9;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 474 / 696;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}

.work,
.contact {
  padding: 88px 0;
  border-top: 0;
}

.section-heading {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-heading p,
.contact-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--fg);
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.35;
}

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

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  align-items: start;
  margin-top: 50px;
}

.work-card {
  display: flex;
  min-height: 937px;
  flex-direction: column;
  gap: 32px;
  padding: 16px;
  border: 1px solid var(--muted);
  color: inherit;
}

.work-card:hover .work-card-link,
.work-card:focus-visible .work-card-link {
  background: var(--fg);
}

.work-card-image {
  width: 100%;
  aspect-ratio: 639 / 455;
  background: #fff;
  object-fit: cover;
}

.work-card-copy {
  display: grid;
  gap: 24px;
}

.work-card-copy h3 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(24px, 2.22vw, 32px);
  font-weight: 400;
  line-height: 1.25;
}

.work-card-copy p,
.work-card-copy span {
  margin: 0;
  color: var(--fg);
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.25;
}

.work-card-copy span {
  color: var(--muted);
}

.work-card-link {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: auto;
  padding: 8px;
  background: #fff;
  color: #000;
  font-size: 24px;
  line-height: 1.25;
}

.work-card-link img {
  width: 24px;
  height: 24px;
  transform: rotate(90deg);
}

.project-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.project-card span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
}

.project-card h3 {
  margin: 52px 0 18px;
  color: #fff;
  font-size: clamp(22px, 1.95vw, 28px);
  font-weight: 400;
  line-height: 1.2;
}

.project-card p {
  margin: 0;
  color: var(--fg);
  font-size: 18px;
  line-height: 1.35;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.standalone-page {
  padding-top: 96px;
}

.standalone-page .work,
.standalone-page .contact {
  border-top: 0;
}

.case-page {
  padding-top: 128px;
}

.case-toc {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  transform: none;
  justify-items: end;
  gap: 8px;
}

.case-toc-toggle {
  grid-row: 2;
  padding: 8px 12px;
  border: 1px solid #f0ede8;
  background: #f0ede8;
  color: #000;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  cursor: pointer;
}

.case-toc.is-open .case-toc-toggle {
  background: #000;
  color: #f0ede8;
}

.case-toc-menu {
  grid-row: 1;
  display: none;
  width: min(360px, calc(100vw - 48px));
  max-height: min(620px, calc(100vh - 128px));
  overflow: auto;
  padding: 16px;
  border: 1px solid #000;
  background: #f0ede8;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.case-toc.is-open .case-toc-menu {
  display: grid;
  gap: 8px;
}

.case-toc-menu a {
  display: block;
  padding: 6px 8px;
  color: #000;
  font-size: 15px;
  line-height: 1.25;
}

.case-toc-menu a:hover,
.case-toc-menu a:focus-visible {
  background: #000;
  color: #f0ede8;
}

.case-toc-sub {
  padding-left: 24px !important;
  color: #5c5c5c !important;
  font-size: 13px !important;
}

.case-toc-sub:hover,
.case-toc-sub:focus-visible {
  color: #f0ede8 !important;
}

.case-section {
  display: grid;
  gap: 40px;
  padding: 0 0 60px;
}

.case-section + .case-section {
  padding-top: 60px;
  border-top: 0;
}

.case-hero h1 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(44px, 5.56vw, 80px);
  line-height: 1.1;
}

.case-hero-image,
.case-feature-image {
  width: min(100%, 750px);
  justify-self: center;
  object-fit: cover;
}

.case-hero-image {
  aspect-ratio: 750 / 500;
}

.case-feature-image {
  aspect-ratio: 749 / 500;
}

.case-wide-image {
  width: 100%;
  max-height: 435px;
  object-fit: cover;
  object-position: center 18%;
  margin: 0 0 88px;
}

.case-heading {
  margin: 0;
  color: var(--fg);
  font-size: clamp(32px, 2.78vw, 40px);
  line-height: 1.25;
}

.case-facts {
  display: grid;
  gap: 40px;
}

.case-row {
  display: grid;
  grid-template-columns: minmax(180px, 350px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.case-row h2,
.case-row h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 1.67vw, 24px);
  font-weight: 100;
  line-height: 1.25;
}

.case-row p,
.case-row li {
  color: #fff;
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.35;
}

.case-row p {
  margin: 0 0 1.25em;
}

.case-row p:last-child {
  margin-bottom: 0;
}

.case-row ul {
  margin: 0;
  padding-left: 1.45em;
}

.case-row-label-only {
  grid-template-columns: minmax(180px, 350px);
}

.case-link {
  color: #0c8ce9;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.case-card-grid-stakeholders {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-card-grid article {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 230px;
  padding: 24px;
  border: 1px solid #f0ede8;
  background: var(--panel);
}

.case-card-grid h3 {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.case-card-grid p,
.case-card-grid li {
  color: var(--fg);
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.35;
}

.case-card-grid p,
.case-card-grid ul {
  margin: 0;
}

.case-card-grid ul {
  padding-left: 1.25em;
}

.eightanswers-page .case-heading {
  font-weight: 700;
}

.logo-board {
  position: relative;
  display: grid;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.logo-full {
  width: min(52vw, 540px);
  min-width: 260px;
  max-width: none;
}

.swatch {
  position: absolute;
  display: flex;
  min-width: 150px;
  min-height: 68px;
  padding: 14px;
  color: #000;
  font-size: 18px;
  line-height: 1.2;
}

.swatch-white {
  top: 0;
  left: 0;
  background: #fff;
}

.swatch-gray {
  bottom: 0;
  left: 0;
  min-width: 300px;
  align-items: flex-end;
  justify-content: flex-start;
  background: #5c5c5c;
}

.swatch-blue {
  top: 0;
  right: 0;
  min-width: 300px;
  min-height: 108px;
  align-items: flex-end;
  justify-content: flex-end;
  background: #0c8ce9;
}

.swatch-offwhite {
  right: 0;
  bottom: 0;
  min-width: 240px;
  min-height: 82px;
  align-items: flex-end;
  justify-content: flex-end;
  background: #f8f9fa;
}

.eightanswers-ui-logo-exploration img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #f0ede8;
  background: #fff;
}

.screen-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.screen-item {
  display: grid;
  gap: 32px;
  align-content: start;
  padding: 24px;
  border: 1px solid #f0ede8;
  background: var(--panel);
}

.screen-item h3 {
  margin: 0;
  color: #f0ede8;
  font-size: clamp(20px, 1.67vw, 24px);
  font-weight: 100;
  line-height: 1.25;
}

.screen-item p {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.35;
}

.screen-item img {
  width: 100%;
  justify-self: center;
  object-fit: contain;
}

.screen-carousel {
  position: relative;
  display: grid;
  width: 100%;
  gap: 12px;
}

.screen-carousel-track {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 703 / 500;
}

.screen-carousel-track img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.screen-carousel-track img.is-active {
  position: relative;
  opacity: 1;
}

/* Bottom-align images specifically for Cloud Sync & Team Collaboration */
#cloud-sync .screen-carousel-track img {
  object-position: center bottom;
}

.screen-carousel-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid #fff;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.screen-carousel-button:hover,
.screen-carousel-button:focus-visible {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.screen-carousel-button-prev {
  left: 12px;
}

.screen-carousel-button-next {
  right: 12px;
}

.screen-item .screen-carousel-count {
  margin: 0;
  justify-self: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.report-image {
  aspect-ratio: 4096 / 2913;
  max-height: none;
}

.status-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.status-image-grid img {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  max-width: 100%;
  object-fit: contain;
}

#status-of-project .status-image-grid {
  aspect-ratio: 703 / 500;
}

#status-of-project .status-image-grid img {
  height: 100%;
}

.whatihad-page {
  --whatihad-accent: #f39299;
}

.whatihad-page .case-heading {
  font-weight: 700;
}

.whatihad-hero h1 {
  font-size: clamp(44px, 5.56vw, 80px);
  font-weight: 700;
}

.whatihad-link {
  color: #0c8ce9;
}

.whatihad-link-arrow {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 16px;
  transform: rotate(45deg) translateY(4px);
}

.whatihad-hero-media {
  width: min(100%, 750px);
  margin: 0;
  justify-self: center;
  overflow: hidden;
  background: #111;
}

.whatihad-hero-media img {
  width: 100%;
  aspect-ratio: 750 / 500;
  object-fit: cover;
}

.bellyo-ai-block {
  display: grid;
  gap: 32px;
  width: 100%;
}

.bellyo-download-area {
  position: relative;
  width: min(100%, 520px);
  justify-self: center;
  cursor: pointer;
}

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

.bellyo-mascot-grid a {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #f0ede8;
  background: var(--panel);
}

.bellyo-mascot-grid a:hover,
.bellyo-mascot-grid a:focus-visible {
  background: rgba(240, 237, 232, 0.1);
}

.bellyo-mascot-grid img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.bellyo-refresh-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  justify-self: center;
  padding: 10px 16px;
  border: 1px solid #f0ede8;
  border-radius: 0;
  background: #f0ede8;
  color: #000;
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  cursor: pointer;
}

.bellyo-refresh-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-right-color: currentColor;
  border-bottom-color: currentColor;
  border-left-color: currentColor;
  border-radius: 50%;
}

.bellyo-refresh-icon::after {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-bottom: 6px solid currentColor;
  border-left: 4px solid transparent;
  content: "";
  transform: translateX(-50%);
}

.bellyo-refresh-button.is-loading .bellyo-refresh-icon {
  animation: bellyo-refresh-spin 700ms linear infinite;
}

.bellyo-refresh-button:hover,
.bellyo-refresh-button:focus-visible {
  background: #000;
  color: #f0ede8;
}

.bellyo-design-note {
  display: grid;
  gap: 1.25em;
  max-width: 1040px;
  justify-self: center;
  padding: 24px;
  border: 1px solid #f0ede8;
  background: var(--panel);
}

.bellyo-design-note p {
  margin: 0;
  color: var(--fg);
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.35;
}

@keyframes bellyo-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.download-cursor-label {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  display: none;
  padding: 8px 10px;
  border: 1px solid #f0ede8;
  background: #f0ede8;
  color: #000;
  font-size: 14px;
  line-height: 1.2;
  pointer-events: none;
  transform: translate(14px, 14px);
  white-space: nowrap;
}

.bellyo-download-area:hover .download-cursor-label,
.bellyo-download-area:focus-within .download-cursor-label {
  display: block;
}

.whatihad-architecture-section {
  display: grid;
  gap: 50px;
}

.whatihad-architecture-design {
  display: grid;
  width: min(100%, 967px);
  gap: 50px;
  justify-self: center;
}

.whatihad-ia-screen-band {
  width: 100%;
  object-fit: cover;
}

.whatihad-ia-screen-band-main {
  aspect-ratio: 967 / 644;
}

.whatihad-ia-screen-band-secondary {
  width: min(100%, 750px);
  aspect-ratio: 750 / 500;
  justify-self: center;
}

.whatihad-figma-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 50px;
  padding: 0 16px 16px;
  border: 1px solid #fff;
}

.whatihad-figma-panel h3 {
  width: 283px;
  margin: 0;
  border: 1px solid #fff;
  color: #fff;
  font-size: 24px;
  font-weight: 100;
  line-height: 30px;
  text-align: center;
}

.whatihad-ia-export {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.whatihad-research-stack {
  display: grid;
  gap: 40px;
}

.whatihad-research-stack p {
  margin-bottom: 12px;
}

.whatihad-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.whatihad-insight-grid article,
.whatihad-basics-grid article {
  border: 1px solid #f0ede8;
  background: var(--panel);
}

.whatihad-insight-grid article {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 230px;
  padding: 24px;
}

.whatihad-insight-grid h4 {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.whatihad-insight-grid ul {
  margin: 0;
  padding-left: 1.25em;
}

.whatihad-insight-grid li {
  color: var(--fg);
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.35;
}

.whatihad-basics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.whatihad-basics-grid article {
  display: grid;
  min-height: 130px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  color: var(--fg);
  text-align: center;
}

.whatihad-basics-grid h4,
.whatihad-basics-grid p {
  margin: 0;
}

.whatihad-basics-grid h4 {
  font-size: clamp(18px, 1.67vw, 24px);
  font-weight: 400;
  line-height: 1.25;
}

.whatihad-basics-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.whatihad-ui-exploration {
  display: grid;
  gap: 18px;
}

.whatihad-ui-exploration img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #f0ede8;
  background: var(--panel);
}

.whatihad-reflection {
  display: grid;
  gap: 50px;
}

.whatihad-reflection-stack {
  display: grid;
  gap: 50px;
}

.whatihad-reflection-row {
  display: grid;
  grid-template-columns: minmax(180px, 350px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.whatihad-reflection-row h4 {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.67vw, 24px);
  font-weight: 100;
  line-height: 1.25;
}

.whatihad-reflection-row ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-left: 1.45em;
}

.whatihad-reflection-row li,
.whatihad-final-takeaway p {
  color: #fff;
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.35;
}

.whatihad-reflection-row strong {
  font-weight: 400;
}

.whatihad-final-takeaway {
  display: grid;
  gap: 50px;
}

.whatihad-final-takeaway p {
  max-width: 100%;
  margin: 0;
}

.whatihad-feature-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.whatihad-feature-card-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 210px;
  padding: 24px;
  border: 1px solid #f0ede8;
  background: var(--panel);
}

.whatihad-feature-card-grid h4,
.whatihad-feature-card-grid p {
  margin: 0;
}

.whatihad-feature-card-grid h4 {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.whatihad-feature-card-grid p {
  color: var(--fg);
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.35;
}

.yarddeck-page .case-heading,
.yarddeck-page .case-hero h1 {
  font-weight: 700;
}

.yarddeck-hero-media {
  width: min(100%, 750px);
  margin: 0;
  justify-self: center;
}

.yarddeck-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.yarddeck-contribution {
  display: grid;
  gap: 16px;
}

.yarddeck-contribution p {
  margin: 0;
}

.yarddeck-ui-exploration img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #f0ede8;
  background: var(--panel);
}

.yarddeck-information-architecture {
  aspect-ratio: 1397 / 1422;
  overflow: hidden;
  border: 1px solid #f0ede8;
  background: var(--panel);
}

.yarddeck-information-architecture img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -6.6%;
}

.yarddeck-reflection-row h4 {
  color: #fff;
  font-weight: 100;
}

.case-page {
  padding-top: 96px;
}

.case-hero {
  display: grid;
  min-height: 680px;
  align-items: end;
  padding: 48px 0 88px;
}

.case-back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  align-self: start;
  color: var(--fg);
  font-size: 18px;
  line-height: 1.25;
}

.case-back-link img {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
}

.case-back-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.case-hero-copy {
  display: grid;
  gap: 32px;
}

.case-hero-copy h1 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(54px, 11.4vw, 164px);
  font-weight: 500;
  line-height: 0.96;
}

.case-hero-copy p {
  max-width: 920px;
  margin: 0;
  color: var(--fg);
  font-size: clamp(18px, 1.95vw, 28px);
  line-height: 1.35;
}

.case-hero-copy p:first-child {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
}

.case-media {
  padding: 0 0 88px;
}

.case-media img {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
}

.case-summary,
.case-section {
  padding: 88px 0;
  border-top: 0;
}

.case-summary h2,
.case-section h2 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(32px, 2.78vw, 40px);
  font-weight: 500;
  line-height: 1.25;
}

.case-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 50px;
}

.case-summary-grid article,
.case-feature-grid article {
  display: grid;
  align-content: start;
  min-height: 184px;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.case-summary-grid span,
.case-feature-grid span,
.case-section-heading span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
}

.case-summary-grid p,
.case-feature-grid p,
.case-text-grid p,
.case-outcome > p {
  margin: 0;
  color: var(--fg);
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.35;
}

.case-section-heading {
  display: grid;
  grid-template-columns: minmax(68px, 120px) minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
}

.case-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  margin-top: 50px;
  padding-left: min(152px, 10.9vw);
}

.case-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 50px;
}

.case-outcome > p {
  max-width: 1010px;
  margin-top: 50px;
  padding-left: min(152px, 10.9vw);
}

.contact-copy {
  display: grid;
  gap: 1.25em;
}

.contact-copy p {
  max-width: none;
}

.contact-actions {
  display: grid;
  gap: 32px;
  justify-items: center;
}

.contact-action {
  display: inline-flex;
  width: min(100%, 500px);
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 8px 32px;
  background: #fff;
  color: #000;
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-action-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.contact-action-arrow {
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
}

.play {
  padding: 32px 0 88px;
}

.play-page {
  padding-top: 96px;
}

.play-heading {
  display: grid;
  gap: 12px;
}

.play-heading h1 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(44px, 5.56vw, 80px);
  font-weight: 700;
  line-height: 1.1;
}

.play-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.35;
}

.cricket-game {
  position: relative;
  width: 100%;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  font-family: inherit;
}

.cricket-canvas,
.cricket-overlay,
.cricket-screen {
  position: absolute;
  inset: 0;
}

.cricket-canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.cricket-overlay {
  pointer-events: none;
}

.cricket-hud {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 8px;
  width: min(180px, calc(100% - 40px));
}

.cricket-hud-card {
  padding: 12px 14px;
  border: 1px solid rgba(240, 237, 232, 0.16);
  background: rgba(0, 0, 0, 0.72);
}

.cricket-hud-card span,
.cricket-hud-card em {
  display: block;
  color: rgba(240, 237, 232, 0.42);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 2px;
  line-height: 1.3;
  text-transform: uppercase;
}

.cricket-hud-card strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.cricket-restart-control {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 10px 14px;
  border: 1px solid rgba(240, 237, 232, 0.42);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: inherit;
  font-size: 11px;
  letter-spacing: 3px;
  line-height: 1.2;
  pointer-events: auto;
  text-transform: uppercase;
  cursor: pointer;
}

.cricket-restart-control:hover,
.cricket-restart-control:focus-visible {
  border-color: #fff;
  background: rgba(240, 237, 232, 0.08);
}

.cricket-delivery {
  position: absolute;
  top: 74px;
  left: 24px;
  color: rgba(255, 214, 91, 0);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.cricket-message {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90%, 720px);
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: 6px;
  line-height: 1;
  opacity: 0;
  text-align: center;
  text-shadow: 0 0 42px rgba(255, 255, 255, 0.32);
  text-transform: uppercase;
  transition: opacity 140ms ease;
}

.cricket-submessage {
  position: absolute;
  top: calc(50% + 58px);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(240, 237, 232, 0.48);
  font-size: 12px;
  letter-spacing: 4px;
  opacity: 0;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 140ms ease;
  white-space: nowrap;
}

.cricket-ball-row {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  max-width: calc(100% - 40px);
  transform: translateX(-50%);
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.cricket-ball-row span {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(240, 237, 232, 0.24);
}

.cricket-ball-row span.used {
  background: rgba(240, 237, 232, 0.22);
}

.cricket-ball-row span.wicket {
  border-color: #ff4545;
  background: #ff4545;
}

.cricket-instruction {
  position: absolute;
  bottom: 58px;
  left: 50%;
  width: min(90%, 720px);
  transform: translateX(-50%);
  color: rgba(240, 237, 232, 0.34);
  font-size: 11px;
  letter-spacing: 4px;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.cricket-screen {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 32px;
  background: #000;
  text-align: center;
}

.cricket-screen-end {
  border: 1px solid transparent;
  transition: border-color 180ms ease;
}

.cricket-screen[hidden] {
  display: none;
}

.cricket-screen h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 800;
  letter-spacing: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.cricket-screen p,
.cricket-screen span,
.cricket-end-stats span {
  margin: 0;
  color: rgba(240, 237, 232, 0.44);
  font-size: 12px;
  letter-spacing: 4px;
  line-height: 1.45;
  text-transform: uppercase;
}

.cricket-screen button {
  margin-top: 34px;
  padding: 14px 34px;
  border: 1px solid rgba(240, 237, 232, 0.62);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  letter-spacing: 4px;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, letter-spacing 180ms ease;
}

.cricket-screen button:hover,
.cricket-screen button:focus-visible {
  border-color: #fff;
  background: rgba(240, 237, 232, 0.08);
  letter-spacing: 5px;
}

.cricket-screen-end strong {
  color: #fff;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.cricket-screen-loss {
  border-color: #ff4545;
  box-shadow: inset 0 0 0 1px rgba(255, 69, 69, 0.35), inset 0 0 80px rgba(255, 69, 69, 0.12);
}

.cricket-screen-loss h3,
.cricket-screen-loss strong {
  color: #ff4545;
  text-shadow: 0 0 34px rgba(255, 69, 69, 0.38);
}

.cricket-screen-loss p {
  color: rgba(255, 105, 105, 0.78);
}

.cricket-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cricket-confetti span {
  position: absolute;
  top: -18px;
  left: var(--x);
  width: 8px;
  height: 14px;
  opacity: 0;
  transform: translate3d(0, -20px, 0) rotate(0deg);
  animation: cricket-confetti-fall var(--duration) var(--delay) ease-in forwards;
}

@keyframes cricket-confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 720px, 0) rotate(var(--spin));
  }
}

.cricket-end-stats {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .play-page {
    padding-top: 88px;
  }

  .play {
    padding-top: 24px;
  }

  .cricket-game {
    min-height: 680px;
  }

  .cricket-hud {
    top: 16px;
    right: 16px;
    left: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
  }

  .cricket-hud-card {
    min-width: 0;
    padding: 10px;
  }

  .cricket-hud-card span,
  .cricket-hud-card em {
    font-size: 9px;
    letter-spacing: 1.4px;
  }

  .cricket-hud-card strong {
    font-size: 24px;
  }

  .cricket-restart-control {
    top: 104px;
    left: 16px;
    padding: 8px 10px;
    font-size: 10px;
    letter-spacing: 2px;
  }

  .cricket-delivery {
    top: 112px;
    left: auto;
    right: 16px;
    max-width: calc(100% - 132px);
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cricket-ball-row {
    bottom: 16px;
    max-width: min(420px, calc(100% - 28px));
    gap: 4px;
  }

  .cricket-ball-row span {
    width: 9px;
    height: 9px;
  }

  .cricket-instruction {
    bottom: 72px;
  }
}

@media (max-width: 640px) {
  .cricket-game {
    min-height: 680px;
  }

  .cricket-hud {
    gap: 6px;
  }

  .cricket-hud-card {
    padding: 8px 7px;
  }

  .cricket-hud-card span,
  .cricket-hud-card em {
    font-size: 8px;
    letter-spacing: 0.8px;
  }

  .cricket-hud-card strong {
    font-size: 21px;
  }

  .cricket-message {
    font-size: clamp(34px, 12vw, 54px);
    letter-spacing: 3px;
  }

  .cricket-submessage,
  .cricket-instruction {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .cricket-instruction {
    bottom: 82px;
  }

  .cricket-ball-row {
    bottom: 16px;
    max-width: 196px;
    gap: 3px;
  }

  .cricket-ball-row span {
    width: 8px;
    height: 8px;
  }
}

.site-footer {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #fff;
  font-size: clamp(9px, 0.84vw, 12px);
  line-height: 1.25;
}

.site-footer p + p {
  margin-top: 1.25em;
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-links {
    gap: 20px;
  }

  .brand,
  .nav-links a {
    font-size: 14px;
  }

  .hero {
    min-height: 760px;
    padding-bottom: 112px;
  }

  .section-shell {
    width: min(100% - 32px, var(--max));
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-row h3 {
    font-size: 18px;
  }

  .portrait-frame {
    max-width: 474px;
  }

  .project-grid,
  .work-grid,
  .case-summary-grid,
  .case-feature-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: auto;
  }

  .case-hero {
    min-height: 560px;
    padding-bottom: 64px;
  }

  .case-text-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .case-outcome > p {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
  }

  .nav-links {
    position: fixed;
    z-index: 9;
    top: 0;
    right: 0;
    display: flex;
    width: min(78vw, 320px);
    height: 100svh;
    transform: translateX(100%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 26px;
    padding: 88px 24px 40px;
    border-left: 1px solid rgba(0, 0, 0, 0.18);
    background: #f0ede8;
    color: var(--bg);
    transition: transform 240ms ease;
  }

  .nav-links a {
    width: 100%;
    color: var(--bg);
    font-size: 24px;
  }

  .mobile-home-link {
    display: block;
  }

  .nav-links a.is-active,
  .nav-links a[aria-current="page"] {
    background: var(--bg);
    color: #f0ede8;
  }

  .nav-links a.is-active:hover,
  .nav-links a[aria-current="page"]:hover {
    color: #f0ede8;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .menu-toggle {
    position: relative;
    z-index: 11;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 220ms ease, opacity 180ms ease;
  }

  .menu-toggle span:nth-child(1) {
    transform: translateY(-8px);
  }

  .menu-toggle span:nth-child(3) {
    transform: translateY(8px);
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg);
  }

  .menu-toggle.is-open span {
    background: var(--bg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .hero {
    min-height: 100svh;
    place-items: center start;
    padding: 112px 16px 96px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1 {
    white-space: normal;
  }

  .typing-line {
    text-align: left;
  }

  .hero p,
  .scroll-link {
    margin-top: 32px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .contact-actions {
    justify-items: stretch;
  }

  .contact-action {
    width: 100%;
    padding-inline: 16px;
  }

  .project-card {
    min-height: 220px;
  }

  .case-page {
    padding-top: 80px;
  }

  .case-hero {
    min-height: 520px;
    padding: 32px 0 56px;
  }

  .case-hero-copy {
    gap: 24px;
  }

  .case-summary,
  .case-section {
    padding: 64px 0;
  }

  .case-media {
    padding-bottom: 64px;
  }

  .case-section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-text-grid,
  .case-feature-grid,
  .case-summary-grid,
  .case-outcome > p {
    margin-top: 32px;
  }

  .case-summary-grid article,
  .case-feature-grid article {
    min-height: auto;
    padding: 20px;
  }

  .screen-carousel-button {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .screen-carousel-button-prev {
    left: 8px;
  }

  .screen-carousel-button-next {
    right: 8px;
  }

  .status-image-grid {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

}

.case-page .case-section {
  display: grid;
  gap: 50px;
  border-top: 0;
}

.case-page .case-section + .case-section {
  border-top: 0;
}

@media (max-width: 980px) {
  .case-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .logo-board {
    min-height: 250px;
    padding: 54px 0;
  }

  .logo-full {
    width: 68vw;
    min-width: 210px;
  }

  .swatch {
    min-width: 104px;
    font-size: 12px;
  }
}

.about,
.work,
.contact,
.case-section,
.case-section + .case-section,
.case-summary,
.standalone-page .work,
.standalone-page .contact,
.case-page .case-section,
.case-page .case-section + .case-section {
  border-top: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.case-page {
  padding-top: 128px;
}

.case-page .case-section {
  gap: 50px;
  padding: 0 0 80px;
  border-top: 0;
}

.case-page .case-section + .case-section {
  padding-top: 0;
  border-top: 0;
}

.case-page .case-facts {
  gap: 40px;
}

.case-page .case-row {
  grid-template-columns: minmax(180px, 350px) minmax(0, 1fr);
  gap: 80px;
}

.case-page .case-row-label-only {
  grid-template-columns: minmax(180px, 350px);
}

.case-hero-image,
.case-feature-image {
  width: min(100%, 750px);
  justify-self: center;
}

.case-wide-image {
  display: block;
  height: min(31vw, 435px);
  min-height: 260px;
  margin: 0 auto 80px;
  object-position: center 78%;
}

.screen-list {
  gap: 80px;
  margin-top: 30px;
}

.screen-item {
  gap: 32px;
}

.whatihad-page #onboarding.case-section {
  gap: 0 80px;
  padding-bottom: 96px;
}

@media (max-width: 980px) {
  .case-page {
    padding-top: 104px;
  }

  .case-page .case-section {
    gap: 40px;
    padding-bottom: 64px;
  }

  .case-page .case-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-page .case-row-label-only {
    grid-template-columns: 1fr;
  }

  .case-card-grid {
    grid-template-columns: 1fr;
  }

  .whatihad-insight-grid {
    grid-template-columns: 1fr;
  }

  .whatihad-feature-card-grid {
    grid-template-columns: 1fr;
  }

  .whatihad-basics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whatihad-reflection-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bellyo-mascot-grid {
    gap: 12px;
  }

  .whatihad-page #onboarding.case-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 64px;
  }

  .case-card-grid article {
    min-height: auto;
  }

  .screen-list {
    grid-template-columns: 1fr;
  }

  .case-wide-image {
    height: 320px;
    margin-bottom: 64px;
    object-position: center 78%;
  }

  .case-toc {
    right: 16px;
    bottom: 16px;
  }
}
