:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --surface: #fafbfc;
  --surface-strong: #e9edf2;
  --ink: #111418;
  --muted: #606973;
  --faint: #8a939d;
  --line: #d7dde4;
  --accent: #315de8;
  --accent-strong: #2446b8;
  --accent-ink: #f7f9ff;
  --shadow: 0 24px 70px rgb(35 48 67 / 0.12);
  --radius-card: 18px;
  --radius-control: 10px;
  --radius-button: 999px;
  --shell: 1220px;
  --header-height: 72px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111418;
  --surface: #171b20;
  --surface-strong: #20262d;
  --ink: #eef2f6;
  --muted: #a5adb6;
  --faint: #737d87;
  --line: #2d343c;
  --accent: #6f91ff;
  --accent-strong: #86a2ff;
  --accent-ink: #0e1530;
  --shadow: 0 28px 80px rgb(0 0 0 / 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0, rgb(49 93 232 / 0.035) 50%, transparent 100%);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wordmark strong {
  font-size: 15px;
  letter-spacing: -0.015em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.theme-toggle,
.nav-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.icon-glyph {
  display: inline-grid;
  min-width: 1em;
  place-items: center;
  font-size: 0.94em;
  font-weight: 750;
  line-height: 1;
}

.hero {
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  padding-block: clamp(54px, 8vh, 88px);
}

.hero-copy {
  max-width: 590px;
}

.hero-role,
.page-kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-bio {
  max-width: 34em;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
}

.hero-actions,
.about-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-button);
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-light {
  background: #f4f6f8;
  color: #15191e;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.text-link .icon-glyph {
  transition: transform 180ms ease;
}

.text-link:hover .icon-glyph {
  transform: translate(2px, -2px);
}

.hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: inherit;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding-block: clamp(78px, 11vw, 148px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
}

.section-heading h2,
.writing-intro h2,
.contact-inner h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.052em;
}

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

.project-card {
  grid-column: span 5;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.project-card.project-featured {
  grid-column: span 7;
}

.project-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--surface-strong);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.025);
}

.project-content {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
}

.project-content h3 {
  margin: 0;
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -0.035em;
}

.project-content h3 a {
  text-decoration: none;
}

.project-content p {
  margin: 10px 0 0;
  color: var(--muted);
}

.tech-list,
.article-meta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-list li,
.article-meta li {
  padding: 5px 10px;
  border-radius: var(--radius-button);
  background: var(--surface-strong);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.writing-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(60px, 10vw, 150px);
  border-top: 1px solid var(--line);
}

.writing-intro {
  align-self: start;
  position: sticky;
  top: 120px;
}

.writing-intro p {
  max-width: 30ch;
  margin: 24px 0;
  color: var(--muted);
}

.writing-list {
  min-width: 0;
}

