  /* ============================================================
     AI LOGO MARQUEE: replaces text marquee
     ============================================================ */
  .marquee {
    background: var(--surface);
    padding: 40px 0 44px;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .marquee-inner {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .marquee-label {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 24px;
    border-right: 1px solid var(--border);
  }
  .marquee-label::after {
    content: "→";
    font-size: 16px;
    color: var(--navy);
    font-family: var(--font);
  }
  @media (min-width: 1024px) {
    .marquee-label { margin-left: 66px; }
  }
  @media (max-width: 640px) {
    .marquee-inner { flex-direction: column; align-items: stretch; gap: 14px; }
    .marquee-label { border-right: 0; padding-right: 0; }
    .marquee-mask { width: 100%; flex: none; }
  }
  .marquee-mask {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  }
  .marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marq 42s linear infinite;
    width: max-content;
    align-items: center;
  }
  .marquee-group {
    display: flex;
    align-items: center;
    gap: 52px;
    padding-right: 52px;
    flex-shrink: 0;
  }
  .marquee-mask:hover .marquee-track { animation-play-state: paused; }
  .ai-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: rgba(35, 46, 102, 0.42);
    transition: color 0.3s;
    white-space: nowrap;
  }
  .ai-logo:hover { color: var(--navy-dark); }
  .ai-logo .lm {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .ai-logo .lm svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
  }
  @media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; width: 100%; }
    .marquee-group { flex-wrap: wrap; gap: 20px 32px; padding-right: 0; flex-shrink: 1; }
    .marquee-group[aria-hidden="true"] { display: none; }
    .marquee-mask { mask-image: none; -webkit-mask-image: none; }
  }

  /* ============================================================
     SECTION BASE
     ============================================================ */
  section.block {
    padding: clamp(80px, 12vh, 140px) 0;
    position: relative;
  }
  section.block.dark {
    background: var(--navy-dark);
    color: #fff;
  }
  .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--navy-50);
  }
  .kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--navy);
  }
  .kicker.pink { color: var(--pink); background: var(--pink-50); }
  .kicker.pink::before { background: var(--pink); }
  .kicker.orange { color: var(--orange); background: var(--orange-50); }
  .kicker.orange::before { background: var(--orange); }
  .dark .kicker {
    background: rgba(255, 179, 217, 0.12);
    color: var(--pink-soft);
    border: 1px solid rgba(255, 179, 217, 0.2);
  }
  .dark .kicker::before { background: var(--pink-soft); box-shadow: 0 0 8px var(--pink); }

  h2.section-title {
    font-size: clamp(30px, 4.2vw, 56px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 20px;
    max-width: 900px;
  }
  .section-lead {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.55;
  }
  .dark h2.section-title { color: #fff; }
  .dark .section-lead { color: rgba(255, 255, 255, 0.7); }
  h2 .gr {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  h2 .pink-ac { color: var(--pink); }
  .dark h2 .pink-ac { color: var(--pink-soft); }

  /* Rotating query text */
  .query-rot {
    display: inline;
    position: relative;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  .query-rot[data-quoted]::before { content: '\201C'; }
  .query-rot[data-quoted]::after  { content: '\201D'; }

  /* Rotator on its own line inside a heading, with locked 2-line height */
  .rot-line {
    display: block;
    min-height: 2.3em; /* 2 × line-height (1.15) — always reserves 2 lines */
    margin-top: 0.08em;
  }
  .rot-line .query-rot {
    display: inline-block;
    white-space: pre-line; /* honor \n in data → forces 2-line render */
  }
  .query-rot.is-out {
    opacity: 0;
    transform: translateY(-0.18em);
  }
  @media (prefers-reduced-motion: reduce) {
    .query-rot { transition: opacity 0.2s linear; }
    .query-rot.is-out { transform: none; }
  }

  /* Rotating client work: every project receives the same visual weight. */
  .home-work { scroll-margin-top: 100px; }
  .home-work-head { max-width: 850px; margin-bottom: clamp(28px, 4vw, 48px); }
  .home-work-head .section-title { text-wrap: balance; }
  .home-work-head .section-lead { max-width: 58ch; }
  .home-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
  .home-work-viewport { position: relative; }
  .home-work-outgoing { position: absolute; inset: 0; pointer-events: none; }
  .home-work-card { min-width: 0; }
  .home-work-project { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; border-radius: 20px; }
  .home-work-image { overflow: hidden; border-radius: 20px; background: var(--surface-2); aspect-ratio: 3 / 2; }
  .home-work-image picture { display: block; width: 100%; height: 100%; }
  .home-work-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 220ms ease-out; }
  .home-work-image--photo img { object-fit: cover; object-position: center 38%; }
  .home-work-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px 0 4px; }
  .home-work-type { color: var(--text-muted); font-size: 14px; font-weight: 600; line-height: 1.4; }
  .home-work-copy h3 { margin: 8px 0 12px; color: var(--navy-dark); font-size: clamp(23px, 2vw, 30px); line-height: 1.18; letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: balance; }
  .home-work-copy p { margin: 0 0 20px; color: var(--text-muted); font-size: 16px; line-height: 1.6; max-width: 42ch; }
  .home-work .home-work-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; min-height: 44px; padding: 8px 0; color: var(--navy-dark); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--navy-100); text-underline-offset: 6px; transition: text-decoration-color 180ms ease-out; }
  .home-work .home-work-cta:hover { text-decoration-color: currentColor; }
  .home-work-cta span { transition: transform 200ms cubic-bezier(.22, 1, .36, 1); }
  .home-work-cta:hover span { transform: translateX(4px); }
  .home-work-nav { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 24px; }
  .home-work-nav[hidden] { display: none; }
  .home-work-arrow { display: inline-flex; justify-content: center; align-items: center; width: 48px; height: 48px; border: 1px solid var(--navy-100); border-radius: 50%; color: var(--navy-dark); background: var(--bg); cursor: pointer; transition: background 180ms ease-out, transform 180ms ease-out; }
  .home-work-arrow:hover { background: var(--navy-50); border-color: var(--navy); }
  .home-work-arrow:active { background: var(--navy-100); transform: scale(.96); }
  .home-work-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 14px 24px; border: 1px solid var(--navy-dark); border-radius: 12px; color: var(--navy-dark); background: transparent; font-size: 16px; font-weight: 700; text-decoration: none; }
  .home-work-secondary:hover { background: var(--navy-50); }
  .home-work-cta:focus-visible, .home-work-secondary:focus-visible, .home-work-arrow:focus-visible { outline: 3px solid var(--navy); outline-offset: 5px; }
  .home-work-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .home-work-footer { margin-top: clamp(64px, 7vw, 96px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .home-work-project:hover img { transform: scale(1.025); }
  }
  @media (min-width: 701px) and (max-width: 1000px) {
    .home-work-grid { grid-template-columns: 1fr; gap: 32px; }
    .home-work-project { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
    .home-work-copy { padding-top: 0; }
    .home-work-copy p { margin-bottom: 8px; }
  }
  @media (max-width: 700px) {
    .home-work-grid { grid-template-columns: 1fr; gap: 36px; }
    .home-work-copy { padding-top: 18px; }
    .home-work-copy p { margin-bottom: 8px; max-width: none; }
    .home-work-footer { margin-top: 56px; flex-direction: column; align-items: stretch; }
    .home-work-footer > a { justify-content: center; text-align: center; }
  }
  @media (prefers-reduced-motion: reduce) {
    .home-work-image img, .home-work .home-work-cta, .home-work-cta span, .home-work-arrow { transition: none; }
    .home-work-cta:hover span, .home-work-arrow:active { transform: none; }
  }
