  :root {
    --ink: #16181F;
    --text: #1D2D3E;
    --muted: #5A6274;
    --blue: #1D2FE0;
    --blue-bright: #0057F9;
    --indigo: #537CC2;
    --periwinkle: #C8DBFF;
    --pattens: #DCE9FF;
    --zircon: #F7FAFF;
    --zumthor: #EDF4FF;
    --border-soft: #E3E8F7;
    --tag-border: #E0E0E0;
    --hover-accent: #AD3BFF;
    --surface: #FFFFFF;
    --nav-tint: 247, 250, 255;
    --card-shadow: rgba(29, 47, 224, 0.12);
    --grid-minor: rgba(200, 219, 255, 0.45);
    --grid-major: rgba(200, 219, 255, 1);
    --font-hn: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-inter: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-arimo: "Arimo", Arial, sans-serif;
  }

  [data-theme="dark"] {
    --ink: #F9F9F9;
    --text: #E8E8E8;
    --muted: #949494;
    --blue: #63E2FF;
    --blue-bright: #9BEDFF;
    --indigo: #63E2FF;
    --periwinkle: #3E3E3E;
    --pattens: #303030;
    --zircon: #161616;
    --zumthor: #303030;
    --border-soft: #3E3E3E;
    --tag-border: #3E3E3E;
    --surface: #292929;
    --nav-tint: 22, 22, 22;
    --card-shadow: rgba(0, 0, 0, 0.5);
    --grid-minor: rgba(200, 219, 255, 0.10);
    --grid-major: rgba(200, 219, 255, 0.28);
    --hover-accent: #AC85FF;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--zircon);
    color: var(--text);
    font-family: var(--font-hn);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .pill, .tag, .btn-pill, .card-body, .pathway, .pathway-circle, .zigzag-row, .footer, .theme-toggle, .theme-toggle .knob {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  }
  img { display: block; }
  a { text-decoration: none; color: inherit; }

  @media (pointer: fine) {
    html {
      cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3 3l12.5 4.5c2.5 .9 4.1 2.5 5 5l2.5 6.5-4 4-6.5-2.5c-2.5-.9-4.1-2.5-5-5z' fill='white' stroke='%231D2D3E' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M3 3l7.8 7.8' stroke='%231D2D3E' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='13' r='2.6' fill='white' stroke='%231D2D3E' stroke-width='1.6'/%3E%3C/svg%3E") 3 3, auto;
    }
    a, button {
      cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3 3l12.5 4.5c2.5 .9 4.1 2.5 5 5l2.5 6.5-4 4-6.5-2.5c-2.5-.9-4.1-2.5-5-5z' fill='white' stroke='%231D2D3E' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M3 3l7.8 7.8' stroke='%231D2D3E' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='13' r='2.6' fill='white' stroke='%231D2D3E' stroke-width='1.6'/%3E%3C/svg%3E") 3 3, pointer;
    }
  }

  .blueprint {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background:
      repeating-linear-gradient(to right, var(--grid-major) 0 1px, transparent 1px 80px),
      repeating-linear-gradient(to bottom, var(--grid-major) 0 1px, transparent 1px 80px),
      repeating-linear-gradient(to right, var(--grid-minor) 0 1px, transparent 1px 16px),
      repeating-linear-gradient(to bottom, var(--grid-minor) 0 1px, transparent 1px 16px);
    -webkit-mask-image: radial-gradient(200px at var(--mx, -9999px) var(--my, -9999px), #000 30%, transparent 100%);
    mask-image: radial-gradient(200px at var(--mx, -9999px) var(--my, -9999px), #000 30%, transparent 100%);
  }
  .hero, main, .footer-wrap { position: relative; z-index: 1; }

  .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease, border-color 0.35s ease,
                box-shadow 0.35s ease, color 0.3s ease;
  }
  .cs-figure.reveal, .card.reveal, .cs-pair > .reveal { transform: translateY(36px) scale(0.985); }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
  }

  /* ---------- Navigation ---------- */
  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
  }
  .nav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(100% + 44px);
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom,
      rgba(var(--nav-tint), 0.95) 0%,
      rgba(var(--nav-tint), 0.55) 55%,
      rgba(var(--nav-tint), 0) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
  }
  .nav-logo img {
    width: 62px;
    height: 62px;
    animation: record-spin 6s linear infinite;
  }
  @keyframes record-spin {
    to { transform: rotate(360deg); }
  }
  .nav-right { display: flex; align-items: center; gap: 24px; }
  .nav-links {
    display: flex;
    gap: 16px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.72px;
    color: var(--text);
  }
  .nav-links a { position: relative; }
  .nav-links a:hover { color: var(--blue); }
  .theme-toggle {
    position: relative;
    width: 58px;
    height: 30px;
    background: var(--pattens);
    border: none;
    border-radius: 999px;
    flex-shrink: 0;
    cursor: pointer;
  }
  .theme-toggle .knob {
    position: absolute;
    left: 3px;
    top: 2px;
    width: 26px;
    height: 26px;
    background: var(--surface);
    border: 1px solid var(--periwinkle);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  [data-theme="dark"] .theme-toggle .knob { transform: translateX(26px); }
  .theme-toggle .icons {
    position: absolute;
    left: 8px;
    top: 7px;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .theme-toggle .icons img { width: 16px; height: 16px; }
  .theme-toggle .icons img:last-child { width: 14px; height: 14px; }

  /* ---------- Hero ---------- */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 24px 120px;
  }
  .hero-inner { max-width: 940px; }
  .hero h1 {
    font-family: var(--font-hn);
    font-weight: 700;
    font-size: clamp(30px, calc((100vw - 48px) / 15.6), 58px);
    line-height: 1.12;
    letter-spacing: -1px;
    color: var(--ink);
  }
  .hero-fancy {
    position: relative;
    display: inline-block;
    color: var(--blue);
    padding-bottom: 4px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    cursor: default;
  }
  .hero-fancy::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 7px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='81' height='6.5' viewBox='0 0 80.9285 6.5'%3E%3Cpath d='M0.464238 3.25C7.1309 0.583333 13.7976 0.583333 20.4642 3.25C27.1309 5.91667 33.7976 5.91667 40.4642 3.25C47.1309 0.583333 53.7976 0.583333 60.4642 3.25C67.1309 5.91667 73.7976 5.91667 80.4642 3.25' stroke='black' stroke-width='2.5' fill='none'/%3E%3C/svg%3E") repeat-x left center / 81px 6.5px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='81' height='6.5' viewBox='0 0 80.9285 6.5'%3E%3Cpath d='M0.464238 3.25C7.1309 0.583333 13.7976 0.583333 20.4642 3.25C27.1309 5.91667 33.7976 5.91667 40.4642 3.25C47.1309 0.583333 53.7976 0.583333 60.4642 3.25C67.1309 5.91667 73.7976 5.91667 80.4642 3.25' stroke='black' stroke-width='2.5' fill='none'/%3E%3C/svg%3E") repeat-x left center / 81px 6.5px;
    transition: opacity 0.25s ease;
  }
  .hero-fancy::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 2px;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .hero-fancy:hover {
    transform: scale(1.03);
    color: var(--hover-accent);
  }
  .hero-fancy:hover::after { opacity: 0; }
  .hero-fancy:hover::before { opacity: 1; }
  .hero-sub {
    max-width: 640px;
    margin-top: 26px;
    font-family: var(--font-hn);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--muted);
  }
  .hero-sub .strong { color: var(--ink); }
  .hero-sub .strong2 { color: var(--text); }
  .hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
  }
  .pill {
    background: var(--surface);
    border: 1px solid var(--periwinkle);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13.5px;
    color: var(--muted);
    white-space: nowrap;
  }
  .pill b { color: var(--blue); font-weight: 700; }

  /* ---------- Sections ---------- */
  .section { max-width: 958px; margin: 0 auto; padding: 0 24px; }
  .section-title {
    font-family: var(--font-hn);
    font-weight: 700;
    font-size: 32px;
    line-height: 48px;
    color: var(--ink);
    padding-bottom: 24px;
  }
  .section-title .accent { color: var(--blue); }

  /* ---------- Featured Projects ---------- */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .card {
    display: flex;
    flex-direction: column;
    background: var(--zircon);
    border: 1px solid var(--periwinkle);
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
  }
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--card-shadow);
    border-color: var(--indigo);
  }
  .card-media {
    position: relative;
    height: 301px;
    background: var(--zumthor);
    overflow: hidden;
  }
  .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .card:hover .card-media img { transform: scale(1.05); }
  .card-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .tag {
    display: flex;
    align-items: center;
    height: 26px;
    padding: 0 8px;
    background: var(--surface);
    border: 1px solid var(--tag-border);
    border-radius: 60px;
    font-size: 12px;
    line-height: 18px;
    color: var(--text);
    white-space: nowrap;
  }
  .card-body {
    background: var(--surface);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
  }
  .card-body h3 {
    font-family: var(--font-hn);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.52;
    letter-spacing: -1.08px;
    color: var(--text);
  }
  .card-body p {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.72px;
    color: var(--text);
  }

  /* ---------- About ---------- */
  .about { padding-top: 140px; }
  .about-col { max-width: 720px; margin: 0 auto; }
  .about-text p {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.72px;
    color: var(--text);
    margin-bottom: 24px;
  }
  .about-actions { display: flex; gap: 12px; }
  .btn-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--periwinkle);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13.5px;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .btn-pill:hover {
    border-color: var(--indigo);
    box-shadow: 0 2px 8px rgba(29, 47, 224, 0.10);
  }
  .btn-pill img { width: 16px; height: 16px; }
  .pathway-circle svg { width: 24px; height: 24px; color: var(--blue); }
  .zigzag-head svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue); }
  .icon-email { color: #0057F9; flex-shrink: 0; }
  [data-theme="dark"] .icon-email { color: #63E2FF; }
  .eyebrow {
    font-family: var(--font-hn);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--blue);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
  }
  .pathway {
    position: relative;
    display: flex;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--periwinkle);
    border-radius: 16px;
    padding: 32px 24px;
  }
  .pathway::before {
    content: "";
    position: absolute;
    left: 104px;
    right: 104px;
    top: 64px;
    border-top: 2px dotted var(--periwinkle);
  }
  .pathway-step {
    position: relative;
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }
  .pathway-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--surface);
    border: 1px solid var(--blue);
    border-radius: 50%;
  }
  .pathway-circle img { width: 24px; height: 24px; }
  .pathway-step h4 {
    font-family: var(--font-hn);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--text);
  }
  .pathway-step small {
    display: block;
    font-size: 12px;
    line-height: 18px;
    color: var(--text);
    max-width: 160px;
    margin: 6px auto 0;
  }
  .about-pathway { margin-top: 96px; }
  .about-outside { margin-top: 112px; }
  .zigzag-row {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid var(--periwinkle);
    border-radius: 16px;
    padding: 20px;
  }
  .zigzag-row:nth-of-type(even) { flex-direction: row-reverse; }
  .zigzag-row:last-of-type { margin-bottom: 0; }
  .zigzag-media {
    width: 300px;
    height: 220px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
  }
  .zigzag-media img { width: 100%; height: 100%; object-fit: cover; }
  .zigzag-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .zigzag-head { display: flex; align-items: center; gap: 10px; }
  .zigzag-head img { width: 20px; height: 20px; }
  .zigzag-head h4 {
    font-family: var(--font-hn);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.52;
    letter-spacing: -1.08px;
    color: var(--text);
  }
  .zigzag-body p {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.72px;
    color: var(--text);
  }
  .zigzag-link {
    font-family: var(--font-hn);
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
    color: var(--blue);
  }
  .zigzag-link:hover { color: var(--blue-bright); }

  /* ---------- Footer ---------- */
  .footer-wrap { max-width: 1101px; margin: 0 auto; padding: 80px 24px 32px; }
  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 23px 31px;
  }
  .footer span { font-size: 15px; color: var(--muted); }
  .footer a {
    font-family: var(--font-hn);
    font-weight: 700;
    font-size: 15px;
    color: var(--blue);
  }
  .footer a:hover { color: var(--blue-bright); }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .nav { padding: 16px 24px; }
    .nav-logo img { width: 52px; height: 52px; }
    .hero { padding-top: 48px; padding-bottom: 80px; }
  }
  @media (max-width: 760px) {
    .projects-grid { grid-template-columns: 1fr; }
    .card-media { height: 240px; }
    .theme-toggle { display: none; }
    .footer { flex-direction: column; align-items: flex-start; gap: 8px; }
    .zigzag-row, .zigzag-row:nth-of-type(even) { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; }
    .zigzag-media { width: 100%; height: 200px; }
    .pathway { padding: 24px 16px; }
    .pathway::before { display: none; }
  }
  @media (max-width: 600px) {
    .hero-fancy {
      display: inline;
      padding-bottom: 8px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='81' height='6.5' viewBox='0 0 80.9285 6.5'%3E%3Cpath d='M0.464238 3.25C7.1309 0.583333 13.7976 0.583333 20.4642 3.25C27.1309 5.91667 33.7976 5.91667 40.4642 3.25C47.1309 0.583333 53.7976 0.583333 60.4642 3.25C67.1309 5.91667 73.7976 5.91667 80.4642 3.25' stroke='%231D2FE0' stroke-width='2.5' fill='none'/%3E%3C/svg%3E");
      background-repeat: repeat-x;
      background-position: left bottom;
      background-size: 81px 6.5px;
      -webkit-box-decoration-break: clone;
      box-decoration-break: clone;
    }
    [data-theme="dark"] .hero-fancy {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='81' height='6.5' viewBox='0 0 80.9285 6.5'%3E%3Cpath d='M0.464238 3.25C7.1309 0.583333 13.7976 0.583333 20.4642 3.25C27.1309 5.91667 33.7976 5.91667 40.4642 3.25C47.1309 0.583333 53.7976 0.583333 60.4642 3.25C67.1309 5.91667 73.7976 5.91667 80.4642 3.25' stroke='%2363E2FF' stroke-width='2.5' fill='none'/%3E%3C/svg%3E");
    }
    .hero-fancy::after, .hero-fancy::before { display: none; }
    .hero-fancy:hover {
      transform: none;
      background-image: linear-gradient(var(--hover-accent), var(--hover-accent));
      background-size: 81px 3px;
    }
  }
  @media (max-width: 560px) {
    .pathway { flex-direction: column; align-items: flex-start; gap: 24px; }
    .pathway::before { display: none; }
    .pathway-step { flex-direction: row; text-align: left; align-items: flex-start; }
    .pathway-circle { flex-shrink: 0; }
    .pathway-step small { margin: 6px 0 0; max-width: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .nav-logo img { animation: none; }
    .hero-fancy::after { animation: none; }
    .card, .card-media img, .hero-fancy { transition: none; }
  }

  /* ---------- Site footer ---------- */
  .site-footer { max-width: 1101px; margin: 0 auto; padding: 0 24px 40px; position: relative; z-index: 1; }
  .site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 13.5px;
    color: var(--muted);
  }
  .site-footer-links { display: flex; gap: 20px; }
  .site-footer-links a { color: var(--muted); }
  .site-footer-links a:hover { color: var(--blue); }

  /* ---------- Case study ---------- */
  .cs-hero { max-width: 1168px; margin: 0 auto; padding: 40px 24px 0; position: relative; z-index: 1; }
  .cs-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
  }
  .cs-back:hover { color: var(--blue); }
  .cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .cs-title {
    font-family: var(--font-hn);
    font-weight: 700;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.2;
    letter-spacing: -1.4px;
    color: var(--ink);
    max-width: 880px;
  }
  .cs-summary {
    max-width: 720px;
    margin-top: 24px;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 17px;
    line-height: 27px;
    letter-spacing: -0.3px;
    color: var(--text);
  }
  .cs-summary p + p { margin-top: 14px; }
  .cs-summary a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
  .cs-summary a:hover { color: var(--blue-bright); }
  .cs-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border-soft);
  }
  .cs-label {
    font-family: var(--font-hn);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
  }
  .cs-meta-value { font-family: var(--font-inter); font-weight: 500; font-size: 15px; line-height: 22px; color: var(--text); }
  .cs-hero-media { margin: 0 0 40px; border-radius: 24px; overflow: hidden; border: 1px solid var(--periwinkle); }
  .cs-hero-media img { width: 100%; height: auto; display: block; }

  .cs-glance {
    max-width: 1168px;
    margin: 32px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
  }
  .cs-card {
    background: var(--surface);
    border: 1px solid var(--periwinkle);
    border-radius: 16px;
    padding: 28px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }
  .cs-card p { font-family: var(--font-inter); font-weight: 500; font-size: 16px; line-height: 24px; letter-spacing: -0.3px; color: var(--text); }
  .cs-card p.soft { color: var(--muted); }

  .cs-section { max-width: 1168px; margin: 0 auto; padding: 96px 24px 0; position: relative; z-index: 1; }
  .cs-narrow { max-width: 720px; margin: 0 auto; }
  .cs-eyebrow { font-family: var(--font-hn); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; color: var(--blue); margin-bottom: 14px; }
  .cs-h2 { font-family: var(--font-hn); font-weight: 700; font-size: 32px; line-height: 1.25; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 24px; }
  .cs-h3 { font-family: var(--font-hn); font-weight: 500; font-size: 24px; line-height: 1.4; letter-spacing: -1.08px; color: var(--ink); margin: 48px 0 16px; }
  .cs-prose p { font-family: var(--font-inter); font-weight: 500; font-size: 16px; line-height: 26px; letter-spacing: -0.3px; color: var(--text); margin-bottom: 18px; }
  .cs-prose p:last-child { margin-bottom: 0; }
  .hl { color: var(--blue); }
  .cs-quote {
    margin: 32px auto 0;
    max-width: 720px;
    padding-left: 20px;
    border-left: 3px solid var(--blue);
    font-family: var(--font-hn);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.6px;
    color: var(--ink);
  }

  .cs-figure { max-width: 1168px; margin: 40px auto 0; padding: 0 24px; }
  .cs-figure.narrow { max-width: 816px; }
  .cs-figure img { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--periwinkle); }
  .cs-figure.plain img { border: none; border-radius: 0; }
  .cs-figure figcaption { margin-top: 12px; text-align: center; font-family: var(--font-hn); font-size: 13px; line-height: 18px; color: var(--muted); }

  .cs-grid2 { max-width: 1168px; margin: 40px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .cs-grid3 { max-width: 1168px; margin: 40px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .cs-card-emoji { font-size: 40px; line-height: 1; margin-bottom: 16px; }
  .cs-card h4 { font-family: var(--font-hn); font-weight: 500; font-size: 22px; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 14px; }
  .cs-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .cs-list li { display: flex; gap: 10px; font-family: var(--font-inter); font-weight: 500; font-size: 16px; line-height: 24px; color: var(--text); }
  .cs-list li span:first-child { flex-shrink: 0; }
  .cs-goal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
  .cs-goal-head h4 { margin: 0; font-size: 21px; }
  .cs-goal-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .cs-goal-icon img { width: 24px; height: 24px; }

  .cs-stats { max-width: 720px; margin: 24px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .cs-stat-num { font-family: var(--font-hn); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -2px; color: var(--blue); }
  .cs-stat-label { font-family: var(--font-hn); font-weight: 500; font-size: 20px; letter-spacing: -0.5px; color: var(--ink); margin: 10px 0 8px; }

  .cs-screens { max-width: 1168px; margin: 40px auto 0; padding: 0 24px; display: flex; flex-direction: column; gap: 40px; }
  .cs-screen img { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--periwinkle); }
  .cs-screen .cs-label { margin-bottom: 12px; }

  .cs-next { max-width: 1168px; margin: 96px auto 0; padding: 0 24px; position: relative; z-index: 1; }
  .cs-next a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: var(--surface);
    border: 1px solid var(--periwinkle);
    border-radius: 20px;
    padding: 28px 32px;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.3s ease;
  }
  .cs-next a:hover { transform: translateY(-4px); border-color: var(--indigo); box-shadow: 0 16px 40px var(--card-shadow); }
  .cs-next-title { font-family: var(--font-hn); font-weight: 500; font-size: 24px; letter-spacing: -1px; color: var(--ink); }
  .cs-next-arrow { font-family: var(--font-hn); font-size: 28px; color: var(--blue); }

  @media (max-width: 900px) {
    .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-glance, .cs-grid2, .cs-grid3, .cs-stats { grid-template-columns: 1fr; }
    .cs-section { padding-top: 72px; }
  }
  @media (max-width: 560px) {
    .cs-meta { grid-template-columns: 1fr; }
    .cs-h2 { font-size: 26px; }
    .cs-card { padding: 22px; }
  }
  .cs-figure.crop-top img { aspect-ratio: 2242 / 640; object-fit: cover; object-position: center bottom; }
  .cs-pair img { width: 100%; height: auto; display: block; border-radius: 16px; }
  .cs-caption { max-width: 1168px; margin: 12px auto 0; padding: 0 24px; text-align: center; font-family: var(--font-hn); font-size: 13px; line-height: 18px; color: var(--muted); }


  /* ---------- Time Entry additions ---------- */
  .hl-neg { color: #F30000; font-weight: 600; }
  .cs-h4 { font-family: var(--font-hn); font-weight: 700; font-size: 18px; letter-spacing: -0.4px; color: var(--ink); margin: 26px 0 8px; }
  .cs-bullets { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-inter); font-weight: 500; font-size: 16px; line-height: 26px; letter-spacing: -0.3px; color: var(--text); margin-bottom: 8px; }
  .cs-figure.panel img { border: none; border-radius: 20px; }
  .cs-meta.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  @media (max-width: 900px) { .cs-meta.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .cs-meta.three { grid-template-columns: 1fr; } }

  /* ---------- solution panels: full-bleed + lightbox ---------- */
  .cs-figure.panel {
    position: relative;
    width: min(100vw, 1680px);
    max-width: none;
    left: 50%;
    margin-left: calc(min(100vw, 1680px) / -2);
    margin-top: 40px;
    padding: 0 24px;
    box-sizing: border-box;
  }
  .cs-figure.panel + .cs-figure.panel { margin-top: 28px; }
  .cs-figure.panel img { cursor: zoom-in; }
  .lightbox {
    position: fixed; inset: 0; z-index: 100;
    display: none; align-items: flex-start; justify-content: center;
    padding: 32px 24px; overflow: auto;
    background: rgba(22, 22, 22, 0.94);
  }
  .lightbox.open { display: flex; }
  .lightbox img { width: min(2200px, 96vw); max-width: none; height: auto; border-radius: 12px; cursor: zoom-out; }
  @media (max-width: 760px) { .cs-figure.panel { padding: 0 12px; } }

  /* ---------- coming soon pill ---------- */
  .soon-host { position: relative; }
  .soon-pill {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(0.88);
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px;
    background: var(--surface);
    color: var(--blue);
    border: 1px solid var(--periwinkle);
    border-radius: 999px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.3px;
    white-space: nowrap;
    box-shadow: 0 16px 40px var(--card-shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 3;
  }
  .soon-open .soon-pill { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .soon-open .card-media img { filter: blur(2px) brightness(0.96); }
  .card-media img { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease; }
  .cs-next a.soon-host .soon-pill { font-size: 17px; padding: 11px 18px; }
  @media (max-width: 560px) { .soon-pill { font-size: 16px; padding: 11px 18px; } }

  .cs-hero-inner { max-width: 720px; margin: 0 auto; }
  .cs-hero-inner .cs-title { max-width: none; }
  .cs-hero-inner .cs-summary { max-width: none; }

  /* ---------- password gate ---------- */
  body.locked main, body.locked .site-footer { display: none; }
  body.locked { overflow: hidden; }
  .gate { display: none; position: fixed; inset: 0; z-index: 60; align-items: center; justify-content: center; padding: 24px; background: var(--zircon); }
  body.locked .gate { display: flex; }
  .gate-card {
    width: 100%; max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--periwinkle);
    border-radius: 20px;
    padding: 32px 32px 28px;
    box-shadow: 0 16px 40px var(--card-shadow);
    position: relative; z-index: 1;
  }
  .gate-lock { width: 44px; height: 44px; border-radius: 12px; background: var(--zumthor); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
  .gate-card h2 { font-family: var(--font-hn); font-weight: 700; font-size: 22px; letter-spacing: -0.6px; color: var(--ink); margin-bottom: 8px; }
  .gate-card p { font-family: var(--font-inter); font-weight: 500; font-size: 14.5px; line-height: 22px; color: var(--muted); margin-bottom: 18px; }
  .gate-card p a { color: var(--blue); }
  .gate-row { display: flex; gap: 8px; }
  .gate-input {
    flex: 1; min-width: 0; height: 44px; padding: 0 14px;
    font-family: var(--font-inter); font-size: 15px; color: var(--ink);
    background: var(--surface); border: 1px solid var(--periwinkle); border-radius: 10px; outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .gate-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 47, 224, 0.15); }
  .gate-btn {
    height: 44px; padding: 0 18px; border: none; border-radius: 10px;
    background: var(--blue); color: #fff; font-family: var(--font-inter); font-weight: 600; font-size: 15px;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }
  .gate-btn:hover { background: var(--blue-bright); }
  .gate-btn:active { transform: scale(0.98); }
  .gate-error { min-height: 20px; margin: 10px 0 0 !important; font-size: 13.5px !important; color: #D20A0A !important; }
  .gate-shake { animation: gate-shake 0.4s ease; }
  @keyframes gate-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
  .gate-back { display: inline-block; margin-top: 6px; font-family: var(--font-inter); font-weight: 600; font-size: 14px; color: var(--muted); }
  .gate-back:hover { color: var(--blue); }
  [data-theme="dark"] .gate-btn { color: #161616; }
  [data-theme="dark"] .gate-error { color: #FF6B6B !important; }
