/* ============================================
   Prodix — Design tokens
   ============================================ */
:root {
  --ink: #0E1210;
  --paper: #FFFFFF;
  --green: #3FBF5A;
  --slate: #8A9490;
  --mist: #F2F5F3;
  --lime: #C9F26D;

  --ink-70: #4C5650;
  --ink-55: #6B746F;
  --hairline-dark: rgba(14, 18, 16, 0.12);
  --hairline-light: rgba(255, 255, 255, 0.10);

  --font-head: 'Space Grotesk', 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  --radius: 10px;
  --container-w: 1120px;
  --space-section: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden — `hidden` would make body a scroll container and break the sticky header */
  overflow-x: clip;
}

.dot { color: var(--green); font-style: normal; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Scroll progress
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 150;
  will-change: transform;
}

/* ============================================
   Headings
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 18px;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

h3 { font-size: 1.15rem; margin-bottom: 8px; }

.section-body {
  max-width: 640px;
  color: var(--slate);
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.section-ink .section-body,
.hero .hero-subhead { color: var(--slate); }
.section-white .section-body,
.section-mist .section-body { color: var(--ink-70); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: var(--ink);
}
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  border: 1.5px solid var(--paper);
  color: var(--paper);
  background: transparent;
}
.section-white .btn-secondary,
.section-mist .btn-secondary {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--paper); color: var(--ink); }
.section-white .btn-secondary:hover,
.section-mist .btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
/* The blur lives on a pseudo-element: `backdrop-filter` on the header itself would make
   it the containing block for .nav-menu, collapsing the fixed overlay to header height. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 18, 16, 0.72);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}
.site-header.is-scrolled::before { background: rgba(14, 18, 16, 0.94); }
.site-header.is-scrolled { border-bottom-color: var(--hairline-light); }

.nav {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s ease;
}
.site-header.is-scrolled .nav { padding-top: 11px; padding-bottom: 11px; }

.nav-logo img { height: 34px; width: auto; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* The overlay stays inside the viewport when closed — an off-screen X-translate
   would inflate document scrollWidth, and a fixed element can't be clipped away. */
.nav-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
  z-index: 105;
}
.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--green); }

/* staggered reveal of overlay links */
.nav-menu li, .nav-menu .nav-cta {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav-menu.is-open li, .nav-menu.is-open .nav-cta {
  opacity: 1;
  transform: translateY(0);
}
.nav-menu.is-open li:nth-child(1) { transition-delay: 0.08s; }
.nav-menu.is-open li:nth-child(2) { transition-delay: 0.14s; }
.nav-menu.is-open li:nth-child(3) { transition-delay: 0.20s; }
.nav-menu.is-open li:nth-child(4) { transition-delay: 0.26s; }
.nav-menu.is-open .nav-cta { transition-delay: 0.32s; }

/* ============================================
   Hero
   ============================================ */
.hero {
  background: var(--ink);
  padding: 72px 0 64px;
  text-align: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: clamp(2.3rem, 6.5vw, 4.2rem);
  max-width: 16ch;
  margin-bottom: 24px;
}
.mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.mask-i {
  display: block;
  transform: translateY(105%);
  animation: maskUp 0.9s var(--ease) forwards;
}
.mask:nth-of-type(1) .mask-i { animation-delay: 0.05s; }
.mask:nth-of-type(2) .mask-i { animation-delay: 0.16s; }
@keyframes maskUp { to { transform: translateY(0); } }

.hero-anim {
  opacity: 0;
  transform: translateY(14px);
  animation: heroIn 0.7s var(--ease) forwards;
}
.hero-anim:nth-child(1) { animation-delay: 0.02s; }
.hero-subhead { animation-delay: 0.42s; }
.hero-ctas { animation-delay: 0.52s; }
.proof-strip { animation-delay: 0.62s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-subhead {
  max-width: 56ch;
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 36px;
}

.proof-strip {
  font-size: 0.85rem;
  color: var(--slate);
  max-width: 46ch;
}

/* ============================================
   Capability marquee
   ============================================ */
.marquee {
  background: var(--ink);
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  flex: 0 0 auto;
}
.marquee-group span {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate);
  white-space: nowrap;
}
.marquee-group .dot { font-size: 1.1rem; line-height: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================
   Section base
   ============================================ */
.section { padding: var(--space-section) 0; }
.section-mist { background: var(--mist); color: var(--ink); --hairline: var(--hairline-dark); }
.section-white { background: var(--paper); color: var(--ink); --hairline: var(--hairline-dark); }
.section-ink { background: var(--ink); color: var(--paper); --hairline: var(--hairline-light); }

/* ============================================
   Problem — cards
   ============================================ */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(14, 18, 16, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(14, 18, 16, 0.08);
}
.card-number {
  font-family: var(--font-head);
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.card p:not(.card-number) { color: var(--ink-70); }

/* ============================================
   Services — value + deliverables
   ============================================ */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 191, 90, 0.45);
  box-shadow: 0 14px 34px rgba(14, 18, 16, 0.07);
}
.svc-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green);
  margin-bottom: 16px;
}
.svc-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.svc-sub { color: var(--slate); font-size: 0.95rem; margin-bottom: 24px; }

