:root {
  color-scheme: dark;
  --bg: #080e1b;
  --bg-raised: #0e1728;
  --panel: #121d30;
  --surface: #142137;
  --outline: rgba(162, 185, 227, .15);
  --outline-strong: rgba(162, 185, 227, .29);
  --text: #f1f5ff;
  --muted: #9caec9;
  --muted-light: #bdcce3;
  --accent: #8f9dff;
  --accent-secondary: #72ddff;
  --chip: #101b2d;
  --header: rgba(8, 14, 27, .82);
  --button: #e4eaff;
  --button-text: #121d32;
  --shadow: 0 16px 55px rgba(0,0,0,.23);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fc;
  --bg-raised: #ffffff;
  --panel: #ffffff;
  --surface: #f5f7fc;
  --outline: rgba(28, 52, 94, .13);
  --outline-strong: rgba(28, 52, 94, .25);
  --text: #172338;
  --muted: #5b6980;
  --muted-light: #41526e;
  --accent: #505ddd;
  --accent-secondary: #047cba;
  --chip: #edf1fb;
  --header: rgba(245, 247, 252, .88);
  --button: #172338;
  --button-text: #fff;
  --shadow: 0 16px 55px rgba(20, 38, 76, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent-secondary); outline-offset: 4px; }
::selection { background: #818df2; color: white; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; background: var(--button); color: var(--button-text); padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-shell { width: min(1344px, calc(100% - 92px)); margin: 0 auto; }
.site-header { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 10; border-bottom: 1px solid var(--outline); }
.site-header::before { content: ''; position: fixed; inset: 0 0 auto; height: 96px; background: var(--header); backdrop-filter: blur(18px); z-index: -1; pointer-events: none; opacity: 0; }
.wordmark { display: inline-flex; gap: 12px; align-items: center; font-size: 29px; letter-spacing: -.065em; font-weight: 800; white-space: nowrap; }
.brand-period, .heading-dot, .footer-logo span { color: var(--accent); }
.brand-icon { width: 31px; height: 31px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; transform: rotate(-9deg); }
.brand-icon i { display: block; border-radius: 4px; background: #8c99ff; }
.brand-icon i:nth-child(2) { background: #5fd9f6; border-radius: 4px 10px 4px 4px; }
.brand-icon i:nth-child(3) { background: #f3b77c; border-radius: 4px 4px 4px 10px; }
.brand-icon i:nth-child(4) { background: #83dfb3; }
.brand-divider { height: 24px; width: 1px; background: var(--outline-strong); margin-left: 4px; }
.brand-subtitle { font-size: 12px; letter-spacing: .05em; font-weight: 600; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 650; }
.header-actions a { color: var(--muted-light); transition: color .2s; }
.header-actions a:hover { color: var(--text); }
.theme-toggle { border: 1px solid var(--outline-strong); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--chip); color: var(--text); }
.theme-toggle svg { width: 20px; height: 20px; }
.sun-icon { display: none; }
:root[data-theme="light"] .sun-icon { display: block; }
:root[data-theme="light"] .moon-icon { display: none; }
.hero { min-height: 608px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 40px; align-items: center; padding: 62px 0 80px; position: relative; }
.hero::before { content: ''; position: absolute; width: 660px; height: 630px; background: radial-gradient(circle, rgba(105,103,230,.095), transparent 70%); top: -160px; right: -200px; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .145em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.sparkle { color: #8cdcca; font-size: 19px; }
.hero h1 { margin: 28px 0 25px; font-size: clamp(55px, 5.75vw, 86px); line-height: 1.065; letter-spacing: -.072em; font-weight: 830; }
.hero h1 span { background: linear-gradient(100deg, #99a6ff 6%, #6ad7ee 88%); background-clip: text; -webkit-background-clip: text; color: transparent; }
:root[data-theme="light"] .hero h1 span { background-image: linear-gradient(100deg,#5960d8 5%,#078fae 97%); }
.hero-lede { max-width: 620px; margin: 0; color: var(--muted-light); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.8; }
.hero-buttons { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 15px 23px; font-size: 14px; font-weight: 800; color: var(--button-text); background: var(--button); border-radius: 11px; min-height: 52px; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.primary-button span { font-size: 19px; font-weight: 400; }
.quiet-link { font-size: 14px; font-weight: 700; color: var(--muted-light); }
.quiet-link span { margin-left: 5px; }
.quiet-link:hover { color: var(--text); }
.hero-small { display: flex; gap: 9px; align-items: center; margin: 38px 0 0; font-size: 12px; color: var(--muted); }
.tiny-dot { height: 7px; width: 7px; border-radius: 50%; background: #7ae2b2; box-shadow: 0 0 15px rgba(122,226,178,.5); }
.hero-visual { height: 445px; min-width: 0; display: grid; place-items: center; position: relative; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(147,166,241,.13); }
.orbit-one { width: 455px; height: 455px; }
.orbit-two { width: 325px; height: 325px; transform: rotate(24deg); }
.floating-card { border: 1px solid rgba(160,182,240,.38); background: linear-gradient(145deg, #182641, #0d1629); box-shadow: 0 34px 80px rgba(0,0,0,.27); }
.center-card { width: 320px; height: 320px; border-radius: 25px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; transform: rotate(-7deg); position: relative; overflow: hidden; }
.center-card::before { content: ''; position: absolute; width: 270px; height: 270px; left: 30px; top: 42px; background: radial-gradient(circle,rgba(96,105,235,.30),transparent 70%); }
.mini-top, .mini-bottom { display: flex; justify-content: space-between; align-items: center; color: #9daed8; letter-spacing: .08em; font-size: 8px; font-weight: 750; position: relative; }
.mini-dots { display: inline-flex; gap: 5px; }
.mini-dots b { height: 7px; width: 7px; border-radius: 50%; background: #7894a8; }
.mini-dots b:first-child { background: #f0a39d; }
.mini-dots b:nth-child(2) { background: #f3c78b; }
.giant-glyph { color: #a7b1ff; font-size: 210px; text-shadow: 10px 15px 70px rgba(131,119,251,.5); line-height: 1; text-align: center; margin: -13px 0 0; }
.mini-bottom em { font-size: 17px; font-style: normal; }
.floating-label { padding: 13px 16px; border-radius: 15px; background: #1b2a42; color: #e9f2ff; box-shadow: 0 20px 45px rgba(0,0,0,.3); border: 1px solid #30445f; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 750; position: absolute; z-index: 3; white-space: nowrap; }
.label-icon { height: 32px; width: 32px; border-radius: 9px; display: grid; place-items: center; background: #31416c; color: #c4cdff; font-size: 18px; }
.label-stars { color: #89d6eb; }
.label-top { top: 44px; left: -5px; transform: rotate(5deg); }
.label-bottom { bottom: 40px; right: -12px; transform: rotate(6deg); }
.label-bottom .label-icon { background: #194a4b; color: #9befe8; }
.hero-coordinate { position: absolute; right: 2%; top: 14px; color: var(--muted); font-size: 10px; letter-spacing: .18em; }
.projects-section { padding: 36px 0 90px; border-top: 1px solid var(--outline); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-kicker { display: flex; align-items: center; gap: 12px; }
.kicker-line { width: 28px; height: 1px; background: var(--accent); }
.section-head h2 { font-size: clamp(30px, 3.8vw, 47px); font-weight: 800; line-height: 1.1; letter-spacing: -.055em; margin: 17px 0 13px; }
.section-head p { color: var(--muted); font-size: 15px; margin: 0; }
.total-count { text-align: right; display: flex; flex-direction: column; }
.total-count strong { font-size: 46px; line-height: 1; letter-spacing: -.07em; font-weight: 800; }
.total-count span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; margin-top: 7px; }
.directory-controls { margin-top: 36px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 1px solid var(--outline); border-radius: 9px; background: var(--chip); color: var(--muted-light); padding: 10px 14px; font-size: 12px; font-weight: 700; transition: .2s; }
.filter:hover { border-color: var(--outline-strong); color: var(--text); }
.filter.is-active { background: var(--button); color: var(--button-text); border-color: transparent; }
.filter span { margin-left: 6px; opacity: .65; }
.search-box { height: 41px; width: min(270px, 100%); display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--outline-strong); border-radius: 9px; background: var(--chip); color: var(--muted); }
.search-box:focus-within { border-color: var(--accent); }
.search-box svg { width: 17px; height: 17px; flex: none; }
.search-box input { background: transparent; border: 0; outline: none; min-width: 0; width: 100%; font-size: 12px; color: var(--text); }
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus-visible { outline: none; }
.results-summary { font-size: 11px; color: var(--muted); margin: 17px 0 18px; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.project-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--outline); border-radius: 17px; background: var(--bg-raised); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.project-card:hover, .project-card:focus-within { transform: translateY(-5px); border-color: var(--outline-strong); box-shadow: var(--shadow); }
.project-art { height: 154px; position: relative; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--color-deep), var(--color-soft)); border-bottom: 1px solid rgba(255,255,255,.06); }
.project-art::before { content: ''; position: absolute; top: -106px; right: -40px; width: 260px; height: 260px; border: 1px solid var(--color-line); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.02), 0 0 0 78px rgba(255,255,255,.014); }
.art-grid { position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(to right, rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 31px 31px; mask-image: linear-gradient(90deg,transparent,black); }
.art-symbol { position: relative; color: var(--color-title); font-size: 80px; font-weight: 700; line-height: 1; letter-spacing: -.07em; text-shadow: 0 8px 42px var(--color-glow); transform: rotate(-6deg); }
.art-caption { position: absolute; bottom: 12px; left: 17px; color: var(--color-title); font-size: 9px; letter-spacing: .17em; font-weight: 800; opacity: .64; }
.accent-violet { --color-deep:#241d4d; --color-soft:#4b3476; --color-line:#7f65c9; --color-title:#d1bdff; --color-glow:#a27fff; }
.accent-cyan { --color-deep:#10314c; --color-soft:#1c5b6c; --color-line:#60b0c5; --color-title:#9ce9ff; --color-glow:#43cde7; }
.accent-amber { --color-deep:#463021; --color-soft:#72502c; --color-line:#b68c4e; --color-title:#ffe0a8; --color-glow:#ffc776; }
.accent-blue { --color-deep:#152751; --color-soft:#304f86; --color-line:#668bd8; --color-title:#b3d1ff; --color-glow:#78a8ff; }
.accent-rose { --color-deep:#4b263d; --color-soft:#824967; --color-line:#cc8bb5; --color-title:#ffd0e5; --color-glow:#ff85b9; }
.accent-green { --color-deep:#1e3c31; --color-soft:#386c45; --color-line:#79bf83; --color-title:#bff2ab; --color-glow:#87e6a9; }
.accent-teal { --color-deep:#12393e; --color-soft:#21696a; --color-line:#4cabad; --color-title:#9df4e1; --color-glow:#67dddf; }
.accent-slate { --color-deep:#263143; --color-soft:#526178; --color-line:#8b9eb2; --color-title:#cbd8eb; --color-glow:#abc5dc; }
.project-body { display: flex; flex: 1; flex-direction: column; padding: 20px 20px 21px; }
.card-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.project-kind { color: var(--accent); font-size: 10px; letter-spacing: .06em; font-weight: 800; text-transform: uppercase; }
.project-category { color: var(--muted); font-size: 10px; }
.project-body h3 { font-size: 18px; line-height: 1.28; letter-spacing: -.025em; margin: 13px 0 10px; }
.project-body p { font-size: 12.5px; color: var(--muted-light); line-height: 1.72; margin: 0 0 26px; flex: 1; }
.project-link { align-self: flex-start; display: inline-flex; gap: 9px; align-items: center; font-size: 12px; font-weight: 800; color: var(--text); padding: 7px 0; }
.project-link span { font-size: 15px; transition: transform .2s; }
.project-link:hover span { transform: translate(3px,-2px); }
.empty-state { border: 1px dashed var(--outline-strong); border-radius: 16px; padding: 55px 18px; text-align: center; }
.empty-state > span { font-size: 52px; color: var(--accent); }
.empty-state h3 { font-size: 22px; margin: 8px 0; }
.empty-state p { color: var(--muted); font-size: 14px; }
.secondary-button { color: var(--text); background: var(--chip); border: 1px solid var(--outline-strong); border-radius: 9px; padding: 10px 20px; font-weight: 750; }
.about { border: 1px solid var(--outline-strong); border-radius: 23px; background: linear-gradient(115deg, var(--panel), var(--bg-raised)); padding: 46px 57px; display: flex; gap: 35px; align-items: center; overflow: hidden; position: relative; }
.about-mark { align-self: flex-start; font-size: 38px; line-height: 1; color: var(--accent); letter-spacing: -.2em; font-weight: 900; margin-right: 4px; }
.about-text { flex: 1; max-width: 700px; }
.about-text h2 { font-size: clamp(25px, 2.7vw, 37px); letter-spacing: -.05em; line-height: 1.17; margin: 12px 0 20px; }
.about-text p { font-size: 14px; line-height: 1.8; color: var(--muted-light); margin: 0 0 11px; }
.about-stamp { border: 2px dashed var(--outline-strong); border-radius: 50%; height: 190px; width: 190px; flex: 0 0 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transform: rotate(12deg); color: var(--accent); text-align: center; }
.about-stamp span { font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.about-stamp strong { font-size: 25px; letter-spacing: -.04em; line-height: 1; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 85px; padding: 36px 0 33px; border-top: 1px solid var(--outline); }
.footer-logo { font-size: 25px; font-weight: 800; letter-spacing: -.065em; }
.footer-left p, .footer-right p { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.footer-right { text-align: right; }
.footer-right a { color: var(--muted-light); font-weight: 700; font-size: 12px; display: inline-block; margin-top: 11px; }
.footer-right a:hover { color: var(--text); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--outline); padding-top: 21px; color: var(--muted); font-size: 11px; }
.error-page { max-width: 600px; margin: 18vh auto; padding: 20px; text-align: center; }
.error-code { color: var(--accent); font-size: 100px; font-weight: 850; line-height: 1; }
.error-page h1 { font-size: 35px; letter-spacing: -.04em; }
.error-page p { color: var(--muted); margin-bottom: 30px; }
@media (max-width: 1150px) {
  .site-shell { width: min(100% - 64px, 1180px); }
  .hero { grid-template-columns: 1.2fr .8fr; gap: 15px; }
  .hero-visual { transform: scale(.83); transform-origin: center; }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .hero { min-height: 0; padding: 80px 0 75px; grid-template-columns: 1fr; }
  .hero-visual { height: 325px; transform: scale(.8); }
  .hero h1 { font-size: clamp(54px, 9vw, 76px); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-controls { align-items: stretch; }
  .search-box { width: 100%; }
  .about { padding: 38px; }
  .about-stamp { width: 140px; height: 140px; flex-basis: 140px; }
  .about-stamp strong { font-size: 20px; }
}
@media (max-width: 560px) {
  .site-shell { width: calc(100% - 34px); }
  .site-header { height: 75px; }
  .wordmark { font-size: 26px; }
  .brand-subtitle, .brand-divider, .header-actions .nav-about, .header-actions .nav-projects { display: none; }
  .hero { padding: 67px 0 43px; }
  .hero h1 { font-size: clamp(49px, 12.9vw, 67px); margin: 24px 0 20px; }
  .eyebrow { font-size: 9px; letter-spacing: .07em; }
  .hero-lede { font-size: 16px; }
  .hero-buttons { gap: 19px; align-items: flex-start; flex-direction: column; }
  .hero-small { margin-top: 25px; }
  .hero-visual { height: 280px; transform: scale(.64); margin: -15px 0; }
  .projects-section { padding-top: 35px; }
  .section-head h2 { font-size: 34px; }
  .section-head p { font-size: 13px; }
  .total-count { display: none; }
  .filter-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; width: calc(100vw - 34px); scrollbar-width: thin; }
  .filter { flex: none; }
  .directory-controls { margin-top: 26px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-art { height: 165px; }
  .project-body { padding: 21px; }
  .project-body p { font-size: 13px; }
  .about { padding: 31px 25px; gap: 20px; }
  .about-mark { display: none; }
  .about-stamp { display: none; }
  .site-footer { grid-template-columns: 1fr; gap: 22px; margin-top: 60px; }
  .footer-right { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
