/* Digital editorial art direction - inspired by Swiss print systems and art-led product archives. */
:root {
  --paper: #f4f3ee;
  --paper-bright: #fbfaf5;
  --black: #11110f;
  --red: #f15a43;
  --blue: #3f73c5;
  --yellow: #f0ca3e;
  --green: #3c7b5b;
  --wash: var(--paper);
  --wash-deep: #e8e6df;
  --surface: var(--paper-bright);
  --inset: #e7e4dc;
  --ink: var(--black);
  --muted: #565751;
  --faint: #74756d;
  --accent: var(--red);
  --accent-dark: #c73927;
  --hairline: #d4d1c8;
  --hairline-strong: #9a9a91;
  --rule: rgb(17 17 15 / 18%);
  --text-display: clamp(2.2rem, 3.6vw, 3.5rem);
  --text-xl: clamp(1.55rem, 2.2vw, 2.35rem);
  --text-lg: clamp(1.12rem, 1.4vw, 1.35rem);
  --leading-display: 0.96;
  --tracking-display: -0.045em;
  --content-w: 68rem;
  --nav-h: 3.85rem;
  --radius-card: 0.25rem;
  --shadow-soft: 0 1px 0 rgb(17 17 15 / 8%);
  --shadow-lift: 0 14px 32px rgb(17 17 15 / 10%);
}

html,
body {
  background: var(--paper);
}

body {
  font-size: 1rem;
}

.atmosphere__wash {
  background: var(--paper);
}

.atmosphere__grain {
  opacity: 0.032;
  mix-blend-mode: multiply;
}

.atmosphere__grain-spot {
  display: none;
}

.grain-sheet {
  opacity: 0.015;
  mix-blend-mode: multiply;
}

.container,
.container-xl {
  width: min(100%, var(--content-w));
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
  padding-inline: clamp(1.1rem, 2.8vw, 1.75rem);
}

