:root {
  /* Deep-charcoal dark palette. Variable names are kept from the old
     paper theme so the rest of the sheet keeps working — meanings are
     inverted: "paper" is now the near-black ground and "ink" is the
     warm off-white text. Accent color is pale limestone. */
  --paper: #0e0f12; /* page ground */
  --cream: #16181d; /* elevated surface / alt sections */
  --surface-2: #1c1e25; /* cards, form panel */
  --ink: #edede7; /* primary text (warm off-white) */
  --brick: #efe7ce; /* primary accent — pale limestone */
  --brick-deep: #d6c99f; /* hover / stronger accent */
  --accent-hi: #fffdf3;
  --wood: #363944; /* card border — visible on both --paper and --cream */
  --line: #22252c; /* subtle divider */
  --line-strong: #454955; /* stronger divider / focus rings */
  --muted: #9ea0a8;
  --light-line: rgba(237, 237, 231, 0.1);
  --clay: var(--brick);
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --shell: 1160px;
  --shell-wide: 1280px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--paper);
  background: var(--brick);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: var(--paper);
  background: var(--brick);
  border-radius: 0.25rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.shell {
  width: min(var(--shell), calc(100% - 3rem));
  margin: 0 auto;
}

.section {
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brick);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 15, 18, 0.82);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.3rem;
  gap: 1.5rem;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand span {
  color: var(--brick);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2.3vw, 2rem);
}

.primary-nav a,
.footer-links a {
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 500;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 0.32em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.35rem;
  padding: 0.85rem 1.25rem;
  color: var(--paper);
  background: var(--brick);
  border: 1px solid var(--brick);
  border-radius: 0.2rem;
  box-shadow: none;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.button--small {
  min-height: 2.75rem;
  padding: 0.62rem 0.92rem;
  font-size: 0.82rem;
}

.button--ink {
  width: 100%;
}

.hero {
  overflow: hidden;
  padding-top: clamp(4.5rem, 8vw, 8.5rem);
  background: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.hero-copy {
  padding-bottom: 0.35rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 0.98;
}

h1,
h2 {
  letter-spacing: -0.055em;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7.7vw, 7.3rem);
  font-weight: 400;
}

h2,
h3 {
  font-family: var(--sans);
  font-weight: 600;
}

h1 em,
h2 em {
  font-family: var(--serif);
  font-weight: 400;
}

.lede {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.58;
}

.founder {
  max-width: 52ch;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.35rem;
}

.text-link {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--wood);
  text-decoration-thickness: 0.2em;
  text-underline-offset: 0.28em;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: var(--brick);
}

.hero-card {
  position: relative;
  margin-bottom: 0.2rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--wood);
  box-shadow: 0.45rem 0.45rem 0 rgba(239, 231, 206, 0.14);
}

.hero-card::before {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.28rem 0.55rem;
  color: var(--paper);
  background: var(--brick);
  border-radius: 0.12rem;
  content: "FLOOR";
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.check-list,
.price-card ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.62rem 0 0.62rem 1.65rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.check-list li::before {
  position: absolute;
  left: 0.12rem;
  color: var(--brick);
  content: "✦";
}

.section--cream {
  background: var(--cream);
}

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

.section-heading {
  max-width: 47rem;
}

.section-heading h2,
.contact-copy h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.6rem, 5.5vw, 5.4rem);
  font-weight: 600;
}

.section-heading > p:not(.eyebrow),
.contact-copy > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.8rem, 5vw, 5.3rem);
}

.service-card {
  min-height: 19rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--wood);
  display: flex;
  flex-direction: column;
}

.service-number {
  margin: 0 0 auto;
  color: var(--brick);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-card h3 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.8rem, 5vw, 5.3rem);
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  padding: 1.5rem;
  background: var(--cream);
  border: 1px solid var(--wood);
}

.work-thumb {
  margin: -0.15rem -0.15rem 1.1rem;
  overflow: hidden;
  border: 1px solid var(--wood);
  aspect-ratio: 4 / 3;
  background: var(--paper);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-meta {
  margin: 0 0 auto;
  color: var(--brick);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.work-card--proof h3 {
  margin-top: 1.4rem;
}

.work-card p {
  margin: 0 0 1.6rem;
  color: var(--muted);
}

.work-card .text-link {
  margin-top: auto;
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(3rem, 10vw, 10rem);
}

.section-heading--sticky {
  align-self: start;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.process-step {
  color: var(--brick);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
}

.process-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.process-list p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.8rem, 5vw, 5rem);
}

.price-card {
  position: relative;
  min-height: 25.25rem;
  padding: 1.65rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--wood);
  box-shadow: 0.35rem 0.35rem 0 rgba(239, 231, 206, 0.14);
}

.price-card--featured {
  border-color: var(--brick);
  box-shadow: 0.35rem 0.35rem 0 var(--brick);
}

