/* ==========================================================================
   EthioDevMatrix
   components.css: buttons, overlays, cards, lists, quotes, forms, CTA
   ========================================================================== */

/* ---------- Boot sequence ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
}

.is-booting .boot {
  display: flex;
}

.boot__inner {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  text-align: center;
}

.boot__mark {
  width: 76px;
  height: 76px;
  color: var(--paper);
}

.boot__mark .cell {
  opacity: 0.14;
  transform-box: fill-box;
  transform-origin: center;
  animation: boot-cell 0.55s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 90ms);
}

@keyframes boot-cell {
  from {
    opacity: 0.1;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.boot__word {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.55);
}

.boot__bar {
  width: min(300px, 62vw);
  height: 1px;
  background: rgba(243, 239, 228, 0.16);
  overflow: hidden;
}

.boot__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: width 0.9s var(--ease-out);
}

.boot__pct {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: rgba(243, 239, 228, 0.5);
  font-variant-numeric: tabular-nums;
}

.boot__tag {
  position: absolute;
  left: var(--pad);
  bottom: var(--pad);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.5);
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

/* ---------- Page transition ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  visibility: hidden;
  pointer-events: none;
}

.page-transition__panel {
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.72s var(--ease-in-out);
}

.page-transition__panel:nth-child(2) {
  transition-delay: 0.05s;
}

.page-transition__panel:nth-child(3) {
  transition-delay: 0.1s;
}

.page-transition__panel:nth-child(4) {
  transition-delay: 0.15s;
}

.is-covering .page-transition {
  visibility: visible;
}

.is-covering .page-transition__panel {
  transform: translateY(0);
}

.is-revealing .page-transition {
  visibility: visible;
}

.is-revealing .page-transition__panel {
  transform: translateY(-101%);
}

.page-transition__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  color: var(--lime);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.is-covering .page-transition__logo {
  opacity: 1;
  transition-delay: 0.4s;
}

.is-revealing .page-transition__logo {
  opacity: 0;
  transition-delay: 0s;
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: block;
  }

  .has-cursor,
  .has-cursor a,
  .has-cursor button,
  .has-cursor summary,
  .has-cursor input,
  .has-cursor select,
  .has-cursor textarea,
  .has-cursor label {
    cursor: none;
  }
}

.cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(243, 239, 228, 0.8);
  will-change: transform;
}

.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(243, 239, 228, 0.35);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  will-change: transform;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
    margin 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease,
    color 0.25s ease;
}

.cursor.is-hover .cursor__ring {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.cursor.is-hover .cursor__dot {
  opacity: 0;
}

.cursor.is-view .cursor__ring {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background: var(--lime);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 500;
}

.cursor__label {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor.is-view .cursor__label {
  opacity: 1;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out),
    background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover {
  transform: translate(2px, 2px);
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn--primary {
  background: var(--lime);
  box-shadow: var(--shadow-print-sm);
}

.btn--primary:hover {
  box-shadow: 1px 1px 0 var(--ink);
}

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

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

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--lg {
  padding: 1.15rem 1.6rem;
  font-size: 0.75rem;
}

.btn--block {
  width: 100%;
  justify-content: space-between;
}

.on-ink .btn {
  border-color: var(--paper);
  color: var(--paper);
}

.on-ink .btn--primary {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--lime);
}

.on-ink .btn--ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* arrow link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.25s ease, color 0.25s ease, gap 0.3s var(--ease-out);
}

.tlink svg {
  width: 11px;
  height: 11px;
  transition: transform 0.3s var(--ease-out);
}

.tlink:hover {
  gap: 0.95rem;
  border-color: var(--ink);
}

.tlink:hover svg {
  transform: translate(2px, -2px);
}

.on-ink .tlink {
  border-color: rgba(243, 239, 228, 0.35);
}

.on-ink .tlink:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* ---------- Availability pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(243, 239, 228, 0.4);
}

.pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 0 rgba(169, 217, 47, 0.5);
  animation: pill-pulse 2.2s ease-out infinite;
}

@keyframes pill-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(169, 217, 47, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(169, 217, 47, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(169, 217, 47, 0);
  }
}

.on-ink .pill {
  border-color: var(--line-paper);
  background: transparent;
  color: var(--paper);
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding-block: 1rem;
}

.marquee--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}

.marquee--fast .marquee__track {
  animation-duration: 26s;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding-right: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--lime-deep);
  flex: none;
}

.marquee--ink .marquee__item::after {
  background: var(--lime);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
  background: rgba(243, 239, 228, 0.35);
}

.tag--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.tag--lime {
  background: var(--lime);
  border-color: var(--ink);
  color: var(--ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ---------- Service rows ---------- */