.site-header {
  height: var(--nav-h);
  background: rgb(244 243 238 / 94%);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.wordmark {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

@media (min-width: 992px) {
  .site-nav {
    gap: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
}

@media (max-width: 991.98px) {
  .site-nav {
    counter-reset: navigation;
    gap: 0;
    padding: 1.15rem 1.25rem 2.5rem;
    background: var(--paper-bright);
    border-top: 1px solid var(--rule);
  }

  .site-nav::before {
    content: "Navigation / 04";
    width: 100%;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--rule);
    color: var(--faint);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .site-nav a {
    display: grid;
    grid-template-columns: 2.4rem 1fr auto;
    align-items: baseline;
    width: 100%;
    min-height: 0;
    padding: clamp(0.85rem, 3.2vw, 1.2rem) 0;
    border-bottom: 1px solid var(--rule);
    font-size: clamp(2rem, 7vw, 2.85rem);
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateX(-0.85rem);
    transition: color 180ms ease, opacity 360ms var(--ease), transform 360ms var(--ease);
  }

  .site-nav a::before {
    content: counter(navigation, decimal-leading-zero);
    counter-increment: navigation;
    color: var(--faint);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
  }

  .site-nav a::after {
    content: "\2197";
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--blue);
    font-family: var(--font-body);
    font-size: 0.78rem;
    line-height: 1;
    transform: translate(-0.3rem, 0.1rem);
    transition: transform 180ms var(--ease);
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    transform: translate(0, -0.1rem);
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: var(--blue);
  }

  .nav-toggle {
    border-radius: 0;
  }

  body.nav-open .site-nav a {
    opacity: 1;
    transform: translateX(0);
  }

  body.nav-open .site-nav a:nth-of-type(1) { transition-delay: 60ms; }
  body.nav-open .site-nav a:nth-of-type(2) { transition-delay: 110ms; }
  body.nav-open .site-nav a:nth-of-type(3) { transition-delay: 160ms; }
  body.nav-open .site-nav a:nth-of-type(4) { transition-delay: 210ms; }
}

.site-nav a {
  min-height: 2.25rem;
  padding: 0.4rem 0;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 500;
}

.site-nav a::after {
  display: block;
  bottom: 0.25rem;
  background: var(--black);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: transparent;
  color: var(--black);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (max-width: 991.98px) {
  .site-nav a {
    min-height: 0;
    padding: clamp(0.85rem, 3.2vw, 1.2rem) 0;
    font-size: clamp(2rem, 7vw, 2.85rem);
  }

  .site-nav .nav-resume {
    display: grid;
    min-height: 0;
  }

  .site-nav a::after {
    content: "\2197";
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--blue);
    transform: translate(-0.3rem, 0.1rem);
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: var(--blue);
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    transform: translate(0, -0.1rem);
  }
}

.header-actions {
  align-items: center;
}

.avail {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.avail::before {
  content: "";
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  background: url("../assets/images/icons/check-circle-fill.svg") center / contain no-repeat;
}

.project-art__label,
.case-status,
.practice-board figcaption {
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  text-transform: none;
}

.case-status {
  display: block;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.case-status::before {
  display: none;
  content: none;
}

.btn-ink,
.btn-ghost {
  gap: 0.42rem;
  min-height: 2.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.btn-ink {
  border-color: var(--black);
  background: var(--black);
}

.btn-ink::after,
.btn-ghost::after {
  content: none;
}

.btn-ink:hover {
  border-color: var(--red);
  background: var(--red);
}

.btn-ghost {
  border-color: var(--black);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--yellow);
}

.meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
}

.lead {
  color: var(--muted);
}

/* Home introduction */
.hero {
  position: relative;
  padding: clamp(1.75rem, 3.8vw, 3.25rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.hero__grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.78fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}

.hero__copy h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.hero__role {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-bottom: 0;
  color: var(--muted);
}

.hero__role::before {
  content: "";
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  background: url("../assets/images/icons/map-pin-fill.svg") center / contain no-repeat;
}

.hero__sign {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mark-reel {
  position: relative;
  flex: none;
  width: 2.7rem;
  height: 3.35rem;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--black);
}

.mark-reel__stage,
.mark-reel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mark-reel svg {
  display: block;
  overflow: visible;
  opacity: 0;
}

.mark-reel svg.is-on {
  opacity: 1;
}

.mark-reel--sign {
  width: 3.35rem;
  height: 4.15rem;
}

.mark-reel--teaser {
  width: 5.25rem;
  height: 6.5rem;
}

.mark-reel--about {
  width: min(100%, 13rem);
  height: 16.5rem;
}

.mark-reel--page {
  width: 5.25rem;
  height: 6.5rem;
}

.mark-reel--footer {
  width: 1.55rem;
  height: 1.9rem;
}

.page-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero .lead {
  max-width: 35rem;
}

.proof-strip {
  max-width: 35rem;
  padding-top: 1rem;
  border-top-color: var(--black);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
}

.project-art--hero {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  max-height: none;
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--paper-bright);
  box-shadow: none;
  transform: none;
}

.project-art--hero::before {
  display: none;
}

.project-art--hero img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border: 0;
  object-fit: contain;
  object-position: center;
  background: #111;
  box-shadow: none;
  transform: none;
}

.project-art--hero .project-art__label {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--black);
  border-radius: 0;
  background: var(--paper-bright);
  box-shadow: none;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.8rem;
}

.project-art::after {
  border-radius: 0;
}

.section {
  padding-top: clamp(2.5rem, 5vw, 4.25rem);
}

body[data-page="home"] .hero + .section {
  padding-top: clamp(1.75rem, 3.5vw, 3rem);
}

.section-head {
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom-color: var(--black);
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
}

/* Three-up work archive on laptop; rail only when cards cannot sit */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  width: 100%;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.featured-grid .work-card,
.featured-grid .work-card:first-child {
  display: block;
  grid-column: auto;
  flex: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--black);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.featured-grid .work-card:nth-child(2),
.featured-grid .work-card:nth-child(3) {
  border-top-color: var(--black);
}

.featured-grid .work-card:hover {
  transform: none;
  box-shadow: none;
}

.work-card__media,
.featured-grid .work-card:first-child .work-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-height: 12.5rem;
  aspect-ratio: 16 / 10;
  padding: 0.85rem;
  border: 1px solid var(--black);
  border-top: 0;
  border-radius: 0;
  background: #111;
}

.work-card__media img,
.featured-grid .work-card:first-child .work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.work-card__body,
.featured-grid .work-card:first-child .work-card__body {
  display: block;
  padding: 0.85rem 0 0;
}

.work-card__top {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.work-card h3 {
  margin-top: 0.55rem;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  font-weight: 500;
}

.work-card p {
  max-width: 28rem;
  font-size: 0.9rem;
}

.work-card__go {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--black);
  text-transform: none;
}

