@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500;1,9..144,600&family=Manrope:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

  :root {
    --bg: #ffffff;
    --surface: #f5f5f7;
    --surface-2: #ffffff;
    --border: rgba(10, 10, 13, 0.10);
    --border-strong: rgba(10, 10, 13, 0.22);
    --text: #0b0b0d;
    --text-muted: rgba(10, 10, 13, 0.62);
    --pink: #d6116a;
    --pink-strong: #b80e59;
    --pink-glow: rgba(214, 17, 106, 0.22);
    --violet: #5b3df0;
    --violet-soft: rgba(91, 61, 240, 0.10);
    --net-dot: rgba(214, 17, 106, 0.55);
    --net-line: rgba(91, 61, 240, 0.18);
    --shadow: 0 1px 2px rgba(10,10,13,0.05);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #08080a;
      --surface: #141416;
      --surface-2: #1a1a1d;
      --border: rgba(255, 255, 255, 0.10);
      --border-strong: rgba(255, 255, 255, 0.20);
      --text: #f5f5f7;
      --text-muted: rgba(245, 245, 247, 0.62);
      --pink: #ff3d8a;
      --pink-strong: #ff6bab;
      --pink-glow: rgba(255, 61, 138, 0.30);
      --violet: #8c6fff;
      --violet-soft: rgba(140, 111, 255, 0.16);
      --net-dot: rgba(255, 61, 138, 0.65);
      --net-line: rgba(140, 111, 255, 0.22);
      --shadow: 0 1px 2px rgba(0,0,0,0.35);
    }
  }

  :root[data-theme="dark"] {
    --bg: #08080a;
    --surface: #141416;
    --surface-2: #1a1a1d;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.20);
    --text: #f5f5f7;
    --text-muted: rgba(245, 245, 247, 0.62);
    --pink: #ff3d8a;
    --pink-strong: #ff6bab;
    --pink-glow: rgba(255, 61, 138, 0.30);
    --violet: #8c6fff;
    --violet-soft: rgba(140, 111, 255, 0.16);
    --net-dot: rgba(255, 61, 138, 0.65);
    --net-line: rgba(140, 111, 255, 0.22);
    --shadow: 0 1px 2px rgba(0,0,0,0.35);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background 0.35s ease, color 0.35s ease;
  }

  .display {
    font-family: 'Fraunces', ui-serif, Georgia, serif;
    text-wrap: balance;
  }

  .mono {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
  }

  .eyebrow {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pink);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6em;
  }

  .eyebrow::before {
    content: "";
    width: 1.4em;
    height: 1px;
    background: var(--pink);
    display: inline-block;
  }

  .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
  }

  a { color: inherit; }

  /* ---------- Nav ---------- */

  header.site {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

  nav.wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text);
  }
  .brand-word {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.92rem;
  }
  .brand-mark { height: 34px; width: auto; display: block; }
  .brand-mark.for-dark { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand-mark.for-light { display: none; }
    :root:not([data-theme="light"]) .brand-mark.for-dark { display: block; }
  }
  :root[data-theme="dark"] .brand-mark.for-light { display: none; }
  :root[data-theme="dark"] .brand-mark.for-dark { display: block; }

  .brand-lockup { height: 46px; width: auto; display: block; }
  .brand-lockup.for-dark { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand-lockup.for-light { display: none; }
    :root:not([data-theme="light"]) .brand-lockup.for-dark { display: block; }
  }
  :root[data-theme="dark"] .brand-lockup.for-light { display: none; }
  :root[data-theme="dark"] .brand-lockup.for-dark { display: block; }

  .nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.5vw, 2.2rem);
    font-size: 0.9rem;
  }
  .nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 3px;
  }

  .theme-toggle {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    position: relative;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .theme-toggle .knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pink);
    transition: transform 0.3s cubic-bezier(.65,0,.35,1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
  }
  :root[data-theme="dark"] .theme-toggle .knob { transform: translateX(18px); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .knob { transform: translateX(18px); }
  }

  /* ---------- Buttons ---------- */

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.85em 1.5em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color .2s ease;
  }
  .btn-primary {
    background: var(--pink);
    color: var(--bg);
    position: relative;
    overflow: hidden;
  }
  .btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
  }
  .btn-primary:hover::after { left: 130%; }
  .btn-primary:hover {
    box-shadow: 0 0 0 1px var(--pink), 0 8px 28px -6px var(--pink-glow);
    transform: translateY(-1px);
  }
  .btn-ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
  }
  .btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

  /* ---------- Hero ---------- */

  .hero {
    position: relative;
    min-height: calc(100svh - 76px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
  }

  #net {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: -1;
    opacity: 0.9;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(3rem, 8vh, 5rem);
    padding-bottom: clamp(3rem, 8vh, 5rem);
  }

  .hero-col { max-width: 660px; }

  h1.hero-head {
    font-size: clamp(2.4rem, 5.6vw, 4rem);
    line-height: 1.06;
    font-weight: 500;
    margin: 0 0 1.4rem;
  }
  h1.hero-head em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(100deg, var(--pink-strong), var(--violet) 70%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }

  .hero-sub {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 46ch;
    margin: 0 0 2.4rem;
  }

  .hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

  @keyframes fade-up-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero .eyebrow, .hero-head, .hero-sub, .hero-ctas, .stat-bar {
    animation: fade-up-in 0.85s cubic-bezier(.16,1,.3,1) both;
  }
  .hero .eyebrow { animation-delay: 0.02s; }
  .hero-head { animation-delay: 0.14s; }
  .hero-sub { animation-delay: 0.26s; }
  .hero-ctas { animation-delay: 0.38s; }
  .stat-bar { animation-delay: 0.48s; }

  h1.hero-head em {
    background-size: 200% auto;
    animation: shimmer-text 6s ease-in-out infinite;
  }
  @keyframes shimmer-text {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  .stat-bar {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    backdrop-filter: blur(6px);
  }
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .stat {
    padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
    border-left: 1px solid var(--border);
  }
  .stat:first-child { border-left: none; }
  .stat .num {
    font-size: 1.5rem;
    color: var(--pink);
    display: block;
    margin-bottom: 0.2rem;
  }
  .stat .lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
  }

  /* ---------- Section shell ---------- */

  section { padding: clamp(4rem, 10vh, 7rem) 0; }
  section + section { border-top: 1px solid var(--border); }

  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: clamp(2.4rem, 6vh, 3.6rem);
    flex-wrap: wrap;
  }
  .section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 500;
    margin: 0;
    max-width: 20ch;
  }
  .section-head h2 em {
    font-style: italic;
    color: var(--pink);
  }
  .section-note {
    max-width: 32ch;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.in-view { opacity: 1; transform: translateY(0); }

  /* ---------- Services ---------- */

  .service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .service-card {
    background: var(--bg);
    padding: 2rem 1.6rem;
    position: relative;
    transition: background 0.25s ease, transform 0.3s ease;
  }
  .service-card:hover { background: var(--surface); transform: translateY(-4px); }
  .service-card .corner {
    position: absolute;
    width: 10px; height: 10px;
    border-top: 1px solid var(--pink);
    border-left: 1px solid var(--pink);
    top: 10px; left: 10px;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .service-card:hover .corner { opacity: 1; }
  .service-card .icon {
    width: 34px; height: 34px;
    margin-bottom: 1.4rem;
    color: var(--pink);
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  }
  .service-card:hover .icon { transform: scale(1.14) rotate(-4deg); }
  .service-card.systems .icon { color: var(--violet); }
  .service-card.systems .corner {
    border-top-color: var(--violet);
    border-left-color: var(--violet);
  }
  .service-card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.15rem;
    margin: 0 0 0.6rem;
  }
  .service-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
  }
  a.service-card { text-decoration: none; color: inherit; display: block; }
  a.service-card .work-link { display: inline-block; margin-top: 1rem; }
  a.service-card:hover .work-link { text-decoration: underline; }

  /* ---------- Flow strip (service pages) ---------- */

  .flow-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1.6rem 0;
  }
  .flow-step {
    border: 1px solid var(--border-strong);
    background: var(--surface);
    padding: 0.65em 1.1em;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .flow-arrow {
    color: var(--pink);
    font-size: 1.1rem;
    line-height: 1;
  }
  @media (max-width: 640px) {
    .flow-strip { flex-direction: column; align-items: flex-start; }
    .flow-arrow { transform: rotate(90deg); margin-left: 0.9rem; }
  }

  /* ---------- Service page callout ---------- */

  .callout {
    border-left: 3px solid var(--pink);
    background: var(--surface);
    padding: 1.2rem 1.5rem;
    margin: 1.4rem 0;
  }
  .callout p { margin: 0; font-size: 0.92rem; line-height: 1.6; }
  .callout p + p { margin-top: 0.6rem; }

  /* ---------- FAQ ---------- */

  .faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  .faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    padding: 0;
  }
  .faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.05rem 1.3rem;
    font-weight: 600;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    line-height: 1;
    color: var(--pink);
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .faq-item[open] summary::after { transform: rotate(45deg); }
  .faq-item p {
    margin: 0;
    padding: 0 1.3rem 1.2rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.94rem;
  }

  /* ---------- Work ---------- */

  .work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }
  .work-card {
    border: 1px solid var(--border);
    padding: 1.8rem;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
  }
  .work-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
  .work-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  .tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pink);
  }
  .tag.tag-systems { color: var(--violet); }
  .pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--violet);
    border: 1px solid var(--violet);
    background: var(--violet-soft);
    padding: 0.2em 0.6em;
    border-radius: 999px;
  }
  .pill.pill-live { position: relative; padding-left: 1.4em; }
  .pill.pill-live::before {
    content: "";
    position: absolute;
    left: 0.55em;
    top: 50%;
    width: 6px; height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--violet);
    animation: pill-pulse 1.8s ease-in-out infinite;
  }
  @keyframes pill-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.6); }
  }
  .work-card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.3rem;
    margin: 0;
  }
  .work-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .work-card.wide { grid-column: span 2; }
  a.work-card { text-decoration: none; color: inherit; }
  .work-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: var(--pink);
    margin-top: auto;
    padding-top: 0.2rem;
  }
  a.work-card:hover .work-link { text-decoration: underline; }

  /* ---------- Process ---------- */

  .process-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .process-step .step-num {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--pink);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-strong);
  }
  .process-step h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.25rem;
    margin: 0 0 0.6rem;
  }
  .process-step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* ---------- Cookie consent bar ---------- */

  #consent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--surface);
    border-top: 1px solid var(--border-strong);
    padding: 1rem clamp(1rem, 4vw, 2rem);
    box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.25);
  }
  .consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .consent-inner p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 62ch;
    flex: 1 1 320px;
  }
  .consent-inner a { color: var(--pink); }
  .consent-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
  }
  .consent-actions .btn {
    padding: 0.6em 1.2em;
    font-size: 0.85rem;
  }
  @media (max-width: 560px) {
    .consent-inner { flex-direction: column; align-items: stretch; }
    .consent-actions { justify-content: flex-end; }
  }

  /* ---------- Testimonials ---------- */

  .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .testimonial-card {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  .testimonial-quote {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-size: 1.02rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text);
  }
  .testimonial-quote::before { content: "\201C"; color: var(--pink); }
  .testimonial-quote::after { content: "\201D"; color: var(--pink); }
  .testimonial-attr {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  .testimonial-attr strong {
    font-size: 0.92rem;
    font-weight: 600;
  }
  .testimonial-attr span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    color: var(--text-muted);
  }
  .testimonial-attr a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    color: var(--pink);
    text-decoration: none;
  }
  .testimonial-attr a:hover { text-decoration: underline; }

  /* ---------- About ---------- */

  .about-block {
    display: flex;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .about-text { flex: 1 1 380px; }
  .about-text p {
    margin: 0 0 1.1rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 56ch;
  }
  .about-text p:last-child { margin-bottom: 0; }
  .about-facts {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border-left: 1px solid var(--border-strong);
    padding-left: 1.5rem;
  }
  .about-fact .k {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.3rem;
  }
  .about-fact .v {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
  }
  .about-fact .v a { color: var(--pink); text-decoration: none; transition: color 0.2s ease; }
  .about-fact .v a:hover { color: var(--violet); }

  .about-photo { flex: 0 0 168px; order: -1; }
  .about-photo .frame {
    position: relative;
    width: 168px;
    height: 168px;
    border-radius: 20px;
  }
  .about-photo .frame::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 23px;
    background: conic-gradient(from 0deg, var(--pink), var(--violet), var(--pink-strong), var(--pink));
    animation: spin-ring 9s linear infinite;
    z-index: 0;
  }
  .about-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
  }
  @keyframes spin-ring { to { transform: rotate(360deg); } }

  /* ---------- Contact ---------- */

  .contact-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: clamp(2rem, 5vw, 3.2rem);
  }
  .contact-block h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 500;
    margin: 0 0 0.5rem;
    max-width: 16ch;
  }
  .contact-block p { margin: 0; color: var(--text-muted); max-width: 40ch; }

  /* ---------- Footer ---------- */

  footer {
    padding: 2.4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
  }
  footer .brand { font-size: 1rem; }
  footer a { text-decoration: underline; text-underline-offset: 2px; }
  footer a:hover { color: var(--pink); }

  @media (max-width: 860px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: none; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .work-grid { grid-template-columns: 1fr; }
    .work-card.wide { grid-column: span 1; }
    .process-list { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .about-facts { border-left: none; padding-left: 0; border-top: 1px solid var(--border-strong); padding-top: 1.2rem; }
    .nav-links .nav-only-desktop { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transition: none; opacity: 1; transform: none; }
    * { animation: none !important; }
  }

  /* ---------- Case study pages ---------- */
  .cs-hero {
    padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(2rem, 5vh, 3rem);
    border-bottom: 1px solid var(--border);
  }
  .cs-breadcrumb {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    display: block;
  }
  .cs-breadcrumb a { color: var(--text-muted); text-decoration: none; }
  .cs-breadcrumb a:hover { color: var(--pink); }
  .cs-title { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 1rem; max-width: 20ch; }
  .cs-summary { font-size: 1.05rem; line-height: 1.65; color: var(--text-muted); max-width: 62ch; margin: 0 0 1.6rem; }
  .cs-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem; }
  .cs-meta span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    border: 1px solid var(--border-strong);
    padding: 0.35em 0.8em;
    border-radius: 999px;
    color: var(--text-muted);
  }
  .cs-section { padding: clamp(2.2rem, 5.5vh, 3.6rem) 0; }
  .cs-section + .cs-section { border-top: 1px solid var(--border); }
  .cs-section h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 1rem; }
  .cs-section p { color: var(--text-muted); line-height: 1.7; max-width: 68ch; margin: 0 0 1.1rem; }
  .cs-section ul { color: var(--text-muted); line-height: 1.7; max-width: 68ch; padding-left: 1.2rem; margin: 0 0 1.1rem; }
  .cs-section li { margin-bottom: 0.4rem; }
  .cs-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.6rem;
    display: block;
  }
  .cs-section.systems .cs-label { color: var(--violet); }
  .cs-cta { text-align: center; padding: clamp(3rem, 7vh, 4.5rem) 0; }
  .cs-cta h2 { margin: 0 0 1.2rem; }
  .cs-tech-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .cs-tech-list span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5em 1em;
    border-radius: 6px;
  }
