:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --bg-soft: #10141a;
  --panel: rgba(18, 23, 29, 0.82);
  --panel-solid: #12171d;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f1e9;
  --muted: #a7adb4;
  --quiet: #6f7781;
  --lime: #4f9dff;
  --cyan: #65e7ff;
  --orange: #7f9cff;
  --max-width: 1240px;
  --radius: 26px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

/* CMS-injected records use the existing project language with safe, generic layouts. */
[hidden] { display: none !important; }
.cms-links-section {
  width: min(var(--max-width, 1240px), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: clamp(40px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.cms-links-section h2 { max-width: 560px; margin: 14px 0 0; font-size: clamp(36px, 5vw, 68px); letter-spacing: -.055em; line-height: .98; }
.cms-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cms-link-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius, 24px) * .7);
  background: var(--panel-solid);
  color: var(--text);
  text-decoration: none;
  display: grid;
  align-content: start;
  gap: 13px;
  transition: transform .25s ease, border-color .25s ease;
}
.cms-link-card:hover { transform: translateY(-4px); border-color: var(--lime); }
.cms-link-card > span, .cms-link-card > small { font: 600 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.cms-link-card strong { font-size: clamp(20px, 2.5vw, 30px); letter-spacing: -.035em; }
.cms-link-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.cms-link-card small { margin-top: auto; padding-top: 20px; }
.cms-generic-project .cms-generic-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 300px;
  background:
    radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--lime) 32%, transparent), transparent 28%),
    linear-gradient(145deg, #111722, #202a31);
  display: grid;
  align-content: end;
  gap: 10px;
  padding: clamp(26px, 5vw, 54px);
}
.cms-generic-project { order: var(--cms-order, 999); }
.cms-generic-project.cms-template-featured { grid-column: 1 / -1; }
.cms-generic-project.cms-template-featured .cms-generic-art { min-height: clamp(420px, 58vw, 680px); }
.cms-generic-project.cms-template-featured .cms-generic-art strong { font-size: clamp(58px, 10vw, 132px); }
.cms-generic-project.cms-template-exploration .cms-generic-art { min-height: 220px; background: linear-gradient(135deg, #151b26, #222f37); }
.cms-generic-project .cms-generic-art::before,
.cms-generic-project .cms-generic-art::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--lime) 38%, transparent);
  border-radius: 50%;
  z-index: -1;
}
.cms-generic-project .cms-generic-art::before { width: 280px; height: 280px; right: -60px; top: -80px; }
.cms-generic-project .cms-generic-art::after { width: 170px; height: 170px; right: 50px; top: 24px; border-style: dashed; }
.cms-generic-art span { font: 600 10px var(--mono); letter-spacing: .16em; color: var(--lime); }
.cms-generic-art strong { max-width: 620px; color: #fff; font-size: clamp(38px, 7vw, 82px); line-height: .88; letter-spacing: -.07em; }
@media (max-width: 760px) {
  .cms-links-section { grid-template-columns: 1fr; }
  .cms-links-grid { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -5%, rgba(101, 231, 255, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.05;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

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

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--lime);
  color: #10140c;
}

.page-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
  background: transparent;
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 16px rgba(255, 120, 104, 0.7);
}

.pointer-glow {
  position: fixed;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: rgba(101, 231, 255, 0.04);
  filter: blur(2px);
  transition: opacity 300ms ease;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: grid;
  /* auto side tracks size to their content; the equal-fr layout let the brand+switcher
     cluster spill over the centered nav when the nav grew. */
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(calc(100% - 36px), var(--max-width));
  padding: 10px 12px;
  transform: translateX(-50%);
  border: 1px solid transparent;
  border-radius: 18px;
  transition:
    background 250ms ease,
    border-color 250ms ease,
    backdrop-filter 250ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(11, 14, 18, 0.74);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px) saturate(1.2);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  color: var(--lime);
}

.personal-mark {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 7px rgba(218, 176, 103, .12));
}

.personal-mark::before {
  position: absolute;
  top: 6px;
  left: 2px;
  width: 12px;
  height: 12px;
  border: 1.6px solid #d26651;
  border-radius: 1px;
  content: "";
  transform: rotate(45deg);
}

.personal-mark::after {
  position: absolute;
  top: 6px;
  right: 2px;
  width: 12px;
  height: 12px;
  border: 1.6px solid #72ad94;
  border-radius: 1px;
  content: "";
  transform: rotate(45deg);
}

.personal-mark i {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 7px;
  width: 10px;
  height: 10px;
  border: 1.6px solid #dab067;
  border-radius: 1px;
  background: #0d151b;
  box-shadow: 0 0 8px rgba(218, 176, 103, .22);
  transform: rotate(45deg);
}

html[data-theme="light"] .personal-mark i {
  background: #f5f8fc;
}

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

.brand-copy strong {
  font-size: 13px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--quiet);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-self: center;
  min-width: 0;
}

.site-header nav a { white-space: nowrap; }

.site-header nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: #c3c8ce;
  font-size: 12px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.availability {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-self: end;
  padding: 9px 13px;
  border: 1px solid rgba(255, 120, 104, 0.18);
  border-radius: 999px;
  background: rgba(255, 120, 104, 0.05);
  color: #b9d8ff;
  font-size: 11px;
  font-weight: 650;
}

.availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(255, 120, 104, 0.1);
  animation: pulse 2.6s infinite;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.62fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  min-height: 100svh;
  padding-top: 140px;
  padding-bottom: 90px;
}

#signal-canvas,
.hero-grid {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  width: 100vw;
  height: 100%;
  pointer-events: none;
}

#signal-canvas {
  z-index: -2;
  opacity: 0.75;
}

.hero-grid {
  z-index: -1;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 65% at 72% 38%, black 0%, transparent 75%);
}

.hero-copy {
  padding-top: 36px;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--lime);
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(4rem, 7.6vw, 7.6rem);
  font-weight: 640;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.hero h1 em {
  display: block;
  margin-top: 8px;
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.065em;
}

.hero-intro {
  max-width: 650px;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-intro strong {
  color: #e2e5e8;
  font-weight: 570;
}

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

.button {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
  transition:
    transform 180ms var(--ease),
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.button-primary {
  background: var(--lime);
  color: #12170d;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #d7ff8c;
  box-shadow: 0 14px 40px rgba(255, 120, 104, 0.12);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 32px 0 0;
  padding: 0;
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
  list-style: none;
  text-transform: uppercase;
}

.hero-tags li::before {
  margin-right: 8px;
  color: var(--cyan);
  content: "+";
}

.profile-card {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.profile-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(101, 231, 255, 0.12);
  filter: blur(80px);
  content: "";
}

.profile-photo-wrap {
  position: relative;
  height: clamp(260px, 31vw, 390px);
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 55%, rgba(11, 14, 18, 0.86)),
    linear-gradient(135deg, #24343a, #111820);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  filter: saturate(0.85) contrast(1.04);
  transition: transform 800ms var(--ease), filter 800ms ease;
}

.profile-card:hover .profile-photo {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.04);
}

.profile-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 11, 14, 0.68);
  color: #e4e8ea;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.profile-status::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.profile-body {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.profile-kicker {
  margin: 0 0 8px;
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-body h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 590;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.quick-facts {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
}

.quick-facts div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.quick-facts dt {
  color: var(--quiet);
}

.quick-facts dd {
  margin: 0;
  color: #d7dadd;
}

.profile-links {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.profile-links a {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 54px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: translateX(-100%);
  animation: scan 2.4s infinite var(--ease);
  content: "";
}

.proof-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  min-height: 110px;
  padding: 24px max(20px, calc((100vw - var(--max-width)) / 2));
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.proof-strip p {
  margin: 0;
  color: var(--lime);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.proof-items span {
  position: relative;
  color: #c4c9ce;
  font-size: 11px;
}

.proof-items span::before {
  margin-right: 9px;
  color: var(--quiet);
  content: "○";
}

.work {
  padding-top: 150px;
  padding-bottom: 150px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.6fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 56px;
}

.section-heading .eyebrow {
  margin-bottom: 20px;
}

.section-heading h2,
.about-statement h2,
.resume-intro h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 570;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-heading > p {
  max-width: 420px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transform-style: preserve-3d;
  transition:
    transform 350ms var(--ease),
    border-color 250ms ease,
    box-shadow 350ms ease;
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
}

.project-featured {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  min-height: 650px;
}

.project-copy {
  position: relative;
  z-index: 2;
  padding: clamp(30px, 4.5vw, 58px);
  transform: translateZ(18px);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.project-index,
.project-state {
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-state {
  color: #b7d985;
}

.project-state i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.project-state-muted {
  color: var(--quiet);
}

.project-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.7rem);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1;
}

.project-lead,
.project-compact .project-copy > p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.impact-list {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.impact-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.impact-list li > span {
  padding-top: 3px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.impact-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.impact-list strong {
  color: #e1e4e6;
  font-weight: 620;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.stack span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #969da5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-link {
  display: inline-flex;
  gap: 40px;
  align-items: center;
  margin-top: 34px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  color: #e9ebed;
  font-size: 11px;
  font-weight: 700;
}

.project-link span {
  color: var(--lime);
  transition: transform 180ms var(--ease);
}

.project-link:hover span {
  transform: translate(3px, -3px);
}

.project-art {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  transform: translateZ(4px);
}

.harmony-art {
  display: grid;
  grid-template-rows: 48px 1fr 48px;
  margin: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #0d1519;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.48);
}

.art-toolbar,
.art-caption {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.art-toolbar > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3e484e;
}

.art-toolbar > span:first-child {
  background: var(--orange);
}

.art-toolbar i {
  margin-left: auto;
  color: #68737b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.room-stage {
  position: relative;
  overflow: hidden;
  perspective: 900px;
  background:
    linear-gradient(160deg, rgba(255, 120, 104, 0.09), transparent 35%),
    radial-gradient(circle at 76% 26%, rgba(101, 231, 255, 0.2), transparent 20%),
    linear-gradient(145deg, #314044, #12191d 58%);
}

.room-grid {
  position: absolute;
  inset: 45% -20% -35%;
  transform: rotateX(62deg);
  background-image:
    linear-gradient(rgba(210, 229, 224, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 229, 224, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
}

.sofa {
  position: absolute;
  right: 13%;
  bottom: 16%;
  width: 57%;
  height: 27%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px 12px 7px 7px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.08) 50%, transparent 51%),
    linear-gradient(#738884, #3d4f4f);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.sofa::before {
  position: absolute;
  inset: -34% 2% 42%;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(#7c928d, #526865);
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.14);
  content: "";
}

.table {
  position: absolute;
  bottom: 8%;
  left: 19%;
  width: 34%;
  height: 11%;
  border-radius: 50%;
  background: #a08d71;
  box-shadow: 0 22px 25px rgba(0, 0, 0, 0.44);
  transform: skewX(-13deg);
}

.plant {
  position: absolute;
  top: 28%;
  left: 12%;
  width: 13%;
  height: 30%;
  border-bottom: 52px solid #6d6255;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
}

.plant::before {
  position: absolute;
  top: -34px;
  left: -22px;
  width: 50px;
  height: 70px;
  border-radius: 80% 15% 75% 20%;
  background: #5b8764;
  box-shadow: 18px 8px 0 #3f7351, -11px 13px 0 #75a06e;
  transform: rotate(-12deg);
  content: "";
}

.recommendation-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 9px rgba(255, 120, 104, 0.12);
  color: #0c1008;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  animation: float 4s ease-in-out infinite;
}

.pin-one {
  top: 42%;
  right: 24%;
}

.pin-two {
  right: 51%;
  bottom: 22%;
  animation-delay: -1.8s;
}

.art-caption {
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  color: #667078;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.05em;
}

.art-caption strong {
  color: #9fc86c;
  font-weight: 600;
}

.art-caption a {
  color: #9fc86c;
  font-weight: 650;
  transition:
    color 180ms ease,
    transform 180ms var(--ease);
}

.art-caption a:hover {
  color: var(--lime);
  transform: translate(2px, -1px);
}

.art-caption-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.motion-replay {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(183, 227, 111, 0.22);
  border-radius: 999px;
  color: #a9c77c;
  background: rgba(183, 227, 111, 0.055);
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms var(--ease);
}

.motion-replay[hidden] {
  display: none;
}

.motion-replay:hover {
  color: var(--lime);
  border-color: rgba(183, 227, 111, 0.42);
  background: rgba(183, 227, 111, 0.1);
  transform: translateY(-1px);
}

.motion-replay:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.identity-motion-replay {
  position: absolute;
  z-index: 5;
  bottom: 25px;
  left: 50%;
  padding: 7px 10px;
  color: #c7d8bc;
  background: rgba(12, 18, 23, 0.78);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.identity-motion-replay:hover {
  transform: translate(-50%, -1px);
}

.harmony-card-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(91, 143, 128, 0.16), transparent 34%),
    linear-gradient(145deg, #111b20, #0a1014);
}

.harmony-card-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(210, 229, 224, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 229, 224, 0.1) 1px, transparent 1px);
  background-size: 29px 29px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 86%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 86%);
}

.harmony-card-scan {
  position: absolute;
  z-index: 6;
  top: 8%;
  right: 7%;
  left: 7%;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  box-shadow: 0 0 16px rgba(183, 227, 111, 0.45);
}

.harmony-card-brand {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 138px;
  height: 184px;
  transform: translate(-50%, -50%);
  transition:
    top 950ms var(--ease),
    left 950ms var(--ease),
    width 950ms var(--ease),
    height 950ms var(--ease),
    opacity 520ms ease,
    transform 950ms var(--ease);
}

.harmony-card-brand video {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

.harmony-card-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 168px;
  height: 168px;
  border: 1px solid rgba(183, 227, 111, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 31px rgba(183, 227, 111, 0.018),
    0 0 0 62px rgba(183, 227, 111, 0.01);
  transform: translate(-50%, -50%);
}

.harmony-card-rings::after {
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(101, 231, 255, 0.2);
  border-top-color: rgba(101, 231, 255, 0.7);
  border-radius: 50%;
  content: "";
  animation: harmony-card-orbit 14s linear infinite;
}

.harmony-card-draft {
  position: absolute;
  z-index: 3;
  inset: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  grid-template-rows: 44px minmax(0, 1fr);
  gap: 10px;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 900ms ease,
    transform 1100ms var(--ease);
}

.harmony-draft-head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 10px 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.harmony-draft-head span,
.harmony-draft-head strong,
.harmony-draft-logic,
.harmony-draft-logic div,
.harmony-draft-logic p {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.harmony-draft-head span {
  color: #68747a;
  font-size: 6px;
  letter-spacing: 0.08em;
}

.harmony-draft-head strong {
  color: #e9eeeb;
  font-size: 10px;
  font-weight: 500;
}

.harmony-draft-plan {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(230, 237, 233, 0.28);
  border-right-width: 6px;
  border-bottom-width: 6px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.draft-window {
  position: absolute;
  top: -3px;
  left: 16%;
  width: 44%;
  height: 6px;
  border-right: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  background: repeating-linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px 8px);
  opacity: 0.72;
}

.draft-door {
  position: absolute;
  right: -6px;
  bottom: 7%;
  width: 42px;
  height: 42px;
  border-top: 1px dashed #647079;
  border-left: 1px dashed #647079;
  border-radius: 42px 0 0;
  transform: rotate(-90deg);
  transform-origin: bottom right;
}

.draft-zone {
  position: absolute;
  right: 8%;
  bottom: 13%;
  width: 55%;
  height: 37%;
  border: 1px solid rgba(101, 231, 255, 0.48);
  border-radius: 50%;
  background: rgba(101, 231, 255, 0.04);
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 850ms ease 120ms,
    transform 1050ms var(--ease) 120ms;
}

.draft-seat {
  position: absolute;
  right: 10%;
  bottom: 43%;
  width: 43%;
  height: 18%;
  border: 1px solid rgba(183, 227, 111, 0.68);
  border-radius: 6px;
  background: rgba(183, 227, 111, 0.07);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 850ms ease,
    transform 1050ms var(--ease);
}

.draft-seat::after {
  position: absolute;
  inset: 18% 4%;
  border: 1px solid rgba(183, 227, 111, 0.22);
  border-radius: 4px;
  content: "";
}

.draft-table {
  position: absolute;
  right: 25%;
  bottom: 22%;
  width: 18%;
  aspect-ratio: 1;
  border: 1px solid rgba(101, 231, 255, 0.68);
  border-radius: 50%;
  background: rgba(101, 231, 255, 0.08);
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 850ms ease 220ms,
    transform 1050ms var(--ease) 220ms;
}

.draft-plant {
  position: absolute;
  top: 10%;
  right: 8%;
  width: 12%;
  height: 16%;
  border: 1px solid rgba(183, 227, 111, 0.48);
  border-radius: 3px 3px 8px 8px;
  opacity: 0;
  transform: scale(0.65);
  transition:
    opacity 850ms ease 340ms,
    transform 1050ms var(--ease) 340ms;
}

.draft-plant i {
  position: absolute;
  bottom: 68%;
  width: 48%;
  height: 80%;
  border: 1px solid rgba(183, 227, 111, 0.55);
  border-radius: 100% 0;
  transform-origin: bottom;
}

.draft-plant i:nth-child(1) { left: -15%; transform: rotate(-30deg); }
.draft-plant i:nth-child(2) { left: 30%; transform: rotate(8deg); }
.draft-plant i:nth-child(3) { right: -20%; transform: rotate(43deg); }

.draft-path {
  position: absolute;
  top: 24%;
  bottom: 10%;
  left: 11%;
  width: 28%;
  border: 1px dashed rgba(101, 231, 255, 0.38);
  border-radius: 48% 48% 18% 18%;
  opacity: 0;
  transform: scaleY(0.5);
  transform-origin: bottom;
  transition:
    opacity 780ms ease,
    transform 1050ms var(--ease);
}

.draft-axis {
  position: absolute;
  top: 50%;
  left: 22%;
  width: 54%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(183, 227, 111, 0.6), transparent);
  transition: opacity 800ms ease 260ms;
}

.harmony-draft-logic {
  display: flex;
  flex-direction: column;
  padding: 12px 10px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(12, 20, 24, 0.75);
}

.harmony-draft-logic > span {
  margin-bottom: 10px;
  color: #657177;
  font-size: 5px;
  letter-spacing: 0.06em;
}

.harmony-draft-logic div {
  display: grid;
  grid-template-columns: 14px 30px 1fr;
  gap: 5px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateX(6px);
  transition:
    opacity 580ms ease,
    transform 700ms var(--ease);
}

.harmony-draft-logic div i,
.harmony-draft-logic div b {
  font-size: 5px;
  font-style: normal;
  font-weight: 500;
}

.harmony-draft-logic div i {
  color: var(--lime);
}

.harmony-draft-logic div b {
  color: #aeb7b4;
}

.harmony-draft-logic div em {
  height: 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan) 75%, rgba(255, 255, 255, 0.1) 75%);
}

.harmony-draft-logic div:nth-of-type(2) em {
  background: linear-gradient(90deg, var(--cyan) 56%, rgba(255, 255, 255, 0.1) 56%);
}

.harmony-draft-logic div:nth-of-type(3) em {
  background: linear-gradient(90deg, var(--cyan) 86%, rgba(255, 255, 255, 0.1) 86%);
}

.harmony-draft-logic p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: auto 0 0;
  padding: 7px;
  border: 1px solid rgba(183, 227, 111, 0.2);
  border-radius: 6px;
  color: var(--lime);
  background: rgba(183, 227, 111, 0.05);
  font-size: 5px;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 650ms ease 380ms;
}

