  :root {
    --bg: #0a0708;
    --bg-card: #141012;
    --ink: #e8e4dc;
    --ink-muted: #a09a92;       /* lifted contrast for accessibility */
    --ink-subtle: #6a655f;
    --accent: #c8253a;
    --accent-soft: #e85a6b;
    --rule: rgba(232, 228, 220, 0.12);
    --rule-strong: rgba(232, 228, 220, 0.2);
    --side-nav-w: 200px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter Tight', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* Hide the system cursor — the red dot replaces it.
     Must also override all elements that browsers default to
     pointer/text cursors (links, buttons, inputs). */
  @media (hover: hover) and (pointer: fine) {
    html, body, a, button, [role="button"], input, textarea, select, label {
      cursor: none;
    }
  }

  ::selection { background: var(--accent); color: var(--ink); }

  /* ── HERO — capped at ~110vh so content is reachable quickly ─ */
  .hero {
    position: relative;
    width: 100%;
    height: 110vh;
    background: var(--bg);
    overflow: hidden;
  }

  .hero-artwork {
    position: absolute;
    inset: 0;
    background-image: url("../img/artwork.jpeg");
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    background-color: var(--bg);
    filter: contrast(1.04) brightness(1);
    will-change: transform;
  }

  /* Title scrim — sits behind hero text for readability */
  .hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 70%;
    pointer-events: none;
    background: linear-gradient(180deg,
      rgba(10,7,8,0) 0%,
      rgba(10,7,8,0.2) 30%,
      rgba(10,7,8,0.6) 60%,
      rgba(10,7,8,0.95) 88%,
      rgba(10,7,8,1) 100%);
    z-index: 2;
  }

  /* Hero content — visible immediately on load */
  .hero-content {
    position: absolute;
    bottom: 34%; left: 0; right: 0;
    padding: 0 3rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 4;
    will-change: transform, opacity;
    text-shadow: 0px 4px 3px rgba(0,0,0,0.4), 0px 8px 13px rgba(0,0,0,0.1), 0px 18px 23px rgba(0,0,0,0.1);
  }

  .hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .hero-eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--accent);
  }

  .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 18ch;
  }

  .hero-title em {
    font-style: italic;
    color: var(--accent-soft);
    font-weight: 400;
  }

  .hero-sub {
    font-size: 1.1rem;
    color: var(--ink);
    max-width: 52ch;
    line-height: 1.65;
    margin-bottom: 2.5rem;
    opacity: 0.92;
  }

  .hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
  }

  .btn-primary {
    background: var(--accent);
    color: var(--ink);
  }

  .btn-primary:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
  }

  .btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule-strong);
  }

  .btn-secondary:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
  }

  .btn .arrow {
    transition: transform 0.3s ease;
  }

  .btn:hover .arrow { transform: translateX(4px); }

  /* Subtle grain */
  .grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  }

  /* ── Top nav (logo + single CTA only) ───────────────────── */
  nav.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
  }

  nav.top-nav.scrolled {
    background: rgba(10, 7, 8, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
    padding: 1.1rem 3rem;
  }

  .logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-decoration: none;
  }

  .logo em {
    font-style: italic;
    color: var(--accent-soft);
    font-weight: 400;
  }

  /* ── Reactive red-string scroll indicator ─────────────────
     Replaces the old plain side-nav. A flowing red SVG curve
     fixed to the right edge that draws itself top-to-bottom as
     the user scrolls. The bezier control points sway in
     response to scroll velocity (with spring damping) so the
     line whips & settles like a real string. Section dots sit
     on the curve and fill red as the line passes them.
  ──────────────────────────────────────────────────────────── */
  .red-string {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--side-nav-w);
    height: 100vh;
    z-index: 99;
    pointer-events: none;
  }

  .red-string svg {
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .string-track {
    fill: none;
    stroke: var(--rule);
    stroke-width: 1;
    stroke-linecap: round;
  }

  .string-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(200, 37, 58, 0.5));
    will-change: stroke-dashoffset;
  }

  .string-dot {
    fill: var(--bg);
    stroke: var(--ink-subtle);
    stroke-width: 1;
    transition: fill 0.4s ease, stroke 0.4s ease;
  }

  .string-dot.active {
    fill: var(--accent);
    stroke: var(--accent);
    filter: drop-shadow(0 0 6px rgba(200, 37, 58, 0.8));
  }

  /* Clickable nav labels overlay — positioned by JS to align
     with each dot on the curve. The labels are the only
     interactive part (the SVG itself is pointer-events:none). */
  .string-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .string-label {
    position: absolute;
    transform: translateY(-50%);
    color: var(--ink-subtle);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-weight: 500;
    pointer-events: auto;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(.7,0,.3,1);
    white-space: nowrap;
  }

  .string-label:hover {
    color: var(--ink);
    transform: translateY(-50%) translateX(-4px);
  }

  .string-label.active {
    color: var(--accent-soft);
  }

  /* ── Content sections ──────────────────────────────────── */
  .content {
    position: relative;
    background: var(--bg);
    z-index: 2;
    padding-right: var(--side-nav-w);
  }

  section {
    padding: 7rem 3rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-header {
    margin-bottom: 4rem;
    max-width: 720px;
  }

  .section-num {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--accent-soft);
    margin-bottom: 0.75rem;
  }

  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
  }

  .section-title em { font-style: italic; color: var(--accent-soft); }

  .section-lede {
    font-size: 1.05rem;
    color: var(--ink-muted);
    line-height: 1.7;
    max-width: 56ch;
  }

  /* ── What I do — three focused capabilities ─────────────── */
  .capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .capability {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    padding: 2rem 1.75rem;
    transition: border-color 0.4s ease, transform 0.4s ease;
    position: relative;
  }

  .capability:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
  }

  .capability-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-soft);
    margin-bottom: 1.25rem;
  }

  .capability-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
  }

  .capability-desc {
    font-size: 0.92rem;
    color: #e85a6b;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .capability-text {
    font-size: 0.92rem;
    color: var(--ink-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }  

  .capability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .tag {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-subtle);
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
  }

  /* ── Projects — case-study cards with thumbnails ─────────── */
  .projects-grid:has(> :only-child) {
  grid-template-columns: 1fr;
  max-width: 700px;
}

