:root {
  --bg: #090b0e;
  --surface: rgba(18, 22, 28, 0.82);
  --surface-strong: #0f1318;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --ink: #f3f5f7;
  --muted: #9ea6b1;
  --soft: rgba(151, 160, 173, 0.13);
  --line: rgba(151, 160, 173, 0.18);
  --accent: #c7d0dc;
  --accent-strong: #e8edf4;
  --accent-soft: rgba(199, 208, 220, 0.12);
  --radius: 20px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --section-glow: radial-gradient(circle at top left, rgba(174, 184, 198, 0.08), transparent 42%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(177, 188, 202, 0.12), transparent 26%),
    radial-gradient(circle at 76% 34%, rgba(92, 100, 114, 0.12), transparent 24%);
  filter: blur(34px);
  animation: gradientDrift 22s ease-in-out infinite alternate;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 14, 0.72);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(244, 248, 251, 0.78);
}

.desktop-nav a {
  border-radius: 999px;
  padding: 8px 13px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.desktop-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.mobile-nav {
  position: fixed;
  inset: 72px 14px auto 14px;
  z-index: 19;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 20, 31, 0.92);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  color: var(--ink);
}

.mobile-nav.open {
  display: grid;
}

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section-heading h2,
.writing-layout h2,
.apps-panel h2,
.about-card h2 {
  font-weight: 780;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding: 54px 0 34px;
}

.hero-copy {
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 600px;
  margin-bottom: 22px;
  font-size: clamp(44px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-text {
  max-width: 33rem;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-facts span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 248, 251, 0.84);
  font-size: 13px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 720;
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button.primary {
  background: linear-gradient(180deg, #f0f3f7, #cfd7e2);
  color: #0b0f14;
}

.button.primary:hover {
  background: linear-gradient(180deg, #ffffff, #d9e0ea);
  box-shadow: 0 14px 30px rgba(207, 215, 226, 0.14);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.button.magnetic {
  will-change: transform;
}

.button.magnetic:hover {
  transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px));
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  transform: translateY(var(--parallax-y, 0));
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 12, 0.2), rgba(6, 10, 12, 0.84)),
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(192, 203, 218, 0.12), transparent 24%);
  pointer-events: none;
  transition: opacity 180ms ease;
  opacity: 0.9;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
}

.hero-avatar-chip {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 2;
  width: 84px;
  height: 84px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hero-avatar-chip img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 18px;
  object-fit: cover;
}

.status-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(12, 15, 20, 0.62);
  backdrop-filter: blur(16px);
  color: rgba(244, 248, 251, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.hero-summary-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: 340px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(12, 15, 20, 0.64);
  backdrop-filter: blur(16px);
  color: var(--ink);
}

.hero-summary-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.hero-summary-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-summary-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.status-panel div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fd6a7;
  box-shadow: 0 0 0 5px rgba(143, 214, 167, 0.14);
}