.post-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: start;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.post-row time {
  padding-top: 4px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.post-row h3 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.post-row h3 a {
  text-decoration: none;
}

.post-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.writing-empty {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.writing-empty img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.writing-empty div {
  padding: 30px;
}

.writing-empty h3,
.writing-empty h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.writing-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-band {
  background: #315de8;
  color: #f7f9ff;
}

.contact-inner {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-block: 72px;
}

.contact-inner p {
  margin: 18px 0 0;
  color: rgb(247 249 255 / 0.78);
}

.site-footer {
  padding-block: 70px;
  background: #111418;
  color: #eef2f6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 44px;
}

.footer-grid strong {
  font-size: 22px;
}

.footer-grid p {
  margin: 8px 0 0;
  color: #8f99a4;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #d4dae1;
  text-decoration: none;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 34px;
  border-top: 1px solid #2b323a;
  font-size: 13px;
}

.page-header {
  padding-top: clamp(78px, 12vw, 150px);
  padding-bottom: 54px;
}

.page-header h1,
.article h1,
.error-page h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.page-header > p:last-child {
  max-width: 42ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.project-grid-all .project-card:nth-child(3n + 1) {
  grid-column: span 7;
}

.project-grid-all .project-card:nth-child(3n + 2),
.project-grid-all .project-card:nth-child(3n + 3) {
  grid-column: span 5;
}

.writing-archive {
  max-width: 900px;
  margin-left: auto;
}

.writing-empty-wide {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.writing-empty-wide img {
  min-height: 420px;
}

.writing-empty-wide div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(34px, 6vw, 76px);
}

.article {
  max-width: 860px;
  padding-top: clamp(74px, 10vw, 130px);
  padding-bottom: 140px;
}

.back-link {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.article h1 {
  max-width: 16ch;
  font-size: clamp(42px, 6.5vw, 78px);
}

.article-excerpt {
  max-width: 50ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  color: var(--faint);
  font-size: 13px;
}

.article-cover {
  width: 100%;
  margin-top: 62px;
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prose {
  max-width: 720px;
  margin: 72px auto 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.9;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin: 2.2em 0 0.65em;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.prose h1 { font-size: 38px; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }

.prose p,
.prose ul,
.prose blockquote,
.prose pre {
  margin: 1.25em 0;
}

.prose a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.prose code {
  padding: 0.16em 0.4em;
  border-radius: 5px;
  background: var(--surface-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.prose pre {
  overflow-x: auto;
  padding: 22px;
  border-radius: var(--radius-control);
  background: #171b20;
  color: #e8edf3;
}

.prose pre code {
  padding: 0;
  background: transparent;
}

.prose blockquote {
  margin-inline: 0;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(52px, 10vw, 140px);
  padding-bottom: 140px;
}

.about-copy p {
  max-width: 50ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.about-layout > img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.error-page {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 80px;
}

.error-page p:not(.page-kicker) {
  color: var(--muted);
}

.reveal {
  animation: reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-delay {
  animation-delay: 100ms;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111418;
    --surface: #171b20;
    --surface-strong: #20262d;
    --ink: #eef2f6;
    --muted: #a5adb6;
    --faint: #737d87;
    --line: #2d343c;
    --accent: #6f91ff;
    --accent-strong: #86a2ff;
    --accent-ink: #0e1530;
    --shadow: 0 28px 80px rgb(0 0 0 / 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    max-height: 680px;
  }

  .writing-section,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .writing-intro {
    position: static;
  }

  .project-card,
  .project-card.project-featured,
  .project-grid-all .project-card:nth-child(n) {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  :root { --header-height: 64px; }

  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .theme-toggle {
    margin: 8px 10px 4px;
  }

  .hero {
    padding-block: 48px 70px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 62px);
    letter-spacing: -0.06em;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

  .project-card,
  .project-card.project-featured,
  .project-grid-all .project-card:nth-child(n) {
    grid-column: auto;
  }

  .writing-section {
    gap: 42px;
  }

  .post-row {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .post-row time {
    grid-column: 1 / -1;
  }

  .writing-empty-wide {
    grid-template-columns: 1fr;
  }

  .writing-empty-wide img {
    min-height: auto;
  }

  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }

  .copyright {
    grid-column: auto;
  }

  .page-header h1,
  .article h1,
  .error-page h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .article-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-cover {
    margin-top: 42px;
  }

  .prose {
    margin-top: 52px;
    font-size: 17px;
  }
}

/* Final cascade lock: keep the signal garden palette ahead of the legacy page tokens. */
:root {
  --bg: #efede8;
  --surface: #f7f5f0;
  --surface-strong: #dedbd3;
  --ink: #161716;
  --muted: #65645f;
  --faint: #96948d;
  --line: #d1cec5;
  --accent: #f05238;
  --accent-strong: #d94027;
  --accent-ink: #fff8ef;
  --shadow: 0 28px 80px rgb(25 24 20 / 0.16);
  --radius-card: 2px;
  --radius-control: 2px;
  --shell: 1280px;
  --header-height: 72px;
}

[data-theme="dark"] {
  --bg: #111312;
  --surface: #191b19;
  --surface-strong: #242622;
  --ink: #f0eee8;
  --muted: #b0aea6;
  --faint: #7f7e77;
  --line: #393a34;
  --accent: #ff684c;
  --accent-strong: #ff8268;
  --accent-ink: #21100b;
  --shadow: 0 28px 80px rgb(0 0 0 / 0.34);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
}

body::before {
  display: block;
  z-index: -1;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.32;
}

.site-header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}

.wordmark span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.site-footer {
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-grid p,
.footer-links a {
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111312;
    --surface: #191b19;
    --surface-strong: #242622;
    --ink: #f0eee8;
    --muted: #b0aea6;
    --faint: #7f7e77;
    --line: #393a34;
    --accent: #ff684c;
    --accent-strong: #ff8268;
    --accent-ink: #21100b;
  }
}

@media (max-width: 680px) {
  :root { --header-height: 64px; }
  .signal-hero h1 { max-width: 14ch; font-size: clamp(44px, 13vw, 56px); }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 2026-08 signal garden: a personal lab language built around one field image, one accent, and live connections. */
:root {
  --bg: #efede8;
  --surface: #f7f5f0;
  --surface-strong: #dedbd3;
  --ink: #161716;
  --muted: #65645f;
  --faint: #96948d;
  --line: #d1cec5;
  --accent: #f05238;
  --accent-strong: #d94027;
  --accent-ink: #fff8ef;
  --shadow: 0 28px 80px rgb(25 24 20 / 0.16);
  --radius-card: 2px;
  --radius-control: 2px;
  --shell: 1280px;
  --header-height: 72px;
}

[data-theme="dark"] {
  --bg: #111312;
  --surface: #191b19;
  --surface-strong: #242622;
  --ink: #f0eee8;
  --muted: #b0aea6;
  --faint: #7f7e77;
  --line: #393a34;
  --accent: #ff684c;
  --accent-strong: #ff8268;
  --accent-ink: #21100b;
  --shadow: 0 28px 80px rgb(0 0 0 / 0.34);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
}

body::before {
  display: block;
  z-index: -1;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.32;
}

.site-header {
  border-bottom-color: color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}

.wordmark {
  gap: 11px;
}

.wordmark span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: -0.08em;
}

.wordmark strong {
  font-size: 14px;
  letter-spacing: 0;
}

.site-nav {
  gap: 26px;
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.01em;
}

.theme-toggle,
.nav-toggle {
  border-radius: 50%;
  border-color: var(--line);
}

.signal-hero {
  width: min(calc(100% - 48px), var(--shell));
  min-height: calc(100dvh - var(--header-height) - 28px);
  padding-block: 28px 0;
}

.signal-hero-art {
  position: relative;
  min-height: min(760px, calc(100dvh - var(--header-height) - 56px));
  overflow: hidden;
  background: #171816;
  color: #f4f1e9;
  isolation: isolate;
}

.signal-hero-art > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.signal-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgb(13 14 13 / 0.9) 0%, rgb(13 14 13 / 0.72) 30%, rgb(13 14 13 / 0.1) 72%), linear-gradient(0deg, rgb(13 14 13 / 0.6) 0%, transparent 38%);
}

.signal-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid rgb(255 248 239 / 0.22);
  pointer-events: none;
}

.signal-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  mix-blend-mode: screen;
}

.signal-hero-copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(28px, 7vw, 100px);
  width: min(520px, calc(100% - 56px));
  transform: translateY(-50%);
}

.signal-kicker,
.signal-stamp,
.signal-caption,
.signal-index,
.specimen-topline,
.specimen-label,
.note-card-line,
.contact-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.signal-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: rgb(244 241 233 / 0.72);
}

.signal-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgb(240 82 56 / 0.16);
  animation: signal-pulse 2.4s ease-in-out infinite;
}

.signal-hero h1 {
  max-width: 14ch;
  margin: 0;
  color: #f4f1e9;
  font-size: clamp(50px, 6.2vw, 76px);
  font-weight: 680;
  letter-spacing: -0.07em;
  line-height: 0.94;
  text-wrap: balance;
}

.signal-hero h1 span {
  color: var(--accent);
}

.signal-hero-bio {
  max-width: 31ch;
  margin: 26px 0 0;
  color: rgb(244 241 233 / 0.72);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
}

.signal-hero .hero-actions {
  margin-top: 32px;
}

.signal-button {
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
}

.signal-button:hover {
  background: var(--accent-strong);
}

.signal-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f4f1e9;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.signal-text-link .icon-glyph {
  transition: transform 180ms ease;
}

.signal-text-link:hover .icon-glyph {
  transform: translate(2px, -2px);
}

.signal-stamp {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 3;
  display: grid;
  gap: 8px;
  min-width: 106px;
  padding: 12px;
  border: 1px solid rgb(244 241 233 / 0.36);
  color: rgb(244 241 233 / 0.7);
  text-align: right;
}

.signal-stamp strong {
  color: #f4f1e9;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.signal-caption {
  position: absolute;
  right: 28px;
  bottom: 20px;
  left: 28px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgb(244 241 233 / 0.56);
}

.signal-log,
.specimen-section,
.notes-section {
  padding-block: clamp(92px, 12vw, 168px);
}

.signal-log {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(56px, 10vw, 150px);
}

.signal-log-header {
  align-self: start;
}

.signal-index {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
}

.signal-log h2,
.notes-intro h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.signal-log-header p,
.notes-intro > p {
  max-width: 29ch;
  margin: 24px 0 0;
  color: var(--muted);
}

.signal-log-list {
  border-top: 1px solid var(--line);
}

.signal-log-row {
  display: grid;
  grid-template-columns: 44px minmax(160px, 0.9fr) minmax(0, 1.1fr) 24px;
  align-items: center;
  gap: 18px;
  min-height: 90px;
  border-bottom: 1px solid var(--line);
  transition: padding 220ms ease, background-color 220ms ease;
}

.signal-log-row:hover {
  padding-inline: 12px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.signal-log-number {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.signal-log-row h3,
.signal-log-row p {
  margin: 0;
}

.signal-log-row h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.signal-log-row p {
  color: var(--muted);
  font-size: 14px;
}

.signal-log-mark {
  color: var(--accent);
  font-size: 18px;
  text-align: right;
}

.specimen-section {
  border-top: 1px solid var(--line);
}

.specimen-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
  color: var(--faint);
}

.specimen-topline span:first-child {
  color: var(--accent);
}

.specimen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
  gap: clamp(46px, 8vw, 124px);
  align-items: center;
}

.specimen-image-wrap {
  position: relative;
}

.specimen-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.32 / 1;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.specimen-image::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgb(255 255 255 / 0.38);
  pointer-events: none;
  transition: inset 300ms ease, border-color 300ms ease;
}

.specimen-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.specimen-image:hover img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.specimen-image:hover::after {
  inset: 22px;
  border-color: var(--accent);
}

.specimen-hover {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: rgb(17 19 18 / 0.84);
  color: #f4f1e9;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.specimen-image:hover .specimen-hover,
.specimen-image:focus-visible .specimen-hover {
  opacity: 1;
  transform: translateY(0);
}

.specimen-coordinate {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 8px;
  background: var(--bg);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.specimen-copy {
  padding-left: clamp(24px, 4vw, 54px);
  border-left: 1px solid var(--line);
}

.specimen-label {
  margin: 0 0 22px;
  color: var(--accent);
}

.specimen-copy h2 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 680;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.specimen-copy > p:not(.specimen-label) {
  max-width: 31ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.specimen-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 30px 0 26px;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.specimen-tech li + li::before {
  content: "/";
  padding-inline: 9px;
  color: var(--line);
}

.notes-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(56px, 10vw, 150px);
  border-top: 1px solid var(--line);
}

.notes-intro .text-link {
  margin-top: 28px;
}

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

.note-card {
  position: relative;
  min-height: 284px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 250ms ease, border-color 250ms ease, background-color 250ms ease;
}

.note-card:nth-child(1) {
  grid-column: span 2;
  min-height: 230px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)) 0%, var(--surface) 58%);
}

.note-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.note-card-line {
  color: var(--accent);
}

.note-card time {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.note-card h3 {
  max-width: 16ch;
  margin: 64px 0 0;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.note-card p {
  max-width: 35ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.note-card-mark {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.note-card-empty {
  grid-column: span 2;
  min-height: 320px;
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--surface)) 0%, transparent 42%), repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in srgb, var(--line) 55%, transparent) 18px 19px);
}