.projects-grid:has(> :only-child) .project-thumb img {
  aspect-ratio: 16/9;
}

  .project {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .project:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
  }

  .project-thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a1518 0%, #0f0c0e 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--rule);
  }

  .project-thumb svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .project-body {
    padding: 1.5rem 1.75rem 1.75rem;
  }

  .project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-subtle);
  }

  .project-type { color: var(--accent-soft); }

  .project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
  }

  .project:hover .project-title { color: var(--accent-soft); }

  .project-desc {
    font-size: 0.92rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  /* ── About — reframed for student angle ─────────────────── */
  .about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-left .section-header {
  margin-bottom: 2rem;
}

  .about-text p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    color: rgba(232, 228, 220, 0.9);
    line-height: 1.75;
  }

  .about-text p:first-child::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    margin: 0.05em 0.15em 0 -0.05em;
    color: var(--accent-soft);
    font-style: italic;
  }

  .about-photo {
    position: relative;
  }

  .about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.about-photo img:hover {
  filter: grayscale(0%);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--rule);
  pointer-events: none;
}

  /* ── Contact ────────────────────────────────────────────── */
  .contact {
    text-align: center;
    padding: 9rem 3rem;
  }

  .contact-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 2rem;
  }

  .contact-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
  }

  .contact-title em { font-style: italic; color: var(--accent-soft); }

  .contact-email {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.5rem;
    transition: border-color 0.4s ease, color 0.4s ease;
  }

  .contact-email:hover {
    color: var(--accent-soft);
    border-color: var(--accent);
  }

  .socials {
    margin-top: 3.5rem;
    display: flex;
    gap: 2.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  .socials a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.3s ease;
  }

  .socials a:hover { color: var(--accent-soft); }

  footer {
    position: relative;
    z-index: 2;
    padding: 2.5rem 3rem;
    padding-right: calc(3rem + var(--side-nav-w));
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-subtle);
    border-top: 1px solid var(--rule);
    background: var(--bg);
  }

  /* ── Reveal animations — quicker, less blur ───────────────── */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(3px);
    transition:
      opacity 0.7s cubic-bezier(.2,.6,.2,1),
      transform 0.7s cubic-bezier(.2,.6,.2,1),
      filter 0.7s cubic-bezier(.2,.6,.2,1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  .reveal.delay-1 { transition-delay: 0.08s; }
  .reveal.delay-2 { transition-delay: 0.16s; }
  .reveal.delay-3 { transition-delay: 0.24s; }
  .reveal.delay-4 { transition-delay: 0.32s; }

  /* (top horizontal progress bar removed — red string serves this role) */

  /* Scroll hint */
  .scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }

  .scroll-hint::after {
    content: "";
    width: 1px;
    height: 36px;
    background: var(--ink-muted);
    animation: pulse-line 2.4s ease-in-out infinite;
  }

  @keyframes pulse-line {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
  }

  .scroll-hint.hidden { opacity: 0; }

  /* ── Responsive ─────────────────────────────────────────── */
  @media (max-width: 1024px) {
    .capabilities { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 900px) {
    :root { --side-nav-w: 0px; }
    .content { padding-right: 0; }
    .red-string { display: none; }
    footer { padding-right: 3rem; }
  }

  @media (max-width: 768px) {
    .hero { height: 100vh; }
    .hero-content { padding: 0 1.5rem 4rem; }
    .hero-title { font-size: 2.4rem; }
    .hero-sub { font-size: 0.98rem; }
    nav.top-nav { padding: 1.1rem 1.5rem; }
    nav.top-nav.scrolled { padding: 0.9rem 1.5rem; }
    section { padding: 5rem 1.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-meta { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
    footer { padding: 2rem 1.5rem; }
    .contact { padding: 6rem 1.5rem; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; filter: none; }
  }
  /* ── Trailing red cursor dot ──────────────────────────────
     A small filled red circle that follows the pointer with
     easing, creating a soft trailing feel that pairs visually
     with the red scroll string. On hoverable elements it grows
     and fades. Disabled on touch devices (no hover detection).
  ──────────────────────────────────────────────────────────── */
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, opacity 0.25s ease;
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 6px rgba(200, 37, 58, 0.5));
    opacity: 0;
    will-change: transform;
  }

  .cursor-dot.ready { opacity: 1; }

  /* On hoverable elements: grow and soften */
  .cursor-dot.hovering {
    width: 36px;
    height: 36px;
    background: rgba(232, 90, 107, 0.25);
    border: 1px solid var(--accent-soft);
  }

  /* Hide on touch devices — pointer effects shouldn't apply */
  @media (hover: none), (pointer: coarse) {
    .cursor-dot { display: none; }
  }