.svc-list {
  border-top: 1px solid var(--line);
}

.svc {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.15fr) minmax(0, 0.9fr) 3rem;
  align-items: start;
  gap: 1rem 2rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.35s ease, color 0.35s ease, padding 0.4s var(--ease-out);
}

.svc__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--muted-2);
  padding-top: 0.55rem;
  transition: color 0.3s ease;
}

.svc__title {
  font-size: clamp(1.55rem, 2.9vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.svc__title small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 0.65rem;
  transition: color 0.3s ease;
}

.svc__desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 38ch;
  transition: color 0.3s ease;
}

.svc__desc ul {
  list-style: none;
  padding: 0;
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.svc__desc li::before {
  content: "/ ";
  opacity: 0.5;
}

.svc__arrow {
  justify-self: end;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out), background 0.3s ease,
    border-color 0.3s ease, color 0.3s ease;
}

.svc__arrow svg {
  width: 12px;
  height: 12px;
}

@media (hover: hover) {
  .svc:hover {
    background: var(--ink);
    color: var(--paper);
    padding-inline: 1.5rem;
  }

  .svc:hover .svc__desc,
  .svc:hover .svc__title small,
  .svc:hover .svc__desc ul {
    color: rgba(243, 239, 228, 0.6);
  }

  .svc:hover .svc__num {
    color: var(--lime);
  }

  .svc:hover .svc__arrow {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--ink);
    transform: rotate(-45deg);
  }
}

/* ---------- Work cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
}

.work-card {
  display: block;
  min-width: 0;
  position: relative;
}

.work-grid > .work-card:nth-child(even) {
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.work-card__art {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
  transition: border-color 0.3s ease;
}

.work-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.work-card:hover .work-card__art {
  border-color: var(--ink);
}

.work-card:hover .work-card__art img {
  transform: scale(1.025);
}

.work-card__stat {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: var(--lime);
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}

.work-card__stat::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--ink);
}

.work-card__body {
  padding-top: 1.15rem;
}

.work-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.85rem;
}

.work-card__meta span:first-child {
  color: var(--ink);
}

.work-card h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.035em;
}

.work-card h3 svg {
  width: 15px;
  height: 15px;
  flex: none;
  transform: translateY(-1px);
  transition: transform 0.35s var(--ease-out);
}

.work-card:hover h3 svg {
  transform: translate(4px, -4px);
}

.work-card__body p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 42ch;
}

.work-card .tags {
  margin-top: 0.9rem;
}

/* full width work card */
.work-card--full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.work-card--full .work-card__art {
  aspect-ratio: 4 / 3;
}

.work-card--full .work-card__body {
  padding-top: 0;
}

.work-card--full h3 {
  font-size: clamp(1.8rem, 3.3vw, 2.9rem);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-paper);
}

.stats__note {
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: rgba(243, 239, 228, 0.42);
  max-width: 60ch;
  line-height: 1.6;
}

.stat {
  padding: 2rem 1.5rem 0.5rem;
  border-left: 1px solid var(--line-paper);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat__num {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.stat__num sup {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--lime);
  margin-left: 0.35rem;
  top: 0.4em;
  position: relative;
}

.stat__label {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.5);
  max-width: 26ch;
}