.price-card h3 {
  max-width: 10ch;
  margin: 0 0 2.3rem;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.price {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-card > p:not(.price):not(.price-label) {
  margin: 0;
  color: var(--muted);
}

.price-card ul {
  position: absolute;
  right: 1.65rem;
  bottom: 1.25rem;
  left: 1.65rem;
}

.price-card li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.price-label {
  display: inline-block;
  margin: -0.18rem 0 0.6rem;
  padding: 0.28rem 0.55rem;
  color: var(--paper);
  background: var(--brick);
  border-radius: 0.12rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-note {
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section--contact {
  background: var(--cream);
  border-top: 1px solid var(--wood);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.8fr);
  gap: clamp(3rem, 10vw, 10rem);
  align-items: start;
}

.contact-copy h2 {
  max-width: 14ch;
}

.contact-email {
  margin-top: 2.2rem !important;
  font-size: 0.97rem !important;
  font-weight: 600;
}

.contact-email a {
  text-decoration-color: var(--brick);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.23em;
}

.contact-form {
  padding: clamp(1.3rem, 3.5vw, 2.2rem);
  background: var(--paper);
  border: 2px solid var(--wood);
  box-shadow: var(--shadow);
}

.field-group {
  margin-bottom: 1.2rem;
}

.field-group label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 0.78rem 0.85rem;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 0.15rem;
}

.field-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus {
  outline: 3px solid rgba(239, 231, 206, 0.32);
  outline-offset: 1px;
  border-color: var(--brick);
}

.form-note,
.form-status {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-status {
  min-height: 1.2em;
  color: var(--ink);
  font-weight: 600;
}

.site-footer {
  padding: 4rem 0 1.4rem;
  color: var(--ink);
  background: var(--paper);
  border-top: 2px solid var(--wood);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 3.8rem;
}

.brand--footer {
  color: var(--ink);
}

.footer-wrap > div:first-child p {
  max-width: 30rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(6rem, 1fr));
  gap: 0.75rem 2rem;
}

.footer-links a {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .shell {
    width: min(var(--shell), calc(100% - 2rem));
  }

  .nav-wrap {
    min-height: auto;
    padding: 1rem 0;
    flex-wrap: wrap;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 1rem 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .nav-wrap > .button {
    margin-left: auto;
  }

  .hero-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 34rem;
  }

  .service-grid,
  .work-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .work-card {
    min-height: 15rem;
  }

  .price-card {
    min-height: 20rem;
  }

  .price-card h3 {
    max-width: none;
    margin-bottom: 1.4rem;
  }

  .footer-wrap,
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4.2rem 0;
  }

  .primary-nav a {
    font-size: 0.83rem;
  }

  .nav-wrap > .button {
    padding: 0.58rem 0.68rem;
    font-size: 0.75rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.4rem;
  }

  .hero-card {
    box-shadow: 0.35rem 0.35rem 0 rgba(239, 231, 206, 0.14);
  }

  .process-list li {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }

  .contact-form {
    padding: 1.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.policy-main {
  background: var(--cream);
}

.policy-content {
  max-width: 760px;
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.policy-content h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
}

.policy-intro {
  max-width: 48ch;
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: 1.16rem;
}

.policy-date {
  margin: 0 0 3.7rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
}

.policy-content section {
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
}

.policy-content h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.policy-content section p {
  margin: 0;
  color: var(--muted);
}

.policy-content section a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--brick);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.22em;
}

/* ---------- Interactive layer ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  background: rgba(237, 237, 231, 0.06);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brick), var(--accent-hi));
  transform-origin: 0 50%;
  transition: width 60ms linear;
}

.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: 480px;
  height: 480px;
  margin-left: -240px;
  margin-top: -240px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(239, 231, 206, 0.14),
    rgba(239, 231, 206, 0) 60%
  );
  opacity: 0;
  transform: translate3d(-1000px, -1000px, 0);
  transition: opacity 300ms ease;
  mix-blend-mode: screen;
}
.cursor-spotlight.is-on {
  opacity: 1;
}

@media (hover: none) {
  .cursor-spotlight {
    display: none;
  }
}

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Live dot */
.live-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  vertical-align: 0.05em;
  background: var(--brick);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 231, 206, 0.45);
  animation: livePulse 2.4s ease-out infinite;
}
@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 231, 206, 0.45);
  }
  70% {
    box-shadow: 0 0 0 0.55rem rgba(239, 231, 206, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 231, 206, 0);
  }
}

