:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #edf2f8;
  --surface-3: #e3eaf3;
  --text: #111d33;
  --text-strong: #071027;
  --muted: #5d6b80;
  --line: #d8e0eb;
  --line-strong: #b7c4d6;
  --accent: #087f74;
  --accent-strong: #05635b;
  --accent-soft: #daf5f1;
  --indigo: #4f46e5;
  --danger: #b42318;
  --success: #067647;
  --header-bg: rgba(247, 249, 252, 0.86);
  --shadow-sm: 0 10px 30px rgba(20, 34, 59, 0.08);
  --shadow-lg: 0 30px 90px rgba(7, 16, 39, 0.16);
  --radius-sm: 0.8rem;
  --radius: 1.25rem;
  --radius-lg: 1.8rem;
  --container: 1180px;
  --container-narrow: 760px;
  --transition: 180ms ease;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #071027;
  --surface: #0d1931;
  --surface-2: #111f3a;
  --surface-3: #172746;
  --text: #dce6f5;
  --text-strong: #ffffff;
  --muted: #9fb0c9;
  --line: #243654;
  --line-strong: #3a4f70;
  --accent: #58ead8;
  --accent-strong: #8ff3e6;
  --accent-soft: #103c3c;
  --indigo: #a5b4fc;
  --danger: #fda29b;
  --success: #6ce9a6;
  --header-bg: rgba(7, 16, 39, 0.86);
  --shadow-sm: 0 12px 36px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 36px 100px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #071027;
    --surface: #0d1931;
    --surface-2: #111f3a;
    --surface-3: #172746;
    --text: #dce6f5;
    --text-strong: #ffffff;
    --muted: #9fb0c9;
    --line: #243654;
    --line-strong: #3a4f70;
    --accent: #58ead8;
    --accent-strong: #8ff3e6;
    --accent-soft: #103c3c;
    --indigo: #a5b4fc;
    --danger: #fda29b;
    --success: #6ce9a6;
    --header-bg: rgba(7, 16, 39, 0.86);
    --shadow-sm: 0 12px 36px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 36px 100px rgba(0, 0, 0, 0.36);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 65vh;
  overflow: hidden;
}

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

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

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-strong);
}

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

h1,
h2,
h3 {
  color: var(--text-strong);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}

h2 {
  font-size: clamp(2rem, 4.3vw, 3.8rem);
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.5rem);
}

::selection {
  background: var(--accent);
  color: #04131b;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.container-wide,
.container-narrow {
  width: min(calc(100% - 2.25rem), var(--container));
  margin-inline: auto;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section-space {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-space-sm {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-muted {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.55fr);
  gap: 2rem 5rem;
  align-items: end;
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p:last-child {
  color: var(--muted);
  margin: 0;
  max-width: 42rem;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  border-radius: 0.5rem;
  background: var(--text-strong);
  color: var(--bg);
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition);
}

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

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button,
.icon-button,
.header-action {
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 999px;
  background: var(--text-strong);
  color: var(--bg);
  padding: 0.75rem 1.15rem;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--text-strong) 16%, transparent);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  color: var(--bg);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: none;
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-strong);
}

.icon-button {
  display: inline-grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-strong);
  text-decoration: none;
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-strong);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-strong);
  font-weight: 740;
  text-decoration: none;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.text-link .icon {
  transition: transform var(--transition);
}

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

.header-inner {
  display: grid;
  min-height: 4.75rem;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-strong);
  text-decoration: none;
}

.brand:hover {
  color: var(--text-strong);
}

.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--text-strong);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 0.93rem;
}

.brand-copy small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.navigation-slot {
  justify-self: center;
}

