:root {
  color-scheme: light dark;
  --bg: #f8f7f3;
  --surface: rgba(255, 253, 248, 0.9);
  --header-bg: rgba(248, 247, 243, 0.72);
  --panel-bg: rgba(255, 253, 248, 0.58);
  --panel-strong-bg: rgba(255, 253, 248, 0.82);
  --panel-strong-hover: rgba(255, 253, 248, 0.98);
  --control-bg: rgba(255, 253, 248, 0.76);
  --control-soft-bg: rgba(255, 253, 248, 0.64);
  --ink: #161513;
  --muted: #696d73;
  --line: rgba(28, 34, 43, 0.14);
  --fine-line: rgba(28, 34, 43, 0.075);
  --major-line: rgba(21, 94, 239, 0.16);
  --accent: #0a84ff;
  --accent-ink: #ffffff;
  --green: #1f7a58;
  --orange: #ff9f0a;
  --beta-ink: #a16000;
  --dev-ink: #555b63;
  --error: #c12626;
  --ticker-bg: #161513;
  --ticker-ink: #fffdf8;
  --sheen: rgba(255, 255, 255, 0.58);
  --panel-status-gradient: linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 253, 248, 0.9));
  --body-sheen: linear-gradient(180deg, rgba(248, 247, 243, 0.22), rgba(248, 247, 243, 0.76) 62%);
  --text-strong: #34302b;
  --text-chip: #49443f;
  --shadow: 0 24px 70px rgba(23, 31, 42, 0.08);
  --max-width: 1180px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101419;
  --surface: rgba(22, 27, 33, 0.9);
  --header-bg: rgba(16, 20, 25, 0.74);
  --panel-bg: rgba(24, 30, 37, 0.7);
  --panel-strong-bg: rgba(25, 31, 38, 0.86);
  --panel-strong-hover: rgba(30, 38, 47, 0.98);
  --control-bg: rgba(24, 30, 37, 0.86);
  --control-soft-bg: rgba(24, 30, 37, 0.7);
  --ink: #f4f2ed;
  --muted: #a8b0bb;
  --line: rgba(232, 238, 247, 0.16);
  --fine-line: rgba(232, 238, 247, 0.085);
  --major-line: rgba(93, 173, 255, 0.2);
  --accent: #5dabff;
  --accent-ink: #09111a;
  --green: #69d39a;
  --orange: #ffc46b;
  --beta-ink: #ffc46b;
  --dev-ink: #b9c0c9;
  --error: #ff8a8a;
  --ticker-bg: #f4f2ed;
  --ticker-ink: #101419;
  --sheen: rgba(255, 255, 255, 0.16);
  --panel-status-gradient: linear-gradient(90deg, rgba(28, 36, 45, 0.94), rgba(25, 31, 38, 0.96));
  --body-sheen: linear-gradient(180deg, rgba(16, 20, 25, 0.32), rgba(16, 20, 25, 0.88) 66%);
  --text-strong: #e7e1d7;
  --text-chip: #d6dde7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(var(--fine-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fine-line) 1px, transparent 1px),
    linear-gradient(var(--major-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--major-line) 1px, transparent 1px),
    var(--bg);
  background-position:
    -1px -1px,
    -1px -1px,
    -1px -1px,
    -1px -1px;
  background-size:
    16px 16px,
    16px 16px,
    80px 80px,
    80px 80px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 54% 8%, rgba(10, 132, 255, 0.13), transparent 34%),
    radial-gradient(circle at 0% 44%, rgba(52, 199, 89, 0.07), transparent 30%),
    var(--body-sheen);
  content: "";
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--fine-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fine-line) 1px, transparent 1px),
    linear-gradient(var(--major-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--major-line) 1px, transparent 1px);
  background-size:
    16px 16px,
    16px 16px,
    80px 80px,
    80px 80px;
  background-position:
    -1px -1px,
    -1px -1px,
    -1px -1px,
    -1px -1px;
  background-repeat: repeat;
  content: "";
  opacity: 0.56;
  pointer-events: none;
}

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

.page-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 0 16px;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.18);
}

.site-header-inner {
  display: flex;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control-soft-bg);
  color: var(--muted);
  padding: 4px;
  user-select: none;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-within {
  border-color: rgba(10, 132, 255, 0.42);
  color: var(--ink);
  transform: translateY(-1px);
}

