  :root {
    --bg: #e0ddd8;
    --bg-raised: #e8e5e0;
    --ink: #2c2a27;
    --ink-muted: #7a766f;
    --ink-faint: #b0aba3;
    --highlight: #c0562a;
    --highlight-soft: rgba(192,86,42,0.12);
    --green: #3a9e6a;

    /* neumorphic shadows — light source from top-left */
    --neu-light: #f5f2ed;
    --neu-dark: #c8c5c0;
    --shadow-raised: 6px 6px 14px var(--neu-dark), -6px -6px 14px var(--neu-light);
    --shadow-inset:  inset 4px 4px 10px var(--neu-dark), inset -4px -4px 10px var(--neu-light);
    --shadow-raised-sm: 3px 3px 8px var(--neu-dark), -3px -3px 8px var(--neu-light);
    --shadow-inset-sm: inset 2px 2px 6px var(--neu-dark), inset -2px -2px 6px var(--neu-light);
    --shadow-pressed: inset 3px 3px 8px var(--neu-dark), inset -1px -1px 4px var(--neu-light);
    --shadow-float: 8px 8px 20px var(--neu-dark), -8px -8px 20px var(--neu-light);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --nav-h: 68px;
    --max-w: 1100px;
    --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #1e1c1a;
      --bg-raised: #242220;
      --ink: #e8e4de;
      --ink-muted: #8a857d;
      --ink-faint: #4a4640;
      --highlight: #e06a38;
      --highlight-soft: rgba(224,106,56,0.12);
      --green: #4ab87a;
      --neu-light: #2a2825;
      --neu-dark: #141210;
      --shadow-raised: 6px 6px 14px var(--neu-dark), -6px -6px 14px var(--neu-light);
      --shadow-inset:  inset 4px 4px 10px var(--neu-dark), inset -4px -4px 10px var(--neu-light);
      --shadow-raised-sm: 3px 3px 8px var(--neu-dark), -3px -3px 8px var(--neu-light);
      --shadow-inset-sm: inset 2px 2px 6px var(--neu-dark), inset -2px -2px 6px var(--neu-light);
      --shadow-pressed: inset 3px 3px 8px var(--neu-dark), inset -1px -1px 4px var(--neu-light);
      --shadow-float: 8px 8px 20px var(--neu-dark), -8px -8px 20px var(--neu-light);
    }
  }

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

  body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

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

  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
  }

  /* ── SKIP LINK ── */
  .skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 9999;
    background: var(--highlight); color: #fff;
    padding: 10px 20px; border-radius: var(--radius-pill);
    font-weight: 500; font-size: 14px;
    transform: translateY(-200%); transition: transform 0.2s;
    box-shadow: var(--shadow-raised-sm);
  }
  .skip-link:focus { transform: translateY(0); }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center;
    background: var(--bg);
    box-shadow: 0 4px 12px var(--neu-dark), 0 -1px 0 var(--neu-light);
  }

  .nav-inner {
    max-width: var(--max-w); width: 100%; margin: 0 auto;
    padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
  }

  .nav-logo {
    font-family: var(--font-display);
    font-size: 22px; letter-spacing: -0.5px;
    color: var(--ink);
  }
  .nav-logo span { color: var(--highlight); }

  .nav-links { display: flex; gap: 4px; list-style: none; }
  .nav-links a {
    display: block; padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px; font-weight: 400;
    color: var(--ink-muted);
    transition: all var(--transition);
  }
  .nav-links a:hover {
    color: var(--ink);
    box-shadow: var(--shadow-raised-sm);
  }
  .nav-links a[aria-current="page"] {
    color: var(--ink);
    box-shadow: var(--shadow-inset-sm);
  }
  .nav-links a:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }

  .nav-cta {
    background: var(--bg) !important;
    color: var(--highlight) !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-raised-sm) !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-pill) !important;
    font-size: 14px !important;
    transition: all var(--transition) !important;
  }
  .nav-cta:hover {
    box-shadow: var(--shadow-pressed) !important;
    color: var(--highlight) !important;
  }

  .menu-toggle {
    display: none; background: var(--bg); border: none; cursor: pointer;
    padding: 10px; color: var(--ink); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-raised-sm);
    transition: box-shadow var(--transition);
  }
  .menu-toggle:active { box-shadow: var(--shadow-inset-sm); }
  .menu-toggle:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }
  .menu-toggle svg { display: block; }

  @media (max-width: 680px) {
    .menu-toggle { display: flex; align-items: center; }
    .nav-links {
      position: absolute; top: var(--nav-h); left: 0; right: 0;
      flex-direction: column; gap: 4px;
      background: var(--bg);
      padding: 16px 20px 20px;
      box-shadow: 0 8px 20px var(--neu-dark);
      display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; border-radius: var(--radius-md); }
    .nav-cta { margin-top: 8px; text-align: center; }
  }

  /* ── SECTIONS SHARED ── */
  main { padding-top: var(--nav-h); }

  section {
    max-width: var(--max-w); margin: 0 auto;
    padding: 80px 28px;
  }

  .section-tinted {
    background: var(--bg);
    border-radius: var(--radius-lg);
    max-width: calc(var(--max-w) - 48px);
    margin: 0 auto;
    padding: 64px 40px;
    box-shadow: var(--shadow-inset);
  }
  .section-tinted > * { max-width: 100%; }

  .section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--highlight);
    margin-bottom: 16px;
  }
  .section-tag::before {
    content: ''; display: block;
    width: 18px; height: 2px; background: var(--highlight); border-radius: 2px;
  }

  h2.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15; letter-spacing: -0.5px;
    color: var(--ink); margin-bottom: 12px;
  }

  .section-sub {
    font-size: 17px; color: var(--ink-muted);
    max-width: 560px; line-height: 1.6;
  }

  /* ── HERO ── */
  #hero {
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 80px;
    position: relative; overflow: hidden;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px; align-items: center;
  }

  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-photo { order: -1; }
    .hero-photo img { width: 200px; height: 200px; }
  }

  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg); color: var(--highlight);
    box-shadow: var(--shadow-raised-sm);
    padding: 7px 16px; border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 500;
    margin-bottom: 28px;
  }
  .hero-eyebrow::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--green); flex-shrink: 0;
    box-shadow: 0 0 6px var(--green);
  }

  h1.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.08; letter-spacing: -1.5px;
    margin-bottom: 24px; color: var(--ink);
  }
  h1.hero-title em { font-style: italic; color: var(--ink-muted); }

  .hero-body {
    font-size: 18px; color: var(--ink-muted);
    max-width: 500px; line-height: 1.7;
    margin-bottom: 36px;
  }

  .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-pill);
    font-size: 15px; font-weight: 500;
    background: var(--bg);
    transition: all var(--transition);
    cursor: pointer; border: none;
  }
  .btn:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; }
  .btn:active { box-shadow: var(--shadow-pressed); transform: scale(0.99); }

  .btn-primary {
    color: var(--highlight);
    font-weight: 600;
    box-shadow: var(--shadow-raised);
  }
  .btn-primary:hover { box-shadow: var(--shadow-float); }

  .btn-outline {
    color: var(--ink-muted);
    box-shadow: var(--shadow-inset-sm);
  }
  .btn-outline:hover { color: var(--ink); box-shadow: var(--shadow-raised-sm); }

  .hero-social { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
  .hero-social a {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 500; color: var(--ink-muted);
    padding: 8px 16px;
    background: var(--bg);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-raised-sm);
    transition: all var(--transition);
  }
  .hero-social a:hover { color: var(--ink); box-shadow: var(--shadow-float); }
  .hero-social a:active { box-shadow: var(--shadow-pressed); }
  .hero-social a:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }
  .hero-social svg { width: 15px; height: 15px; }

  .hero-photo { position: relative; display: flex; justify-content: center; }
  .hero-photo img {
    width: 340px; height: 380px;
    object-fit: cover; object-position: top;
    border-radius: var(--radius-lg);
    filter: grayscale(10%);
    box-shadow: var(--shadow-float);
  }
  .hero-photo-frame {
    position: absolute; inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
  }
  .hero-badge {
    position: absolute; bottom: 20px; left: -20px;
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow-raised);
    font-size: 13px;
  }
  .hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; box-shadow: 0 0 6px var(--green); }
  .hero-badge-text { font-weight: 500; color: var(--ink); }
  .hero-badge-sub { color: var(--ink-muted); font-size: 11px; margin-top: 1px; }

  @media (max-width: 860px) {
    .hero-badge { left: 50%; transform: translateX(-50%); bottom: -16px; white-space: nowrap; }
    .hero-photo { padding-bottom: 32px; }
  }

  .hero-decor { display: none; }

  /* ── ABOUT ── */
  #about {
    background: var(--bg);
    border-radius: var(--radius-lg);
    max-width: calc(var(--max-w) - 48px);
    box-shadow: var(--shadow-inset);
  }

  .about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: start;
  }

  @media (max-width: 680px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
  }

  .about-body { font-size: 17px; color: var(--ink-muted); line-height: 1.8; margin-top: 32px; }
  .about-body p + p { margin-top: 16px; }

  .skills-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .skill-chip {
    background: var(--bg);
    color: var(--ink-muted);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 400;
    box-shadow: var(--shadow-raised-sm);
    transition: all var(--transition);
  }
  .skill-chip:hover { box-shadow: var(--shadow-inset-sm); color: var(--ink); }

  .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
  .stat-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 20px 20px 16px;
    box-shadow: var(--shadow-raised-sm);
    transition: box-shadow var(--transition);
  }
  .stat-card:hover { box-shadow: var(--shadow-inset-sm); }
  .stat-num {
    font-family: var(--font-display);
    font-size: 36px; line-height: 1;
    color: var(--ink); margin-bottom: 4px;
  }
  .stat-label { font-size: 13px; color: var(--ink-muted); }

  /* ── PROJECTS ── */
  .projects-header { margin-bottom: 48px; }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 28px;
  }

  .project-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-raised);
    transition: box-shadow var(--transition), transform var(--transition);
  }
  .project-card:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-3px);
  }
  .project-card:focus-within { outline: 2px solid var(--highlight); outline-offset: 3px; }

  .project-img {
    width: 100%; aspect-ratio: 16/9;
    overflow: hidden; background: var(--bg);
    box-shadow: var(--shadow-inset-sm);
  }
  .project-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  }
  .project-card:hover .project-img img { transform: scale(1.04); }

  .project-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

  .project-tag {
    font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--highlight); margin-bottom: 8px;
  }

  h3.project-title {
    font-family: var(--font-display);
    font-size: 20px; line-height: 1.25;
    color: var(--ink); margin-bottom: 10px;
  }

  .project-desc {
    font-size: 14px; color: var(--ink-muted);
    line-height: 1.65; flex: 1; margin-bottom: 20px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: var(--ink-muted);
    padding: 9px 18px;
    background: var(--bg);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-raised-sm);
    transition: all var(--transition);
    align-self: flex-start;
  }
  .project-link:hover { color: var(--highlight); box-shadow: var(--shadow-float); }
  .project-link:active { box-shadow: var(--shadow-pressed); }
  .project-link:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }
  .project-link svg { width: 13px; height: 13px; }

  /* ── CONTACT ── */
  #contact {
    background: var(--bg);
    border-radius: var(--radius-lg);
    max-width: calc(var(--max-w) - 48px);
    box-shadow: var(--shadow-inset);
  }

  /* ── TECH STACK ── */
  .stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 20px;
  }
  .stack-group {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-raised-sm);
    transition: box-shadow var(--transition);
  }
  .stack-group:hover { box-shadow: var(--shadow-inset-sm); }
  .stack-group-label {
    font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--highlight); margin-bottom: 14px;
  }
  .stack-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .stack-chip {
    background: var(--bg);
    color: var(--ink-muted);
    padding: 5px 12px; border-radius: var(--radius-pill);
    font-size: 13px;
    box-shadow: var(--shadow-inset-sm);
  }

  /* ── PROCESS ── */
  .process-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
  .process-step {
    display: flex; gap: 24px; align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .process-step:last-child { border-bottom: none; }
  .process-num {
    font-family: var(--font-display);
    font-size: 32px; line-height: 1;
    color: var(--ink-faint);
    min-width: 48px; padding-top: 2px; flex-shrink: 0; padding-left: 10px;
  }
  h3.process-step-title { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
  .process-step-body { font-size: 14px; color: var(--ink-muted); line-height: 1.65; }

  /* ── PROJECT META ── */
  .project-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
  .project-meta-item {
    font-size: 11px; font-weight: 500;
    background: var(--bg);
    color: var(--ink-muted);
    padding: 3px 10px; border-radius: var(--radius-pill);
    box-shadow: var(--shadow-inset-sm);
  }

  /* ── WHY WORK WITH ME ── */
  .why-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
  .why-item { display: flex; gap: 14px; align-items: flex-start; }
  .why-icon { color: var(--highlight); font-size: 16px; font-weight: 500; padding-top: 2px; flex-shrink: 0; }
  .why-item strong { display: block; font-size: 15px; font-weight: 500; margin-bottom: 4px; color: var(--ink); }
  .why-item p { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }

  @media (max-width: 680px) {
    #why > div { grid-template-columns: 1fr !important; gap: 32px !important; }
  }

  /* ── OPEN TO ── */
  .open-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 20px;
  }
  .open-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    box-shadow: var(--shadow-raised);
    transition: all var(--transition);
  }
  .open-card:hover { box-shadow: var(--shadow-float); transform: translateY(-2px); }
  .open-card-icon { font-size: 24px; margin-bottom: 14px; }
  .open-card-title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
  .open-card-body { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }

  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }

  @media (max-width: 680px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  }

  .contact-info { padding-right: 16px; }
  .contact-email-link {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 28px);
    color: var(--highlight);
    margin: 16px 0 24px;
    border-bottom: 2px solid color-mix(in srgb, var(--highlight) 30%, transparent);
    padding-bottom: 4px;
    transition: border-color var(--transition);
  }
  .contact-email-link:hover { border-color: var(--highlight); }
  .contact-email-link:focus-visible { outline: 2px solid var(--highlight); outline-offset: 4px; }

  .contact-social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
  .contact-social-row a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: var(--ink-muted);
    padding: 9px 18px;
    background: var(--bg);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-raised-sm);
    transition: all var(--transition);
  }
  .contact-social-row a:hover { color: var(--ink); box-shadow: var(--shadow-float); }
  .contact-social-row a:active { box-shadow: var(--shadow-pressed); }
  .contact-social-row a:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }

  /* ── FORM ── */
  form { display: flex; flex-direction: column; gap: 16px; }
  .form-group { display: flex; flex-direction: column; gap: 6px; }
  label { font-size: 13px; font-weight: 500; color: var(--ink-muted); }

  input, textarea {
    background: var(--bg);
    border: none;
    border-radius: var(--radius-md);
    padding: 13px 18px;
    font-family: var(--font-body);
    font-size: 15px; color: var(--ink);
    width: 100%;
    box-shadow: var(--shadow-inset-sm);
    transition: box-shadow var(--transition);
    -webkit-appearance: none;
  }
  input::placeholder, textarea::placeholder { color: var(--ink-faint); }
  input:focus, textarea:focus {
    outline: none;
    box-shadow: var(--shadow-inset), 0 0 0 2px color-mix(in srgb, var(--highlight) 30%, transparent);
  }
  textarea { resize: vertical; min-height: 120px; }

  .form-submit {
    background: var(--bg);
    color: var(--highlight);
    border: none; border-radius: var(--radius-pill);
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-raised);
    transition: all var(--transition);
    align-self: flex-start;
  }
  .form-submit:hover { box-shadow: var(--shadow-float); }
  .form-submit:active { box-shadow: var(--shadow-pressed); transform: scale(0.99); }
  .form-submit:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; }

  /* ── FOOTER ── */
  footer {
    max-width: var(--max-w); margin: 0 auto;
    padding: 32px 28px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .footer-logo { font-family: var(--font-display); font-size: 18px; }
  .footer-logo span { color: var(--highlight); }
  .footer-copy { font-size: 13px; color: var(--ink-muted); }

  /* ══════════════════════════════════════
     SECTION ANIMATION SYSTEM
  ══════════════════════════════════════ */

  /* ── BASE: prevent FOUC ── */
  .anim-hero-word,
  .anim-about-char,
  .anim-stat,
  .anim-stack-group,
  .anim-process-step,
  .anim-project-card,
  .anim-why-item,
  .anim-open-card,
  .anim-contact-left,
  .anim-contact-right,
  .fade-up,
  .anim-client-card, 
  .anim-clients-count {
    opacity: 0;
  }

  /* ── HERO: words materialize like clay pressing out of surface ── */
  .anim-hero-word {
    display: inline-block;
    transform: translateY(60px) scaleY(0.3) rotateX(40deg);
    transform-origin: bottom center;
    filter: blur(8px);
    transition:
      opacity 0.7s cubic-bezier(0.16,1,0.3,1),
      transform 0.7s cubic-bezier(0.16,1,0.3,1),
      filter 0.7s cubic-bezier(0.16,1,0.3,1);
  }
  .anim-hero-word.in {
    opacity: 1;
    transform: translateY(0) scaleY(1) rotateX(0deg);
    filter: blur(0px);
  }

  /* ── ABOUT: each character types itself with neumorphic depth pulse ── */
  .anim-about-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.45s ease,
      transform 0.45s ease;
  }
  .anim-about-char.in {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .anim-about-char.pulse {
    animation: charPulse 0.4s ease-out;
  }
  @keyframes charPulse {
    0%   { text-shadow: 0 0 0 transparent; }
    40%  { text-shadow: 2px 2px 6px var(--neu-dark), -1px -1px 3px var(--neu-light); }
    100% { text-shadow: none; }
  }

  /* ── STAT CARDS: count up from zero with a neumorphic "stamp" ── */
  .anim-stat {
    transform: scale(0.88) translateY(16px);
    transition:
      opacity 0.5s cubic-bezier(0.34,1.56,0.64,1),
      transform 0.5s cubic-bezier(0.34,1.56,0.64,1),
      box-shadow 0.5s ease;
  }
  .anim-stat.in {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  .anim-stat.stamp {
    animation: stampIn 0.45s cubic-bezier(0.36,0.07,0.19,0.97);
  }
  @keyframes stampIn {
    0%   { box-shadow: var(--shadow-inset); transform: scale(0.92); }
    60%  { box-shadow: var(--shadow-float); transform: scale(1.06); }
    80%  { box-shadow: var(--shadow-raised-sm); transform: scale(0.98); }
    100% { box-shadow: var(--shadow-raised-sm); transform: scale(1); }
  }

  /* ── STACK GROUPS: fold open like cards from a deck ── */
  .anim-stack-group {
    transform: perspective(600px) rotateY(-25deg) translateX(-30px);
    transform-origin: left center;
    transition:
      opacity 0.6s cubic-bezier(0.16,1,0.3,1),
      transform 0.6s cubic-bezier(0.16,1,0.3,1),
      box-shadow 0.6s ease;
  }
  .anim-stack-group.in {
    opacity: 1;
    transform: perspective(600px) rotateY(0deg) translateX(0);
  }

  /* ── PROCESS STEPS: telegraph-style reveal — line draws then content slides ── */
  .anim-process-step {
    transform: translateX(-40px);
    transition:
      opacity 0.55s cubic-bezier(0.16,1,0.3,1),
      transform 0.55s cubic-bezier(0.16,1,0.3,1);
    position: relative;
  }
  .anim-process-step.in {
    opacity: 1;
    transform: translateX(0);
  }
  .anim-process-step::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--highlight), transparent);
    border-radius: 2px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1) 0.2s;
  }
  .anim-process-step.in::before { transform: scaleY(1); }