.harmony-draft-logic p i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.harmony-card-stage[data-phase="scan"] .harmony-card-brand,
.harmony-card-stage[data-phase="draft"] .harmony-card-brand {
  top: -4px;
  left: 25px;
  width: 42px;
  height: 56px;
  transform: none;
}

.harmony-card-stage[data-phase="scan"] .harmony-card-rings,
.harmony-card-stage[data-phase="draft"] .harmony-card-rings {
  width: 56px;
  height: 56px;
  opacity: 0.24;
  box-shadow: none;
}

.harmony-card-stage[data-phase="scan"] .harmony-card-draft,
.harmony-card-stage[data-phase="draft"] .harmony-card-draft {
  opacity: 1;
  transform: none;
}

.harmony-card-stage[data-phase="scan"] .harmony-card-scan {
  opacity: 0.55;
  animation: harmony-card-scan 1.65s var(--ease) both;
}

.harmony-card-stage[data-phase="scan"] .harmony-draft-logic div,
.harmony-card-stage[data-phase="draft"] .harmony-draft-logic div {
  opacity: 1;
  transform: none;
}

.harmony-card-stage[data-phase="scan"] .harmony-draft-logic div:nth-of-type(2),
.harmony-card-stage[data-phase="draft"] .harmony-draft-logic div:nth-of-type(2) { transition-delay: 140ms; }

.harmony-card-stage[data-phase="scan"] .harmony-draft-logic div:nth-of-type(3),
.harmony-card-stage[data-phase="draft"] .harmony-draft-logic div:nth-of-type(3) { transition-delay: 280ms; }

.harmony-card-stage[data-phase="draft"] .draft-zone,
.harmony-card-stage[data-phase="draft"] .draft-seat,
.harmony-card-stage[data-phase="draft"] .draft-table,
.harmony-card-stage[data-phase="draft"] .draft-plant,
.harmony-card-stage[data-phase="draft"] .draft-path,
.harmony-card-stage[data-phase="draft"] .draft-axis,
.harmony-card-stage[data-phase="draft"] .harmony-draft-logic p {
  opacity: 1;
  transform: none;
}

@keyframes harmony-card-scan {
  0% { top: 8%; opacity: 0; }
  18% { opacity: 0.55; }
  82% { opacity: 0.55; }
  100% { top: 91%; opacity: 0; }
}

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

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.project-compact {
  display: grid;
  grid-template-rows: clamp(390px, 38vw, 540px) auto;
}

.project-compact .project-copy {
  padding: 34px;
}

.project-compact .project-meta {
  margin-bottom: 30px;
}

.project-compact .project-art,
.project-compact .project-copy {
  transform: translateZ(0);
}

.project-compact .project-copy h3 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.identity-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(101, 231, 255, 0.13), transparent 34%),
    linear-gradient(145deg, #111820, #0b1015);
}

.identity-art::before {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
}

.identity-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(161, 144, 235, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(124, 104, 216, 0.16), transparent 62%),
    rgba(10, 13, 19, 0.26);
  box-shadow:
    0 0 90px rgba(112, 100, 228, 0.24),
    inset 0 0 32px rgba(144, 132, 226, 0.08);
  color: #a99be7;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.06em;
  transition:
    border-color 500ms ease,
    box-shadow 500ms ease;
}

.identity-core::before,
.identity-core::after {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.identity-core::before {
  inset: -8px;
  border: 1px solid rgba(120, 205, 225, 0.09);
  border-top-color: rgba(120, 205, 225, 0.36);
  animation: orbit 16s linear infinite;
}

.identity-core::after {
  inset: -18px;
  border: 1px dashed rgba(169, 155, 231, 0.12);
  border-right-color: rgba(169, 155, 231, 0.34);
  animation: orbit 24s linear infinite reverse;
}

.identity-core svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 116px !important;
  height: 116px !important;
  overflow: visible;
  filter: drop-shadow(0 12px 24px rgba(55, 215, 218, 0.09));
}

.identity-core-fallback {
  position: absolute;
  z-index: 1;
  transition:
    opacity 220ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.identity-core.is-ready {
  border-color: rgba(138, 209, 223, 0.18);
  box-shadow:
    0 0 100px rgba(112, 100, 228, 0.3),
    inset 0 0 40px rgba(144, 132, 226, 0.1);
}

.identity-core.is-ready .identity-core-fallback {
  opacity: 0;
  transform: scale(0.72);
}

.identity-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.orbit-one {
  width: 230px;
  height: 230px;
  animation: orbit 28s linear infinite;
}

.orbit-two {
  width: 330px;
  height: 330px;
  border-style: dashed;
  animation: orbit 42s linear infinite reverse;
}

.identity-node {
  position: absolute;
  z-index: 2;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(14, 19, 24, 0.92);
  color: #9aa3aa;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.node-a { top: 20%; left: 32%; }
.node-b { top: 35%; right: 14%; }
.node-c { right: 28%; bottom: 16%; }
.node-d { bottom: 28%; left: 12%; }

.mesh-art {
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 158, 87, 0.12), transparent 32%),
    #0c1116;
}

#mesh-canvas {
  width: 100%;
  height: 100%;
}

.mesh-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 14, 18, 0.76);
  backdrop-filter: blur(10px);
}

.mesh-label span,
.mesh-label strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mesh-label span { color: var(--orange); }
.mesh-label strong { margin-top: 4px; color: #a8afb5; }

.about {
  padding-bottom: 150px;
}

.about-statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 90px;
  align-items: end;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.about-statement .eyebrow,
.about-statement h2 {
  grid-column: 1;
}

.about-statement .eyebrow {
  margin-bottom: -58px;
}

.about-statement > p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.capability-grid article {
  min-height: 270px;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.capability-grid article:last-child {
  border-right: 0;
}

.capability-number {
  color: var(--lime);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.capability-grid h3 {
  margin: 90px 0 12px;
  font-size: 1.35rem;
  font-weight: 580;
  letter-spacing: -0.04em;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.resume-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  margin-top: 110px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 100%, rgba(101, 231, 255, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.025);
}

.resume-intro .eyebrow {
  margin-bottom: 26px;
}

.resume-intro h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

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

.timeline article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--lime);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.timeline h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.timeline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.resume-action {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
}

.resume-action p {
  margin: 0;
  color: var(--quiet);
  font-size: 10px;
}

.text-button,
.footer-links button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 10px;
}

.text-button {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--cyan);
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.7fr);
  gap: 100px;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 140px;
  border-top: 1px solid var(--line);
}

.contact-copy h2 {
  font-size: clamp(3.1rem, 5.5vw, 5.5rem);
}

.contact-copy > p {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.guestbook-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 120, 104, 0.08), transparent 35%),
    var(--panel);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.26);
}