.signal-strip {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: -22px auto 120px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.signal-strip a {
  display: grid;
  min-height: 118px;
  align-content: space-between;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--section-glow);
  color: var(--muted);
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.signal-strip a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.signal-strip span {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.signal-strip a:hover span {
  color: var(--ink);
}

.signal-strip a,
.project-card,
.post-list article,
.knowledge-grid article,
.tool-grid article,
.card-link,
.detail-section,
.tool-panel,
.release-card,
.app-links a,
.profile-list div {
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease,
    background 240ms ease,
    opacity 240ms ease;
}

.signal-strip a:hover,
.project-card:hover,
.post-list article:hover,
.knowledge-grid article:hover,
.tool-grid article:hover,
.card-link:hover,
.app-links a:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

.card-link {
  display: block;
  color: inherit;
}

.now-section,
.projects-section,
.blog-section,
.knowledge-section,
.interview-section,
.tools-section,
.apps-section,
.about-section {
  padding: 0 0 120px;
  scroll-margin-top: 100px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading.compact {
  max-width: 600px;
}

.section-heading p,
.writing-layout p,
.apps-panel p,
.about-card p,
.project-card p,
.knowledge-grid li,
.tool-grid p,
.now-grid p,
.question-panel p {
  color: var(--muted);
}

.now-section,
.capability-section,
.stack-section,
.projects-section,
.impact-section,
.blog-section,
.knowledge-section,
.interview-section,
.tools-section,
.apps-section,
.about-section {
  position: relative;
}

.now-section::before,
.capability-section::before,
.stack-section::before,
.projects-section::before,
.impact-section::before,
.blog-section::before,
.knowledge-section::before,
.interview-section::before,
.tools-section::before,
.apps-section::before,
.about-section::before {
  content: "";
  position: absolute;
  inset: -18px -12px auto;
  height: 180px;
  z-index: -1;
  background: var(--section-glow);
  pointer-events: none;
  opacity: 0.78;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.capability-grid,
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.now-grid article,
.capability-card,
.impact-grid article,
.project-card,
.post-list article,
.post-card,
.tool-grid article,
.tool-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.now-grid article {
  min-height: 260px;
  padding: 24px;
}

.capability-card,
.impact-grid article {
  min-height: 250px;
  padding: 24px;
}

.now-grid span,
.capability-card span,
.project-meta,
.post-list span,
.tool-grid span,
.question-header span {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 16px;
}

.stack-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stack-panel {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stack-panel strong {
  display: block;
  margin-bottom: 18px;
  font-size: 19px;
  line-height: 1.3;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(199, 208, 220, 0.08);
  color: var(--accent-strong);
  font-size: 13px;
}

.project-card {
  padding: 26px;
}

.project-card.featured {
  grid-row: span 2;
  display: flex;
  min-height: 460px;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(19, 24, 30, 0.96), rgba(8, 10, 14, 0.99)),
    var(--ink);
  color: var(--ink);
  background-size: 160% 160%;
  animation: gradientFlow 22s ease-in-out infinite alternate;
}

.project-card.project-visual {
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
}

.project-card.project-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.project-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 14, 0.1), rgba(8, 12, 14, 0.86) 68%, rgba(8, 12, 14, 0.96)),
    radial-gradient(circle at 82% 18%, rgba(194, 205, 220, 0.18), transparent 28%);
}

.project-card.project-visual > *:not(img):not(.project-visual-overlay) {
  position: relative;
  z-index: 1;
}

.project-card.featured p,
.project-card.featured .project-meta,
.project-card.featured li {
  color: rgba(255, 255, 255, 0.76);
}

.project-card:not(.featured) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--surface);
}

.case-card {
  min-height: 220px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.project-meta span {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 9px;
}

.project-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.writing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(380px, 1.24fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  padding: 10px 0 4px;
}

.blog-intro-panel {
  display: grid;
  gap: 0;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015)),
    rgba(13, 16, 21, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.blog-intro-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: 1.08;
}

.blog-intro-panel p {
  font-size: 16px;
  line-height: 1.75;
}

.blog-intro-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.blog-intro-meta span,
.blog-intro-meta strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--accent-strong);
}

.blog-intro-meta strong {
  color: rgba(255, 255, 255, 0.56);
  font-weight: 600;
}

.blog-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.blog-signal-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--ink);
  font-weight: 740;
}

.post-list {
  display: grid;
  gap: 12px;
}

.post-list article,
.post-card {
  padding: 24px;
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.post-list article:hover,
.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.knowledge-grid article {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(18, 26, 30, 0.94), rgba(10, 17, 19, 0.88)),
    var(--section-glow);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 50px rgba(1, 9, 18, 0.22);
}

.knowledge-grid article:nth-child(1),
.knowledge-grid article:nth-child(2) {
  grid-column: span 3;
}

.knowledge-grid article:nth-child(3),
.knowledge-grid article:nth-child(4),
.knowledge-grid article:nth-child(5) {
  grid-column: span 2;
}