.contact-radar {
  position: relative;
  overflow: hidden;
  background: #181a17;
  color: #f4f1e9;
}

.contact-radar .contact-inner {
  position: relative;
  z-index: 1;
  min-height: 360px;
  padding-block: 80px;
}

.contact-radar h2 {
  color: #f4f1e9;
}

.contact-kicker {
  margin: 0 0 22px;
  color: var(--accent);
}

.contact-radar .contact-inner > div > p:last-child {
  max-width: 34ch;
  margin: 18px 0 0;
  color: rgb(244 241 233 / 0.66);
}

.radar-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgb(240 82 56 / 0.4);
  border-radius: 50%;
  pointer-events: none;
}

.radar-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgb(240 82 56 / 0.14);
}

.radar-orbit-one {
  top: -190px;
  right: -120px;
  width: 620px;
  height: 620px;
  animation: orbit 24s linear infinite;
}

.radar-orbit-two {
  top: -90px;
  right: -20px;
  width: 420px;
  height: 420px;
  border-style: dashed;
  animation: orbit-reverse 18s linear infinite;
}

.site-footer {
  padding-block: 62px;
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-grid p,
.footer-links a {
  color: var(--muted);
}

.copyright {
  border-top-color: var(--line);
}

@keyframes signal-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes orbit-reverse {
  to { transform: rotate(-360deg); }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111312;
    --surface: #191b19;
    --surface-strong: #242622;
    --ink: #f0eee8;
    --muted: #b0aea6;
    --faint: #7f7e77;
    --line: #393a34;
    --accent: #ff684c;
    --accent-strong: #ff8268;
    --accent-ink: #21100b;
  }
}