/* ── CLIENTS ── */
.clients-header { margin-bottom: 48px; }
 
.clients-category { margin-bottom: 40px; }
 
.clients-category + .clients-category {
  padding-top: 36px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
 
.clients-cat-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 18px; padding-left: 2px;
}
 
.clients-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
 
.client-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-raised);
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none; color: inherit;
}
 
.client-card:hover { box-shadow: var(--shadow-float); transform: translateY(-3px); }
.client-card:active { box-shadow: var(--shadow-pressed); transform: translateY(0); }
.client-card:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; }
 
.client-card-img {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: var(--bg);
  box-shadow: var(--shadow-inset-sm);
  position: relative;
}
 
.client-card-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
 
/* Hide broken/empty img and show placeholder text */
.client-card-img img[src=""] { display: none; }
 
.client-card-img:has(img[src=""])::after {
  content: 'Image coming soon';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em;
}
 
.client-card:hover .client-card-img img { transform: scale(1.04); }
 
.client-card-body {
  padding: 16px 18px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}
 
.client-card-name { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.3; }
 
.client-card-link {
  font-size: 12px; color: var(--highlight); white-space: nowrap;
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}
 
.client-card:hover .client-card-link { opacity: 1; transform: translateX(0); }
 
.clients-count {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 40px; background: var(--bg);
  padding: 12px 22px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-inset-sm);
}
 