.knowledge-grid h3 {
  margin-bottom: 18px;
  color: var(--ink);
}

.knowledge-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.knowledge-grid a {
  color: rgba(232, 237, 244, 0.9);
  border-bottom: 1px solid transparent;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.knowledge-grid a:hover {
  border-color: currentColor;
  color: var(--accent);
}

.tool-card {
  display: grid;
  gap: 0;
}

.tool-card p {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition:
    opacity 700ms ease var(--stagger, 0ms),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--stagger, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.detail-page {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(9, 11, 14, 0.98), rgba(16, 19, 24, 0.94));
  background-size: 48px 48px;
}

.page-enter {
  animation: pageEnter 420ms ease both;
}

.detail-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 60px;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  align-content: start;
  gap: 10px;
  height: fit-content;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(11, 24, 38, 0.82);
  backdrop-filter: blur(16px);
}

.detail-sidebar a,
.detail-sidebar strong {
  display: block;
  padding: 11px 12px;
  border-radius: 14px;
}

.detail-sidebar a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.detail-content {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 60px);
  background: rgba(11, 24, 38, 0.82);
  box-shadow: var(--shadow);
}

.detail-content h1 {
  max-width: 980px;
  font-size: clamp(40px, 5.2vw, 76px);
}

.detail-kicker {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.detail-summary {
  max-width: 72ch;
  color: var(--muted);
  font-size: 18px;
}

.blog-landing {
  padding: 36px 0 96px;
}

.blog-landing-hero {
  max-width: 860px;
  margin-bottom: 40px;
}

.blog-landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.4vw, 46px);
}

.detail-section p {
  max-width: 86ch;
  color: var(--muted);
  font-size: 18px;
}

.detail-section ul {
  display: grid;
  gap: 10px;
  max-width: 88ch;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 17px;
}

.detail-note {
  margin-top: 14px;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  color: var(--accent-strong) !important;
}

.tool-panel {
  display: grid;
  gap: 18px;
}

.tool-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.tool-panel textarea,
.tool-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  min-height: 140px;
  outline: none;
}

.tool-panel input {
  min-height: 56px;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-message {
  min-height: 24px;
  color: var(--muted);
}

.result-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-grid > * {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.markdown-tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.markdown-preview {
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
  margin-top: 0;
}

.markdown-preview ul {
  padding-left: 20px;
}

.release-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16, 20, 24, 0.96), rgba(54, 66, 84, 0.9));
  color: var(--ink);
}

.release-card span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255, 255, 255, 0.72);
}

.release-card p {
  color: rgba(255, 255, 255, 0.8);
}

.detail-content .reveal {
  transform: translateY(14px);
}

.interview-board {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(11, 24, 38, 0.78);
  box-shadow: var(--shadow);
}

.interview-board aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.topic-tab {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.topic-tab.active,
.topic-tab:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.question-panel {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 5vw, 52px);
}

.question-header h3 {
  max-width: 780px;
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 48px);
}

.follow-ups {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.follow-ups span {
  color: var(--ink);
  font-weight: 780;
}

.follow-ups ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-grid article,
.tool-card {
  min-height: 210px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    var(--surface);
}

.tool-grid span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.ai-section {
  position: relative;
  padding: 0 0 120px;
  scroll-margin-top: 100px;
}

.ai-section::before {
  content: "";
  position: absolute;
  inset: -18px -12px auto;
  height: 180px;
  z-index: -1;
  background: var(--section-glow);
  pointer-events: none;
  opacity: 0.78;
}

.ai-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: 16px;
}

.ai-spotlight,
.ai-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 56px rgba(0, 0, 0, 0.22);
}

.ai-spotlight {
  padding: 28px;
}

