:root {
  color-scheme: dark;
  --bg: hsl(230 30% 8%);
  --fg: hsl(0 0% 98%);
  --muted: hsl(230 15% 70%);
  --accent: hsl(42 90% 62%);
  --card: hsl(230 30% 14% / 0.6);
  --line: hsl(230 30% 30% / 0.5);
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, hsl(230 40% 20%), var(--bg) 70%) fixed, var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; padding: .75rem 1rem; background: var(--accent); color: #111; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1rem, 5vw, 3rem);
  backdrop-filter: blur(12px); background: hsl(230 30% 8% / 0.6); border-bottom: 1px solid var(--line);
}
.nav nav { display: flex; gap: .25rem; }
.nav nav a { text-decoration: none; color: var(--muted); padding: .65rem .9rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; }
.nav nav a:hover { color: var(--fg); background: var(--card); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; font-size: 1.1rem; }
.mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: hsl(230 40% 14%); color: var(--accent); border: 1px solid var(--line); font-weight: 800; }

main { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.hero { text-align: center; padding: clamp(4rem, 14vh, 9rem) 0 clamp(3rem, 8vh, 5rem); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .35em; font-size: .85rem; font-weight: 600; }
.hero h1 { font-size: clamp(3rem, 11vw, 6.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 1rem 0; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 38rem; margin-inline: auto; }
.cta {
  display: inline-flex; align-items: center; min-height: 48px; margin-top: 2rem; padding: 0 1.5rem;
  border-radius: 999px; background: var(--accent); color: #141414; font-weight: 700; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px hsl(42 90% 62% / .25); }

.portfolio { padding-bottom: 5rem; }
.group { margin-top: 3rem; }
.group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.grid { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.25rem 1.25rem 1.1rem;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  text-decoration: none; backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: hsl(42 90% 62% / .6); background: hsl(230 30% 17% / .75); }
.name { font-weight: 700; font-size: 1.1rem; }
.name::after { content: " ↗"; color: var(--accent); font-weight: 400; }
.desc { color: var(--muted); font-size: .95rem; flex: 1; }
.host { color: var(--accent); font-size: .8rem; opacity: .85; word-break: break-all; }

.footer {
  border-top: 1px solid var(--line); padding: 2.5rem clamp(1rem, 5vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center;
}
.footer address { font-style: normal; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer address a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.footer address a:hover { color: var(--fg); }
.muted { color: var(--muted); }
.small { font-size: .85rem; width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .8s ease-out both; }
  .hero > *:nth-child(2) { animation-delay: .08s; }
  .hero > *:nth-child(3) { animation-delay: .16s; }
  .hero > *:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