/* Hero */
h1 em {
  color: var(--brick);
  font-style: italic;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem 2rem;
  margin: 2.6rem 0 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  min-width: 0;
}
.hero-stats dt {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-stats dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stat-unit {
  color: var(--brick);
  font-family: var(--sans);
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 0.15em;
  vertical-align: 0.4em;
}

.hero-card-foot {
  margin: 1.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

/* Marquee */
.marquee-band {
  padding: 1.15rem 0;
  background: var(--cream);
  border-top: 1px solid var(--wood);
  border-bottom: 1px solid var(--wood);
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  padding-left: 2.4rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
  animation: marqueeSlide 34s linear infinite;
  will-change: transform;
}
.marquee-track span[aria-hidden="true"] {
  color: var(--brick);
}
@keyframes marqueeSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Section heading — wide variant */
.section-heading--wide {
  max-width: 62rem;
}
.section-heading--wide h2 em {
  color: var(--brick);
  font-style: italic;
}

/* Work toolbar + chips */
.work-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.4rem;
  margin: clamp(2rem, 4vw, 3.4rem) 0 clamp(1.4rem, 2.5vw, 2rem);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--wood);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    background 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    transform 180ms var(--ease);
}
.chip:hover {
  transform: translateY(-1px);
  border-color: var(--brick);
}
.chip.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.chip-count {
  padding: 0.05rem 0.45rem;
  background: rgba(14, 15, 18, 0.28);
  border-radius: 999px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
}
.chip:not(.is-active) .chip-count {
  background: rgba(237, 237, 231, 0.08);
  color: var(--brick);
}
.work-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.work-empty {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.work-empty button {
  padding: 0;
  color: var(--brick);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* Rich work grid */
.work-grid--rich {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 0;
}
.work-grid--rich > .work-card {
  grid-column: span 3;
}
.work-grid--rich > .work-card--feature {
  grid-column: span 6;
}
.work-card {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--wood);
  transition:
    transform 380ms var(--ease),
    box-shadow 380ms var(--ease),
    border-color 380ms var(--ease);
  min-height: 0;
  padding: 0;
  display: block;
}
.work-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border: 2px solid transparent;
  transition: border-color 380ms var(--ease);
}
.work-card:hover,
.work-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0.55rem 0.55rem 0 rgba(239, 231, 206, 0.14);
  border-color: var(--brick);
}
.work-card:hover::after,
.work-card:focus-within::after {
  border-color: var(--brick);
}
.work-card.is-hidden {
  display: none;
}
.work-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent;
}
.work-link:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: -6px;
}

/* Featured card — side-by-side: phone left, copy right */
.work-card--feature {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr);
  align-items: stretch;
  overflow: hidden;
}
.work-card--feature .work-thumb {
  border-bottom: 0;
  border-right: 1px solid var(--wood);
  min-height: 460px;
}
.work-card--feature .work-body {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.work-card--feature .work-body > .work-meta {
  margin: 0;
}
.work-card--feature .work-body h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  letter-spacing: -0.045em;
}
.work-card--feature .work-body > p:not(.work-meta) {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}
.work-card--feature .work-tags {
  margin: 0.35rem 0 0;
}
.work-card--feature .work-cta {
  margin-top: auto;
  padding-top: 0.6rem;
}

/* Full-bleed screenshot: no phone chrome, just the site.
   Portrait 3:4 crop with object-position anchored to the top so we see
   the hero of each site. Hover slowly scrolls the crop down to reveal
   the rest of the page (a 6s parallax). */
.work-thumb {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  min-height: 0;
  background: var(--surface-2);
  border: 0;
  border-bottom: 1px solid var(--wood);
  box-sizing: border-box;
  isolation: isolate;
}
.work-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  transition: object-position 6000ms linear;
  will-change: object-position;
}
.work-card:hover .work-thumb img,
.work-card:focus-within .work-thumb img {
  object-position: center bottom;
}

.work-status {
  position: absolute;
  z-index: 2;
  bottom: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  color: var(--ink);
  background: rgba(14, 15, 18, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.work-body {
  padding: 1.4rem 1.4rem 1.5rem;
}
.work-body .work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  color: var(--brick);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.work-body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.work-body > p:not(.work-meta) {
  margin: 0 0 1.1rem;
  color: var(--muted);
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}
.work-tags li {
  padding: 0.28rem 0.6rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--wood);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.work-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.1rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--wood);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.28em;
  transition:
    text-decoration-color 220ms var(--ease),
    color 220ms var(--ease),
    transform 220ms var(--ease);
}
.work-card:hover .work-cta,
.work-card:focus-within .work-cta {
  color: var(--brick);
  text-decoration-color: var(--brick);
  transform: translateX(4px);
}
/* Every card shares the same cream/paper container — no dark variant. */

/* Magnetic buttons keep their existing look; JS moves them slightly on hover. */
[data-magnetic] {
  transition:
    transform 240ms var(--ease),
    background 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease);
  will-change: transform;
}

/* Rich grid + feature layout responsive */
@media (max-width: 960px) {
  .work-grid--rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-grid--rich > .work-card {
    grid-column: span 1;
  }
  .work-grid--rich > .work-card--feature {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
  .work-card--feature .work-thumb {
    border-right: 0;
    border-bottom: 1px solid var(--wood);
    min-height: 420px;
  }
  .work-card--dark.work-card--feature .work-thumb {
    border-bottom-color: #2a1c14;
  }
}
@media (max-width: 640px) {
  .work-grid--rich {
    grid-template-columns: 1fr;
  }
  .work-grid--rich > .work-card,
  .work-grid--rich > .work-card--feature {
    grid-column: 1;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .hero-stats dd {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
  }
  .work-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
  .live-dot {
    animation: none;
  }
  .cursor-spotlight {
    display: none;
  }
}
