:root {
  color-scheme: light;
  --bg: #f4f3ef;
  --panel: rgba(244, 243, 239, 0.92);
  --panel-strong: #f4f3ef;
  --line: rgba(18, 18, 18, 0.82);
  --ink: #121212;
  --muted: #4b4b47;
  --blue: #e33224;
  --cyan: #e33224;
  --rose: #e33224;
  --amber: #e33224;
  --green: #121212;
  --shadow: none;
  --nav-bg: rgba(244, 243, 239, 0.94);
  --button-bg: #f4f3ef;
  --soft-panel: #eeece5;
  --chip-bg: #f4f3ef;
  --visual-bg: #eeece5;
  --page-background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.045) 1px, transparent 1px),
    #f4f3ef;
  --background-size: calc((100vw - min(1120px, calc(100vw - 32px))) / 2 + 280px) 100%;
}

:root[data-theme="interstellar"] {
  color-scheme: dark;
  --bg: #050816;
  --panel: rgba(12, 18, 36, 0.72);
  --panel-strong: rgba(13, 21, 42, 0.9);
  --line: rgba(125, 211, 252, 0.18);
  --ink: #f8fbff;
  --muted: #a9b8d2;
  --blue: #7dd3fc;
  --cyan: #22d3ee;
  --rose: #c084fc;
  --amber: #facc15;
  --green: #34d399;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --nav-bg: rgba(5, 8, 22, 0.78);
  --button-bg: rgba(255, 255, 255, 0.08);
  --soft-panel: rgba(12, 18, 36, 0.68);
  --chip-bg: rgba(12, 18, 36, 0.72);
  --visual-bg: rgba(12, 18, 36, 0.86);
  --scene-a: rgba(125, 211, 252, 0.22);
  --scene-b: rgba(238, 179, 87, 0.24);
  --scene-c: rgba(221, 158, 73, 0.16);
  --page-background:
    radial-gradient(ellipse at 76% 16%, rgba(217, 158, 71, 0.12), transparent 25%),
    radial-gradient(circle at 18% 72%, rgba(35, 48, 62, 0.36), transparent 34%),
    #030508;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(15, 23, 42, 0.14);
  --ink: #0f172a;
  --muted: #64748b;
  --blue: #2563eb;
  --cyan: #14b8a6;
  --rose: #e879f9;
  --amber: #ca8a04;
  --green: #16a34a;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --button-bg: rgba(255, 255, 255, 0.82);
  --soft-panel: rgba(255, 255, 255, 0.62);
  --chip-bg: rgba(255, 255, 255, 0.74);
  --visual-bg: rgba(255, 255, 255, 0.72);
  --scene-a: rgba(37, 99, 235, 0.12);
  --scene-b: rgba(20, 184, 166, 0.12);
  --scene-c: rgba(232, 121, 249, 0.1);
  --page-background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    #f8fafc;
  --background-size: 32px 32px;
}

:root[data-theme="terminal"] {
  color-scheme: dark;
  --bg: #03120b;
  --panel: rgba(6, 28, 16, 0.76);
  --panel-strong: rgba(8, 35, 20, 0.94);
  --line: rgba(57, 255, 136, 0.22);
  --ink: #eafff2;
  --muted: #9adbb6;
  --blue: #39ff88;
  --cyan: #39ff88;
  --rose: #b7ffcf;
  --amber: #f7e06e;
  --green: #39ff88;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --nav-bg: rgba(3, 18, 11, 0.84);
  --button-bg: rgba(57, 255, 136, 0.08);
  --soft-panel: rgba(6, 28, 16, 0.76);
  --chip-bg: rgba(8, 35, 20, 0.82);
  --visual-bg: rgba(6, 28, 16, 0.9);
  --scene-a: rgba(57, 255, 136, 0.14);
  --scene-b: rgba(247, 224, 110, 0.08);
  --scene-c: rgba(57, 255, 136, 0.08);
  --page-background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(57, 255, 136, 0.025) 3px, rgba(57, 255, 136, 0.025) 4px),
    #03120b;
}

:root[data-theme="brutalist"] {
  color-scheme: light;
  --bg: #ffe34f;
  --panel: #f3e6a8;
  --panel-strong: #f8edc2;
  --line: #111111;
  --ink: #111111;
  --muted: #292929;
  --blue: #3764ff;
  --cyan: #111111;
  --rose: #ff4b38;
  --amber: #ff4b38;
  --green: #3764ff;
  --shadow: 6px 6px 0 #111111;
  --nav-bg: #ffe34f;
  --button-bg: #f8edc2;
  --soft-panel: #ffe34f;
  --chip-bg: #fff4cc;
  --visual-bg: #3764ff;
  --page-background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.055) 25%, transparent 25%) 0 0 / 32px 32px,
    #ffe34f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page-background, var(--bg));
  background-size: var(--background-size, auto);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::selection {
  color: #ffffff;
  background: var(--blue);
}

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

button {
  font: inherit;
}

.page-shell,
.grid-layer,
.star-field,
.theme-scene,
.scene-object {
  position: fixed;
  pointer-events: none;
}

.grid-layer,
.star-field,
.theme-scene {
  inset: 0;
}

.page-shell {
  z-index: -1;
  overflow: hidden;
}

