:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --text: #0d1117;
  --muted: #5b6472;
  --line: #e1e4ea;
  --brand: #2f5bff;
  --brand-ink: #ffffff;
  --term-bg: #0d1117;
  --term-fg: #d7dde6;
  --term-dim: #6b7585;
  --term-str: #9ecbff;
  --term-ok: #56d364;
  --ok: #15803d;
  --glow-a: rgba(47, 91, 255, 0.14);
  --glow-b: rgba(20, 184, 166, 0.1);
  --shadow: 0 1px 2px rgba(13, 17, 23, 0.04), 0 10px 28px rgba(13, 17, 23, 0.07);
  --radius: 16px;
  --max: 1120px;
  --dock-w: 400px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a0c10;
    --ok: #4ade80;
    --surface: #11141a;
    --surface-2: #181c24;
    --text: #eef1f5;
    --muted: #8b94a3;
    --line: #232935;
    --brand: #6d8cff;
    --term-bg: #0e1117;
    --glow-a: rgba(109, 140, 255, 0.18);
    --glow-b: rgba(20, 184, 166, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 36px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0a0c10;
    --ok: #4ade80;
  --surface: #11141a;
  --surface-2: #181c24;
  --text: #eef1f5;
  --muted: #8b94a3;
  --line: #232935;
  --brand: #6d8cff;
  --term-bg: #0e1117;
  --glow-a: rgba(109, 140, 255, 0.18);
  --glow-b: rgba(20, 184, 166, 0.1);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 36px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 Geist, system-ui, -apple-system, 'Segoe UI', Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
::selection {
  background: var(--brand);
  color: var(--brand-ink);
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.mono {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
}
.label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 16px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Nav: a floating glass pill */
.nav-wrap {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  padding: 12px 16px 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(var(--max) - 32px);
  margin: 0 auto;
  padding: 7px 7px 7px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow 0.3s, background 0.3s, max-width 0.4s;
}
.nav.is-scrolled {
  max-width: 900px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-right: auto;
}
.brand__name {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.brand__dot {
  width: 7px;
  height: 7px;
  fill: var(--brand);
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.brand:hover .brand__dot {
  transform: scale(1.35);
}
.nav__links {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.nav__pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(13, 17, 23, 0.08), 0 0 0 1px var(--line);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1),
    width 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.2s;
}
.nav__links a {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav__clock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.nav__clock .mono {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.nav__clock .dot {
  width: 7px;
  height: 7px;
}
.nav__ask {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 7px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 500 0.88rem Geist, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.2s;
}
.nav__ask:hover {
  transform: translateY(-1px);
}
.nav__ask svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.6s;
}
.nav__ask:hover svg {
  transform: rotate(90deg);
}
.nav__ask kbd {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 20%, transparent);
  font-size: 0.72rem;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.i-moon {
  display: none;
}
:root[data-theme='dark'] .i-sun {
  display: none;
}
:root[data-theme='dark'] .i-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .i-sun {
    display: none;
  }
  :root:not([data-theme='light']) .i-moon {
    display: block;
  }
}

/* Hero: glyph field behind text and agent */
.hero {
  position: relative;
  margin-top: -64px;
  padding-top: 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-top: 96px;
  padding-bottom: 96px;
}
.hero__text {
  position: relative;
  isolation: isolate;
}
.hero__text::before {
  content: '';
  position: absolute;
  inset: -48px -64px;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 92%, transparent) 60%, transparent);
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
.hero__title {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.hero__intro {
  margin-top: 24px;
  max-width: 58ch;
  font-size: 1.12rem;
  color: var(--muted);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 32px;
}

/* Agent console */
.agent {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.agent.is-busy {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.agent__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.agent__led {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  transition: background 0.2s;
}
.agent__led.is-busy {
  background: var(--brand);
  animation: pulse-brand 1s infinite;
}
@keyframes pulse-brand {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent);
  }
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}
.agent__badge {
  padding: 1px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 500;
  cursor: help;
}
.agent__nano {
  flex: none;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.72rem;
  cursor: pointer;
}
.agent__nano:hover {
  border-color: var(--brand);
}
.agent__line.is-ext {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--brand);
}
.agent__line.is-ext .a {
  color: var(--text);
}
.agent__line.is-ext .r {
  color: var(--muted);
}
.agent__dock {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin: -4px -6px -4px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.agent__dock:hover {
  color: var(--text);
  background: var(--surface-2);
}
.agent__dock svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.agent__dock .i-collapse,
.agent.is-docked .agent__dock .i-expand {
  display: none;
}
.agent.is-docked .agent__dock .i-collapse {
  display: block;
}

/* Docked: the console becomes a sidebar */
.agent.is-docked,
.agent.is-flying {
  position: fixed;
  z-index: 60;
  margin: 0;
}
.agent.is-docked {
  top: 12px;
  left: auto;
  right: 12px;
  width: var(--dock-w);
  height: calc(100dvh - 24px);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(13, 17, 23, 0.18), 0 0 0 1px var(--line);
}
.agent.is-docked .agent__log {
  flex: 1;
  height: auto;
}
.agent-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  animation: line-in 0.4s ease-out;
}
.agent-holder.is-ghost > * {
  visibility: hidden;
}
.agent-holder__btn {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 500 0.82rem Geist, system-ui, sans-serif;
  cursor: pointer;
}
.agent-holder__btn:hover {
  border-color: var(--brand);
}
@media (min-width: 1100px) {
  html.agent-docked .nav-wrap,
  html.agent-docked main,
  html.agent-docked .footer {
    margin-right: calc(var(--dock-w) + 24px);
  }
  html.agent-docked .footer {
    padding-right: 24px;
  }
}
.nav-wrap,
main,
.footer {
  transition: margin-right 0.6s cubic-bezier(0.3, 0.7, 0.2, 1);
}
@media (max-width: 640px) {
  .agent.is-docked {
    top: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
  }
}
.agent__name {
  white-space: nowrap;
  font-weight: 500;
  color: var(--text);
}
.agent__meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent__log {
  height: 244px;
  overflow-y: auto;
  padding: 14px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  scrollbar-width: thin;
}
.agent__line {
  animation: line-in 0.25s ease-out;
}
@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.agent__line .k {
  display: inline-block;
  min-width: 1.4em;
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.agent__line.is-user {
  margin-top: 6px;
  font-weight: 500;
}
.agent__line.is-user:first-child {
  margin-top: 0;
}
.agent__line.is-plan,
.agent__line.is-tool,
.agent__line.is-done {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.agent__line.is-plan .k {
  min-width: 3.2em;
  color: var(--text);
}
.agent__line.is-tool {
  color: var(--brand);
}
.agent__line.is-tool .a {
  color: var(--text);
}
.agent__line.is-tool .r {
  color: var(--muted);
}
.agent__line.is-say {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  line-height: 1.55;
}
.agent__line.is-done {
  color: var(--ok);
}
.agent__form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 12px 0;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.agent__form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent);
}
.agent__prompt {
  color: var(--brand);
  font-size: 1rem;
}
.agent__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 400 0.95rem Geist, system-ui, sans-serif;
}
.agent__form input::placeholder {
  color: var(--muted);
}
.agent__run {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
}
.agent__run svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.agent__chips {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 10px 12px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.agent__chips::-webkit-scrollbar {
  display: none;
}
.agent__chip {
  flex: none;
  white-space: nowrap;
}
.agent__try {
  margin-right: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}
.agent__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px 0 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: 500 0.8rem Geist, system-ui, sans-serif;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.agent__chip::before {
  content: '↳';
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--brand);
  opacity: 0.7;
}
.agent__chip:hover,
.agent__chip:focus-visible {
  color: var(--text);
  background: var(--surface-2);
}
.agent__chip:active {
  transform: translateY(1px);
}

/* Agent-driven project filter */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--text);
  font: 500 0.85rem Geist, system-ui, sans-serif;
  cursor: pointer;
}
.filter-chip__x {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  line-height: 1;
}
#work .project,
#work .pcard {
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.2s,
    opacity 0.45s, filter 0.45s;
}
#work.has-filter .project:not(.is-match),
#work.has-filter .pcard:not(.is-match) {
  opacity: 0.25;
  filter: grayscale(0.8);
}
#work.has-filter .project.is-match {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
#work.has-filter .pcard.is-match {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.btn:hover svg {
  transform: translateX(2px);
}
.btn:hover {
  border-color: color-mix(in srgb, var(--text) 25%, var(--line));
}
.btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn--primary:hover {
  background: color-mix(in srgb, var(--text) 86%, var(--brand));
  border-color: transparent;
}
.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: transparent;
  background: var(--surface-2);
}
.btn--lg {
  height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding-top: 72px;
  padding-bottom: 72px;
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section__head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

/* Featured projects */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, opacity 0.6s;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.project__art {
  position: relative;
  aspect-ratio: 16 / 7;
  max-width: 100%;
  background: radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 60%),
    radial-gradient(80% 80% at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--surface-2);
  overflow: hidden;
}
.project__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 18%, transparent) 1px, transparent 1.5px);
  background-size: 16px 16px;
  mask-image: linear-gradient(200deg, rgba(0, 0, 0, 0.9), transparent 70%);
  -webkit-mask-image: linear-gradient(200deg, rgba(0, 0, 0, 0.9), transparent 70%);
}
.project__meta {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.project__kind,
.project__year {
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line);
  color: var(--text);
}
.project__year {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.project__title {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 14px;
  z-index: 1;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text);
  transition: transform 0.4s;
}
.project:hover .project__title {
  transform: translateX(4px);
}
.project__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 24px;
  flex: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
