:root {
  --bg: #FBF8F4;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5C5C5C;
  --accent: #FF6B4A;
  --accent-soft: #FFE8E2;
  --pastel-1: #E8F4F8;
  --pastel-2: #F3E8FF;
  --pastel-3: #E8F8F0;
  --pastel-4: #FFF3E0;
  --border: #EDE8E0;
  --radius: 20px;
  --font: 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(251, 248, 244, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-color: var(--border); }

.logo {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a:not(.btn-nav) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav a:not(.btn-nav):hover { color: var(--text); }

.btn-nav {
  background: var(--text);
  color: white;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.btn-nav:hover { transform: translateY(-2px); background: #333; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
}
.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 18px rgba(255, 107, 74, 0.28);
}
.btn.primary:hover {
  background: #E85A3A;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 74, 0.35);
}
.btn.ghost {
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
}
.btn.ghost:hover {
  border-color: var(--text);
  background: white;
  transform: translateY(-2px);
}

/* ===== Slides / Sections ===== */
.slides {
  scroll-snap-type: y proximity;
  overflow-y: auto;
  height: 100vh;
}

.slide {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: 6rem 3rem 4rem;
  position: relative;
}

/* ===== Intro (split) ===== */
.intro {
  background: var(--bg);
  justify-content: center;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.intro-photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--pastel-1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
}

.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.intro-text {
  text-align: left;
  min-width: 0; /* prevent overflow */
}

.slide-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  white-space: nowrap;
}

.intro-text h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.8vw, 3.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
  /* Prefer keeping key phrases together */
  max-width: 14ch;
}

.intro-text h1 em {
  font-style: italic;
  color: var(--accent);
}

.intro-text .slide-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.intro-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ===== Project slides ===== */
.slide[data-bg] {
  background: var(--bg);
}

.slide-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.15fr);
  gap: 3.5rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.slide-inner.reverse {
  direction: rtl;
}
.slide-inner.reverse > * {
  direction: ltr;
}

.slide-text {
  text-align: left;
  min-width: 0;
}

.slide-text h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  /* use the full text column; wrap only when the title really doesn't fit */
  white-space: normal;
  max-width: none;
}

.slide-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 1.6rem;
  line-height: 1.55;
}

.slide-link {
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  white-space: nowrap;
  transition: gap 0.25s var(--ease);
}
.slide-link:hover { gap: 0.6rem; }

.slide-media {
  border-radius: 18px;
  overflow: hidden;
  background: var(--pastel-1);
  aspect-ratio: 16 / 11;
  box-shadow: 0 20px 50px rgba(0,0,0,0.07);
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.slide:hover .slide-media img {
  transform: scale(1.03);
}

/* Pastel backgrounds per project for a bit of fun */
#dispatch .slide-media { background: var(--pastel-4); }
#job .slide-media { background: var(--pastel-1); }
#photoshelter .slide-media { background: var(--pastel-3); }

/* ===== About ===== */
.about-slide {
  background: var(--bg);
  justify-content: center;
}

.about-content {
  max-width: 640px;
  text-align: left;
}

.about-content h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  max-width: 16ch;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 2.2rem;
  line-height: 1.55;
}

.about-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ===== Case study pages ===== */
.cs-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(251, 248, 244, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.cs-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.cs-nav a:hover { color: var(--text); }
.cs-nav .logo { color: var(--text); }

.cs-hero {
  padding: 8rem 2.5rem 2.5rem;
  max-width: 820px;
  margin: 0 auto;
  color: var(--text);
  background: var(--bg);
}
.cs-company {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  white-space: nowrap;
}
.cs-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
  color: var(--text);
  max-width: 18ch;
}
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cs-meta strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.cs-summary {
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 52ch;
  color: var(--text-muted);
}

.cs-hero-image {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2.5rem 2rem;
  background: var(--bg);
}
.cs-hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.cs-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 4.5rem;
  background: var(--bg);
  color: var(--text-muted);
}
.cs-body h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  margin: 2.75rem 0 0.9rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.cs-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
  color: var(--text);
}
.cs-body p { margin-bottom: 1.15rem; line-height: 1.65; }
.cs-body ul { margin: 0.9rem 0 1.35rem 1.2rem; }
.cs-body li { margin-bottom: 0.45rem; line-height: 1.55; }
.cs-body strong { color: var(--text); font-weight: 500; }

.cs-image {
  margin: 2.25rem 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pastel-1);
}
.cs-image img { width: 100%; }

.cs-result {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
}
.cs-result p { margin: 0; color: var(--text); }

.cs-next {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 2.5rem 4.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg);
  color: var(--text);
}
.cs-next a {
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.cs-next a:hover { color: var(--accent); }

body:has(.cs-hero) {
  background: var(--bg);
}

/* Animations */
.will-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.will-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}
.slide-media.will-animate { transition-delay: 0.1s; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav { padding: 1.1rem 1.5rem; }
  .slide { padding: 5.5rem 1.5rem 3rem; }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .intro-photo {
    max-width: 280px;
    aspect-ratio: 1;
  }
  .intro-text h1 {
    font-size: 2.5rem;
    max-width: none;
  }

  .slide-inner,
  .slide-inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.75rem;
  }
  .slide-text h2 {
    font-size: 2.3rem;
    max-width: none;
  }

  .cs-hero,
  .cs-body,
  .cs-next,
  .cs-hero-image {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .cs-hero h1 { max-width: none; }
}

@media (max-width: 520px) {
  .nav nav a:not(.btn-nav) { display: none; }
  .intro-text h1 { font-size: 2.15rem; }
  .slide-text h2 { font-size: 2rem; }
  .slide-label { white-space: normal; }
}

/* ===== Custom cursor ===== */
.has-custom-cursor,
.has-custom-cursor * {
  cursor: none !important;
}

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-100px, -100px);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.cursor {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1.5px solid rgba(255, 107, 74, 0.55);
  background: rgba(255, 107, 74, 0.06);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
}

.cursor.cursor-grow {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  background: rgba(255, 107, 74, 0.12);
  border-color: rgba(255, 107, 74, 0.7);
}

.cursor-dot.cursor-grow {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
}

/* Hide custom cursor on touch / coarse pointers */
@media (pointer: coarse) {
  .cursor, .cursor-dot { display: none !important; }
  .has-custom-cursor, .has-custom-cursor * { cursor: auto !important; }
}

/* Stronger section entrance */
.will-animate {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.will-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.slide-media.will-animate {
  transition-delay: 0.12s;
}

.intro-photo.will-animate {
  transition-delay: 0.08s;
}

/* Slight scale on active section media */
.slide.section-active .slide-media img {
  transform: scale(1.02);
}

/* ===== Work grid (all 12 projects) ===== */
.work-grid-section {
  padding: 5rem 2.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.work-grid-header {
  margin-bottom: 2.5rem;
}

.work-grid-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.work-card {
  display: block;
  transition: transform 0.35s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
}

.work-card-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.9rem;
}
.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card-img img {
  transform: scale(1.04);
}

.work-card-meta span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.work-card-meta h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
}

.about-section {
  padding: 4rem 2.5rem 7rem;
  max-width: 700px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.about-section h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1.25rem;
}
.about-section .about-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 42ch;
}