.grid-layer {
  background-image:
    linear-gradient(rgba(49, 92, 143, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 92, 143, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 12%, black, transparent 78%);
}

.star-field {
  display: none;
  opacity: 0.65;
  background-image:
    radial-gradient(circle, rgba(9, 17, 31, 0.28) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(40, 100, 255, 0.2) 1px, transparent 1.5px);
  background-position:
    0 0,
    28px 38px;
  background-size:
    130px 130px,
    180px 180px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.theme-scene {
  overflow: hidden;
  opacity: 0.85;
}

.scene-object {
  position: absolute;
  display: none;
  border-radius: 50%;
}

.scene-one {
  top: 12%;
  right: 10%;
  width: 170px;
  height: 170px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), transparent 16%),
    radial-gradient(circle at 64% 68%, var(--scene-b), transparent 42%),
    var(--scene-a);
  box-shadow: 0 24px 100px var(--scene-a);
}

.scene-two {
  right: 18%;
  bottom: 16%;
  width: 78px;
  height: 78px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), transparent 18%),
    var(--scene-c);
  box-shadow: 0 18px 70px var(--scene-c);
}

:root[data-theme="interstellar"] .scene-one {
  display: block;
  top: 11%;
  right: 7%;
  width: clamp(230px, 29vw, 370px);
  height: clamp(112px, 14vw, 180px);
  border-radius: 50%;
  transform: rotate(-12deg);
  background:
    radial-gradient(ellipse at 50% 50%, #010205 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 50%, transparent 0 28%, #f6d894 29%, #d18c3c 34%, rgba(207, 128, 42, 0.2) 42%, transparent 53%),
    linear-gradient(90deg, transparent 4%, rgba(237, 191, 112, 0.84) 30%, #fff1c1 50%, rgba(222, 153, 58, 0.84) 70%, transparent 96%);
  filter: drop-shadow(0 0 28px rgba(221, 158, 73, 0.38));
}

:root[data-theme="interstellar"] .scene-two {
  display: block;
  right: 14%;
  bottom: 14%;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(214, 177, 112, 0.25);
  background:
    linear-gradient(90deg, transparent 46%, rgba(214, 177, 112, 0.7) 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(214, 177, 112, 0.7) 47% 53%, transparent 54%);
  transform: rotate(45deg);
  box-shadow: 0 0 44px rgba(214, 177, 112, 0.12);
}

:root[data-theme="interstellar"] .star-field {
  display: block;
  opacity: 1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(125, 211, 252, 0.54) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(192, 132, 252, 0.42) 1px, transparent 1.5px);
}

:root[data-theme="interstellar"] .grid-layer {
  opacity: 0.14;
}

:root[data-theme="light"] .star-field {
  display: none;
}

:root[data-theme="light"] .grid-layer {
  opacity: 0.48;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

:root[data-theme="terminal"] .star-field {
  display: none;
}

:root[data-theme="terminal"] .grid-layer {
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(57, 255, 136, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 136, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

:root[data-theme="brutalist"] .star-field,
:root[data-theme="brutalist"] .grid-layer {
  display: none;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 66px;
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--nav-bg);
  box-shadow:
    0 18px 50px rgba(39, 78, 124, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  backdrop-filter: blur(18px);
}

.brand-cluster,
.brand,
nav,
.hero-actions,
.contact-actions,
.filter-bar,
.project-links,
.profile-card-top {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-cluster {
  gap: 12px;
  min-width: 0;
}

.release-indicator {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(54, 214, 196, 0.34);
  border-radius: 8px;
  color: var(--cyan);
  background: var(--soft-panel);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.release-indicator[data-release-type="fix"] {
  border-color: rgba(255, 200, 87, 0.34);
  color: var(--amber);
}

.brand img,
.profile-photo {
  object-fit: cover;
  border-radius: 50%;
}

nav {
  gap: 4px;
}

.theme-menu {
  position: relative;
}

.theme-trigger,
.motion-trigger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 950;
}

.theme-trigger:hover,
.theme-trigger[aria-expanded="true"],
.motion-trigger:hover,
.motion-trigger[aria-pressed="true"] {
  border-color: rgba(40, 100, 255, 0.32);
  background: var(--panel-strong);
}

.motion-trigger {
  flex: 0 0 auto;
  font-size: 1.2rem;
  line-height: 1;
}

.theme-options .motion-trigger,
.theme-options .audience-control,
.theme-options .layout-control,
.theme-options .preferences-reset {
  grid-column: 1 / -1;
  width: auto;
  height: auto;
}

.motion-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  font-size: 1.2rem;
}

.preference-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  font-size: 1rem;
}

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

.audience-control,
.layout-control {
  display: grid;
  gap: 7px;
  padding: 9px 0 2px;
  border-top: 1px solid var(--line);
}

.preference-section-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

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

.audience-options button,
.layout-options button {
  min-width: 0;
  min-height: 32px;
  padding: 5px 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--button-bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
}

.audience-options button:hover,
.audience-options button.active,
.audience-options button[aria-pressed="true"],
.layout-options button:hover,
.layout-options button.active,
.layout-options button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--cyan) 52%, var(--line));
  background: var(--panel-strong);
  color: var(--ink);
}

