  /* ============ RESET & TOKENS ============ */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  /* Grid and flex items default to min-width:auto, which refuses to shrink
     below their min-content width and pushes the whole page wider than a
     narrow viewport. Opt every item out; measures are set explicitly. */
  *, *::before, *::after { min-width: 0; }
  img, svg, video { max-width: 100%; }

  :root {
    --bg: #FFFFFF;
    --bg-2: #F5F8FC;
    --surface: rgba(10, 40, 100, 0.035);
    --surface-2: rgba(10, 40, 100, 0.06);
    --border: rgba(12, 26, 51, 0.10);
    --border-strong: rgba(12, 26, 51, 0.16);
    --text: #0C1A33;
    --text-dim: rgba(12, 26, 51, 0.70);
    --text-muted: rgba(12, 26, 51, 0.63);
    --brand: #0A399E;
    --brand-2: #2E6FD8;
    --accent: linear-gradient(135deg, #0A399E 0%, #2E6FD8 100%);
    --accent-glow: 0 0 60px rgba(10, 57, 158, 0.175);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* ============ AMBIENT BACKGROUND ============ */
  .ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg);
  }
  .ambient::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(10, 57, 158, 0.126) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 22s ease-in-out infinite;
  }
  .ambient::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(10, 57, 158, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 28s ease-in-out infinite reverse;
  }
  .grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
      linear-gradient(rgba(10, 40, 100, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(10, 40, 100, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
  }
  @keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, 30px); }
  }

  /* ============ NAVIGATION ============ */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, padding 0.3s;
  }
  .nav.scrolled {
    border-bottom-color: var(--border);
    padding: 14px 32px;
  }
  .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
  }
  .logo-mark {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: none;
  }
  .nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
  }
  .nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-cta {
    padding: 9px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.15s;
    background: var(--surface);
  }
  .nav-cta:hover {
    border-color: rgba(10, 57, 158, 0.42) !important;
    background: rgba(10, 57, 158, 0.07);
  }

  /* ============ LAYOUT ============ */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
  }
  section {
    padding: 120px 0;
    position: relative;
  }

  /* ============ HERO ============ */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
  }
  .hero-content {
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
    padding: 100px 32px 60px;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    background: var(--surface);
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
  }
  .hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #047857;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.45);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  .hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin-bottom: 28px;
  }
  .hero h1 .gradient {
    background: linear-gradient(135deg, #0C1A33 0%, #0A399E 55%, #2E6FD8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .hero p.lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 44px;
    line-height: 1.55;
  }
  .hero-cta-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
  }
  .btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--accent-glow);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 80px rgba(10, 57, 158, 0.35);
  }
  .btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
  }
  .btn-secondary:hover {
    background: var(--surface-2);
    border-color: var(--text-muted);
  }
  .btn .arrow {
    transition: transform 0.2s;
  }
  .btn:hover .arrow { transform: translateX(3px); }

  /* Hero scroll indicator */
  .scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
  }
  @keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -8px); }
  }

  /* ============ SECTION HEADER ============ */
  .section-header {
    margin-bottom: 64px;
  }
  .section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--brand);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
  }
  .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 700px;
  }
  .section-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
  }

  /* ============ WHAT WE DO ============ */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
  }
  .service-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
  }
  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s;
  }
  .service-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    background: var(--surface-2);
  }
  .service-card:hover::before { opacity: 1; }
  .service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: var(--brand);
  }
  .service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* ============ PRODUCTS ============ */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
  }
  .product-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 240px;
  }
  .product-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
  }
  .product-card.active:hover {
    border-color: rgba(10, 57, 158, 0.35);
    transform: translateY(-4px);
    background: var(--surface-2);
    box-shadow: 0 0 60px rgba(10, 57, 158, 0.105);
  }
  .product-card.coming-soon {
    opacity: 0.6;
  }
  .product-card .product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .product-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
  }
  .product-logo.dim {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    box-shadow: none;
  }
  .product-status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
  }
  .status-live {
    background: rgba(5, 150, 105, 0.10);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.35);
  }
  .status-soon {
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
  }
  .product-card h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.015em;
  }
  .product-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
  }
  .product-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 500;
  }
  .product-card.active:hover .product-link .arrow {
    transform: translateX(4px);
  }

  /* ============ APPROACH (Numbered Steps) ============ */
  .approach-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
  }
  .approach-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
  }
  .approach-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--brand);
    padding-top: 4px;
  }
  .approach-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.015em;
  }
  .approach-content p {
    color: var(--text-dim);
    max-width: 640px;
  }

  /* ============ CONTACT ============ */
  .contact-section {
    text-align: center;
    padding: 100px 0 120px;
  }
  .contact-card {
    max-width: 720px;
    margin: 40px auto 0;
    padding: 48px 40px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
  }
  .contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(10, 57, 158, 0.105), transparent 70%);
    pointer-events: none;
  }
  .contact-emails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 16px;
    margin-top: 32px;
    text-align: left;
  }
  .contact-email-card {
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
  }
  .contact-email-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
  }
  .contact-email-card .label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }
  .contact-email-card a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
  }
  .contact-email-card a:hover {
    background: linear-gradient(135deg, #0A399E, #2E6FD8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  /* ============ FOOTER ============ */
  .footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 36px;
    background: rgba(10, 40, 100, 0.035);
  }
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
  }
  .footer-logo {
    height: 74px;
    width: auto;
    margin-bottom: 14px;
  }
  .footer-brand h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
  }
  .footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 320px;
  }
  .footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    font-weight: 500;
  }
  .footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
  }
  .footer-col a:hover { color: var(--text); }
  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 880px) {
    .nav { padding: 14px 20px; }
    .nav-links { gap: 20px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .container { padding: 0 20px; }
    section { padding: 80px 0; }
    .hero-content { padding: 80px 20px 40px; }
    .approach-item {
      grid-template-columns: 1fr;
      gap: 8px;
    }
    .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .contact-card { padding: 32px 24px; }
  }

  /* ============ ANIMATIONS ============ */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  /* ============================================================
     WORK / CASE STUDY  —  additions on top of the shared system
     ============================================================ */

  .container.narrow { max-width: 820px; }

  /* --- Page hero shared by /work/ and each case study --- */
  .page-hero {
    padding: 190px 0 72px;
  }
  .page-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin-bottom: 20px;
  }
  .page-hero .lead {
    color: var(--text-dim);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.65;
    max-width: 720px;
  }
  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.15s;
  }
  .back-link:hover { color: var(--brand); }

  /* --- Proof band --- */
  .proof-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 56px;
  }
  .proof-item {
    background: var(--bg);
    padding: 28px 24px;
  }
  .proof-num {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 6px;
  }
  .proof-label {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    line-height: 1.45;
  }

  /* --- Work grid --- */
  .work-group { margin-bottom: 72px; }
  .work-group:last-child { margin-bottom: 0; }
  .work-group-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .work-group-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
  }
  .work-group-head span {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
  }
  .work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
  }
  .work-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 250px;
  }
  .work-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s;
  }
  .work-card:hover::before { opacity: 1; }
  .work-card:hover {
    border-color: rgba(10, 57, 158, 0.35);
    transform: translateY(-4px);
    background: var(--surface-2);
    box-shadow: 0 0 60px rgba(10, 57, 158, 0.105);
  }
  .work-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }
  .work-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    flex-shrink: 0;
  }
  .work-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 4px;
  }
  .work-tagline {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--brand);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
  }
  .work-card p {
    color: var(--text-dim);
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
  }
  .work-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .work-domain {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  .work-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: 0.88rem;
    font-weight: 500;
  }
  .work-more .arrow { transition: transform 0.2s; }
  .work-card:hover .work-more .arrow { transform: translateX(4px); }

  /* --- Case study header --- */
  .case-top {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .case-mark {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background: var(--accent);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: var(--accent-glow);
  }
  .case-top .product-status { margin-left: auto; align-self: center; }
  .case-kicker {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--brand);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }
  .case-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
  }
  .case-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 48px;
  }
  .case-meta > div { background: var(--bg); padding: 22px 24px; }
  .case-meta dt {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .case-meta dd { font-size: 0.95rem; font-weight: 500; line-height: 1.5; }

  /* --- Case study body --- */
  .case-section { padding: 88px 0; }
  .case-section.band {
    background: rgba(10, 40, 100, 0.035);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .case-h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 700px;
  }
  .case-p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 720px;
    margin-bottom: 18px;
  }
  .case-p:last-child { margin-bottom: 0; }

  /* Surfaces list */
  .surface-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
    margin-top: 36px;
    max-width: 900px;
  }
  .surface-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 36px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
  }
  .surface-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--brand);
    letter-spacing: 0.02em;
  }
  .surface-desc { color: var(--text-dim); font-size: 0.98rem; line-height: 1.65; }

  /* Hard-part cards */
  .hard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  .hard-card {
    padding: 30px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
  }
  .hard-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--brand);
    margin-bottom: 14px;
  }
  .hard-card h4 {
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    line-height: 1.35;
  }
  .hard-card p { color: var(--text-dim); font-size: 0.94rem; line-height: 1.65; }

  /* Stack chips */
  .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    max-width: 900px;
  }
  .chip {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-dim);
  }

  /* Prev / next */
  .case-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .case-nav a {
    padding: 26px 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    transition: all 0.2s;
  }
  .case-nav a:hover {
    border-color: rgba(10, 57, 158, 0.35);
    background: var(--surface-2);
  }
  .case-nav .dir {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
  }
  .case-nav .name { font-size: 1.1rem; font-weight: 600; }
  .case-nav .next-item { text-align: right; }

  @media (max-width: 880px) {
    .case-meta, .proof-band { grid-template-columns: repeat(2, 1fr); }
    .page-hero { padding: 150px 0 56px; }
    .case-section { padding: 64px 0; }
    .surface-item { grid-template-columns: 1fr; gap: 8px; }
    .case-nav { grid-template-columns: 1fr; }
    .case-nav .next-item { text-align: left; }
  }

  @media (max-width: 460px) {
    .case-meta, .proof-band { grid-template-columns: 1fr; }
  }
