:root {
  --ink: #111111;
  --body: #858585;
  --soft: #9c9c9c;
  --line: rgba(0, 0, 0, 0.03);
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 6px 10px rgba(0, 0, 0, 0.1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", Arial, sans-serif;
  --mono: "Reddit Mono", "SFMono-Regular", Consolas, monospace;
  --page-gutter: clamp(40px, 7vw, 80px);
  --case-nav-space: clamp(178px, 14vw, 252px);
  --content-width: min(1480px, calc(100vw - (var(--page-gutter) * 2)));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
}

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

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

.site-shell {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 40px 0 18px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 34px;
  animation: page-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.topbar {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 56px;
  align-items: start;
}

.intro {
  max-width: 480px;
}

.brand,
.meta-title,
.project-title,
.case-hero h1,
.case-content h2,
.about-grid h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
}

.brand {
  display: inline-block;
  margin-bottom: 12px;
}

.intro-copy {
  max-width: 480px;
}

.intro-line {
  display: block;
  white-space: nowrap;
}

.intro p,
.meta-group p,
.site-footer,
.case-hero p,
.case-content p,
.about-grid p {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
}

.meta-nav {
  width: max-content;
  justify-self: end;
  display: flex;
  align-items: flex-start;
  gap: 68px;
}

.meta-group {
  min-width: 0;
}

.meta-group:first-child {
  flex: 0 0 auto;
}

.meta-group:nth-child(2) {
  flex: 0 0 auto;
}

.meta-group:nth-child(3) {
  flex: 0 0 auto;
  text-align: left;
  display: block;
}

.meta-title {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
  transition: color 180ms ease;
}

.meta-group a.meta-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
}

/* About Me stays blue on hover */
a.meta-title:hover,
a.meta-title:focus-visible {
  color: #0099ff;
  outline: none;
}

.meta-group a:not(.meta-title) {
  display: inline-flex;
}

.meta-group p {
  display: grid;
  gap: 1px;
}