.theme-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(2, minmax(138px, 1fr));
  gap: 6px;
  width: min(318px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.theme-trigger[aria-expanded="true"] + .theme-options {
  display: grid;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 850;
  text-align: left;
}

.theme-option:hover,
.theme-option.active {
  border-color: var(--line);
  background: var(--button-bg);
}

.theme-swatch {
  display: flex;
  overflow: hidden;
  width: 32px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.theme-swatch i {
  flex: 1;
}

nav a,
.filter {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

nav a:hover,
.filter:hover,
.filter.active {
  color: var(--ink);
  background: var(--button-bg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 98px);
  margin: 0 auto;
  padding: clamp(62px, 8vw, 112px) 0 clamp(48px, 7vw, 88px);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(3.25rem, 8.7vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.15rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.button {
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  border-color: rgba(47, 111, 237, 0.28);
  background: var(--panel-strong);
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(47, 111, 237, 0.3);
  background: linear-gradient(135deg, #2864ff, #00c7d9);
  color: white;
}

.button.ghost {
  border-color: color-mix(in srgb, var(--amber) 38%, transparent);
  color: var(--amber);
}

:root[data-theme="terminal"] .button.primary {
  border-color: rgba(57, 255, 136, 0.56);
  background: #39ff88;
  color: #03120b;
}

.hero-word-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-word-row span {
  padding: 7px 10px;
  border: 1px solid rgba(35, 42, 54, 0.12);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-actions,
.contact-actions,
.project-links {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.profile-panel {
  position: relative;
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--panel-strong) 86%, transparent), color-mix(in srgb, var(--panel) 92%, transparent)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent, rgba(0, 167, 200, 0.16), transparent),
    radial-gradient(circle at 88% 8%, rgba(190, 92, 255, 0.18), transparent 26%);
  display: none;
  opacity: 0.8;
}

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

.profile-card-top {
  gap: 18px;
}

.profile-photo {
  width: min(132px, 38vw);
  height: min(132px, 38vw);
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.profile-name {
  margin-bottom: 4px;
  font-size: 1.42rem;
  font-weight: 950;
}

.profile-detail,
.bento-tile p,
.skill-grid p,
.project-card p,
.section-copy,
.contact-copy,
footer p {
  color: var(--muted);
}

.project-live-preview {
  position: relative;
  display: grid;
  place-items: stretch;
  padding: 0;
  overflow: hidden;
  background: var(--visual-bg);
}

.project-live-preview iframe {
  display: block;
  width: 100%;
  min-height: inherit;
  height: 100%;
  border: 0;
  background: var(--visual-bg);
  pointer-events: auto;
}

.project-live-preview-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
}

.profile-detail {
  margin-bottom: 0;
}

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

.signal-card {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(35, 42, 54, 0.12);
  border-radius: 8px;
  background: var(--soft-panel);
}

.signal-card span {
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.signal-card strong {
  font-size: 1.08rem;
}

.system-monitor {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(0, 167, 200, 0.24);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 167, 200, 0.1),
      rgba(0, 167, 200, 0.1) 1px,
      transparent 1px,
      transparent 7px
    ),
    var(--soft-panel);
  overflow: hidden;
}

.system-monitor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 167, 200, 0.12), transparent);
  animation: monitor-scan 3.8s linear infinite;
}

.monitor-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.monitor-topline span,
.monitor-topline strong {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.system-monitor pre {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.stack-strip {
  width: 100%;
  overflow: hidden;
  contain: paint;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft-panel);
  backdrop-filter: blur(16px);
}

.stack-track {
  display: flex;
  width: max-content;
  animation: stack-scroll 34s linear infinite;
}

.stack-track span {
  flex: 0 0 auto;
  padding: 15px 24px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 0;
}

section[id] {
  scroll-margin-top: 108px;
}

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

.timeline-item,
.credential-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.journey-grid > div > h3 {
  margin-bottom: 16px;
  color: var(--ink);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  position: relative;
  padding: 20px 20px 20px 54px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 22px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 7px rgba(54, 214, 196, 0.08);
}

.timeline-item span,
.credential-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.timeline-item h4 {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.timeline-meta {
  margin-bottom: 10px !important;
  color: var(--ink) !important;
  font-size: 0.8rem;
  font-weight: 800;
}

.career-detail {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.career-detail summary {
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.career-detail ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.89rem;
}

.credential-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.credential-card {
  min-height: 150px;
  padding: 18px;
}

.credential-card strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.25;
}

.credential-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.credential-card.featured {
  grid-column: 1 / -1;
  min-height: 0;
}

.bento-tile {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.bento-tile.wide {
  grid-column: span 2;
}

.bento-tile h2 {
  max-width: 660px;
  font-size: clamp(1.8rem, 3.2vw, 3.05rem);
  line-height: 1.02;
}

.metric {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 3.1rem;
  font-weight: 950;
  line-height: 1;
}

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

.section-copy {
  max-width: 430px;
  margin: 0;
  font-weight: 700;
}

.work-explorer {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--soft-panel) 86%, transparent);
}

.perspective-control {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.5fr) auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.perspective-control > div:first-child {
  display: grid;
  gap: 4px;
}

.explorer-label {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.perspective-control strong {
  font-size: 0.9rem;
}

.perspective-control .audience-options {
  display: flex;
  flex-wrap: wrap;
}

.perspective-control .preferences-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--button-bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
}

.perspective-control .preferences-reset[hidden] {
  display: none;
}

.evidence-lead {
  margin: 0;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.evidence-search {
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--line);
}

.evidence-search > label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.evidence-input-row {
  position: relative;
}

.evidence-input-row input {
  width: 100%;
  min-height: 50px;
  padding: 12px 52px 12px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.evidence-input-row input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 20%, transparent);
}

.evidence-input-row input::placeholder {
  color: var(--muted);
  opacity: 0.76;
}

.evidence-input-row input::-webkit-search-cancel-button {
  appearance: none;
}

.evidence-clear {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  font-size: 1.25rem;
}

.evidence-input-row input:placeholder-shown + .evidence-clear {
  display: none;
}

.evidence-result:active {
  transform: translateY(1px) scale(0.99);
}

.evidence-status {
  min-height: 24px;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.project-browse-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.project-browse-row .filter-bar {
  margin-bottom: 0;
}

.project-browse-row .layout-options {
  display: flex;
  flex: 0 0 auto;
}

.project-browse-row .layout-options button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 84px;
  min-height: 40px;
  padding: 8px 10px;
}

.evidence-result {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 154px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.evidence-result:hover,
.evidence-result:focus-visible {
  border-color: var(--cyan);
  background: var(--panel-strong);
  transform: translateY(-2px);
}

.evidence-result span {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.evidence-result strong {
  font-size: 1.05rem;
}

.evidence-result p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.career-progression {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.progression-step {
  position: relative;
  min-height: 190px;
  padding: 22px 20px;
  border-left: 1px solid var(--line);
}

.progression-step:last-child {
  border-right: 1px solid var(--line);
}

.progression-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--page-bg);
}

.progression-step span {
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.progression-step h3 {
  margin: 12px 0 9px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.progression-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.filter-bar {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-panel);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  backdrop-filter: blur(16px);
}

.project-toolbar span {
  color: var(--ink);
}

.project-toolbar strong {
  color: var(--blue);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: stretch;
  gap: 16px;
}

:root[data-project-layout="list"] .project-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

:root[data-project-layout="list"] .project-card,
:root[data-project-layout="list"] .project-card.featured {
  display: grid;
  grid-column: 1;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.28fr);
  width: 100%;
  min-height: 210px;
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  cursor: default;
}

:root[data-project-layout="list"] .project-visual {
  display: none;
}

:root[data-project-layout="list"] .project-card > :not(.project-visual, .project-links) {
  grid-column: 1;
}

:root[data-project-layout="list"] .project-topline {
  margin-bottom: 12px;
}

:root[data-project-layout="list"] .project-card h3 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: 1.75rem;
}

:root[data-project-layout="list"] .project-card p {
  max-width: 700px;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.65;
}

:root[data-project-layout="list"] .tags {
  margin-top: 4px;
}

:root[data-project-layout="list"] .project-card .project-links {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

:root[data-project-layout="list"] .project-card .project-links > * {
  width: fit-content;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--button-bg) 66%, transparent);
  line-height: 1.2;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

:root[data-project-layout="list"] .project-card .project-links > *:hover {
  border-color: var(--cyan);
  background: var(--button-bg);
}

:root[data-project-layout="list"] .project-card .project-links > *:active {
  transform: translateY(1px) scale(0.98);
}

:root[data-project-layout="list"] .project-card.show,
:root[data-project-layout="list"] .project-card.show:hover {
  transform: none;
}

:root[data-project-layout="list"] .project-card:hover {
  border-color: var(--line);
  background: color-mix(in srgb, var(--soft-panel) 66%, transparent);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  cursor: pointer;
  transform: translateY(12px);
  transform-style: preserve-3d;
  opacity: 0;
  transition:
    opacity 500ms ease,
    transform 500ms ease,
    border-color 180ms ease;
}

.project-card.show {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  opacity: 1;
}

.project-card:hover {
  border-color: rgba(54, 214, 196, 0.46);
  transform: perspective(900px) translateY(-4px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

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

.project-visual {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  min-height: 150px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(40, 100, 255, 0.16), rgba(190, 92, 255, 0.16)),
    radial-gradient(circle at 18% 22%, rgba(0, 167, 200, 0.22), transparent 25%),
    var(--visual-bg);
  color: inherit;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.project-visual:hover {
  border-color: color-mix(in srgb, var(--cyan) 45%, transparent);
}

.project-visual span {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: var(--chip-bg);
  font-size: 0.82rem;
  font-weight: 950;
  color: var(--project-accent, var(--ink));
}

.project-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.project-type {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(54, 214, 196, 0.12);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 950;
}

.project-card h3 {
  font-size: 1.36rem;
  line-height: 1.12;
}

.project-card p {
  margin-bottom: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tags span {
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: var(--chip-bg);
  font-size: 0.78rem;
  font-weight: 850;
}

.project-links {
  margin-top: 18px;
}

.project-links a {
  color: var(--blue);
  font-weight: 950;
}

.details-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font-weight: 950;
}

.project-dialog {
  width: min(940px, calc(100vw - 32px));
  max-height: min(90vh, 780px);
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
  overflow-x: hidden;
}

.project-dialog::backdrop {
  background: rgba(5, 8, 22, 0.64);
  backdrop-filter: blur(5px);
}

.project-evidence {
  display: grid;
  gap: 14px;
}

.project-evidence-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.project-evidence-heading h3,
.project-evidence-heading p {
  margin: 0;
}

.project-evidence-heading > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.project-evidence-list a {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--soft-panel) 76%, transparent);
  color: var(--ink);
  text-decoration: none;
}

.project-evidence-list a:hover,
.project-evidence-list a:focus-visible {
  border-color: var(--cyan);
}

.project-evidence-list small {
  color: var(--muted);
  line-height: 1.45;
}

.evidence-provenance {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: min(90vh, 760px);
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
}

.feedback-dialog::backdrop {
  background: rgba(5, 8, 22, 0.64);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 0 -42px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
}

.dialog-layout {
  padding-top: 52px;
}

.dialog-content {
  min-width: 0;
}

.dialog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: clamp(18px, 4vw, 28px);
  align-items: start;
  margin-bottom: 24px;
}

