*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #d8dad4;
  --bg-strong: #eef0e9;
  --surface: rgba(247, 248, 242, 0.84);
  --surface-strong: #fbfcf6;
  --text: #202522;
  --muted: #5d655f;
  --line: rgba(32, 37, 34, 0.14);
  --line-strong: rgba(32, 37, 34, 0.28);
  --brand: #8f9f3f;
  --brand-deep: #4f5e20;
  --brand-soft: #e5ebc8;
  --brand-ink: #f1f5d8;
  --accent: #707b33;
  --accent-soft: #edf1d1;
  --success: #4f5e20;
  --success-soft: #e5ebc8;
  --shadow: 0 24px 60px rgba(24, 28, 26, 0.14);
  --shadow-tight: 0 14px 32px rgba(24, 28, 26, 0.13);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --nav-h: 76px;
  --section: 88px;
  --card-height: 360px;
  --card-gap: 24px;
  --motion: 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(143, 159, 63, 0.16), transparent 30%),
    radial-gradient(circle at 100% 12%, rgba(69, 75, 71, 0.14), transparent 26%),
    linear-gradient(180deg, #f2f3ed 0%, var(--bg) 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(32, 37, 34, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 37, 34, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at center, black 44%, transparent 100%);
  mask-image: radial-gradient(circle at center, black 44%, transparent 100%);
}

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

a {
  color: var(--brand);
}

button,
input,
textarea,
select {
  font: inherit;
}

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

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(239, 241, 234, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
}

.nav-brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  padding: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
  transition: transform 220ms ease, opacity 220ms ease;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-deep);
}

.page-hero {
  padding: 88px 0 52px;
}

.page-hero.compact {
  padding: 72px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: var(--brand-deep);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow + h1 {
  margin-top: 20px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  max-width: 10ch;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 1.06rem;
  color: var(--muted);
}

.page-actions,
.hero-stats,
.home-tags,
.project-meta,
.tech-list,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-actions {
  margin-top: 26px;
}

.hero-stats {
  margin-top: 28px;
}

.stat-pill,
.home-tag,
.cat-badge,
.status-badge,
.tech-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-pill,
.home-tag {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: var(--text);
}

.button,
.button-secondary,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button {
  background: linear-gradient(135deg, var(--brand), #68762e);
  color: #fbfcf6;
  box-shadow: 0 14px 30px rgba(79, 94, 32, 0.24);
}

.button-secondary,
.cta-link {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid rgba(17, 24, 39, 0.1);
}

.button:hover,
.button-secondary:hover,
.cta-link:hover,
.project-card:hover .card-shell,
.contact-link:hover {
  transform: translateY(-3px);
}

.blog-highlight {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.blog-stack {
  display: grid;
  gap: 24px;
}

.blog-entry {
  position: relative;
  overflow: hidden;
}

.blog-entry::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), rgba(143, 159, 63, 0.16));
}

.blog-entry-inner {
  display: grid;
  grid-template-columns: minmax(110px, 140px) 1fr;
  gap: 24px;
  align-items: start;
}

.blog-meta {
  margin: 0;
  color: var(--brand-deep);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-date-block {
  display: grid;
  gap: 10px;
}

.blog-date-block .status-badge {
  width: fit-content;
}

.blog-entry-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.blog-entry-copy p {
  margin: 0 0 14px;
  color: var(--muted);
}

.blog-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.section {
  padding: 0 0 var(--section);
}

.panel {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.64));
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow);
}

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

.section-label {
  margin: 0 0 8px;
  color: var(--brand-deep);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-copy,
.filter-status,
.card-desc,
.project-body p,
.contact-intro p,
.home-copy p {
  color: var(--muted);
}

.grid-two {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.home-copy h2,
.contact-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.home-copy p,
.contact-intro p {
  margin: 0 0 16px;
  font-size: 1rem;
}

.feature-card,
.project-card,
.contact-link {
  color: inherit;
  text-decoration: none;
}

.feature-card {
  display: block;
}

.feature-card .card-shell {
  min-height: 0;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card:hover .card-shell,
.feature-card:focus-visible .card-shell {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(24, 28, 26, 0.2);
  border-color: rgba(143, 159, 63, 0.26);
}

.feature-card .card-img {
  min-height: 240px;
}

.feature-card .card-photo {
  object-position: center 22%;
}

.project-card {
  --x: 0px;
  --y: 0px;
  --offset-x: 0px;
  --offset-y: 0px;
  --scale: 1;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--card-width, 320px);
  transform: translate3d(calc(var(--x) + var(--offset-x)), calc(var(--y) + var(--offset-y)), 0) scale(var(--scale));
  opacity: 1;
  transform-origin: center center;
  transition:
    transform var(--motion),
    opacity 320ms ease,
    filter 320ms ease;
}

.project-card.is-active {
  z-index: 24;
}

.project-card.is-active .card-shell {
  will-change: transform, box-shadow;
}

.project-card.is-hidden {
  opacity: 0;
  pointer-events: none;
  filter: saturate(0.9);
  z-index: 0;
}

.card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--card-height);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-tight);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  transform-style: preserve-3d;
}

