
:root{color-scheme:dark;--bg:#11121b;--panel:#1c1d2a;--panel2:#222436;--ink:#f1eef7;--muted:#b9b4c8;--accent:#bb9bff;--accent2:#d7c5ff;--stroke:#4b405f;--shadow:0 14px 36px rgba(0,0,0,.33),0 3px 8px rgba(0,0,0,.24)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:88px}body{margin:0;background:radial-gradient(ellipse at 10% 0%,#302240 0,transparent 42%),linear-gradient(#12131c,#0e1017);color:var(--ink);font:16px/1.65 'Segoe UI',system-ui,-apple-system,sans-serif}a{color:var(--accent2);text-underline-offset:3px}a:hover{color:#fff}a:focus-visible,button:focus-visible{outline:3px solid #e4d7ff;outline-offset:4px}.skip-link{position:absolute;left:-9999px;top:0}.skip-link:focus{left:12px;top:12px;z-index:100;background:#fff;color:#111;padding:8px}.site-header{position:sticky;top:0;z-index:20;background:rgba(18,17,28,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--stroke);box-shadow:0 5px 18px #0005}.site-navigation{max-width:1220px;margin:auto;display:flex;align-items:center;gap:24px;justify-content:space-between;padding:12px 22px}.site-logo{font-size:1.1rem;font-weight:800;color:#fff;text-decoration:none;white-space:nowrap;letter-spacing:.03em}.navigation-list{list-style:none;display:flex;gap:6px 15px;flex-wrap:wrap;justify-content:flex-end;margin:0;padding:0}.navigation-list a{font-size:.81rem;text-decoration:none;color:#d9d2e5}.navigation-list a:hover{color:#fff}main{max-width:1160px;margin:auto;padding:30px 20px 80px}.hero-section{padding:72px 50px;margin:10px 0 36px;background:linear-gradient(135deg,#302342,#1a1c2a 65%);border:1px solid #68517f;border-radius:22px;box-shadow:var(--shadow)}.hero-section h1{font-size:clamp(2.6rem,5.7vw,4.8rem);line-height:1.12;letter-spacing:-.045em;margin:12px 0 20px}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:.73rem;font-weight:750;color:#c9a9ff}.intro{font-size:1.17rem;max-width:820px;color:#f0e9f7}.hero-note{max-width:790px;color:#c8bdd6}.button{display:inline-block;text-decoration:none;padding:10px 17px;border-radius:9px;background:#7651a7;color:#fff;font-weight:700;border:1px solid #ad8bdf;margin:4px 8px 4px 0;box-shadow:0 4px 10px #0004}.button:hover{background:#8b65b8}.content-section{background:rgba(27,28,41,.95);border:1px solid var(--stroke);border-radius:19px;padding:34px;margin:30px 0;box-shadow:var(--shadow)}.content-section>h2{font-size:clamp(1.9rem,3.5vw,2.7rem);line-height:1.15;letter-spacing:-.025em;margin:6px 0 22px}.content-section>h3{font-size:1.35rem;margin:34px 0 14px;padding-top:6px;border-top:1px solid #4a405b}.section-lead{max-width:800px;color:var(--muted);margin:-7px 0 25px}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.project{background:linear-gradient(165deg,#29283b,#202230);border:1px solid #514864;border-radius:13px;padding:21px 23px;margin:0;box-shadow:0 8px 19px #0004;min-width:0}.content-section>.project{margin:15px 0}.project h3{font-size:1.12rem;line-height:1.35;margin:0 0 11px;color:#fff}.project h3 span{font-weight:400;font-size:.86rem;color:var(--muted)}.project p{margin:9px 0 13px;color:#dcd7e6}.project ul{padding-left:20px;margin:9px 0}.project li{margin-bottom:7px}.project a{font-weight:600}.featured{grid-column:span 2;background:linear-gradient(120deg,#38294d,#252638);border-color:#8b6cb4;padding:26px}.featured h3{font-size:1.5rem}.featured-grid .project:first-child{grid-column:span 2;border-color:#775c97;background:linear-gradient(130deg,#322642,#242535)}.tag-row{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.tag{border:1px solid #665578;color:#e4d6f5;background:#3a304b;border-radius:999px;padding:2px 10px;font-size:.74rem}.card-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:14px}.card-links a{text-decoration:none;border-bottom:1px solid #aa87dc}.project-note{color:var(--muted);font-size:.87rem}.site-footer{text-align:center;padding:30px;color:#ada6ba;border-top:1px solid #44394f}.contact-section{text-align:center}.contact-section p{max-width:700px;margin:12px auto}@media(max-width:800px){.site-navigation{align-items:flex-start;flex-direction:column;gap:9px}.navigation-list{justify-content:flex-start}.hero-section{padding:38px 24px}.content-section{padding:25px 18px}.project-grid{grid-template-columns:1fr}.featured,.featured-grid .project:first-child{grid-column:auto}}@media(max-width:480px){main{padding:18px 10px}.content-section{margin:18px 0}.project{padding:17px}.navigation-list{gap:3px 10px}.navigation-list a{font-size:.75rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Revision 5: archival code samples status */
.source-note {border: 1px solid rgba(173,151,218,.42); border-radius: .55rem; padding: .6rem .8rem; margin-top: 1rem; font-size: .85rem; opacity: .85;}

/* Revision 7: higher-contrast pastel surfaces, still dark and restrained. */
:root{--bg:#12131e;--panel:#252638;--panel2:#2c3044;--muted:#c7c3d5;--accent:#d1b5f4;--accent2:#e0d2ff;--stroke:#817494;--shadow:0 18px 44px rgba(4,4,14,.43),0 4px 13px rgba(8,8,18,.28)}
body{background:radial-gradient(ellipse at 8% 4%,rgba(115,78,137,.28),transparent 39%),radial-gradient(ellipse at 96% 35%,rgba(83,108,146,.17),transparent 37%),linear-gradient(180deg,#171725,#10131d)}
.hero-section{background:linear-gradient(128deg,#47344f 0%,#313349 58%,#252c40 100%);border-color:#a18bb0;box-shadow:0 20px 48px #05040e70, inset 0 1px #ffffff18}
.content-section{background:linear-gradient(155deg,rgba(47,46,67,.97),rgba(30,34,49,.97));border-color:#726985;box-shadow:0 15px 40px #04030e63,inset 0 1px #ffffff12}
.project{background:linear-gradient(145deg,#363348,#282d40);border-color:#81728f;box-shadow:0 9px 24px #05050d5c,inset 0 1px #ffffff12}
.project:nth-child(3n+2){background:linear-gradient(145deg,#30394d,#292b3d);border-color:#7a90a3}
.project:nth-child(3n+3){background:linear-gradient(145deg,#403342,#2c2b3c);border-color:#9a7e98}
.project h3{color:#fff9ff}.project p{color:#e9e4f0}.project-note{color:#c9c3d8!important}
.writing-grid .writing-feature{border-color:#c3a2cc;background:linear-gradient(125deg,#4c3854,#303b53);box-shadow:0 13px 32px #06051170}
.writing-type{display:inline-block;color:#ead0fa;font-size:.73rem;font-weight:750;letter-spacing:.09em;text-transform:uppercase;margin-bottom:9px}
.writing-archive{grid-column:1/-1;background:linear-gradient(115deg,#35384f,#3c3147)!important}
.writing-grid .card-links a{display:inline-block;padding:6px 0;border-bottom:2px solid #d8b8ed}
@media(max-width:800px){.writing-archive{grid-column:auto}}

/* Phones: the header wraps to ~120px, so anchor jumps need more room */
@media(max-width:800px){html{scroll-padding-top:140px}}

/* Revision 11: social links, media clips, small theme refresh */
.brand{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.social-links{list-style:none;display:flex;gap:6px;margin:0;padding:0}
.social-links a{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;border:1px solid #6d5d86;color:#e8dcff;background:#2a2540;text-decoration:none;font-size:.95rem;transition:background .2s,border-color .2s,transform .2s}
.social-links a:hover{background:#7651a7;border-color:#c9adf0;color:#fff;transform:translateY(-1px)}
.media-clip{margin:16px 0 6px;border-radius:12px;overflow:hidden;border:1px solid #6f6385;background:#0d0d16;box-shadow:0 10px 26px #0006}
.media-clip video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#0d0d16;cursor:pointer}
.media-clip figcaption{font-size:.8rem;color:var(--muted);padding:8px 12px;border-top:1px solid #3d3550}
.featured .media-clip{max-width:760px}
.hero-section{position:relative;overflow:hidden}
.hero-section::after{content:"";position:absolute;right:-120px;top:-120px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(201,169,255,.18),transparent 70%);pointer-events:none}
.project{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.project:hover{transform:translateY(-2px);box-shadow:0 14px 30px #05050d7a,inset 0 1px #ffffff14}
.content-section>h2::after{content:"";display:block;width:56px;height:3px;margin-top:10px;border-radius:2px;background:linear-gradient(90deg,#c9a9ff,#7fa6d6)}
@media(prefers-reduced-motion:reduce){.project,.social-links a{transition:none}.project:hover{transform:none}}
@media(max-width:480px){.social-links a{width:30px;height:30px;font-size:.85rem}}
.media-clip img{display:block;width:100%;height:auto;background:#0d0d16}
.gallery-main{display:block}
.gallery-thumbs{display:flex;gap:6px;padding:8px 10px 10px;overflow-x:auto;border-top:1px solid #3d3550}
.gallery-thumb{flex:0 0 auto;width:84px;padding:0;border:2px solid #4d4363;border-radius:6px;overflow:hidden;background:#0d0d16;cursor:pointer;opacity:.7;transition:opacity .2s,border-color .2s}
.gallery-thumb img{display:block;width:100%;height:auto}
.gallery-thumb:hover,.gallery-thumb[aria-pressed="true"]{opacity:1;border-color:#c9a9ff}
.gallery-thumb:focus-visible{outline:3px solid #e4d7ff;outline-offset:2px}
.yt-play{position:relative;display:block;width:100%;padding:0;border:0;background:#000;cursor:pointer;aspect-ratio:16/9;overflow:hidden}
.yt-play img{display:block;width:100%;height:100%;object-fit:cover;opacity:.85;transition:opacity .2s}
.yt-play:hover img{opacity:1}
.yt-icon{position:absolute;left:50%;top:50%;width:68px;height:48px;transform:translate(-50%,-50%);border-radius:12px;background:rgba(118,81,167,.92);box-shadow:0 6px 18px #0008}
.yt-icon::after{content:"";position:absolute;left:27px;top:14px;border-style:solid;border-width:10px 0 10px 18px;border-color:transparent transparent transparent #fff}
.yt-play:focus-visible{outline:3px solid #e4d7ff;outline-offset:2px}
.yt-facade iframe{display:block;width:100%;aspect-ratio:16/9;border:0}
