:root {
  --ink: #26194a;
  --accent: #2e1065;
  --peach: #ffedd5;
  --pink: #fbcfe8;
  --brown: #451a03;
  --cream: #fdf4ff;
  --paper: #fffaf3;
  --muted: #655b70;
  --stackje-font-display: "Space Mono", monospace;
  --stackje-font-body: "Inter", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; font-family: var(--stackje-font-body), sans-serif; color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16px; }
h1, h2, h3, .mono { font-family: var(--stackje-font-display), monospace; line-height: 1.12; margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #78350f; outline-offset: 4px; border-radius: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
header.top { position: sticky; top: 0; z-index: 10; background: rgba(255,250,243,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(69,26,3,.12); }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 72px; }
.logo { font-family: var(--stackje-font-display), monospace; font-weight: 700; text-decoration: none; color: var(--accent); font-size: 1.2rem; letter-spacing: -.08em; }
nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
nav a { text-decoration: none; padding: 5px 0; color: var(--muted); border-bottom: 1px solid transparent; font-size: .91rem; }
nav a:hover, nav a[aria-current] { color: var(--ink); border-color: var(--accent); }
.hero { position: relative; min-height: min(760px, calc(100svh - 72px)); display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: clamp(32px, 6vw, 90px); max-width: 1320px; margin: 0 auto; padding: 76px clamp(32px, 7vw, 100px) 88px; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 48vw; height: 48vw; max-width: 640px; max-height: 640px; right: -8vw; top: 8%; border-radius: 50%; background: var(--peach); z-index: -1; }
.hero-note { position: absolute; left: clamp(32px, 7vw, 100px); bottom: 32px; display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .72rem; line-height: 1.45; letter-spacing: .02em; }
.note-rule { width: 34px; border-top: 1px solid var(--accent); }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; }
.portrait-frame { width: min(100%, 490px); position: relative; padding: 22px; }
.portrait-frame::before { content: ""; position: absolute; inset: 11% 6% 4% 12%; background: var(--pink); border-radius: 49% 48% 42% 50%; transform: rotate(-8deg); }
.hero-avatar { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 48% 48% 44% 48%; mix-blend-mode: normal; }
.portrait-orbit { position: absolute; z-index: 2; width: 110%; height: auto; left: -5%; top: -3%; color: var(--accent); overflow: visible; animation: orbit-drift 12s ease-in-out infinite alternate; }
.portrait-stamp { position: absolute; z-index: 3; bottom: 5%; right: -4%; width: 72px; height: 72px; display: grid; place-content: center; border-radius: 50%; background: var(--accent); color: white; font-family: var(--stackje-font-display), monospace; font-size: .8rem; line-height: 1.1; text-align: center; transform: rotate(9deg); box-shadow: 0 8px 22px rgba(46,16,101,.18); }
.portrait-stamp svg { width: 16px; height: 16px; margin: 2px auto 0; display: block; }
.hero-copy { position: relative; z-index: 2; padding: 20px 0 38px; }
.hero-kicker { margin: 0 0 22px; color: var(--accent); font-family: var(--stackje-font-display), monospace; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.25rem, 7.2vw, 6.7rem); letter-spacing: -.095em; line-height: .98; max-width: 8ch; }
.role-line { max-width: 35ch; margin: 22px 0 0; font-size: 1.12rem; font-weight: 600; line-height: 1.45; }
.hero p.lead { color: var(--muted); max-width: 43ch; margin: 15px 0 0; font-size: .97rem; }
.hero-more { display: inline-flex; gap: 11px; align-items: center; margin-top: 23px; color: var(--accent); font-size: .88rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(46,16,101,.35); padding-bottom: 5px; }
.hero-more span { transition: transform .2s; }
.hero-more:hover span { transform: translateY(3px); }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(46,16,101,.22); border-radius: 50%; text-decoration: none; color: var(--accent); transition: color .2s, background .2s, transform .2s; }
.socials a:hover { background: var(--accent); color: white; transform: translateY(-2px); }
.socials a span { font-family: Arial, sans-serif; font-size: 1rem; font-weight: 700; }
.sec { padding: 100px 0; }
.sec h2 { font-size: clamp(2rem, 4.3vw, 3.45rem); letter-spacing: -.07em; margin-bottom: 24px; }
.sec p { max-width: 62ch; }
.dark { background: var(--accent); color: var(--paper); }
.dark p { color: #eee5f2; }
.dark .wrap { max-width: 930px; }
#about .wrap { position: relative; padding-left: clamp(32px, 9vw, 128px); }
#about .wrap::before { content: ""; position: absolute; left: 32px; top: 6px; bottom: 0; border-left: 1px solid rgba(255,237,213,.4); }
#about .thinking-copy { max-width: 68ch; font-size: clamp(1.02rem, 1.65vw, 1.18rem); line-height: 1.85; }
#about .thinking-copy p + p { margin-top: 1.2em; }
.pinkbg { background: var(--pink); color: var(--brown); }
.split { display: grid; grid-template-columns: .72fr 1.5fr; gap: clamp(28px, 7vw, 100px); align-items: start; }
.projects-section { position: relative; overflow: hidden; }
.projects-section::after { content: ""; position: absolute; width: 300px; height: 300px; right: -130px; bottom: -180px; border: 1px solid rgba(69,26,3,.16); border-radius: 50%; box-shadow: 0 0 0 22px transparent, 0 0 0 23px rgba(69,26,3,.11), 0 0 0 48px transparent, 0 0 0 49px rgba(69,26,3,.08); pointer-events: none; }
.projects-section .split > div { position: sticky; top: 120px; }
.projects-section .split > div p { max-width: 31ch; line-height: 1.75; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.plist li { min-width: 0; animation: project-enter .55s both; animation-delay: calc(var(--card-order,0) * 75ms); }
.plist li:nth-child(1) { --card-order: 0; }
.plist li:nth-child(2) { --card-order: 1; }
.plist li:nth-child(3) { --card-order: 2; }
.plist li:nth-child(4) { --card-order: 3; }
.plist a { height: 100%; min-height: 228px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 17px; background: rgba(255,250,243,.77); border: 1px solid rgba(69,26,3,.15); border-radius: 4px 4px 24px 4px; color: var(--brown); text-decoration: none; transition: transform .23s ease, box-shadow .23s ease, background .23s ease; }
.plist a:hover { transform: translateY(-5px) rotate(-.3deg); background: #fffaf3; box-shadow: 0 15px 30px rgba(69,26,3,.1); }
.project-logo { width: 72px; height: 72px; border-radius: 15px; object-fit: cover; }
.project-copy { min-width: 0; }
.plist h3 { font-size: 1.02rem; overflow-wrap: anywhere; }
.plist p { margin: 8px 0 0; font-size: .85rem; line-height: 1.55; color: #5d4a43; }
.plist a > svg { display: none; }
.links { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.links a { display: inline-block; padding: 10px 15px; border: 1px solid rgba(255,250,243,.38); border-radius: 999px; color: var(--paper); font-weight: 600; font-size: .9rem; text-decoration: none; text-transform: capitalize; }
.links a:hover { background: var(--paper); color: var(--accent); }
footer { padding: 25px 0; background: var(--brown); color: var(--peach); font-size: .85rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: nowrap; }
footer .powered-by { margin: 0; white-space: nowrap; }
footer .powered-by a { color: inherit; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes project-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit-drift { from { transform: rotate(-3deg) scale(.98); } to { transform: rotate(3deg) scale(1.01); } }
@media (max-width: 820px) {
  .wrap { padding: 0 24px; }
  .hero { min-height: 0; grid-template-columns: .82fr 1fr; gap: 22px; padding: 72px 36px 86px; }
  .hero::after { width: 65vw; height: 65vw; right: -16vw; top: 10%; }
  .hero-note { left: 36px; }
  .hero h1 { font-size: clamp(3rem, 8vw, 5rem); }
  .split { grid-template-columns: .65fr 1.35fr; gap: 28px; }
  .plist { gap: 12px; }
  .plist a { min-height: 212px; padding: 14px; }
}
@media (max-width: 620px) {
  header.top .wrap { min-height: 64px; }
  nav ul { gap: 20px; }
  nav a { font-size: .84rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 15px; padding: 35px 26px 77px; }
  .hero-art { order: 0; align-self: center; width: min(78vw, 330px); }
  .portrait-frame { padding: 13px; }
  .portrait-stamp { width: 59px; height: 59px; font-size: .68rem; right: -2%; }
  .hero-copy { order: 1; padding: 10px 0 0; }
  .hero-kicker { margin-bottom: 13px; font-size: .64rem; }
  .hero h1 { max-width: none; font-size: clamp(3.15rem, 16vw, 5.1rem); }
  .role-line { margin-top: 16px; font-size: 1rem; }
  .hero p.lead { font-size: .91rem; }
  .hero-note { left: 27px; bottom: 22px; }
  .hero::after { width: 88vw; height: 88vw; right: -24vw; top: 2%; }
  .sec { padding: 68px 0; }
  #about .wrap { padding-left: 52px; }
  #about .wrap::before { left: 24px; }
  .split { grid-template-columns: 1fr; gap: 23px; }
  .projects-section .split > div { position: static; }
  .projects-section .split > div p { max-width: 42ch; }
  .plist { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
  .plist a { min-height: 196px; gap: 18px; padding: 12px; }
  .project-logo { width: 58px; height: 58px; border-radius: 12px; }
  .plist h3 { font-size: .9rem; }
  .plist p { font-size: .77rem; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 19px; }
  nav ul { gap: 13px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-note { left: 21px; }
  .plist { grid-template-columns: 1fr; }
  .plist a { min-height: 146px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
  .project-copy { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .plist li { animation: none; }
}