.work-card__go i {
  width: 1.05rem;
  height: 1.05rem;
  font-size: 0;
  background: url("../assets/images/icons/arrow-right-fill.svg") center / contain no-repeat;
}

.project-art--neo img,
.project-art--read img,
.project-art--communify img,
.project-art--sprinkler img {
  object-position: center top;
}

.project-art--read,
.project-art--communify {
  background: #111;
}

.project-art--agents,
.project-art--ml,
.project-art--studentu,
.project-art--orbsurv {
  display: grid;
  place-items: center;
  background: var(--paper-bright);
}

.project-art--agents img,
.project-art--ml img,
.project-art--studentu img,
.project-art--orbsurv img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.project-art--agents {
  background: oklch(95% 0.025 155);
}

.project-art--ml {
  background: oklch(95% 0.025 250);
}

.project-art--studentu {
  background: oklch(96% 0.035 90);
}

.project-art--orbsurv {
  background: oklch(94% 0.025 205);
}

.also-list {
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}

.also-list > .meta {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--black);
}

.project-row,
body[data-page="work"] .project-row {
  grid-template-columns: 8.5rem 2.5rem minmax(0, 1fr) auto;
  min-height: 0;
  padding: 0.85rem 0;
}

.project-row:hover {
  padding-inline: 0;
}

.project-row__thumb,
body[data-page="work"] .project-row__thumb {
  width: 100%;
  height: 5.5rem;
  border: 1px solid var(--black);
  border-radius: 0;
}

.project-row h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  font-weight: 500;
}

.idx {
  font-family: var(--font-body);
}

/* Profile panel */
.about-teaser {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--paper-bright);
  color: var(--black);
}

.about-teaser::after {
  display: none;
}

.about-teaser h2,
.about-teaser .meta {
  color: var(--black);
}

.about-teaser .lead {
  color: var(--muted);
}

.about-teaser .btn-ghost {
  border-color: var(--black);
  color: var(--black);
}

.portrait,
body[data-page="about"] .portrait--lg {
  overflow: hidden;
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--paper-bright);
}

.about-teaser .portrait {
  width: 7.25rem;
  max-width: 7.25rem;
  align-self: start;
}

body[data-page="about"] .portrait--lg {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  width: 100%;
  max-width: 16rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  filter: none;
}

.close-cta {
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}

.close-cta h2 {
  max-width: 18ch;
}

/* Footer as a restrained studio colophon */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--black);
  background: var(--paper-bright);
  color: var(--black);
}

.site-footer::before {
  display: none;
}

.footer-grid {
  grid-template-columns: 1.8fr 0.7fr 0.7fr;
  padding-top: 2rem;
}

.footer-grid p,
.footer-label,
.footer-link {
  color: var(--black);
}

.footer-grid > div:first-child p:last-child {
  color: var(--muted);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  font-size: 0.88rem;
}

.footer-link::before,
.source-card--video a::before,
.footer-bottom span:last-child::before,
a.btn-ink[href*="/work/"]::before,
a.btn-ghost[href*="/work/"]::before,
a.btn-ink[href*="/about/"]::before,
a.btn-ghost[href*="/about/"]::before,
a.btn-ink[href*="/contact/"]::before,
a.btn-ghost[href*="/contact/"]::before,
a.btn-ink[href*="resume"]::before,
a.btn-ink[href="/"]::before,
a.btn-ink[href*="index.html"]::before,
a.btn-ink[href*="project-"]::before,
a.btn-ink[href*="neo-sapiens"]::before,
a.btn-ink[href*="read2text"]::before,
a.btn-ink[href*="communify"]::before,
a.btn-ink[href*="mnemonic"]::before,
a.btn-ink[href*="next-step"]::before,
a.btn-ink[href*="sprinkler"]::before,
a.btn-ink[href^="http"]::before,
a.btn-ghost[href^="http"]::before,
button.btn-copy-email::before,
button.btn-ink[type="submit"]::before {
  content: "";
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  background: var(--ico) center / contain no-repeat;
}

.footer-link[href^="mailto"]::before,
a.btn-ink[href^="mailto"]::before {
  --ico: url("../assets/images/icons/envelope-simple-fill.svg");
}

