
    /* ── RESET ── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    img, video, svg { display: block; max-width: 100%; }

    /* ── TOKENS ── */
    :root {
      --cream: #FAFAF8;
      --ink: #1A1714;
      /* Accessible warm-mid: darkened to pass AA on --cream at 12px+ */
      --warm-mid: #6B5440;
      --accent: #B8621E;          /* darkened from #C4773B for AA contrast */
      --accent-hover: #9A5018;
      --light-rule: rgba(26,23,20,0.14);
      --focus-ring: 2px solid #B8621E;
      --focus-offset: 3px;
    }

    /* ── SKIP LINK ── */
    .skip-link {
      position: absolute;
      top: -999px; left: 16px;
      background: var(--ink);
      color: var(--cream);
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      text-decoration: none;
      padding: 12px 20px;
      z-index: 9000;
      border: 2px solid var(--cream);
    }
    .skip-link:focus { top: 16px; }

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

    /* ── BASE ── */
    html { scroll-behavior: smooth; }
    section, .hero { scroll-margin-top: 56px; }

    body {
      background: var(--cream);
      color: var(--ink);
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 16px;
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      -webkit-font-smoothing: antialiased;
    }

    body.no-scroll { overflow: hidden; }

    /* Reduced-motion: disable all animations */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    /* Noise texture — decorative only */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      opacity: 0.03;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      background-size: 200px 200px;
      pointer-events: none;
      z-index: 9999;
    }

    /* ── GLOBAL FOCUS STYLE ── */
    :focus-visible {
      outline: var(--focus-ring);
      outline-offset: var(--focus-offset);
      border-radius: 1px;
    }

    /* ── SIDEBAR (TOP NAV) ── */
    .sidebar {
      position: sticky;
      top: 0;
      width: 100%;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      padding: 16px 52px;
      border-bottom: 1px solid var(--light-rule);
      z-index: 200;
      background: var(--cream);
      opacity: 0;
      animation: fadeUp 0.8s 0.1s forwards;
    }

    .sidebar > div:first-child {
      display: flex;
      align-items: center;
      gap: 40px;
    }

    .sidebar-name {
      font-size: 16px;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-weight: 600;
      letter-spacing: 0em;
      color: var(--ink);
      text-decoration: none;
    }

    .sidebar-name:hover,
    .sidebar-name:focus-visible { color: var(--accent); }

    .sidebar-title {
      display: none;
    }

    .sidebar-nav { list-style: none; display: flex; flex-direction: row; gap: 40px; }

    .sidebar-nav a {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 300;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--warm-mid);
      text-decoration: none;
      transition: color 0.2s;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 0;
    }

    .sidebar-nav a::before {
      content: '';
      display: inline-block;
      width: 0;
      height: 2px;
      background: currentColor;
      transition: width 0.25s;
      flex-shrink: 0;
    }

    .sidebar-nav a:hover,
    .sidebar-nav a:focus-visible { color: var(--accent); }
    .sidebar-nav a:hover::before { width: 20px; }

    .sidebar-nav a[aria-current],
    .sidebar-nav a[aria-current="true"],
    .sidebar-nav a[aria-current="page"] {
      color: var(--ink);
      font-weight: 400;
    }

    .sidebar-nav a[aria-current]::before,
    .sidebar-nav a[aria-current="true"]::before,
    .sidebar-nav a[aria-current="page"]::before { width: 20px; }

    .sidebar-contact { display: flex; align-items: center; }

    .contact-btn {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 300;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--ink);
      text-decoration: none;
      border: 1px solid var(--ink);
      padding: 8px 20px;
      min-height: 36px;
      display: inline-flex;
      align-items: center;
      transition: background 0.2s, color 0.2s;
    }

    .contact-btn:hover,
    .contact-btn:focus-visible {
      background: var(--ink);
      color: var(--cream);
    }

    .contact-link {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 300;
      letter-spacing: 0.06em;
      color: var(--warm-mid);
      text-decoration: none;
      transition: color 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 4px 0;
      min-height: 36px;
    }

    .contact-link:hover,
    .contact-link:focus-visible { color: var(--accent); }

    /* ── MOBILE HEADER ── */
    .mobile-header {
      display: none;
      position: sticky;
      top: 0;
      z-index: 200;
      background: var(--cream);
      border-bottom: 1px solid var(--light-rule);
      padding: 16px 24px;
      min-height: 76px;
      align-items: center;
      justify-content: space-between;
    }

    .mobile-name {
      display: block;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 1;
      letter-spacing: 0;
      color: var(--ink);
      text-decoration: none;
    }

    .mobile-menu-btn {
      background: none;
      border: 1px solid var(--light-rule);
      cursor: pointer;
      padding: 0;
      width: 44px;
      height: 44px;
      display: flex;
      flex-direction: column;
      gap: 5px;
      min-width: 44px;
      min-height: 44px;
      align-items: center;
      justify-content: center;
      transition: border-color 0.2s;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:focus-visible { border-color: var(--ink); }

    .mobile-menu-btn span {
      display: block;
      width: 20px;
      height: 1px;
      background: var(--ink);
      transition: transform 0.2s, opacity 0.2s;
    }

    .mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    /* Mobile nav drawer */
    .mobile-nav {
      display: none;
      position: fixed;
      top: 76px; left: 0; right: 0; bottom: 0;
      background: var(--cream);
      z-index: 200;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 36px 36px 48px;
      gap: 0;
    }

    .mobile-nav.open { display: flex; }

    .mobile-nav a {
      font-family: 'DM Mono', monospace;
      font-size: 13px;
      font-weight: 300;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--warm-mid);
      text-decoration: none;
      padding: 14px 0;
      width: 100%;
      border-bottom: 1px solid var(--light-rule);
      transition: color 0.2s;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 52px;
    }

    .mobile-nav a:hover,
    .mobile-nav a:focus-visible { color: var(--ink); }

    .mobile-nav-contact {
      margin-top: 36px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .mobile-nav-contact a {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 300;
      letter-spacing: 0.08em;
      color: var(--warm-mid);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      border: none;
      padding: 4px 0;
    }

    .mobile-nav-contact a:hover { color: var(--accent); }

    /* ── MAIN ── */
    main {
      padding: 0 52px 40px 52px;
      width: 100%;
      flex: 1;
    }

    body.page-projects main,
    body.page-about main {
      padding-top: 54px;
    }

    /* ── HERO ── */
    .hero {
      padding: 200px 0 200px;
      /* border-bottom: 1px solid var(--light-rule);
      margin-bottom: 80px; */
      opacity: 0;
      animation: fadeUp 0.8s 0.3s forwards;
    }

    .hero-label {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 300;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 80px;
    }

    .hero-name {
      font-size: clamp(48px, 6vw, 80px);
      font-weight: 300;
      line-height: 1.0;
      letter-spacing: -0.02em;
      color: var(--ink);
      margin-bottom: 16px;
    }

    .hero-name em { font-style: normal; color: var(--accent); font-weight: 400; }

    .hero-role {
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      font-weight: 300;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--warm-mid);
      margin-bottom: 40px;
    }

    .hero-top {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 40px;
      max-width: 1100px;
    }

    .hero-head {
      flex: 1;
      min-width: 0;
      text-align: left;
    }

    .hero-photo {
      width: 220px;
      flex: 0 0 220px;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border: 1px solid var(--light-rule);
    }

    .hero-bio {
      font-size: 22px;
      font-weight: 300;
      line-height: 1.65;
      color: var(--ink);
      max-width: 860px;
      /* margin-top: 16px; */
    }

    /* ── SECTIONS ── */
    section {
      /* margin-bottom: 80px; */
      opacity: 0;
      animation: fadeUp 0.8s forwards;
    }

    section:nth-child(2) { animation-delay: 0.4s; }
    section:nth-child(3) { animation-delay: 0.5s; }
    section:nth-child(4) { animation-delay: 0.6s; }
    section:nth-child(5) { animation-delay: 0.7s; }
    section:nth-child(6) { animation-delay: 0.75s; }
    section:nth-child(7) { animation-delay: 0.8s; }
    section:nth-child(8) { animation-delay: 0.85s; }

    /* Section heading — visually styled as label, semantically h2 */
    .section-heading {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 400;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-top: 16px;
      margin-bottom: 32px;
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .section-heading::after {
      display: none;
    }

    #work-heading.section-heading::after,
    #recommendations-heading.section-heading::after,
    #exp-heading.section-heading::after,
    #skills-heading.section-heading::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--light-rule);
      display: block;
    }

    /* ── ABOUT ── */
    .about-intro {
      display: flex;
      align-items: stretch;
      gap: 32px;
      margin-bottom: 40px;
    }

    .about-copy {
      flex: 1.35;
      min-width: 0;
    }

    .about-copy > p {
      line-height: 1.7;
      color: var(--ink);
      margin-bottom: 24px;
    }

    .about-copy > p:last-of-type {
      margin-bottom: 0;
    }

    .about-fun-wrap {
      margin-top: 20px;
      width: 100%;
    }

    .about-photo {
      flex: 1;
      min-width: 260px;
      /* border-radius: 0; */
      overflow: hidden;
    }

    .about-photo figure {
      margin: 0;
      display: flex;
      flex-direction: column;
      width: 100%;
      /* height: 100%; */
      justify-content: flex-start;
    }

    .about-photo img {
      width: 100%;
      /* height: 100%; */
      object-fit: contain;
      flex: 1;
    }

    /* .about-photo figcaption {
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      font-weight: 300;
      letter-spacing: 0.06em;
      color: var(--warm-mid);
      text-align: center;
      padding: 12px 16px;
      background: rgba(26,23,20,0.02);
    } */

    /* ── WORK GRID ── */
    .work-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3px;
    }

    .work-card {
      position: relative;
      aspect-ratio: 4/3;
      cursor: pointer;
      overflow: hidden;
      background: var(--ink);
      display: block;
      text-decoration: none;
      color: inherit;
      /* Ensure min touch target height on small screens */
    }

    .work-card:nth-child(1) .card-bg { background: linear-gradient(135deg, #2a1f14 0%, #5c3d1e 50%, #8b5e2d 100%); }
    .work-card:nth-child(2) .card-bg { background: linear-gradient(135deg, #0f1a1f 0%, #1c3d4a 50%, #2d6678 100%); }
    .work-card:nth-child(3) .card-bg { background: linear-gradient(135deg, #1a1420 0%, #3d2447 50%, #6b3d7a 100%); }
    .work-card:nth-child(4) .card-bg { background: linear-gradient(135deg, #141a10 0%, #2d4020 50%, #4a6b30 100%); }

    .card-bg {
      position: absolute;
      inset: 0;
      transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
    }

    .work-card:hover .card-bg,
    .work-card:focus-visible .card-bg { transform: scale(1.04); }

    .work-card:focus-visible {
      outline: 3px solid var(--accent);
      outline-offset: 0;
      z-index: 1;
    }

    .card-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
      background-size: 24px 24px;
    }

    .card-content {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      /* Reserve space for the bottom-right arrow so text never overlaps it. */
      padding: 24px 74px 24px 24px;
      background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.08) 100%);
    }

    .card-index { display: none; }

    .card-tag {
      font-family: 'DM Mono', monospace;
      font-size: 9px;
      font-weight: 300;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #F0AA70; /* light accent — passes on dark bg */
      margin-bottom: 5px;
    }

    .card-title {
      font-size: clamp(18px, 2.2vw, 22px);
      font-weight: 300;
      letter-spacing: -0.01em;
      color: #fff;
      line-height: 1.2;
      margin-bottom: 4px;
    }

    .card-brief {
      font-size: 11px;
      font-family: 'DM Mono', monospace;
      font-weight: 300;
      color: rgba(255,255,255,0.82);
      letter-spacing: 0.04em;
    }

    .card-arrow {
      position: absolute;
      bottom: 20px;
      right: 18px;
      width: 32px;
      height: 32px;
      border: 1px solid rgba(255,255,255,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.7);
      font-size: 14px;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
      pointer-events: none; /* card handles the click */
    }

    .card-arrow svg {
      width: 14px;
      height: 14px;
      display: block;
    }

    /* ── WIP card ── */
    .work-card--wip {
      cursor: default;
      pointer-events: none;
    }

    .work-card--wip .card-bg {
      filter: brightness(0.6) saturate(0.4);
    }

    .card-wip-banner {
      position: absolute;
      top: 16px;
      left: 18px;
      z-index: 2;
      font-family: 'DM Mono', monospace;
      font-size: 9px;
      font-weight: 300;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.9);
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.25);
      padding: 4px 9px;
      backdrop-filter: blur(6px);
    }

    .work-card:hover .card-arrow,
    .work-card:focus-visible .card-arrow {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    /* ── CASE STUDY OVERLAY ── */
    .cs-overlay {
      position: fixed;
      inset: 0;
      z-index: 500;
      display: flex;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.35s ease;
    }

    .cs-overlay.open {
      pointer-events: all;
      opacity: 1;
    }

    .cs-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(26,23,20,0.55);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }

    .cs-panel {
      position: relative;
      margin-left: auto;
      width: min(800px, 100%);
      height: 100vh;
      background: var(--cream);
      overflow-y: auto;
      overflow-x: hidden;
      transform: translateX(60px);
      transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
      border-left: 1px solid var(--light-rule);
    }

    .cs-overlay.open .cs-panel { transform: translateX(0); }

    /* Sticky topbar inside panel */
    .cs-topbar {
      position: sticky;
      top: 0;
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 40px;
      background: var(--cream);
      border-bottom: 1px solid var(--light-rule);
      z-index: 10;
    }

    .cs-counter {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 300;
      letter-spacing: 0.14em;
      color: var(--warm-mid);
    }

    .cs-close-btn {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 300;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--warm-mid);
      background: none;
      border: 1px solid var(--light-rule);
      padding: 10px 18px;
      min-height: 44px;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s;
    }

    .cs-close-btn:hover,
    .cs-close-btn:focus-visible { border-color: var(--ink); color: var(--ink); }

    .cs-body { padding: 48px 52px 80px; }

    /* Case study inner */
    .cs-hero-vis {
      width: 100%;
      aspect-ratio: 16/7;
      margin-bottom: 40px;
      overflow: hidden;
      position: relative;
      border-radius: 0;
    }

    .cs-vis-bg { position: absolute; inset: 0; }

    .cs-vis-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
      background-size: 20px 20px;
    }

    .cs-meta-row {
      display: flex;
      gap: 32px;
      margin-bottom: 32px;
      flex-wrap: wrap;
    }

    .cs-meta-item { display: flex; flex-direction: column; gap: 4px; }

    .cs-meta-key {
      font-family: 'DM Mono', monospace;
      font-size: 9px;
      font-weight: 400;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--warm-mid);
    }

    .cs-meta-val {
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      font-weight: 300;
      letter-spacing: 0.06em;
      color: var(--ink);
    }

    .cs-tag {
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      font-weight: 300;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 10px;
    }

    .cs-title {
      font-size: clamp(32px, 4vw, 48px);
      font-weight: 300;
      letter-spacing: -0.02em;
      line-height: 1.05;
      margin-bottom: 14px;
    }

    .cs-title em { font-style: italic; color: var(--warm-mid); }

    .cs-tagline {
      font-size: 18px;
      font-weight: 300;
      color: var(--warm-mid);
      margin-bottom: 40px;
      max-width: 460px;
      line-height: 1.6;
    }

    .cs-rule { height: 1px; background: var(--light-rule); margin: 40px 0; }

    .cs-block { margin-bottom: 40px; }

    /* Use h3 for screen-reader structure; visually styled as label */
    .cs-block-heading {
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      font-weight: 400;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 16px;
    }

    .cs-block p {
      font-size: 17px;
      font-weight: 300;
      line-height: 1.72;
      color: var(--ink);
      margin-bottom: 10px;
    }

    .cs-steps { display: flex; flex-direction: column; }

    .cs-step {
      display: grid;
      grid-template-columns: 36px 1fr;
      gap: 18px;
      padding: 20px 0;
      border-bottom: 1px solid var(--light-rule);
    }

    .cs-step:first-child { border-top: 1px solid var(--light-rule); }

    .cs-step-num {
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      font-weight: 300;
      color: var(--accent);
      letter-spacing: 0.08em;
      padding-top: 2px;
    }

    .cs-step-title {
      font-size: 16px;
      font-weight: 400;
      letter-spacing: -0.01em;
      margin-bottom: 5px;
      color: var(--ink);
    }

    .cs-step-desc {
      font-size: 15px;
      font-weight: 300;
      color: var(--warm-mid);
      line-height: 1.62;
    }

    .cs-outcomes {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3px;
      margin-top: 4px;
    }

    .cs-outcome { background: rgba(26,23,20,0.04); padding: 24px 20px; }

    .cs-outcome-num {
      font-size: 38px;
      font-weight: 300;
      letter-spacing: -0.03em;
      line-height: 1;
      margin-bottom: 6px;
      color: var(--ink);
    }

    .cs-outcome-num span { font-size: 20px; color: var(--accent); }

    .cs-outcome-label {
      font-family: 'DM Mono', monospace;
      font-size: 9px;
      font-weight: 300;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--warm-mid);
    }

    .cs-lesson { background: var(--ink); color: var(--cream); padding: 30px 34px; }

    .cs-lesson-tag {
      font-family: 'DM Mono', monospace;
      font-size: 9px;
      font-weight: 300;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #F0AA70;
      margin-bottom: 12px;
    }

    .cs-lesson p {
      font-size: 18px;
      font-style: italic;
      font-weight: 300;
      line-height: 1.65;
      color: rgba(245,240,232,0.92);
    }

    .cs-nav-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 56px;
      padding-top: 24px;
      border-top: 1px solid var(--light-rule);
      gap: 12px;
    }

    .cs-nav-btn {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 300;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--warm-mid);
      background: none;
      border: 1px solid var(--light-rule);
      cursor: pointer;
      transition: color 0.2s, border-color 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      min-height: 44px;
    }

    .cs-nav-btn:hover,
    .cs-nav-btn:focus-visible { color: var(--ink); border-color: var(--ink); }
    .cs-nav-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

    /* ── EXPERIENCE ── */
    .job { padding: 24px 0; }
    /* .job:first-of-type { border-top: 1px solid var(--light-rule); } */

    .job-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 4px;
      flex-wrap: wrap;
      gap: 8px;
    }

    .job-title { font-size: 16px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }

    .job-dates {
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      font-weight: 300;
      letter-spacing: 0.06em;
      color: var(--warm-mid);
      white-space: nowrap;
      padding-top: 5px;
    }

    .job-company {
      font-size: 12px;
      font-family: 'DM Mono', monospace;
      font-weight: 300;
      letter-spacing: 0.06em;
      color: var(--accent);
      margin-bottom: 3px;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: color 0.2s;
    }

    .job-company:hover,
    .job-company:focus-visible { color: var(--accent-hover); text-decoration: underline; }

    .job-location {
      font-family: 'DM Mono', monospace;
      font-size: 10px;
      font-weight: 300;
      letter-spacing: 0.08em;
      color: var(--warm-mid);
      margin-bottom: 20px;
    }

    .job-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }

    .job-bullets li {
      font-size: 16px;
      font-weight: 300;
      line-height: 1.6;
      color: var(--ink);
      padding-left: 20px;
      position: relative;
    }

    .job-bullets li::before {
      content: '';
      position: absolute;
      left: 2px;
      top: 0.9em;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--accent);
      transform: translateY(-50%);
    }

    .job-clients {
      margin-top: 14px;
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.06em;
      color: var(--warm-mid);
      font-weight: 300;
      font-style: italic;
    }

    /* ── SKILLS ── */
    .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 2fr)); gap: 32px; }

    .skill-group-label {
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      font-weight: 400;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink);
      margin-bottom: 14px;
    }

    .skill-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }

    .skill-list li {
      font-size: 14px;
      font-weight: 300;
      color: var(--ink);
      padding-left: 0;
      position: relative;
    }

    .skill-list li::before { content: none; }

    /* ── FUN CARD ── */
    .fun-card {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(26,23,20,0.1);
      border-left: 3px solid var(--accent);
      background: linear-gradient(180deg, rgba(240,170,112,0.16) 0%, rgba(26,23,20,0.01) 38%);
      padding: 24px 22px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      justify-content: flex-start;
    }

    .fun-card::before {
      content: '';
      position: absolute;
      right: -26px;
      top: -34px;
      width: 120px;
      height: 120px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 30%, rgba(240,170,112,0.55), rgba(240,170,112,0.08) 70%);
      pointer-events: none;
    }

    .fun-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(184,98,30,0.2) 1px, transparent 1px);
      background-size: 12px 12px;
      opacity: 0.2;
      pointer-events: none;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,0.32), transparent 55%);
    }

    .fun-card > * {
      position: relative;
      z-index: 1;
    }

    .fun-card-top {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .fun-emoji {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      border: 1px solid rgba(184,98,30,0.25);
      background: rgba(245,240,232,0.85);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      line-height: 1;
      transform: rotate(-6deg);
      box-shadow: 0 2px 8px rgba(26,23,20,0.08);
      transition: transform 0.25s ease, opacity 0.25s ease;
      flex-shrink: 0;
    }

    .fun-card-label {
      font-size: 14px;
      font-weight: 300;
      line-height: 1.55;
      letter-spacing: 0;
      color: var(--warm-mid);
      margin: 0;
      max-width: 30ch;
    }

    .fun-card-activity {
      font-size: clamp(24px, 4vw, 32px);
      font-weight: 300;
      line-height: 1.05;
      letter-spacing: -0.02em;
      color: var(--ink);
      margin: 2px 0 2px;
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .fun-card-note {
      font-size: 16px;
      line-height: 1.65;
      color: var(--warm-mid);
      margin: 0;
      transition: opacity 0.25s ease;
    }

    .fun-card-btn {
      margin-top: 10px;
      align-self: flex-start;
      border: 1px solid var(--light-rule);
      background: transparent;
      color: var(--ink);
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 300;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 11px 16px;
      min-height: 42px;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }

    .fun-card-btn:hover,
    .fun-card-btn:focus-visible {
      border-color: var(--ink);
      color: var(--cream);
      background: var(--ink);
    }

    .fun-card.is-switching .fun-card-activity {
      opacity: 0;
      transform: translateY(6px);
    }

    .fun-card.is-switching .fun-emoji {
      opacity: 0;
      transform: translateY(-4px) rotate(10deg) scale(0.88);
    }

    .fun-card.is-switching .fun-card-note {
      opacity: 0;
    }

    @media (max-width: 600px) {
      .fun-card {
        padding: 18px;
      }

      .fun-card::before {
        width: 90px;
        height: 90px;
      }

      .fun-emoji {
        width: 32px;
        height: 32px;
        font-size: 18px;
      }

      .fun-card-label {
        font-size: 15px;
      }

      .fun-card-activity {
        font-size: clamp(30px, 9vw, 38px);
      }

      .fun-card-note {
        font-size: 15px;
      }

      .fun-card-btn {
        width: 100%;
        justify-content: center;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .fun-card-activity,
      .fun-card-note,
      .fun-card-btn {
        transition: none !important;
      }
    }

    /* ── EDUCATION ── */
    .edu-entry { margin-bottom: 26px; }
    .edu-degree { font-size: 16px; font-weight: 300; color: var(--ink); margin-bottom: 3px; }
    .edu-minor { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 300; letter-spacing: 0.06em; color: var(--warm-mid); margin-bottom: 0; }
    .edu-entry:last-of-type { margin-bottom: 0; }

    /* ── RECOMMENDATIONS ── */
    .quotes-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      align-items: start;
    }

    blockquote { background: rgba(26,23,20,0.04); border-left: 2px solid var(--accent); padding: 24px 28px; }

    blockquote p { font-size: 18px; font-style: italic; font-weight: 300; line-height: 1.65; color: var(--ink); margin-bottom: 12px; }

    blockquote cite {
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 300;
      letter-spacing: 0.08em;
      color: var(--warm-mid);
      font-style: normal;
    }

    @media (max-width: 860px) {
      .quotes-grid { grid-template-columns: 1fr; }
    }

    /* ── CERTIFICATIONS ── */
    .cert { font-size: 16px; font-weight: 300; color: var(--ink); padding-left: 20px; position: relative; }
    .cert::before {
      content: '';
      position: absolute;
      left: 2px;
      top: 0.9em;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--accent);
      transform: translateY(-50%);
    }

    /* ── CTA ── */
    .cta-wrap { margin-top: 80px; padding: 60px 0; border-top: 1px solid var(--light-rule); text-align: center; }

    .cta-text { font-size: clamp(28px, 4vw, 36px); font-weight: 300; color: var(--ink); margin-bottom: 32px; }

    .cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--ink);
      color: var(--cream);
      font-family: 'DM Mono', monospace;
      font-size: 11px;
      font-weight: 300;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      text-decoration: none;
      padding: 16px 32px;
      min-height: 52px;
      transition: background 0.25s;
    }

    .cta-btn:hover,
    .cta-btn:focus-visible { background: var(--accent); }

    /* ── ANIMATIONS ── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    @media (prefers-reduced-motion: reduce) {
      .card-bg,
      .card-arrow,
      .cta-btn,
      .cs-overlay,
      .cs-panel {
        transition: none !important;
      }

      .work-card:hover .card-bg,
      .work-card:focus-visible .card-bg {
        transform: none;
      }
    }

    /* ── RESPONSIVE ─────────────────────────────────────────── */

    /* Large — tighten padding */
    @media (max-width: 1100px) {
      main { padding: 0 48px 100px 48px; }
    }

    /* Medium — collapse sidebar to mobile header */
    @media (max-width: 860px) {
      .sidebar { display: none; }
      .mobile-header { display: flex; }
      main { margin-left: 0; padding: 0 32px 100px; }
      .hero { padding: 80px 0 100px; }
      .hero-top { flex-direction: column; gap: 20px; align-items: flex-start; }
      .hero-photo { width: min(100%, 280px); flex: 0 0 auto; }
      .about-intro { flex-direction: column; gap: 24px; margin-bottom: 60px; }
      .about-photo { min-width: 0; }
      .about-photo img { height: auto; }
      section, .hero { scroll-margin-top: 70px; }
    }

    /* Small — single column work grid, tighter spacing */
    @media (max-width: 600px) {
      main { padding: 0 20px 80px; }
      .hero { padding: 60px 0 80px; }
      .hero-bio { font-size: 17px; }
      .work-grid { grid-template-columns: 1fr; }
      .work-card { aspect-ratio: 3/2; }
      .card-content { padding: 20px 66px 20px 20px; }
      .cs-topbar { padding: 14px 20px; }
      .cs-body { padding: 32px 24px 60px; }
      .cs-outcomes { grid-template-columns: 1fr 1fr; }
      .cs-meta-row { gap: 20px; }
      .cs-lesson { padding: 24px 22px; }
      blockquote { padding: 20px 20px; }
      .job-header { flex-direction: column; gap: 2px; }
      .job-dates { padding-top: 0; }
      .skills-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
      .cta-text { font-size: 26px; }
      .cta-btn { padding: 14px 24px; }
    }

    /* Very small */
    @media (max-width: 400px) {
      .cs-outcomes { grid-template-columns: 1fr; }
      .skills-grid { grid-template-columns: 1fr; }
    }

    /* High-contrast mode support */
    @media (forced-colors: active) {
      .card-bg, .cs-vis-bg { forced-color-adjust: none; }
      :focus-visible { outline: 3px solid ButtonText; }
    }

  /* ── Inline style replacements ── */
  /* Projects page: card content gradient */
  body.page-projects .card-content {
    background: linear-gradient(to top, rgba(10, 7, 5, 0.92) 0%, rgba(10, 7, 5, 0.76) 44%, rgba(10, 7, 5, 0.42) 68%, rgba(10, 7, 5, 0.12) 100%);
  }

  /* About page: skills grid spacing */
  .skills-grid {
    margin-bottom: 80px;
  }

  /* Utility: text center */
  .u-text-center {
    text-align: center;
  }

  /* ── WORK LIST (alternating row layout) ── */
  .work-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0 80px;
  }

  .work-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 440px;
  }

  .work-row:nth-child(even) .work-row-image { order: 2; }
  .work-row:nth-child(even) .work-row-text  { order: 1; }

  .work-row-image {
    overflow: hidden;
    background-color: var(--cream);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    padding:16px;
    display: block;
    cursor: pointer;
    transition: opacity 0.25s;
  }

  .work-row-image:hover { opacity: 0.88; }

  .work-row-text {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
  }

  .work-row-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .work-row-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--warm-mid);
    border: 1px solid var(--light-rule);
    padding: 3px 10px;
  }

  .work-row-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink);
  }

  .work-row-brief {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--warm-mid);
    max-width: 380px;
  }

  .work-row-link {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 8px;
    align-self: flex-start;
    transition: color 0.2s;
  }

  .work-row-link:hover,
  .work-row-link:focus-visible { color: var(--accent); }

  @media (max-width: 860px) {
    .work-list { gap: 56px; padding: 24px 0 56px; }
    .work-row {
      grid-template-columns: 1fr;
      min-height: auto;
    }
    .work-row:nth-child(even) .work-row-image,
    .work-row:nth-child(even) .work-row-text { order: unset; }
    .work-row-image { min-height: 280px; }
    .work-row-text { padding: 40px 32px; }
  }

  @media (max-width: 600px) {
    .work-list { gap: 40px; }
    .work-row-image { min-height: 220px; }
    .work-row-text  { padding: 32px 20px; }
    .work-row-brief { max-width: none; }
  }

  /* ── PLAYGROUND PAGE ── */
  .playground-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 80px 0;
    max-width: 680px;
  }

  .playground-label {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
  }

  .playground-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
  }

  .playground-sub {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--warm-mid);
  }

  /* ── SITE FOOTER ── */
  .site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 52px;
    border-top: 1px solid var(--light-rule);
    /* margin-top: 80px; */
  }

  .site-footer-copy,
  .site-footer-links a {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--warm-mid);
  }

  .site-footer-copy { margin: 0; }

  .site-footer-links {
    display: flex;
    gap: 40px;
  }

  .site-footer-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
  }

  .site-footer-links a:hover,
  .site-footer-links a:focus-visible { color: var(--ink); }

  @media (max-width: 600px) {
    .site-footer {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      padding: 24px 20px;
      margin-top: 48px;
    }
  }