.theme-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  width: 64px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 159, 10, 0.14), rgba(10, 132, 255, 0.12)),
    color-mix(in srgb, var(--muted) 12%, transparent);
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.theme-toggle-icon {
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.theme-toggle-icon-sun {
  left: 8px;
  color: var(--accent-ink);
  opacity: 1;
}

.theme-toggle-icon-moon {
  right: 8px;
  color: var(--muted);
  opacity: 0.72;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(10, 132, 255, 0.28);
  transition:
    background 180ms ease,
    transform 200ms ease;
}

[data-theme="dark"] .theme-toggle-track {
  background:
    linear-gradient(90deg, rgba(255, 159, 10, 0.1), rgba(10, 132, 255, 0.18)),
    color-mix(in srgb, var(--muted) 14%, transparent);
}

[data-theme="dark"] .theme-toggle-icon-sun {
  color: var(--muted);
  opacity: 0.72;
}

[data-theme="dark"] .theme-toggle-icon-moon {
  color: var(--accent-ink);
  opacity: 1;
}

[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat,
    linear-gradient(90deg, var(--accent), var(--accent)) center / 100% 2px no-repeat;
  box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.08);
  content: "";
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
}

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

.section-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(72px, 11vw, 142px) 0;
  border-top: 1px solid var(--line);
}

.section-grid::before {
  position: absolute;
  top: 18px;
  left: 0;
  color: rgba(105, 109, 115, 0.52);
  content: "section / grid";
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  min-height: calc(100svh - 200px);
  align-items: center;
  border-top: 0;
  padding-top: clamp(18px, 4vw, 52px);
  padding-bottom: clamp(28px, 5vw, 62px);
}

.hero::before {
  content: "build target / native apple platforms";
}

.work::before {
  content: "primary work / regulated products";
}

.projects::before {
  content: "own projects / native products";
}

#hero-canvas {
  position: absolute;
  inset: 20px 0 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  pointer-events: none;
}

.blueprint-markers {
  position: absolute;
  inset: 86px 0 64px;
  z-index: -1;
  pointer-events: none;
}

.blueprint-markers span {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  opacity: 0.7;
}

.blueprint-markers span::before,
.blueprint-markers span::after {
  position: absolute;
  background: rgba(10, 132, 255, 0.16);
  content: "";
}

.blueprint-markers span::before {
  top: 50%;
  left: -12px;
  width: 64px;
  height: 1px;
}

.blueprint-markers span::after {
  top: -12px;
  left: 50%;
  width: 1px;
  height: 64px;
}

.blueprint-markers span:nth-child(1) {
  top: 2%;
  left: 4%;
}

.blueprint-markers span:nth-child(2) {
  top: 12%;
  right: 8%;
}

.blueprint-markers span:nth-child(3) {
  bottom: 8%;
  left: 42%;
}

.blueprint-markers span:nth-child(4) {
  right: 18%;
  bottom: 18%;
}

.hero-copy {
  grid-column: auto;
  max-width: 780px;
}

.eyebrow,
.section-kicker,
.item-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid rgba(10, 132, 255, 0.24);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0 9px;
}

.meta-pill.status-live {
  border-color: rgba(31, 122, 88, 0.26);
  background: rgba(31, 122, 88, 0.09);
  color: var(--green);
}

.meta-pill.status-beta {
  border-color: rgba(255, 159, 10, 0.34);
  background: rgba(255, 159, 10, 0.12);
  color: var(--beta-ink);
}

.meta-pill.status-dev {
  border-color: rgba(10, 132, 255, 0.22);
  background: rgba(10, 132, 255, 0.075);
  color: #356c9f;
}

.meta-pill.status-private {
  border-color: rgba(127, 91, 38, 0.26);
  background: rgba(127, 91, 38, 0.09);
  color: #72511f;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(4rem, 9vw, 7.7rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.88;
}

h1 span {
  display: block;
  animation: titleFloat 8s ease-in-out infinite;
}

h1 span:nth-child(2) {
  animation-delay: -3.5s;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--text-strong);
  font-size: clamp(1.22rem, 2.6vw, 2.05rem);
  line-height: 1.22;
}

