:root {
  --bg: #0b1111; --surface: #101a1a; --surface-2: #152322; --line: #29403d;
  --text: #edf5ef; --muted: #9baaa4; --accent: #bafc89; --accent-2: #75d8c5;
  --max: 1180px; --pad: clamp(20px, 5vw, 72px); --serif: Georgia, 'Times New Roman', serif;
  color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
:root.light { --bg: #e8eeea; --surface: #f6faf5; --surface-2: #dce9e2; --line: #b6c8be; --text: #17231e; --muted: #587067; --accent: #31724f; --accent-2: #247f83; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .4; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 70%); }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 4; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.site-header { height: 78px; width: min(var(--max), calc(100% - var(--pad) * 2)); margin: auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: baseline; gap: 6px; letter-spacing: .16em; font-size: 12px; }
.wordmark b { color: var(--accent); font-size: 15px; letter-spacing: .1em; }
.desktop-nav { display: flex; gap: 32px; margin-left: auto; margin-right: 36px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.desktop-nav a:hover, .site-footer a:hover { color: var(--accent); }
.theme-button, .menu-button { border: 0; background: none; cursor: pointer; }
.theme-button { color: var(--accent); font-size: 20px; }
.menu-button { display: none; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.menu-button span { color: var(--accent); font-size: 20px; padding-left: 6px; }
.mobile-menu { display: none; }
.section-shell { width: min(var(--max), calc(100% - var(--pad) * 2)); margin: auto; }
.hero { min-height: 610px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 80px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: .98; font-weight: 500; letter-spacing: -.045em; }
h1 { max-width: 690px; font-size: clamp(54px, 9vw, 120px); }
h1::first-line { color: var(--text); }
.hero-intro { max-width: 470px; margin: 28px 0 32px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.button { display: inline-flex; gap: 16px; align-items: center; padding: 13px 18px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transition: .2s ease; }
.button span { color: var(--accent); font-size: 18px; }
.button-primary { background: var(--accent); color: #09110d; border-color: var(--accent); }
.button-primary:hover { background: transparent; color: var(--accent); }
.button-quiet { border-color: transparent; color: var(--muted); padding-left: 0; }
.button-quiet:hover { color: var(--accent); }
.hero-portrait { justify-self: end; position: relative; width: min(330px, 72vw); }
.portrait-ring { aspect-ratio: 1; border: 1px solid var(--accent-2); padding: 16px; transform: rotate(7deg); position: relative; }
.portrait-ring::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--line); }
.portrait-ring img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); transform: rotate(-7deg); }
.portrait-index, .portrait-caption { position: absolute; color: var(--accent); font-size: 10px; letter-spacing: .16em; }
.portrait-index { top: -20px; right: 8px; }
.portrait-caption { bottom: -29px; left: 12px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 22px 18px; border-right: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
.stat:last-child { border-right: 0; }.stat strong, .stat b { color: var(--accent); font: 32px var(--serif); }.stat span { color: var(--muted); font-size: 12px; }
.content-section { padding: 140px 0 0; }.section-heading { margin-bottom: 54px; }.section-heading h2 { font-size: clamp(42px, 6vw, 76px); }.split-heading { display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 22px; }.section-note { color: var(--muted); font-size: 10px; letter-spacing: .13em; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }.about-lead { margin: 0; font: clamp(24px, 3vw, 38px)/1.28 var(--serif); max-width: 500px; }.timeline { border-top: 1px solid var(--line); }.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }.timeline-date { color: var(--accent); font-size: 11px; letter-spacing: .14em; }.timeline h3 { margin: 0 0 5px; font-size: 16px; font-weight: 500; }.timeline p { margin: 0; color: var(--muted); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.project-card { min-height: 310px; padding: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease, background .25s ease; }.project-card:hover { transform: translateY(-6px); border-color: var(--accent-2); background: var(--surface-2); }.project-number { color: var(--accent); font-size: 11px; }.project-card h3 { margin: 54px 0 14px; font: 28px/1.08 var(--serif); }.project-card p { margin: 0; color: var(--muted); font-size: 13px; }.project-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 12px; }.tags { display: flex; flex-wrap: wrap; gap: 5px; }.tag { padding: 4px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }.project-link { color: var(--accent); font-size: 22px; }.project-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.project-date { color: var(--muted); font-size: 11px; letter-spacing: .12em; }.project-card.has-note { cursor: pointer; }.project-card[aria-expanded="true"] { border-color: var(--accent-2); background: var(--surface-2); }.project-card .project-note { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-left: 2px solid var(--accent-2); background: rgba(186, 252, 137, .04); color: var(--muted); font-size: 12px; line-height: 1.7; }
.writing-list { border-top: 1px solid var(--line); }.writing-row { min-height: 94px; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }.writing-date { color: var(--accent); font-size: 10px; letter-spacing: .12em; }.writing-row h3 { margin: 0; font: 24px var(--serif); }.writing-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }.writing-arrow { color: var(--accent); font-size: 20px; }.empty-writing { padding: 42px 0; color: var(--muted); font: 22px var(--serif); }
.friends-section { padding-bottom: 140px; }.friend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.friend-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); }.friend-main { display: block; }.friend-main h3 { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 22px; font-weight: 500; }.friend-main h3 span, .friend-secondary { color: var(--accent); }.friend-main p { margin: 0; color: var(--muted); font-size: 13px; }.friend-main:hover h3 { color: var(--accent); }.friend-meta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 28px; color: var(--muted); font-size: 11px; }.official-strip { display: flex; align-items: center; gap: 22px; margin-top: 46px; padding: 16px 18px; border: 1px solid var(--line); }.official-strip img { display: block; width: 104px; max-width: 100%; height: auto; flex-shrink: 0; }.official-strip .eyebrow { margin: 0 0 6px; }.official-text { margin: 0; color: var(--muted); font-size: 13px; }.official-text b { color: var(--text); font-weight: 500; }.friend-code { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); padding: 4px 8px; font-size: 10px; cursor: pointer; letter-spacing: .04em; transition: border-color .2s, color .2s; }.friend-code i { font-style: normal; color: var(--accent); margin-left: 6px; }.friend-code:hover { border-color: var(--accent-2); color: var(--text); }.friend-code.copied { color: var(--accent); border-color: var(--accent-2); }.friend-code.copy-fail { color: #ff9b9b; border-color: #b05656; }.friend-code span { user-select: text; -webkit-user-select: text; }.friend-card { transition: transform .28s cubic-bezier(.22, .61, .36, 1), border-color .28s, background .28s; }.friend-card:hover { transform: translateY(-4px); border-color: var(--accent-2); background: var(--surface-2); }.trail-canvas { position: fixed; inset: 0; z-index: 3; pointer-events: none; display: none; }body.trail-on .trail-canvas { display: block; }.trail-button, .reveal-button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px; transition: color .2s; }.trail-button:hover, .trail-button[aria-pressed="true"], .reveal-button:hover, .reveal-button[aria-pressed="true"] { color: var(--accent); }.site-header.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }.reveal-scroll { opacity: 0; transform: translateY(22px); transition: opacity .75s cubic-bezier(.22, .61, .36, 1), transform .75s cubic-bezier(.22, .61, .36, 1); will-change: opacity, transform; }.reveal-scroll.in-view { opacity: 1; transform: none; }body.no-reveal .reveal-scroll { opacity: 1; transform: none; transition: none; }body.no-reveal .reveal { animation: none; opacity: 1; transform: none; }
.contact-dock { position: fixed; z-index: 20; right: 24px; bottom: 24px; }.dock-toggle { cursor: pointer; background: var(--accent); color: #09110d; border: 1px solid var(--accent); padding: 12px 16px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }.dock-toggle span { font-size: 16px; margin-left: 12px; }.contact-panel { position: absolute; right: 0; bottom: 52px; width: 290px; padding: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 55px rgba(0,0,0,.35); }.contact-panel h2 { font-size: 32px; margin-bottom: 18px; }.contact-row { width: 100%; display: grid; grid-template-columns: 66px 1fr 20px; gap: 8px; align-items: center; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-size: 12px; }.contact-row span { color: var(--muted); }.contact-row b { font-weight: 500; overflow-wrap: anywhere; }.contact-row i { color: var(--accent); font-style: normal; text-align: right; }.contact-row:hover b { color: var(--accent); }.copy-status { min-height: 18px; margin: 12px 0 0; color: var(--accent); font-size: 11px; }.site-footer { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; letter-spacing: .1em; }.site-footer a { color: var(--accent); }
.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s ease forwards; }.reveal:nth-child(2) { animation-delay: .12s; }@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .site-header { height: 66px; }.desktop-nav { display: none; }.menu-button { display: block; margin-left: auto; margin-right: 14px; }.mobile-menu { position: fixed; z-index: 9; inset: 66px 0 auto; display: none; padding: 22px var(--pad); background: var(--surface); border-bottom: 1px solid var(--line); }.mobile-menu.open { display: grid; gap: 18px; }.mobile-menu a { font: 25px var(--serif); }.hero { min-height: auto; grid-template-columns: 1fr; padding-top: 76px; padding-bottom: 70px; }.hero-portrait { justify-self: start; width: min(270px, 68vw); margin: 22px 0 22px 22px; }.hero-intro { font-size: 15px; }.hero-actions { gap: 14px; }.stats { grid-template-columns: 1fr; }.stat { border-right: 0; border-bottom: 1px solid var(--line); }.stat:last-child { border-bottom: 0; }.content-section { padding-top: 92px; }.about-grid { grid-template-columns: 1fr; gap: 45px; }.project-grid { grid-template-columns: 1fr; }.project-card { min-height: 280px; }.writing-row { grid-template-columns: 72px 1fr 18px; gap: 10px; }.writing-row h3 { font-size: 19px; }.section-note { display: none; }.friends-section { padding-bottom: 95px; }.friend-grid { grid-template-columns: 1fr; }.official-strip { flex-direction: column; align-items: flex-start; }.official-strip img { width: 96px; }.project-card h3 { overflow-wrap: anywhere; }.contact-dock { right: 14px; bottom: 14px; }.contact-panel { width: min(290px, calc(100vw - 28px)); }.site-footer { flex-wrap: wrap; }.site-footer a { width: 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.reveal { animation: none; opacity: 1; transform: none; }.project-card { transition: none; }.reveal-scroll { opacity: 1; transform: none; transition: none; }body.trail-on .trail-canvas { display: none; } }