.dialog-intro.without-preview {
  grid-template-columns: minmax(0, 1fr);
}

.dialog-preview {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--visual-bg);
}

.dialog-preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.dialog-content h2 {
  margin: 12px 56px 15px 0;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.dialog-summary {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.dialog-section {
  margin-bottom: 20px;
}

.dialog-section h3,
.dialog-section summary {
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-detail summary {
  cursor: pointer;
  list-style-position: inside;
}

.dialog-section p {
  margin-bottom: 0;
  color: var(--muted);
}

.dialog-overview p + p {
  margin-top: 9px;
}

.architecture-explorer {
  margin: 26px 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-panel);
}

.architecture-toggle {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  cursor: pointer;
  list-style-position: inside;
}

.architecture-toggle strong,
.architecture-role {
  margin: 0;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.architecture-toggle span {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.architecture-body {
  min-width: 0;
  margin-top: 14px;
}

.architecture-path {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  max-width: 100%;
}

.architecture-node {
  position: relative;
  flex: 1 0 100px;
  min-width: 100px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.architecture-node:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -7px;
  z-index: 1;
  translate: 50% -50%;
  padding: 0 2px;
  background: var(--panel-strong);
  color: var(--muted);
  font-weight: 900;
}

.architecture-node span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.architecture-node strong {
  font-size: 0.8rem;
  line-height: 1.15;
}

.architecture-node.active,
.architecture-node:hover {
  border-color: var(--cyan);
  background: var(--chip-bg);
}

.architecture-detail {
  min-height: 96px;
  margin-top: 13px;
  padding: 12px;
  border-left: 3px solid var(--cyan);
  background: var(--panel);
}

.architecture-detail h4 {
  margin: 5px 0 6px;
  font-size: 1rem;
}

.architecture-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--line) 48%, transparent);
}

.dialog-actions .button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--button-bg) 70%, transparent);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--line) 20%, transparent);
  font-size: 0.82rem;
  line-height: 1.2;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.dialog-actions .button:hover {
  border-color: var(--cyan);
}