.footer-link[href*="linkedin.com"]::before,
a.btn-ink[href*="linkedin.com"]::before,
a.btn-ghost[href*="linkedin.com"]::before {
  --ico: url("../assets/images/icons/linkedin-logo-fill.svg");
}

.footer-link[href*="github.com"]::before,
a.btn-ink[href*="github.com"]::before,
a.btn-ghost[href*="github.com"]::before {
  --ico: url("../assets/images/icons/github-logo-fill.svg");
}

.footer-link[href*="devpost.com"]::before,
a.btn-ink[href*="devpost.com"]::before,
a.btn-ghost[href*="devpost.com"]::before {
  --ico: url("../assets/images/icons/trophy-fill.svg");
}

.footer-link[href*="resume"]::before,
a.btn-ink[href*="resume"]::before,
a.btn-ghost[href*="resume"]::before {
  --ico: url("../assets/images/icons/file-text-fill.svg");
}

.footer-link[href*="/contact/"]::before,
a.btn-ink[href*="/contact/"]::before,
a.btn-ghost[href*="/contact/"]::before {
  --ico: url("../assets/images/icons/chat-teardrop-text-fill.svg");
}

.footer-link[href*="/work/"]::before,
a.btn-ink[href*="/work/"]::before,
a.btn-ghost[href*="/work/"]::before {
  --ico: url("../assets/images/icons/briefcase-fill.svg");
}

.footer-link[href*="/about/"]::before,
a.btn-ink[href*="/about/"]::before,
a.btn-ghost[href*="/about/"]::before {
  --ico: url("../assets/images/icons/user-fill.svg");
}

a.btn-ink[href="/"]::before,
a.btn-ink[href*="index.html"]::before {
  --ico: url("../assets/images/icons/house-simple-fill.svg");
}

a.btn-ink[href*="project-"]::before,
a.btn-ink[href*="neo-sapiens"]::before,
a.btn-ink[href*="read2text"]::before,
a.btn-ink[href*="communify"]::before,
a.btn-ink[href*="mnemonic"]::before,
a.btn-ink[href*="next-step"]::before,
a.btn-ink[href*="sprinkler"]::before {
  --ico: url("../assets/images/icons/arrow-right-fill.svg");
}

button.btn-copy-email::before {
  --ico: url("../assets/images/icons/envelope-simple-fill.svg");
}

button.btn-copy-email.is-copied::before {
  --ico: url("../assets/images/icons/check-circle-fill.svg");
}

button.btn-copy-email.is-copied {
  border-color: var(--green);
  color: var(--green);
}

a.btn-ink[href^="http"]::before,
a.btn-ghost[href^="http"]::before {
  --ico: url("../assets/images/icons/arrow-square-out-fill.svg");
}

a.btn-ink[href*="github.com"]::before,
a.btn-ghost[href*="github.com"]::before {
  --ico: url("../assets/images/icons/github-logo-fill.svg");
}

a.btn-ink[href*="linkedin.com"]::before,
a.btn-ghost[href*="linkedin.com"]::before {
  --ico: url("../assets/images/icons/linkedin-logo-fill.svg");
}

a.btn-ink[href*="devpost.com"]::before,
a.btn-ghost[href*="devpost.com"]::before {
  --ico: url("../assets/images/icons/trophy-fill.svg");
}

button.btn-ink[type="submit"]::before {
  --ico: url("../assets/images/icons/paper-plane-tilt-fill.svg");
}

.source-card--video a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.source-card--video a::before {
  --ico: url("../assets/images/icons/play-fill.svg");
}

.footer-bottom span:last-child::before {
  --ico: url("../assets/images/icons/map-pin-fill.svg");
}

.footer-bottom {
  align-items: center;
  border-top-color: var(--black);
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: none;
}

.footer-bottom span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

/* Work index */
.page-hero {
  padding: clamp(1.75rem, 3.8vw, 3.25rem) 0 clamp(1.5rem, 3.2vw, 2.5rem);
}

.page-hero h1 {
  max-width: 16ch;
}

body[data-page="work"] .page-hero .meta {
  color: var(--muted);
}