.svc-list { display: flex; flex-direction: column; margin-bottom: 28px; }
.svc-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--hairline-dark);
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.svc-item {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}
.svc-detail { display: block; color: var(--ink-55); font-size: 0.88rem; }

.svc-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--green);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.svc-link:hover .arrow { transform: translateX(5px); }

/* ============================================
   Pricing — tier rail + panels
   ============================================ */
.services { margin-top: 24px; }

.tier-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 32px;
  padding-bottom: 2px;
}
.tier-rail::-webkit-scrollbar { display: none; }

.tier-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--hairline-dark);
  color: var(--ink-70);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.tier-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--slate);
  transition: color 0.25s ease;
}
.tier-name {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  display: block;
}
.tier-sub { display: none; }
.tier-tab:hover { border-color: rgba(14, 18, 16, 0.3); }
.tier-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.tier-tab[aria-selected="true"] .tier-num { color: var(--green); }

.tier-panel[hidden] { display: none; }

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: start;
  position: relative;
  padding: 18px 12px 18px 22px;
  border-bottom: 1px solid rgba(14, 18, 16, 0.1);
  border-radius: 6px;
  transition: background 0.25s ease;
}
.service-row:first-child { border-top: 1px solid rgba(14, 18, 16, 0.1); }
.service-row::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 27px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  transition: transform 0.25s var(--ease);
}
.service-row:hover { background: rgba(63, 191, 90, 0.05); }
.service-row:hover::before { transform: scale(1.7); }

.service-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.service-name {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink);
}
.service-desc { color: var(--ink-55); font-size: 0.9rem; }
.service-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.service-price small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--slate);
  white-space: normal;
  margin-top: 3px;
  max-width: 18ch;
  margin-left: auto;
}

.tier-panel.is-active .service-row {
  animation: rowIn 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Bundle
   ============================================ */
.bundle-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bundle .section-body { margin-left: auto; margin-right: auto; }
.badge {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.bundle h2 { margin-left: auto; margin-right: auto; }
.bundle h2::after { left: 50%; transform: translateX(-50%); }
.bundle-price {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 24px;
}
.bundle-price span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--slate);
  margin-top: 6px;
}
.bundle-comparison {
  color: var(--slate);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ============================================
   Work
   ============================================ */
.work-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}
.work-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgba(14, 18, 16, 0.08);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(14, 18, 16, 0.1);
  border-color: rgba(63, 191, 90, 0.45);
}
.work-card-link { display: flex; flex-direction: column; height: 100%; }

/* Image slot. Drop an <img> in and remove .is-empty; the placeholder is the
   period-motif dot field so an unfilled slot still reads as designed. */
.media-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  overflow: hidden;
}
.media-slot img:not(.media-mark) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.media-mark { height: 30px; width: auto; position: relative; z-index: 1; }
.media-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--green) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: 0.16;
  transition: transform 0.6s var(--ease), opacity 0.4s ease;
}
.work-card:hover .media-dots { transform: scale(1.12); opacity: 0.26; }
.work-card:hover .media-slot img:not(.media-mark) { transform: scale(1.03); }
.media-slot img:not(.media-mark) { transition: transform 0.6s var(--ease); }

.work-body-wrap { padding: 28px; display: flex; flex-direction: column; flex: 1; }

.work-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 14px;
}
.work-label .dot { color: var(--slate); }
.work-title { font-size: 1.3rem; margin-bottom: 12px; color: var(--ink); }
.work-body { color: var(--ink-70); margin-bottom: 18px; }

.work-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.work-stack li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-70);
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  padding: 4px 12px;
}