.desktop-navigation {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

.site-navigation {
  display: none;
}

.nav-link {
  position: relative;
  border-radius: 999px;
  color: var(--muted);
  padding: 0.55rem 0.88rem;
  font-size: 0.9rem;
  font-weight: 680;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.is-current {
  background: var(--surface-2);
  color: var(--text-strong);
}

.nav-link.is-current::after {
  position: absolute;
  right: 0.72rem;
  bottom: 0.25rem;
  left: 0.72rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

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

.header-action {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  gap: 0.55rem;
  border-color: var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0.45rem 0.55rem 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 680;
}

.header-action:hover {
  border-color: var(--accent);
  color: var(--text-strong);
}

kbd {
  display: inline-grid;
  min-width: 1.45rem;
  min-height: 1.35rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 0.38rem;
  background: var(--surface-2);
  color: var(--muted);
  padding-inline: 0.28rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .theme-icon-sun {
    display: none;
  }

  html[data-theme="system"] .theme-icon-moon {
    display: block;
  }
}

.hero {
  padding-top: clamp(4.5rem, 9vw, 8rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(24rem, 0.78fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.hero-copy h1 {
  max-width: 10ch;
  margin-bottom: 1.35rem;
}

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

.hero-lead {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3.4rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-proof li {
  display: grid;
  gap: 0.15rem;
}

.hero-proof strong {
  color: var(--text-strong);
  font-size: 0.9rem;
}

.hero-proof span {
  color: var(--muted);
  font-size: 0.77rem;
}

.hero-visual {
  position: relative;
  min-height: 34rem;
  isolation: isolate;
}

.hero-orbit {
  position: absolute;
  z-index: -2;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hero-orbit-one {
  inset: 2% 0 12% 8%;
}

.hero-orbit-two {
  inset: 12% 12% 2% -4%;
}

.hero-project-frame {
  position: absolute;
  inset: 3rem 0 3rem 2rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #0c1730;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.browser-bar {
  display: flex;
  height: 2.6rem;
  gap: 0.4rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #0b1429;
  padding-inline: 1rem;
}

.browser-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.browser-bar small {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-project-frame picture,
.hero-project-image {
  width: 100%;
  height: calc(100% - 2.6rem);
}

.hero-project-image {
  object-fit: cover;
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  min-width: 12rem;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text-strong);
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  backdrop-filter: blur(16px);
}

.floating-note:hover {
  transform: translateY(-3px);
  color: var(--text-strong);
}

.floating-note-top {
  top: 0;
  right: -1rem;
}

.floating-note-bottom {
  bottom: 0.4rem;
  left: -1.5rem;
}

.floating-note span:not(.floating-icon):not(.status-dot) {
  display: grid;
  line-height: 1.25;
}

.floating-note small {
  color: var(--muted);
  font-size: 0.65rem;
}

.floating-note strong {
  margin-top: 0.2rem;
  font-size: 0.78rem;
}

.floating-icon {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-dot {
  width: 0.68rem;
  height: 0.68rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.32rem color-mix(in srgb, var(--accent) 17%, transparent);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.project-card[hidden] {
  display: none;
}

.project-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #0c1730;
}

.project-card-media picture,
.project-card-media img {
  width: 100%;
  height: 100%;
}

.project-card-media img {
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-card:hover .project-card-media img {
  transform: scale(1.035);
}

.project-card-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(7, 16, 39, 0.78);
  color: white;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), background var(--transition);
}

.project-card:hover .project-card-arrow {
  transform: rotate(-8deg) translate(2px, -2px);
  background: var(--accent-strong);
}

.project-card-body {
  padding: 1.35rem;
}

.project-card-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 690;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-card-meta span:last-child {
  overflow: hidden;
  max-width: 55%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card h3 {
  margin-bottom: 0.7rem;
}

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

.project-card-body > p {
  min-height: 4.8em;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.project-source {
  width: 2.35rem;
  height: 2.35rem;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

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

.capability-card {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  padding: 1.6rem;
}

.capability-number {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  color: color-mix(in srgb, var(--muted) 25%, transparent);
  font-size: 4.5rem;
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 1;
}

.capability-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.capability-card h3 {
  margin-top: 6.5rem;
  margin-bottom: 0.7rem;
}

.capability-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-cta {
  padding-top: 2rem;
}

.cta-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-radius: var(--radius-lg);
  background: var(--text-strong);
  color: var(--bg);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-lg);
}

.cta-panel::before {
  position: absolute;
  width: 26rem;
  height: 26rem;
  top: -16rem;
  right: 4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  content: "";
  filter: blur(10px);
}

.cta-panel > * {
  position: relative;
}

.cta-panel .eyebrow {
  color: var(--accent);
}

.cta-panel h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--bg);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.cta-panel .button {
  flex: 0 0 auto;
  background: var(--bg);
  color: var(--text-strong);
  box-shadow: none;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 55%, transparent), transparent);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.55fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: end;
}

.page-hero h1 {
  max-width: 15ch;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 6.4vw, 5.5rem);
}

.page-hero-grid > p {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.portfolio-section {
  padding-top: 2rem;
}

.portfolio-toolbar {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(12rem, 0.34fr) auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.search-field,
.filter-field {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--bg);
  color: var(--muted);
  padding: 0 0.85rem;
}

.search-field:focus-within,
.filter-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.search-field input,
.filter-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
}

.filter-field select {
  cursor: pointer;
}

.result-count {
  min-width: 6.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.result-count strong {
  color: var(--text-strong);
}

.empty-state {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 4rem 1.5rem;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state > span {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
}

.empty-state h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.7rem;
}

.empty-state p {
  color: var(--muted);
}

.noscript-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
}

.profile-card {
  position: sticky;
  top: 6.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile-card > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}

.profile-card-body {
  padding: 1.4rem;
}

.profile-card h2 {
  margin-bottom: 0.35rem;
  font-size: 1.75rem;
}

.profile-card-body > p:not(.eyebrow) {
  color: var(--muted);
}

.profile-details {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0;
  padding: 1.15rem 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.profile-details li {
  display: flex;
  min-width: 0;
  gap: 0.65rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.83rem;
}

.profile-details a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-links {
  display: flex;
  gap: 0.55rem;
}

.prose-large {
  color: var(--muted);
  font-size: clamp(1.16rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.prose-large p {
  margin-bottom: 1.3rem;
}

.about-content > .button-row {
  margin-top: 2rem;
}

.about-section {
  margin-top: clamp(4rem, 9vw, 7rem);
}

.about-section h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.skill-cloud,
.tag-list,
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.skill-cloud li,
.tag-list li,
.tech-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-strong);
  padding: 0.48rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 650;
}

.principle-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.principle-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.2rem;
}

.principle-list article > span {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.principle-list h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.principle-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.6fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(1.35rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.form-heading h2 {
  max-width: 14ch;
  margin-bottom: 0.5rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

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

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text-strong);
  font-size: 0.85rem;
  font-weight: 690;
}

.contact-form label small {
  color: var(--muted);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  outline: 0;
  background: var(--bg);
  color: var(--text-strong);
  padding: 0.82rem 0.9rem;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 68%, transparent);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-footer {
  display: flex;
  min-height: 3.5rem;
  gap: 1rem;
  align-items: center;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.contact-aside {
  position: sticky;
  top: 7rem;
}

.contact-aside > p:not(.eyebrow) {
  color: var(--muted);
}

.contact-methods {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.contact-methods > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.9rem;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.contact-methods > a:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-strong);
}

.contact-methods > a > span {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--surface-2);
  color: var(--accent-strong);
}

.contact-methods div {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.contact-methods small {
  color: var(--muted);
  font-size: 0.66rem;
}

.contact-methods strong {
  overflow: hidden;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.response-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.response-note .status-dot {
  margin-top: 0.45rem;
}

.response-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.response-note strong {
  color: var(--text-strong);
}

.breadcrumb {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb .icon {
  width: 0.85rem;
  height: 0.85rem;
}

.project-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 65%, transparent), transparent);
}

.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.project-hero-copy h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 6.7vw, 6rem);
}

.project-tagline {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.project-hero-media {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #0c1730;
  box-shadow: var(--shadow-lg);
}

.project-detail-image {
  width: 100%;
  height: auto;
}

.case-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.42fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
}

.case-study-main h2 {
  max-width: 16ch;
}

.lead-copy {
  max-width: 43rem;
  color: var(--text-strong);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.55;
}

.prose {
  max-width: 46rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.prose p {
  margin-bottom: 1.2rem;
}

.case-block {
  max-width: 46rem;
  margin-top: 2rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  padding: 1.1rem 1.25rem;
}

.case-block h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.case-block p {
  margin: 0;
  color: var(--muted);
}

.case-study-aside {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 1rem;
}

.case-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.case-panel .tech-list {
  margin-top: 0;
}

.case-panel dl,
.case-panel dd {
  margin: 0;
}

.case-panel dl {
  display: grid;
  gap: 0.9rem;
}

.case-panel dl > div {
  display: grid;
  gap: 0.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.case-panel dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.case-panel dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-panel dd {
  color: var(--text-strong);
  font-size: 0.84rem;
}

.case-panel code {
  border-radius: 0.4rem;
  background: var(--surface-2);
  padding: 0.2rem 0.4rem;
  font-size: 0.78rem;
}

.small-note {
  margin: 1rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 1rem;
  font-size: 0.75rem;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.not-found {
  display: grid;
  min-height: 70vh;
  place-items: center;
  text-align: center;
}

.not-found .container-narrow {
  display: grid;
  justify-items: center;
}

.not-found-code {
  color: color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.7;
}

.not-found h1 {
  max-width: 12ch;
  margin: 1rem auto;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.not-found p:not(.eyebrow) {
  max-width: 38rem;
  color: var(--muted);
}

.not-found .button-row {
  justify-content: center;
  margin-top: 1rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) auto auto;
  gap: 3rem;
  align-items: start;
}

.footer-note {
  max-width: 27rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-nav {
  display: grid;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 620;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-block: 1.2rem;
  font-size: 0.72rem;
}

.command-dialog {
  width: min(calc(100% - 2rem), 44rem);
  max-height: min(78vh, 42rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow-lg);
}

.command-dialog::backdrop {
  background: rgba(2, 8, 23, 0.68);
  backdrop-filter: blur(5px);
}

.command-shell {
  display: grid;
  max-height: min(78vh, 42rem);
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--surface);
}

.command-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem;
}

.command-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.command-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 1rem;
}

.command-body {
  overflow: auto;
  padding: 0.9rem;
}

.command-body .eyebrow {
  margin: 0.5rem 0.6rem 0.8rem;
}

.command-list {
  display: grid;
  gap: 0.25rem;
}

.command-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  border-radius: 0.75rem;
  padding: 0.65rem;
  text-decoration: none;
}

.command-item:hover,
.command-item.is-active {
  background: var(--surface-2);
  color: var(--text-strong);
}

.command-item[hidden] {
  display: none;
}

.command-icon {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--accent-strong);
}

.command-item > span:nth-child(2) {
  display: grid;
  line-height: 1.2;
}

.command-item strong {
  font-size: 0.86rem;
}

.command-item small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.empty-message {
  margin: 2rem 0;
  color: var(--muted);
  text-align: center;
}

.command-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 0.65rem 0.9rem;
  font-size: 0.66rem;
}

.command-footer span {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

@view-transition {
  navigation: auto;
}

.js.reveal-ready [data-reveal] {
  opacity: 1;
  transform: none;
}

.js.reveal-ready [data-reveal].is-visible {
  animation: reveal-in 560ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes reveal-in {
  from {
    opacity: 0.72;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 3rem;
  }

  .hero-visual {
    min-height: 29rem;
  }

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

  .featured-grid .project-card:last-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
  }

  .featured-grid .project-card:last-child .project-card-media {
    height: 100%;
  }

  .capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .container-wide,
  .container-narrow {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  .header-inner {
    min-height: 4.25rem;
    grid-template-columns: auto 1fr auto;
    gap: 0.6rem;
  }

  .brand-copy {
    display: none;
  }

  .navigation-slot {
    justify-self: end;
  }

  .desktop-navigation {
    display: none;
  }

  .site-navigation {
    position: relative;
    display: block;
  }

  .site-navigation summary {
    display: inline-flex;
    min-height: 2.7rem;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-strong);
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    list-style: none;
  }

  .site-navigation summary::-webkit-details-marker {
    display: none;
  }

  .site-navigation nav {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    display: none !important;
    width: min(17rem, calc(100vw - 2rem));
    gap: 0.2rem;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    padding: 0.55rem;
    box-shadow: var(--shadow-lg);
  }

  .site-navigation[open] nav {
    display: grid !important;
  }

  .nav-link {
    padding: 0.75rem 0.85rem;
  }

  .command-button span,
  .command-button kbd {
    display: none;
  }

  .command-button {
    width: 2.7rem;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
  }

  .hero-grid,
  .page-hero-grid,
  .project-hero-grid,
  .about-grid,
  .contact-grid,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 11ch;
  }

  .hero-visual {
    width: min(100%, 38rem);
    min-height: 32rem;
    margin-inline: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .section-heading .eyebrow {
    margin-bottom: -0.3rem;
  }

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

  .capability-card {
    min-height: 16rem;
  }

  .capability-card h3 {
    margin-top: 4.5rem;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .result-count {
    grid-column: 1 / -1;
    text-align: left;
  }

  .profile-card,
  .contact-aside,
  .case-study-aside {
    position: static;
  }

  .profile-card {
    display: grid;
    grid-template-columns: minmax(10rem, 0.7fr) 1fr;
  }

  .profile-card > img {
    height: 100%;
  }

  .contact-aside {
    max-width: 38rem;
  }

  .project-hero-media {
    order: -1;
  }

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

  .footer-social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .section-space {
    padding-block: 4.5rem;
  }

  .section-space-sm {
    padding-block: 3.25rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

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

  .hero-proof li {
    grid-template-columns: 7rem 1fr;
    align-items: baseline;
  }

  .hero-visual {
    min-height: 25rem;
  }

  .hero-project-frame {
    inset: 2.5rem 0.5rem 2.5rem 0.5rem;
  }

  .floating-note-top {
    right: 0;
  }

  .floating-note-bottom {
    left: 0;
  }

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

  .featured-grid .project-card:last-child {
    grid-column: auto;
    display: block;
  }

  .project-card-body > p {
    min-height: auto;
  }

  .portfolio-toolbar,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .result-count {
    grid-column: auto;
  }

  .profile-card {
    display: block;
  }

  .profile-card > img {
    height: auto;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  .footer-social {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .command-footer {
    display: none;
  }
}

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

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

  .js.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .command-dialog,
  .button-row,
  .portfolio-toolbar {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .project-card,
  .profile-card,
  .case-panel {
    break-inside: avoid;
    box-shadow: none;
  }
}