body[data-page="work"] .page-hero .lead {
  max-width: 34rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

body[data-page="work"] .work-list {
  border-top-color: var(--black);
}

body[data-page="work"] .project-row:nth-child(n) {
  border-left: 0;
  padding-left: 0;
}

/* About and contact */
.about-grid {
  grid-template-columns: minmax(12rem, 0.5fr) minmax(0, 1.5fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

body[data-page="about"] .page-hero .meta {
  color: var(--muted);
}

body[data-page="about"] .prose p:first-child {
  font-size: clamp(1.12rem, 1.5vw, 1.35rem);
  line-height: 1.45;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  color: var(--ink);
}

.signals li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.signals--facts {
  margin-top: 0.5rem;
  color: var(--muted);
}

.signals--facts li {
  font-weight: 500;
}

.signals img,
.tag img,
.ico {
  width: 1.22rem;
  height: 1.22rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.tag img,
.ico {
  width: 1.1rem;
  height: 1.1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  justify-content: flex-end;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.project-row .tag {
  justify-self: end;
}

.tools {
  align-items: flex-start;
  gap: 1.1rem 1.35rem;
  list-style: none;
}

.tools li,
.tool-sticker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: 5.4rem;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  transform: none;
}

.tools li > svg,
.tools .tool-sticker__mark {
  display: none;
}

.tools__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.tools__mark--pair {
  width: 3.15rem;
  gap: 0.22rem;
}

.tools img {
  width: 2.05rem;
  height: 2.05rem;
  display: block;
  object-fit: contain;
}

.tools__mark--pair img {
  width: 1.45rem;
  height: 1.45rem;
}

.tools__name {
  display: block;
}

.timeline {
  border-top-color: var(--black);
}

.timeline-item {
  border-top-color: var(--black);
}

.timeline-item:first-child {
  border-top: 0;
}

.source-card {
  padding-inline: 0;
  border-top-color: var(--black);
  border-bottom-color: var(--black);
}

.source-card--video {
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 22rem);
  align-items: center;
  gap: 1.5rem 2rem;
}

.source-card--video a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.source-video {
  margin: 0;
  border: 1px solid var(--black);
  background: #11110f;
  overflow: hidden;
}

.source-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28rem;
  vertical-align: top;
}

body[data-page="contact"] .page-hero .meta {
  color: var(--muted);
}

.contact-layout {
  border-top-color: var(--black);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-top: 1.25rem;
}

.contact-email {
  color: var(--black);
  text-decoration: none;
}

.contact-email:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Long-form case studies */
.case-hero {
  padding-top: clamp(1.75rem, 3.8vw, 3.25rem);
}

.case-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
}

.case-hero > .container-xl > .meta {
  color: var(--muted);
}

.case-hero > .container-xl > .lead,
body[data-page="work"] .page-hero .lead {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.sticker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.5rem;
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 42rem;
}

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.3rem 0.58rem 0.3rem 0.32rem;
  border: 1px solid var(--black);
  background: var(--paper-bright);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transform: rotate(var(--tilt, -1.2deg));
}

.sticker img {
  width: 1.12rem;
  height: 1.12rem;
  display: block;
  flex: none;
  object-fit: contain;
}

.sticker--skill.sticker--red {
  background: var(--red);
  color: #fff;
}

.sticker--skill.sticker--blue {
  background: var(--blue);
  color: #fff;
}

.sticker--skill.sticker--yellow {
  background: var(--yellow);
  color: var(--black);
}

.sticker--skill.sticker--green {
  background: var(--green);
  color: #fff;
}

.sticker--skill.sticker--red img,
.sticker--skill.sticker--blue img,
.sticker--skill.sticker--green img {
  filter: brightness(0) invert(1);
}

.sticker--inline {
  margin: 0 0.16em;
  padding: 0.12rem 0.4rem 0.12rem 0.2rem;
  vertical-align: middle;
}

.sticker--inline img {
  width: 0.92rem;
  height: 0.92rem;
}

.prose .sticker--inline {
  position: relative;
  top: -0.05em;
}

.prose a.sticker {
  color: inherit;
  text-decoration: none;
}

.case-visual,
.work-visuals > .stage {
  border: 1px solid var(--black);
  border-radius: 0;
  box-shadow: none;
}

.case-meta {
  border-radius: 0;
}

.case-meta > div {
  background: transparent;
}

.case-meta > div:nth-child(n) {
  border-top: 0;
}

body[data-page="case"] .case-hero ~ .section > .container-xl > .meta {
  color: var(--muted);
}

.stat {
  border-top-color: var(--black);
}

.stat:nth-child(n) {
  border-top-color: var(--black);
}

.decision {
  border-radius: 0;
  background: transparent;
}