.work-cta {
  margin-top: auto;
  color: var(--green);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.arrow { transition: transform 0.25s var(--ease); display: inline-block; }
.work-card:hover .arrow { transform: translateX(5px); }

.work-card-placeholder {
  border: 1.5px dashed rgba(14, 18, 16, 0.25);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 28px;
  min-height: 220px;
}
.work-card-placeholder:hover {
  border-color: var(--green);
  background: rgba(63, 191, 90, 0.05);
  box-shadow: none;
}
.work-card-placeholder .work-cta { margin-top: 10px; }

/* ============================================
   Process
   ============================================ */
.process-list {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
.process-list li {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-dark);
}
.process-list li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms + 150ms);
}
.process-list li.is-visible::before { transform: scaleX(1); }
.process-index {
  display: block;
  font-family: var(--font-head);
  color: var(--green);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.process-list p { color: var(--ink-70); }

.reassurance {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-dark);
  color: var(--slate);
  font-size: 0.95rem;
}

/* ============================================
   FAQ / Accordion
   ============================================ */
.accordion {
  border-top: 1px solid var(--hairline-dark);
  margin-top: 16px;
}
.accordion-item { border-bottom: 1px solid var(--hairline-dark); }
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}
.accordion-trigger:hover { color: var(--green); }
.accordion-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  position: relative;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-icon::before { width: 14px; height: 2px; }
.accordion-icon::after { width: 2px; height: 14px; transition: transform 0.25s var(--ease); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}
.accordion-panel p {
  color: var(--ink-70);
  padding-bottom: 20px;
  max-width: 62ch;
}

/* ============================================
   Contact
   ============================================ */
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-inner h2 { margin-left: auto; margin-right: auto; }
.contact-inner h2::after { left: 50%; transform: translateX(-50%); }
.contact-inner .section-body { margin-left: auto; margin-right: auto; }
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink);
  padding: 48px 0;
  border-top: 1px solid var(--hairline-light);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo { height: 28px; width: auto; }
.footer-tagline {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--slate);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--slate);
}
.footer-meta a { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease; }
.footer-meta a:hover { color: var(--green); }

/* ============================================
   Icons
   ============================================ */
.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* ============================================
   Case study page
   ============================================ */
.cs-hero {
  background: var(--ink);
  padding: 72px 0 80px;
  text-align: center;
}
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 40px;
  transition: color 0.2s ease;
}
.cs-back:hover { color: var(--green); }
.cs-back .arrow { transition: transform 0.25s var(--ease); }
.cs-back:hover .arrow { transform: translateX(-4px); }

.cs-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 20px;
}
.cs-eyebrow .sep { color: var(--slate); }
.cs-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 20ch;
  margin: 0 auto 24px;
}
.cs-lede {
  max-width: 62ch;
  margin: 0 auto 56px;
  color: var(--slate);
  font-size: 1.08rem;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  text-align: left;
  max-width: 820px;
  margin: 0 auto;
  padding-top: 36px;
  border-top: 1px solid var(--hairline-light);
}
.cs-meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 6px;
}
.cs-meta dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
}
.cs-meta dd.tbc { color: var(--slate); font-weight: 400; }

.cs-section { padding: var(--space-section) 0; }
.cs-section h2 { margin-bottom: 44px; }

.cs-cover {
  margin-top: 56px;
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius);
}

/* screens gallery */
.cs-screens { display: grid; grid-template-columns: 1fr; gap: 32px; }
.cs-screens .media-slot { border-radius: var(--radius); border: 1px solid var(--hairline-dark); }
.cs-screens figcaption {
  margin-top: 14px;
  color: var(--ink-55);
  font-size: 0.9rem;
}

/* problem cards */
.cs-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.cs-tile {
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.cs-tile:hover { transform: translateY(-3px); border-color: rgba(63, 191, 90, 0.45); }
.cs-tile-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green);
  margin-bottom: 14px;
}
.cs-tile p { color: var(--ink-70); }

/* approach steps */
.cs-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  counter-reset: step;
}
.cs-steps li {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-dark);
}
.cs-steps li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.cs-steps li.is-visible::before { transform: scaleX(1); }
.cs-step-index {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cs-steps p { color: var(--ink-70); }

/* shipped */
.cs-grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cs-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.cs-stack li {
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--hairline, var(--hairline-dark));
  color: inherit;
  border-radius: 999px;
  padding: 6px 14px;
}