/* hero mini stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 0;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding-right: 1.4rem;
  margin-right: 1.4rem;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stat:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.hero-stat b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-transform: none;
}

/* ---------- Quote cards ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: var(--gutter);
  align-items: start;
}

.quote-col {
  display: grid;
  gap: var(--gutter);
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  background: rgba(243, 239, 228, 0.35);
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease-out);
}

.quote:hover {
  border-color: var(--line-strong);
  background: rgba(243, 239, 228, 0.7);
}

.quote__mark {
  width: 34px;
  height: 26px;
  color: var(--ink);
}

.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  line-height: 1.32;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.quote--feature {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: var(--paper-2);
}

.quote--feature .quote__text {
  font-size: clamp(1.55rem, 2.9vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.quote__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: auto;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}

.quote__proof b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.quote__proof span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.quote__text em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--lime) 62%);
  padding-inline: 0.08em;
}

.quote__person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  border-radius: 50%;
}

.quote__who {
  min-width: 0;
}

.quote__who b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.quote__who span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.quote__source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.9rem;
  margin-top: 0.25rem;
  border-top: 1px dashed var(--line);
  transition: color 0.2s ease;
}

.quote__source svg {
  width: 10px;
  height: 10px;
  transition: transform 0.3s var(--ease-out);
}

.quote__source:hover {
  color: var(--ink);
}

.quote__source:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- Process ---------- */
.process {
  border-top: 1px solid var(--line);
}

.process__step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 0.7fr) minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.process__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--ink);
  transition: width 0.7s var(--ease-out);
}

.process__step.is-in::before {
  width: 100%;
}

.process__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--muted-2);
  padding-top: 0.3rem;
}

.process__step h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.process__step p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 46ch;
}

.process__time {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.45rem;
  white-space: nowrap;
}

/* ---------- Numbered feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.feature {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2.5vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.feature:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
}

.feature:nth-child(even) {
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.feature__icon {
  width: 28px;
  height: 28px;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.feature h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 0.6rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 38ch;
}

.feature__num {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.25rem);
  right: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted-2);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--muted);
}

.faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}

.faq__icon::before {
  top: 7.5px;
  left: 0;
  width: 16px;
  height: 1px;
}

.faq__icon::after {
  left: 7.5px;
  top: 0;
  width: 1px;
  height: 16px;
}

.faq details[open] .faq__icon::after,
.faq__item[open] .faq__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}.faq__body {
  padding: 0 0 1.6rem;
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  animation: faq-in 0.4s var(--ease-out);
}

.faq__body p + p {
  margin-top: 0.75rem;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.on-ink .faq,
.on-ink .faq__item {
  border-color: var(--line-paper);
}

.on-ink .faq summary {
  color: var(--paper);
}

.on-ink .faq__body {
  color: rgba(243, 239, 228, 0.62);
}

.on-ink .faq__icon::before,
.on-ink .faq__icon::after {
  background: var(--paper);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1.35rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.field > label,
.field > .field__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__req {
  color: var(--ember-text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease, padding 0.25s ease;
  appearance: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1 4l5 5 5-5' fill='none' stroke='%230B0C09' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
  opacity: 0.75;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: rgba(200, 247, 81, 0.12);
  padding-inline: 0.5rem;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--ember);
}

.field__error {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  color: var(--ember);
  min-height: 0;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.35rem;
}

.form__note {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.5;
}

.form__status {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.form__status:empty {
  display: none;
}

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.checkbox input {
  width: 15px;
  height: 15px;
  margin-top: 0.15rem;
  accent-color: var(--ink);
  flex: none;
}

.copy-link {
  justify-self: start;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.12rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.copy-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--lime);
  color: var(--ink);
  overflow: hidden;
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2.5rem;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.cta-band__inner > * {
  min-width: 0;
}

.cta-band h2 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.93;
  max-width: 15ch;
}

.cta-band p {
  margin-top: 1.25rem;
  max-width: 44ch;
  color: rgba(11, 12, 9, 0.7);
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-band__arrow {
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-out);
}

.cta-band__arrow svg {
  width: 26px;
  height: 26px;
}

.cta-band__arrow:hover {
  background: var(--ink);
  color: var(--lime);
  transform: rotate(45deg);
}

/* ---------- Filter bar ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs a {
  transition: color 0.2s ease;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs span[aria-current] {
  color: var(--ink);
}

.crumbs svg {
  width: 8px;
  height: 8px;
  opacity: 0.5;
}

/* ---------- Tech stack ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stack-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease;
}

.stack-cell span {
  font-size: 0.5625rem;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

.stack-cell:hover {
  background: var(--ink);
  color: var(--paper);
}

.stack-cell:hover span {
  color: var(--lime);
}

/* ---------- Timeline ---------- */
.timeline {
  border-top: 1px solid var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.25rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--ink);
  padding-top: 0.25rem;
}

