/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/font-01.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/font-02.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/font-03.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/font-04.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/font-05.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/font-06.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/font-07.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/font-08.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/font-09.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/font-10.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/font-05.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/font-06.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/font-07.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/font-08.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/font-09.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/font-10.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/font-11.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/font-12.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/font-13.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/font-14.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/font-15.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/font-16.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


  :root {
    --bg: #14110d;
    --bg-2: #1c1814;
    --ink: #ede4d3;
    --ink-2: #b9ad95;
    --ink-3: #7a715f;
    --rule: rgba(237, 228, 211, 0.12);
    --accent: #d4a373;
    --accent-2: #c8956a;
    --warm: #e8d4b0;
    --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    --display: 'Instrument Serif', 'Times New Roman', serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
  }
  [data-theme="light"] {
    --bg: #f5efe4;
    --bg-2: #ece4d3;
    --ink: #1a1612;
    --ink-2: #3d352b;
    --ink-3: #6b6253;
    --rule: rgba(26, 22, 18, 0.2);
    --accent: #8f5a2a;
    --accent-2: #784a1f;
    --warm: #5a3a1a;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background .5s ease, color .5s ease; }
  body { cursor: none; }
  a { color: inherit; text-decoration: none; }

  /* Animated cursor */
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
  .cursor-dot { width: 6px; height: 6px; background: var(--warm); border-radius: 50%; transform: translate(-50%, -50%); transition: transform .15s ease; }
  .cursor-ring { width: 34px; height: 34px; border: 1px solid var(--warm); border-radius: 50%; transform: translate(-50%, -50%); transition: transform .25s cubic-bezier(.2,.7,.3,1), width .2s, height .2s; }
  .cursor-ring.hover { width: 64px; height: 64px; border-color: var(--accent); }

  /* Top bar */
  header.top { position: fixed; top: 0; left: 0; right: 0; padding: 18px 56px; display: flex; justify-content: space-between; align-items: center; z-index: 50; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--rule); color: var(--ink); transition: background .35s, border-color .35s, color .35s; }
  .mark { font-family: var(--display); font-size: 22px; letter-spacing: .01em; }
  .mark em { font-style: italic; color: var(--accent); }
  nav.top-nav { display: flex; gap: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
  nav.top-nav a { opacity: .7; transition: opacity .2s; }
  nav.top-nav a:hover { opacity: 1; }
  .theme-toggle { background: none; border: 1px solid currentColor; color: inherit; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; cursor: none; opacity: .7; }
  .theme-toggle:hover { opacity: 1; }

  /* Hero */
  .hero {
    padding: 90px 56px 48px;
    min-height: 100vh;
    box-sizing: border-box;
    border-bottom: 1px solid var(--rule);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 360px;
    grid-template-areas:
      "eyebrow stack"
      "title   stack"
      "meta    stack";
    column-gap: 56px;
    align-items: start;
  }
  .hero-eyebrow { grid-area: eyebrow; }
  h1.display { grid-area: title; align-self: end; }
  .hero-meta { grid-area: meta; }
  .hero-stack { grid-area: stack; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-self: start; }
  .hero-stack > .hero-portrait:first-child { grid-column: 1 / -1; }
  .hero-portrait {
    position: relative;
    width: 100%;
    padding: 8px 8px 10px;
    background: var(--bg-2);
    border: 1px solid var(--rule);
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55), 0 6px 18px -6px rgba(0, 0, 0, .3);
    opacity: 0;
    transform: translateY(-8px);
    animation: portrait-in-l 1.1s cubic-bezier(.2, .7, .3, 1) .35s forwards;
  }
  .hero-portrait.sunset { animation: portrait-in-r 1.1s cubic-bezier(.2, .7, .3, 1) .55s forwards; }
  .hero-portrait.flyer { animation: portrait-in-c 1.1s cubic-bezier(.2, .7, .3, 1) .75s forwards; }
  .hero-portrait:hover { transform: translateY(-4px) rotate(0deg) scale(1.02) !important; transition: transform .5s cubic-bezier(.2,.7,.3,1); z-index: 5; }
  @keyframes portrait-in-l { to { opacity: 1; transform: translateY(0) rotate(-1.5deg); } }
  @keyframes portrait-in-r { to { opacity: 1; transform: translateY(0) rotate(1.8deg); } }
  @keyframes portrait-in-c { to { opacity: 1; transform: translateY(0) rotate(-1.2deg); } }
  .hero-portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    filter: grayscale(0.15) contrast(1.02) saturate(0.92);
  }
  .hero-portrait.sunset img { object-position: center center; filter: none; }
  .hero-portrait .cap {
    margin-top: 10px;
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--mono); font-size: 9px; color: var(--ink-3);
    letter-spacing: .14em; text-transform: uppercase;
    padding: 0 3px;
  }
  .hero-portrait .cap .name { font-family: var(--display); font-style: italic; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1; }
  .hero-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0; display: flex; gap: 14px; align-items: center; }
  .hero-eyebrow .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
  h1.display { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 6.8vw, 108px); line-height: .96; letter-spacing: -.02em; max-width: 100%; }
  h1.display em { font-style: italic; color: var(--accent); }
  .hero-meta { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px 48px; align-items: end; }
  .hero-meta .col-label { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
  .hero-meta p { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 320px; }
  .hero-meta .loc { font-family: var(--display); font-size: 28px; font-style: italic; color: var(--ink); }

  /* Section header pattern */
  section { padding: 130px 56px; border-bottom: 1px solid var(--rule); }
  .sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: baseline; margin-bottom: 80px; }
  .sec-num { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
  .sec-title { font-family: var(--display); font-size: 64px; font-weight: 400; line-height: 1; letter-spacing: -.01em; }
  .sec-title em { font-style: italic; color: var(--accent); }

  /* Resume button */
  .resume-cta { margin-top: 28px; margin-left: 240px; display: flex; }
  .resume-btn {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 14px 22px;
    border: 1px solid var(--accent);
    color: var(--ink); background: transparent;
    font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
    cursor: none;
    transition: background .25s, color .25s, padding .25s, border-color .25s;
  }
  .resume-btn .arrow { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--serif); font-size: 13px; line-height: 1; transition: background .25s, color .25s, transform .25s; }
  .resume-btn:hover { background: var(--accent); color: var(--bg); padding-right: 30px; }
  .resume-btn:hover .arrow { background: var(--bg); color: var(--accent); transform: translateY(2px); }
  .resume-btn .meta { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; }
  .resume-btn:hover .meta { color: var(--bg); opacity: .75; }

  /* About */
  .about-grid { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 56px; }
  .about-body { font-family: var(--serif); font-size: 22px; line-height: 1.55; color: var(--ink); }
  .about-body::first-letter { font-family: var(--display); font-size: 88px; float: left; line-height: .9; padding: 8px 12px 0 0; color: var(--accent); font-style: italic; }
  .about-body p + p { margin-top: 1.2em; text-indent: 1.8em; }
  .about-body p.dropcap { text-indent: 0; margin-top: 1.6em; }
  .about-body p.dropcap::first-letter { font-family: var(--display); font-size: 88px; float: left; line-height: .9; padding: 8px 12px 0 0; color: var(--accent); font-style: italic; }
  .about-side { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--ink-2); }
  .about-side dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 16px; }
  .about-side dt { color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; padding-top: 2px; }
  .about-side dd { color: var(--ink); }
  .about-side h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin: 32px 0 14px; }

  /* Writing */
  .writing-list { display: flex; flex-direction: column; }
  .post { display: grid; grid-template-columns: 200px 1fr 200px; gap: 40px; padding: 32px 0; border-top: 1px solid var(--rule); align-items: baseline; transition: padding .35s ease; cursor: none; }
  .post:hover { padding-left: 16px; }
  .post:hover .post-title { color: var(--accent); }
  .post:last-child { border-bottom: 1px solid var(--rule); }
  .post-date { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .post-title { font-family: var(--display); font-size: 38px; line-height: 1.05; font-weight: 400; letter-spacing: -.005em; transition: color .3s; max-width: 720px; }
  .post-title em { font-style: italic; }
  .post-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: right; }

  /* Experience timeline */
  .timeline { display: grid; grid-template-columns: 200px 1fr; gap: 56px; }
  .timeline-side { font-family: var(--mono); font-size: 11px; line-height: 1.8; color: var(--ink-3); position: sticky; top: 60px; align-self: start; }
  .timeline-side .stat { display: block; font-family: var(--display); font-size: 52px; color: var(--accent); line-height: 1; margin-bottom: 6px; }
  .timeline-side .stat + .stat-cap { color: var(--ink-2); letter-spacing: .14em; text-transform: uppercase; font-size: 10px; margin-bottom: 24px; display: block; }
  .role { display: grid; grid-template-columns: 140px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--rule); }
  .role:last-child { border-bottom: 1px solid var(--rule); }
  .role-years { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); padding-top: 8px; }
  .role-title { font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.1; }
  .role-company { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 19px; margin-top: 4px; }
  .role-desc { font-family: var(--serif); font-size: 15px; color: var(--ink-2); margin-top: 14px; max-width: 700px; line-height: 1.55; }
  .role-wins { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 740px; }
  .win { border-left: 1px solid var(--accent); padding: 4px 0 4px 14px; }
  .win .num { font-family: var(--display); font-size: 32px; color: var(--ink); line-height: 1; }
  .win .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; margin-top: 6px; }

  /* Now */
  .now-grid { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 56px; align-items: start; }
  .now-card { font-family: var(--serif); }
  .now-card h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
  .now-card p { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin-bottom: 14px; }
  .now-card em { font-style: italic; color: var(--accent); }
  .now-list { list-style: none; }
  .now-list li { padding: 14px 0; border-top: 1px dashed var(--rule); display: flex; justify-content: space-between; gap: 24px; font-size: 16px; color: var(--ink); }
  .now-list li:last-child { border-bottom: 1px dashed var(--rule); }
  .now-list .when { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; flex: 0 0 90px; padding-top: 4px; }

  /* Gallery — horizontal filmstrip */
  .filmstrip-wrap { position: relative; margin: 0 -56px; padding: 0 56px; }
  .filmstrip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 24px 0 32px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    cursor: grab;
  }
  .filmstrip:active { cursor: grabbing; }
  .filmstrip::-webkit-scrollbar { height: 6px; }
  .filmstrip::-webkit-scrollbar-track { background: var(--rule); }
  .filmstrip::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 0; }
  .filmstrip .frame {
    flex: 0 0 auto;
    height: 380px;
    background: var(--bg-2);
    border: 1px solid var(--rule);
    padding: 8px 8px 26px;
    position: relative;
    scroll-snap-align: start;
    transition: transform .4s cubic-bezier(.2,.7,.3,1), border-color .25s, box-shadow .35s;
    cursor: zoom-in;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,.4);
  }
  .filmstrip .frame:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 40px -16px rgba(0,0,0,.55); }
  .filmstrip .frame img {
    height: 100%; width: auto; display: block;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
  }
  .filmstrip .frame .num {
    position: absolute; bottom: 6px; left: 10px;
    font-family: var(--mono); font-size: 9px; color: var(--ink-3);
    letter-spacing: .18em; text-transform: uppercase;
  }
  /* Filmstrip edge indicators — accent ticks like a real strip */
  .filmstrip::before, .filmstrip::after { content: ""; pointer-events: none; }
  .filmstrip-frame-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; }
  .filmstrip-hint { display: inline-flex; gap: 10px; align-items: center; }
  .filmstrip-hint .arrows { color: var(--accent); font-size: 14px; letter-spacing: .2em; }
  .gallery-cap { margin-top: 28px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; }

  /* Lightbox */
  .lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px; background: rgba(8, 6, 4, .94); backdrop-filter: blur(8px); cursor: none; }
  .lightbox.open { display: flex; animation: lb-in .35s ease; }
  @keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
  .lightbox-stage {
    max-width: min(1400px, 100%); max-height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 18px; position: relative;
  }
  .lightbox-img {
    max-width: 100%; max-height: calc(100vh - 200px);
    object-fit: contain; display: block;
    background: #111;
    box-shadow: 0 30px 60px rgba(0,0,0,.7);
    user-select: none;
    transition: opacity .25s ease;
  }
  .lightbox-img.swap { opacity: 0; }
  .lightbox-meta {
    display: flex; justify-content: space-between; align-items: baseline;
    width: 100%; max-width: 1000px;
    padding: 0 4px;
    font-family: var(--mono); font-size: 11px; color: var(--cream, #b9ad95);
    letter-spacing: .14em; text-transform: uppercase;
  }
  .lightbox-meta .counter { font-family: var(--display); font-style: italic; font-size: 22px; letter-spacing: 0; text-transform: none; color: #ede4d3; }
  .lightbox-meta .counter span { color: var(--accent); }
  .lightbox-meta .hint { color: rgba(237, 228, 211, .55); }
  .lb-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px;
    border: 1px solid rgba(237, 228, 211, .35);
    background: rgba(0,0,0,.35);
    color: #ede4d3;
    font-family: var(--display); font-size: 22px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: none;
    transition: background .25s, border-color .25s, transform .25s;
  }
  .lb-btn:hover { background: var(--accent); border-color: var(--accent); color: #1a1612; }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
  .lb-next:hover { transform: translateY(-50%) translateX(3px); }
  .lb-close {
    position: absolute; top: 24px; right: 24px;
    width: 44px; height: 44px;
    border: 1px solid rgba(237, 228, 211, .35);
    background: rgba(0,0,0,.35);
    color: #ede4d3;
    font-family: var(--mono); font-size: 18px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: none;
    transition: background .25s, border-color .25s, color .25s;
  }
  .lb-close:hover { background: var(--accent); border-color: var(--accent); color: #1a1612; }
  body.lb-open { overflow: hidden; }

  /* Contact */
  .contact { padding: 160px 56px 100px; }
  .contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end; }
  .contact h2 { font-family: var(--display); font-size: clamp(60px, 8vw, 120px); font-weight: 400; line-height: .95; letter-spacing: -.02em; }
  .contact h2 em { font-style: italic; color: var(--accent); }
  .contact-links { display: flex; flex-direction: column; gap: 0; }
  .clink { display: flex; justify-content: flex-start; align-items: center; padding: 22px 0; border-top: 1px solid var(--rule); font-family: var(--display); font-size: 32px; transition: padding .3s; gap: 28px; }
  .clink:last-child { border-bottom: 1px solid var(--rule); }
  .clink:hover { padding-left: 12px; color: var(--accent); }
  .clink .ch { font-family: var(--mono); font-size: 18px; color: var(--ink-2); letter-spacing: .04em; text-transform: none; font-weight: 500; }
  .clink:hover .ch { color: var(--accent); }
  .clink .icon-box {
    width: 64px; height: 64px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--rule);
    color: var(--ink-2);
    transition: border-color .25s, color .25s, background .25s;
    flex: 0 0 auto;
    font-size: 28px;
    line-height: 1;
  }
  .clink .icon-box svg { width: 26px; height: 26px; display: block; }
  .clink:hover .icon-box { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); }

  /* Footer */
  footer { padding: 36px 56px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
  footer .col { display: flex; gap: 28px; align-items: center; }

  /* Scroll reveal */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1); }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* Marquee */
  .marquee { overflow: hidden; border-block: 1px solid var(--rule); padding: 22px 0; }
  .marquee-track { display: flex; gap: 56px; white-space: nowrap; animation: scroll 30s linear infinite; font-family: var(--display); font-size: 32px; font-style: italic; color: var(--ink-2); }
  .marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
  .marquee-track span::after { content: "✦"; color: var(--accent); font-style: normal; }
  @keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   Responsive & touch-device overrides (added during extraction)
   ============================================================ */