body[data-page="work"] .project-row {
  grid-template-columns: 9rem 2.5rem minmax(0, 1fr) auto;
  min-height: 0;
}

body[data-page="work"] .project-row__thumb {
  height: 6rem;
}

.evidence-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.evidence-note {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.55;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.4rem);
}

.artifact {
  grid-column: span 6;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper-bright);
}

.artifact--wide {
  grid-column: 1 / -1;
}

.artifact--portrait {
  grid-column: span 4;
}

.artifact figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem 0.85rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  background: var(--paper-bright);
}

.source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.source-card p {
  margin: 0.35rem 0 0;
}

.practice-index {
  border-top: 1px solid var(--rule);
}

.project-art--finch {
  background: #3c3c3c;
}

.project-art--finch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: contrast(1.06);
}

.project-art--mnemonic {
  background: #aaa;
}

.project-art--next {
  background: #ffc20a;
}

.artifact img {
  max-height: 28rem;
}

.artifact--cert {
  max-width: 26rem;
  border-radius: 0;
  background: var(--paper-bright);
}

.artifact--cert img {
  max-height: 18rem;
  object-fit: contain;
  background: var(--paper-bright);
}

.artifact--photo img {
  max-height: 22rem;
  object-fit: cover;
  object-position: center 42%;
  background: var(--black);
}

.case-visual,
.work-visual {
  border-radius: 0;
}

.case-visual img,
.work-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.project-art--neo img {
  object-fit: contain;
  object-position: center;
}

@media (max-height: 820px) and (min-width: 900px) {
  .hero {
    padding-block: 1.25rem 1.75rem;
  }

  .project-art--hero {
    max-height: 46vh;
  }

  .page-hero,
  .case-hero {
    padding-top: 1.25rem;
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.78fr);
  }

  .hero__copy h1 {
    max-width: 14ch;
  }

  .project-art--hero {
    aspect-ratio: 5 / 4;
    transform: none;
  }
}

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

  .hero__copy h1 {
    max-width: 16ch;
  }

  .project-art--hero {
    max-width: 32rem;
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    overflow: visible;
    padding: 0;
    gap: 1.5rem;
    scroll-snap-type: none;
  }

  .featured-grid .work-card,
  .featured-grid .work-card:first-child {
    flex: none;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  :root {
    --text-display: clamp(2.1rem, 9.5vw, 2.65rem);
    --text-xl: clamp(1.55rem, 7vw, 2rem);
    --nav-h: 3.6rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero__copy h1 {
    max-width: none;
  }

  .project-art--hero {
    aspect-ratio: 16 / 11;
    box-shadow: none;
  }

  .featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    overflow: visible;
    gap: 1.35rem;
    padding: 0;
  }

  .featured-grid .work-card,
  .featured-grid .work-card:first-child {
    flex: none;
    min-width: 0;
  }

  .featured-grid .work-card:first-child .work-card__media {
    aspect-ratio: 16 / 11;
  }

  .project-row,
  body[data-page="work"] .project-row {
    grid-template-columns: 1fr auto;
  }

  body[data-page="work"] .project-row {
    padding-left: 0.75rem;
  }

  .about-teaser,
  .about-grid,
  .contact-layout,
  .source-card--video {
    grid-template-columns: 1fr;
  }

  .contact-layout > div:first-child {
    position: static;
  }

  .about-teaser .portrait {
    max-width: 6.5rem;
  }

  .page-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .mark-reel--page,
  .mark-reel--about {
    width: 4.25rem;
    height: 5.25rem;
  }

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

  .case-meta > div:nth-child(n) {
    border-top: 1px solid var(--black);
    border-left: 0;
  }

  .evidence-head,
  .source-card {
    grid-template-columns: 1fr;
  }

  .artifact,
  .artifact--portrait {
    grid-column: 1 / -1;
  }

  .artifact img {
    max-height: none;
  }
}

@media (max-width: 575.98px) {
  .project-art--hero::before {
    background-size: 1.5rem 1.5rem;
  }

  .project-art--hero .project-art__label span:last-child {
    text-align: right;
  }

  .work-card__top {
    align-items: flex-start;
  }

  .site-footer {
    padding-top: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-grid {
    scroll-behavior: auto;
  }

  .mark-reel svg {
    transition: none;
  }

  .tools li,
  .tool-sticker,
  .sticker {
    transform: none;
  }
}