.card-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 44%);
  transition: opacity 220ms ease;
}

.project-card.is-active .card-shell::after {
  opacity: 1;
}

.card-img {
  position: relative;
  min-height: 176px;
  padding: 18px;
  display: grid;
  place-items: end start;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(111, 125, 50, 0.94), rgba(31, 36, 33, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  color: #fbfcf6;
}

.card-img::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-img-placeholder {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  font-size: 1.48rem;
  line-height: 1;
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-img.photo-top .card-photo {
  object-position: center top;
}

.card-img.photo-metrocop .card-photo {
  object-position: center 8%;
}

.card-img.has-photo {
  background: linear-gradient(180deg, rgba(32, 37, 34, 0.08), rgba(32, 37, 34, 0.46));
}

.card-img.has-photo::before {
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.24);
}

.card-img.has-photo .card-img-placeholder {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(32, 37, 34, 0.54);
  backdrop-filter: blur(8px);
}

.card-img.has-photo .card-img-placeholder.is-hidden {
  display: none;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cat-badge {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.cat-badge.alt {
  background: #e2ead0;
  color: #43511b;
}

.cat-badge.steel {
  background: #dfe3dc;
  color: #3f4842;
}

.cat-badge.leather {
  background: #e2dccf;
  color: #5e5748;
}

.cat-badge.game {
  background: #d9e0d0;
  color: #46513d;
}

.cat-badge.signal {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-badge {
  margin-left: auto;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.status-badge.in-progress {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-badge.complete {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.evolving {
  background: #e1e6d6;
  color: #56643a;
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.36rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.card-desc {
  margin: 0;
  font-size: 0.95rem;
}

.card-arrow {
  margin: auto 0 0;
  padding-top: 18px;
  color: var(--brand-deep);
  font-weight: 600;
}

.toolbar {
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
  border-color: rgba(143, 159, 63, 0.42);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--brand), #68762e);
  color: #fbfcf6;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(79, 94, 32, 0.24);
}

.filter-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand), #68762e);
  color: #fbfcf6;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(79, 94, 32, 0.24);
}

.cards-wrap {
  padding: 26px;
  border-radius: calc(var(--radius-xl) + 4px);
  background: linear-gradient(180deg, rgba(247, 248, 242, 0.78), rgba(227, 230, 222, 0.68));
  border: 1px solid rgba(32, 37, 34, 0.1);
  box-shadow: var(--shadow);
}

.cards-stage {
  position: relative;
  min-height: calc(var(--card-height) + var(--card-gap));
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-tight);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-links {
  display: grid;
  gap: 14px;
}

.copy-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.copy-email {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-deep);
  cursor: pointer;
  font-weight: 600;
}

.copy-email:hover,
.copy-email:focus-visible {
  border-color: rgba(143, 159, 63, 0.42);
  outline: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid rgba(143, 159, 63, 0.22);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.84rem;
  font-weight: 600;
}

.contact-icon.neutral {
  background: #e5e7eb;
  color: #374151;
}

.contact-name {
  font-weight: 700;
}

.contact-handle {
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
}

.contact-arrow {
  margin-left: auto;
  color: var(--brand);
}

.project-hero {
  padding: 72px 0 34px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--brand-deep);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 12ch;
}

.project-hero-sub {
  margin: 0;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-body {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto 80px;
  padding: 32px 0 0;
}

.project-intro,
.wip-notice {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-tight);
}

.project-intro {
  margin-bottom: 24px;
}

.project-intro p:last-child,
.wip-notice p:last-child {
  margin-bottom: 0;
}

.wip-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 24px;
  background: linear-gradient(180deg, rgba(229, 235, 200, 0.9), rgba(247, 248, 242, 0.78));
}

.wip-notice-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.tech-list {
  margin: 0 0 30px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  border: 1px solid rgba(17, 24, 39, 0.08);
  font-family: 'IBM Plex Mono', monospace;
}

.project-body h2 {
  margin: 38px 0 14px;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.project-body p {
  margin: 0 0 16px;
  font-size: 1rem;
}

.project-body ul {
  margin: 12px 0 18px 22px;
  color: var(--muted);
}

.project-body li + li {
  margin-top: 8px;
}

.video-wrap,
.project-img {
  margin: 26px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-tight);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.video-wrap {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-gallery {
  display: grid;
  gap: 18px;
  margin: 28px 0 34px;
}

.project-gallery.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sheet-carousel {
  margin: 20px 0 34px;
}

.sheet-carousel:focus-visible {
  outline: 3px solid rgba(143, 159, 63, 0.34);
  outline-offset: 10px;
  border-radius: var(--radius-md);
}

.sheet-carousel-frame {
  position: relative;
  min-height: 320px;
  overflow: visible;
  perspective: 1600px;
}

.sheet-carousel-track {
  position: relative;
  min-height: inherit;
  transform-style: preserve-3d;
}

body.js-ready .sheet-carousel .project-img {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 700px);
  min-width: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform-origin: center center;
  transform:
    translateX(calc(-50% + var(--deck-x, 0px)))
    translateY(var(--deck-y, 0px))
    translateZ(var(--deck-z, 0px))
    rotateY(var(--deck-ry, 0deg))
    scale(var(--deck-scale, 0.9));
  transition:
    transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 320ms ease,
    filter 320ms ease,
    box-shadow 320ms ease;
  filter: saturate(0.88);
}

.sheet-carousel .project-img img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.sheet-carousel .project-img figcaption {
  font-size: 0.84rem;
}

body.js-ready .sheet-carousel .project-img.is-current,
body.js-ready .sheet-carousel .project-img.is-prev,
body.js-ready .sheet-carousel .project-img.is-next,
body.js-ready .sheet-carousel .project-img.is-far-prev,
body.js-ready .sheet-carousel .project-img.is-far-next {
  opacity: 1;
}

body.js-ready .sheet-carousel .project-img.is-current {
  z-index: 5;
  pointer-events: auto;
  filter: none;
  --deck-x: 0px;
  --deck-y: 0px;
  --deck-z: 72px;
  --deck-ry: 0deg;
  --deck-scale: 1;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.22);
}

body.js-ready .sheet-carousel .project-img.is-prev {
  z-index: 4;
  --deck-x: -26%;
  --deck-y: 28px;
  --deck-z: -48px;
  --deck-ry: 17deg;
  --deck-scale: 0.9;
}

body.js-ready .sheet-carousel .project-img.is-next {
  z-index: 4;
  --deck-x: 26%;
  --deck-y: 28px;
  --deck-z: -48px;
  --deck-ry: -17deg;
  --deck-scale: 0.9;
}

body.js-ready .sheet-carousel .project-img.is-far-prev {
  z-index: 3;
  --deck-x: -40%;
  --deck-y: 46px;
  --deck-z: -110px;
  --deck-ry: 24deg;
  --deck-scale: 0.82;
  opacity: 0.52;
}

body.js-ready .sheet-carousel .project-img.is-far-next {
  z-index: 3;
  --deck-x: 40%;
  --deck-y: 46px;
  --deck-z: -110px;
  --deck-ry: -24deg;
  --deck-scale: 0.82;
  opacity: 0.52;
}

.sheet-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.sheet-carousel-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.sheet-carousel-nav:hover,
.sheet-carousel-nav:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(143, 159, 63, 0.42);
  box-shadow: var(--shadow-tight);
  outline: none;
}

.sheet-carousel-nav:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.sheet-carousel-status {
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-img {
  margin: 0;
  background: rgba(255, 255, 255, 0.78);
}

.project-img img {
  width: 100%;
  height: auto;
  display: block;
}

.project-img figcaption {
  padding: 14px 16px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.82);
}

footer {
  padding: 0 0 42px;
}

footer p {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
}

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

@media (max-width: 920px) {
  .blog-entry-inner,
  .grid-two,
  .contact-grid,
  .project-gallery.split {
    grid-template-columns: 1fr;
  }

  .sheet-carousel-controls {
    gap: 10px;
  }

  body.js-ready .sheet-carousel .project-img {
    width: min(100%, 620px);
  }

  body.js-ready .sheet-carousel .project-img.is-prev,
  body.js-ready .sheet-carousel .project-img.is-next {
    --deck-x: 0px;
    --deck-y: 22px;
    --deck-z: -72px;
    --deck-ry: 0deg;
    --deck-scale: 0.9;
    opacity: 0.32;
  }

  body.js-ready .sheet-carousel .project-img.is-far-prev,
  body.js-ready .sheet-carousel .project-img.is-far-next {
    opacity: 0;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  :root {
    --section: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: var(--shadow-tight);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .page-hero {
    padding-top: 62px;
  }

  .panel,
  .cards-wrap {
    padding: 20px;
  }

  .filter-bar {
    flex-wrap: nowrap;
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .button:hover,
  .button-secondary:hover,
  .cta-link:hover,
  .project-card:hover .card-shell,
  .feature-card:hover .card-shell,
  .feature-card:focus-visible .card-shell,
  .contact-link:hover,
  .filter-btn:hover,
  .filter-btn:focus-visible,
  .sheet-carousel-nav:hover,
  .sheet-carousel-nav:focus-visible {
    transform: none;
  }
}