.timeline__item h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.timeline__item p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 52ch;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}

.team-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .team-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .team-grid--three {
    grid-template-columns: 1fr;
  }
}

.person {
  border: 1px solid var(--line);
  padding: 1.25rem;
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out);
}

.on-ink .person {
  border-color: var(--line-paper);
}

.person:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}

.on-ink .person:hover {
  border-color: var(--lime);
}

.person__face {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.team-grid--three .person__face {
  aspect-ratio: 4 / 3;
}

.person__face span {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.person__face::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--lime);
  z-index: 2;
}

.person__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
}

.person h3 {
  font-size: 1.0625rem;
}

.person p {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.on-ink .person p {
  color: rgba(243, 239, 228, 0.5);
}

/* ---------- Value cards ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.value {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value__num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 2rem;
  display: block;
}

.value h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  margin-bottom: 0.65rem;
}

.value p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 36ch;
}

/* ---------- Figure / image frame ---------- */
.figure {
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}

.figure img {
  width: 100%;
  height: auto;
}

.figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 10060;
  max-width: min(88vw, 380px);
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(200, 247, 81, 0.9);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
  pointer-events: none;
}

.toast.is-on {
  transform: none;
  opacity: 1;
}

/* ---------- Misc ---------- */
.kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue__line {
  width: 40px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-100%);
  animation: cue 2.4s var(--ease-in-out) infinite;
}

@keyframes cue {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

.diamond {
  width: 6px;
  height: 6px;
  background: var(--lime-deep);
  transform: rotate(45deg);
  display: inline-block;
  flex: none;
}

/* responsive components */
@media (max-width: 1080px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    padding: 1.75rem 0 1.25rem 1.5rem;
    border-top: 1px solid var(--line-paper);
  }

  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(-n + 2) {
    border-top: 0;
  }

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

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

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

  .quote-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .svc {
    grid-template-columns: 2.5rem minmax(0, 1fr) 3rem;
    gap: 0.65rem 1rem;
    padding: 1.6rem 0;
  }

  .svc__desc {
    grid-column: 2 / 3;
    max-width: 52ch;
    font-size: 0.875rem;
  }

  .svc__arrow {
    grid-row: 1;
    grid-column: 3;
  }

  .svc__title small {
    margin-top: 0.5rem;
  }

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

  .work-grid > .work-card:nth-child(even) {
    margin-top: 0;
  }

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

  .work-card--full .work-card__art {
    aspect-ratio: 4 / 3;
  }

  .process__step {
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    gap: 0.5rem 1rem;
  }

  .process__step p {
    grid-column: 2 / 4;
  }

  .process__time {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }

  .cta-band__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cta-band__actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
  }

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

  .timeline__item p {
    grid-column: 2;
  }

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

@media (max-width: 720px) {
  .quote-col {
    grid-template-columns: 1fr;
  }

  .quote--feature {
    padding: 1.5rem;
  }

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

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

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

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

  .feature:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }

  .feature:nth-child(even) {
    padding-left: 0;
  }

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

  .hero-stats {
    gap: 0.8rem 0;
  }

  .hero-stat {
    padding-right: 1rem;
    margin-right: 1rem;
  }

  .svc__desc ul {
    display: none;
  }

  .svc__title small {
    display: none;
  }

  .value {
    padding: 1.25rem;
  }

  .value__num {
    margin-bottom: 1rem;
  }

  .work-card__stat {
    left: 0.65rem;
    bottom: 0.65rem;
    font-size: 0.5625rem;
  }

  .service-block__foot {
    align-items: flex-start;
  }

  .service-block__foot .tags {
    max-width: 100%;
  }

  .cta-band__inner {
    gap: 1.5rem;
    padding-block: 3.5rem;
  }

  .cta-band h2 {
    font-size: clamp(2.1rem, 8.4vw, 3rem);
  }

  .cta-band p {
    font-size: 0.9375rem;
  }

  .cta-band__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cta-band__actions .btn {
    width: 100%;
  }

  .cta-band__arrow {
    display: none;
  }
}

@media (max-width: 460px) {
  .btn {
    padding: 0.9rem 1rem;
  }

  .btn--lg {
    padding: 1rem 1.2rem;
  }

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

  .hero-stat {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
    width: 50%;
  }
}