.clients-count-num {
  font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--highlight);
}
 
.clients-count-label { font-size: 13px; color: var(--ink-muted); }
 
/* Animations */
.anim-client-card,
.anim-clients-count { opacity: 0; }
 
.anim-client-card {
  transform: scale(0.94) translateY(20px); filter: blur(2px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.6s ease;
}
.anim-client-card.in { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
 
.anim-clients-count {
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.anim-clients-count.in { opacity: 1; transform: translateY(0); }
 

  /* ── PROJECT CARDS: emerge from the surface like bas-relief ── */
  .anim-project-card {
    transform: scale(0.94) translateY(20px);
    filter: blur(2px);
    transition:
      opacity 0.6s cubic-bezier(0.16,1,0.3,1),
      transform 0.6s cubic-bezier(0.16,1,0.3,1),
      filter 0.6s ease,
      box-shadow 0.6s ease;
  }
  .anim-project-card.in {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }

  /* ── WHY ITEMS: magnetic snap from left ── */
  .anim-why-item {
    transform: translateX(-50px) scale(0.96);
    transition:
      opacity 0.5s cubic-bezier(0.34,1.56,0.64,1),
      transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
  }
  .anim-why-item.in {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  /* ── OPEN-TO CARDS: float up with a gentle bounce ── */
  .anim-open-card {
    transform: translateY(40px) scale(0.95);
    transition:
      opacity 0.55s cubic-bezier(0.34,1.56,0.64,1),
      transform 0.55s cubic-bezier(0.34,1.56,0.64,1);
  }
  .anim-open-card.in {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* ── CONTACT: split reveal — left slides from left, right from right ── */
  .anim-contact-left {
    transform: translateX(-60px);
    transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
  }
  .anim-contact-left.in { opacity: 1; transform: translateX(0); }

  .anim-contact-right {
    transform: translateX(60px);
    transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
  }
  .anim-contact-right.in { opacity: 1; transform: translateX(0); }

  /* ── THE UNIQUE ONE: SHADOW BREATHING on hero title ── */
  /* The h1 casts live neumorphic shadows that follow mouse — like the
     surface is physically reacting to a light source you're holding */
  .hero-title {
    transition: text-shadow 0.15s ease;
    will-change: text-shadow;
  }

  /* ── STACK CHIP pop on hover ── */
  .stack-chip {
    transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.25s ease;
    cursor: default;
  }
  .stack-chip:hover {
    box-shadow: var(--shadow-raised-sm);
    transform: translateY(-2px) scale(1.05);
    color: var(--highlight);
  }

  /* ── NAV logo morph ── */
  .nav-logo {
    transition: letter-spacing 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
    display: inline-block;
  }
  .nav-logo:hover { letter-spacing: 4px; }

  /* ── SECTION HEADER ink-bleed ── */
  .section-title {
    color: var(--ink);
    opacity: 1;
  }

  /* fade-up kept for backward compat */
  .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .fade-up.visible { opacity: 1; transform: translateY(0); }

  /* ── FOCUS ── */
  :focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }

  @media (forced-colors: active) {
    .btn-primary { background: ButtonText; color: ButtonFace; }
    .hero-badge-dot { background: Highlight; }
  }

  /* ── CURSOR RIPPLE ── */
  .ripple {
    position: fixed; pointer-events: none; z-index: 9998;
    width: 12px; height: 12px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--highlight) 60%, transparent), transparent);
    transform: translate(-50%, -50%) scale(1);
    animation: rippleFade 0.6s ease-out forwards;
  }
  @keyframes rippleFade {
    0%   { transform: translate(-50%,-50%) scale(0); opacity: 0.8; }
    100% { transform: translate(-50%,-50%) scale(3); opacity: 0; }
  }

  /* ── MAGNETIC BUTTON GLOW ── */
  .btn-primary {
    position: relative; overflow: hidden;
  }
  .btn-primary::after {
    content: '';
    position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(circle at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--highlight) 20%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .btn-primary:hover::after { opacity: 1; }