/* On touch devices: restore the system cursor and hide the custom one.
   Without this, mobile/tablet users see no cursor and the custom dot/ring
   misbehaves on touch events. */
@media (hover: none), (pointer: coarse) {
  body, .theme-toggle, .resume-btn, .post, .clink, .lightbox, .lb-btn, .lb-close, .filmstrip, .filmstrip .frame { cursor: auto !important; }
  .lightbox { cursor: auto; }
  .filmstrip { cursor: grab; }
  .filmstrip:active { cursor: grabbing; }
  .filmstrip .frame { cursor: zoom-in; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* Tablet (<= 1024px): pull spacing in, single-column hero portrait stack */
@media (max-width: 1024px) {
  header.top { padding: 14px 28px; }
  nav.top-nav { gap: 18px; font-size: 10px; }
  .hero { padding: 100px 28px 60px; min-height: 0; grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "stack" "meta"; column-gap: 0; row-gap: 28px; }
  .hero-stack { grid-template-columns: 1fr 1fr 1fr; gap: 12px; max-width: 100%; }
  .hero-stack > .hero-portrait:first-child { grid-column: auto; }
  .hero-meta { margin-top: 20px; grid-template-columns: 1fr 1fr; gap: 28px; }
  section { padding: 90px 28px; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
  .sec-title { font-size: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-body { font-size: 19px; }
  .resume-cta { margin-left: 0; }
  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .timeline-side { position: static; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .timeline-side .stat { font-size: 32px; }
  .role { grid-template-columns: 1fr; gap: 12px; }
  .role-wins { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .now-grid { grid-template-columns: 1fr; gap: 32px; }
  .post { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .post-title { font-size: 28px; }
  .post-meta { text-align: left; }
  .filmstrip-wrap { margin: 0 -28px; padding: 0 28px; }
  .filmstrip .frame { height: 280px; }
  .contact { padding: 100px 28px 80px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact h2 { font-size: clamp(44px, 9vw, 80px); }
  footer { padding: 28px; flex-direction: column; gap: 12px; text-align: center; }
  footer .col { flex-wrap: wrap; justify-content: center; gap: 14px; }
}

/* Phone (<= 640px): tighten further, hide hover-only top nav links if too wide */
@media (max-width: 640px) {
  header.top { padding: 12px 18px; }
  nav.top-nav { display: none; }
  .mark { font-size: 18px; }
  .hero { padding: 90px 18px 50px; }
  h1.display { font-size: clamp(48px, 12vw, 72px); }
  .hero-stack { grid-template-columns: 1fr; gap: 16px; }
  .hero-meta { grid-template-columns: 1fr; gap: 24px; }
  .hero-meta .loc { font-size: 26px; }
  section { padding: 70px 18px; }
  .sec-title { font-size: 36px; }
  .about-body { font-size: 17px; }
  .about-body::first-letter, .about-body p.dropcap::first-letter { font-size: 60px; }
  .timeline-side { grid-template-columns: repeat(2, 1fr); }
  .timeline-side .stat { font-size: 26px; }
  .role-title { font-size: 24px; }
  .role-wins { grid-template-columns: 1fr; }
  .now-card p { font-size: 16px; }
  .filmstrip-wrap { margin: 0 -18px; padding: 0 18px; }
  .filmstrip .frame { height: 220px; }
  .clink { font-size: 22px; padding: 18px 0; gap: 18px; }
  .clink .icon-box { width: 48px; height: 48px; font-size: 22px; }
  .clink .icon-box svg { width: 20px; height: 20px; }
  .lightbox { padding: 12px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-btn { width: 44px; height: 44px; font-size: 18px; }
  .lb-close { top: 12px; right: 12px; width: 36px; height: 36px; }
  .contact { padding: 70px 18px 60px; }
  .marquee-track { font-size: 22px; gap: 32px; }
  .marquee-track span { gap: 32px; }
}
