 :root {
    --bg: #080808;
    --text: #d8d4cc;
    --dim: #3a3a38;
    --ghost: #1c1c1a;
    --red: #8b1a1a;
    --mono: 'IBM Plex Mono', monospace;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-weight: 300;
    max-width:1500px;
    margin: auto;
    font-size: 13px;
    line-height: 1.7;
    cursor: crosshair;
    overflow-x: hidden;
  }

  /* scanlines */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2px,
      rgba(0,0,0,0.08) 2px,
      rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 1000;
  }

  /* vignette */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    z-index: 999;
  }

  /* ---- TIMESTAMP ---- */
  .corner-stamp {
    position: fixed;
    top: 28px;
    right: 32px;
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.1em;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.4s ease 3.5s forwards;
  }

  .corner-stamp .blink {
    animation: blink 1.4s step-end infinite;
  }

  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

  /* ---- CONTAINER ---- */
  .container {
    max-width: 900px;
    margin: 0 auto;
  }

  /* ---- HERO ---- */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 80px;
    position: relative;
  }

  .hero-name {
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text);
    opacity: 0;
    animation: fadeIn 0.6s ease 0.5s forwards;
    position: relative;
  }

  .hero-cursor {
    display: inline-block;
    font-size: 0.5em;
    vertical-align: middle;
    margin-left: 6px;
    opacity: 0;
    animation: fadeIn 0s 1.2s forwards, blink 1.2s step-end 1.2s infinite;
  }

  .hero-sub {
    margin-top: 48px;
    color: var(--dim);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.6s ease 2s forwards;
    max-width: 400px;
    line-height: 2;
  }

  .hero-sub span { display: block; }

  .hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 80px;
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.6s ease 3s forwards;
  }

  /* ---- DIVIDER ---- */
  .divider {
    width: 100%;
    height: 1px;
    background: var(--ghost);
  }

  /* ---- SECTIONS ---- */
  section {
    padding: 120px 80px;
    position: relative;
  }

  section > .container,
  footer > .container {
    width: 100%;
  }

  .section-id {
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 64px;
  }

  /* ---- ABOUT ---- */
  .about-block { max-width: 560px; }

  .log-entry { margin-bottom: 32px; }

  .log-entry .key {
    color: var(--dim);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .log-entry .val {
    color: var(--text);
    font-size: 13px;
    line-height: 1.8;
  }

  .log-entry .val.large {
    font-size: 18px;
    letter-spacing: 0.04em;
    line-height: 1.6;
  }

  /* ---- PROJECTS ---- */
  .project-entry {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid var(--ghost);
    text-decoration: none;
    color: inherit;
    cursor: crosshair;
    transition: border-color 0.3s;
    position: relative;
  }

  .project-entry:last-child { border-bottom: 1px solid var(--ghost); }

  .project-entry::before {
    content: '';
    position: absolute;
    left: -32px; right: -32px; top: 0; bottom: 0;
    background: transparent;
    transition: background 0.3s;
    z-index: -1;
  }

  .project-entry:hover::before { background: rgba(139,26,26,0.04); }
  .project-entry:hover { border-color: var(--red); }
  .project-entry:hover .proj-name { color: #c4392a; }

  .proj-left {
    display: flex;
    align-items: baseline;
    gap: 20px;
  }

  .proj-index {
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.1em;
    flex-shrink: 0;
  }

  .proj-name {
    font-size: 15px;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    font-weight: 400;
  }

  .proj-desc {
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.05em;
    margin-top: 4px;
    margin-left: calc(20px + 3ch + 20px);
  }

  .proj-right {
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.1em;
    text-align: right;
    white-space: nowrap;
  }

  /* ---- SIGNAL ---- */
  .signal-block {
    max-width: 480px;
    color: var(--dim);
    font-size: 11px;
    letter-spacing: 0.1em;
    line-height: 2.2;
    text-transform: uppercase;
  }

  .signal-block a {
    color: var(--dim);
    text-decoration: none;
    border-bottom: 1px solid var(--ghost);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
  }

  .signal-block a:hover {
    color: var(--text);
    border-color: var(--dim);
  }

  /* ---- FOOTER ---- */
  footer {
    padding: 32px 80px;
    border-top: 1px solid var(--ghost);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.12em;
  }

  /* ---- UTIL ---- */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal.visible { opacity: 1; transform: none; }

  @media (max-width: 640px) {
    .hero, section, footer { padding-left: 28px; padding-right: 28px; }
    .hero-scroll { left: 28px; }
    .corner-stamp { right: 16px; top: 16px; }
    .project-entry::before { left: -16px; right: -16px; }
    .proj-desc { margin-left: 0; }
  }