@font-face { font-family: Geist; src: url('assets/geist.woff2'); }
@font-face { font-family: Geist Mono; src: url('assets/geist-mono.woff2'); }

:root { color-scheme: light dark; --background:#dbdee2; --foreground:#141414; --muted:#dbdee2; --muted-foreground:#45484b; --border:#bbbec2; --ring:#bbbec2; --dock-glass:rgb(255 255 255 / .10); }
@media (prefers-color-scheme: dark) { :root { --background:#191c1e; --foreground:#f9f9f9; --muted:#323538; --muted-foreground:#8f8f8f; --border:#404346; --ring:#404346; --dock-glass:rgb(0 0 0 / .10); }
 }
:root[data-theme=light] { --background:#dbdee2; --foreground:#141414; --muted:#dbdee2; --muted-foreground:#45484b; --border:#bbbec2; --ring:#bbbec2; --dock-glass:rgb(255 255 255 / .10); }
:root[data-theme=dark] { --background:#191c1e; --foreground:#f9f9f9; --muted:#323538; --muted-foreground:#8f8f8f; --border:#404346; --ring:#404346; --dock-glass:rgb(0 0 0 / .10); }

* { box-sizing:border-box; }
img { user-select:none; -webkit-user-drag:none; }
:where(a, button, input, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--foreground) 50%, transparent);
  outline-offset: 3px;
}
html { min-height:100%; scroll-behavior:smooth; }
body { min-height:100vh; margin:0; background:var(--background); color:var(--foreground); font-family:Geist,Arial,sans-serif; font-size:16px; line-height:1.5; }
main { display:flex; min-height:100vh; flex-direction:column; justify-content:flex-start; gap:47px; padding:80px 20px; padding-bottom:160px; }
.section { display:flex; width:100%; max-width:730px; margin:0 auto; gap:24px; }
.section > h2, .section-label { flex:0 0 75px; width:75px; margin:0; padding-top:2px; color:color-mix(in srgb,var(--muted-foreground) 60%,transparent); font:400 12px/1.35 'Geist Mono',monospace; letter-spacing:-.03em; text-align:right; text-transform:lowercase; }
.section > h2::before { content:'/'; }
.hero { align-items:baseline; }
.hero { margin-top:0; }
.hero-content { display:flex; flex-direction:column; gap:34px; }
.avatar { width:96px; height:96px; border-radius:999px; box-shadow:0 0 0 4px var(--ring),0 0 0 6px var(--background); object-fit:cover; user-select:none; }
h1 { margin:0; font-size:30px; font-weight:700; letter-spacing:-.055em; line-height:1.1; }
.about { margin-top:-21px; margin-bottom:17px; }
@media (min-width:800px) { .hero-content { gap:37px; }
.about { margin-top:-24px; }
 }
@media (min-width:1024px) { .section > h2 { position:sticky; top:32px; z-index:1; align-self:flex-start; }
 }
.copy { display:flex; max-width:512px; flex-direction:column; gap:10px; color:var(--muted-foreground); text-wrap:balance; }
.copy p { margin:0; }
.inline-icon { display:inline-block; color:var(--foreground); font-size:18px; line-height:1; transform:translateY(-1px); }

.socials { align-items:center; margin-bottom:17px; }
.social-links { display:flex; flex-wrap:wrap; align-items:center; gap:20px; }
.social-links a { display:flex; align-items:center; gap:10px; color:var(--muted-foreground); font-size:14px; text-decoration:none; transition:color .3s; }
.social-links a:hover { color:var(--foreground); }
.social-icon { display:flex; width:32px; height:32px; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:4px; background:linear-gradient(45deg,var(--muted),transparent); color:var(--foreground); font-size:18px; transition:box-shadow .3s; }
.social-links a:hover .social-icon { box-shadow:0 0 0 4px var(--ring); }
.github { font-size:17px; }
.github svg { width:18px; height:18px; fill:currentColor; }
.linkedin { font:700 15px Arial,sans-serif; }

.contact { align-items:baseline; }
.contact-form { width:100%; max-width:512px; }
.contact-step { overflow:hidden; max-height:0; opacity:0; transform:translateY(8px); transition:max-height .45s cubic-bezier(.22,1,.36,1),opacity .25s ease,transform .35s ease; }
.contact-intent { max-height:260px; opacity:1; transform:none; }
.contact-form.show-name .contact-name,.contact-form.show-email .contact-email,.contact-form.show-message .contact-message { max-height:180px; margin-top:14px; opacity:1; transform:none; }
.contact-prompt { margin:0 0 10px; color:var(--muted-foreground); }
.contact-options { display:flex; flex-wrap:wrap; gap:8px; }
.contact-options button { padding:7px 9px; border:1px solid var(--border); border-radius:6px; background:color-mix(in srgb,var(--background) 76%,transparent); color:var(--muted-foreground); cursor:pointer; font:12px 'Geist Mono',monospace; transition:border-color .2s,background .2s,color .2s,transform .2s; }
.contact-options button:hover,.contact-options button.is-selected { border-color:var(--muted-foreground); background:var(--background); color:var(--foreground); }
.contact-options button.is-selected { transform:translateY(-1px); }
.contact-step label { display:flex; flex-direction:column; gap:6px; color:var(--muted-foreground); font:12px 'Geist Mono',monospace; }
.contact-step input,.contact-step textarea { width:100%; border:1px solid var(--border); border-radius:6px; outline:0; background:color-mix(in srgb,var(--background) 76%,transparent); color:var(--foreground); font:14px Geist,Arial,sans-serif; transition:border-color .2s,box-shadow .2s; }
.contact-step input { height:38px; padding:0 10px; }
.contact-step textarea { min-height:96px; padding:10px; resize:vertical; }
.contact-step input:focus,.contact-step textarea:focus { border-color:var(--muted-foreground); box-shadow:0 0 0 3px color-mix(in srgb,var(--ring) 48%,transparent); }
.honeypot { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.contact-actions { display:flex; max-height:0; align-items:center; gap:12px; margin-top:0; overflow:hidden; opacity:0; transform:translateY(8px); transition:max-height .45s cubic-bezier(.22,1,.36,1),margin .45s ease,opacity .25s ease,transform .35s ease; }
.contact-form.show-submit .contact-actions { max-height:44px; margin-top:14px; opacity:1; transform:none; }
.contact-actions button { display:flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid var(--border); border-radius:6px; background:var(--background); color:var(--muted-foreground); cursor:pointer; font:12px 'Geist Mono',monospace; transition:border-color .2s,color .2s; }
.contact-actions button:hover:not(:disabled) { border-color:var(--muted-foreground); color:var(--foreground); }
.contact-actions button:disabled { cursor:wait; opacity:.65; }
.contact-status { min-height:18px; margin:0; color:var(--muted-foreground); font-size:13px; }
.contact-status.is-error { color:#d9544d; }
.contact-status.is-success { color:#328162; }

.projects { align-items:baseline; margin-bottom:17px; }
.projects-wrap { position:relative; min-width:0; flex:1; margin:-16px; padding:16px; overflow:hidden; max-height:296px; transition:height .72s cubic-bezier(.22,1,.36,1); }
.project-list { display:flex; min-height:596px; flex-flow:row wrap; align-content:flex-start; gap:16px; }
.project { position:relative; display:flex; min-width:0; min-height:86px; flex:1 1 100%; flex-direction:column; gap:8px; overflow:hidden; padding:12px 16px; border:1px solid var(--project-border,var(--border)); border-radius:8px; background:color-mix(in srgb,var(--background) 99.5%,var(--project-a,var(--background))); color:var(--foreground); text-decoration:none; transition:background .3s,box-shadow .3s; isolation:isolate; }
.project::after { position:absolute; z-index:0; inset:0; background:linear-gradient(135deg,var(--project-a),color-mix(in srgb,var(--project-a) 38%,var(--project-b))); content:''; opacity:.018; pointer-events:none; }
.project:hover { box-shadow:0 0 0 4px color-mix(in srgb,var(--project-a) 20%,transparent); }
.project.is-revealing { animation:project-reveal .34s cubic-bezier(.22,1,.36,1) both; animation-delay:var(--reveal-delay,0ms); }
@keyframes project-reveal { from { opacity:0; transform:translateY(8px); }
 to { opacity:1; transform:translateY(0); }
 }
@media (prefers-reduced-motion:reduce) { .project.is-revealing { animation:none; }
 }
.project-type,.external,strong { position:relative; z-index:1; }
.project-type { display:-webkit-box; overflow:hidden; padding-right:28px; -webkit-box-orient:vertical; -webkit-line-clamp:2; color:color-mix(in srgb,var(--muted-foreground) 75%,transparent); font-size:12px; line-height:1.35; }
.external { position:absolute; z-index:2; top:12px; right:14px; display:flex; width:20px; height:20px; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:3px; background:var(--muted); color:var(--muted-foreground); font-size:14px; }
strong { margin-bottom:4px; font-size:16px; font-weight:500; letter-spacing:-.03em; line-height:1.35; }
.haze { --project-border:#8b7ac640; --project-a:#b0a6df; --project-b:#655586; }
.pink { --project-border:#db277740; --project-a:#f9a8d4; --project-b:#be185d; }
.blue { --project-border:#2563eb40; --project-a:#93c5fd; --project-b:#2563eb; }
.aqua { --project-border:#0891b240; --project-a:#67e8f9; --project-b:#0e7490; }
.violet { --project-border:#7c3aed40; --project-a:#c4b5fd; --project-b:#6d28d9; }
.amber { --project-border:#d9770640; --project-a:#fcd34d; --project-b:#b45309; }
.green { --project-border:#15803d40; --project-a:#86efac; --project-b:#15803d; }
@media (prefers-color-scheme: dark) { .project::after { opacity:.035; }
.haze { --project-border:#c4b5fd80; --project-a:#c4b5fd; --project-b:#7c3aed; }
.pink { --project-border:#f9a8d480; --project-a:#f9a8d4; --project-b:#db2777; }
.blue { --project-border:#93c5fd80; --project-a:#93c5fd; --project-b:#2563eb; }
.aqua { --project-border:#67e8f980; --project-a:#67e8f9; --project-b:#0891b2; }
.violet { --project-border:#c4b5fd80; --project-a:#ddd6fe; --project-b:#7c3aed; }
.amber { --project-border:#fcd34d80; --project-a:#fde68a; --project-b:#d97706; }
.green { --project-border:#86efac80; --project-a:#86efac; --project-b:#15803d; }
 }
:root[data-theme=dark] .project::after { opacity:.035; }
:root[data-theme=dark] .haze { --project-border:#c4b5fd80; --project-a:#c4b5fd; --project-b:#7c3aed; }
:root[data-theme=dark] .pink { --project-border:#f9a8d480; --project-a:#f9a8d4; --project-b:#db2777; }
:root[data-theme=dark] .blue { --project-border:#93c5fd80; --project-a:#93c5fd; --project-b:#2563eb; }
:root[data-theme=dark] .aqua { --project-border:#67e8f980; --project-a:#67e8f9; --project-b:#0891b2; }
:root[data-theme=dark] .violet { --project-border:#c4b5fd80; --project-a:#ddd6fe; --project-b:#7c3aed; }
:root[data-theme=dark] .amber { --project-border:#fcd34d80; --project-a:#fde68a; --project-b:#d97706; }
:root[data-theme=dark] .green { --project-border:#86efac80; --project-a:#86efac; --project-b:#15803d; }
.project-fade { position:absolute; right:0; bottom:0; left:0; z-index:4; height:110px; background:linear-gradient(to top,var(--background) 38%,color-mix(in srgb,var(--background) 80%,transparent),transparent); pointer-events:none; }
.show-more { position:absolute; bottom:0; left:50%; display:flex; width:fit-content; height:50px; align-items:center; justify-content:center; border:0; background:transparent; color:var(--muted-foreground); cursor:pointer; pointer-events:auto; transform:translateX(-50%); }
.show-more-inner { display:flex; align-items:center; gap:6px; padding:4px 8px 4px 10px; border:1px solid color-mix(in srgb,var(--foreground) 10%,transparent); border-radius:6px; background:var(--background); font:12px 'Geist Mono',monospace; transition:border-color .3s,color .3s; }
.show-more:hover .show-more-inner { border-color:color-mix(in srgb,var(--foreground) 25%,transparent); color:var(--foreground); }
.chevrons { font-size:13px; }
.projects-wrap.is-open { max-height:1000px; }
.projects-wrap.is-open .project-fade { visibility:hidden; }
.show-more:disabled { cursor:default; }
.site-footer { display:flex; align-items:center; justify-content:center; margin: 40px 0 0; }
.site-footer img { width:48px; height:48px; object-fit:contain; filter:grayscale(1); opacity:.45; }
.pagination { display:none; align-items:center; justify-content:center; gap:4px; margin-top:24px; }
.projects-wrap.is-open .pagination { display:flex; }
.pagination button { display:flex; width:28px; height:28px; align-items:center; justify-content:center; border:1px solid transparent; border-radius:5px; background:transparent; color:var(--muted-foreground); cursor:pointer; font:12px 'Geist Mono',monospace; }
.pagination button:hover:not(:disabled),.pagination button.is-active { border-color:color-mix(in srgb,var(--foreground) 16%,transparent); background:color-mix(in srgb,var(--muted) 55%,transparent); color:var(--foreground); }
.pagination button.is-active { font-weight:700; }
.pagination button:disabled { cursor:default; opacity:.32; }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.dock { position:fixed; z-index:20; right:16px; bottom:32px; left:16px; display:flex; justify-content:center; pointer-events:none; opacity:1; transform:translateY(0); transition:opacity .18s ease,transform .22s cubic-bezier(.22,1,.36,1); }
.dock.is-hidden { pointer-events:none; opacity:0; transform:translateY(18px); }
.dock.is-hidden .dock-panel { pointer-events:none; }
.dock-panel { position:relative; display:flex; width:max-content; height:48px; align-items:center; gap:0; padding:0; border:1px solid var(--border); border-radius:8px; background:var(--dock-glass); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); pointer-events:auto; overflow: hidden; }
.dock a,.dock button { position:relative; display:flex; width:48px; height:48px; align-items:center; justify-content:center; border:0; border-radius:0; background:transparent; color:var(--foreground); cursor:pointer; font:500 18px Geist,Arial,sans-serif; text-decoration:none; transition:background .2s,color .2s; }
.dock a svg,.dock button svg { display:block; width:18px; height:18px; flex:0 0 18px; }
.dock a:hover,.dock button:hover { background:color-mix(in srgb,var(--muted-foreground) 18%,transparent); }
.dock a[aria-label=Home],.dock a[aria-label=LinkedIn] { margin-right:0; }
.dock a[aria-label=Home]::after,.dock a[aria-label=LinkedIn]::after { position:absolute; top:0; right:0; width:1px; height:48px; background:var(--border); content:''; pointer-events:none; }
.dock a[aria-label=LinkedIn] { font:700 14px Arial,sans-serif; }

@media (min-width:608px) { .project-list { min-height:290px; }
.project { flex:0 0 calc(50% - 8px); }
 }
@media (max-width:900px) { .section.hero { gap:0; }
.section.hero .section-label { display:none; }
.section.socials,.section.projects,.section.contact { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
.section.socials > h2,.section.projects > h2,.section.contact > h2 { display:block; width:auto; min-width:0; flex:0 0 auto; padding:0; text-align:left; white-space:nowrap; }
.section.socials .social-links,.section.projects .projects-wrap,.section.contact .contact-form { width:100%; min-width:0; flex:0 0 auto; }
.about > h2 { display:none; }
 }
@media (max-width:600px) { main { gap:34px; padding:56px 20px 128px; }
.hero-content,.copy { min-width:0; }
.hero-content { gap:24px; }
.about { margin-top:-16px; margin-bottom:0; }
.projects-wrap { margin:-16px; }
.dock { right:5px; bottom:8px; left:5px; }
.dock-panel { gap:1px; padding:7px; }
.dock a,.dock button { width:38px; height:38px; }
 }

/* Keep focus rings inside the animated contact-step clipping boundary. */
.contact-name,.contact-email,.contact-message { margin-right:-4px; margin-left:-4px; padding:4px; }

@media (prefers-reduced-motion: no-preference) {
  .section.is-revealable {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease var(--section-delay, 0ms), transform 0.55s cubic-bezier(.22, 1, .36, 1) var(--section-delay, 0ms);
  }

  .section.is-revealable.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