@media (max-width: 900px) {
  .signal-log,
  .notes-section {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .signal-log h2,
  .notes-intro h2 {
    max-width: 13ch;
  }

  .specimen-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .specimen-copy {
    max-width: 560px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .signal-hero {
    width: min(calc(100% - 32px), var(--shell));
    padding-top: 16px;
  }

  .signal-hero-art {
    min-height: 730px;
  }

  .signal-hero-art > img {
    object-position: 63% center;
  }

  .signal-hero-scrim {
    background: linear-gradient(180deg, rgb(13 14 13 / 0.92) 0%, rgb(13 14 13 / 0.62) 42%, rgb(13 14 13 / 0.14) 88%), linear-gradient(0deg, rgb(13 14 13 / 0.68) 0%, transparent 40%);
  }

  .signal-hero-copy {
    top: 34%;
    left: 22px;
    width: calc(100% - 44px);
    transform: translateY(-50%);
  }

  .signal-hero h1 {
    max-width: 14ch;
    font-size: clamp(48px, 14vw, 62px);
  }

  .signal-hero-bio {
    max-width: 27ch;
    font-size: 16px;
  }

  .signal-hero .hero-actions {
    align-items: flex-start;
    flex-direction: row;
    gap: 16px;
  }

  .signal-stamp {
    top: 20px;
    right: 20px;
  }

  .signal-caption {
    right: 20px;
    bottom: 16px;
    left: 20px;
    flex-direction: column;
    gap: 4px;
  }

  .signal-log,
  .specimen-section,
  .notes-section {
    padding-block: 86px;
  }

  .signal-log-row {
    grid-template-columns: 32px minmax(0, 1fr) 22px;
    gap: 12px;
    align-items: start;
    padding-block: 20px;
  }

  .signal-log-row p {
    grid-column: 2 / -1;
  }

  .signal-log-row:hover {
    padding-inline: 0;
    background: transparent;
  }

  .specimen-topline {
    flex-direction: column;
    gap: 8px;
  }

  .specimen-grid {
    gap: 42px;
  }

  .specimen-image {
    aspect-ratio: 1 / 1;
  }

  .specimen-copy {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .notes-stack {
    grid-template-columns: 1fr;
  }

  .note-card,
  .note-card:nth-child(1),
  .note-card-empty {
    grid-column: auto;
    min-height: 260px;
  }

  .contact-radar .contact-inner {
    min-height: 420px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 72px;
  }

  .radar-orbit-one {
    top: -90px;
    right: -270px;
    width: 520px;
    height: 520px;
  }

  .radar-orbit-two {
    top: 30px;
    right: -170px;
    width: 360px;
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-pulse,
  .radar-orbit-one,
  .radar-orbit-two {
    animation: none;
  }
}

/* 2026-08 English redesign: compact editorial type with a vector-study motif. */
:root {
  --bg: #f0f2f5;
  --surface: #f8f9fb;
  --surface-strong: #e3e7ec;
  --ink: #12161b;
  --muted: #59636d;
  --faint: #7c8792;
  --line: #ccd3db;
  --accent: #2d5bd4;
  --accent-strong: #2147ad;
  --accent-ink: #f7f9ff;
  --shadow: 0 22px 60px rgb(27 43 64 / 0.13);
  --radius-card: 14px;
  --radius-control: 8px;
  --shell: 1180px;
  --header-height: 68px;
}

[data-theme="dark"] {
  --bg: #12161b;
  --surface: #181d23;
  --surface-strong: #222931;
  --ink: #eef2f6;
  --muted: #a8b0b9;
  --faint: #7b858f;
  --line: #303841;
  --accent: #7898f2;
  --accent-strong: #93acf5;
  --accent-ink: #10172c;
}

body {
  background: var(--bg);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

body::before {
  display: none;
}

.site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.wordmark {
  gap: 10px;
}

.wordmark span {
  display: inline;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  letter-spacing: -0.05em;
}

.wordmark strong {
  font-size: 14px;
  letter-spacing: 0;
}

.site-nav {
  gap: 24px;
}

.site-nav a {
  font-size: 13px;
}

.hero {
  min-height: min(760px, calc(100dvh - var(--header-height)));
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(48px, 7vw, 96px);
  padding-block: clamp(44px, 7vh, 72px);
}

.hero-copy {
  max-width: 520px;
}

.hero-role,
.page-kicker {
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.11em;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(42px, 4.25vw, 52px);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-bio {
  max-width: 29ch;
  margin-top: 24px;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  min-height: 44px;
  padding-inline: 20px;
  font-size: 13px;
}

.hero-visual {
  min-height: 500px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
}

.hero-visual::after {
  display: none;
}

.hero-image {
  position: absolute;
  inset: 0 0 72px 64px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vector-field {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 68%;
  height: 168px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--accent);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 24%, transparent);
}

.section {
  padding-block: clamp(76px, 8vw, 104px);
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2,
.writing-intro h2,
.contact-inner h2,
.about-copy h2,
.practice-copy h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 680;
  letter-spacing: -0.045em;
}

.project-grid {
  grid-template-columns: 1fr;
  gap: 64px;
}

.project-card,
.project-card.project-featured,
.project-grid-all .project-card:nth-child(n) {
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(30px, 5vw, 64px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.project-image {
  border-radius: var(--radius-card);
  aspect-ratio: 16 / 10;
}

.project-content {
  min-height: 0;
  padding: 12px 0 10px;
}

.project-content h3 {
  font-size: clamp(23px, 2.5vw, 34px);
  font-weight: 680;
}

.project-content p {
  max-width: 30ch;
  font-size: 15px;
}

.tech-list {
  gap: 0;
}

.tech-list li {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--faint);
}

.tech-list li + li::before {
  content: "/";
  padding-inline: 9px;
  color: var(--line);
}

.practice-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(60px, 10vw, 140px);
  padding-block: clamp(76px, 9vw, 120px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice-copy p {
  max-width: 28ch;
  margin: 20px 0 0;
  color: var(--muted);
}

.practice-list article {
  display: grid;
  grid-template-columns: minmax(150px, 0.68fr) minmax(0, 1.32fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.practice-list article:first-child {
  padding-top: 2px;
}

.practice-list article:last-child {
  border-bottom: 0;
}

.practice-list h3,
.practice-list p {
  margin: 0;
}

.practice-list h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.practice-list p {
  color: var(--muted);
  font-size: 15px;
}

.writing-section {
  gap: clamp(56px, 9vw, 120px);
}

.writing-empty {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--surface);
}

.writing-empty img {
  height: 100%;
  aspect-ratio: 4 / 3;
}

.writing-empty div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 44px);
}

.writing-empty h3,
.writing-empty h2 {
  font-size: 22px;
}

.contact-band {
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

.contact-inner {
  min-height: 280px;
  padding-block: 58px;
}

.contact-inner p {
  color: var(--muted);
}

.site-footer {
  padding-block: 58px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.footer-grid p {
  color: var(--muted);
}

.footer-links a {
  color: var(--muted);
}

.copyright {
  border-top-color: var(--line);
}

.page-header {
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: 36px;
}

.page-header h1,
.article h1,
.error-page h1 {
  max-width: 15ch;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 1;
}

.page-header > p:last-child {
  margin-top: 22px;
  font-size: 17px;
}

.article h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.article-excerpt {
  font-size: 18px;
}

.about-layout {
  gap: clamp(48px, 8vw, 100px);
}

.about-copy p {
  font-size: 17px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161b;
    --surface: #181d23;
    --surface-strong: #222931;
    --ink: #eef2f6;
    --muted: #a8b0b9;
    --faint: #7b858f;
    --line: #303841;
    --accent: #7898f2;
    --accent-strong: #93acf5;
    --accent-ink: #10172c;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .practice-section,
  .writing-section,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .project-card,
  .project-card.project-featured,
  .project-grid-all .project-card:nth-child(n) {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    padding-top: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 62px;
  }

  .site-nav {
    gap: 0;
  }

  .hero {
    gap: 42px;
    padding-block: 42px 64px;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: clamp(38px, 11vw, 44px);
  }

  .hero-bio {
    max-width: 31ch;
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: row;
    gap: 18px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .hero-image {
    inset: 0 0 58px 30px;
  }

  .vector-field {
    width: 76%;
    height: 128px;
  }

  .section,
  .practice-section {
    padding-block: 70px;
  }

  .section-heading {
    gap: 14px;
  }

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

  .practice-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .writing-empty,
  .writing-empty-wide {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    min-height: 0;
  }

  .page-header h1,
  .article h1,
  .error-page h1 {
    font-size: clamp(38px, 11vw, 50px);
  }
}

/* Final cascade lock: signal garden wins over the legacy redesign tokens. */
:root {
  --bg: #efede8;
  --surface: #f7f5f0;
  --surface-strong: #dedbd3;
  --ink: #161716;
  --muted: #65645f;
  --faint: #96948d;
  --line: #d1cec5;
  --accent: #f05238;
  --accent-strong: #d94027;
  --accent-ink: #fff8ef;
  --shadow: 0 28px 80px rgb(25 24 20 / 0.16);
  --radius-card: 2px;
  --radius-control: 2px;
  --shell: 1280px;
  --header-height: 72px;
}

[data-theme="dark"] {
  --bg: #111312;
  --surface: #191b19;
  --surface-strong: #242622;
  --ink: #f0eee8;
  --muted: #b0aea6;
  --faint: #7f7e77;
  --line: #393a34;
  --accent: #ff684c;
  --accent-strong: #ff8268;
  --accent-ink: #21100b;
  --shadow: 0 28px 80px rgb(0 0 0 / 0.34);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
}

body::before {
  display: block;
  z-index: -1;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.32;
}

.site-header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}

.wordmark span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.site-footer {
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-grid p,
.footer-links a {
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111312;
    --surface: #191b19;
    --surface-strong: #242622;
    --ink: #f0eee8;
    --muted: #b0aea6;
    --faint: #7f7e77;
    --line: #393a34;
    --accent: #ff684c;
    --accent-strong: #ff8268;
    --accent-ink: #21100b;
  }
}

@media (max-width: 680px) {
  :root { --header-height: 64px; }
  .signal-hero h1 { max-width: 14ch; font-size: clamp(44px, 13vw, 56px); }
}