.workbench-strip {
  display: inline-grid;
  grid-template-columns: repeat(2, max-content);
  gap: 1px;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(28, 34, 43, 0.14);
  border-radius: 8px;
  background: rgba(28, 34, 43, 0.12);
  box-shadow: 0 14px 42px rgba(23, 31, 42, 0.05);
  margin: -8px 0 22px;
}

.workbench-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  background: var(--control-bg);
  color: var(--text-chip);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0 12px;
}

.workbench-strip span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  margin-right: 8px;
}

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

.button,
.contact-form button,
.contact-links a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible,
.contact-links a:hover,
.contact-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(21, 94, 239, 0.42);
}

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

.button.secondary {
  background: var(--control-soft-bg);
}

.hero-panel {
  grid-column: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 34, 43, 0.13);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 0%, var(--sheen) 38%, transparent 54%);
  content: "";
  opacity: 0;
  transform: translateX(-120%);
  animation: panelSheen 7s ease-in-out infinite;
  pointer-events: none;
}

.panel-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(28, 34, 43, 0.1);
  background:
    var(--panel-status-gradient),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(28, 34, 43, 0.05) 21px 22px);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(31, 122, 88, 0.38);
  animation: statusPulse 2s ease-out infinite;
}

.signal-line {
  position: relative;
  z-index: 2;
  min-height: 132px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.045), transparent 38%),
    var(--panel-strong-bg);
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.signal-line:hover {
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.075), transparent 42%),
    var(--panel-strong-hover);
  transform: translateX(4px);
}

.signal-line span {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-line span::before,
.item-meta::before {
  color: var(--accent);
  content: "// ";
}

.signal-line strong {
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.24;
}

.hero-ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--ticker-bg);
  color: var(--ticker-ink);
}

.hero-ticker div {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 13px 18px;
  animation: ticker 18s linear infinite;
}

.hero-ticker span {
  color: color-mix(in srgb, var(--ticker-ink) 82%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-ticker span::before {
  color: var(--accent);
  content: "/";
  margin-right: 18px;
}

.intro {
  padding-top: clamp(18px, 4vw, 48px);
}

.section-content,
.project-filter,
.work-list,
.skill-grid,
.timeline,
.education-layout {
  grid-column: 2;
}

.section-heading {
  display: grid;
  align-content: start;
  gap: 14px;
}

.section-heading p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.5;
}

.large-text {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.14;
}

.section-content p:not(.large-text) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-showcase {
  min-width: 0;
}

.project-heading {
  max-width: 880px;
  margin-bottom: 28px;
}

.project-heading p:not(.large-text) {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-rail {
  display: grid;
  grid-auto-columns: minmax(320px, 0.46fr);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 18px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(10, 132, 255, 0.45) rgba(28, 34, 43, 0.08);
}

.project-rail:hover .project-card,
.project-rail:focus-within .project-card {
  animation-play-state: paused;
}

.project-rail::-webkit-scrollbar {
  height: 10px;
}

.project-rail::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(28, 34, 43, 0.08);
}

.project-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.42);
}

.project-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 430px;
  border: 1px solid rgba(28, 34, 43, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(var(--fine-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fine-line) 1px, transparent 1px),
    rgba(255, 253, 248, 0.7);
  background-size: 22px 22px;
  box-shadow: 0 18px 54px rgba(23, 31, 42, 0.045);
  overflow: hidden;
  padding: 18px;
  scroll-snap-align: start;
}

.project-card:nth-child(2) {
  animation: projectDrift 10s ease-in-out infinite;
}

.project-card:nth-child(3) {
  animation: projectDrift 12s ease-in-out infinite reverse;
}

.project-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 132, 255, 0.14), transparent 38%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card.is-placeholder {
  opacity: 0.78;
}

.project-window {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(28, 34, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid rgba(28, 34, 43, 0.1);
  background: rgba(255, 255, 255, 0.46);
  padding: 0 13px;
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(105, 109, 115, 0.35);
}

.project-card.is-live .window-bar span:nth-child(1) {
  background: #ff5f57;
}

.project-card.is-live .window-bar span:nth-child(2) {
  background: #ffbd2e;
}

.project-card.is-live .window-bar span:nth-child(3) {
  background: #28c840;
}

.project-visual {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px 18px 12px;
}

.app-icon-mark {
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.95), rgba(31, 122, 88, 0.82)),
    var(--accent);
  color: #fff;
  font-size: 1.65rem;
  font-weight: 900;
}