footer {
  text-align: center;
  padding: 1.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .work-grid-section,
  .about-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

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

/* ===== About block ===== */
.about-block {
  padding: 6rem 2.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.about-block-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.about-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 1.5rem;
}
.about-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}
.about-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 48ch;
}
.about-photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--pastel-1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 5rem 2.5rem 6rem;
  background: #F3EFE8;
}
.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.testimonials-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 2.5rem;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.t-card {
  border-radius: 16px;
  padding: 1.75rem 1.85rem;
  margin: 0;
}
.t-card p {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.t-card footer {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.75;
}
.t-light {
  background: transparent;
  color: var(--text);
}
.t-dark {
  background: #1A1A1A;
  color: #F5F2EB;
}
.t-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Contact block ===== */
.contact-block {
  background: #1A1A1A;
  color: #F5F2EB;
  padding: 5rem 2.5rem 6rem;
}
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.contact-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}
.contact-inner h2 span {
  color: var(--accent);
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
}
.contact-row a {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(245,242,235,0.85);
  transition: color 0.2s;
}
.contact-row a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-photo {
    max-width: 280px;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .about-block,
  .testimonials,
  .contact-block {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ===== Statement hero (Chaachie-inspired) ===== */
.hero-statement {
  background: #0F0F0F !important;
  color: #F5F2EB;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2.5rem 5rem;
  text-align: left;
}

.hero-statement-inner {
  max-width: 980px;
  width: 100%;
}

.hero-statement h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  color: #F5F2EB;
  max-width: none;
}

.hero-statement .name {
  white-space: nowrap;
}

.hero-statement .star {
  color: #FF6B4A;
  font-style: normal;
}

.hero-statement em {
  font-style: italic;
  font-weight: 400;
}

.hero-statement .c1 { color: #F5F2EB; font-style: italic; }
.hero-statement .c2 { color: #F5F2EB; font-style: italic; }
.hero-statement .c3 { color: #FF6B4A; font-style: italic; }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(245, 242, 235, 0.55);
  margin-bottom: 2.25rem;
  max-width: 42ch;
  line-height: 1.5;
}

.hero-statement .btn.ghost {
  border-color: rgba(255,255,255,0.25);
  color: #F5F2EB;
}
.hero-statement .btn.ghost:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}

/* Nav stays readable on dark hero */
.nav {
  mix-blend-mode: normal;
}
body:has(.hero-statement) .nav {
  background: transparent;
  border-bottom: none;
}
body:has(.hero-statement) .nav .logo,
body:has(.hero-statement) .nav a:not(.btn-nav) {
  color: rgba(245, 242, 235, 0.85);
}
body:has(.hero-statement) .nav a:not(.btn-nav):hover {
  color: #fff;
}
body:has(.hero-statement) .nav.scrolled {
  background: rgba(15, 15, 15, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body:has(.hero-statement) .btn-nav {
  background: #F5F2EB;
  color: #0F0F0F;
}

@media (max-width: 700px) {
  .hero-statement h1 {
    font-size: 2.1rem;
  }
  .hero-statement .name {
    white-space: normal;
  }
}

/* ===== CRITICAL: Hero must be visible ===== */
.hero-statement {
  opacity: 1 !important;
  visibility: visible !important;
  min-height: 100vh;
  height: 100vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #0F0F0F !important;
  color: #F5F2EB !important;
  position: relative;
  z-index: 10;
}

.hero-statement-inner,
.hero-statement-inner.will-animate,
.hero-statement .will-animate {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.hero-statement h1 {
  color: #F5F2EB !important;
  opacity: 1 !important;
}

/* Make sure slides container doesn't hide first section */
.slides {
  scroll-snap-type: y proximity;
  height: auto;
  overflow: visible;
}

.slide {
  scroll-snap-align: start;
  min-height: 100vh;
}

/* ===== Image placeholders (shown only when an image file is missing) ===== */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.5rem;
  text-align: center;
  color: #8A8580;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.06);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
}
.img-placeholder svg { opacity: 0.55; margin-bottom: 0.2rem; }
.img-placeholder-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--text-muted);
}
.img-placeholder-note {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9A948D;
}
/* Case-study hero has no fixed-size wrapper, so give the box its own shape */
.cs-hero-image .img-placeholder {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 16px;
  background-color: var(--pastel-1);
  box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.06), 0 16px 48px rgba(0,0,0,0.08);
}
.cs-image .img-placeholder {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 16px;
  background-color: var(--pastel-1);
}

/* ===== Draft placeholders for case-study text still to be written ===== */
.cs-body p.cs-todo {
  border: 1px dashed #D9D2C7;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  color: #9A948D;
  font-size: 0.95rem;
  font-style: italic;
}
.cs-todo-inline {
  color: #9A948D;
  font-style: italic;
}

/* ===== Case-study titles use the full hero width (was capped at 18ch) ===== */
.cs-hero h1 {
  max-width: none;
  text-wrap: pretty;
}

/* ===== Wide case-study image: breaks out of the text column ===== */
.cs-image.cs-image--wide {
  /* Matches .cs-hero-image: 1000px max container minus its 2.5rem side padding */
  --wide-w: calc(min(1000px, 100vw) - 5rem);
  width: var(--wide-w);
  margin-left: calc(50% - var(--wide-w) / 2);
  margin-right: 0;
  margin-top: 2.75rem;
  margin-bottom: 2.75rem;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.cs-image.cs-image--wide img { width: 100%; height: auto; }
@media (max-width: 960px) {
  /* .cs-hero-image side padding drops to 1.5rem here */
  .cs-image.cs-image--wide { --wide-w: calc(100vw - 3rem); }
}

/* ===== Home: tighter spacing between project slides ===== */
section.slide:not(.intro) {
  min-height: auto;
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
  scroll-snap-align: none;
}
@media (max-width: 960px) {
  section.slide:not(.intro) {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

/* ===== Case-study image captions ===== */
.cs-caption {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #9A948D;
  text-align: center;
}
.cs-body .cs-caption { margin-top: 0.7rem; }
.cs-image + .cs-caption { margin-top: -1.4rem; margin-bottom: 2.4rem; }

/* ===== About photo: cap at a crisp display size (source is 450px) ===== */
.about-photo {
  width: 100%;
  max-width: 300px;
  justify-self: center;
}
.about-photo img { display: block; }
@media (max-width: 900px) {
  .about-photo { max-width: 260px; justify-self: start; }
}

/* ===== Testimonials: clearer attribution (name strong, role dimmer) ===== */
.t-card footer { opacity: 1; font-weight: 400; }
.t-card .t-name { font-weight: 600; }
.t-dark .t-name { color: #FFFFFF; }
.t-dark .t-sep,
.t-dark .t-role { color: #B8B2A8; }
.t-light .t-name { color: var(--text); }
.t-light .t-sep,
.t-light .t-role { color: #6B655E; }

/* ===== Hero subtitle: use full width; wrap at the " · " separator first ===== */
.hero-sub { max-width: none; }
.hero-sub-part { display: inline-block; }

/* ===== Case studies: text column matches image width (1000px box - 2.5rem padding = 920px) ===== */
.cs-hero,
.cs-body,
.cs-next {
  max-width: 1000px;
}
.cs-summary { max-width: none; }
.cs-body p { line-height: 1.75; }
.cs-body li { line-height: 1.65; }

/* ===== Static bulldog cursor (fallback when the animated companion is off, e.g. reduced motion) ===== */
/* Mouse/trackpad only; touch devices are unaffected. Hotspot: bulldog ear tip (3,3). */
@media (hover: hover) and (pointer: fine) {
  html {
    cursor: url("/images/cursors/frenchie.png") 3 3, auto;
    cursor: -webkit-image-set(url("/images/cursors/frenchie.png") 1x, url("/images/cursors/frenchie@2x.png") 2x) 3 3, auto;
    cursor: image-set(url("/images/cursors/frenchie.png") 1x, url("/images/cursors/frenchie@2x.png") 2x) 3 3, auto;
  }
  a, a *, button, button *, [role="button"], summary, label, select,
  .btn, .slide-link, input[type="submit"], input[type="button"], input[type="checkbox"], input[type="radio"] {
    cursor: url("/images/cursors/frenchie.png") 3 3, pointer;
    cursor: -webkit-image-set(url("/images/cursors/frenchie.png") 1x, url("/images/cursors/frenchie@2x.png") 2x) 3 3, pointer;
    cursor: image-set(url("/images/cursors/frenchie.png") 1x, url("/images/cursors/frenchie@2x.png") 2x) 3 3, pointer;
  }
  input:not([type]), input[type="text"], input[type="email"], input[type="search"],
  input[type="url"], input[type="tel"], input[type="password"], input[type="number"],
  textarea, [contenteditable="true"] {
    cursor: text;
  }
}

/* ===== Animated bulldog cursor companion (cursor-dog.js) ===== */
.cd-dog, .cd-dot { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.cd-active.cd-visible, html.cd-active.cd-visible * { cursor: none !important; }
  html.cd-active.cd-visible input:not([type=button]):not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=range]),
  html.cd-active.cd-visible textarea, html.cd-active.cd-visible [contenteditable="true"] { cursor: text !important; }

  .cd-dog, .cd-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
  }
  html.cd-visible .cd-dog, html.cd-visible .cd-dot { opacity: 1; }
  html.cd-text .cd-dot { opacity: 0; }
  html.cd-text .cd-dog { opacity: 0.35; }
  .cd-svg { transition: transform 0.2s ease; transform-origin: 30% 30%; }
  html.cd-hover .cd-svg { transform: scale(1.12) rotate(-6deg); }
  html.cd-hover .cd-dot { box-shadow: 0 0 0 1.5px #FFFFFF, 0 0 0 5px rgba(255, 107, 74, 0.35); }

  /* exact hotspot */
  .cd-dot {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #FF6B4A;
    box-shadow: 0 0 0 1.5px #FFFFFF, 0 0 0 2.5px rgba(26, 26, 26, 0.55);
  }
  .cd-svg {
    display: block;
    overflow: visible;
    filter: drop-shadow(0 0 0.6px #FFFFFF) drop-shadow(0 0 0.6px #FFFFFF) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  }
  .cd-svg * { transform-box: fill-box; }

  /* idle: gentle bob, ear wiggle, blink */
  .cd-bob { animation: cd-bob 2.4s ease-in-out infinite; transform-origin: center bottom; }
  .cd-ear-l { transform-origin: 85% 95%; animation: cd-ear-l 3.2s ease-in-out infinite; }
  .cd-ear-r { transform-origin: 15% 95%; animation: cd-ear-r 3.2s ease-in-out infinite 0.15s; }
  .cd-eyes { transform-origin: center; animation: cd-blink 4.2s infinite; }

  @keyframes cd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
  @keyframes cd-ear-l { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-9deg); } 86% { transform: rotate(3deg); } }
  @keyframes cd-ear-r { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(9deg); } 86% { transform: rotate(-3deg); } }
  @keyframes cd-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

  /* glasses: hidden when idle, drop on with a little bounce on interaction */
  .cd-glasses {
    transform-box: view-box;
    transform-origin: 28px 20px;
    opacity: 0;
    transform: translateY(-9px) rotate(-6deg);
    transition: transform 0.2s ease-in, opacity 0.15s ease-in;
  }
  .cd-specs .cd-glasses {
    opacity: 1;
    transform: translateY(0) rotate(0);
    transition: transform 0.26s cubic-bezier(0.34, 1.7, 0.6, 1), opacity 0.1s ease-out;
  }
}

/* ===== Nav: always-solid dark bar so links stay readable over any section ===== */
.nav,
body:has(.hero-statement) .nav,
body:has(.hero-statement) .nav.scrolled,
.cs-nav {
  background: rgba(26, 26, 26, 0.94);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.nav .logo,
body:has(.hero-statement) .nav .logo,
.cs-nav .logo { color: #F5F2EB; }
.nav a:not(.btn-nav),
body:has(.hero-statement) .nav a:not(.btn-nav),
.cs-nav a:not(.logo) { color: rgba(245, 242, 235, 0.82); }
.nav a:not(.btn-nav):hover,
body:has(.hero-statement) .nav a:not(.btn-nav):hover,
.cs-nav a:hover { color: #FFFFFF; }
.btn-nav,
body:has(.hero-statement) .btn-nav { background: #F5F2EB; color: #1A1A1A; }
.btn-nav:hover,
body:has(.hero-statement) .btn-nav:hover { background: #FFFFFF; }
.nav a.logo,
body:has(.hero-statement) .nav a.logo { color: #F5F2EB; }

/* ===== About photo v2: taller 4:5 portrait crop ===== */
.about-photo { aspect-ratio: 4 / 5; border-radius: 20px; }
.about-photo img { object-fit: cover; object-position: center 35%; }

/* intrinsic width/height attributes on case-study images: keep aspect ratio */
.cs-hero-image img, .cs-image img { height: auto; }

/* ===== Testimonials: key-phrase highlights (orange accent, no background box) ===== */
.t-card .hl { font-weight: 600; background: none; }
.t-dark .hl { color: var(--accent); }        /* #FF6B4A on #1A1A1A */
.t-light .hl { color: #B93E22; }             /* darkened accent for AA on the light section */

/* ===== Project transition: card image morphs into the case-study hero (zoom.js) ===== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-group(project-hero) {
    animation-duration: 0.55s;
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
    z-index: 50;
    overflow: hidden;
    border-radius: 16px;
  }
  /* same box for both snapshots; cover (never stretch) and a gentle crossfade where crops differ */
  ::view-transition-old(project-hero),
  ::view-transition-new(project-hero) {
    height: 100%;
    width: 100%;
    object-fit: cover;
    animation-duration: 0.55s;
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
  }
  /* rest of the page: quick fade out, light fade + slide in */
  ::view-transition-old(root) { animation: zoom-fade-out 0.22s ease both; }
  ::view-transition-new(root) { animation: zoom-rise-in 0.38s cubic-bezier(.2, .7, .2, 1) 0.17s both; }
  .nav, .cs-nav { view-transition-name: site-nav; }
  ::view-transition-group(site-nav) { z-index: 60; animation-duration: 0.3s; }
}
@keyframes zoom-fade-out { to { opacity: 0; } }
@keyframes zoom-rise-in { from { opacity: 0; transform: translateY(10px); } }

.zoom-overlay {
  position: fixed;
  z-index: 90; /* below the nav (100) */
  overflow: hidden;
  pointer-events: none;
  will-change: top, left, width, height;
}
.zoom-overlay img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.zoom-leaving body > *:not(.nav):not(.zoom-overlay):not(.cd-dog):not(.cd-dot) { transition: opacity 0.3s ease; opacity: 0; }

/* fallback: case page text fades in lightly; the hero is already in place */
html.zoom-lite .cs-hero, html.zoom-lite .cs-body, html.zoom-lite .cs-next, html.zoom-lite footer { opacity: 0; transform: translateY(10px); }
html.zoom-lite-in .cs-hero, html.zoom-lite-in .cs-body, html.zoom-lite-in .cs-next, html.zoom-lite-in footer {
  opacity: 1; transform: none; transition: opacity 0.35s ease, transform 0.4s cubic-bezier(.2, .7, .2, 1);
}
.zoom-noanim { transition: none !important; }

/* project card image is a link too */
.slide-media-link { display: block; width: 100%; height: 100%; }

/* ===== Hero: name in neon green (#3DFF8F on #0F0F0F = 14.5:1, AAA) ===== */
.hero-statement .name { color: #3DFF8F; text-shadow: 0 0 18px rgba(61,255,143,.28); }
.hero-statement .name .star { text-shadow: none; }
.hero-statement .name .star { color: #FF6B4A; } /* asterisk stays coral, as before */

/* ===== Section color blocks (Folio-style: one full-width color per section) =====
   Hero stays #0F0F0F. Text on every block checked for WCAG AA. */
:root {
  --sec-board: #FCE3D3;   /* Dispatch Board: peach */
  --sec-pro: #DDF0E5;     /* Dispatch Pro: mint */
  --sec-resched: #DCE8F8; /* Rescheduling Assistant: sky */
  --sec-nje: #E9E1F6;     /* Non-Job Events: lavender */
  --sec-about: #FAF0D2;   /* About: butter */
  --sec-testi: #F6E4DF;   /* Testimonials: rose */
  --sec-contact: #123B36; /* Contact: deep teal (echoes the teal name) */
  --ink-accent: #A8361B;  /* deep coral for small accent text on the light blocks (5.2-5.8:1) */
}
.slide--dispatch-board { background: var(--sec-board); }
.slide--dispatch-pro { background: var(--sec-pro); }
.slide--rescheduling-assistant { background: var(--sec-resched); }
.slide--non-job-events { background: var(--sec-nje); }
.about-block { background: var(--sec-about) !important; }
.testimonials { background: var(--sec-testi); }
.contact-block { background: var(--sec-contact) !important; }

/* small coral text was #FF6B4A (2.6:1 on light); use the deep coral on light blocks */
.slide .slide-label, .slide .slide-link, .about-block .slide-label, .testimonials .slide-label { color: var(--ink-accent); }
.slide .slide-desc, .about-block p { color: #4F4F4F; }
.t-light .hl { color: var(--ink-accent); }
.t-light .t-sep, .t-light .t-role { color: #5E5850; }
/* hero CTA: white on coral was 2.8:1; dark text on coral is 6.8:1 */
.hero-statement .btn.primary { color: #0F0F0F; }

/* ===== Hero asterisk: hover / focus / tap pops out the tools (Figma, Sketch, Dovetail, pencil) ===== */
.hero-statement .star {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 6px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.hero-statement .star:focus-visible { box-shadow: 0 0 0 2px #0F0F0F, 0 0 0 4px #3DFF8F; }
.hero-statement .star-glyph { display: inline-block; transform-origin: 53% 28.5%; /* visual centre of the glyph */ transition: transform 0.45s cubic-bezier(.34, 1.56, .64, 1); }
.star-tools {
  position: absolute;
  left: 50%;
  top: 0.35em;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 5;
}
.star-tools .tool {
  position: absolute;
  left: -16px;
  top: -16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #FFFFFF;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(0, 0) scale(0.3) rotate(0deg);
  transition: transform 0.22s ease-in, opacity 0.18s ease-in;
}
.star-tools .tool svg { display: block; }
/* arc above the asterisk: up-left -> up-right */
.hero-statement .star:hover .star-tools .tool,
.hero-statement .star:focus-visible .star-tools .tool,
.hero-statement .star.is-open .star-tools .tool {
  opacity: 1;
  transition: transform 0.42s cubic-bezier(.34, 1.56, .64, 1), opacity 0.16s ease-out;
}
.hero-statement .star:hover .tool-1, .hero-statement .star:focus-visible .tool-1, .hero-statement .star.is-open .tool-1 { transform: translate(-50px, -42px) rotate(-10deg); transition-delay: 0s; }
.hero-statement .star:hover .tool-3, .hero-statement .star:focus-visible .tool-3, .hero-statement .star.is-open .tool-3 { transform: translate(0px, -66px) rotate(0deg); transition-delay: 0.05s; }
.hero-statement .star:hover .tool-4, .hero-statement .star:focus-visible .tool-4, .hero-statement .star.is-open .tool-4 { transform: translate(50px, -42px) rotate(10deg); transition-delay: 0.1s; }
.hero-statement .star:hover .star-glyph,
.hero-statement .star:focus-visible .star-glyph,
.hero-statement .star.is-open .star-glyph { transform: rotate(180deg) scale(1.15); }

@media (prefers-reduced-motion: reduce) {
  .hero-statement .star-glyph { transition: none; }
  .hero-statement .star:hover .star-glyph,
  .hero-statement .star:focus-visible .star-glyph,
  .hero-statement .star.is-open .star-glyph { transform: none; }
  .star-tools .tool,
  .hero-statement .star:hover .star-tools .tool,
  .hero-statement .star:focus-visible .star-tools .tool,
  .hero-statement .star.is-open .star-tools .tool { transition: opacity 0.2s ease; transition-delay: 0s; }
  .hero-statement .star .tool-1 { transform: translate(-50px, -42px) !important; }
  .hero-statement .star .tool-3 { transform: translate(0px, -66px) !important; }
  .hero-statement .star .tool-4 { transform: translate(50px, -42px) !important; }
}

/* ===== Services page (/services/) — outlined cards, colour-blocked sections, playful blobs ===== */
.nav nav a[aria-current="page"] { color: #FFFFFF !important; text-decoration: underline; text-decoration-color: #3DFF8F; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 520px) {
  .nav nav a.nav-services { display: inline; }
  .nav nav { gap: 1.1rem; }
}
.svc-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-accent, #A8361B); margin-bottom: 1rem; }
.svc-label--dark { color: #FF8A6E; }

/* hero */
.svc-hero { background: #0F0F0F; color: #F5F2EB; padding: 9rem 2.5rem 4.5rem; overflow: hidden; }
.svc-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; }
.svc-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.svc-hero h1 em { font-style: italic; }
.svc-hl-green { color: #3DFF8F; }
.svc-hl-coral { color: #FF6B4A; }
.svc-hero-sub { font-size: 1.08rem; line-height: 1.6; color: rgba(245, 242, 235, 0.72); max-width: 52ch; margin-bottom: 2.25rem; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.svc-btn-primary { background: #FF6B4A; color: #0F0F0F; border: 2px solid #FF6B4A; }
.svc-btn-primary:hover { background: #FF8466; transform: translateY(-2px); }
.svc-btn-ghost { border: 2px solid rgba(245, 242, 235, 0.35); color: #F5F2EB; }
.svc-btn-ghost:hover { border-color: #F5F2EB; transform: translateY(-2px); }
.svc-hero a:focus-visible, .svc-offer a:focus-visible, .svc-contact a:focus-visible { outline: 2px solid #3DFF8F; outline-offset: 3px; border-radius: 6px; }

.svc-hero-art { position: relative; height: 380px; }
.svc-blob { position: absolute; }
.svc-blob--1 { width: 340px; left: 10%; top: 0; fill: #1E3A2C; }
.svc-blob--2 { width: 210px; right: -2%; bottom: -10px; fill: #2B2440; }
.svc-tile { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; width: 128px; height: 128px; border-radius: 26px; border: 2px solid #0F0F0F; color: #1A1A1A; font-size: 0.85rem; font-weight: 600; box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
.svc-tile svg { width: 44px; height: 44px; }
.svc-tile--brand { background: #FCE3D3; left: 8%; top: 46px; transform: rotate(-8deg); }
.svc-tile--web { background: #DCE8F8; left: 44%; top: 4px; transform: rotate(6deg); }
.svc-tile--ai { background: #3DFF8F; left: 30%; top: 196px; transform: rotate(-3deg); }
@media (prefers-reduced-motion: no-preference) {
  .svc-tile { animation: svc-float 6s ease-in-out infinite; }
  .svc-tile--web { animation-delay: -2s; }
  .svc-tile--ai { animation-delay: -4s; }
  @keyframes svc-float { 50% { translate: 0 -8px; } }
}
.svc-chips { list-style: none; max-width: 1100px; margin: 3.5rem auto 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.svc-chips li { border: 1.5px solid rgba(245, 242, 235, 0.28); color: rgba(245, 242, 235, 0.85); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.88rem; }

/* intro */
.svc-intro { background: var(--bg); padding: 5.5rem 2.5rem 4rem; }
.svc-intro-inner { max-width: 1100px; margin: 0 auto; }
.svc-intro h2, .svc-process h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.1rem; }
.svc-intro p:not(.svc-label) { font-size: 1.1rem; line-height: 1.65; color: #4F4F4F; max-width: 60ch; }

/* offerings */
.svc-offer { padding: 5rem 2.5rem; }
.svc-offer--brand { background: var(--sec-board); }
.svc-offer--web { background: var(--sec-resched); }
.svc-offer--ai { background: var(--sec-pro); }
.svc-offer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.svc-offer-inner.reverse .svc-offer-head { order: 2; }
.svc-offer-badges { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.6rem; }
.svc-num { font-weight: 600; font-size: 0.9rem; border: 2px solid #1A1A1A; border-radius: 999px; padding: 0.3rem 0.85rem; background: #FFFFFF; }
.svc-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; background: #FFFFFF; border: 2px solid #1A1A1A; color: #1A1A1A; transform: rotate(-6deg); }
.svc-offer--web .svc-icon { transform: rotate(5deg); }
.svc-icon svg { width: 30px; height: 30px; }
.svc-offer h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1rem; }
.svc-pitch { font-size: 1.2rem; line-height: 1.55; color: #2B2B2B; max-width: 34ch; }
.svc-card { background: #FFFFFF; border: 2px solid #1A1A1A; border-radius: 22px; padding: 2rem 2.1rem; }
.svc-card h3 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-accent, #A8361B); margin-bottom: 0.9rem; }
.svc-card h3 + p { color: #3D3D3D; line-height: 1.6; }
.svc-list { list-style: none; margin-bottom: 1.6rem; padding-bottom: 1.5rem; border-bottom: 1.5px dashed #D9D2C7; }
.svc-list li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; line-height: 1.5; color: #1A1A1A; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 0.18em; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid #1A1A1A; background: #3DFF8F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.svc-offer--brand .svc-list li::before { background-color: #FFB59C; }
.svc-offer--web .svc-list li::before { background-color: #A9C8F2; }

/* process */
.svc-process { background: var(--sec-about); padding: 5.5rem 2.5rem; }
.svc-process-inner { max-width: 1100px; margin: 0 auto; }
.svc-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.svc-step { background: #FFFFFF; border: 2px solid #1A1A1A; border-radius: 20px; padding: 1.6rem 1.5rem 1.7rem; }
.svc-step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid #1A1A1A; font-weight: 600; margin-bottom: 1.1rem; }
.svc-step:nth-child(1) .svc-step-num { background: #FCE3D3; }
.svc-step:nth-child(2) .svc-step-num { background: #DCE8F8; }
.svc-step:nth-child(3) .svc-step-num { background: #DDF0E5; }
.svc-step:nth-child(4) .svc-step-num { background: #E9E1F6; }
.svc-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.svc-step p { color: #4F4F4F; line-height: 1.55; font-size: 0.97rem; }

/* contact */
.svc-contact-sub { color: rgba(245, 242, 235, 0.8); font-size: 1.1rem; margin: -1.25rem 0 2rem; max-width: 50ch; }

@media (max-width: 900px) {
  .svc-hero { padding: 7.5rem 1.5rem 3.5rem; }
  .svc-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .svc-hero-art { height: 220px; max-width: 360px; }
  .svc-tile { width: 96px; height: 96px; border-radius: 22px; font-size: 0.75rem; }
  .svc-tile svg { width: 34px; height: 34px; }
  .svc-tile--brand { left: 0; top: 40px; }
  .svc-tile--web { left: 36%; top: 0; }
  .svc-tile--ai { left: 68%; top: 92px; }
  .svc-blob--1 { width: 230px; left: 12%; }
  .svc-blob--2 { width: 140px; right: 0; bottom: 0; }
  .svc-chips { margin-top: 2.5rem; }
  .svc-intro, .svc-offer, .svc-process { padding-left: 1.5rem; padding-right: 1.5rem; }
  .svc-offer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .svc-offer-inner.reverse .svc-offer-head { order: 0; }
  .svc-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-steps { grid-template-columns: 1fr; }
  .svc-card { padding: 1.6rem 1.4rem; }
  .svc-offer { padding-top: 4rem; padding-bottom: 4rem; }
}

/* cross-links to services: case-study nav + home teaser */
.cs-nav a.cs-nav-services { margin-left: auto; margin-right: 1.75rem; }
.services-teaser { background: #0F0F0F; color: #F5F2EB; padding: 4rem 2.5rem; }
.services-teaser-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.services-teaser h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 30ch; }
.services-teaser h2 em { color: #3DFF8F; font-style: italic; }
.services-teaser .btn { background: #F5F2EB; color: #0F0F0F; }
.services-teaser .btn:hover { background: #FFFFFF; transform: translateY(-2px); }
@media (max-width: 900px) { .services-teaser { padding: 3.25rem 1.5rem; } }

/* ===== Hero headline tracking: loosened from -0.03em (t71) ===== */
.hero-statement h1 { letter-spacing: 0.01em; }

/* ===== Nav: one active/selected state for every link (t73) ===== */
.nav nav a:not(.btn-nav) { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color 0.2s, text-decoration-color 0.2s; }
.nav nav a:not(.btn-nav):hover { text-decoration-color: rgba(61, 255, 143, 0.45); }
.nav nav a[aria-current]:not(.btn-nav) { color: #FFFFFF !important; text-decoration-color: #3DFF8F; }
@media (max-width: 520px) {
  .nav { padding-left: 1.1rem; padding-right: 1.1rem; }
  .nav nav { gap: 0.9rem; }
  .nav nav a:not(.btn-nav) { display: inline !important; font-size: 0.84rem; }
  .nav .btn-nav { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
}
@media (max-width: 360px) {
  .nav nav { gap: 0.65rem; }
  .nav .logo { font-size: 0.95rem; }
}

/* ===== About: Figma canvas elements on hover (t74) — selection box, cursors, Figma tile, comment pin ===== */
.about-photo .fig-sel, .about-copy .fig-pin, .about-copy .fig-cursor, .about-photo .fig-tile, .about-photo .fig-cursor { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .about-copy { position: relative; }
  .about-photo { position: relative; overflow: visible; }
  .about-photo img { border-radius: inherit; }
  .about-block .fig-sel, .about-block .fig-pin, .about-block .fig-cursor, .about-block .fig-tile { display: block; position: absolute; pointer-events: none; user-select: none; -webkit-user-select: none; z-index: 2; }

  /* selection box around the bio */
  .about-block .fig-sel { inset: -10px; border: 1.5px solid #0D99FF; border-radius: 2px; z-index: 0; opacity: 0; transform: scale(0.985); transition: opacity 0.25s ease, transform 0.35s cubic-bezier(.34,1.56,.64,1); }
  .about-block .fig-sel::before { content: attr(data-frame); position: absolute; left: -1px; top: -24px; font: 500 12px/1 var(--font); letter-spacing: 0; color: #5E5850; white-space: nowrap; }
  .about-block .fig-sel::after { content: attr(data-size); position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); background: #0D99FF; color: #FFFFFF; font: 600 12px/1 var(--font); letter-spacing: 0; padding: 5px 7px; border-radius: 4px; white-space: nowrap; }
  .about-block .fh { position: absolute; width: 9px; height: 9px; background: #FFFFFF; border: 1.5px solid #0D99FF; border-radius: 1px; }
  .about-block .fh-tl { left: -5px; top: -5px; } .about-block .fh-tr { right: -5px; top: -5px; }
  .about-block .fh-bl { left: -5px; bottom: -5px; } .about-block .fh-br { right: -5px; bottom: -5px; }
  .about-copy > :not(.fig-sel):not(.fig-pin):not(.fig-cursor) { position: relative; z-index: 1; }

  /* neo-brutalist pieces: dark outline + hard dark shadow on the butter background */
  .about-block .fig-cursor { display: flex; align-items: flex-start; opacity: 0; transform: translate(18px, 14px) scale(0.8); transition: opacity 0.25s ease, transform 0.5s cubic-bezier(.34,1.56,.64,1); }
  .about-block .fig-cursor svg { filter: drop-shadow(2px 2px 0 #1A1A1A); }
  .about-block .fig-tag { margin: 20px 0 0 -4px; padding: 5px 12px; border: 2px solid #1A1A1A; border-radius: 999px; box-shadow: 3px 3px 0 #1A1A1A; font: 700 13px/1.1 var(--font); letter-spacing: 0; color: #1A1A1A; white-space: nowrap; }
  .about-block .fig-cursor--a .fig-tag { background: #8FA5EA; }
  .about-block .fig-cursor--b .fig-tag { background: #3DFF8F; }
  .about-photo .fig-cursor--a { left: -46px; top: 58%; }
  .about-copy .fig-cursor--b { right: 14%; bottom: -40px; }

  .about-block .fig-tile { right: -40px; bottom: 56px; width: 62px; height: 62px; display: grid; place-items: center; background: #8FA5EA; border: 2.5px solid #1A1A1A; border-radius: 14px; box-shadow: 4px 4px 0 #1A1A1A; opacity: 0; transform: rotate(0deg) scale(0.6); transition: opacity 0.25s ease, transform 0.5s cubic-bezier(.34,1.56,.64,1); }
  .about-block .fig-pin { left: 372px; top: 4px; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: #FFFFFF; border: 2px solid #1A1A1A; border-radius: 18px 18px 18px 4px; box-shadow: 3px 3px 0 #1A1A1A; opacity: 0; transform: translateY(10px) scale(0.85); transform-origin: left bottom; transition: opacity 0.25s ease, transform 0.45s cubic-bezier(.34,1.56,.64,1); }
  .about-block .fig-pin-av { width: 26px; height: 26px; border-radius: 50%; background: #FF6B4A; border: 2px solid #1A1A1A; display: grid; place-items: center; font: 700 12px/1 var(--font); color: #1A1A1A; }
  .about-block .fig-pin-txt { font: 600 13px/1 var(--font); letter-spacing: 0; color: #1A1A1A; white-space: nowrap; }

  /* reveal on hover, staggered */
  .about-block:hover .fig-sel { opacity: 1; transform: none; }
  .about-block:hover .fig-tile { opacity: 1; transform: rotate(12deg) scale(1); transition-delay: 0.08s; }
  .about-block:hover .fig-cursor--a { opacity: 1; transform: none; transition-delay: 0.14s; }
  .about-block:hover .fig-cursor--b { opacity: 1; transform: none; transition-delay: 0.22s; }
  .about-block:hover .fig-pin { opacity: 1; transform: none; transition-delay: 0.3s; }
  @media (prefers-reduced-motion: no-preference) {
    .about-block:hover .fig-cursor--a svg, .about-block:hover .fig-cursor--a .fig-tag { animation: fig-drift-a 3.2s ease-in-out 0.7s infinite; }
    .about-block:hover .fig-cursor--b svg, .about-block:hover .fig-cursor--b .fig-tag { animation: fig-drift-b 3.8s ease-in-out 0.8s infinite; }
    @keyframes fig-drift-a { 50% { translate: -10px 6px; } }
    @keyframes fig-drift-b { 50% { translate: 12px -5px; } }
  }
  @media (prefers-reduced-motion: reduce) {
    .about-block .fig-sel, .about-block .fig-cursor, .about-block .fig-pin { transform: none !important; transition: opacity 0.2s ease !important; }
    .about-block .fig-tile { transform: rotate(12deg) !important; transition: opacity 0.2s ease !important; }
  }
}

/* ===== Company logo in place of the company-name label (t75): official ServiceTitan mark, dark on light blocks ===== */
.slide-label--logo, .cs-company--logo { line-height: 0; }
.co-logo { display: block; height: 20px; width: auto; }
.cs-company--logo { margin-bottom: 0.9rem; }

/* ===== Case-study body: key-number highlights (t76) — #A8361B on the cream page = AA ===== */
.cs-body .hl, .cs-section .hl { font-weight: 600; color: var(--ink-accent, #A8361B); background: none; }

/* ===== About page (/about/) — intro + work-history timeline (t78) ===== */
.about-more { display: inline-block; margin-top: 0.5rem; font-weight: 600; color: var(--ink-accent, #A8361B); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.about-more:hover { color: #1A1A1A; }
.about-page-intro { padding-top: 9rem; border-top: none; }
.about-page-title { font-family: var(--serif); font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1.25rem; max-width: 18ch; }

.xp { background: var(--bg); padding: 6rem 2.5rem; }
.xp-inner { max-width: 1100px; margin: 0 auto; }
.xp-title, .xp-subtitle { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 2.5rem; }
.xp-subtitle { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 4rem 0 1.5rem; }
.xp-list { list-style: none; border-bottom: 1.5px solid #1A1A1A; }
.xp-item { display: grid; grid-template-columns: 190px 1fr 1.25fr; gap: 2.5rem; padding: 2rem 0; border-top: 1.5px solid #1A1A1A; }
.xp-dates { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #5E5850; padding-top: 0.35rem; }
.xp-company { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.xp-company .co-logo { height: 26px; margin: 0.3rem 0 0.6rem; }
.xp-role { font-weight: 600; color: #1A1A1A; }
p.xp-role { margin-bottom: 0.3rem; }
.xp-loc { font-size: 0.9rem; color: #5E5850; margin-top: 0.35rem; }
.xp-roles { list-style: none; margin: 0.2rem 0 0.2rem; border-left: 2px solid #1A1A1A; padding-left: 1rem; }
.xp-roles li { position: relative; display: flex; flex-direction: column; padding: 0.3rem 0; }
.xp-roles li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: 0.62rem; width: 10px; height: 10px; border-radius: 50%; background: #FAF0D2; border: 2px solid #1A1A1A; }
.xp-roles li:first-child::before { background: #3DFF8F; }
.xp-role-dates { font-size: 0.85rem; color: #5E5850; }
.xp-desc p { color: #4F4F4F; line-height: 1.6; font-size: 1.02rem; }
.xp-desc .xp-note { margin-top: 0.9rem; font-size: 0.95rem; }
.xp-desc .hl { font-weight: 600; color: var(--ink-accent, #A8361B); }
@media (max-width: 900px) {
  .about-page-intro { padding-top: 7.5rem; }
  .xp { padding: 4.5rem 1.5rem; }
  .xp-item { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.6rem 0; }
  .xp-dates { padding-top: 0; }
}
.xp .slide-label { color: var(--ink-accent, #A8361B); }

/* About Figma overlay: in the single-column layout (exactly 900px) keep the "Michael" cursor on the photo's right so it stays on screen (t79) */
@media (hover: hover) and (pointer: fine) and (max-width: 900px) { .about-photo .fig-cursor--a { left: auto; right: -84px; } }

/* ===== Case study: legacy "before" screens (muted frame + tag so they don't read as the new design) ===== */
.cs-before { margin: 0; }
.cs-image.cs-image--before {
  position: relative;
  background: #E9E7E3;
  border: 1px dashed rgba(26,26,26,0.28);
  box-shadow: none;
  padding: 0.9rem;
  overflow: visible;
}
.cs-image--before img { border-radius: 8px; filter: saturate(0.6); opacity: 0.95; }
.cs-before-tag {
  position: absolute; top: -0.7rem; left: 1.2rem; z-index: 1;
  background: #1A1A1A; color: #FFFFFF;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 999px;
}
.cs-before .cs-caption { margin-top: -1.4rem; margin-bottom: 2.4rem; color: #6B655E; }  /* 5.6:1 on the page bg (AA) */
.cs-before .cs-caption strong { color: var(--text); font-weight: 600; }
@media (max-width: 600px) {
  .cs-image.cs-image--before { padding: 0.5rem; }
  .cs-before-tag { top: -0.6rem; left: 0.8rem; font-size: 0.62rem; }
}

/* ===== Section slide-in (after vanschneider.com's "clip-expo": a left-to-right wipe on an expo-out curve) =====
   The hidden state only applies under html.rv-on (set by an inline head script; a failsafe removes it if /reveal.js never runs),
   so content is never stuck hidden without JS. The transition lives on .rv-anim only while a block animates in, so each
   block's own hover transitions/transforms are untouched afterwards. Clip edges are padded so shadows and pills aren't cut. */
.will-animate { opacity: 1; transform: none; }
.rv-on .will-animate:not(.in-view) {
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
  clip-path: inset(-40px 100% -60px -40px);
}
.rv-on .will-animate.rv-anim {
  clip-path: inset(-40px -40px -60px -40px);
  transition: clip-path 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.rv-on .will-animate.zoom-noanim { transition: none !important; }
/* the black home hero is never animated */
.rv-on .hero-statement .will-animate { opacity: 1 !important; transform: none !important; clip-path: none !important; }
@media (prefers-reduced-motion: reduce) {
  .rv-on .will-animate { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ===== Home hero: cursor-following colour blob (matches jonyablonski.com's .home-blob: same gradient, size, blur, mask,
   morph keyframes and two-stage eased follow) on the black hero ===== */
.hero-statement { isolation: isolate; }
.hero-statement-inner { position: relative; z-index: 1; }
.hero-blob { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-blob__shape {
  position: absolute; width: 68vw; aspect-ratio: 1; top: -8vh; left: 26vw; border-radius: 50%;
  will-change: transform; backface-visibility: hidden;
  background: radial-gradient(ellipse at 60% 36%, #7351FB 0%, transparent 58%),
              radial-gradient(ellipse at 74% 28%, #FA9F38 0%, transparent 82%);
  filter: blur(26px);
  opacity: var(--hero-blob-opacity, .46);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 28%, transparent 68%);
          mask-image: radial-gradient(ellipse at center, #000 28%, transparent 68%);
  animation: hero-blob-morph 6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
@keyframes hero-blob-morph {
  0%   { border-radius: 80% 20% 42% 58% / 52% 70% 30% 48%; }
  14%  { border-radius: 32% 68% 74% 26% / 44% 32% 68% 56%; }
  28%  { border-radius: 66% 34% 22% 78% / 72% 28% 62% 38%; }
  43%  { border-radius: 22% 78% 58% 42% / 30% 68% 42% 58%; }
  57%  { border-radius: 68% 32% 38% 62% / 62% 22% 78% 38%; }
  71%  { border-radius: 40% 60% 78% 22% / 38% 62% 32% 68%; }
  86%  { border-radius: 58% 42% 26% 74% / 70% 40% 60% 30%; }
  100% { border-radius: 30% 70% 62% 38% / 44% 76% 24% 56%; }
}
.hero-blob.is-paused .hero-blob__shape { animation-play-state: paused; }
@media (max-width: 700px) { .hero-blob__shape { width: 110vw; left: -5vw; top: 4vh; } }
@media (prefers-reduced-motion: reduce) { .hero-blob__shape { animation: none; } }
.hero-statement .hero-sub { color: rgba(245, 242, 235, 0.64); }

/* =====================================================================
   Light / dark theme. Light = the existing look (default for light-OS visitors).
   Dark = modelled on jonyablonski.com's dark mode: ink-indigo #080812 page, off-white #FBFBF9 text,
   cool grey secondary text, deep-tinted section blocks. Chosen theme lives on <html data-theme>
   (set before first paint by the inline head script; saved in localStorage "theme").
   The home hero stays #0F0F0F in both themes.
   ===================================================================== */
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; margin: 0;
  border: 1.5px solid rgba(245, 242, 235, 0.28); border-radius: 999px; background: transparent;
  color: rgba(245, 242, 235, 0.9); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.theme-toggle:hover { border-color: rgba(245, 242, 235, 0.7); color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.theme-toggle:focus-visible { outline: 2px solid #3DFF8F; outline-offset: 3px; }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .tt-sun { display: none; }
html[data-theme="dark"] .theme-toggle .tt-sun { display: block; }
html[data-theme="dark"] .theme-toggle .tt-moon { display: none; }
@media (max-width: 520px) { .theme-toggle { width: 32px; height: 32px; } .theme-toggle svg { width: 16px; height: 16px; } }

/* colour cross-fade only while the user is switching (never on load), and never with reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html.theme-switching, html.theme-switching *:not(.hero-blob__shape):not(.cd-dog):not(.cd-dot) {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080812;
  --surface: #15151F;
  --text: #FBFBF9;
  --text-muted: #A9A9B8;
  --text-body: #C9C9D3;
  --text-dim: #9C9CAD;
  --line: rgba(251, 251, 249, 0.85);
  --accent-soft: #3A1E18;
  --pastel-1: #161B26; --pastel-2: #1C1729; --pastel-3: #14211B; --pastel-4: #251C14;
  --border: #2A2A36;
  --sec-board: #24170F;   /* peach -> ember */
  --sec-pro: #0F2219;     /* mint -> pine */
  --sec-resched: #0F1A2B; /* sky -> night blue */
  --sec-nje: #1B1530;     /* lavender -> violet ink */
  --sec-about: #211C0C;   /* butter -> umber */
  --sec-testi: #22141A;   /* rose -> plum */
  --sec-contact: #0C2925; /* deep teal, deeper */
  --ink-accent: #FF9A7F;  /* light coral for small accent text on dark blocks */
  --hero-blob-opacity: .46;
  background: var(--bg);
}
html[data-theme="light"] { --hero-blob-opacity: .44; } /* reference uses .44 light / .46 dark */

/* body copy on the coloured blocks / lists */
html[data-theme="dark"] .slide .slide-desc,
html[data-theme="dark"] .about-block p,
html[data-theme="dark"] .xp-desc p,
html[data-theme="dark"] .svc-intro p:not(.svc-label),
html[data-theme="dark"] .svc-card h3 + p,
html[data-theme="dark"] .svc-step p { color: var(--text-body); }
html[data-theme="dark"] .svc-pitch { color: #DEDEE6; }
html[data-theme="dark"] .t-light .t-sep, html[data-theme="dark"] .t-light .t-role,
html[data-theme="dark"] .xp-dates, html[data-theme="dark"] .xp-loc, html[data-theme="dark"] .xp-role-dates,
html[data-theme="dark"] .cs-before .cs-caption,
html[data-theme="dark"] .about-block .fig-sel::before { color: var(--text-muted); }
html[data-theme="dark"] .cs-caption,
html[data-theme="dark"] .img-placeholder-note,
html[data-theme="dark"] .cs-body p.cs-todo,
html[data-theme="dark"] .cs-todo-inline,
html[data-theme="dark"] .img-placeholder { color: var(--text-dim); }
html[data-theme="dark"] .cs-body p.cs-todo { background: rgba(255,255,255,.03); border-color: var(--border); }
html[data-theme="dark"] .img-placeholder { box-shadow: inset 0 0 0 1px rgba(251,251,249,.08); background-image: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0)); }
html[data-theme="dark"] .xp-role, html[data-theme="dark"] .svc-list li, html[data-theme="dark"] .about-more:hover { color: var(--text); }

/* hairlines / outlines that were #1A1A1A on light */
html[data-theme="dark"] .xp-list { border-bottom-color: var(--line); }
html[data-theme="dark"] .xp-item { border-top-color: var(--line); }
html[data-theme="dark"] .xp-roles { border-left-color: var(--line); }
html[data-theme="dark"] .svc-list { border-bottom-color: #3A3A48; }

/* white cards with black outlines -> raised dark cards with off-white outlines */
html[data-theme="dark"] .svc-card, html[data-theme="dark"] .svc-step,
html[data-theme="dark"] .svc-num, html[data-theme="dark"] .svc-icon { background: var(--surface); border-color: var(--line); color: var(--text); }
html[data-theme="dark"] .svc-list li::before { border-color: var(--line); }
html[data-theme="dark"] .svc-step-num { color: #1A1A1A; border-color: var(--line); }

/* testimonials: dark card gets an edge so it doesn't sink into the dark block */
html[data-theme="dark"] .t-dark { background: #0E0E18; box-shadow: inset 0 0 0 1px rgba(251,251,249,.1); }
html[data-theme="dark"] .t-dark .t-sep, html[data-theme="dark"] .t-dark .t-role { color: #B4B4C2; }

/* case studies */
html[data-theme="dark"] .cs-image.cs-image--before { background: #161620; border-color: rgba(251,251,249,.28); }
html[data-theme="dark"] .cs-before-tag { background: #FBFBF9; color: #080812; }
html[data-theme="dark"] .co-logo { filter: brightness(0) invert(0.97); }  /* dark ServiceTitan wordmark -> off-white */
html[data-theme="dark"] .cs-hero-image img, html[data-theme="dark"] .cs-image.cs-image--wide,
html[data-theme="dark"] .slide-media { box-shadow: 0 16px 48px rgba(0,0,0,.45); }
html[data-theme="dark"] .cs-result { background: var(--surface); }

/* About page Figma overlays: keep the neo-brutalist pieces, but flip the hard shadow to off-white so it reads on dark */
html[data-theme="dark"] .about-block .fig-tag,
html[data-theme="dark"] .about-block .fig-pin { box-shadow: 3px 3px 0 var(--line); }
html[data-theme="dark"] .about-block .fig-tile { box-shadow: 4px 4px 0 var(--line); }
html[data-theme="dark"] .about-block .fig-cursor svg { filter: drop-shadow(2px 2px 0 rgba(251,251,249,.85)); }

html[data-theme="light"] { color-scheme: light; }
/* AA fix (both themes): case-study captions were #9A948D = 2.8:1 on the cream page */
html[data-theme="light"] .cs-caption, html:not([data-theme]) .cs-caption { color: #6B655E; }
/* phones: make room for the theme toggle without the logo touching "Work" */
@media (max-width: 430px) {
  .nav { padding-left: 0.9rem; padding-right: 0.9rem; gap: 0.6rem; }
  .nav .logo { font-size: 0.92rem; white-space: nowrap; }
  .nav nav { gap: 0.7rem; }
  .nav nav a:not(.btn-nav) { font-size: 0.8rem; }
  .nav .btn-nav { padding: 0.42rem 0.75rem; font-size: 0.8rem; }
  .theme-toggle { width: 30px; height: 30px; }
}
@media (max-width: 360px) { .nav nav { gap: 0.5rem; } .nav .logo { font-size: 0.86rem; } }
@media (max-width: 359px) { .nav nav a.nav-services { display: none !important; } .nav nav { gap: 0.55rem; } }

/* =====================================================================
   LIGHT theme home hero = jonyablonski.com's light hero: off-white hsl(60,12%,98%) page, ink #080812 type in
   IBM Plex Sans 400, violet/orange cursor-following blob at his light opacity (.44). Dark theme keeps the black hero.
   ===================================================================== */
html[data-theme="light"] body:has(.hero-statement) .hero-statement,
html[data-theme="light"] .hero-statement { background: #FBFBF9 !important; color: #080812 !important; }
html[data-theme="light"] .hero-statement h1 {
  color: #080812 !important;
  font-family: 'IBM Plex Sans', var(--font);
  font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 2.3vw, 3.3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
html[data-theme="light"] .hero-statement .name { color: #080812; text-shadow: none; }
html[data-theme="light"] .hero-statement .c1,
html[data-theme="light"] .hero-statement .c2 { color: #080812; }
html[data-theme="light"] .hero-statement .c3 { color: #A8361B; }               /* deep coral: 6.3:1 on off-white */
html[data-theme="light"] .hero-statement .star,
html[data-theme="light"] .hero-statement .name .star { color: #A8361B; }      /* asterisk: 6.3:1 bare, >=3.4:1 over the blob */
html[data-theme="light"] .hero-statement .star:focus-visible { box-shadow: 0 0 0 2px #FBFBF9, 0 0 0 4px #7351FB; }
html[data-theme="light"] .hero-statement .hero-sub { color: #4A4A5C; }        /* his mid-grey, darkened for AA */
html[data-theme="light"] .hero-statement .btn.primary { background: #080812; color: #FBFBF9; box-shadow: none; }
html[data-theme="light"] .hero-statement .btn.primary:hover { background: #22222A; box-shadow: 0 8px 24px rgba(8,8,18,.18); }
html[data-theme="light"] .hero-statement .btn.ghost { border-color: rgba(8,8,18,.28); color: #080812; background: rgba(255,255,255,.55); }
html[data-theme="light"] .hero-statement .btn.ghost:hover { border-color: #080812; background: #FFFFFF; }
html[data-theme="light"] .hero-statement a:focus-visible { outline: 2px solid #7351FB; outline-offset: 3px; }

/* LIGHT theme nav: his translucent off-white bar with ink links (still a solid, readable bar over every section) */
html[data-theme="light"] .nav,
html[data-theme="light"] body:has(.hero-statement) .nav,
html[data-theme="light"] body:has(.hero-statement) .nav.scrolled {
  background: rgba(251, 251, 249, 0.92);
  border-bottom: 1px solid rgba(8, 8, 18, 0.08);
  box-shadow: 0 6px 24px rgba(8, 8, 18, 0.06);
}
html[data-theme="light"] .nav .logo,
html[data-theme="light"] .nav a.logo,
html[data-theme="light"] body:has(.hero-statement) .nav .logo,
html[data-theme="light"] body:has(.hero-statement) .nav a.logo { color: #080812; }
html[data-theme="light"] .nav a:not(.btn-nav):not(.logo),
html[data-theme="light"] body:has(.hero-statement) .nav a:not(.btn-nav):not(.logo) { color: #3A3A48; }
html[data-theme="light"] .nav a:not(.btn-nav):not(.logo):hover { color: #080812; }
html[data-theme="light"] .nav nav a[aria-current]:not(.btn-nav),
html[data-theme="light"] .nav nav a[aria-current="page"] { color: #080812 !important; text-decoration-color: #7351FB; }
html[data-theme="light"] .nav nav a:not(.btn-nav):hover { text-decoration-color: rgba(115, 81, 251, 0.45); }
html[data-theme="light"] .nav .btn-nav,
html[data-theme="light"] body:has(.hero-statement) .btn-nav { background: #080812; color: #FBFBF9; }
html[data-theme="light"] .nav .btn-nav:hover,
html[data-theme="light"] body:has(.hero-statement) .btn-nav:hover { background: #22222A; }
html[data-theme="light"] .theme-toggle { border-color: rgba(8, 8, 18, 0.25); color: #080812; }
html[data-theme="light"] .theme-toggle:hover { border-color: #080812; background: rgba(8, 8, 18, 0.04); color: #080812; }
html[data-theme="light"] .theme-toggle:focus-visible { outline-color: #7351FB; }

/* =====================================================================
   Translucent colour washes (t101): project / testimonial / services sections drop their solid fills for a soft,
   blurred glow of the section colour over the base page colour, in the same spirit as the hero blob.
   Static, with a very slow drift (none under reduced motion).
   ===================================================================== */
html[data-theme="light"] { --bg: #FBFBF9; }   /* light page = the light hero's off-white, so hero and sections read as one surface */
.slide--dispatch-board, .slide--dispatch-pro, .slide--rescheduling-assistant, .slide--non-job-events,
.testimonials, .svc-offer, .svc-process, .contact-block {
  position: relative; isolation: isolate; overflow: clip;
}
.slide--dispatch-board, .slide--dispatch-pro, .slide--rescheduling-assistant, .slide--non-job-events,
.testimonials, .svc-offer, .svc-process { background: var(--bg) !important; }
.slide--dispatch-board::before, .slide--dispatch-pro::before, .slide--rescheduling-assistant::before, .slide--non-job-events::before,
.testimonials::before, .svc-offer::before, .svc-process::before, .contact-block::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 52% at var(--wx, 70%) 52%, var(--w1) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at calc(var(--wx, 70%) + 11%) 32%, var(--w2) 0%, transparent 72%),
    radial-gradient(ellipse 34% 44% at calc(100% - var(--wx, 70%)) 72%, var(--w1) 0%, transparent 72%);
  opacity: var(--wo, .34); filter: blur(34px); transform: translateZ(0);
}
@media (prefers-reduced-motion: no-preference) {
  .slide--dispatch-board::before, .slide--dispatch-pro::before, .slide--rescheduling-assistant::before, .slide--non-job-events::before,
  .testimonials::before, .svc-offer::before, .svc-process::before, .contact-block::before { animation: wash-drift 22s ease-in-out infinite alternate; }
}
@keyframes wash-drift { 0% { transform: translate3d(-2.5%, -1.5%, 0) scale(1); } 100% { transform: translate3d(2.5%, 2%, 0) scale(1.06); } }

/* which side the glow sits on follows each project's image side */
.slide--dispatch-board, .slide--rescheduling-assistant, .svc-offer--brand, .svc-offer--ai { --wx: 70%; }
.slide--dispatch-pro, .slide--non-job-events, .svc-offer--web { --wx: 30%; }
.testimonials, .svc-process { --wx: 62%; }
.contact-block { --wx: 74%; }

/* light washes: the section's pastel hue, pushed more saturated so it survives the transparency */
.slide--dispatch-board, .svc-offer--brand       { --w1: #FF9A6B; --w2: #FA9F38; --wo: .40; }
.slide--dispatch-pro, .svc-offer--ai            { --w1: #5FD394; --w2: #B5E36A; --wo: .34; }
.slide--rescheduling-assistant, .svc-offer--web { --w1: #6FA3F2; --w2: #7351FB; --wo: .32; }
.slide--non-job-events                          { --w1: #9B7BF7; --w2: #F59AC8; --wo: .34; }
.testimonials                                   { --w1: #F28B82; --w2: #FA9F38; --wo: .26; }
.svc-process                                    { --w1: #F5C842; --w2: #FA9F38; --wo: .30; }
/* contact stays a dark closing block in both themes, now lit like the dark hero: teal + violet glow on ink */
.contact-block { background: #0B0B12 !important; --w1: #1FA88F; --w2: #7351FB; --wo: .34; }
html[data-theme="dark"] .contact-block { background: #080812 !important; }

/* dark washes: same hues, dimmer */
html[data-theme="dark"] .slide--dispatch-board, html[data-theme="dark"] .svc-offer--brand       { --w1: #FF7A45; --w2: #FA9F38; --wo: .20; }
html[data-theme="dark"] .slide--dispatch-pro, html[data-theme="dark"] .svc-offer--ai            { --w1: #2FBF71; --w2: #8BD34A; --wo: .18; }
html[data-theme="dark"] .slide--rescheduling-assistant, html[data-theme="dark"] .svc-offer--web { --w1: #3D7BEB; --w2: #7351FB; --wo: .22; }
html[data-theme="dark"] .slide--non-job-events                                                  { --w1: #7351FB; --w2: #D45BA0; --wo: .24; }
html[data-theme="dark"] .testimonials                                                           { --w1: #E0607A; --w2: #FA9F38; --wo: .15; }
html[data-theme="dark"] .svc-process                                                            { --w1: #E0B422; --w2: #FA9F38; --wo: .15; }
html[data-theme="dark"] .contact-block                                                          { --wo: .30; }
html[data-theme="dark"] .t-dark { background: rgba(14, 14, 24, 0.82); }

/* =====================================================================
   Services page (t100): same tokens, hero, cards and buttons as the rest of the site
   ===================================================================== */
.svc-hero { position: relative; isolation: isolate; background: #0F0F0F; min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
.svc-hero-inner, .svc-hero .svc-chips { position: relative; z-index: 1; width: 100%; }
.svc-hero-inner { grid-template-columns: 1fr; }
.svc-hero-copy { max-width: 920px; }
.svc-hero-art { display: none; }                       /* decorative tiles replaced by the shared hero glow */
.svc-hero h1 { letter-spacing: 0.01em; line-height: 1.18; font-size: clamp(2.4rem, 5vw, 4rem); }
.svc-hero .svc-hl-green { color: #3DFF8F; text-shadow: 0 0 18px rgba(61, 255, 143, .28); }
.svc-hero-sub { color: rgba(245, 242, 235, 0.64); }
.svc-hero .svc-chips li { background: rgba(255, 255, 255, 0.03); }
/* buttons = home hero buttons (same radius/padding as .btn; coral primary on dark) */
.svc-btn-primary, .svc-btn-ghost { border-width: 1.5px; }
.svc-btn-primary { box-shadow: 0 4px 18px rgba(255, 107, 74, 0.28); }
.svc-btn-primary:hover, .svc-btn-ghost:hover { transform: translateY(-2px); }
.svc-btn-ghost { border-color: rgba(255, 255, 255, 0.25); }
.svc-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }

html[data-theme="light"] .svc-hero { background: #FBFBF9; color: #080812; }
html[data-theme="light"] .svc-hero h1 { font-family: 'IBM Plex Sans', var(--font); font-weight: 400; font-size: clamp(2rem, 1.2rem + 2.3vw, 3.3rem); line-height: 1.3; letter-spacing: -0.01em; color: #080812; }
html[data-theme="light"] .svc-hero .svc-hl-green { color: #080812; text-shadow: none; }
html[data-theme="light"] .svc-hero .svc-hl-coral { color: #A8361B; }
html[data-theme="light"] .svc-label--dark { color: #A8361B; }
html[data-theme="light"] .svc-hero-sub { color: #4A4A5C; }
html[data-theme="light"] .svc-btn-primary { background: #080812; border-color: #080812; color: #FBFBF9; box-shadow: none; }
html[data-theme="light"] .svc-btn-primary:hover { background: #22222A; border-color: #22222A; box-shadow: 0 8px 24px rgba(8, 8, 18, .18); }
html[data-theme="light"] .svc-btn-ghost { border-color: rgba(8, 8, 18, .28); color: #080812; background: rgba(255, 255, 255, .55); }
html[data-theme="light"] .svc-btn-ghost:hover { border-color: #080812; background: #FFFFFF; }
html[data-theme="light"] .svc-hero .svc-chips li { border-color: rgba(8, 8, 18, .16); color: #3A3A48; background: rgba(255, 255, 255, .55); }
html[data-theme="light"] .svc-hero a:focus-visible { outline-color: #7351FB; }

/* cards: home-style raised cards (soft radius + shadow, translucent so the wash shows through), no hard black outlines */
html .svc-card, html .svc-step {
  background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(8, 8, 18, 0.07); border-radius: 20px;
  box-shadow: 0 20px 50px rgba(8, 8, 18, 0.07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html .svc-num { border: 1px solid rgba(8, 8, 18, 0.14); background: rgba(255, 255, 255, 0.78); }
html .svc-icon { border: 1px solid rgba(8, 8, 18, 0.1); background: rgba(255, 255, 255, 0.78); box-shadow: 0 8px 20px rgba(8, 8, 18, 0.06); }
html .svc-list { border-bottom: 1px solid var(--border); }
html .svc-list li::before { border-color: transparent; }
html .svc-step-num { border: none; color: #1A1A1A; }
html[data-theme="dark"] .svc-card, html[data-theme="dark"] .svc-step {
  background: rgba(21, 21, 31, 0.72); border-color: rgba(251, 251, 249, 0.09); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); color: var(--text);
}
html[data-theme="dark"] .svc-num, html[data-theme="dark"] .svc-icon { background: rgba(21, 21, 31, 0.72); border-color: rgba(251, 251, 249, 0.16); color: var(--text); }
html[data-theme="dark"] .svc-list { border-bottom-color: var(--border); }
html[data-theme="dark"] .svc-step-num { border: none; }
/* wash strength tuning (after review) */
.slide--dispatch-board, .svc-offer--brand { --wo: .46; }
.slide--dispatch-pro, .svc-offer--ai { --wo: .40; }
.slide--rescheduling-assistant, .svc-offer--web { --wo: .38; }
.slide--non-job-events { --wo: .40; }
html[data-theme="dark"] .slide--dispatch-board, html[data-theme="dark"] .svc-offer--brand { --wo: .34; }
html[data-theme="dark"] .slide--dispatch-pro, html[data-theme="dark"] .svc-offer--ai { --wo: .30; }
html[data-theme="dark"] .slide--rescheduling-assistant, html[data-theme="dark"] .svc-offer--web { --wo: .36; }
html[data-theme="dark"] .slide--non-job-events { --wo: .38; }
html[data-theme="dark"] .testimonials { --wo: .24; }
html[data-theme="dark"] .svc-process { --wo: .24; }

/* =====================================================================
   t102 · About + Services are plain pages: page colour only, no glows / washes / hero glow (both themes)
   ===================================================================== */
.page-about .about-block, .page-about .xp,
.page-services .svc-hero, .page-services .svc-intro, .page-services .svc-offer, .page-services .svc-process,
.page-about .contact-block, .page-services .contact-block { background: var(--bg) !important; }
.page-services .svc-offer::before, .page-services .svc-process::before,
.page-about .contact-block::before, .page-services .contact-block::before { content: none !important; }
.page-services .svc-hero { min-height: 0; padding-top: 10rem; padding-bottom: 4.5rem; }
.page-services .svc-hero .svc-hl-green { text-shadow: none; }
/* section rhythm without colour: hairlines between blocks */
.page-services .svc-offer, .page-services .svc-process, .page-about .xp,
.page-about .contact-block, .page-services .contact-block { border-top: 1px solid var(--border); }
/* contact becomes a plain section on these pages (ink on light, off-white on dark) */
.page-about .contact-block, .page-services .contact-block { color: var(--text); }
.page-about .contact-inner h2, .page-services .contact-inner h2 { color: var(--text); }
.page-about .contact-inner h2 span, .page-services .contact-inner h2 span { color: var(--ink-accent); }
.page-about .contact-row, .page-services .contact-row { border-top-color: var(--border); }
.page-about .contact-row a, .page-services .contact-row a { color: var(--text-muted); }
.page-about .contact-row a:hover, .page-services .contact-row a:hover { color: var(--ink-accent); }
.page-services .svc-contact-sub { color: var(--text-muted); }
html[data-theme="light"] .page-about, html[data-theme="light"] .page-services { --border: #E6E4DE; }
/* dark: plain ink page; the hero is the same ink, not the #0F0F0F home hero */
html[data-theme="dark"] .page-services .svc-hero { background: var(--bg) !important; }

/* =====================================================================
   t102 · Floating nav, modelled on jonyablonski.com's header:
   inset 12px from the viewport edges, 16px radius, frosted translucent page colour (blur 20px, saturate 160%),
   1px hairline border, soft shadow + top inner highlight, IBM Plex Mono uppercase links (+.05em) with an underline
   that grows from the left on hover (0.4s, his cubic-bezier) and stays full on the active link.
   Differences on purpose: it stays fixed (his scrolls away) so the scroll-spy keeps working, and the glass is denser
   (72% vs his 42%) so links stay AA over images and dark blocks.
   ===================================================================== */
html .nav, html body:has(.hero-statement) .nav, html body:has(.hero-statement) .nav.scrolled {
  position: fixed; top: 12px; left: 12px; right: 12px;
  padding: 0.85rem 1.25rem 0.85rem 2rem; border-radius: 16px;
  background: rgba(251, 251, 249, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(8, 8, 18, 0.06);
  box-shadow: 0 4px 24px rgba(8, 8, 18, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
html[data-theme="dark"] .nav, html[data-theme="dark"] body:has(.hero-statement) .nav, html[data-theme="dark"] body:has(.hero-statement) .nav.scrolled {
  background: rgba(16, 16, 26, 0.66);
  border: 1px solid rgba(251, 251, 249, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html .nav .logo, html .nav a.logo, html .nav nav a:not(.btn-nav), html .nav .btn-nav, .menu-toggle, .nav-overlay a {
  font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 400;
}
html .nav .logo, html .nav a.logo { font-size: 0.82rem; font-weight: 500; }
html .nav nav { gap: 0.25rem; }
html .nav nav a:not(.btn-nav) {
  position: relative; display: inline-block; padding: 0.7rem 0.85rem; font-size: 0.8rem;
  text-decoration: none !important;
}
html .nav nav a:not(.btn-nav)::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.4rem; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left center; transition: transform .4s cubic-bezier(0.645, 0.045, 0.355, 1);
}
html .nav nav a:not(.btn-nav):hover::after { transform: scaleX(1); }
html .nav nav a[aria-current]:not(.btn-nav)::after { transform: scaleX(1); height: 2px; }
html[data-theme="dark"] .nav nav a[aria-current]:not(.btn-nav)::after { background: #3DFF8F; }
html[data-theme="light"] .nav nav a[aria-current]:not(.btn-nav)::after { background: #7351FB; }
html[data-theme="dark"] .nav .logo, html[data-theme="dark"] .nav a.logo { color: #FBFBF9; }
html[data-theme="dark"] .nav nav a:not(.btn-nav) { color: rgba(251, 251, 249, 0.82); }
html[data-theme="dark"] .nav nav a:not(.btn-nav):hover, html[data-theme="dark"] .nav nav a[aria-current]:not(.btn-nav) { color: #FFFFFF !important; }
html .nav .btn-nav { font-size: 0.78rem; padding: 0.6rem 1.1rem; margin-left: 0.5rem; border-radius: 999px; }
html[data-theme="dark"] .nav .btn-nav, html[data-theme="dark"] body:has(.hero-statement) .btn-nav { background: #FBFBF9; color: #080812; }
html .theme-toggle { margin-left: 0.5rem; }
@media (prefers-reduced-motion: reduce) { html .nav nav a:not(.btn-nav)::after { transition: none; } }

/* mobile: his "Menu" pill + full-screen gradient panel (only when JS is on; without JS the links stay inline) */
.menu-toggle { display: none; }
.nav-overlay { display: none; }
@media (max-width: 640px) {
  html .nav, html body:has(.hero-statement) .nav, html body:has(.hero-statement) .nav.scrolled { padding: 0.6rem 0.6rem 0.6rem 1.1rem; }
  html.has-menu .nav nav a { display: none !important; }
  html.has-menu .nav nav { gap: 0; }
  html.has-menu .theme-toggle { width: 36px; height: 36px; margin-left: 0; }
  html.has-menu .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; padding: 0.6rem 1.1rem; min-height: 40px;
    font-size: 0.78rem; border-radius: 999px; cursor: pointer;
    background: rgba(8, 8, 18, 0.04); border: 1px solid rgba(8, 8, 18, 0.16); color: #080812;
  }
  html[data-theme="dark"].has-menu .menu-toggle { background: rgba(255, 255, 255, 0.08); border-color: rgba(251, 251, 249, 0.3); color: #FBFBF9; }
  .menu-toggle svg { width: 16px; height: 16px; display: block; }
  .menu-toggle .mt-close { display: none; }
  html.menu-open .menu-toggle .mt-open { display: none; }
  html.menu-open .menu-toggle .mt-close { display: block; }
  .menu-toggle:focus-visible, .nav-overlay a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
  html.has-menu .nav-overlay {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 0.4rem;
    position: fixed; inset: 0; z-index: 99; padding: 6rem 1.75rem 3rem;
    background: linear-gradient(135deg, rgba(91, 59, 224, 0.96), rgba(170, 64, 40, 0.96));  /* his violet->orange, deepened so white text is AA */
    -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
  }
  html.menu-open .nav-overlay { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  .nav-overlay a { color: #FFFFFF; font-size: 1.85rem; padding: 0.55rem 0; text-decoration: none; text-align: right; }
  .nav-overlay a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .nav-overlay a.ov-contact { margin-top: 1.25rem; font-size: 1rem; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 0.75rem 1.5rem; }
  html.menu-open { overflow: hidden; }
  html.menu-open .nav { background: transparent !important; border-color: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html.menu-open .nav .logo { color: #FFFFFF !important; }
  html.menu-open .menu-toggle { color: #FFFFFF !important; border-color: rgba(255,255,255,.6) !important; background: rgba(255,255,255,.12) !important; }
  html.menu-open .theme-toggle { color: #FFFFFF !important; border-color: rgba(255,255,255,.5) !important; }
  @media (prefers-reduced-motion: reduce) { html.has-menu .nav-overlay, html.menu-open .nav-overlay { transition: none; } }
}
@media (max-width: 359px) {
  html .nav, html body:has(.hero-statement) .nav, html body:has(.hero-statement) .nav.scrolled { left: 8px; right: 8px; top: 8px; padding-left: 0.85rem; }
  html.has-menu .menu-toggle { padding: 0.55rem 0.85rem; }
}

/* t104 · Footer / contact closing block: solid deep teal, no glow or wash, every page that has it, both themes */
html .contact-block, html .page-about .contact-block, html .page-services .contact-block { background: #123B36 !important; color: #F5F2EB; border-top: none; }
html[data-theme="dark"] .contact-block, html[data-theme="dark"] .page-about .contact-block, html[data-theme="dark"] .page-services .contact-block { background: #0C2925 !important; }
html .contact-block::before { content: none !important; animation: none !important; }
html .contact-block .contact-inner h2 { color: #F5F2EB; }
html .contact-block .contact-inner h2 span { color: #FF6B4A; }          /* large text: 4.4:1 light-theme teal, 5.5:1 dark */
html .contact-block .contact-row { border-top-color: rgba(255, 255, 255, 0.15); }
html .contact-block .contact-row a { color: rgba(245, 242, 235, 0.85); }
html .contact-block .contact-row a:hover { color: #FF8A6E; }
html .contact-block .svc-contact-sub { color: rgba(245, 242, 235, 0.8); }

/* =====================================================================
   t105 · Monochrome site: plain white (light) / plain black (dark) everywhere.
   The ONLY colour field is the home hero with its cursor glow. Small accents stay (coral highlights, neon name in
   dark, logos, images). Footer/contact = solid inverted block (black in light, off-white in dark).
   ===================================================================== */
html[data-theme="light"] {
  --bg: #FBFBF9; --surface: #FFFFFF; --border: #E6E4DE;
  --pastel-1: #F1F1EE; --pastel-2: #F1F1EE; --pastel-3: #F1F1EE; --pastel-4: #F1F1EE;
}
html[data-theme="dark"] {
  --bg: #0F0F0F; --surface: #181818; --border: #2A2A2A;
  --text-muted: #A8A8A8; --text-body: #CFCFCF; --text-dim: #9E9E9E;
  --pastel-1: #1A1A1A; --pastel-2: #1A1A1A; --pastel-3: #1A1A1A; --pastel-4: #1A1A1A;
}
/* every section = page colour, no washes */
html .slide--dispatch-board, html .slide--dispatch-pro, html .slide--rescheduling-assistant, html .slide--non-job-events,
html .testimonials, html .about-block, html .xp, html .svc-hero, html .svc-intro, html .svc-offer, html .svc-process,
html .cs-hero, html .cs-body, html .cs-next, html .cs-hero-image, html .services-teaser { background: var(--bg) !important; }
html .slide--dispatch-board::before, html .slide--dispatch-pro::before, html .slide--rescheduling-assistant::before, html .slide--non-job-events::before,
html .testimonials::before, html .svc-offer::before, html .svc-process::before { content: none !important; animation: none !important; }
/* quiet hairlines keep the rhythm between the now-uncoloured blocks */
html .slide--dispatch-pro, html .slide--rescheduling-assistant, html .slide--non-job-events, html .testimonials, html .services-teaser { border-top: 1px solid var(--border); }
html .slide--dispatch-board { border-top: none; }

/* services teaser on home: page colour, not a black band */
html .services-teaser { color: var(--text); }
html[data-theme="light"] .services-teaser h2 em { color: #A8361B; }                 /* coral accent; neon stays for dark */
html[data-theme="light"] .services-teaser .btn { background: #080812; color: #FBFBF9; }
html[data-theme="light"] .services-teaser .btn:hover { background: #22222A; }
html[data-theme="dark"] .services-teaser .btn { background: #F5F2EB; color: #0F0F0F; }

/* testimonial cards: the dark cards stay black/ink (a neutral), light cards on page colour */
html[data-theme="light"] .t-dark { background: #0F0F0F; box-shadow: none; }
html[data-theme="dark"] .t-dark { background: #181818; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }

/* services: neutral chips instead of pastel ones */
html[data-theme="light"] .svc-list li::before, html[data-theme="light"] .svc-offer--brand .svc-list li::before,
html[data-theme="light"] .svc-offer--web .svc-list li::before { background-color: #ECEBE7; }
html[data-theme="dark"] .svc-list li::before, html[data-theme="dark"] .svc-offer--brand .svc-list li::before,
html[data-theme="dark"] .svc-offer--web .svc-list li::before { background-color: #E6E6E6; }
html .svc-step-num, html .svc-step:nth-child(n) .svc-step-num { background: transparent; border: 1px solid var(--border); color: var(--text); }
html[data-theme="light"] .svc-card, html[data-theme="light"] .svc-step { background: #FFFFFF; }
html[data-theme="dark"] .svc-card, html[data-theme="dark"] .svc-step, html[data-theme="dark"] .svc-num, html[data-theme="dark"] .svc-icon { background: #181818; }
html[data-theme="dark"] .svc-hero { background: var(--bg) !important; }
html[data-theme="dark"] .cs-image.cs-image--before { background: #181818; }
html[data-theme="dark"] .cs-result { background: #181818; }

/* nav glass: neutral, no tint */
html[data-theme="dark"] .nav, html[data-theme="dark"] body:has(.hero-statement) .nav, html[data-theme="dark"] body:has(.hero-statement) .nav.scrolled { background: rgba(20, 20, 20, 0.7); }

/* mobile menu panel: plain page colour instead of the violet/orange gradient */
@media (max-width: 640px) {
  html.has-menu .nav-overlay { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-overlay a { color: var(--text); }
  .nav-overlay a.ov-contact { border-color: var(--text); }
  .menu-toggle:focus-visible, .nav-overlay a:focus-visible { outline-color: var(--text); }
  html.menu-open .nav .logo { color: var(--text) !important; }
  html.menu-open .menu-toggle, html.menu-open .theme-toggle { color: var(--text) !important; border-color: var(--border) !important; background: transparent !important; }
  html[data-theme="light"] .nav-overlay a[aria-current] { text-decoration-color: #7351FB; }
  html[data-theme="dark"] .nav-overlay a[aria-current] { text-decoration-color: #3DFF8F; }
}

/* footer / contact: solid inverted block on every page that has it */
html .contact-block, html .page-about .contact-block, html .page-services .contact-block { border-top: none; }
html[data-theme="light"] .contact-block, html[data-theme="light"] .page-about .contact-block, html[data-theme="light"] .page-services .contact-block { background: #0F0F0F !important; color: #F5F2EB; }
html[data-theme="dark"] .contact-block, html[data-theme="dark"] .page-about .contact-block, html[data-theme="dark"] .page-services .contact-block { background: #FBFBF9 !important; color: #080812; }
html[data-theme="dark"] .contact-block .contact-inner h2 { color: #080812; }
html[data-theme="dark"] .contact-block .contact-inner h2 span { color: #A8361B; }
html[data-theme="dark"] .contact-block .contact-row { border-top-color: rgba(8, 8, 18, 0.14); }
html[data-theme="dark"] .contact-block .contact-row a { color: #3A3A48; }
html[data-theme="dark"] .contact-block .contact-row a:hover { color: #A8361B; }
html[data-theme="dark"] .contact-block .svc-contact-sub { color: #4A4A5C; }
html[data-theme="dark"] .contact-block a:focus-visible { outline-color: #7351FB; }
@media (max-width: 640px) { html.has-menu .nav nav { margin-left: auto; } }

/* t108 · Footer/contact matches the page: off-white + ink in light, #0F0F0F + light text in dark; hairline above, no glow */
html[data-theme] .contact-block, html[data-theme] .page-about .contact-block, html[data-theme] .page-services .contact-block {
  background: var(--bg) !important; color: var(--text); border-top: 1px solid var(--border);
}
html[data-theme] .contact-block::before { content: none !important; }
html[data-theme] .contact-block .contact-inner h2 { color: var(--text); }
html[data-theme] .contact-block .contact-row { border-top-color: var(--border); }
html[data-theme="light"] .contact-block .contact-inner h2 span { color: #A8361B; }
html[data-theme="light"] .contact-block .contact-row a { color: #3A3A48; }
html[data-theme="light"] .contact-block .contact-row a:hover { color: #A8361B; }
html[data-theme="light"] .contact-block .svc-contact-sub { color: #4A4A5C; }
html[data-theme="light"] .contact-block a:focus-visible { outline-color: #7351FB; }
html[data-theme="dark"] .contact-block .contact-inner h2 span { color: #FF6B4A; }
html[data-theme="dark"] .contact-block .contact-row a { color: rgba(245, 242, 235, 0.85); }
html[data-theme="dark"] .contact-block .contact-row a:hover { color: #FF8A6E; }
html[data-theme="dark"] .contact-block .svc-contact-sub { color: rgba(245, 242, 235, 0.8); }
html[data-theme="dark"] .contact-block a:focus-visible { outline-color: #3DFF8F; }

/* ===== t109 · AI-accelerated process ===== */
/* hero asterisk burst: 4 tools in an arc (Figma, Dovetail, Claude, pencil) */
.hero-statement .star:hover .tool-1, .hero-statement .star:focus-visible .tool-1, .hero-statement .star.is-open .tool-1 { transform: translate(-72px, -30px) rotate(-14deg); }
.hero-statement .star:hover .tool-3, .hero-statement .star:focus-visible .tool-3, .hero-statement .star.is-open .tool-3 { transform: translate(-26px, -66px) rotate(-4deg); }
.hero-statement .star:hover .tool-5, .hero-statement .star:focus-visible .tool-5, .hero-statement .star.is-open .tool-5 { transform: translate(26px, -66px) rotate(4deg); transition-delay: 0.075s; }
.hero-statement .star:hover .tool-4, .hero-statement .star:focus-visible .tool-4, .hero-statement .star.is-open .tool-4 { transform: translate(72px, -30px) rotate(14deg); }
@media (prefers-reduced-motion: reduce) {
  .hero-statement .star .tool-1 { transform: translate(-72px, -30px) !important; }
  .hero-statement .star .tool-3 { transform: translate(-26px, -66px) !important; }
  .hero-statement .star .tool-5 { transform: translate(26px, -66px) !important; }
  .hero-statement .star .tool-4 { transform: translate(72px, -30px) !important; }
}

/* About: How I work with AI (plain page colour, neutral cards) */
.ai-way { background: var(--bg); border-top: 1px solid var(--border); padding: 6rem 2.5rem; }
.ai-way-inner { max-width: 1100px; margin: 0 auto; }
.ai-way .slide-label { color: var(--ink-accent, #A8361B); }
.ai-way-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0.6rem 0 1.75rem; color: var(--text); }
.ai-way-copy { max-width: 62ch; }
.ai-way-copy p { font-size: 1.08rem; line-height: 1.65; color: var(--text-muted); margin-bottom: 1.1rem; }
html[data-theme="light"] .ai-way-copy p { color: #4F4F4F; }
html[data-theme="dark"] .ai-way-copy p { color: var(--text-body); }
.ai-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.75rem; padding: 0; counter-reset: none; }
.ai-step { position: relative; border: 1px solid var(--border); border-radius: 20px; padding: 1.6rem 1.5rem 1.7rem; background: var(--surface); }
.ai-step + .ai-step::before { content: "→"; position: absolute; left: -1.05rem; top: 1.7rem; font-size: 0.95rem; color: var(--text-muted); }
.ai-step-num { display: inline-block; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.6rem; margin-bottom: 1rem; }
.ai-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; letter-spacing: -0.02em; margin-bottom: 0.45rem; color: var(--text); }
.ai-step p { font-size: 0.97rem; line-height: 1.55; color: var(--text-muted); }
html[data-theme="light"] .ai-step p { color: #4F4F4F; }
html[data-theme="dark"] .ai-step p { color: var(--text-body); }
@media (max-width: 900px) {
  .ai-way { padding: 4.5rem 1.5rem; }
  .ai-steps { grid-template-columns: 1fr; }
  .ai-step + .ai-step::before { content: "↓"; left: 1.5rem; top: -1.15rem; }
}

/* Case studies: "AI in the process" block, same family as the BEFORE frames (neutral dashed frame + ink pill) */
.cs-ai { position: relative; margin: 2.5rem 0 3rem; padding: 1.9rem 1.6rem 1.4rem; border: 1px dashed rgba(26, 26, 26, 0.28); border-radius: 14px; background: #F1F1EE; }
.cs-ai-tag { position: absolute; top: -0.7rem; left: 1.2rem; background: #1A1A1A; color: #FFFFFF; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px; }
.cs-body .cs-ai p, .cs-ai p { margin: 0; color: var(--text); line-height: 1.65; }
html[data-theme="dark"] .cs-ai { background: #181818; border-color: rgba(251, 251, 249, 0.28); }
html[data-theme="dark"] .cs-ai-tag { background: #FBFBF9; color: #080812; }
@media (max-width: 600px) { .cs-ai { padding: 1.6rem 1.1rem 1.1rem; } .cs-ai-tag { top: -0.6rem; left: 0.8rem; font-size: 0.62rem; } }

/* ===== t111 · How I work with AI: mini Figma scenes, same kit as the About hover overlays
   (2px ink borders + hard 3px offset shadow, pill tags, Figma-blue selection with handles + size tag, neon/periwinkle cursors, coral avatar) ===== */
.ai-step-art { margin: -0.25rem -0.25rem 1.1rem; height: 186px; border-radius: 14px; border: 1px solid var(--border); position: relative; overflow: hidden; container-type: inline-size;
  background-color: var(--bg); background-image: radial-gradient(circle, rgba(26,26,26,.13) 1px, transparent 1.3px); background-size: 14px 14px; }
html[data-theme="dark"] .ai-step-art { background-image: radial-gradient(circle, rgba(251,251,249,.12) 1px, transparent 1.3px); }
.ai-art { position: absolute; inset: 0; }
.aa-stage { position: absolute; left: 50%; top: 50%; width: 300px; height: 180px; margin: -90px 0 0 -150px; }
@container (max-width: 299px) { .aa-stage { zoom: .86; } }
@container (max-width: 258px) { .aa-stage { zoom: .74; } }
/* shared kit */
.aa-frame { position: absolute; background: #FFFFFF; border: 1px solid #CFCBC3; border-radius: 3px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.aa-flabel { position: absolute; left: -1px; top: -17px; font: 500 10px/1 'IBM Plex Mono', ui-monospace, monospace; color: #5E5850; white-space: nowrap; }
.aa-frame .w { display: block; height: 5px; border-radius: 3px; background: #E2DFD8; }
.aa-frame .w-img { height: 22px; border-radius: 3px; background: #EEECE7; }
.aa-frame .w-l1 { width: 80%; } .aa-frame .w-l2 { width: 55%; }
.aa-btn { display: block; height: 11px; width: 46%; border-radius: 999px; background: #1A1A1A; margin-top: 2px; }
html[data-theme="dark"] .aa-frame { background: #1C1C1C; border-color: #3A3A3A; }
html[data-theme="dark"] .aa-flabel { color: #A8A8A8; }
html[data-theme="dark"] .aa-frame .w { background: #3A3A3A; }
html[data-theme="dark"] .aa-frame .w-img { background: #2A2A2A; }
html[data-theme="dark"] .aa-btn { background: #F5F2EB; }
.aa-sel { position: absolute; inset: -5px; border: 1.5px solid #0D99FF; border-radius: 2px; }
.aa-sel::after { content: attr(data-size); position: absolute; left: 50%; bottom: -21px; transform: translateX(-50%); background: #0D99FF; color: #FFFFFF; font: 600 9.5px/1 var(--font); padding: 3px 5px; border-radius: 3px; white-space: nowrap; }
.aa-sel .fh { position: absolute; width: 6px; height: 6px; background: #FFFFFF; border: 1.5px solid #0D99FF; border-radius: 1px; }
.aa-sel .fh-tl { left: -4px; top: -4px; } .aa-sel .fh-tr { right: -4px; top: -4px; } .aa-sel .fh-bl { left: -4px; bottom: -4px; } .aa-sel .fh-br { right: -4px; bottom: -4px; }
.aa-bubble, .aa-pin { position: absolute; display: flex; align-items: center; gap: 6px; background: #FFFFFF; border: 2px solid #1A1A1A; border-radius: 16px 16px 16px 4px; box-shadow: 3px 3px 0 #1A1A1A; font: 600 11.5px/1 var(--font); color: #1A1A1A; white-space: nowrap; }
.aa-bubble { padding: 7px 11px 7px 8px; }
.aa-pin { padding: 4px 10px 4px 4px; }
.aa-pin-av { width: 20px; height: 20px; border-radius: 50%; background: #FF6B4A; border: 2px solid #1A1A1A; display: grid; place-items: center; font: 700 10px/1 var(--font); }
.aa-cursor { position: absolute; display: flex; align-items: flex-start; }
.aa-cursor svg { filter: drop-shadow(2px 2px 0 #1A1A1A); }
.aa-tag { margin: 15px 0 0 -3px; padding: 3px 9px; border: 2px solid #1A1A1A; border-radius: 999px; box-shadow: 2px 2px 0 #1A1A1A; font: 700 11px/1.1 var(--font); color: #1A1A1A; }
.aa-cursor--you .aa-tag { background: #3DFF8F; }
.aa-cursor--dev .aa-tag { background: #8FA5EA; }
html[data-theme="dark"] .aa-bubble, html[data-theme="dark"] .aa-pin { box-shadow: 3px 3px 0 var(--line); }
html[data-theme="dark"] .aa-tag { box-shadow: 2px 2px 0 var(--line); }
html[data-theme="dark"] .aa-cursor svg { filter: drop-shadow(2px 2px 0 rgba(251,251,249,.85)); }
/* 1 · Explore */
.ai-art--explore .aa-bubble { left: 50%; top: 10px; transform: translateX(-50%); }
.ai-art--explore .aa-frame { top: 76px; width: 82px; height: 68px; }
.ai-art--explore .aa-f1 { left: 6px; } .ai-art--explore .aa-f2 { left: 109px; } .ai-art--explore .aa-f3 { left: 212px; }
/* 2 · Prototype & validate */
.ai-art--proto .aa-screen { left: 22px; top: 40px; width: 104px; height: 116px; }
.ai-art--proto .aa-screen .w-img { height: 36px; }
.ai-art--proto .aa-screen .aa-btn { position: absolute; left: 8px; bottom: 12px; width: 52px; height: 13px; }
.ai-art--proto .aa-screen2 { left: 198px; top: 40px; width: 82px; height: 74px; }
.aa-noodle { position: absolute; inset: 0; width: 300px; height: 180px; overflow: visible; fill: none; stroke: #0D99FF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aa-noodle circle { fill: #0D99FF; stroke: none; }

.ai-art--proto .aa-cursor { left: 54px; top: 132px; }
.ai-art--proto .aa-pin { left: 134px; top: 144px; }
/* 3 · Hand off & vibe-code */
.ai-art--hand .aa-design { left: 14px; top: 44px; width: 92px; height: 100px; }
.ai-art--hand .aa-design .aa-btn { position: absolute; left: 8px; bottom: 10px; width: 50px; height: 13px; background: #FF6B4A; border: 1.5px solid #1A1A1A; }
.aa-code { position: absolute; left: 126px; top: 30px; width: 162px; padding: 0 0 9px; background: #1A1A1A; border: 2px solid #1A1A1A; border-radius: 10px; box-shadow: 3px 3px 0 #1A1A1A; overflow: hidden; }
html[data-theme="dark"] .aa-code { border-color: #3A3A3A; box-shadow: 3px 3px 0 var(--line); }
.aa-code-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #262626; margin-bottom: 7px; }
.aa-code-bar i { width: 6px; height: 6px; border-radius: 50%; background: #4A4A4A; }
.aa-code-bar span { margin-left: auto; font: 500 10px/1 'IBM Plex Mono', ui-monospace, monospace; color: #3DFF8F; }
.aa-code code { display: block; padding: 0 10px; font: 400 10.5px/1.65 'IBM Plex Mono', ui-monospace, monospace; color: #F5F2EB; white-space: nowrap; background: none; }
.aa-code .k { color: #8FA5EA; } .aa-code .a { color: #F5F2EB; } .aa-code .s { color: #3DFF8F; }
.ai-art--hand .aa-cursor { left: 232px; top: 116px; }
/* motion: pieces pop in with the same springy ease as the About overlays */
html.ill-on .aa-pop { opacity: 0; translate: 0 10px; scale: .92; transition: opacity .3s ease, translate .5s cubic-bezier(.34,1.56,.64,1), scale .5s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--d, 0) * 0.12s + 0.1s); }
html.ill-on .ai-art.drawn .aa-pop { opacity: 1; translate: 0 0; scale: 1; }
/* desktop connector behind the cards */
@media (min-width: 901px) {
  .ai-steps { position: relative; }
  .ai-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 6.4rem; border-top: 1.5px dashed #BDBAB3; z-index: 0; }
  html[data-theme="dark"] .ai-steps::before { border-top-color: #4A4A4A; }
  .ai-step { z-index: 1; }
  .ai-step + .ai-step::before { content: "→"; left: -1.1rem; top: 5.85rem; z-index: 2; background: var(--bg); padding: 0 .15rem; line-height: 1; font-size: 1rem; }
}