.dialog-actions .button:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: none;
}

.dialog-actions .feedback-action {
  margin-left: auto;
}

.feedback-form {
  padding-top: 48px;
}

.feedback-form h2 {
  margin: 10px 50px 10px 0;
  font-size: clamp(1.75rem, 4vw, 2.2rem);
}

.feedback-intro {
  margin: 0 0 18px;
  color: var(--muted);
}

.feedback-project {
  margin: 0 0 17px;
  padding: 10px 12px;
  border-left: 3px solid var(--cyan);
  background: var(--soft-panel);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.feedback-fields {
  display: grid;
  gap: 14px;
}

.feedback-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-field small {
  color: var(--muted);
  font-size: 0.72rem;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--button-bg);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-transform: none;
}

.feedback-field textarea {
  resize: vertical;
  min-height: 116px;
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.feedback-consent {
  display: flex;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.feedback-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--cyan);
}

.feedback-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.feedback-status {
  min-height: 21px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.feedback-status[data-state="error"] {
  color: var(--danger, #c83b35);
}

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

.feedback-form.is-submitted .feedback-fields {
  opacity: 0.58;
}

.feedback-form.is-submitted .feedback-footer .button,
.feedback-footer .button:disabled {
  cursor: default;
  opacity: 0.8;
  transform: none;
}

.feedback-form.is-submitted .feedback-footer .button {
  border-color: var(--green);
  background: var(--chip-bg);
  color: var(--green);
}

.feedback-footer .button {
  flex: 0 0 auto;
}

.skill-section {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  background: var(--soft-panel);
}

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

.skill-grid section {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.skill-grid h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--green);
}

.contact-section {
  padding-bottom: 96px;
}

.contact-section .section-heading {
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 167, 200, 0.14), rgba(190, 92, 255, 0.12)),
    var(--panel-strong);
}

.contact-copy {
  max-width: 460px;
  margin: 0;
  font-weight: 750;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-size: 0.92rem;
}

[data-audience-evidence],
[data-audiences] {
  transition: opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

:root:not([data-audience="general"]) .filter-bar {
  display: none;
}

@media (max-width: 720px) {
  .project-evidence-list {
    grid-template-columns: 1fr;
  }

  .project-evidence-heading {
    align-items: flex-start;
  }

  :root[data-project-layout="list"] .project-card,
  :root[data-project-layout="list"] .project-card.featured {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 24px 0;
  }

  :root[data-project-layout="list"] .project-card > :not(.project-visual) {
    grid-column: 1;
  }

  :root[data-project-layout="list"] .project-card h3 {
    font-size: 1.35rem;
  }

  :root[data-project-layout="list"] .project-card p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  :root[data-project-layout="list"] .project-card .project-links {
    grid-row: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    padding-left: 0;
    border-left: 0;
  }
}

/* Each selectable world keeps the information architecture stable while changing its design language. */
:root[data-theme="swiss"] body,
:root[data-theme="swiss"] button {
  font-family: Arial, Helvetica, sans-serif;
}

:root[data-theme="swiss"] .site-header {
  top: 0;
  width: 100%;
  margin-top: 0;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  border-width: 0 0 2px;
  border-radius: 0;
  box-shadow: none;
}

:root[data-theme="swiss"] .grid-layer {
  opacity: 0.6;
  background-image: linear-gradient(90deg, rgba(18, 18, 18, 0.08) 1px, transparent 1px);
  background-size: calc(100% / 4) 100%;
  mask-image: none;
}

:root[data-theme="swiss"] .hero {
  align-items: start;
  padding-top: clamp(42px, 5vw, 62px);
  padding-bottom: 40px;
}

:root[data-theme="swiss"] h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 5.6vw, 4.6rem);
  font-weight: 950;
  line-height: 0.91;
}

:root[data-theme="swiss"] .eyebrow {
  display: inline-flex;
  padding: 4px 7px;
  background: var(--blue);
  color: #ffffff;
}

