@charset "UTF-8";

/* Tokens and motifs follow the duskcode landing page, so the two sites read as one family. */
:root {
  color-scheme: dark;
  --bg: #0e0f18;
  --panel: #13141f;
  --card: #1b1c2a;
  --raised: #262839;
  --text: #efedf7;
  --soft: #aeadc4;
  --muted: #8f8ea8;
  --line: rgba(239, 237, 247, .09);
  --accent: #b4a0f8;
  --on-accent: #13121d;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fast: 160ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3, p { margin: 0; }
::selection { color: var(--on-accent); background: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 10; top: 12px; left: 12px;
  padding: 10px 14px; border-radius: 8px;
  color: var(--on-accent); background: var(--accent); font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--fast) ease-out;
}
.skip-link:focus { transform: none; }

/* The violet sky carries the same dusk motif as the app. */
.sky {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(130, 90, 230, .16), transparent 70%),
    linear-gradient(#0b0b16, #14132a 60%, #1a1630);
  border-bottom: 1px solid var(--line);
}
/*
  Stars are one dot repeated with box-shadow: the CSP forbids inline positions.
  They stay clear of the hero text: a band under the navigation at every width,
  and the empty right side of the sky on wide screens.
*/
.sky::before, .sky::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 2px; height: 2px; border-radius: 50%; pointer-events: none;
}
.sky::before {
  box-shadow:
    0.0vw 108px 0 0 rgba(220, 214, 255, .4),
    21.1vw 97px 0 0 rgba(220, 214, 255, .4),
    32.9vw 99px 0 0 rgba(220, 214, 255, .4),
    54.3vw 95px 0 0 rgba(220, 214, 255, .4),
    81.7vw 71px 0 0 rgba(220, 214, 255, .4),
    70.8vw 96px 0 0 rgba(220, 214, 255, .4),
    68.4vw 83px 0 .5px rgba(220, 214, 255, .8),
    80.7vw 65px 0 0 rgba(220, 214, 255, .4),
    92.3vw 95px 0 0 rgba(220, 214, 255, .4),
    57.7vw 107px 0 .5px rgba(220, 214, 255, .8),
    37.2vw 76px 0 0 rgba(220, 214, 255, .4),
    33.2vw 66px 0 0 rgba(220, 214, 255, .4);
}
@media (min-width: 1100px) {
  .sky::after {
    box-shadow:
      77.1vw 200px 0 .5px rgba(220, 214, 255, .8),
      82.3vw 331px 0 .5px rgba(220, 214, 255, .8),
      62.3vw 194px 0 0 rgba(220, 214, 255, .4),
      80.4vw 238px 0 0 rgba(220, 214, 255, .4),
      96.4vw 128px 0 0 rgba(220, 214, 255, .4),
      73.8vw 311px 0 .5px rgba(220, 214, 255, .8),
      80.6vw 162px 0 0 rgba(220, 214, 255, .4),
      71.3vw 221px 0 0 rgba(220, 214, 255, .4),
      73.3vw 271px 0 0 rgba(220, 214, 255, .4),
      69.3vw 384px 0 0 rgba(220, 214, 255, .4),
      94.5vw 303px 0 0 rgba(220, 214, 255, .4),
      80.6vw 263px 0 0 rgba(220, 214, 255, .4),
      97.6vw 231px 0 0 rgba(220, 214, 255, .4),
      70.0vw 288px 0 0 rgba(220, 214, 255, .4),
      73.2vw 229px 0 0 rgba(220, 214, 255, .4),
      95.1vw 145px 0 0 rgba(220, 214, 255, .4),
      63.1vw 234px 0 0 rgba(220, 214, 255, .4),
      63.1vw 411px 0 0 rgba(220, 214, 255, .4),
      85.3vw 155px 0 0 rgba(220, 214, 255, .4),
      83.7vw 153px 0 .5px rgba(220, 214, 255, .8),
      95.4vw 379px 0 .5px rgba(220, 214, 255, .8),
      96.3vw 340px 0 0 rgba(220, 214, 255, .4),
      60.4vw 186px 0 0 rgba(220, 214, 255, .4),
      60.1vw 297px 0 0 rgba(220, 214, 255, .4);
  }
}

