:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --text: #ececf0;
  --muted: #96969f;
  --accent: #a3afff;
  --line: rgba(255,255,255,.09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: #a3afff; color: #0c0d10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 2px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 10; padding: 1rem; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 1rem; }
.site-header, .projects, .site-footer { width: min(100% - 6rem, 1280px); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; height: 104px; display: flex; align-items: center; justify-content: space-between; background: rgba(12,13,16,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.wordmark { font-weight: 750; letter-spacing: -.07em; line-height: 1.1; }
.site-header .wordmark { font-size: 1.35rem; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.site-header { gap: 1rem; flex-wrap: wrap; }
.wordmark span { color: var(--accent); }
.nav-link { position: relative; display: inline-flex; min-height: 44px; align-items: center; font-size: .875rem; color: var(--muted); transition: color .25s; }
.nav-link::after { content: ""; height: 1px; position: absolute; bottom: 7px; inset-inline: 0; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-link:hover { color: var(--text); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }
.hero { isolation: isolate; position: relative; display: grid; place-items: center; min-height: max(480px, calc(100svh - 104px)); overflow: hidden; }
.hero-title { position: relative; margin: -4rem 0 0; padding: 0 1rem; font-size: clamp(3.2rem, 10.8vw, 10rem); font-weight: 550; letter-spacing: -.065em; line-height: .98; text-align: center; animation: arrive 1.2s cubic-bezier(.16,1,.3,1) both; }
.hero-title span { color: var(--accent); text-shadow: 0 0 70px rgba(145,160,255,.18); }
.hero-title .hero-copy { color: var(--text); text-shadow: none; }
.hero-title .hero-copy { display: inline-block; transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
.hero-title .hero-period { display: inline-block; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.hero-title .hero-copy.is-changing { opacity: 0; transform: translateY(8px); filter: blur(5px); }
.ambient { z-index: -1; position: absolute; inset: 0; opacity: .8; pointer-events: none; background: radial-gradient(ellipse 40% 44% at 50% 45%, rgba(117,130,200,.075), transparent 100%); transform: translate(var(--drift-x, 0px), var(--drift-y, 0px)); transition: transform 1.8s cubic-bezier(.2,.6,.2,1); }
.scroll-cue { position: absolute; bottom: 2.5rem; left: calc(50% - 24px); width: 48px; height: 48px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; transition: color .25s, border-color .25s, transform .3s; }
.scroll-cue:hover { color: var(--text); border-color: #626574; transform: translateY(3px); }
.projects { border-top: 1px solid var(--line); padding-block: 3rem; min-height: 42svh; }
.projects-preview { min-height: auto; }
.projects-preview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.projects-preview-kicker { margin: 0 0 1rem; color: var(--muted); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.projects.projects-preview h2 { margin: 0; font-size: clamp(2.75rem, 7vw, 6rem); font-weight: 500; letter-spacing: -.065em; line-height: .92; }
.projects-preview-details { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.project-preview-copy { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.7; }
.project-index-link { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; border-bottom: 1px solid var(--line); padding: .5rem 0; color: var(--text); font-size: .875rem; transition: border-color .25s, color .25s, transform .25s; }
.project-index-link:hover { border-color: #626574; color: var(--accent); transform: translateX(3px); }
.project-preview-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: .5rem; list-style: none; margin: 0; padding: .25rem 0 0; }
.project-preview-tags li { font-size: .8125rem; color: #a5a5af; border: 1px solid var(--line); border-radius: 5px; padding: .35rem .65rem; line-height: 1.5; }
.project-preview-tags .project-status { border-color: rgba(163,175,255,.28); color: var(--accent); }
.projects-page { min-height: calc(100svh - 104px); padding-block: 4.5rem 2rem; }
.projects-page-title { margin: 0; font-size: clamp(3rem, 8vw, 7rem); font-weight: 550; letter-spacing: -.065em; line-height: .98; }
.projects-page-description { max-width: 38rem; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.7; }
.projects-page .project-list { margin-top: 4rem; }
.projects h2 { margin: 0; font-size: 1rem; font-weight: 450; letter-spacing: -.025em; }
.project-list:empty { min-height: 8rem; }
.project-list:not(:empty) { margin-top: 2.5rem; }
.project-entry { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem 3rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.projects-page .project-entry:last-child { padding-bottom: 0; }
.project-summary { min-width: 0; }
.project-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.project-heading h2, .project-heading h3 { margin: 0; font-size: clamp(1.5rem, 2.7vw, 2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
.project-status { --status-color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; color: var(--status-color); font-size: .875rem; line-height: 1.5; }
.project-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.project-status[data-stage="in-development"] { --status-color: #a3afff; }
.project-status[data-stage="ongoing"] { --status-color: #82c7bd; }
.project-status[data-stage="paused"] { --status-color: #d8b67e; }
.project-status[data-stage="finished"] { --status-color: #9ecb9f; }
.project-summary p { margin: 1rem 0 0; max-width: 42rem; font-size: 1rem; color: var(--muted); line-height: 1.7; }
.project-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: .5rem; list-style: none; margin: 0; padding: .25rem 0 0; }
.project-tags li { font-size: .875rem; color: #a5a5af; border: 1px solid var(--line); border-radius: 5px; padding: .35rem .65rem; line-height: 1.5; }
@media (max-width: 720px) {
  .project-entry { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .project-tags { justify-content: flex-start; padding-top: 0; }
}
.section-content { max-width: 40rem; margin-top: 2rem; }
.about-section { min-height: auto; }
.contact-section { min-height: auto; }
.contact-section .section-content { margin-top: 1.5rem; }
.about-copy p { margin: 0 0 1.25rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.7; }
.about-copy p:first-child { color: var(--text); }
.email-link { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(1.3rem, 3.5vw, 2.5rem); letter-spacing: -.04em; padding-block: .5rem; transition: color .25s; }
.email-link:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); min-height: 104px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.25rem; }
.footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.copyright { margin: 0; font-size: .8125rem; color: var(--muted); }
.site-version { font-size: .75rem; color: var(--muted); opacity: .72; }
.footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.5rem; margin-left: auto; }
.site-footer a { font-size: .8125rem; letter-spacing: -.04em; color: var(--muted); padding-block: 1rem; transition: color .25s; }
.site-footer a:hover { color: var(--text); }
.error-page { min-height: 100svh; display: grid; place-content: center; text-align: center; padding: 2rem; }
.error-page h1 { margin: 1rem 0; font-size: clamp(3rem, 9vw, 8rem); letter-spacing: -.07em; }
.error-kicker { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.error-page p { color: var(--muted); }
.error-page a { padding: 1rem; color: var(--accent); }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@media (max-width: 720px) {
  .site-header, .projects, .site-footer { width: calc(100% - 3rem); }
  .site-header { height: 88px; }
  .hero { min-height: max(380px, calc(100svh - 88px)); }
  .hero-title { margin-top: -3rem; }
  .projects { min-height: 36svh; padding-block: 2rem; }
  .projects-preview { min-height: auto; }
  .projects-preview-heading { align-items: flex-start; flex-direction: column; gap: 1.75rem; }
  .projects-preview-details { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 2rem; }
  .project-preview-tags { justify-content: flex-start; padding-top: 0; }
  .projects-page { min-height: auto; padding-block: 3rem 2rem; }
  .projects-page .project-list { margin-top: 2.5rem; }
  .contact-section { min-height: auto; }
  .scroll-cue { bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ambient { transform: none; }
  .hero-title .hero-copy { transition: none; }
  .hero-title .hero-period { transition: none; }
}