/* results rows */
.cs-results { border-top: 1px solid var(--hairline, var(--hairline-dark)); }
.cs-result-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline, var(--hairline-dark));
}
.cs-result-metric {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--green);
  line-height: 1;
}
.cs-result-label { font-weight: 600; margin-bottom: 2px; }
.cs-result-desc { color: var(--slate); font-size: 0.95rem; }

/* quote */
.cs-quote { text-align: center; }
.cs-quote blockquote {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.35;
  max-width: 26ch;
  margin: 0 auto 28px;
}
.cs-quote figcaption { color: var(--slate); font-size: 0.9rem; }
.cs-quote cite { font-style: normal; font-weight: 600; color: inherit; }

/* draft placeholder */
.draft {
  display: block;
  color: var(--slate);
  font-style: italic;
  font-size: 0.92rem;
}
.draft::before {
  content: "Draft";
  display: inline-block;
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 10px;
  vertical-align: 2px;
}

/* ============================================
   About / Team
   ============================================ */
.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
  transition: filter 0.2s ease;
}
@media (hover: hover) {
  .team-photo:hover img { filter: grayscale(0); }
}
.team-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.founder-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  margin-top: 12px;
}
.founder-photo { width: min(220px, 60vw); flex: 0 0 auto; }
.founder-copy { max-width: 46ch; }
.founder-copy h2 { margin-left: auto; margin-right: auto; }
.founder-role { color: var(--ink-70); font-weight: 500; margin-bottom: 10px; }
.founder-pullline {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--ink-70);
  margin-bottom: 18px;
}
.founder-bio { color: var(--ink-70); }
.founder-copy .svc-link { margin-top: 16px; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}
.team-card { text-align: left; }
.team-card .team-photo { max-width: 320px; margin-bottom: 20px; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-role { color: var(--ink-70); font-weight: 500; font-size: 0.92rem; margin-bottom: 12px; }
.team-bio { color: var(--ink-70); max-width: 46ch; }

.work-strip-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.work-strip-line {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  max-width: 42ch;
}

@media (min-width: 640px) {
  .founder-block { flex-direction: row; align-items: flex-start; text-align: left; gap: 40px; }
  .founder-copy h2 { margin-left: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-anim, .mask-i { opacity: 1; transform: none; animation: none; }
  .marquee-track { animation: none; }
  .tier-panel.is-active .service-row { animation: none; }
  .process-list li::before,
  .cs-steps li::before { transform: scaleX(1); transition: none; }
  .nav-menu, .btn, .accordion-panel, .nav-menu li, .nav-menu .nav-cta,
  .card, .work-card, .cs-tile, .arrow, .media-dots, .media-slot img, .team-photo img { transition: none; }
}

/* ============================================
   Responsive — tablet & up
   ============================================ */
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); gap: 40px; }

  .cs-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cs-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .cs-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cs-screens { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .cs-steps { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .cs-result-row {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 32px;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  /* Services becomes a two-column rail + panel layout */
  .services {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 0 72px;
    align-items: start;
    margin-top: 32px;
  }
  .tier-rail {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    margin-bottom: 0;
    border-left: 1.5px solid var(--hairline-dark);
    position: sticky;
    top: 104px;
  }
  .tier-tab {
    width: 100%;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0 20px 22px;
    margin-left: -1.5px;
    border: 0;
    border-left: 1.5px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--ink-55);
    transition: color 0.25s ease, border-color 0.25s ease;
  }
  .tier-tab:hover { color: var(--ink); border-color: rgba(14, 18, 16, 0.3); }
  .tier-tab[aria-selected="true"] {
    background: transparent;
    color: var(--ink);
    border-left-color: var(--green);
  }
  .tier-tab[aria-selected="true"] .tier-name { font-weight: 700; }
  .tier-num { padding-top: 3px; }
  .tier-text { text-align: left; }
  .tier-sub {
    display: block;
    font-size: 0.82rem;
    color: var(--slate);
    font-weight: 400;
    margin-top: 2px;
    white-space: normal;
  }
  .service-row { padding-right: 8px; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    background: none;
    flex-direction: row;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    gap: 40px;
    width: auto;
  }
  .nav-menu li, .nav-menu .nav-cta { opacity: 1; transform: none; transition: none; }
  .nav-links { flex-direction: row; gap: 32px; }
  .nav-links a { font-size: 0.95rem; font-family: var(--font-body); font-weight: 500; }

  .process-list { grid-template-columns: repeat(4, 1fr); }
  .cs-steps { grid-template-columns: repeat(4, 1fr); }
}