.is-placeholder .app-icon-mark {
  background:
    linear-gradient(var(--fine-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fine-line) 1px, transparent 1px),
    rgba(255, 253, 248, 0.86);
  background-size: 10px 10px;
  color: var(--accent);
}

.project-card h2 {
  margin: 6px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.project-card p {
  color: var(--muted);
}

.project-window > p {
  margin: 0;
  padding: 0 18px 20px;
}

.project-card .tag-list {
  position: relative;
  z-index: 1;
  grid-column: auto;
  margin-top: 16px;
}

.project-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 850;
}

.project-link:hover,
.project-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.work-list,
.timeline,
.education-layout {
  display: grid;
  gap: 16px;
}

.project-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(28, 34, 43, 0.1);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 12px;
  box-shadow: 0 14px 36px rgba(23, 31, 42, 0.035);
}

.project-filter-label,
.project-filter-count {
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-filter-options {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.project-filter-options::-webkit-scrollbar {
  display: none;
}

.project-filter button {
  flex: 0 0 auto;
  cursor: pointer;
  border: 1px solid rgba(28, 34, 43, 0.12);
  border-radius: 6px;
  background: var(--control-bg);
  color: var(--text-chip);
  font: inherit;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 10px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.project-filter button:hover,
.project-filter button:focus-visible {
  border-color: rgba(10, 132, 255, 0.35);
  color: var(--ink);
}

.project-filter button.is-active {
  border-color: rgba(10, 132, 255, 0.36);
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent);
}

.work-item.is-filtered-out {
  display: none;
}

.work-item,
.timeline-item,
.skill-group,
.education-layout article {
  border: 1px solid rgba(28, 34, 43, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.04), transparent 34%),
    var(--panel-bg);
  padding: 24px;
  box-shadow: 0 18px 54px rgba(23, 31, 42, 0.045);
}

.work-item {
  display: grid;
  grid-template-columns: minmax(300px, 0.48fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.projects .work-item {
  grid-template-columns: 64px minmax(220px, 0.48fr) minmax(0, 1fr);
  gap: 0 22px;
  padding: clamp(24px, 3vw, 32px);
}

.project-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.projects .project-heading {
  display: contents;
}

.projects .project-heading > .project-logo {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.projects .project-heading > div {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.projects .work-item > p {
  grid-column: 3;
  grid-row: 1;
}

.projects .tag-list {
  grid-column: 3;
  grid-row: 2;
  align-self: end;
  margin-top: 24px;
}

.project-logo {
  display: inline-grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(28, 34, 43, 0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(23, 31, 42, 0.08);
}

.logo-goby,
.logo-hotclip,
.logo-saver,
.logo-generic {
  width: 64px;
  overflow: hidden;
  border-radius: 16px;
}

.logo-goby {
  background: #0a84ff;
  box-shadow: 0 18px 42px rgba(10, 132, 255, 0.2);
}

.logo-goby img,
.logo-hotclip img,
.logo-saver img {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-hotclip {
  background: #1f7a58;
  box-shadow: 0 18px 42px rgba(31, 122, 88, 0.2);
}

.logo-saver {
  background: #2f6f4e;
  box-shadow: 0 18px 42px rgba(47, 111, 78, 0.2);
}

.logo-generic {
  position: relative;
  background:
    linear-gradient(var(--fine-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fine-line) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 252, 0.44));
  background-size: 12px 12px, 12px 12px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 42px rgba(23, 31, 42, 0.12);
}

.logo-generic::before {
  content: "";
  width: 24px;
  aspect-ratio: 1;
  border-radius: 7px;
  background:
    radial-gradient(circle at 28% 28%, var(--accent) 0 3px, transparent 3.5px),
    radial-gradient(circle at 72% 28%, rgba(28, 34, 43, 0.34) 0 3px, transparent 3.5px),
    radial-gradient(circle at 28% 72%, rgba(28, 34, 43, 0.34) 0 3px, transparent 3.5px),
    radial-gradient(circle at 72% 72%, rgba(28, 34, 43, 0.34) 0 3px, transparent 3.5px);
}

.logo-generic::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.12);
}

.logo-security::after {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.14);
}

.logo-security {
  background:
    linear-gradient(var(--fine-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fine-line) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 253, 248, 0.82), rgba(255, 247, 232, 0.5));
  background-size: 12px 12px, 12px 12px, auto;
}

.logo-ai {
  background:
    linear-gradient(var(--fine-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fine-line) 1px, transparent 1px),
    linear-gradient(145deg, rgba(244, 250, 255, 0.9), rgba(231, 244, 255, 0.54));
  background-size: 12px 12px, 12px 12px, auto;
  box-shadow: 0 18px 42px rgba(10, 132, 255, 0.18);
}

.project-heading .item-meta::before {
  content: none;
}

.work-item.featured {
  border-color: rgba(10, 132, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.09), transparent 42%),
    var(--panel-strong-bg);
  box-shadow: 0 24px 70px rgba(10, 132, 255, 0.08);
}

.work-item h2,
.timeline-item h2,
.skill-group h2,
.education-layout h2,
.contact h2 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  letter-spacing: 0;
  line-height: 1.12;
}