.ai-spotlight > span,
.ai-card > span {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.ai-spotlight h3,
.ai-card h3 {
  margin-top: 14px;
  margin-bottom: 12px;
}

.ai-spotlight p,
.ai-card p {
  color: var(--muted);
}

.ai-spotlight ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.ai-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ai-card {
  min-height: 240px;
  padding: 24px;
}

.apps-panel,
.about-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 5vw, 54px);
  background: linear-gradient(160deg, rgba(18, 25, 29, 0.94), rgba(10, 16, 18, 0.98));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-showcase {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.contact-intro {
  display: grid;
  align-content: start;
  gap: 0;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-tags span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 248, 251, 0.82);
  font-size: 13px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-panel {
  display: grid;
  gap: 18px;
}

.contact-headline {
  padding: 8px 6px 2px;
}

.contact-headline span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.contact-headline strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.12;
}

.contact-headline p {
  max-width: 34rem;
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-item {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(12, 18, 20, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 208, 220, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 32px rgba(1, 9, 18, 0.2);
}

.contact-item span {
  color: rgba(255, 255, 255, 0.64);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.contact-item strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.28;
}

.contact-item small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.contact-item-wide {
  grid-column: 1 / -1;
}

.apps-panel {
  transform: translateY(var(--parallax-y, 0));
}

.apps-panel p,
.about-card p {
  color: rgba(255, 255, 255, 0.7);
}

.app-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.impact-grid strong {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 0.96;
  letter-spacing: 0;
}

.contact-note {
  max-width: 36rem;
  margin-top: 18px;
}

.app-links a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 15px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.profile-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
}

.profile-list div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-list dt {
  color: rgba(255, 255, 255, 0.58);
}

.profile-list dd {
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 40px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-signoff,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-signoff strong {
  color: var(--ink);
  font-size: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: var(--accent);
}

@media (min-width: 921px) {
  h1 span {
    white-space: nowrap;
  }
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .writing-layout,
  .ai-showcase,
  .apps-panel,
  .about-card {
    grid-template-columns: 1fr;
  }

  .contact-showcase {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-copy {
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(40px, 11vw, 56px);
  }

  .hero-visual img {
    aspect-ratio: 1.15;
    min-height: 420px;
  }

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 86px;
  }

  .now-grid,
  .capability-grid,
  .impact-grid,
  .project-grid,
  .knowledge-grid,
  .tool-grid,
  .stack-layout,
  .ai-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .knowledge-grid article,
  .knowledge-grid article:nth-child(1),
  .knowledge-grid article:nth-child(2),
  .knowledge-grid article:nth-child(3),
  .knowledge-grid article:nth-child(4),
  .knowledge-grid article:nth-child(5) {
    grid-column: auto;
  }

  .project-card.featured {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .case-card {
    min-height: 200px;
  }

  .detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

  .markdown-tool {
    grid-template-columns: 1fr;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .blog-landing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .interview-board {
    grid-template-columns: 1fr;
  }

  .interview-board aside {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topic-tab {
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 66px;
    padding: 0 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .mobile-nav {
    inset: 76px 12px auto 12px;
  }

  .section-shell,
  .signal-strip {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    gap: 28px;
    padding-bottom: 28px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    padding: 0 16px;
  }

  .status-panel {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .hero-summary-card {
    position: static;
    max-width: none;
    margin: 16px;
  }

  .project-card.project-visual > img {
    object-position: center;
  }

  .signal-strip,
  .now-grid,
  .capability-grid,
  .impact-grid,
  .project-grid,
  .knowledge-grid,
  .tool-grid,
  .app-links,
  .blog-landing-grid,
  .stack-layout,
  .contact-grid,
  .ai-card-grid {
    grid-template-columns: 1fr;
  }

  .now-section,
  .projects-section,
  .blog-section,
  .ai-section,
  .knowledge-section,
  .interview-section,
  .tools-section,
  .apps-section,
  .about-section {
    padding-bottom: 82px;
  }

  .interview-board aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-panel {
    padding: 22px;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 28px, 1160px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes gradientFlow {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@keyframes gradientDrift {
  from {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(1%, 1%, 0) scale(1.04);
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