.topbar { position: relative; display: flex; align-items: center; gap: 22px; padding: 18px 0; }
.brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--text); font-size: 18px; font-weight: 650;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-link { color: var(--soft); font-size: 15px; }
.lang-toggle {
  min-width: 44px; min-height: 36px; padding: 0 10px;
  font: 13px var(--mono); color: var(--text); cursor: pointer;
  background: rgba(14, 15, 24, .72); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color var(--fast) ease-out;
}
.lang-toggle:hover { border-color: var(--accent); }

.hero { position: relative; padding: clamp(48px, 9vw, 104px) 0 clamp(56px, 9vw, 108px); }
h1 {
  font-size: clamp(40px, 6.6vw, 72px); line-height: 1.05; letter-spacing: -.03em;
  font-weight: 680; text-wrap: balance;
}
.role { margin-top: 14px; font: 15px/1.5 var(--mono); color: var(--accent); }
.lead { margin-top: 22px; max-width: 620px; color: var(--soft); font-size: clamp(17px, 2.2vw, 20px); }
.hero .actions { margin-top: 30px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button, .chip-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
}
.button { color: var(--on-accent); background: var(--accent); transition: filter var(--fast) ease-out; }
.button:hover { filter: brightness(1.08); text-decoration: none; }
.chip-link {
  color: var(--text); background: rgba(14, 15, 24, .72); border: 1px solid var(--line);
  transition: border-color var(--fast) ease-out;
}
.chip-link:hover { border-color: var(--accent); text-decoration: none; }

section { padding: clamp(42px, 7vw, 72px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 8px; }
h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; letter-spacing: -.015em; font-weight: 650; text-wrap: balance; }
.sub { max-width: 640px; margin: 10px 0 36px; color: var(--soft); }

.featured {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.featured-body { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.featured-label {
  padding: 3px 9px; border-radius: 6px;
  font: 12.5px/1.5 var(--mono); color: var(--accent); background: var(--raised);
}
.featured h3 {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  font-size: 28px; line-height: 1.2; letter-spacing: -.015em; font-weight: 650;
}
.featured h3 img { width: 40px; height: 40px; }
.featured-description { margin-top: 12px; color: var(--soft); font-size: 16px; }
.featured .project-stack { margin: 16px 0 22px; padding: 0; border: 0; }
.featured .actions { margin-top: auto; }
.featured .chip-link { min-height: 40px; padding: 0 13px; font-size: 14.5px; background: var(--panel); }
.featured-shot {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  border-left: 1px solid var(--line);
}

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 18px; }
.filter-chip {
  min-height: 36px; padding: 0 12px;
  font: 13px var(--mono); color: var(--soft); cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  transition: color var(--fast) ease-out, border-color var(--fast) ease-out, background-color var(--fast) ease-out;
}
.filter-chip:hover { color: var(--text); border-color: rgba(180, 160, 248, .5); }
.filter-chip[aria-pressed="true"] { color: var(--text); background: var(--raised); border-color: rgba(180, 160, 248, .5); }

.project-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.project-card {
  display: flex; flex-direction: column; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.project-area { font: 12.5px/1.5 var(--mono); color: var(--accent); }
.project-card h3 { margin: 8px 0 6px; font-size: 19px; font-weight: 620; }
.project-name { color: var(--text); }
.project-name:hover { color: var(--accent); text-decoration: none; }
.project-description { color: var(--soft); font-size: 16px; }
.project-details { margin: 12px 0 18px; font-size: 15px; }
.project-details summary { width: fit-content; color: var(--muted); cursor: pointer; }
.project-details summary:hover { color: var(--text); }
.project-details p { margin-top: 8px; color: var(--soft); }
.project-stack {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  font: 12.5px/1.5 var(--mono); color: var(--muted);
}
.project-more {
  align-items: flex-start; justify-content: center; gap: 16px;
  color: var(--soft); background: none; border-style: dashed; border-color: rgba(239, 237, 247, .16);
}

.points { display: grid; gap: 28px 36px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.points h3 { margin-bottom: 6px; font-size: 17px; font-weight: 620; }
.points h3::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px;
  border-radius: 50%; background: var(--accent); vertical-align: 2px;
}
.points p { color: var(--soft); font-size: 16px; }

footer {
  display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 34px 0 48px;
  color: var(--muted); font-size: 14.5px;
}
footer span { margin-right: auto; }

@media (max-width: 820px) {
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured-shot { order: -1; height: auto; border-left: 0; border-bottom: 1px solid var(--line); }
  .featured-body { padding: 22px 20px 24px; }
}
@media (max-width: 560px) {
  .nav-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