.project .links {
  margin-top: auto;
  padding-top: 4px;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 500;
}
.links a:hover {
  color: var(--accent, var(--brand));
}
.links .link-icon {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}
.links svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.2s;
}
.links a:hover svg:last-child {
  transform: translate(2px, -2px);
}

/* Compact project list */
.more-label {
  margin-top: 56px;
}
.plist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.pcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.pcard__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pcard__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
}
.pcard__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pcard__title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pcard__title h3 {
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.pcard__title .mono {
  font-size: 0.74rem;
}
.pcard p {
  font-size: 0.9rem;
  line-height: 1.55;
}
.pcard .links {
  margin-top: auto;
  gap: 6px;
}
.pcard .links a {
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.8rem;
}
.pcard .links a > svg:last-child {
  display: none;
}
.pcard .links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-2));
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}
.about__text p {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 65ch;
}
.about__text p + p {
  margin-top: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
}

/* Timeline */
.timeline li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child {
  border-bottom: 0;
}
.timeline h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* Contact */
.contact__card {
  text-align: center;
  padding: 72px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(60% 80% at 50% 0%, var(--glow-a), transparent 70%),
    var(--surface);
}
.contact__card h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.contact__card .btn {
  margin-top: 32px;
  word-break: break-all;
}
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
}
.socials a {
  color: var(--muted);
  font-weight: 500;
}
.socials a:hover {
  color: var(--text);
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 32px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer a:hover {
  color: var(--text);
}

/* Reveal: items below the fold start slightly lowered and fade in. */
.reveal.is-pending {
  opacity: 0;
  transform: translateY(14px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1000px) {
  .nav__clock {
    display: none;
  }
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 820px) {
  .projects,
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__grid {
    gap: 32px;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .nav__links,
  .nav__ask kbd {
    display: none;
  }
  .nav-wrap {
    padding: 8px 12px 0;
  }
  .hero__grid {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .agent__log {
    height: 220px;
  }
  .agent__meta {
    display: none;
  }
  .plist {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .contact__card {
    padding: 48px 20px;
  }
}