.work-item h2 {
  max-width: 420px;
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.1vw, 2.35rem);
  line-height: 1.04;
}

.work-item p,
.timeline-item p,
.skill-group p,
.education-layout p {
  color: var(--muted);
}

.work-item > p {
  max-width: 640px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.5;
}

.reference-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 800;
}

.reference-link:hover,
.reference-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tag-list {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(28, 34, 43, 0.12);
  border-radius: 6px;
  background: var(--control-bg);
  padding: 7px 10px;
  color: var(--text-chip);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

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

.skills {
  width: min(calc(100vw - 64px), 1560px);
  margin-left: 50%;
  transform: translateX(-50%);
  grid-template-columns: minmax(220px, 0.24fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 70px);
  padding-top: clamp(84px, 10vw, 132px);
  padding-bottom: clamp(84px, 10vw, 132px);
}

.skills::before {
  content: "capability map / product systems";
}

.skills .skill-group {
  position: relative;
  display: grid;
  min-height: 206px;
  align-content: start;
  gap: 14px;
  overflow: hidden;
  border-color: rgba(28, 34, 43, 0.1);
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.045), transparent 38%),
    linear-gradient(180deg, var(--panel-strong-bg), var(--panel-bg));
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 18px 48px rgba(23, 31, 42, 0.052);
}

.skills .skill-group::after {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-right: 1px solid rgba(10, 132, 255, 0.18);
  border-bottom: 1px solid rgba(10, 132, 255, 0.18);
  content: "";
}

.skills .skill-group:nth-child(5) {
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  min-height: 172px;
  align-items: center;
  column-gap: clamp(22px, 4vw, 52px);
}

.skills .skill-group h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2rem, 3.15vw, 3rem);
  line-height: 1;
}

.skills .skill-group p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.28vw, 1.18rem);
  font-weight: 650;
  line-height: 1.38;
}

.timeline-item,
.education-layout article {
  max-width: 850px;
}