.meta-link {
  width: max-content;
  align-items: center;
  gap: 5px;
  color: var(--body);
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.meta-link svg {
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 180ms ease, transform 180ms ease;
}

/* HCDE, EA Games, Resumé, LinkedIn links hover → black instead of blue */
.meta-link:hover,
.meta-link:focus-visible {
  color: #111111;
  border-color: #111111;
  outline: none;
}

.meta-link:hover svg,
.meta-link:focus-visible svg {
  opacity: 1;
  transform: translateX(0);
}

.meta-contact-links {
  display: grid;
  gap: 1px;
  justify-items: start;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  align-self: start;
  width: var(--content-width);
  margin: 0 auto;
  justify-items: stretch;
}

.project-card {
  position: relative;
  width: 100%;
  height: clamp(480px, 57vh, 585px);
  aspect-ratio: 1 / 1.14;
  min-height: 0;
  padding: 28px 30px 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #ffffff;
  box-shadow: var(--shadow);
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

a.project-card {
  cursor: pointer;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-8px) scale(1.05);
  outline: none;
}

.project-grid > .project-card:nth-child(1) {
  --image-scale: 0.1;
}

.project-grid > .project-card:nth-child(2) {
  --image-scale: 1.14;
}

.project-grid > .project-card:nth-child(3) {
  --image-scale: 1.18;
}

/* WIP card: white background */
.ea-card {
  cursor: none;
  background: #ffffff;
}

.project-category {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
}

/* WIP card category label color override */
.ea-card .project-category {
  color: var(--soft);
}

.project-image-wrap {
  flex: 1;
  min-height: 0;
  padding: 34px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.project-image {
  width: 100%;
  height: 100%;
  max-width: 82%;
  max-height: 78%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transform: scale(var(--image-scale, 1));
  transform-origin: center center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-image,
.project-card:focus-visible .project-image {
  transform: translateY(-18px) scale(calc(var(--image-scale, 1) * 1.1));
}

.project-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-text {
  width: 72%;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.project-title,
.project-description {
  width: 100%;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-title {
  margin: 0;
}

.project-description {
  position: absolute;
  width: min(275px, calc(72% - 4px));
  max-width: min(275px, calc(72% - 4px));
  opacity: 0;
  transform: translateY(6px);
  color: #6c6c6c;
  font-weight: 300;
  line-height: 1.4;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
}

@media (max-width: 1200px) and (min-width: 681px) {
  .project-description {
    width: calc(100% - 72px);
    max-width: calc(100% - 72px);
    text-wrap: nowrap;
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 680px) {
  .project-description {
    width: min(300px, calc(100% - 72px));
    max-width: min(300px, calc(100% - 72px));
    text-wrap: balance;
    -webkit-line-clamp: 2;
  }
}

.project-card:hover .project-title,
.project-card:focus-visible .project-title {
  opacity: 0;
  transform: translateY(-6px);
}

.project-card:hover .project-description,
.project-card:focus-visible .project-description {
  opacity: 1;
  transform: translateY(0);
}

/* WIP card title/description color override */
.ea-card .project-title {
  color: var(--ink);
}

.ea-card .project-description,
.ea-card .project-icon {
  color: #6c6c6c;
}

.project-icon {
  flex-shrink: 0;
  width: 28px;
  height: 34px;
  color: #6c6c6c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon svg {
  width: 24px;
  height: 24px;
}

.arrow-icon {
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .arrow-icon,
.project-card:focus-visible .arrow-icon {
  transform: rotate(-45deg);
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  width: var(--content-width);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 50px;
  row-gap: 10px;
  margin-top: 0;
  padding: 0 0 8px;
  letter-spacing: -0.03em;
  font-weight: 300;
  flex-wrap: wrap;
  overflow: visible;
}

.connect > span {
  font-weight: 300;
}

.connect,
.date-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: max-content;
}

/* Prevent wrapping until content itself forces it */
.connect {
  flex-shrink: 0;
}

.date-stamp {
  flex-shrink: 0;
}

.connect a {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #f2f2f2;
  color: #696969;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 500;
  transition: background 200ms ease, color 200ms ease;
}

.connect a:hover,
.connect a:focus-visible,
.email-copy-button:hover,
.email-copy-button:focus-visible,
.email-copy-button.is-copied {
  background: #d6d6d6;
  color: #030303;
  outline: none;
}

.footer-icon svg {
  width: 18px;
  height: 18px;
}

.email-copy {
  position: relative;
  width: 28px;
  height: 28px;
  overflow: visible;
}

.email-copy-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #f2f2f2;
  color: #696969;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, color 200ms ease;
}

.email-copy-popup {
  position: absolute;
  left: 50%;
  bottom: 40px;
  padding: 10px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #030303;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, background 200ms ease, color 200ms ease;
}

.email-copy:not(.hide-popup):hover .email-copy-popup,
.email-copy:focus-within .email-copy-popup,
.email-copy.is-copied .email-copy-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.email-copy.is-copied .email-copy-popup {
  background: #5e5e5e;
  color: #f2f2f2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.email-copy.hide-popup .email-copy-popup {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

.date-stamp {
  font-family: var(--mono);
  font-weight: 400;
}

/* Footer wraps to 2 lines only when truly too narrow (gap < 50px equivalent) */

/* Only stack footer when the two footer groups cannot keep a 50px gap */
@media (max-width: 420px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    column-gap: 0;
    row-gap: 10px;
  }
}

/* ─── EA cursor (WIP typing) ─────────────────────────── */
.ea-cursor {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  width: 0;
  max-width: max-content;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(94, 94, 94, 0.92);
  color: #f7f7f7;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease, width 900ms steps(24, end);
}

.ea-cursor.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  width: 190px;
}

.ea-caret {
  display: inline-block;
  margin-left: 2px;
  animation: caret-blink 900ms steps(1, end) infinite;
}

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

.case-shell {
  width: min(920px, calc(100vw - 72px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 70px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  animation: page-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}

.case-nav a:last-child {
  color: var(--body);
}

.project-type {
  margin: 0;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
}

.case-hero {
  max-width: 720px;
  margin-bottom: 52px;
}

.case-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(48px, 10vw, 108px);
  line-height: 0.94;
}

.case-hero p:not(.project-type) {
  max-width: 560px;
  font-size: 18px;
}

.case-media {
  min-height: 520px;
  margin-bottom: 64px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #f8f8f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-media img {
  width: min(760px, 86%);
  height: auto;
  object-fit: contain;
}

.case-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}

.case-content h2 {
  margin: 0 0 10px;
}

.case-study-shell {
  width: 100%;
  min-height: 100svh;
  padding: 0 0 18px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  animation: case-fade 520ms ease both;
}

@keyframes case-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.case-study-shell .project-type {
  color: #ababab;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.case-study-hero {
  position: relative;
  min-height: 100svh;
  padding: 96px var(--page-gutter) 64px calc(var(--page-gutter) + var(--case-nav-space));
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

.case-study-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 24px var(--page-gutter) 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

.case-back,
.case-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
  pointer-events: auto;
  transition: color 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.case-back::before,
.case-top-link::before {
  content: "";
  flex: 0 0 auto;
  display: inline-block;
  background: currentColor;
}

.case-back::before {
  width: 21px;
  height: 16px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='21' height='16' viewBox='0 0 21 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.4 1.2L1.6 8L8.4 14.8M2 8H19' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='21' height='16' viewBox='0 0 21 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.4 1.2L1.6 8L8.4 14.8M2 8H19' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.case-top-link::before {
  width: 16px;
  height: 19px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='16' height='19' viewBox='0 0 16 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 18V2M1.5 8.5L8 2L14.5 8.5' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='16' height='19' viewBox='0 0 16 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 18V2M1.5 8.5L8 2L14.5 8.5' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.case-back:hover,
.case-back:focus-visible,
.case-top-link:hover,
.case-top-link:focus-visible {
  color: #0099ff;
  outline: none;
}

.case-back:hover,
.case-back:focus-visible {
  transform: translateX(-6px);
}

.case-top-link:hover,
.case-top-link:focus-visible {
  transform: translateY(-6px);
}

.section-index {
  position: fixed;
  top: clamp(96px, 13vh, 128px);
  left: var(--page-gutter);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-index a {
  display: inline-block;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  color: #b8b8b8;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.8;
  transition: color 200ms ease, opacity 200ms ease, transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.section-index a:hover,
.section-index a:focus-visible {
  color: #3b82f6;
  outline: none;
}

.section-index a.is-active {
  color: var(--ink);
  opacity: 1;
  transform: translateX(6px);
}

.case-hero-content {
  grid-column: 1;
  width: min(1260px, calc(100vw - (var(--page-gutter) * 2) - var(--case-nav-space)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 100px;
  align-items: center;
  align-self: center;
  transform: translate(-50px, -64px);
}

.case-hero-copy {
  color: var(--ink);
}

.case-award {
  margin: 0 0 30px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.case-award a {
  border-bottom: 1px solid currentColor;
}

.case-award-badge {
  display: inline-flex;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  border-radius: 5px;
  background: #5a3c93;
  color: #f7f7f7;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  vertical-align: middle;
  overflow: hidden;
}

.case-award-badge::after {
  content: attr(data-fallback);
}

.case-award-badge img {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  display: block;
  object-fit: cover;
}

.case-hero-copy h1 {
  margin: 0 0 30px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 50px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.case-title-effect .char {
  opacity: 0;
  transform: none;
  animation: about-char-fade 520ms ease forwards;
  animation-delay: calc(var(--char-index) * 42ms + 120ms);
}

.scroll-fade {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 620ms ease,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.case-title-effect .char-space {
  width: 0.25em;
}

.case-deck {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 100px;
  row-gap: 30px;
  margin: 0;
}

.case-facts div {
  min-width: 0;
}

.case-facts dt {
  margin: 0 0 30px;
  color: #ababab;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.case-hero-media {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-hero-media img {
  width: min(100%, 620px);
  max-height: 64vh;
  object-fit: contain;
}

.milestone-hero-media img {
  width: min(100%, 600px);
}

.case-study-section {
  width: min(920px, calc(100vw - (var(--page-gutter) * 2)));
  min-height: 62vh;
  margin: 0 auto;
  padding: 90px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study-section h2 {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 50px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.about-shell .case-hero {
  max-width: 820px;
}

.about-shell .case-hero h1 {
  font-size: clamp(42px, 8vw, 86px);
}

.about-shell {
  width: min(860px, calc(100vw - 96px));
}

.about-hero {
  max-width: 720px;
  margin-bottom: 44px;
}

.about-hero h1 {
  margin: 10px 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 96px);
  font-style: italic;
  font-weight: 300;
  line-height: 0.98;
}

.about-hero p:not(.project-type) {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
}

.hcde-tooltip-wrap {
  position: relative;
  display: inline-flex;
  width: max-content;
  align-items: center;
  color: var(--body);
  border-bottom: 1px solid transparent;
  cursor: default;
  outline: none;
}

.hcde-tooltip-wrap:hover,
.hcde-tooltip-wrap:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.hcde-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 9px 11px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #030303;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hcde-tooltip-wrap:hover .hcde-tooltip,
.hcde-tooltip-wrap:focus-visible .hcde-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.about-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 54px;
}

.about-photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  object-fit: cover;
  background: #f6f6f6;
  box-shadow: var(--shadow);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 86px;
}

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.72em);
  animation: char-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--char-index) * 28ms + 160ms);
}

.char-space {
  width: 0.28em;
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes char-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-grid div {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  box-shadow: var(--shadow);
}

.about-grid h2 {
  margin: 0 0 42px;
}

@media (max-width: 1200px) {
  :root {
    --page-gutter: 20px;
  }

  .site-shell {
    gap: 34px;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .intro-line {
    white-space: nowrap;
  }

  .meta-nav {
    display: grid;
    width: 100%;
    justify-self: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 3vw, 28px);
  }

  .meta-group:first-child {
    justify-self: start;
  }

  .meta-group:nth-child(2) {
    justify-self: center;
  }

  .meta-group:nth-child(3) {
    justify-self: end;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-card {
    height: clamp(480px, 56vh, 585px);
    min-height: 0;
  }

  .project-image-wrap {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .meta-nav {
    width: 100%;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(8px, 3vw, 28px);
  }

  .meta-group:first-child {
    justify-self: start;
    justify-items: start;
    text-align: left;
  }

  .meta-group:nth-child(2) {
    justify-self: center;
    justify-items: start;
    text-align: left;
  }

  .meta-group:nth-child(3) {
    justify-self: end;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 14px;
  }

  .site-shell {
    padding-top: 32px;
    gap: 30px;
  }

  .intro p {
    font-size: clamp(13px, 3.4vw, 15px);
  }

  .meta-nav,
  .case-content,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .meta-nav {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 8px;
  }

  .meta-title,
  .meta-group a.meta-title {
    font-size: clamp(16px, 4vw, 20px);
    white-space: nowrap;
  }

  .meta-group p,
  .meta-contact-links {
    font-size: clamp(12px, 3.2vw, 15px);
    line-height: 1.35;
  }

  .meta-group:first-child {
    justify-self: start;
    justify-items: start;
    text-align: left;
  }

  .meta-group:nth-child(2) {
    justify-self: center;
    justify-items: start;
    text-align: left;
  }

  .meta-group:nth-child(3) {
    justify-self: end;
    justify-items: start;
    text-align: left;
  }

  .project-card {
    height: clamp(400px, 62vh, 500px);
    min-height: 0;
    padding: 20px;
  }

  .project-category {
    top: 18px;
    left: 18px;
  }

  .project-image-wrap {
    min-height: 0;
    padding-top: 26px;
  }

  .project-text {
    width: calc(100% - 44px);
  }

  .project-description {
    width: min(300px, calc(100% - 72px));
    max-width: min(300px, calc(100% - 72px));
    text-wrap: balance;
    -webkit-line-clamp: 2;
  }

  .project-card:hover,
  .project-card:focus-visible {
    transform: translateY(-6px) scale(1.03);
  }

  .case-shell {
    width: min(100% - 28px, 440px);
    padding-top: 24px;
  }

  .about-shell {
    width: min(100% - 40px, 440px);
  }

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

  .case-nav {
    margin-bottom: 64px;
  }

  .case-hero p:not(.project-type) {
    font-size: 15px;
  }

  .case-media {
    min-height: 360px;
  }

  .case-media img {
    width: 92%;
  }
}

/* About Me Page */
.about-page {
  overflow-x: hidden;
}

.about-shell {
  --about-body-width: min(1120px, calc(100vw - 120px));
  width: 100%;
  min-height: 100svh;
  padding: 40px 0 18px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 34px;
  animation: page-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-back {
  width: var(--content-width);
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.35vw, 24px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.about-back::before {
  content: "";
  order: 1;
  width: 21px;
  height: 16px;
  margin-right: 5px;
  display: inline-block;
  transform: translateY(1px);
  transition: transform 180ms ease;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='21' height='16' viewBox='0 0 21 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.4 1.2L1.6 8L8.4 14.8M2 8H19' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='21' height='16' viewBox='0 0 21 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.4 1.2L1.6 8L8.4 14.8M2 8H19' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.about-back span {
  order: 3;
}

.about-back:hover::before,
.about-back:focus-visible::before {
  transform: translate(-4px, 1px);
}

.about-back:hover,
.about-back:focus-visible {
  color: #0099ff;
  transform: translateX(-6px);
  outline: none;
}

.about-content {
  width: var(--about-body-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 463px 571px;
  gap: clamp(54px, 6vw, 86px);
  align-items: center;
  justify-content: center;
}

.about-collage {
  display: grid;
  grid-template-columns: 219px 237px;
  grid-template-rows: 174px 90px 183px auto;
  gap: 7px;
  align-items: start;
  justify-content: start;
  width: 463px;
}

.about-photo {
  position: relative;
  margin: 0;
  overflow: visible;
  background: #f4f4f4;
  min-width: 0;
  min-height: 0;
}

.about-photo img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
}

.about-photo-1 {
  grid-column: 1;
  grid-row: 1;
  width: 219px !important;
  height: 174px !important;
}

.about-photo-2 {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 237px !important;
  height: 271px !important;
}

.about-photo-2 img {
  object-position: 50% 62%;
}

.about-photo-3 {
  grid-column: 1;
  grid-row: 2 / 4;
  width: 219px !important;
  height: 280px !important;
}

.about-photo-4 {
  grid-column: 2;
  grid-row: 3;
  width: 237px !important;
  height: 183px !important;
  align-self: end;
}

.photo-number {
  position: absolute;
  top: -22px;
  left: 0;
  color: #858585;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
}

.about-photo-4 .photo-number {
  top: auto;
  bottom: -24px;
  right: 0;
  left: auto;
}

.about-photo-3 .photo-number {
  top: auto;
  bottom: -24px;
  left: 0;
}

.about-caption {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 2px;
  margin-top: 34px;
  color: #858585;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

.about-letter {
  width: min(571px, 100%);
  max-width: 571px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.about-title {
  margin: 0 0 34px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 50px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--ink);
  animation: none;
}

.about-title .char {
  opacity: 0;
  transform: none;
  animation: about-char-fade 520ms ease forwards;
  animation-delay: calc(var(--char-index) * 42ms + 120ms);
}

.about-title .char-space {
  width: 0.25em;
}

@keyframes about-char-fade {
  to {
    opacity: 1;
  }
}

@keyframes about-text-blur {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.about-letter {
  width: min(571px, 100%);
  max-width: 571px;
  font-size: 15px;
}

.about-letter p {
  text-align: left;
  text-wrap: pretty;
}

.hcde-line {
  white-space: nowrap;
}

.hcde-tooltip-wrap {
  position: relative;
  display: inline-block;
  color: inherit;
  border-bottom: 0;
}

.hcde-link {
  color: #777;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hcde-tooltip-wrap:hover,
.hcde-tooltip-wrap:focus-visible,
.hcde-tooltip-wrap:focus-within {
  color: inherit;
  border-bottom: 0;
}

.hcde-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: 340px;
  padding: 14px 18px 16px;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  border-radius: 18px;
  background: rgba(248, 248, 248, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #555;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.03em;
  white-space: normal;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}

.hcde-tooltip strong {
  display: block;
  margin-bottom: 6px;
  color: #4a4a4a;
  font-weight: 500;
}

.hcde-tooltip span {
  font-weight: 300;
}

.hcde-tooltip-wrap:hover .hcde-tooltip,
.hcde-tooltip-wrap:focus-within .hcde-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hcde-tooltip-wrap:not(:hover):not(:focus-within) .hcde-tooltip {
  opacity: 0;
  transform: translate(-50%, 10px);
}

.about-signature {
  display: block;
  width: clamp(95px, 8vw, 130px);
  height: auto;
  margin-top: 8px;
  transform: rotate(8deg);
  transform-origin: left center;
}

@media (max-width: 1180px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: start;
    justify-items: center;
  }

  .about-collage {
    max-width: 620px;
    margin: 0 auto;
  }

  .about-letter {
    width: min(571px, 100%);
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .about-shell {
    --about-body-width: calc(100vw - 40px);
    padding-top: 32px;
    gap: 30px;
  }

  .about-content {
    gap: 42px;
  }

  .hcde-line {
    white-space: normal;
  }

  .about-letter p {
    text-align: left;
  }

  .project-card:hover .project-image,
  .project-card:focus-visible .project-image {
    transform: translateY(-10px) scale(calc(var(--image-scale, 1) * 1.08));
  }
}

@media (max-width: 503px) {
  .about-collage {
    grid-template-columns: 219fr 237fr;
    grid-template-rows: calc(37.58vw - 15px) calc(19.44vw - 8px) calc(39.52vw - 16px) auto;
    gap: 7px;
    width: calc(100vw - 40px);
    max-width: 100%;
    justify-self: center;
  }

  .about-photo-1,
  .about-photo-2,
  .about-photo-3,
  .about-photo-4 {
    width: 100% !important;
    height: 100% !important;
  }

  .about-caption {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .hcde-tooltip {
    left: 0;
    transform: translate(0, 10px);
  }

  .hcde-tooltip-wrap:hover .hcde-tooltip,
  .hcde-tooltip-wrap:focus-within .hcde-tooltip {
    transform: translate(0, 0);
  }
}

@media (max-width: 1180px) {
  .case-study-hero {
    grid-template-columns: 1fr;
    row-gap: 42px;
    padding: 124px var(--page-gutter) 92px;
  }

  .section-index {
    position: fixed;
    top: auto;
    bottom: 20px;
    left: var(--page-gutter);
    right: var(--page-gutter);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
  }

  .section-index a {
    padding-left: 0;
  }

  .section-index a.is-active {
    transform: translateX(6px);
  }

  .case-hero-content {
    grid-column: 1;
    width: min(760px, calc(100vw - (var(--page-gutter) * 2)));
    grid-template-columns: 1fr;
    gap: 56px;
    transform: none;
  }

  .case-hero-media {
    justify-content: flex-start;
    order: -1;
  }

  .case-hero-copy {
    order: 1;
  }

  .case-hero-media img {
    width: min(600px, 100%);
    max-height: none;
  }
}

@media (max-width: 680px) {
  .case-study-hero {
    padding: 108px var(--page-gutter) 86px;
  }

  .case-study-header {
    top: 0;
    left: 0;
    right: 0;
  }

  .case-back,
  .case-top-link {
    font-size: 20px;
  }

  .case-award {
    margin-bottom: 30px;
    font-size: 15px;
  }

  .case-award-badge {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .case-hero-copy h1 {
    margin-bottom: 30px;
    font-size: 50px;
  }

  .case-deck {
    margin-bottom: 30px;
    font-size: 15px;
  }

  .case-facts {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .case-facts dt {
    margin-bottom: 30px;
    font-size: 13px;
  }

  .case-facts dd {
    font-size: 15px;
  }

  .case-study-section {
    min-height: 52vh;
    padding: 64px 0;
  }
}
