*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      color-scheme: light;
      --ink: #1a1a18;
      --ink-muted: #4a4a45;
      --ink-faint: #8a8a82;
      --border: #dddcd6;
      --paper: #f7f6f2;
      --accent: #5a7fb8;
      --accent-deep: #3f5f96;
      --accent-light: rgba(90,127,184,0.1);
      --sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    html { scroll-behavior: smooth; }

    @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

    body {
      background: var(--paper);
      color: var(--ink);
      font-family: var(--sans);
      font-weight: 400;
      line-height: 1.6;
      overflow-x: hidden;
      animation: pageIn 0.5s ease;
    }

    /* Paper grain texture */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9997;
      opacity: 0.06;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
      background-repeat: repeat;
      background-size: 150px 150px;
    }

    /* Scroll indicator */
    .scroll-progress {
      position: fixed;
      top: 0; left: 0;
      height: 2px;
      background: linear-gradient(90deg, #a8d5a2, #e8b4b8, #b4c8e8, #c8b4e8, #e8d4b4, #a8d5a2);
      background-size: 500% 100%;
      z-index: 9999;
      width: 0%;
      transition: width 0.1s linear;
      animation: progressColor 12s linear infinite;
    }
    @keyframes progressColor { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

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

    @media (prefers-color-scheme: dark) {
      :root { color-scheme: light; }
      body { background: #f7f6f2 !important; color: #1a1a18 !important; }
    }

    /* ── NAV ── */
    .top-nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.25rem 3rem;
      background: var(--paper);
      opacity: 0;
      animation: fadeDown 0.6s 0.1s ease forwards;
      transition: background 0.9s ease;
    }

    .nav-name {
      font-size: calc(0.95rem + 8px);
      font-family: 'Pixelbasel', monospace;
      font-weight: normal;
      color: var(--ink);
      letter-spacing: normal;
      text-decoration: none;
      transition: color 0.9s ease;
    }
    .nav-name:hover {
      -webkit-text-fill-color: transparent;
      background-image: linear-gradient(90deg,
        #4a8a52, #c45a6a, #4a7ab8, #7a4ab8, #b87a20,
        #4a7ab8, #c45a6a, #4a8a52, #7a4ab8, #b87a20, #4a8a52
      );
      background-size: 400% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      animation: aura-sweep 8s linear infinite;
    }
    .nav-name, .section-label, .hero-scrollhint { }

    .section-label {
      font-size: calc(1.21rem + 6px);
      font-family: 'Pixelbasel', monospace;
      font-weight: normal;
      letter-spacing: normal;
      color: var(--accent);
      display: block;
      margin-top: 2rem;
      margin-bottom: 2rem;
      text-align: left;
    }

    #work   .section-label { color: var(--ink); }
    #info   .section-label { color: var(--ink); }

    /* Headers and About content share the same centered column as the work grid */
    #work .section-label,
    #info .section-label,
    .info-layout {
      max-width: 1250px;
      margin-left: auto;
      margin-right: auto;
    }

    @keyframes aura-sweep { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

    /* ── LAYOUT SHELL ── */
    .cs-shell {
      max-width: 1250px;
      margin: 0 auto;
      padding: 9rem 4rem 4rem;
      display: grid;
      grid-template-columns: 180px 1fr;
      gap: 4rem;
      align-items: start;
    }

    /* ── SIDE TOC ── */
    .cs-toc {
      position: sticky;
      top: 7rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      opacity: 0;
      animation: fadeUp 0.7s 0.4s ease forwards;
    }
    .cs-toc-title {
      font-size: 0.98rem !important;
      font-weight: 700 !important;
      letter-spacing: -0.01em;
      margin-bottom: 0.5rem;
      color: #1a1a18 !important;
      text-decoration: none !important;
      display: block;
    }
    .cs-toc a.cs-toc-title:hover,
    .cs-toc a.cs-toc-title:focus,
    .cs-toc a.cs-toc-title.active {
      color: #1a1a18 !important;
      border-left-color: transparent !important;
    }
    .cs-toc a {
      font-size: 0.82rem;
      color: var(--ink-faint);
      transition: color 0.075s ease, border-left-color 0.075s ease;
      border-left: 2px solid transparent;
      padding-left: 0.5rem;
      margin-left: -0.5rem;
    }
    .cs-toc a:hover { color: var(--ink); }
    .cs-toc a.active {
      color: var(--accent-deep);
      border-left-color: var(--accent);
      font-weight: 500;
    }

    /* ── MAIN COLUMN ── */
    .cs-main { min-width: 0; }

    .cs-back {
      display: inline-block;
      font-size: 0.9rem;
      color: var(--ink-faint);
      text-decoration: none;
      margin-bottom: 1.5rem;
      transition: color 0.2s;
      border-left: none;
      padding-left: 0;
      margin-left: 0;
      font-weight: 400;
    }
    .cs-back:hover { color: var(--ink); }
    .cs-pills {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1rem;
      opacity: 0;
      animation: fadeUp 0.8s 0.15s ease forwards;
    }
    .cs-pill {
      font-size: 0.72rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-weight: 600;
      color: var(--accent-deep);
      background: var(--accent-light);
      padding: 0.25rem 0.75rem;
      border-radius: 100px;
    }

    /* outcomes strip — paired with meta as one info band */
    .cs-outcomes {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      margin-top: 2.5rem;
      padding-top: 2.5rem;
      border-top: 1px solid var(--border);
      opacity: 0;
      animation: fadeUp 0.8s 0.6s ease forwards;
    }
    .cs-outcome-num {
      font-size: 1.7rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--accent-deep);
      line-height: 1.1;
    }
    .cs-outcome-label {
      font-size: 0.85rem;
      color: var(--ink-muted);
      line-height: 1.5;
      margin-top: 0.5rem;
    }

    /* solution-at-a-glance cards */
    .cs-goalcards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
      margin-top: 0.5rem;
    }
    @media (max-width: 600px) { .cs-goalcards { grid-template-columns: 1fr; } }

    /* overview info cards (Client / Task / Impact) */
    .cs-ovcards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.25rem;
      margin: 1.5rem 0 2.5rem;
    }
    .cs-ovcard {
      background: rgba(120,90,40,0.045);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 1.25rem 1.5rem;
    }
    .cs-ovcard.full { grid-column: 1 / -1; }
    .cs-ovcard h3 {
      font-size: calc(0.95rem + 6px);
      font-family: 'Pixelbasel', monospace;
      font-weight: normal;
      letter-spacing: normal;
      color: var(--ink);
      margin-bottom: 0.4rem;
    }
    .cs-ovcard p {
      font-size: 0.9rem;
      color: var(--ink-muted);
      line-height: 1.7;
    }
    .cs-ovcard p strong { color: var(--ink); font-weight: 600; }
    #overview .cs-ovcards { margin-top: 2.5rem; }
    .cs-sub + .cs-ovcards { margin-top: 0.9rem; }
    @media (max-width: 600px) {
      .cs-ovcards { grid-template-columns: 1fr; }
    }

    .cs-solcards {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      margin-top: 2rem;
    }
    .cs-solcard {
      background: var(--accent-light);
      border-radius: 14px;
      padding: 1.5rem;
    }
    .cs-solcard h3 {
      font-size: calc(1rem + 6px);
      font-family: 'Pixelbasel', monospace;
      font-weight: normal;
      color: var(--ink);
      margin-bottom: 0.5rem;
    }
    .cs-solcard p {
      font-size: 0.88rem;
      color: var(--ink-muted);
      line-height: 1.6;
    }
    .cs-solcard .tag {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-weight: 600;
      color: var(--accent-deep);
      display: block;
      margin-bottom: 0.75rem;
    }
    @media (max-width: 600px) {
      .cs-outcomes, .cs-solcards { grid-template-columns: 1fr; gap: 1.25rem; }
    }

    .cs-hero-title {
      font-size: clamp(1.8rem, 3.6vw, 2.7rem);
      font-weight: 600;
      letter-spacing: -0.03em;
      line-height: 1.18;
      max-width: none;
      opacity: 0;
      animation: fadeUp 0.9s 0.1s ease forwards;
    }
    .cs-hero-title em {
      font-style: normal;
      color: var(--accent-deep);
    }
    .cs-hero-sub {
      margin-top: 1rem;
      font-size: 1.12rem;
      color: var(--ink-muted);
      line-height: 1.65;
      max-width: none;
      opacity: 0;
      animation: fadeUp 0.8s 0.3s ease forwards;
    }

    /* meta row */
    .cs-meta {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      margin-top: 3rem;
      opacity: 0;
      animation: fadeUp 0.8s 0.45s ease forwards;
    }
    .cs-meta-label {
      font-size: calc(0.8rem + 6px);
      font-family: 'Pixelbasel', monospace;
      letter-spacing: normal;
      text-transform: none;
      color: #1a1a18;
      margin-bottom: 0.5rem;
      font-weight: normal;
    }
    .cs-meta ul { list-style: none; }
    .cs-meta li, .cs-meta p:not(.cs-meta-label) {
      font-size: 0.88rem;
      color: var(--ink-faint);
      line-height: 1.8;
    }

    /* ── SECTIONS ── */
    .cs-section { margin-top: 8rem; scroll-margin-top: 6rem; }
    .cs-section:first-of-type { margin-top: 7rem; }

    .cs-eyebrow {
      font-size: calc(0.78rem + 6px);
      font-family: 'Pixelbasel', monospace;
      letter-spacing: normal;
      text-transform: none;
      font-weight: normal;
      color: var(--accent-deep);
      margin-bottom: 1.75rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .cs-eyebrow::after {
      content: '';
      height: 1px;
      flex: 0 0 36px;
      background: var(--accent);
      opacity: 0.5;
    }

    .cs-imglabel {
      font-size: 0.78rem;
      font-style: italic;
      color: var(--ink-faint);
      margin-top: 0.5rem;
      margin-bottom: 0;
    }
    .cs-imglabel strong {
      font-style: normal;
      font-weight: 600;
      color: var(--ink-muted);
    }

    .cs-headline {
      font-size: clamp(1.4rem, 2.6vw, 2rem);
      font-weight: 600;
      letter-spacing: -0.025em;
      line-height: 1.25;
      max-width: none;
      margin-bottom: 0.5rem;
    }

    .cs-body {
      font-size: 0.95rem;
      color: var(--ink-muted);
      line-height: 1.85;
      max-width: none;
      margin-bottom: 1rem;
    }
    .cs-body strong { color: var(--ink); font-weight: 600; }

    .cs-sub {
      font-size: 1.05rem;
      font-weight: 600;
      letter-spacing: -0.015em;
      line-height: 1.45;
      margin: 2.5rem 0 0.25rem;
      max-width: none;
    }
    /* first sub after the section intro gets a bigger tier break */
    .cs-body + .cs-sub { margin-top: 2.75rem; }
    .cs-headline + .cs-sub { margin-top: 1.5rem; }
    .cs-sub + .cs-body + .cs-sub { margin-top: 2rem; }
    .cs-sub + .cs-body + .cs-sub:not(:has(.tick)) { margin-top: 2.75rem; }
    .cs-sub .tick { color: var(--accent-deep); margin-right: 0.5rem; }

    /* ── ALLOCATION FLOW ── */
    .cs-flow {
      display: flex;
      align-items: stretch;
      gap: 0.75rem;
      margin: 2.75rem 0 2.75rem;
      flex-wrap: wrap;
    }
    .cs-flow-step {
      flex: 1 1 160px;
      background: rgba(120,90,40,0.045);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 1.25rem 1.5rem;
    }
    .cs-flow-name {
      font-size: calc(0.88rem + 6px);
      font-family: 'Pixelbasel', monospace;
      font-weight: normal;
      letter-spacing: normal;
      margin-bottom: 0.5rem;
    }
    .cs-flow-desc { font-size: 0.78rem; color: var(--ink-muted); line-height: 1.7; }
    .cs-flow-arrow {
      align-self: center;
      color: var(--ink-faint);
      font-size: 0.9rem;
      flex: 0 0 auto;
    }

    /* ── IMAGE PLACEHOLDERS ── */
    .cs-img {
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 16px;
      margin: 2.75rem 0 0.75rem;
      background: linear-gradient(135deg, #c4d4e8, #b4c4d8);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }
    .cs-img.sol-img { margin-top: 1.75rem; margin-bottom: 4rem; }
    #overview .cs-img { margin-bottom: 2.75rem; }
    .cs-hero-preview {
      width: 100%;
      aspect-ratio: 6900 / 4320;
      border-radius: 16px;
      margin-top: 2.5rem;
      background: #c8d8ee;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      opacity: 0;
      animation: fadeUp 0.8s 0.4s ease forwards;
    }
    .cs-hero-preview span {
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(26,26,24,0.45);
    }
    .cs-hero-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .cs-img.alt-a { background: linear-gradient(135deg, #c4d4e8, #b4c4d8); }
    .cs-img.alt-b { background: linear-gradient(135deg, #d4def0, #c0cfe8); }
    .cs-img span {
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(26,26,24,0.45);
      font-weight: 500;
      position: relative;
      z-index: 1;
    }
    .cs-img::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
      background-size: 200% 100%;
      animation: shimmer 2.4s ease-in-out infinite;
    }
    @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
    .cs-img.no-shimmer::before { display: none; }

    .cs-caption {
      font-size: 0.78rem;
      font-style: italic;
      color: var(--ink-faint);
      line-height: 1.7;
      max-width: none;
      margin-bottom: 0;
    }
    .cs-caption strong {
      font-style: normal;
      color: var(--ink-muted);
      font-weight: 600;
      letter-spacing: 0;
      text-transform: none;
      font-size: 0.78rem;
      margin-right: 0.5rem;
    }

    /* ── ITERATION CAROUSEL ── */
    .cs-carousel { margin: 2rem 0 0.75rem; }
    .cs-carousel-frame {
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 16px;
      overflow: hidden;
      position: relative;
      background: linear-gradient(135deg, #d8e4d4, #c4d4c0);
    }
    .cs-carousel-slide {
      position: absolute; inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(26,26,24,0.45);
      font-weight: 500;
    }
    .cs-carousel-slide.active { display: flex; animation: slideFade 0.4s ease; }
    @keyframes slideFade { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
    .cs-carousel-slide:nth-child(2) { background: linear-gradient(135deg, #d4dce8, #c0ccd8); }
    .cs-carousel-slide:nth-child(3) { background: linear-gradient(135deg, #e8dcd4, #d8c8bc); }
    .cs-carousel-slide:nth-child(4) { background: linear-gradient(135deg, #e4e0cc, #d4d0b8); }

    .cs-carousel-bar {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 1rem;
      margin-top: 1rem;
    }
    .cs-carousel-nav { display: flex; gap: 1.25rem; }
    .cs-carousel-nav button {
      background: none;
      border: none;
      font-family: var(--sans);
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--ink-muted);
      cursor: pointer;
      transition: color 0.2s;
      padding: 0.25rem 0;
    }
    .cs-carousel-nav button:hover { color: var(--accent-deep); }
    .cs-carousel-nav button:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
    .cs-carousel-count { font-size: 0.78rem; color: var(--ink-faint); }
    .cs-carousel-note {
      font-size: 0.82rem;
      color: var(--ink-muted);
      line-height: 1.7;
      margin-top: 0.5rem;
      max-width: none;
      min-height: 3.4em;
    }
    .cs-carousel-note em { font-style: normal; font-weight: 600; color: var(--ink); }

    /* ── NEXT PROJECT ── */
    .cs-next {
      margin-top: 6rem;
      display: block;
      transition: color 0.2s;
    }
    .cs-next-label {
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--ink-faint);
      font-weight: 500;
      margin-bottom: 0.5rem;
    }
    .cs-next-title {
      font-size: 1.35rem;
      font-weight: 600;
      letter-spacing: -0.02em;
    }
    .cs-next-title .arrow { display: inline-block; transition: transform 0.25s ease; color: var(--accent-deep); }
    .cs-next:hover .cs-next-title .arrow { transform: translateX(5px); }
    .cs-next-desc { font-size: 0.88rem; color: var(--ink-muted); margin-top: 0.5rem; max-width: 56ch; }
    .cs-thanks { margin-top: 5.5rem; padding-bottom: 2rem; }

    /* ── REVEAL ── */
    .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* ── FOOTER ── */
    footer {
      display: flex;
      justify-content: space-between;
      padding: 2rem 3rem 2.5rem;
      font-size: 0.78rem;
      color: var(--ink-faint);
      max-width: 1250px;
      margin: 3rem auto 0;
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
      .reveal { opacity: 1; transform: none; }
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .cs-shell { grid-template-columns: 1fr; padding: 8rem 1.5rem 3rem; gap: 2.5rem; }
      .cs-toc { position: static; display: block; }
      .cs-toc-title, .cs-toc a:not(.cs-back) { display: none; }
      .cs-back { margin-bottom: 0; }
      .cs-meta { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
      .cs-meta > div:last-child { grid-column: 1 / -1; }
      .cs-flow { flex-direction: column; align-items: center; }
      .cs-flow-step { flex: 0 0 auto; width: auto; max-width: 17rem; }
      .cs-flow-arrow { transform: rotate(90deg); align-self: center; margin-left: 0; }
      .top-nav { padding: 1rem 1.5rem; }
      footer { padding: 2rem 1.5rem; flex-direction: column; gap: 0.5rem; }
    }
  
    @font-face {
      font-family: 'Pixelbasel';
      src: url("/assets/c2771e60831b7e04.ttf") format('truetype');
      font-weight: normal;
      font-style: normal;
    }
  