:root[data-theme="swiss"] .profile-panel,
:root[data-theme="swiss"] .bento-tile,
:root[data-theme="swiss"] .project-card,
:root[data-theme="swiss"] .skill-grid section {
  border-radius: 0;
  box-shadow: none;
}

:root[data-theme="swiss"] .profile-panel {
  border-width: 2px;
}

:root[data-theme="swiss"] .project-visual {
  min-height: 110px;
  border-radius: 0;
  background:
    linear-gradient(90deg, var(--blue) 0 10px, transparent 10px),
    #e6e4dc;
}

:root[data-theme="swiss"] .button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

:root[data-theme="interstellar"] body {
  font-family: "Segoe UI", Arial, sans-serif;
}

:root[data-theme="interstellar"] h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
}

:root[data-theme="interstellar"] .hero-copy::after {
  content: "DEEP FIELD / MISSION LOG 01";
  display: block;
  margin-top: 35px;
  color: rgba(214, 177, 112, 0.78);
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0;
}

:root[data-theme="interstellar"] .site-header,
:root[data-theme="interstellar"] .profile-panel,
:root[data-theme="interstellar"] .project-card {
  border-color: rgba(125, 211, 252, 0.2);
  background: rgba(5, 8, 22, 0.64);
}

:root[data-theme="interstellar"] .profile-panel {
  box-shadow: 0 0 74px rgba(124, 58, 237, 0.16);
}

:root[data-theme="interstellar"] .button.primary {
  border-color: rgba(238, 201, 136, 0.56);
  background: linear-gradient(135deg, #ae7132, #f4d99d);
  color: #080a0f;
}

:root[data-theme="interstellar"] .project-visual {
  background:
    radial-gradient(circle at 50% 38%, rgba(192, 132, 252, 0.23), transparent 35%),
    radial-gradient(circle at 24% 68%, rgba(14, 165, 233, 0.2), transparent 28%),
    #080d21;
}

:root[data-theme="light"] .site-header {
  top: 0;
  width: 100%;
  margin-top: 0;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

:root[data-theme="light"] .hero {
  align-items: start;
  padding-top: clamp(74px, 10vw, 132px);
}

:root[data-theme="light"] h1,
:root[data-theme="light"] h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.04;
}

:root[data-theme="light"] .profile-panel,
:root[data-theme="light"] .bento-tile,
:root[data-theme="light"] .project-card,
:root[data-theme="light"] .timeline-item,
:root[data-theme="light"] .credential-card {
  border-radius: 0;
  box-shadow: none;
}

:root[data-theme="light"] .project-card {
  border-top: 3px solid var(--blue);
}

:root[data-theme="light"] .project-visual {
  min-height: 116px;
  border-radius: 0;
  background: #f1f5f9;
}

:root[data-theme="terminal"] body,
:root[data-theme="terminal"] button {
  font-family: Consolas, "Courier New", monospace;
}

:root[data-theme="terminal"] .site-header,
:root[data-theme="terminal"] .profile-panel,
:root[data-theme="terminal"] .bento-tile,
:root[data-theme="terminal"] .project-card,
:root[data-theme="terminal"] .skill-grid section,
:root[data-theme="terminal"] .project-toolbar {
  border-radius: 0;
  box-shadow: none;
}

:root[data-theme="terminal"] .hero {
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

:root[data-theme="terminal"] h1 {
  max-width: 950px;
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  line-height: 1.04;
  text-transform: uppercase;
}

:root[data-theme="terminal"] .eyebrow::before {
  content: "$ ";
}

:root[data-theme="terminal"] .profile-panel {
  width: min(820px, 100%);
  grid-template-columns: 1fr 1fr;
  background: rgba(3, 18, 11, 0.86);
}

:root[data-theme="terminal"] .profile-card-top,
:root[data-theme="terminal"] .signal-grid {
  grid-column: 1;
}

:root[data-theme="terminal"] .system-monitor {
  grid-column: 2;
  grid-row: 1 / span 2;
}

:root[data-theme="terminal"] .project-visual {
  min-height: 110px;
  border-radius: 0;
  background:
    repeating-linear-gradient(0deg, rgba(57, 255, 136, 0.04), rgba(57, 255, 136, 0.04) 1px, transparent 1px, transparent 6px),
    rgba(57, 255, 136, 0.03);
}

:root[data-theme="brutalist"] body,
:root[data-theme="brutalist"] button {
  font-family: Arial, Helvetica, sans-serif;
}

:root[data-theme="brutalist"] .site-header {
  border: 3px solid #111111;
  background: #ffe34f;
  box-shadow: 5px 5px 0 #111111;
}

:root[data-theme="brutalist"] .release-indicator {
  border: 2px solid #111111;
  background: #3764ff;
  color: #ffffff;
}

:root[data-theme="brutalist"] .hero {
  align-items: start;
  padding-top: clamp(62px, 8vw, 108px);
}

:root[data-theme="brutalist"] h1 {
  max-width: 760px;
  font-size: clamp(3.25rem, 8.7vw, 7rem);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

:root[data-theme="brutalist"] .eyebrow {
  display: inline-block;
  padding: 7px 10px;
  border: 2px solid #111111;
  background: #ff4b38;
  color: #ffffff;
}

:root[data-theme="brutalist"] .profile-panel,
:root[data-theme="brutalist"] .bento-tile,
:root[data-theme="brutalist"] .project-card,
:root[data-theme="brutalist"] .skill-grid section,
:root[data-theme="brutalist"] .project-toolbar {
  border: 3px solid #111111;
  border-radius: 0;
  background: var(--panel);
  box-shadow: 6px 6px 0 #111111;
}

:root[data-theme="brutalist"] .signal-card {
  border: 2px solid #111111;
  border-radius: 0;
  background: #ffe34f;
}

:root[data-theme="brutalist"] .project-visual {
  min-height: 132px;
  border: 3px solid #111111;
  border-radius: 0;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 0 10px, transparent 10px 20px),
    #3764ff;
  color: #ffffff;
}

:root[data-theme="brutalist"] .stack-strip {
  border-top: 3px solid #111111;
  border-bottom: 3px solid #111111;
  background: #ff4b38;
}

:root[data-theme="brutalist"] .stack-track span {
  color: #ffffff;
}

:root[data-theme="brutalist"] .button {
  border: 2px solid #111111;
  border-radius: 0;
  box-shadow: 3px 3px 0 #111111;
}

:root[data-theme="brutalist"] .button.primary {
  background: #3764ff;
  color: #ffffff;
}

:root[data-theme="brutalist"] .project-dialog {
  border: 3px solid #111111;
  border-radius: 0;
  background: var(--panel-strong);
  box-shadow: 8px 8px 0 #111111;
}

:root[data-theme="brutalist"] .project-dialog .dialog-close,
:root[data-theme="brutalist"] .project-dialog .architecture-explorer {
  border: 2px solid #111111;
  border-radius: 0;
  background: #f3e6a8;
}

/* List rows must not inherit the decorative card surfaces declared by themes. */
:root[data-project-layout="list"][data-theme] .project-card,
:root[data-project-layout="list"][data-theme] .project-card.featured,
:root[data-project-layout="list"][data-theme] .project-card.show,
:root[data-project-layout="list"][data-theme] .project-card.show:hover {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:root[data-project-layout="list"][data-theme] .project-card:hover {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--soft-panel) 66%, transparent);
  box-shadow: none;
}

:root[data-theme="light"][data-project-layout="list"] .project-card:hover {
  border-bottom-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  background: rgba(255, 255, 255, 0.58);
}

:root[data-theme="brutalist"][data-project-layout="list"] .project-grid {
  border-top: 3px solid #111111;
}

:root[data-theme="brutalist"][data-project-layout="list"] .project-card,
:root[data-theme="brutalist"][data-project-layout="list"] .project-card.featured,
:root[data-theme="brutalist"][data-project-layout="list"] .project-card.show,
:root[data-theme="brutalist"][data-project-layout="list"] .project-card.show:hover {
  border-bottom: 3px solid #111111;
}

:root[data-theme="brutalist"][data-project-layout="list"] .project-card .project-links {
  border-left: 3px solid #111111;
}

:root[data-theme="brutalist"][data-project-layout="list"] .project-card .project-links > * {
  border: 2px solid #111111;
  border-radius: 0;
  background: var(--panel-strong);
  box-shadow: 2px 2px 0 #111111;
}

:root[data-theme="brutalist"][data-project-layout="list"] .project-card .project-links > *:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 28;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.reveal {
  transform: translateY(14px);
  opacity: 0;
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes stack-scroll {
  from {
    transform: translateX(0);
  }

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

@keyframes monitor-scan {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(100%);
  }
}

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

  .stack-track {
    animation: none;
  }

  .system-monitor::after {
    animation: none;
  }
}

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

.reduce-motion .stack-track,
.reduce-motion .system-monitor::after {
  animation: none;
}

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

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

  .profile-panel {
    grid-column: auto;
  }

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

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

  .bento-tile.wide {
    grid-column: span 2;
  }

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

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

  .progression-step:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

}