.guestbook-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.guestbook-kicker {
  color: var(--lime);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guestbook-head h3 {
  margin: 7px 0 0;
  font-size: 1.8rem;
  font-weight: 580;
  letter-spacing: -0.045em;
}

.moderated {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guestbook-card label {
  display: grid;
  gap: 8px;
  color: #aab0b6;
  font-size: 9px;
  font-weight: 650;
}

.guestbook-card textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.guestbook-card textarea:focus {
  border-color: rgba(101, 231, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(101, 231, 255, 0.06);
}

.guestbook-card textarea::placeholder {
  color: #555e66;
}

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

.guestbook-footer p {
  margin: 0;
  color: var(--quiet);
  font-size: 8px;
}

.button-light {
  min-height: 42px;
  background: var(--text);
  color: #111418;
}

.provider-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.provider-note span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
  text-transform: uppercase;
}

.provider-note small {
  margin-left: auto;
  color: #525b63;
  font-size: 7px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 130px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

footer > p {
  margin: 0;
  color: var(--quiet);
  font-size: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-self: end;
}

.footer-links a,
.footer-links button {
  color: var(--quiet);
  font-size: 9px;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--text);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(360px, calc(100% - 48px));
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(18, 23, 29, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  color: #dce0e3;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms var(--ease);
  backdrop-filter: blur(18px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Content only hides for the scripted reveal when JS actually runs (html[data-js] is
   stamped by the head script) — with JS blocked or failed the page renders fully. */
html[data-js] .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease);
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 120, 104, 0.08); }
  50% { box-shadow: 0 0 0 8px rgba(255, 120, 104, 0.01); }
}

@keyframes scan {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 7.6vw, 6rem);
  }

  .project-featured {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .contact {
    gap: 50px;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .brand-copy {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 150px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .profile-card {
    width: min(100%, 520px);
    margin: 0;
  }

  .profile-photo-wrap {
    height: 440px;
  }

  .scroll-cue {
    display: none;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .section-heading,
  .about-statement,
  .contact {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .project-featured .project-art {
    order: -1;
  }

  .harmony-art {
    min-height: 520px;
  }

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

  .about-statement .eyebrow,
  .about-statement h2,
  .about-statement > p {
    grid-column: 1;
    grid-row: auto;
  }

  .about-statement .eyebrow {
    margin-bottom: 0;
  }

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

  .capability-grid article {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-grid article:last-child {
    border-bottom: 0;
  }

  .capability-grid h3 {
    margin-top: 60px;
  }

  .resume-panel {
    grid-template-columns: 1fr;
  }

  .resume-action {
    grid-column: 1;
  }

  .contact {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media (max-width: 560px) {
  .section-shell,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .availability {
    font-size: 9px;
  }

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

  .hero h1 {
    font-size: clamp(3.3rem, 16vw, 4.8rem);
  }

  .hero-intro {
    font-size: 0.96rem;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .profile-photo-wrap {
    height: 360px;
  }

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

  .work {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .section-heading h2,
  .about-statement h2,
  .contact-copy h2 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .project-meta {
    gap: 18px;
    margin-bottom: 34px;
  }

  .project-copy,
  .project-compact .project-copy {
    padding: 25px;
  }

  .harmony-art {
    min-height: 370px;
    margin: 10px;
  }

  .project-compact {
    grid-template-rows: 300px auto;
  }

  .about-statement {
    padding: 90px 0;
  }

  .resume-panel {
    margin-top: 80px;
  }

  .resume-action,
  .guestbook-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button-light {
    width: 100%;
  }

  .provider-note small {
    width: 100%;
    margin: 7px 0 0;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 0;
  }

  footer > p,
  .footer-links {
    justify-self: start;
  }
}

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

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

  /* Must match the html[data-js] specificity below, or reduced-motion visitors get a
     hidden-then-shown flash while waiting for script.js. */
  html[data-js] .reveal {
    opacity: 1;
    transform: none;
  }

  .pointer-glow {
    display: none;
  }
}


/* --- Resume presentation ------------------------------------------------ */
body::before {
  background-image: repeating-radial-gradient(circle at 0 0, rgba(255,255,255,.7) 0, rgba(255,255,255,.7) .35px, transparent .55px, transparent 3px);
  background-size: 5px 5px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f1eb;
  --bg-soft: #e9e7e0;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #fbfaf6;
  --line: rgba(19, 27, 32, 0.13);
  --line-strong: rgba(19, 27, 32, 0.25);
  --text: #161b1d;
  --muted: #5d666b;
  --quiet: #858e92;
  --lime: #1f6fc4;
  --cyan: #00798c;
  --orange: #b65719;
}

html[data-theme="light"] body {
  background: radial-gradient(circle at 18% -5%, rgba(0, 121, 140, .08), transparent 30rem), var(--bg);
}

html[data-theme="light"] body::before { opacity: .025; filter: invert(1); }
html[data-theme="light"] .site-header.is-scrolled { background: rgba(243, 241, 235, .8); }
html[data-theme="light"] .brand-mark { background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(0,0,0,.02)); }
html[data-theme="light"] .site-header nav a { color: #515b60; }
html[data-theme="light"] .availability { color: #4b6b0c; background: rgba(86,125,5,.06); border-color: rgba(86,125,5,.18); }
html[data-theme="light"] .hero-intro strong,
html[data-theme="light"] .experience-summary strong { color: #222a2e; }
html[data-theme="light"] .button-primary { color: #fff; background: #2e73c5; }
html[data-theme="light"] .button-primary:hover { background: #1f5fa8; }
html[data-theme="light"] .button-secondary { background: rgba(255,255,255,.46); }
html[data-theme="light"] .profile-card,
html[data-theme="light"] .publication-card,
html[data-theme="light"] .teaser-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .chat-panel { box-shadow: 0 34px 90px rgba(27,35,38,.08); }
html[data-theme="light"] .profile-card { background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.44)); }
html[data-theme="light"] .quick-facts dd,
html[data-theme="light"] .experience-main h3 { color: #273034; }
html[data-theme="light"] .stack span { color: #667075; }
html[data-theme="light"] .chat-form input,
html[data-theme="light"] .guestbook-card textarea { background: rgba(255,255,255,.72); color: var(--text); }
html[data-theme="light"] .chat-message.assistant p { background: #e8e6df; }
html[data-theme="light"] .chat-message.user p { color: #fff; background: #2e73c5; }
html[data-theme="light"] .chat-launch { background: rgba(250,249,244,.94); }
html[data-theme="light"] .project-art { color-scheme: dark; }

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

.utility-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.utility-button:hover,
.utility-button:focus-visible { border-color: var(--line-strong); outline: none; color: var(--text); background: rgba(255,255,255,.07); }
.theme-button span { color: var(--cyan); font-size: 15px; }
.theme-button small { font-size: 8px; }

.resume-hero { min-height: 940px; }
.resume-profile .profile-photo-wrap { height: clamp(300px, 34vw, 430px); }
.resume-profile .profile-body h2 { max-width: 340px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
}

.metric-grid div { display: grid; gap: 5px; min-width: 0; padding: 14px 10px; background: var(--panel-solid); }
.metric-grid strong { color: var(--lime); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; letter-spacing: -.03em; }
.metric-grid span { color: var(--quiet); font-size: 7px; line-height: 1.35; }

.experience { padding-top: 150px; padding-bottom: 150px; }
.experience-list { border-top: 1px solid var(--line); }
.experience-item { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--line); }
.experience-rail { display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; padding: 34px 28px 34px 0; border-right: 1px solid var(--line); }
.experience-rail time,
.experience-rail > span { color: var(--quiet); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.experience-rail > span { color: var(--lime); }
.experience-main { padding: 34px 0 38px clamp(28px, 5vw, 72px); }
.experience-heading { display: flex; gap: 30px; align-items: start; justify-content: space-between; }
.experience-heading p { margin: 0 0 7px; color: var(--cyan); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.experience-heading h3 { margin: 0; color: #e8eaeb; font-size: clamp(1.55rem, 2.8vw, 2.45rem); font-weight: 570; letter-spacing: -.045em; line-height: 1.06; }
.experience-heading > span { flex: 0 0 auto; padding-top: 3px; color: var(--quiet); font-size: 9px; }
.experience-summary { max-width: 800px; margin: 25px 0 0; color: var(--muted); font-size: 13px; }
.experience-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 28px 0 0; padding: 0; list-style: none; }
.experience-tags li { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--quiet); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; letter-spacing: .06em; text-transform: uppercase; }
.achievement-row { display: flex; gap: 10px; margin-top: 25px; }
.achievement-row > span { display: grid; min-width: 150px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.achievement-row strong { color: var(--lime); font-size: 17px; font-weight: 650; letter-spacing: -.035em; }
.achievement-row small { margin-top: 4px; color: var(--quiet); font-size: 8px; }

.credentials { padding-bottom: 150px; }
.credentials-grid { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); }
.education-panel,
.skills-panel { padding: 70px clamp(0px, 4vw, 58px) 70px 0; }
.skills-panel { padding-right: 0; padding-left: clamp(30px, 5vw, 70px); border-left: 1px solid var(--line); }
.education-panel h2 { max-width: 520px; margin: 0 0 58px; font-size: clamp(2.7rem, 4vw, 4.5rem); font-weight: 570; letter-spacing: -.06em; line-height: .98; }
.education-panel article { position: relative; display: grid; grid-template-columns: 85px 1fr; gap: 6px 18px; padding: 23px 0; border-top: 1px solid var(--line); }
.education-panel article time { grid-row: 1 / span 3; color: var(--lime); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.education-panel article h3 { margin: 0; font-size: 15px; font-weight: 620; }
.education-panel article p { margin: 0; color: var(--muted); font-size: 11px; }
.education-panel article span { color: var(--quiet); font-size: 8px; }
.skill-group { padding: 23px 0; border-top: 1px solid var(--line); }
.skill-group > span { color: var(--cyan); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.skill-group p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.research { padding-bottom: 150px; }
.publication-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.publication-card { position: relative; min-height: 350px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.publication-card::after { position: absolute; right: -60px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%; background: rgba(101,231,255,.08); filter: blur(55px); content: ""; }
.publication-card > span { color: var(--lime); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.publication-card h3 { max-width: 600px; margin: 80px 0 18px; font-size: clamp(1.45rem, 2.3vw, 2.2rem); font-weight: 580; letter-spacing: -.04em; line-height: 1.12; }
.publication-card p { max-width: 560px; margin: 0; color: var(--muted); font-size: 11px; }
.publication-card small { position: absolute; right: 34px; bottom: 30px; left: 34px; color: var(--quiet); font-size: 8px; }

.project-teaser { padding-bottom: 150px; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.teaser-card { position: relative; display: flex; flex-direction: column; min-height: 270px; padding: 27px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); transition: transform 260ms var(--ease), border-color 220ms ease, background 220ms ease; }
.teaser-card:hover { transform: translateY(-7px); border-color: var(--line-strong); background: rgba(255,255,255,.055); }
.teaser-card > span { color: var(--cyan); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.teaser-card h3 { margin: auto 0 12px; font-size: clamp(1.6rem, 2.4vw, 2.4rem); font-weight: 580; letter-spacing: -.045em; }
.teaser-card h3 small { display: block; margin-top: 8px; color: var(--quiet); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; font-weight: 650; letter-spacing: .04em; }
.teaser-card p { max-width: 280px; margin: 0; color: var(--muted); font-size: 10px; }
.teaser-card i { position: absolute; right: 24px; bottom: 24px; color: var(--lime); font-style: normal; }
.projects-all-link { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding: 21px 5px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.projects-all-link span:last-child { color: var(--lime); font-size: 20px; }

.contact-card { display: flex; flex-direction: column; min-height: 360px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.contact-card > span { color: var(--lime); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-card > a { margin: auto 0 12px; font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 580; letter-spacing: -.04em; word-break: break-word; }
.contact-card > p { margin: 0 0 28px; color: var(--muted); font-size: 10px; }
.contact-card > button { display: flex; justify-content: space-between; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--cyan); cursor: pointer; font-size: 10px; font-weight: 700; }

/* Project directory */
/* Bottom-aligned editorial hero, but cap the vertical stage so tall viewports don't
   open a huge blank band between the header and the title. */
.projects-hero { position: relative; display: grid; grid-template-columns: 1.3fr .55fr; gap: 70px; align-items: end; min-height: min(62svh, 620px); padding-top: 150px; padding-bottom: 90px; }
.projects-hero #signal-canvas,
.projects-hero .hero-grid { inset: 0 calc(50% - 50vw); }
.projects-hero-copy h1 { margin: 0; font-size: clamp(4.2rem, 7.8vw, 8rem); font-weight: 620; letter-spacing: -.075em; line-height: .89; }
.projects-hero-copy h1 em { color: var(--lime); font-family: Georgia, serif; font-weight: 400; }
.projects-hero-copy > p:last-child { max-width: 680px; margin: 34px 0 0; color: var(--muted); font-size: 14px; }
.project-directory { display: grid; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.project-directory > span { margin-bottom: 15px; color: var(--lime); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.project-directory a { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; transition: color 160ms ease, padding 160ms ease; }
.project-directory a:hover { padding-left: 5px; color: var(--text); }
.project-filter-bar { display: flex; align-items: center; justify-content: space-between; padding-block: 23px; border-block: 1px solid var(--line); }
.project-filter-bar p { margin: 0; color: var(--quiet); font-size: 9px; }
.project-filter-bar > div { display: flex; gap: 7px; }
.project-filter-bar button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--quiet); cursor: pointer; font-size: 8px; }
.project-filter-bar button.is-active { border-color: rgba(79,157,255,.3); background: rgba(79,157,255,.08); color: var(--lime); }
.project-gallery { padding-top: 70px; }
.project-gallery .project-card { margin-bottom: 22px; }
.project-gallery .project-copy h2 { margin: 0; font-size: clamp(2.2rem, 3.5vw, 3.8rem); font-weight: 590; letter-spacing: -.055em; line-height: 1; }
.project-gallery .project-copy h2 small { display: block; margin-top: 12px; color: var(--quiet); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; font-weight: 650; letter-spacing: .035em; line-height: 1.3; }
.project-reverse .project-copy { order: 2; }
.project-reverse .project-art { order: 1; margin: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; }
.project-template-action { border-top: 0; border-right: 0; border-left: 0; background: transparent; cursor: pointer; }
.project-card.is-filtered,
.research-project-band.is-filtered { display: none; }

.downloader-art { display: grid; place-items: center; background: radial-gradient(circle at 50% 46%, rgba(101,231,255,.17), transparent 30%), #0c1217; }
.download-window { position: relative; width: 70%; height: 68%; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: #121a20; box-shadow: 0 35px 70px rgba(0,0,0,.34); }
.download-bar { display: flex; gap: 6px; align-items: center; height: 40px; padding: 0 13px; border-bottom: 1px solid rgba(255,255,255,.1); }
.download-bar span { width: 5px; height: 5px; border-radius: 50%; background: #42505a; }
.download-bar span:first-child { background: var(--cyan); }
.download-file { position: absolute; top: 29%; left: 50%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; width: 80%; padding: 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 11px; background: rgba(255,255,255,.035); transform: translateX(-50%); }
.download-file b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--lime); color: #11170a; }
.download-file i { grid-column: 2; height: 4px; border-radius: 4px; background: #2d3840; }
.download-file i + i { width: 72%; background: var(--cyan); }
.download-file strong { grid-column: 3; grid-row: 1 / span 2; color: #aab4ba; font-family: monospace; font-size: 9px; }
.download-wave { position: absolute; right: -10%; bottom: -36%; left: -10%; height: 58%; border: 1px solid rgba(101,231,255,.22); border-radius: 50%; box-shadow: 0 -12px 0 rgba(101,231,255,.06), 0 -24px 0 rgba(101,231,255,.025); }

.sms-art { display: grid; place-items: center; background: radial-gradient(circle at 35% 40%, rgba(79,157,255,.13), transparent 28%), #0b1321; }
.sms-phone { position: relative; width: 42%; min-width: 180px; height: 76%; padding: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 27px; background: #172026; box-shadow: 0 35px 80px rgba(0,0,0,.4); transform: rotate(5deg); }
.sms-top { padding: 4px 0 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #66737a; font-family: monospace; font-size: 7px; text-align: center; }
.sms-bubble { height: 29px; margin-top: 15px; border-radius: 10px 10px 10px 3px; background: #29363d; }
.bubble-a { width: 74%; }
.bubble-b { width: 57%; margin-left: auto; border-radius: 10px 10px 3px 10px; background: rgba(79,157,255,.75); }
.bubble-c { width: 82%; }
.sms-input { position: absolute; right: 13px; bottom: 14px; left: 13px; height: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; }
.sms-signal { position: absolute; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 9px rgba(79,157,255,.08); color: #fff; font-family: monospace; font-size: 8px; font-weight: 800; }
.signal-one { top: 24%; right: 20%; }
.signal-two { bottom: 19%; left: 21%; }

.research-project-band { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; margin-top: 22px; padding: clamp(35px,5vw,65px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.research-project-band > div:first-child > span { color: var(--orange); font-family: monospace; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.research-project-band h2 { margin: 70px 0 0; font-size: clamp(2.2rem,4vw,4rem); font-weight: 570; letter-spacing: -.055em; line-height: 1; }
.research-project-list { border-top: 1px solid var(--line); }
.research-project-list article { position: relative; padding: 20px 0 22px 58px; border-bottom: 1px solid var(--line); }
.research-project-list article > span { position: absolute; top: 23px; left: 0; color: var(--lime); font-family: monospace; font-size: 8px; }
.research-project-list h3 { margin: 0; font-size: 15px; font-weight: 600; }
.research-project-list p { margin: 6px 0 0; color: var(--muted); font-size: 9px; }
.project-intake { display: grid; grid-template-columns: 1fr .75fr; gap: 90px; padding-top: 80px; padding-bottom: 150px; }
.project-intake h2 { margin: 0; font-size: clamp(3rem,5vw,5.3rem); font-weight: 570; letter-spacing: -.065em; line-height: .98; }
.project-intake > div:first-child > p:last-child { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 13px; }
.case-outline { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.case-outline > span { color: var(--cyan); font-family: monospace; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.case-outline ol { margin: 22px 0 28px; padding: 0; counter-reset: fields; list-style: none; }
.case-outline li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; counter-increment: fields; }
.case-outline li::before { margin-right: 12px; color: var(--lime); font-family: monospace; content: "0" counter(fields); }

/* Resume chat */
.chat-launch { position: fixed; right: 22px; bottom: 22px; z-index: 65; display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-width: 170px; padding: 10px 14px 10px 10px; border: 1px solid var(--line-strong); border-radius: 17px; background: rgba(18,23,29,.91); box-shadow: 0 18px 55px rgba(0,0,0,.3); color: var(--text); cursor: pointer; text-align: left; backdrop-filter: blur(18px); transition: transform 200ms var(--ease), border-color 160ms ease; }
.chat-launch:hover { transform: translateY(-3px); border-color: rgba(79,157,255,.42); }
.chat-launch-orb { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--lime); box-shadow: 0 0 24px rgba(79,157,255,.14); color: #fff; font-size: 17px; }
.chat-launch > span:nth-child(2) { font-size: 10px; font-weight: 750; }
.chat-launch small { color: var(--quiet); font-size: 7px; }
.chat-panel { position: fixed; right: 22px; bottom: 84px; z-index: 70; display: grid; grid-template-rows: auto auto minmax(170px,1fr) auto auto auto; width: min(400px, calc(100vw - 28px)); max-height: min(680px, calc(100svh - 110px)); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(15,19,24,.96); box-shadow: 0 30px 100px rgba(0,0,0,.48); opacity: 0; pointer-events: none; transform: translateY(16px) scale(.98); transform-origin: bottom right; transition: opacity 180ms ease, transform 240ms var(--ease); backdrop-filter: blur(22px); }
.chat-panel.is-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 17px; border-bottom: 1px solid var(--line); }
.chat-head > div { display: flex; gap: 10px; align-items: center; }
.chat-head > div > div { display: grid; }
.chat-head strong { font-size: 11px; }
.chat-head small { margin-top: 3px; color: var(--quiet); font-size: 7px; }
.chat-shield { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(79,157,255,.1); color: var(--lime); font-size: 10px; }
.chat-head > button { width: 30px; height: 30px; border: 0; background: transparent; color: var(--quiet); cursor: pointer; font-size: 21px; }
.chat-boundary { display: flex; gap: 9px; align-items: start; margin: 12px 14px 0; padding: 10px; border: 1px solid rgba(79,157,255,.12); border-radius: 10px; background: rgba(79,157,255,.045); }
.chat-boundary > span { color: var(--lime); font-size: 9px; }
.chat-boundary p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.chat-messages { display: flex; flex-direction: column; gap: 11px; min-height: 0; padding: 15px; overflow-y: auto; overscroll-behavior: contain; }
.chat-message { display: flex; gap: 8px; align-items: end; max-width: 90%; }
.chat-message > span { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 8px; color: var(--cyan); font-family: monospace; font-size: 7px; }
.chat-message p { margin: 0; padding: 10px 11px; border-radius: 12px 12px 12px 3px; background: rgba(255,255,255,.06); color: #cdd2d5; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.chat-message.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-message.user > span { display: none; }
.chat-message.user p { border-radius: 12px 12px 3px 12px; background: var(--lime); color: #12170b; }
.chat-message.refusal p { border: 1px solid rgba(255,158,87,.15); background: rgba(255,158,87,.06); }
.chat-suggestions { display: flex; gap: 6px; padding: 0 15px 10px; overflow-x: auto; }
.chat-suggestions button { flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 7px; }
.chat-suggestions button:hover { border-color: var(--line-strong); color: var(--text); }
.chat-form { display: grid; grid-template-columns: 1fr 38px; gap: 7px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form input { min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: rgba(0,0,0,.22); color: var(--text); font-size: 10px; }
.chat-form input:focus { border-color: rgba(101,231,255,.45); box-shadow: 0 0 0 3px rgba(101,231,255,.05); }
.chat-form input::placeholder { color: #586169; }
.chat-form button { border: 0; border-radius: 10px; background: var(--lime); color: #11170a; cursor: pointer; font-size: 16px; font-weight: 800; }
.chat-privacy { margin: 0; padding: 0 15px 13px; color: var(--quiet); font-size: 7px; line-height: 1.4; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .availability { display: none; }
  .projects-hero { grid-template-columns: 1fr .45fr; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .header-actions { grid-column: 2; }
  .resume-hero { min-height: auto; }
  .experience-item { grid-template-columns: 115px 1fr; }
  .experience-rail { min-height: 280px; }
  .credentials-grid,
  .projects-hero,
  .research-project-band,
  .project-intake { grid-template-columns: 1fr; }
  .skills-panel { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .publication-grid,
  .teaser-grid { grid-template-columns: 1fr; }
  .publication-card { min-height: 300px; }
  .teaser-card { min-height: 220px; }
  .projects-hero { gap: 35px; min-height: auto; padding-top: 160px; }
  .project-directory { max-width: 520px; }
  .project-reverse .project-copy { order: 1; }
  .project-reverse .project-art { order: 0; }
  .research-project-band h2 { margin-top: 35px; }
}

@media (max-width: 620px) {
  .utility-button small { display: none; }
  .utility-button { min-width: 36px; justify-content: center; }
  .resume-profile .profile-photo-wrap { height: 370px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid div { grid-template-columns: 80px 1fr; align-items: center; }
  .experience { padding-top: 100px; padding-bottom: 110px; }
  .experience-item { grid-template-columns: 1fr; }
  .experience-rail { flex-direction: row; min-height: auto; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .experience-main { padding: 26px 0 34px; }
  .experience-heading { display: grid; }
  .experience-heading > span { order: -1; }
  .achievement-row { display: grid; grid-template-columns: 1fr 1fr; }
  .achievement-row > span { min-width: 0; }
  .education-panel,
  .skills-panel { padding-block: 55px; }
  .education-panel article { grid-template-columns: 1fr; }
  .education-panel article time { grid-row: auto; }
  .project-teaser,
  .research,
  .credentials { padding-bottom: 100px; }
  .projects-hero-copy h1 { font-size: clamp(3.6rem, 16vw, 5.2rem); }
  .project-filter-bar { align-items: start; flex-direction: column; gap: 15px; }
  .project-filter-bar > div { width: 100%; overflow-x: auto; }
  .project-gallery { padding-top: 45px; }
  .research-project-band,
  .project-intake { gap: 35px; padding-inline: 25px; }
  .project-intake { padding-inline: 0; }
  .chat-launch { right: 12px; bottom: 12px; min-width: 52px; padding-right: 10px; }
  .chat-launch > span:nth-child(2), .chat-launch small { display: none; }
  .chat-panel { right: 7px; bottom: 72px; width: calc(100vw - 14px); max-height: calc(100svh - 84px); }
}


/* Warm editorial palette + Luna */
:root {
  --bg: #171916;
  --bg-soft: #1e211d;
  --panel: rgba(31, 34, 29, .86);
  --panel-solid: #20231f;
  --line: rgba(242, 238, 230, .105);
  --line-strong: rgba(242, 238, 230, .19);
  --text: #f2eee6;
  --muted: #b5b1a8;
  --quiet: #817f76;
  --lime: #6bc7ff;
  --cyan: #c49a6c;
  --orange: #a9785e;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f1e8;
  --bg-soft: #ebe5da;
  --panel: rgba(255, 252, 246, .84);
  --panel-solid: #fffaf2;
  --line: rgba(39, 39, 33, .105);
  --line-strong: rgba(39, 39, 33, .2);
  --text: #25261f;
  --muted: #62635b;
  --quiet: #89897e;
  --lime: #2f659d;
  --cyan: #956b52;
  --orange: #a46f55;
}

body {
  background:
    radial-gradient(circle at 16% -8%, rgba(107, 199, 255, .085), transparent 30rem),
    radial-gradient(circle at 84% 14%, rgba(170, 140, 255, .05), transparent 32rem),
    var(--bg);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% -6%, rgba(47, 101, 157, .09), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(149, 107, 82, .065), transparent 32rem),
    var(--bg);
}

body::before { opacity: .025; }
.page-progress span { background: linear-gradient(90deg, var(--cyan), var(--lime)); box-shadow: none; }
.pointer-glow { background: rgba(107, 199, 255, .04); }
.site-header.is-scrolled { background: rgba(23, 25, 22, .8); box-shadow: 0 15px 45px rgba(0, 0, 0, .12); }
html[data-theme="light"] .site-header.is-scrolled { background: rgba(245, 241, 232, .84); box-shadow: 0 15px 45px rgba(61, 55, 45, .07); }
.button-primary { background: var(--lime); color: #182016; box-shadow: none; }
.button-primary:hover { background: #5698e5; }
html[data-theme="light"] .button-primary { background: #2f659d; color: #fffaf2; }
html[data-theme="light"] .button-primary:hover { background: #285884; }
.availability { color: var(--lime); background: rgba(107, 199, 255, .065); border-color: rgba(107, 199, 255, .2); }
html[data-theme="light"] .availability { color: #295b8c; background: rgba(47, 101, 157, .07); border-color: rgba(47, 101, 157, .2); }
.profile-card,
.publication-card,
.teaser-card,
.contact-card,
.project-card,
.luna-story { box-shadow: 0 24px 70px rgba(0, 0, 0, .12); }
html[data-theme="light"] .profile-card,
html[data-theme="light"] .publication-card,
html[data-theme="light"] .teaser-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .luna-story { box-shadow: 0 24px 70px rgba(53, 48, 40, .075); }
.chat-launch { background: rgba(27, 30, 26, .94); box-shadow: 0 18px 48px rgba(0,0,0,.22); }
.chat-panel { background: rgba(25, 28, 24, .975); box-shadow: 0 30px 90px rgba(0,0,0,.34); }
html[data-theme="light"] .chat-launch { background: rgba(255, 252, 246, .95); }
html[data-theme="light"] .chat-panel { background: rgba(255, 252, 246, .985); }
.chat-launch:hover { border-color: rgba(107, 199, 255, .45); }
.chat-boundary { border-color: rgba(107, 199, 255, .16); background: rgba(107, 199, 255, .05); }
.chat-message.user p { background: var(--lime); color: #182016; }
html[data-theme="light"] .chat-message.user p { background: #2f659d; color: #fffaf2; }
html[data-theme="light"] .chat-message.assistant p { background: #ebe6dc; }

.chat-launch-orb {
  overflow: hidden;
  background: rgba(107, 199, 255, .13);
  box-shadow: none;
}
.chat-launch-orb img,
.luna-chat-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chat-message > span.luna-chat-avatar {
  overflow: hidden;
  padding: 1px;
  background: rgba(107, 199, 255, .08);
  border-color: rgba(107, 199, 255, .18);
}

.luna-section { padding-top: 140px; padding-bottom: 160px; }
.luna-layout {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.32fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: stretch;
}
.luna-story {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(107, 199, 255, .1), transparent 48%),
    var(--panel);
}
.luna-name { display: flex; gap: 13px; align-items: baseline; margin-bottom: 34px; }
.luna-name span { font-family: Georgia, "Songti SC", serif; font-size: clamp(3.6rem, 6vw, 6.6rem); line-height: .9; letter-spacing: -.07em; }
.luna-name small { color: var(--cyan); font-size: 12px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.luna-story > p { max-width: 490px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.luna-facts { display: grid; gap: 0; margin: auto 0 28px; }
.luna-facts > div { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.luna-facts dt { color: var(--quiet); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.luna-facts dd { margin: 0; color: var(--text); font-size: 12px; font-weight: 680; }
.luna-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.luna-actions > span { width: 100%; margin-bottom: 4px; color: var(--quiet); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.luna-actions button,
.luna-menu button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 8px; transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.luna-actions button:hover,
.luna-menu button:hover { border-color: var(--line-strong); background: rgba(107,199,255,.08); color: var(--text); }
.luna-gallery {
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr;
  grid-template-rows: repeat(2, minmax(210px, 1fr));
  gap: 10px;
  min-height: 640px;
}
.luna-photo { position: relative; min-width: 0; min-height: 0; overflow: hidden; margin: 0; border-radius: 18px; background: var(--bg-soft); }
.luna-photo-main { grid-row: 1 / span 2; }
.luna-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(.98); transition: transform 700ms var(--ease), filter 300ms ease; }
.luna-photo:hover img { transform: scale(1.035); filter: saturate(1) contrast(1); }
.luna-photo:nth-child(2) img { object-position: 50% 45%; }
.luna-photo:nth-child(3) img { object-position: 50% 38%; }
.luna-photo:nth-child(5) img { object-position: 48% 54%; }

.luna-companion {
  position: fixed;
  left: 22px;
  bottom: 10px;
  z-index: 64;
  width: 112px;
  height: 104px;
  pointer-events: none;
  transition: none;
}
.luna-dog {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.16));
}
.luna-dog img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 80%; transition: transform 180ms ease, opacity 140ms ease; -webkit-user-drag: none; user-select: none; }
.luna-companion[data-direction="left"] .luna-dog img { transform: scaleX(-1); }
.luna-companion.is-dragging .luna-dog { cursor: grabbing; }
.luna-companion.is-dragging .luna-dog img { animation: luna-carry-sway 560ms ease-in-out infinite alternate; }
.luna-companion.is-dragging[data-direction="left"] .luna-dog img { animation-name: luna-carry-sway-left; }
.luna-companion.is-running .luna-dog img { animation: luna-run-bob 320ms ease-in-out infinite alternate; }
.luna-companion.is-running[data-direction="left"] .luna-dog img { animation-name: luna-run-bob-left; }
@keyframes luna-carry-sway { from { transform: translateY(-2px) rotate(-1.4deg); } to { transform: translateY(2px) rotate(1.4deg); } }
@keyframes luna-carry-sway-left { from { transform: scaleX(-1) translateY(-2px) rotate(-1.4deg); } to { transform: scaleX(-1) translateY(2px) rotate(1.4deg); } }
@keyframes luna-run-bob { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-5px) rotate(1.5deg); } }
@keyframes luna-run-bob-left { from { transform: scaleX(-1) translateY(0) rotate(-1deg); } to { transform: scaleX(-1) translateY(-5px) rotate(1.5deg); } }
.luna-speech {
  position: absolute;
  left: 50%;
  bottom: 94px;
  width: max-content;
  max-width: 180px;
  margin: 0;
  padding: 8px 10px;
  transform: translate(-50%, 7px);
  border: 1px solid var(--line-strong);
  border-radius: 11px 11px 11px 3px;
  background: var(--panel-solid);
  box-shadow: 0 12px 35px rgba(0,0,0,.14);
  color: var(--text);
  font-size: 9px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 170ms ease, transform 220ms var(--ease);
}
.luna-speech.is-visible { opacity: 1; transform: translate(-50%, 0); }
.luna-menu {
  position: absolute;
  left: 50%;
  bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 190px;
  padding: 9px;
  transform: translate(-50%, 9px) scale(.98);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel-solid);
  box-shadow: 0 16px 50px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 200ms var(--ease);
}
.luna-companion.menu-open .luna-menu { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.luna-companion.menu-open .luna-speech { opacity: 0; }

@media (max-width: 960px) {
  .luna-layout { grid-template-columns: 1fr; }
  .luna-story { min-height: 430px; }
  .luna-gallery { min-height: 560px; }
}

@media (max-width: 680px) {
  .luna-section { padding-top: 96px; padding-bottom: 110px; }
  .luna-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 310px repeat(2, 180px); min-height: 0; }
  .luna-photo-main { grid-column: 1 / span 2; grid-row: auto; }
  .luna-photo:nth-child(4) { grid-column: auto; }
  .luna-photo:nth-child(5) { display: none; }
  .luna-companion { width: 82px; height: 78px; bottom: 5px; }
  .luna-speech, .luna-menu { bottom: 72px; }
  .luna-menu { width: 176px; }
  .chat-launch { right: 12px; bottom: 12px; min-width: 154px; }
}

@media (prefers-reduced-motion: reduce) {
  .luna-companion { transition: none; }
  .luna-dog img { animation: none !important; }
}


/* Verified builds, Luna state machine, mobile chat */
.project-media-art {
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto;
  padding: clamp(22px, 4vw, 42px);
  background: linear-gradient(145deg, rgba(107,199,255,.11), transparent 52%), var(--bg-soft);
}
.project-media-art > img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: contain;
  filter: saturate(.86) contrast(.98);
  transition: transform 500ms var(--ease), filter 250ms ease;
}
.project-card:hover .project-media-art > img { transform: scale(1.025); filter: saturate(1) contrast(1); }
.hedwig-media > img { border-radius: 14px; object-fit: contain; object-position: center; box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.project-media-caption { display: flex; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--quiet); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; letter-spacing: .08em; }
.project-media-caption strong { color: var(--lime); font-weight: 700; }
.project-evidence { display: grid; gap: 0; margin: 26px 0 0; padding: 0; list-style: none; }
.project-evidence li { position: relative; padding: 13px 0 13px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.55; }
.project-evidence li::before { position: absolute; top: 14px; left: 0; color: var(--cyan); font-family: monospace; content: "↳"; }
.project-template-action { appearance: none; padding-top: 0; padding-right: 0; padding-left: 0; background: transparent; cursor: pointer; }
.mindact-note { display: grid; grid-template-columns: minmax(180px,.5fr) minmax(0,1fr); gap: clamp(24px,4vw,56px); align-items: center; margin-top: 22px; padding: clamp(24px,4vw,44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.mindact-note > img { width: 100%; max-height: 230px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 14px; filter: saturate(.65); }
.mindact-note > div > span { color: var(--cyan); font-family: monospace; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.mindact-note h3 { margin: 14px 0 10px; font-size: clamp(1.7rem,3vw,2.7rem); letter-spacing: -.045em; }
.mindact-note p { max-width: 700px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.mindact-note a { display: inline-block; margin-top: 18px; color: var(--lime); font-size: 10px; }

.chat-panel { grid-template-rows: auto auto auto minmax(170px,1fr) auto auto auto; }
.chat-disclaimer { display: flex; gap: 9px; align-items: start; margin: 8px 14px 0; padding: 9px 10px; border: 1px solid rgba(170,140,255,.14); border-radius: 10px; background: rgba(170,140,255,.05); }
.chat-disclaimer > span { color: var(--cyan); font-weight: 800; font-size: 9px; }
.chat-disclaimer p { margin: 0; color: var(--quiet); font-size: 7px; line-height: 1.45; }
.chat-bubble { min-width: 0; }
.chat-message .chat-bubble > p { margin: 0; }
.chat-source-note { display: block; margin: 5px 4px 0; color: var(--quiet); font-size: 7px; line-height: 1.4; }
.chat-message.user .chat-source-note { display: none; }
.chat-message.thinking p { color: var(--quiet); }
.chat-message.thinking p::after { display: inline-block; width: 1.35em; content: "…"; animation: luna-thinking 1s steps(3,end) infinite; }
@keyframes luna-thinking { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.chat-form input:disabled, .chat-form button:disabled { cursor: wait; opacity: .62; }

.luna-companion.is-running .luna-dog img,
.luna-companion.is-running[data-direction="left"] .luna-dog img { animation: none; }
.luna-menu { display: block; width: 224px; padding: 10px; }
.luna-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 1px 2px 8px 7px; color: var(--quiet); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.luna-menu-head > button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 8px; font-size: 16px; line-height: 1; }
.luna-menu-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.luna-menu-actions button { min-height: 32px; }
.luna-wake { position: absolute; left: 50%; bottom: 78px; display: none; width: max-content; padding: 7px 10px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel-solid); box-shadow: 0 12px 35px rgba(0,0,0,.14); color: var(--text); cursor: pointer; font-size: 8px; pointer-events: auto; }
.luna-companion.is-parked { width: 76px; height: 68px; opacity: .82; }
.luna-companion.is-parked .luna-wake { display: block; }
.luna-companion.is-parked .luna-menu { display: none; }
.luna-companion.is-parked .luna-dog { filter: drop-shadow(0 8px 9px rgba(0,0,0,.12)); }

@media (max-width: 900px) {
  .project-real { grid-template-rows: minmax(270px,auto) auto; }
  .project-media-art > img { min-height: 200px; }
  .mindact-note { grid-template-columns: 1fr; }
  .mindact-note > img { max-height: 300px; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 78px; }
  .site-header { top: 10px; right: 10px; left: 10px; width: auto; transform: none; padding: 9px 10px; border-radius: 16px; }
  .brand-copy small { display: none; }
  .header-actions { gap: 5px; }
  .utility-button { width: 38px; min-width: 38px; height: 38px; padding: 0; }
  main { overflow: clip; }
  .resume-hero, .projects-hero { padding-top: 118px; }
  .resume-profile .profile-photo-wrap { height: min(440px, 105vw); }
  .resume-intro h1 { overflow-wrap: anywhere; }
  .skills-panel { padding-left: 0; }
  .skill-group p { font-size: 12px; line-height: 1.7; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { border-radius: 20px; }
  .project-media-art { grid-template-rows: minmax(190px,auto) auto; padding: 18px; }
  .project-media-art > img { min-height: 180px; }
  .project-media-caption { font-size: 6px; }
  .project-compact .project-copy { padding: 26px 22px 30px; }
  .project-evidence li { font-size: 10px; }
  .mindact-note { padding: 20px; border-radius: 20px; }
  .mindact-note > img { max-height: 220px; }
  .luna-menu { width: min(232px, calc(100vw - 24px)); }
  .luna-menu-actions button { min-height: 38px; padding-inline: 12px; font-size: 9px; }
  .luna-companion { width: 76px; height: 72px; }
  .luna-companion.is-parked { width: 62px; height: 56px; }
  .luna-wake { bottom: 54px; }
  .luna-speech, .luna-menu { bottom: 69px; }
  .chat-launch { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); grid-template-columns: 1fr; min-width: 0; width: 50px; height: 50px; padding: 7px; border-radius: 16px; }
  .chat-launch-orb { grid-row: auto; width: 34px; height: 34px; margin: auto; }
  .chat-launch > span:nth-child(2), .chat-launch small { display: none; }
  .chat-panel { right: 0; bottom: 0; left: 0; width: 100%; max-height: min(86svh, 760px); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); transform-origin: bottom center; }
  .chat-head { padding: 14px 16px; }
  .chat-boundary { margin-top: 9px; }
  .chat-messages { padding: 12px 14px; }
  .chat-message { max-width: 94%; }
  .chat-message p { font-size: 11px; }
  .chat-form input { height: 44px; font-size: 16px; }
  .chat-form button { min-width: 44px; }
  body.chat-open { overflow: hidden; }
  body.chat-open .luna-companion { opacity: .18; pointer-events: none; }
}

@media (max-width: 390px) {
  .site-header .brand-mark { width: 31px; height: 31px; }
  .site-header .brand-copy strong { font-size: 9px; }
  .luna-gallery { grid-template-rows: 260px repeat(2,150px); }
  .project-copy h3 { font-size: 2rem; }
}

@media (hover: none) and (pointer: coarse) {
  .project-card { transform: none !important; }
  .luna-dog, .luna-menu button, .chat-launch, .chat-form button { -webkit-tap-highlight-color: transparent; }
}


.chat-launch:focus-visible,
.chat-head button:focus-visible,
.chat-suggestions button:focus-visible,
.chat-form button:focus-visible,
.luna-dog:focus-visible,
.luna-wake:focus-visible,
.luna-menu button:focus-visible,
.luna-actions button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}


/* Finished-site additions — MioHabits and Luna v3 */
.directory-more { display: block; padding-top: 12px; border-top: 1px solid var(--line); color: var(--cyan); font-family: monospace; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.exploration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.exploration-grid .mindact-note { grid-template-columns: 1fr; align-content: start; height: 100%; margin-top: 0; }
.exploration-grid .mindact-note > img { width: 100%; height: 230px; max-height: none; }
.exploration-card.is-filtered { display: none; }
.mio-art { position: relative; display: grid; place-content: center; min-height: 230px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(circle at 50% 45%, rgba(107,199,255,.17), transparent 34%), linear-gradient(145deg, #151b17, #232821); color: #eef0e8; text-align: center; }
.mio-art::before, .mio-art::after { position: absolute; width: 180px; height: 180px; border: 1px solid rgba(107,199,255,.11); border-radius: 50%; content: ""; }
.mio-art::before { top: -76px; right: -42px; }
.mio-art::after { bottom: -102px; left: -28px; }
.mio-art > span { font-family: Georgia, serif; font-size: clamp(4.5rem,8vw,7.2rem); font-style: italic; letter-spacing: -.09em; line-height: .85; }
.mio-art > div { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 26px; }
.mio-art i, .mio-art small { color: #aab7a0; font-family: monospace; font-size: 7px; font-style: normal; letter-spacing: .12em; }
.mio-art b { color: #c49a6c; font-weight: 500; }
.mio-art small { margin-top: 17px; color: #747d70; }
.mio-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.mio-stack span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--quiet); font-family: monospace; font-size: 7px; text-transform: uppercase; }
.luna-companion { width: 128px; height: 118px; }
.luna-dog img { object-fit: contain; object-position: center bottom; }
.luna-speech { bottom: 108px; }
.luna-menu { bottom: 110px; }
.luna-companion.is-parked { width: 82px; height: 72px; }
.luna-companion.is-parked .luna-wake { bottom: 68px; }
@media (max-width: 900px) {
  .exploration-grid { grid-template-columns: 1fr; }
  .exploration-grid .mindact-note { grid-template-columns: minmax(180px,.5fr) minmax(0,1fr); }
}
@media (max-width: 680px) {
  .exploration-grid .mindact-note { grid-template-columns: 1fr; }
  .exploration-grid .mindact-note > img, .mio-art { height: 210px; min-height: 210px; }
  .luna-companion { width: 94px; height: 88px; bottom: max(5px, env(safe-area-inset-bottom)); }
  .luna-speech, .luna-menu { bottom: 84px; }
  .luna-companion.is-parked { width: 70px; height: 62px; }
  .luna-companion.is-parked .luna-wake { bottom: 58px; }
}


/* Early AI fitness exploration */
.exploration-grid .fitness-note { grid-column: 1 / -1; grid-template-columns: minmax(260px,.62fr) minmax(0,1fr); }
.fitness-art { position: relative; display: grid; place-content: center; min-height: 270px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(circle at 50% 42%, rgba(92,197,174,.18), transparent 32%), linear-gradient(145deg,#111b1b,#1d2824); color: #f0f3ec; text-align: center; }
.fitness-art::before, .fitness-art::after { position: absolute; border: 1px solid rgba(92,197,174,.13); border-radius: 50%; content: ""; }
.fitness-art::before { inset: 26px 54px; }
.fitness-art::after { inset: 58px 86px; border-color: rgba(170,140,255,.18); }
.fitness-art > span { position: relative; z-index: 1; color: #7ec9b8 !important; font-family: monospace; font-size: 7px; letter-spacing: .16em; }
.fitness-art strong { position: relative; z-index: 1; margin-top: 8px; font-family: Georgia,serif; font-size: clamp(4.8rem,9vw,8rem); font-style: italic; font-weight: 400; letter-spacing: -.08em; line-height: .9; }
.fitness-art small { position: relative; z-index: 1; margin-top: 8px; color: #87938d; font-family: monospace; font-size: 7px; letter-spacing: .11em; }
.fitness-art > div { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 28px; }
.fitness-art i { color: #a8b2ac; font-family: monospace; font-size: 7px; font-style: normal; letter-spacing: .12em; }
.fitness-art b { color: #c49a6c; font-weight: 500; }
.fitness-note .fitness-attribution { margin-top: 12px; color: var(--quiet); font-size: 8px; }
@media (max-width: 900px) {
  .exploration-grid .fitness-note { grid-template-columns: 1fr; }
  .fitness-art { min-height: 240px; }
}
@media (max-width: 680px) {
  .fitness-art { min-height: 210px; }
  .fitness-art::before { inset: 18px 34px; }
  .fitness-art::after { inset: 44px 66px; }
}


/* Portfolio navigation, translation consent, and protected-contact polish */
.header-left { display: flex; gap: 12px; align-items: center; min-width: 0; justify-self: start; }
.header-left .brand { flex: 0 0 auto; }
.view-switcher { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.view-switcher a { padding: 7px 9px; border-radius: 8px; color: var(--quiet); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.view-switcher a:hover, .view-switcher a:focus-visible { outline: none; color: var(--text); background: rgba(255,255,255,.055); }
.view-switcher a.is-active { color: var(--text); background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.035); }
html[data-theme="light"] .view-switcher { background: rgba(255,255,255,.42); }
html[data-theme="light"] .view-switcher a.is-active { background: rgba(255,255,255,.86); box-shadow: 0 3px 12px rgba(26,33,31,.07); }

.translation-prompt[hidden] { display: none !important; }
.translation-prompt { position: fixed; top: 88px; left: 50%; z-index: 75; display: flex; gap: 24px; align-items: center; width: min(calc(100% - 32px), 760px); padding: 15px 16px 15px 18px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 17px; background: rgba(24,27,24,.95); box-shadow: 0 24px 80px rgba(0,0,0,.34); backdrop-filter: blur(22px) saturate(1.2); }
.translation-copy { display: flex; gap: 13px; align-items: center; min-width: 0; }
.translation-copy > div { min-width: 0; }
.translation-glyph { display: grid; flex: 0 0 auto; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(79,157,255,.22); border-radius: 12px; background: rgba(79,157,255,.07); color: var(--lime); font-family: Georgia, serif; font-size: 12px; }
.translation-copy strong { display: block; font-size: 11px; font-weight: 680; }
.translation-copy p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.translation-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.translation-actions button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 8px; font-weight: 720; }
.translation-actions button:first-child { border-color: rgba(79,157,255,.25); background: var(--lime); color: #fff; }
.translation-actions button:hover, .translation-actions button:focus-visible { outline: none; border-color: var(--line-strong); color: var(--text); }
.translation-actions button:first-child:hover, .translation-actions button:first-child:focus-visible { color: #182016; filter: brightness(1.04); }
.translation-actions button:disabled { cursor: wait; opacity: .62; }
html[data-theme="light"] .translation-prompt { background: rgba(248,246,239,.96); box-shadow: 0 24px 80px rgba(27,35,38,.13); }

.research-forward { max-width: 780px; margin: 22px 0 0 auto; padding: 18px 0 0 22px; border-top: 1px solid var(--line); border-left: 2px solid rgba(79,157,255,.34); color: var(--quiet); font-size: 10px; line-height: 1.75; }
.research-more { max-width: 560px; margin: 20px 0 0; color: var(--quiet); font-size: 10px; line-height: 1.75; }
.protected-email { margin: auto 0 12px !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: var(--text) !important; font-size: clamp(1.15rem,2.2vw,1.9rem) !important; font-weight: 580 !important; letter-spacing: -.04em; text-align: left; word-break: break-word; }
.protected-email small { flex: 0 0 auto; margin-left: 12px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--cyan); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.protected-email:hover small, .protected-email:focus-visible small { border-color: var(--line-strong); background: rgba(255,255,255,.05); }
.protected-email:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }

@media (max-width: 1280px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-header nav { gap: 2px; }
  .site-header nav a { padding-inline: 8px; font-size: 10px; }
  .availability { display: none; }
}
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .header-left { gap: 8px; }
  .brand-copy { display: none; }
}
@media (max-width: 680px) {
  .translation-prompt { top: auto; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; display: grid; gap: 13px; width: auto; padding: 14px; transform: none; border-radius: 18px; }
  .translation-actions { width: 100%; }
  .translation-actions button { flex: 1; }
  .translation-glyph { width: 38px; height: 38px; }
  .view-switcher { gap: 1px; padding: 2px; }
  .view-switcher a { padding: 6px 7px; font-size: 6px; letter-spacing: .035em; }
  .research-forward { margin-left: 0; }
  .protected-email { align-items: flex-start; flex-direction: column; gap: 10px; }
  .protected-email small { margin-left: 0; }
}
@media (max-width: 440px) {
  .site-header .brand-mark { display: grid; width: 31px; height: 31px; border-radius: 9px; }
  .site-header .personal-mark { transform: scale(.82); }
  .header-left { gap: 6px; }
  .utility-button { width: 34px; min-width: 34px; height: 34px; }
  .theme-button small { display: none; }
}


/* Primary résumé/projects navigation and directional page transitions */
.view-switcher { position: relative; gap: 4px; padding: 4px; border-color: var(--line-strong); border-radius: 14px; background: rgba(255,255,255,.045); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 28px rgba(0,0,0,.1); }
.view-switcher a { position: relative; display: flex; gap: 8px; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; font-size: 9px; letter-spacing: .075em; }
.view-switcher a small { color: currentColor; font: 750 7px/1 "SFMono-Regular",Consolas,monospace; opacity: .52; }
.view-switcher a span { white-space: nowrap; }
.view-switcher a.is-active { border-color: rgba(79,157,255,.32); background: var(--lime); box-shadow: 0 8px 24px rgba(58,116,205,.16), inset 0 1px 0 rgba(255,255,255,.35); color: #fff; }
.view-switcher a:not(.is-active)::after { position: absolute; right: 9px; bottom: 5px; left: 9px; height: 1px; background: var(--cyan); content: ""; opacity: 0; transform: scaleX(.35); transition: opacity 160ms ease, transform 180ms ease; }
.view-switcher a:not(.is-active):hover::after, .view-switcher a:not(.is-active):focus-visible::after { opacity: .55; transform: scaleX(1); }
html[data-theme="light"] .view-switcher { background: rgba(255,255,255,.64); box-shadow: 0 10px 28px rgba(38,45,39,.08); }
html[data-theme="light"] .view-switcher a.is-active { border-color: rgba(84,108,76,.18); background: #2f659d; color: #fff; box-shadow: 0 8px 24px rgba(74,91,67,.16); }
body.page-arrive-forward main, body.page-arrive-forward footer { animation: page-arrive-forward 560ms cubic-bezier(.2,.8,.2,1) both; }
body.page-arrive-back main, body.page-arrive-back footer { animation: page-arrive-back 560ms cubic-bezier(.2,.8,.2,1) both; }
body.page-leave-forward, body.page-leave-back { pointer-events: none; }
body.page-leave-forward main, body.page-leave-forward footer { animation: page-leave-forward 270ms cubic-bezier(.4,0,.8,.2) both; }
body.page-leave-back main, body.page-leave-back footer { animation: page-leave-back 270ms cubic-bezier(.4,0,.8,.2) both; }
body.page-leave-forward .site-header, body.page-leave-back .site-header { transition: opacity 180ms ease, transform 260ms cubic-bezier(.4,0,.8,.2); opacity: .55; }
body.page-leave-forward .site-header { transform: translateX(calc(-50% - 16px)); }
body.page-leave-back .site-header { transform: translateX(calc(-50% + 16px)); }
@keyframes page-arrive-forward { from { opacity: 0; transform: translate3d(48px,0,0) scale(.994); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes page-arrive-back { from { opacity: 0; transform: translate3d(-48px,0,0) scale(.994); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes page-leave-forward { to { opacity: 0; transform: translate3d(-42px,0,0) scale(.994); filter: blur(2px); } }
@keyframes page-leave-back { to { opacity: 0; transform: translate3d(42px,0,0) scale(.994); filter: blur(2px); } }
@media (max-width: 900px) { .view-switcher a { min-height: 36px; padding-inline: 12px; } }
@media (max-width: 680px) {
  .view-switcher { gap: 2px; padding: 3px; border-radius: 12px; }
  .view-switcher a { min-height: 34px; padding: 0 9px; font-size: 7px; }
  .view-switcher a small { display: none; }
  body.page-leave-forward .site-header, body.page-leave-back .site-header { transform: none; opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  body[class*="page-arrive-"] main, body[class*="page-arrive-"] footer,
  body[class*="page-leave-"] main, body[class*="page-leave-"] footer { animation: none !important; }
}


/* Product availability labels */
.project-release-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.project-release-status::before {
  width: 6px;
  height: 6px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  content: "";
}
.project-release-status-compact { margin-top: 18px; }


/* Trustworthy blue palette, readable type, protected actions */
:root {
  --bg: #09111f;
  --bg-soft: #111c2d;
  --panel: rgba(17, 28, 45, .9);
  --panel-solid: #142238;
  --line: rgba(231, 237, 248, .12);
  --line-strong: rgba(231, 237, 248, .23);
  --text: #f5f8fc;
  --muted: #bcc9da;
  --quiet: #91a3ba;
  --lime: #4f9dff;
  --cyan: #70c8ff;
  --orange: #7f9cff;
  --accent-primary: #4f9dff;
  --accent-blue: #70c8ff;
  --accent-violet: #7f9cff;
}
html[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-soft: #eaf0f8;
  --panel: rgba(255, 255, 255, .9);
  --panel-solid: #ffffff;
  --line: rgba(30, 43, 67, .13);
  --line-strong: rgba(30, 43, 67, .24);
  --text: #13223a;
  --muted: #425470;
  --quiet: #60738e;
  --lime: #1f6fc4;
  --cyan: #126fa9;
  --orange: #4267c7;
}
body {
  background:
    radial-gradient(circle at 13% -8%, rgba(107, 199, 255, .12), transparent 31rem),
    radial-gradient(circle at 91% 12%, rgba(170, 140, 255, .075), transparent 34rem),
    var(--bg);
}
html[data-theme="light"] body {
  background:
    radial-gradient(circle at 10% -8%, rgba(61, 151, 211, .11), transparent 31rem),
    radial-gradient(circle at 90% 12%, rgba(118, 89, 184, .065), transparent 34rem),
    var(--bg);
}
::selection { background: var(--accent-primary); color: #fff; }
.page-progress span { background: linear-gradient(90deg, var(--accent-blue), var(--accent-primary), var(--accent-violet)); }
.pointer-glow { background: rgba(107, 199, 255, .055); }
.brand-mark { color: var(--accent-primary); }
.availability { color: #8ccaff; background: rgba(79,157,255,.08); border-color: rgba(79,157,255,.24); }
.availability-dot { background: var(--accent-primary); box-shadow: 0 0 0 5px rgba(79,157,255,.12); }
html[data-theme="light"] .availability { color: #185d9f; background: rgba(46,115,197,.08); border-color: rgba(46,115,197,.2); }
.button-primary, .chat-form button { background: #397fd4; color: #fff; }
.button-primary:hover { background: #5698e5; }
html[data-theme="light"] .button-primary { background: #2e73c5; color: #fff; }
html[data-theme="light"] .button-primary:hover { background: #1f5fa8; }
.chat-launch:hover { border-color: rgba(107,199,255,.5); }
.chat-launch-orb { background: rgba(107,199,255,.14); }
.chat-boundary { border-color: rgba(107,199,255,.2); background: rgba(107,199,255,.065); }
.chat-disclaimer { border-color: rgba(170,140,255,.2); background: rgba(170,140,255,.06); }
.chat-message.user p { background: #356ea8; color: #fff; }
html[data-theme="light"] .chat-message.user p { background: #2f659d; color: #fff; }
html[data-theme="light"] .chat-message.assistant p { background: #edf1f7; color: #243047; }
html[data-theme="light"] .chat-message.refusal p { background: #eef6ff; color: #25476d; border-color: rgba(46,115,197,.22); }
html[data-theme="light"] .chat-form input { background: #fff; color: #172033; border-color: rgba(30,43,67,.2); }
html[data-theme="light"] .chat-form input::placeholder { color: #727e92; }
html[data-theme="light"] .chat-boundary p,
html[data-theme="light"] .chat-disclaimer p,
html[data-theme="light"] .chat-privacy,
html[data-theme="light"] .chat-source-note,
html[data-theme="light"] .chat-head small { color: #536078; }
.luna-story { background: linear-gradient(155deg, rgba(107,199,255,.09), transparent 48%), var(--panel); }
.project-media-art { background: linear-gradient(145deg, rgba(107,199,255,.1), transparent 52%), var(--bg-soft); }
.mio-art { background: radial-gradient(circle at 50% 45%, rgba(107,199,255,.17), transparent 34%), linear-gradient(145deg,#111827,#202a40); }
.mio-art i, .mio-art small { color: #a7b9ce; }
.mio-art b { color: #8bc6ff; }
.fitness-art { background: radial-gradient(circle at 50% 42%, rgba(107,199,255,.18), transparent 32%), linear-gradient(145deg,#101725,#1b2940); }
.fitness-art > span { color: #78ceff !important; }

/* Readable microcopy */
.brand-copy small { font-size: 10px; }
.project-index,
.project-state {
  font-size: 10px;
  line-height: 1.3;
}
.project-state {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  white-space: nowrap;
}
.project-state i {
  flex: 0 0 auto;
  margin-right: 8px;
}
.metric-grid span { font-size: 9px; }
.experience-rail time, .experience-rail > span,
.experience-heading p, .experience-tags li,
.education-panel article time, .education-panel article span,
.skill-group > span, .publication-card > span,
.publication-card small, .teaser-card > span,
.contact-card > span, .project-directory > span,
.case-outline > span, .research-project-list article > span,
.project-media-caption, .project-media-caption strong,
.mindact-note > div > span, .directory-more,
.mio-stack span { font-size: 9px; }
.experience-summary, .skill-group p { font-size: 14px; }
.education-panel article p, .publication-card p,
.teaser-card p, .contact-card > p,
.project-evidence li, .mindact-note p,
.research-project-list p, .case-outline li { font-size: 12px; }
.project-directory a, .project-filter-bar p { font-size: 11px; }
.project-filter-bar button { font-size: 10px; }
.chat-head strong { font-size: 13px; }
.chat-head small { font-size: 9px; }
.chat-boundary p { font-size: 10px; }
.chat-disclaimer p { font-size: 9px; }
.chat-message p { color: #e2e7ef; font-size: 12px; line-height: 1.62; }
.chat-suggestions button { font-size: 9px; }
.chat-form input { font-size: 13px; }
.chat-privacy, .chat-source-note { font-size: 9px; }
.chat-launch > span:nth-child(2) { font-size: 11px; }
.chat-launch small { font-size: 9px; }

/* Sliding primary navigation and simple directional page motion */
.view-switcher { isolation: isolate; overflow: hidden; }
.view-switcher::before {
  position: absolute;
  inset: 4px auto 4px 4px;
  z-index: 0;
  width: calc(50% - 6px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: linear-gradient(135deg, #2f77bf, #4b87d6);
  box-shadow: 0 8px 24px rgba(28,82,135,.24);
  content: "";
  transform: translateX(0);
  transition: transform 300ms cubic-bezier(.22,.75,.22,1), background 220ms ease;
}
.view-switcher[data-active-view="projects"]::before { transform: translateX(calc(100% + 4px)); background: linear-gradient(135deg, #4b75d1, #337fc8); }
.view-switcher a, .view-switcher a.is-active { z-index: 1; flex: 1; justify-content: center; border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); font-size: 10px; }
.view-switcher a.is-active { color: #fff; }
html[data-theme="light"] .view-switcher a.is-active { border-color: transparent; background: transparent; box-shadow: none; color: #fff; }
body.page-arrive-forward main, body.page-arrive-forward footer { animation: page-arrive-forward-simple 430ms cubic-bezier(.22,.75,.22,1) both; }
body.page-arrive-back main, body.page-arrive-back footer { animation: page-arrive-back-simple 430ms cubic-bezier(.22,.75,.22,1) both; }
body.page-leave-forward main, body.page-leave-forward footer { animation: page-leave-forward-simple 300ms cubic-bezier(.4,0,.6,1) both; }
body.page-leave-back main, body.page-leave-back footer { animation: page-leave-back-simple 300ms cubic-bezier(.4,0,.6,1) both; }
body.page-leave-forward .site-header, body.page-leave-back .site-header { transform: translateX(-50%); opacity: .82; }
@keyframes page-arrive-forward-simple { from { opacity: .2; transform: translate3d(42px,0,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes page-arrive-back-simple { from { opacity: .2; transform: translate3d(-42px,0,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes page-leave-forward-simple { to { opacity: .15; transform: translate3d(-40px,0,0); } }
@keyframes page-leave-back-simple { to { opacity: .15; transform: translate3d(40px,0,0); } }

/* Human verification and protected scheduling */
.chat-panel { grid-template-rows: auto auto auto minmax(210px,1fr) auto auto auto auto; }
.chat-head { grid-row: 1; }
.chat-disclaimer { grid-row: 2; }
.human-gate { grid-row: 3; }
.chat-messages { grid-row: 4; }
.chat-suggestions { grid-row: 5; }
.chat-form { grid-row: 6; }
.chat-boundary-note { grid-row: 7; margin: 0; padding: 0 15px 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.chat-privacy { grid-row: 8; }
.human-gate { display: grid; gap: 10px; margin: 10px 14px 0; padding: 12px; border: 1px solid rgba(107,199,255,.2); border-radius: 13px; background: rgba(107,199,255,.055); }
.human-gate[hidden] { display: none; }
.human-gate-copy strong { font-size: 11px; }
.human-gate-copy p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.human-gate > small { min-height: 1.2em; color: var(--quiet); font-size: 9px; }
.turnstile-slot { min-height: 0; overflow: hidden; }
.turnstile-slot:not(:empty) { min-height: 65px; }
.chat-contact-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.chat-contact-actions button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--cyan); cursor: pointer; font-size: 10px; }
.meeting-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(8,12,22,.62); backdrop-filter: blur(14px); }
.meeting-modal[hidden] { display: none; }
.meeting-card { position: relative; width: min(440px,100%); padding: 34px; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--panel-solid); box-shadow: 0 35px 100px rgba(0,0,0,.42); }
.meeting-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }
.meeting-kicker { color: var(--cyan); font-family: monospace; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.meeting-card h2 { margin: 22px 0 12px; font-size: clamp(2.1rem,6vw,3.6rem); font-weight: 590; letter-spacing: -.055em; line-height: .98; }
.meeting-card > p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.meeting-status { min-height: 1.4em; margin: 13px 0 !important; color: var(--quiet) !important; font-size: 10px !important; }
.meeting-continue { width: 100%; justify-content: space-between; }
.meeting-continue[hidden] { display: none; }
html[data-theme="light"] .meeting-modal { background: rgba(29,42,65,.34); }
html[data-theme="light"] .meeting-card { box-shadow: 0 35px 100px rgba(34,49,77,.2); }

@media (max-width: 680px) {
  .view-switcher a, .view-switcher a.is-active { font-size: 9px; }
  body.page-leave-forward .site-header, body.page-leave-back .site-header { transform: none; }
  .chat-message p { font-size: 12px; }
  .chat-boundary p, .human-gate-copy p { font-size: 10px; }
  .chat-disclaimer p, .chat-privacy { font-size: 9px; }
  .meeting-card { padding: 28px 22px 24px; }
}

/* Compact résumé prompts, one coherent page transition, and stable mascot handoff */
.chat-suggestions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
  padding: 2px 14px 11px;
  overflow: visible;
}
.chat-suggestions button {
  box-sizing: border-box;
  width: auto !important;
  min-width: 0;
  height: auto !important;
  min-height: 38px;
  max-height: 58px;
  padding: 8px 10px;
  aspect-ratio: auto !important;
  align-self: stretch;
  border-radius: 11px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.page-transition-layer {
  position: fixed;
  inset: 0;
  z-index: 180;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(79,157,255,.1), transparent 38%),
    var(--bg);
  will-change: transform;
}
body.page-leave-forward,
body.page-leave-back { pointer-events: none; }
body.page-leave-forward main,
body.page-leave-forward footer,
body.page-leave-back main,
body.page-leave-back footer,
body.page-arrive-forward main,
body.page-arrive-forward footer,
body.page-arrive-back main,
body.page-arrive-back footer {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(.22,.8,.25,1);
}
body.page-leave-forward main,
body.page-leave-forward footer { animation-name: page-unified-leave-forward; }
body.page-leave-back main,
body.page-leave-back footer { animation-name: page-unified-leave-back; }
body.page-arrive-forward main,
body.page-arrive-forward footer { animation-name: page-unified-arrive-forward; }
body.page-arrive-back main,
body.page-arrive-back footer { animation-name: page-unified-arrive-back; }
body.page-leave-forward .site-header,
body.page-leave-back .site-header {
  transform: translateX(-50%);
  opacity: 1;
}
body.page-leave-forward .page-transition-layer {
  visibility: visible;
  animation: page-cover-forward 280ms cubic-bezier(.22,.8,.25,1) both;
}
body.page-leave-back .page-transition-layer {
  visibility: visible;
  animation: page-cover-back 280ms cubic-bezier(.22,.8,.25,1) both;
}
body.page-arrive-forward .page-transition-layer {
  visibility: visible;
  animation: page-reveal-forward 280ms cubic-bezier(.22,.8,.25,1) both;
}
body.page-arrive-back .page-transition-layer {
  visibility: visible;
  animation: page-reveal-back 280ms cubic-bezier(.22,.8,.25,1) both;
}
@keyframes page-unified-leave-forward { to { opacity: .45; transform: translate3d(-24px,0,0); } }
@keyframes page-unified-leave-back { to { opacity: .45; transform: translate3d(24px,0,0); } }
@keyframes page-unified-arrive-forward { from { opacity: .45; transform: translate3d(24px,0,0); } to { opacity: 1; transform: none; } }
@keyframes page-unified-arrive-back { from { opacity: .45; transform: translate3d(-24px,0,0); } to { opacity: 1; transform: none; } }
@keyframes page-cover-forward { from { transform: translate3d(100%,0,0); } to { transform: translate3d(0,0,0); } }
@keyframes page-cover-back { from { transform: translate3d(-100%,0,0); } to { transform: translate3d(0,0,0); } }
@keyframes page-reveal-forward { from { transform: translate3d(0,0,0); } to { transform: translate3d(-100%,0,0); } }
@keyframes page-reveal-back { from { transform: translate3d(0,0,0); } to { transform: translate3d(100%,0,0); } }

@media (max-width: 520px) {
  .chat-suggestions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .chat-suggestions button { min-height: 36px; max-height: none; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .page-transition-layer { display: none; }
}


/* Project motion final states, filtered layout, and brand wallpapers */
.identity-core::before,
.identity-core::after,
.identity-orbit {
  animation-play-state: paused;
}

.identity-art.is-motion-playing .identity-core::before,
.identity-art.is-motion-playing .identity-core::after,
.identity-art.is-motion-playing .identity-orbit {
  animation-play-state: running;
}

.identity-art.is-motion-reset .identity-core::before,
.identity-art.is-motion-reset .identity-core::after,
.identity-art.is-motion-reset .identity-orbit {
  animation: none !important;
}

.harmony-card-rings::after {
  animation-play-state: paused;
}

.harmony-art.is-motion-running .harmony-card-rings::after {
  animation-play-state: running;
}

.harmony-card-stage[data-phase="complete"] .harmony-card-brand {
  top: 50%;
  left: 50%;
  width: 138px;
  height: 184px;
  transform: translate(-50%, -50%);
}

.harmony-card-stage[data-phase="complete"] .harmony-card-draft {
  opacity: 0;
  transform: translateY(10px) scale(.985);
  pointer-events: none;
}

.project-gallery.is-filtered-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-gallery.is-filtered-view > .project-grid,
.project-gallery.is-filtered-view > .exploration-grid {
  display: contents;
}

.project-gallery.is-filtered-view .project-card,
.project-gallery.is-filtered-view .mindact-note,
.project-gallery.is-filtered-view .research-project-band {
  min-width: 0;
  margin: 0;
}

.project-gallery.is-filtered-view .project-featured,
.project-gallery.is-filtered-view .research-project-band,
.project-gallery.is-filtered-view .fitness-note {
  grid-column: 1 / -1;
}

.brand-wallpaper-grid {
  position: absolute !important;
  z-index: 0;
  inset: 0;
  margin: 0 !important;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(130, 184, 228, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 184, 228, .065) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 82%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 82%);
}

.hedwig-wallpaper {
  position: relative;
  display: block;
  isolation: isolate;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 69% 38%, rgba(79, 157, 255, .21), transparent 28%),
    radial-gradient(circle at 29% 57%, rgba(112, 100, 228, .15), transparent 32%),
    linear-gradient(145deg, #0d1725, #111d2b 54%, #0b121d);
}

.hedwig-wallpaper::before {
  position: absolute;
  z-index: 0;
  top: 12%;
  right: 9%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(101, 231, 255, .09);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(101, 231, 255, .018),
    0 0 0 68px rgba(101, 231, 255, .012);
  content: "";
}

.hedwig-relay {
  position: absolute !important;
  z-index: 1;
  top: 22%;
  right: 11%;
  width: 44%;
  height: 48%;
  margin: 0 !important;
}

.hedwig-relay::before,
.hedwig-relay::after {
  position: absolute;
  content: "";
}

.hedwig-relay::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(101, 231, 255, .52), transparent);
}

.hedwig-relay::after {
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(121, 144, 236, .42), transparent);
}

.hedwig-relay i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(101, 231, 255, .55);
  border-radius: 50%;
  background: #111b29;
  box-shadow: 0 0 16px rgba(101, 231, 255, .28);
}

.hedwig-relay i:nth-child(1) { top: calc(50% - 4px); left: 4%; }
.hedwig-relay i:nth-child(2) { top: 7%; left: calc(50% - 4px); }
.hedwig-relay i:nth-child(3) { right: 3%; bottom: calc(50% - 4px); }
.hedwig-relay i:nth-child(4) { bottom: 7%; left: calc(50% - 4px); border-color: rgba(183, 227, 111, .62); }

.hedwig-lockup {
  position: absolute !important;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex !important;
  gap: 22px !important;
  align-items: center;
  width: max-content;
  margin: 0 !important;
  transform: translate(-50%, -52%);
}

.hedwig-logo-original {
  display: block;
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, .3))
    drop-shadow(0 0 18px rgba(52, 222, 166, .12));
}

.hedwig-mark {
  position: relative;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(144, 199, 238, .28);
  border-radius: 31px;
  background:
    linear-gradient(145deg, rgba(107, 199, 255, .15), rgba(112, 100, 228, .08)),
    rgba(8, 15, 25, .86);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, .32),
    inset 0 0 30px rgba(107, 199, 255, .05);
}

.hedwig-mark::before,
.hedwig-mark::after {
  position: absolute;
  top: 25px;
  width: 22px;
  height: 22px;
  border: 2px solid #a9d8f2;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(101, 231, 255, .06);
  content: "";
}

.hedwig-mark::before { left: 23px; }
.hedwig-mark::after { right: 23px; }

.hedwig-mark > i {
  position: absolute;
  top: 47px;
  left: 46px;
  width: 12px;
  height: 15px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: var(--lime);
}

.hedwig-mark > b {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  height: 27px;
  border-right: 2px solid rgba(137, 194, 230, .8);
  border-bottom: 2px solid rgba(137, 194, 230, .8);
  border-left: 2px solid rgba(137, 194, 230, .8);
  border-radius: 0 0 30px 30px;
}

.hedwig-mark > span {
  position: absolute;
  top: 63px;
  left: 32px;
  width: 40px;
  height: 1px;
  background: rgba(137, 194, 230, .68);
}

.hedwig-mark > span::before,
.hedwig-mark > span::after {
  position: absolute;
  top: -5px;
  width: 15px;
  height: 1px;
  background: rgba(137, 194, 230, .68);
  content: "";
}

.hedwig-mark > span::before { left: 6px; transform: rotate(32deg); }
.hedwig-mark > span::after { right: 6px; transform: rotate(-32deg); }

.hedwig-wordmark {
  display: grid !important;
  grid-template-columns: auto auto;
  gap: 0 7px !important;
  align-items: baseline;
  margin: 0 !important;
}

.hedwig-wordmark strong,
.hedwig-wordmark span {
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 570;
  letter-spacing: -.055em;
  line-height: .9;
}

.hedwig-wordmark strong { color: #edf5fb; }
.hedwig-wordmark span { color: #3bdeaa; }

.hedwig-wordmark small {
  grid-column: 1 / -1;
  margin-top: 13px;
  color: #7590a5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: .15em;
}

.hedwig-wallpaper .project-media-caption {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 4vw, 42px);
  bottom: clamp(24px, 4vw, 42px);
  left: clamp(24px, 4vw, 42px);
}

.mio-wallpaper,
.fitness-wallpaper {
  position: relative;
  display: block;
  isolation: isolate;
  min-height: 260px;
  overflow: hidden;
  color: #edf5fb;
  text-align: left;
}

.mio-wallpaper {
  background:
    radial-gradient(circle at 28% 36%, rgba(112, 100, 228, .25), transparent 30%),
    radial-gradient(circle at 76% 62%, rgba(101, 231, 255, .13), transparent 31%),
    linear-gradient(145deg, #11172a, #15233a 58%, #0f192a);
}

.fitness-wallpaper {
  background:
    radial-gradient(circle at 70% 33%, rgba(183, 227, 111, .16), transparent 29%),
    radial-gradient(circle at 28% 68%, rgba(101, 231, 255, .18), transparent 31%),
    linear-gradient(145deg, #0d1825, #12273a 55%, #0d1824);
}

.mio-wallpaper::before,
.mio-wallpaper::after,
.fitness-wallpaper::before,
.fitness-wallpaper::after {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  content: "";
}

.mio-wallpaper::before {
  top: -78px;
  right: -44px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(124, 114, 229, .2);
}

.mio-wallpaper::after {
  bottom: -122px;
  left: -56px;
  width: 240px;
  height: 240px;
  border: 1px dashed rgba(101, 231, 255, .16);
}

.fitness-wallpaper::before {
  top: -95px;
  left: 20%;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(101, 231, 255, .14);
}

.fitness-wallpaper::after {
  right: -58px;
  bottom: -76px;
  width: 190px;
  height: 190px;
  border: 1px dashed rgba(183, 227, 111, .18);
}

.mio-art.mio-wallpaper > .brand-wallpaper-grid,
.fitness-art.fitness-wallpaper > .brand-wallpaper-grid {
  display: block;
  margin: 0 !important;
}

.mio-art.mio-wallpaper > .mio-brand-lockup,
.fitness-art.fitness-wallpaper > .fitness-brand-lockup {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  gap: 20px;
  align-items: center;
  width: max-content;
  margin: 0;
  transform: translate(-50%, -58%);
}

.mio-mark,
.fitness-mark {
  position: relative;
  flex: 0 0 auto;
  width: 94px;
  height: 94px;
}

.mio-mark::before,
.mio-mark::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.mio-mark::before {
  inset: 3px;
  border: 3px solid rgba(142, 128, 237, .23);
  border-top-color: #9387ed;
  border-right-color: #74d6ff;
  transform: rotate(-24deg);
}

.mio-mark::after {
  inset: 21px;
  border: 2px solid rgba(116, 214, 255, .4);
  border-bottom-color: #b7e36f;
}

.mio-mark > span {
  position: absolute;
  z-index: 2;
  inset: 36px;
  border: 1px solid rgba(238, 245, 251, .4);
  border-radius: 50%;
  background: #dce8f2;
  box-shadow: 0 0 20px rgba(116, 214, 255, .42);
}

.mio-mark > i,
.mio-mark > b {
  position: absolute;
  z-index: 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.mio-mark > i { top: 7px; right: 19px; background: #7c6fe3; color: #7c6fe3; }
.mio-mark > b { right: 9px; bottom: 22px; background: #76d6fa; color: #76d6fa; }

.mio-wordmark,
.fitness-wordmark {
  display: grid;
  align-items: end;
}

.mio-wordmark strong,
.fitness-wordmark strong {
  color: #edf5fb;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 580;
  letter-spacing: -.07em;
  line-height: .84;
}

.mio-wordmark span,
.fitness-wordmark span {
  margin-top: 9px;
  color: #7dd5fa;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .28em;
}

.fitness-wordmark span { color: #b7e36f; }

.fitness-mark::before,
.fitness-mark::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.fitness-mark::before {
  inset: 4px;
  border: 4px solid #78d4f4;
  border-right-color: transparent;
  transform: rotate(-18deg);
}

.fitness-mark::after {
  inset: 23px;
  border: 3px solid rgba(183, 227, 111, .82);
  border-left-color: transparent;
  transform: rotate(22deg);
}

.fitness-mark > span {
  position: absolute;
  z-index: 3;
  top: 46px;
  left: 5px;
  width: 84px;
  height: 2px;
  background:
    linear-gradient(90deg,
      transparent 0 10%,
      #e7f2f8 10% 28%,
      transparent 28% 34%,
      #e7f2f8 34% 42%,
      transparent 42% 48%,
      #e7f2f8 48% 70%,
      transparent 70%);
  clip-path: polygon(0 45%, 25% 45%, 34% 0, 43% 100%, 52% 24%, 60% 45%, 100% 45%, 100% 56%, 58% 56%, 53% 40%, 43% 100%, 34% 28%, 29% 56%, 0 56%);
}

.fitness-mark > i,
.fitness-mark > b {
  position: absolute;
  z-index: 4;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.fitness-mark > i { top: 16px; right: 8px; background: var(--lime); box-shadow: 0 0 13px rgba(183, 227, 111, .48); }
.fitness-mark > b { bottom: 10px; left: 19px; background: #65d5f5; box-shadow: 0 0 13px rgba(101, 213, 245, .44); }

.mio-art.mio-wallpaper > .mio-path,
.fitness-art.fitness-wallpaper > .fitness-path {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 27px;
  left: 28px;
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.mio-path i,
.fitness-path i {
  color: #8ea4ba;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-style: normal;
  letter-spacing: .12em;
}

.mio-path b,
.fitness-path b {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(117, 213, 250, .25), rgba(117, 213, 250, .9));
}

.mio-path b::after,
.fitness-path b::after {
  display: block;
  width: 4px;
  height: 4px;
  margin: -1.5px 0 0 auto;
  border-radius: 50%;
  background: #7dd5fa;
  content: "";
}

.fitness-path b {
  background: linear-gradient(90deg, rgba(183, 227, 111, .2), rgba(183, 227, 111, .85));
}

.fitness-path b::after { background: var(--lime); }

.mio-art.mio-wallpaper > small,
.fitness-art.fitness-wallpaper > small {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 25px;
  margin: 0;
  color: #687f96;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
  letter-spacing: .15em;
}

@media (max-width: 900px) {
  .project-gallery.is-filtered-view {
    grid-template-columns: 1fr;
  }

  .project-gallery.is-filtered-view .project-featured,
  .project-gallery.is-filtered-view .research-project-band,
  .project-gallery.is-filtered-view .fitness-note {
    grid-column: 1;
  }
}

@media (max-width: 680px) {
  .hedwig-lockup {
    gap: 14px !important;
  }

  .hedwig-mark {
    width: 82px;
    height: 82px;
    border-radius: 25px;
    transform: scale(.78);
    margin: -9px;
  }

  .hedwig-logo-original {
    width: 88px;
    height: 88px;
  }

  .mio-art.mio-wallpaper > .mio-brand-lockup,
  .fitness-art.fitness-wallpaper > .fitness-brand-lockup {
    gap: 13px;
    transform: translate(-50%, -60%) scale(.86);
  }
}

/* A/B experiment "hero-cta-order" — arm "resume-first": the PDF download becomes the
   primary hero action. Appended last so it wins the layered palette cascade. */
html[data-ab="resume-first"] .hero-actions { flex-wrap: wrap; }
html[data-ab="resume-first"] .hero-actions a[href="/resume.pdf"] { order: -1; background: #397fd4; color: #fff; border-color: transparent; }
html[data-ab="resume-first"] .hero-actions a[href="/resume.pdf"]:hover,
html[data-ab="resume-first"] .hero-actions a[href="/resume.pdf"]:focus-visible { background: #5698e5; }
html[data-ab="resume-first"] .hero-actions .button-primary { background: transparent; color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
html[data-theme="light"][data-ab="resume-first"] .hero-actions a[href="/resume.pdf"] { background: #2e73c5; color: #fff; }
html[data-theme="light"][data-ab="resume-first"] .hero-actions a[href="/resume.pdf"]:hover,
html[data-theme="light"][data-ab="resume-first"] .hero-actions a[href="/resume.pdf"]:focus-visible { background: #1f5fa8; }

/* Contact card: email and a full-size copy pill in one row, no dead vertical gap. */
.contact-card { min-height: 0; }
.contact-card > span { margin-bottom: 24px; }
.protected-email { margin: 0 0 22px !important; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.protected-email small {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  min-height: 42px; margin-left: 0; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 10px; font-weight: 750; letter-spacing: .08em;
}
.contact-card > p { margin: 0 0 26px; }
.contact-card > button:last-child { margin-top: auto; }
@media (max-width: 680px) {
  .protected-email { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Cross-document view transitions: the header persists as a shared element while the
   page content crossfades — no blank frame between Résumé and Projects. Browsers
   without @view-transition support keep the scripted directional animation. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 300ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-image-pair(*),
  ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Directional cross-document transitions: forward (Résumé -> Projects) slides left,
   back mirrors right — the same spatial language as the switcher pill and the scripted
   fallback. The header stays put as a shared element; only the page content moves. */
@media (prefers-reduced-motion: no-preference) {
  html[data-nav-direction]::view-transition-old(root) { animation-duration: 260ms; animation-timing-function: cubic-bezier(.4, 0, .8, .2); animation-fill-mode: both; }
  html[data-nav-direction]::view-transition-new(root) { animation-duration: 340ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); animation-fill-mode: both; }
  html[data-nav-direction="forward"]::view-transition-old(root) { animation-name: vt-leave-forward; }
  html[data-nav-direction="forward"]::view-transition-new(root) { animation-name: vt-arrive-forward; }
  html[data-nav-direction="back"]::view-transition-old(root) { animation-name: vt-leave-back; }
  html[data-nav-direction="back"]::view-transition-new(root) { animation-name: vt-arrive-back; }
}
@keyframes vt-leave-forward { to { opacity: 0; transform: translateX(-42px); } }
@keyframes vt-arrive-forward { from { opacity: 0; transform: translateX(48px); } }
@keyframes vt-leave-back { to { opacity: 0; transform: translateX(42px); } }
@keyframes vt-arrive-back { from { opacity: 0; transform: translateX(-48px); } }

/* JD composer inside the chat panel */
.chat-jd { display: grid; gap: 9px; margin: 0 16px 12px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(255,255,255,.03); }
.chat-jd[hidden] { display: none; }
.chat-jd label { color: var(--muted); font-size: 10px; font-weight: 650; }
.chat-jd textarea { resize: vertical; min-height: 92px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 11px; line-height: 1.55; }
.chat-jd textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.chat-jd-actions { display: flex; gap: 8px; justify-content: flex-end; }
.chat-jd-actions button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; }
.chat-jd-actions .chat-jd-send { border-color: transparent; background: #397fd4; color: #fff; }
.chat-jd-actions .chat-jd-send:hover, .chat-jd-actions .chat-jd-send:focus-visible { background: #5698e5; outline: none; }
html[data-theme="light"] .chat-jd { background: rgba(255,255,255,.5); }
html[data-theme="light"] .chat-jd-actions .chat-jd-send { background: #2e73c5; }
html[data-theme="light"] .chat-jd-actions .chat-jd-send:hover { background: #1f5fa8; }

/* Legibility pass: keep the editorial hierarchy while giving recurring metadata a
   reliable reading size on high-density screens and in the light theme. */
.eyebrow {
  font-size: clamp(12px, .8vw, 13px);
  line-height: 1.45;
  letter-spacing: .12em;
}
.hero-tags { font-size: 12px; line-height: 1.55; }
.profile-status,
.profile-kicker { font-size: 10px; line-height: 1.4; }
.profile-links a { font-size: 13px; }
.metric-grid span { font-size: 10px; line-height: 1.45; }
.proof-strip { min-height: 126px; }
.proof-strip p { font-size: 12px; line-height: 1.45; }
.proof-items span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.45;
}
.proof-items span::before { color: var(--lime); font-size: 12px; }
.experience-rail time,
.experience-heading p,
.experience-heading > span,
.education-panel article time { font-size: 12px; line-height: 1.45; }
.experience-rail > span,
.experience-tags li,
.achievement-row small,
.education-panel article span,
.skill-group > span,
.publication-card > span,
.publication-card small,
.teaser-card > span,
.teaser-card h3 small,
.contact-card > span,
.project-index,
.project-state,
.project-directory > span,
.case-outline > span,
.research-project-list article > span,
.project-media-caption,
.mindact-note > div > span,
.directory-more,
.mio-stack span { font-size: 11px; line-height: 1.45; }
.publication-card { min-height: 380px; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.footer-version {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.footer-links a,
.footer-links button { font-size: 11px; }

@media (max-width: 900px) {
  .publication-card { min-height: 350px; }
}

@media (max-width: 560px) {
  .footer-meta { justify-content: flex-start; }
}
