:root {
  --background: #ffffff;
  --foreground: #020817;
  --muted: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --soft: #f8fafc;
  --accent: #f6329a;
  --accent-dark: #d42a85;
  --ring: rgba(246, 50, 154, 0.22);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  padding-inline: 1rem;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

.narrow {
  max-width: 58rem;
}

.wide {
  max-width: 80rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: calc(100% + 2rem);
  margin-left: -1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.brand {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-underline-offset: 4px;
}

.nav a:hover {
  text-decoration: underline;
}

.language-switch {
  display: flex;
  flex-shrink: 0;
  gap: 0.125rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--soft);
  padding: 0.1875rem;
}

.language-switch button {
  min-width: 2.25rem;
  height: 1.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.language-switch button:hover {
  color: var(--foreground);
}

.language-switch button.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  max-width: 64rem;
  padding-block: 5rem 2rem;
  text-align: left;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  flex: 0 0 5rem;
  border-radius: 999px;
  background: #f8fafc;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 2.75rem;
  line-height: 1;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.875rem, 1.6rem + 0.8vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.hero p {
  max-width: 37.5rem;
  color: var(--muted);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.65;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.section-heading p {
  max-width: 46rem;
  color: var(--muted);
  line-height: 1.6;
}

.featured-projects {
  padding-block: 1.25rem 4rem;
}

.featured-projects .narrow,
.articles-preview .narrow,
#work .narrow,
.about-band .narrow {
  max-width: 64rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.1rem;
  min-height: 19rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.project-card-dora {
  border-color: #bae6fd;
}

.project-card-jup {
  border-color: #c4b5fd;
}

.project-card-payai {
  border-color: #bbf7d0;
}

.project-card-zkpay {
  border-color: #a5f3fc;
}

.project-card-dyor {
  border-color: #fde68a;
}

.project-card-hmu {
  border-color: #bfdbfe;
}

.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: var(--soft);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.5rem;
}

.project-card-dora .project-icon {
  background: #f0f9ff;
}

.project-card-jup .project-icon {
  background: #f5f3ff;
  color: #6d28d9;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.project-card-payai .project-icon {
  background: #f0fdf4;
  color: #15803d;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.project-card-zkpay .project-icon {
  background: #ecfeff;
  color: #0e7490;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.project-card-dyor .project-icon {
  background: #fffbeb;
  color: #b45309;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.project-card-hmu .project-icon {
  background: #eff6ff;
  color: #1d4ed8;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
}

.project-tag {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

.project-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.375rem;
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.project-status-live {
  background: #dcfce7;
  color: #166534;
}

.project-status-building {
  background: #fef3c7;
  color: #92400e;
}

.project-body h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.project-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.project-body small {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.45;
}

.project-card > a,
.project-links a {
  justify-self: start;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.project-card > a:hover,
.project-links a:hover {
  text-decoration: underline;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.section {
  padding-block: 3rem 4rem;
}

.section-tight {
  padding-block: 1rem;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.newsletter {
  width: 100%;
  max-width: 42rem;
  margin-top: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

.newsletter h2 {
  margin-bottom: 0.5rem;
}

.newsletter > p:not(.small) {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.subscribe-row {
  display: flex;
  gap: 0.75rem;
}

.subscribe-row input {
  min-width: 0;
  flex: 1;
  height: 2.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: var(--background);
  padding: 0 1rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.subscribe-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.subscribe-row button {
  height: 2.5rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 0.375rem;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease;
}

.subscribe-row button:hover {
  background: var(--accent-dark);
}

.subscribe-row button:active {
  transform: translateY(1px);
}

.small {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.stack-large {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.content-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--muted);
}

li + li {
  margin-top: 0.5rem;
}

li a,
.articles-link,
.link-button {
  color: var(--accent);
  text-underline-offset: 3px;
}

li a:hover,
.articles-link:hover,
.link-button:hover {
  text-decoration: underline;
}

.link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.section-title {
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem);
}

.about-band {
  width: calc(100% + 2rem);
  margin-left: -1rem;
  background: var(--soft);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-content h2 {
  font-size: 1.875rem;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-grid article {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.stat-grid span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-grid p {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.belief {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  color: var(--foreground);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.articles {
  padding-top: 0;
}

.articles-preview {
  padding-block: 1.25rem 3.75rem;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.35rem;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.article-cover-link {
  display: block;
  min-height: 100%;
  overflow: hidden;
  border-radius: 0.375rem;
  background: var(--soft);
}

.article-cover-link img,
.article-hero-image img,
.article-content figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-cover-link img {
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}

.article-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0.25rem 0.25rem 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-meta span {
  color: var(--accent);
}

.article-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  line-height: 1.15;
}

.articles-preview .article-card h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.55vw, 1.5rem);
  line-height: 1.22;
}

.article-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.article-read-link,
.article-back-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.article-read-link:hover,
.article-back-link:hover {
  text-decoration: underline;
}

.page-header {
  padding-block: 4rem 2rem;
}

.page-header h1,
.article-hero h1 {
  max-width: 44rem;
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem);
  line-height: 1.05;
}

.page-header p,
.article-dek {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.article-list {
  padding-block: 1rem 4rem;
}

.article-list .article-card + .article-card,
.articles-preview .article-card + .article-card {
  margin-top: 1.25rem;
}

.article-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 4rem 2rem;
}

.article-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.article-hero-image {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.article-content {
  max-width: 46rem;
  padding-bottom: 4rem;
  color: #1e293b;
  font-size: 1.075rem;
  line-height: 1.85;
}

.article-content p {
  margin: 1.25rem 0 0;
}

.article-content pre {
  overflow-x: auto;
  margin: 1.25rem 0 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.article-content h2 {
  margin: 2.75rem 0 0.75rem;
  color: var(--foreground);
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
}

.article-content figure {
  margin: 2rem 0;
}

.article-content figure img {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.article-content figcaption {
  margin-top: 0.625rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.article-content a {
  color: var(--accent);
  font-weight: 750;
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-callout {
  margin-top: 1.5rem;
  border-left: 4px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--foreground);
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.55;
}

.article-footer-nav {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer {
  padding-block: 2rem 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.socials a {
  color: var(--muted);
  transition: color 0.18s ease;
}

.socials a:hover {
  color: var(--foreground);
}

.socials svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .header-inner {
    padding-inline: 2rem;
  }

  .section {
    padding-block: 4rem;
  }

  .section-tight {
    padding-block: 1rem;
  }

  .newsletter {
    padding: 2.5rem;
  }
}

@media (max-width: 900px) {
  .project-grid,
  .article-card {
    grid-template-columns: 1fr;
  }

  .article-cover-link img {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .page {
    padding-inline: 1rem;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding-block: 0.65rem;
  }

  .nav {
    gap: 0.5rem 0.85rem;
    justify-content: flex-start;
  }

  .nav a {
    font-size: 0.8125rem;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
  }

  .hero {
    gap: 1.15rem;
    padding-block: 2.5rem 1.25rem;
  }

  .hero-row {
    align-items: flex-start;
    gap: 0.9rem;
  }

  .avatar {
    width: 4rem;
    height: 4rem;
    flex-basis: 4rem;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .section {
    padding-block: 2.75rem 3.25rem;
  }

  .featured-projects,
  .articles-preview {
    padding-block: 1rem 2.75rem;
  }

  .section-heading {
    margin-bottom: 1rem;
  }

  .subscribe-row {
    flex-direction: column;
  }

  .subscribe-row button {
    width: 100%;
  }

  .project-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    gap: 0.875rem;
  }

  .project-card {
    min-height: 0;
    gap: 0.9rem;
    padding: 1rem;
  }

  .project-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.35rem;
  }

  .project-body {
    gap: 0.55rem;
  }

  .project-body h3 {
    font-size: 1.25rem;
  }

  .project-body p {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .article-card {
    gap: 0.95rem;
    padding: 0.9rem;
  }

  .article-card h3 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .articles-preview .article-card h3 {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .article-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .stack-large {
    gap: 2.25rem;
  }

  .prose {
    gap: 1.15rem;
    font-size: 1rem;
    line-height: 1.75;
  }

  .stat-grid article {
    padding: 0.9rem;
  }

  .about-band .container {
    padding-inline: 1rem;
  }

  .footer-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }
}