.contact {
  margin: clamp(54px, 9vw, 100px) 0 32px;
  border: 1px solid rgba(28, 34, 43, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(var(--fine-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fine-line) 1px, transparent 1px),
    var(--panel-bg);
  background-size: 22px 22px;
  padding: clamp(28px, 6vw, 72px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 24px 70px rgba(23, 31, 42, 0.1);
  backdrop-filter: blur(20px) saturate(1.16);
}

.contact h2 {
  max-width: 760px;
  margin-top: 12px;
  margin-bottom: 28px;
  font-size: clamp(2rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.contact-form {
  display: grid;
  max-width: 820px;
  gap: 14px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(28, 34, 43, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(var(--fine-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fine-line) 1px, transparent 1px),
    var(--control-bg);
  background-size: 22px 22px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
  padding: 14px 14px;
  backdrop-filter: blur(14px) saturate(1.08);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(10, 132, 255, 0.72);
  background-color: var(--panel-strong-hover);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
}

.form-trap {
  display: none !important;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.contact-form button {
  cursor: pointer;
  font: inherit;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--error);
}

.contact .contact-links {
  margin-top: 22px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

[data-theme="dark"] body::after {
  opacity: 0.6;
}

[data-theme="dark"] .meta-pill.status-dev {
  border-color: rgba(125, 181, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(125, 181, 255, 0.16), rgba(125, 181, 255, 0.075));
  color: #b9d7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .meta-pill.status-private {
  border-color: rgba(255, 196, 107, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 196, 107, 0.14), rgba(255, 196, 107, 0.07));
  color: #ffd89b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .logo-generic {
  background:
    linear-gradient(var(--fine-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fine-line) 1px, transparent 1px),
    linear-gradient(145deg, rgba(36, 45, 56, 0.96), rgba(20, 25, 31, 0.92));
  background-size: 12px 12px, 12px 12px, auto;
  border-color: rgba(232, 238, 247, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .logo-generic::before {
  background:
    radial-gradient(circle at 28% 28%, var(--accent) 0 3px, transparent 3.5px),
    radial-gradient(circle at 72% 28%, rgba(244, 242, 237, 0.4) 0 3px, transparent 3.5px),
    radial-gradient(circle at 28% 72%, rgba(244, 242, 237, 0.4) 0 3px, transparent 3.5px),
    radial-gradient(circle at 72% 72%, rgba(244, 242, 237, 0.4) 0 3px, transparent 3.5px);
}

[data-theme="dark"] .logo-security::after {
  box-shadow: 0 0 0 3px rgba(255, 196, 107, 0.16);
}

@keyframes titleFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes panelSheen {
  0%,
  48% {
    opacity: 0;
    transform: translateX(-120%);
  }

  60% {
    opacity: 0.9;
  }

  72%,
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 122, 88, 0.38);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(31, 122, 88, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(31, 122, 88, 0);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes projectDrift {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-18px);
  }
}

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

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

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

  h1 span,
  .hero-panel::before,
  .panel-status span,
  .hero-ticker div,
  .project-card {
    animation: none;
  }

  #hero-canvas {
    opacity: 0.22;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 24px, var(--max-width));
  }

  .site-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .site-header-inner {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .section-grid,
  .hero {
    display: block;
    padding: 68px 0;
  }

  .skills {
    width: auto;
    margin-left: 0;
    transform: none;
  }

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

  #hero-canvas {
    opacity: 0.52;
  }

  h1 {
    font-size: clamp(3.45rem, 19vw, 5.5rem);
  }

  .section-kicker {
    margin-bottom: 26px;
  }

  .project-filter {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .project-filter-options {
    flex-wrap: nowrap;
  }

  .project-filter-count {
    display: none;
  }

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

  .section-heading p {
    max-width: 560px;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .signal-line {
    min-height: 118px;
  }

  .work-item {
    display: block;
  }

  .projects .work-item {
    display: block;
  }

  .projects .project-heading {
    display: grid;
  }

  .projects .project-heading > .project-logo,
  .projects .project-heading > div,
  .projects .work-item > p,
  .projects .tag-list {
    grid-column: auto;
    grid-row: auto;
  }

  .project-heading {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .project-logo {
    width: 52px;
    border-radius: 13px;
  }

  .work-item h2 {
    font-size: clamp(1.55rem, 9vw, 2.35rem);
  }

  .tag-list {
    margin-top: 18px;
  }

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

  .skills .skill-group,
  .skills .skill-group:nth-child(1),
  .skills .skill-group:nth-child(2),
  .skills .skill-group:nth-child(n + 3) {
    grid-column: auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .skills .skill-group h2 {
    font-size: clamp(1.85rem, 10vw, 2.65rem);
  }

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

  .contact {
    margin-bottom: 20px;
  }
}

@media (max-width: 460px) {
  body {
    background-size:
      14px 14px,
      14px 14px,
      70px 70px,
      70px 70px;
  }

  body::after {
    background-size:
      14px 14px,
      14px 14px,
      70px 70px,
      70px 70px;
  }

  .workbench-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .workbench-strip span {
    min-width: 0;
    font-size: 0.68rem;
  }

  .button,
  .contact-form button,
  .contact-links a {
    width: 100%;
  }

  .hero-lede {
    font-size: 1.18rem;
  }

  .contact h2 {
    font-size: 2.4rem;
  }
}