@media (max-width: 720px) {
  section[id] {
    scroll-margin-top: 106px;
  }

  .section-heading,
  .contact-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    top: 8px;
    align-items: stretch;
    flex-direction: column;
    width: calc(100% - 16px);
    min-height: 0;
    margin: 8px auto 0;
    padding: 7px 8px;
    gap: 6px;
  }

  :root[data-theme="swiss"] .site-header,
  :root[data-theme="light"] .site-header {
    top: 0;
    width: 100%;
    margin-top: 0;
    padding: 7px 8px;
  }

  .brand-cluster {
    width: 100%;
    justify-content: space-between;
  }

  .brand {
    gap: 7px;
    font-size: 0.84rem;
  }

  .brand span {
    white-space: nowrap;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .release-indicator {
    padding: 4px 6px;
    font-size: 0.62rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 6px;
    font-size: 0.78rem;
  }

  .theme-menu {
    flex: 0 0 auto;
  }

  .theme-trigger,
  .motion-trigger {
    width: 34px;
    height: 34px;
  }

  .theme-options {
    position: fixed;
    top: 91px;
    right: 8px;
    left: 8px;
    grid-template-columns: 1fr 1fr;
    width: auto;
    max-height: min(58vh, 430px);
    overflow-y: auto;
  }

  .theme-option {
    min-height: 40px;
    padding: 6px;
    font-size: 0.79rem;
  }

  .theme-swatch {
    width: 26px;
    height: 15px;
  }

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

  .stack-track {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
    transform: none;
  }

  .stack-track .stack-duplicate {
    display: none;
  }

  .stack-track span {
    padding: 9px 11px;
    font-size: 0.72rem;
  }

  .hero,
  .bento-grid,
  .project-grid,
  .skill-grid,
  .evidence-results,
  .career-progression {
    grid-template-columns: minmax(0, 1fr);
  }

  .evidence-result {
    min-height: 0;
    padding: 15px;
  }

  .work-explorer {
    display: flex;
    flex-direction: column;
    padding: 12px;
  }

  .perspective-control {
    display: none;
  }

  .evidence-lead {
    order: 1;
    padding: 0 0 10px;
  }

  .evidence-status {
    order: 3;
    min-height: 0;
    margin: 10px 0 0;
  }

  .evidence-search {
    order: 2;
    padding: 0 0 14px;
  }

  .evidence-results {
    order: 4;
  }

  .project-browse-row {
    order: 5;
    align-items: stretch;
    flex-direction: column;
    margin-top: 14px;
  }

  .project-browse-row .filter-bar {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .project-browse-row .layout-options {
    width: 100%;
  }

  .project-browse-row .layout-options button {
    flex: 1;
  }

  .progression-step {
    min-height: 0;
    padding: 18px 16px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .progression-step:first-child {
    border-top: 0;
  }

  .hero-copy,
  .profile-panel {
    min-width: 0;
  }

  .hero {
    min-height: auto;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  :root[data-theme="swiss"] .hero,
  :root[data-theme="light"] .hero,
  :root[data-theme="brutalist"] .hero {
    padding-top: 32px;
  }

  :root[data-theme="interstellar"] .scene-object {
    display: none;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.69rem;
  }

  .hero-text {
    margin-bottom: 0;
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .hero-word-row {
    gap: 6px;
    margin-top: 15px;
  }

  .hero-word-row span {
    padding: 5px 8px;
    font-size: 0.73rem;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-actions .button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .profile-panel,
  .project-card.featured,
  .bento-tile.wide {
    grid-column: auto;
  }

  .profile-panel {
    gap: 12px;
    padding: 13px;
  }

  :root[data-theme="terminal"] .profile-panel {
    grid-template-columns: 1fr;
  }

  :root[data-theme="terminal"] .profile-card-top,
  :root[data-theme="terminal"] .signal-grid,
  :root[data-theme="terminal"] .system-monitor {
    grid-column: auto;
    grid-row: auto;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 12.4vw, 3.25rem);
    line-height: 0.94;
  }

  :root[data-theme="swiss"] h1,
  :root[data-theme="brutalist"] h1 {
    font-size: clamp(2.15rem, 12.1vw, 3.15rem);
  }

  .project-card {
    min-height: 0;
  }

  .project-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .profile-card-top {
    align-items: flex-start;
  }

  .profile-photo {
    width: 64px;
    height: 64px;
  }

  .profile-name {
    font-size: 1.03rem;
    line-height: 1.18;
  }

  .profile-detail {
    font-size: 0.83rem;
  }

  .signal-card {
    gap: 3px;
    padding: 9px;
  }

  .signal-card span {
    font-size: 0.64rem;
  }

  .signal-card strong {
    font-size: 0.86rem;
  }

  .system-monitor {
    display: none;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  .project-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 10px;
  }

  .feedback-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 10px;
  }

  .feedback-form {
    padding: 39px 8px 4px;
  }

  .feedback-form h2 {
    margin: 7px 40px 7px 0;
    font-size: 1.38rem;
  }

  .feedback-intro {
    margin-bottom: 12px;
    font-size: 0.87rem;
  }

  .feedback-project {
    margin-bottom: 12px;
    padding: 8px;
    font-size: 0.8rem;
  }

  .feedback-fields {
    gap: 10px;
  }

  .feedback-field input,
  .feedback-field select,
  .feedback-field textarea {
    padding: 9px 10px;
  }

  .feedback-field textarea {
    min-height: 82px;
  }

  .feedback-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 13px;
  }

  .feedback-footer .button {
    min-height: 38px;
  }

  .dialog-close {
    width: 34px;
    height: 34px;
    margin-bottom: -34px;
    font-size: 1.05rem;
  }

  .dialog-layout {
    min-width: 0;
    padding-top: 39px;
  }

  .dialog-content {
    width: 100%;
    max-width: 100%;
  }

  .dialog-intro,
  .dialog-intro.with-preview {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
  }

  .dialog-preview {
    width: min(128px, 40vw);
  }

  .dialog-content h2 {
    margin: 7px 40px 8px 0;
    font-size: 1.38rem;
  }

  .dialog-summary {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .dialog-section {
    margin-bottom: 12px;
  }

  .dialog-section h3,
  .dialog-section summary {
    margin-bottom: 4px;
    font-size: 0.69rem;
  }

  .dialog-detail {
    padding: 7px 0;
    border-top: 1px solid var(--line);
    margin-bottom: 0;
  }

  .dialog-detail[open] summary {
    margin-bottom: 5px;
  }

  .dialog-section p {
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .architecture-explorer {
    margin: 11px 0;
    padding: 9px;
  }

  .architecture-toggle {
    display: block;
  }

  .architecture-toggle span {
    display: block;
    margin-top: 3px;
    font-size: 0.7rem;
  }

  .architecture-body {
    margin-top: 8px;
  }

  .architecture-path {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .architecture-node {
    width: 100%;
    min-width: 0;
    padding: 7px;
    text-align: left;
  }

  .architecture-node:not(:last-child)::after {
    display: none;
  }

  .architecture-detail {
    min-height: 0;
    margin-top: 8px;
    padding: 8px;
  }

  .architecture-detail h4 {
    margin: 3px 0 4px;
    font-size: 0.9rem;
  }

  .architecture-copy {
    font-size: 0.79rem;
    line-height: 1.35;
  }

  .dialog-content .tags {
    gap: 5px;
  }

  .dialog-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
  }

  .dialog-actions .button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.76rem;
  }
}
[hidden] {
  display: none !important;
}
