:root {
  color-scheme: light;
  --bg: #f5f2ea;
  --ink: #171717;
  --muted: #625f59;
  --line: rgba(23, 23, 23, 0.12);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: #ffffff;
  --accent: #7e2f22;
  --accent-2: #0f6b6e;
  --gold: #c9973f;
  --shadow: 0 30px 90px rgba(29, 25, 18, 0.18);
  --block-hover-shadow: 0 30px 95px rgba(29, 25, 18, 0.22), 0 0 0 1px rgba(15, 107, 110, 0.12);
  --radius: 24px;
  --max: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11110f;
  --ink: #f4f0e8;
  --muted: #b8b1a6;
  --line: rgba(244, 240, 232, 0.14);
  --panel: rgba(31, 30, 27, 0.76);
  --panel-strong: #1f1e1b;
  --accent: #f08b6f;
  --accent-2: #7fd7d9;
  --gold: #d9b25f;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  --block-hover-shadow: 0 34px 110px rgba(0, 0, 0, 0.5), 0 0 46px rgba(127, 215, 217, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(126, 47, 34, 0.1), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(15, 107, 110, 0.12), transparent 30rem),
    radial-gradient(circle at 48% 44%, rgba(201, 151, 63, 0.1), transparent 24rem),
    linear-gradient(180deg, #fbf8f0 0%, var(--bg) 48%, #eeece4 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 220ms ease, color 220ms ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background-image:
    url("data:image/svg+xml,%3Csvg width='980' height='720' viewBox='0 0 980 720' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cg stroke='%230f6b6e' stroke-opacity='.25' stroke-width='1.25'%3E%3Cpath d='M490 360 C430 300 350 278 248 292 C162 304 106 266 56 196'/%3E%3Cpath d='M490 360 C554 294 646 238 764 216 C858 198 918 150 960 84'/%3E%3Cpath d='M490 360 C560 394 642 452 704 556 C738 612 804 648 914 674'/%3E%3Cpath d='M490 360 C420 420 356 482 306 566 C272 624 224 660 146 686'/%3E%3Cpath d='M490 360 C468 278 492 196 564 116 C608 68 644 38 706 18'/%3E%3Cpath d='M490 360 C408 364 326 342 242 394 C170 438 120 456 42 444'/%3E%3Cpath d='M490 360 C552 328 628 336 706 384 C774 426 844 438 930 402'/%3E%3C/g%3E%3Cg stroke='%23c9973f' stroke-opacity='.26' stroke-width='1'%3E%3Cpath d='M56 196 C92 162 132 148 176 154'/%3E%3Cpath d='M764 216 C804 246 850 260 902 248'/%3E%3Cpath d='M306 566 C330 604 372 628 432 638'/%3E%3Cpath d='M704 556 C664 588 628 622 604 678'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%230f6b6e' fill-opacity='.32'%3E%3Ccircle cx='490' cy='360' r='5'/%3E%3Ccircle cx='248' cy='292' r='3.5'/%3E%3Ccircle cx='764' cy='216' r='4'/%3E%3Ccircle cx='704' cy='556' r='3.5'/%3E%3Ccircle cx='306' cy='566' r='4'/%3E%3Ccircle cx='564' cy='116' r='3.5'/%3E%3Ccircle cx='242' cy='394' r='3.5'/%3E%3Ccircle cx='706' cy='384' r='4'/%3E%3C/g%3E%3Cg fill='%23c9973f' fill-opacity='.38'%3E%3Ccircle cx='176' cy='154' r='3'/%3E%3Ccircle cx='902' cy='248' r='3'/%3E%3Ccircle cx='432' cy='638' r='3'/%3E%3Ccircle cx='604' cy='678' r='3'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 48%, rgba(201, 151, 63, 0.2), transparent 8rem),
    radial-gradient(circle at 68% 30%, rgba(15, 107, 110, 0.12), transparent 16rem);
  background-size: 980px 720px, 42rem 42rem, 46rem 46rem;
  background-position: center 16%, center, right 12% top 10%;
  opacity: 0.42;
  mix-blend-mode: multiply;
  filter: saturate(0.86);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  animation: synapseDrift 42s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(circle at 22% 32%, rgba(15, 107, 110, 0.16) 0 1px, transparent 6px),
    radial-gradient(circle at 58% 18%, rgba(126, 47, 34, 0.13) 0 1px, transparent 7px),
    radial-gradient(circle at 80% 70%, rgba(201, 151, 63, 0.15) 0 1px, transparent 8px),
    radial-gradient(circle at 44% 52%, rgba(201, 151, 63, 0.18), transparent 18rem);
  background-size: 260px 230px, 360px 320px, 310px 280px, 100% 100%;
  opacity: 0.34;
  filter: blur(0.3px);
  animation: synapsePulse 9s ease-in-out infinite alternate;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(240, 139, 111, 0.13), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(127, 215, 217, 0.12), transparent 30rem),
    linear-gradient(180deg, #171614 0%, var(--bg) 48%, #0d0d0c 100%);
}

:root[data-theme="dark"] body::before {
  background-image:
    url("data:image/svg+xml,%3Csvg width='980' height='720' viewBox='0 0 980 720' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cg stroke='%237fd7d9' stroke-opacity='.32' stroke-width='1.25'%3E%3Cpath d='M490 360 C430 300 350 278 248 292 C162 304 106 266 56 196'/%3E%3Cpath d='M490 360 C554 294 646 238 764 216 C858 198 918 150 960 84'/%3E%3Cpath d='M490 360 C560 394 642 452 704 556 C738 612 804 648 914 674'/%3E%3Cpath d='M490 360 C420 420 356 482 306 566 C272 624 224 660 146 686'/%3E%3Cpath d='M490 360 C468 278 492 196 564 116 C608 68 644 38 706 18'/%3E%3Cpath d='M490 360 C408 364 326 342 242 394 C170 438 120 456 42 444'/%3E%3Cpath d='M490 360 C552 328 628 336 706 384 C774 426 844 438 930 402'/%3E%3C/g%3E%3Cg stroke='%23f08b6f' stroke-opacity='.25' stroke-width='1'%3E%3Cpath d='M56 196 C92 162 132 148 176 154'/%3E%3Cpath d='M764 216 C804 246 850 260 902 248'/%3E%3Cpath d='M306 566 C330 604 372 628 432 638'/%3E%3Cpath d='M704 556 C664 588 628 622 604 678'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%237fd7d9' fill-opacity='.38'%3E%3Ccircle cx='490' cy='360' r='5'/%3E%3Ccircle cx='248' cy='292' r='3.5'/%3E%3Ccircle cx='764' cy='216' r='4'/%3E%3Ccircle cx='704' cy='556' r='3.5'/%3E%3Ccircle cx='306' cy='566' r='4'/%3E%3Ccircle cx='564' cy='116' r='3.5'/%3E%3Ccircle cx='242' cy='394' r='3.5'/%3E%3Ccircle cx='706' cy='384' r='4'/%3E%3C/g%3E%3Cg fill='%23f08b6f' fill-opacity='.34'%3E%3Ccircle cx='176' cy='154' r='3'/%3E%3Ccircle cx='902' cy='248' r='3'/%3E%3Ccircle cx='432' cy='638' r='3'/%3E%3Ccircle cx='604' cy='678' r='3'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 48%, rgba(240, 139, 111, 0.14), transparent 8rem),
    radial-gradient(circle at 68% 30%, rgba(127, 215, 217, 0.1), transparent 16rem);
  opacity: 0.34;
  mix-blend-mode: screen;
  filter: saturate(0.9);
}

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

a {
  color: inherit;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 248, 241, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(20, 18, 14, 0.08);
}

:root[data-theme="dark"] .topbar {
  background: rgba(22, 21, 19, 0.82);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding-right: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav {
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(23, 23, 23, 0.06);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.topbar.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .nav-toggle,
:root[data-theme="dark"] .button,
:root[data-theme="dark"] .pill,
:root[data-theme="dark"] .stats-strip,
:root[data-theme="dark"] .stats-strip a,
:root[data-theme="dark"] .pub-card,
:root[data-theme="dark"] .publication,
:root[data-theme="dark"] .project,
:root[data-theme="dark"] .case-grid,
:root[data-theme="dark"] .timeline-item,
:root[data-theme="dark"] .contact-panel,
:root[data-theme="dark"] .video-feature,
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .life-card,
:root[data-theme="dark"] .pub-filter-bar,
:root[data-theme="dark"] .pub-graphic,
:root[data-theme="dark"] .youtube-card {
  background: rgba(31, 30, 27, 0.86);
  color: var(--ink);
}

.theme-toggle span {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset -8px -6px 0 var(--gold);
}

:root[data-theme="dark"] .theme-toggle span {
  background: var(--gold);
  box-shadow: inset 8px 0 0 #1d1b18;
}

main,
.footer,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  z-index: 20;
}

@keyframes synapseDrift {
  from { transform: translate3d(-16px, -10px, 0) scale(1); }
  to { transform: translate3d(36px, 28px, 0) scale(1.035); }
}

@keyframes synapsePulse {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.24; }
  to { transform: translate3d(14px, -12px, 0) scale(1.03); opacity: 0.38; }
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  align-items: center;
  gap: 56px;
  padding: 86px 0 72px;
}

.pill {
  width: fit-content;
  padding: 9px 13px;
  border: 1px solid rgba(126, 47, 34, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 24px 0 0;
  max-width: 780px;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.word-rotator {
  position: relative;
  display: block;
  min-height: 1.18em;
  color: var(--accent-2);
  overflow: visible;
  transition: height 220ms ease;
}

.word-rotator span {
  position: absolute;
  inset: 0 0 auto 0;
  line-height: 1;
  padding-bottom: 0.14em;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 220ms ease, transform 260ms ease;
  white-space: normal;
}

.word-rotator span.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-lede {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(23, 23, 23, 0.1);
}

.button.primary {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

:root[data-theme="dark"] .button.primary {
  background: #f4f0e8;
  color: #11110f;
}

.hero-panel {
  position: relative;
  transform: rotate(2deg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px -14px -14px 18px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: var(--radius);
}

.hero-panel img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .hero-panel img {
  border-color: #24221f;
}

.signal-card {
  position: absolute;
  right: -18px;
  bottom: 34px;
  width: min(280px, 76%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(23, 23, 23, 0.18);
}

:root[data-theme="dark"] .signal-card {
  border-color: rgba(244, 240, 232, 0.22);
  background: rgba(24, 23, 21, 0.78);
  color: var(--ink);
}

.signal-card span,
.tag,
.eyebrow,
.pub-card span,
.step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.05;
}

.neural-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
}

.hero-activate {
  cursor: pointer;
}

.consciousness-panel {
  --mx: 50%;
  --my: 42%;
  --machine-alpha: 0.58;
  --scan-speed: 4.8s;
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(127, 215, 217, 0.22), transparent 15rem),
    radial-gradient(circle at 20% 18%, rgba(240, 139, 111, 0.2), transparent 17rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.25));
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  isolation: isolate;
}

:root[data-theme="dark"] .consciousness-panel {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(127, 215, 217, 0.2), transparent 15rem),
    radial-gradient(circle at 20% 18%, rgba(240, 139, 111, 0.18), transparent 17rem),
    linear-gradient(135deg, rgba(28, 27, 24, 0.94), rgba(16, 18, 18, 0.74));
}

.consciousness-panel::before,
.consciousness-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  pointer-events: none;
  z-index: 1;
}

.consciousness-panel::before {
  border: 1px solid rgba(127, 215, 217, 0.22);
  background:
    linear-gradient(rgba(127, 215, 217, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 215, 217, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at var(--mx) var(--my), black 0 13rem, transparent 21rem);
}

.consciousness-panel::after {
  background: conic-gradient(from 120deg at var(--mx) var(--my), transparent, rgba(127, 215, 217, 0.32), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: consciousnessSweep 9s linear infinite;
}

.neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  z-index: 0;
}

.portrait-stage {
  --rx: 50%;
  --ry: 42%;
  --rx2: 48%;
  --ry2: 43%;
  --rx3: 51%;
  --ry3: 41%;
  --rx4: 49%;
  --ry4: 44%;
  --reveal-core: 0px;
  --reveal-lobe: 0px;
  --reveal-mist: 0px;
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 4 / 5;
  z-index: 2;
  border-radius: 30px;
  overflow: hidden;
  transform:
    perspective(1200px)
    rotateX(calc((var(--my-num, 0.42) - 0.5) * -7deg))
    rotateY(calc((var(--mx-num, 0.5) - 0.5) * 9deg));
  transition: transform 180ms ease;
}

.consciousness-panel .portrait-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border: 0;
  border-radius: 30px;
  box-shadow: none;
  transform: scale(1.03);
  filter: saturate(1.06) contrast(1.02);
}

.human-portrait {
  z-index: 1;
}

.robot-portrait {
  z-index: 3;
  opacity: 0;
  filter: saturate(1.08) contrast(1.08);
  -webkit-mask-image:
    radial-gradient(ellipse 68px 45px at var(--rx) var(--ry), #000 0 var(--reveal-core), rgba(0, 0, 0, 0.86) calc(var(--reveal-core) + 12px), transparent calc(var(--reveal-core) + 40px)),
    radial-gradient(ellipse 52px 35px at var(--rx2) var(--ry2), rgba(0, 0, 0, 0.9) 0 var(--reveal-lobe), transparent calc(var(--reveal-lobe) + 28px)),
    radial-gradient(ellipse 42px 32px at var(--rx3) var(--ry3), rgba(0, 0, 0, 0.72) 0 var(--reveal-mist), transparent calc(var(--reveal-mist) + 25px)),
    radial-gradient(ellipse 33px 24px at var(--rx4) var(--ry4), rgba(0, 0, 0, 0.58) 0 var(--reveal-mist), transparent calc(var(--reveal-mist) + 21px));
  mask-image:
    radial-gradient(ellipse 68px 45px at var(--rx) var(--ry), #000 0 var(--reveal-core), rgba(0, 0, 0, 0.86) calc(var(--reveal-core) + 12px), transparent calc(var(--reveal-core) + 40px)),
    radial-gradient(ellipse 52px 35px at var(--rx2) var(--ry2), rgba(0, 0, 0, 0.9) 0 var(--reveal-lobe), transparent calc(var(--reveal-lobe) + 28px)),
    radial-gradient(ellipse 42px 32px at var(--rx3) var(--ry3), rgba(0, 0, 0, 0.72) 0 var(--reveal-mist), transparent calc(var(--reveal-mist) + 25px)),
    radial-gradient(ellipse 33px 24px at var(--rx4) var(--ry4), rgba(0, 0, 0, 0.58) 0 var(--reveal-mist), transparent calc(var(--reveal-mist) + 21px));
  transition: opacity 180ms ease, filter 180ms ease;
}

.portrait-stage:hover .robot-portrait,
.portrait-stage:focus-within .robot-portrait,
.portrait-stage.revealing .robot-portrait {
  --reveal-core: 44px;
  --reveal-lobe: 31px;
  --reveal-mist: 19px;
  opacity: 1;
}

.portrait-stage::before,
.portrait-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.portrait-stage::before {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(127, 215, 217, 0.22) 49% 51%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 6px);
  opacity: calc(var(--machine-alpha) * 0.55);
  mix-blend-mode: screen;
}

.portrait-stage::after {
  background: radial-gradient(circle at var(--mx) var(--my), transparent 0 7rem, rgba(0, 0, 0, 0.15) 17rem);
}

.neural-mesh {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: calc(var(--machine-alpha) * 0.9);
  mix-blend-mode: screen;
}

.neural-mesh path,
.neural-mesh circle {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 11 12;
  filter: drop-shadow(0 0 10px rgba(127, 215, 217, 0.72));
  animation: neuralDash 5s linear infinite;
}

.neural-mesh circle {
  fill: var(--accent-2);
  stroke: transparent;
  animation: nodePulse 2.6s ease-in-out infinite;
}

.cyber-mask {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: var(--machine-alpha);
  pointer-events: none;
  filter: drop-shadow(0 0 22px rgba(127, 215, 217, 0.3));
  transition: opacity 220ms ease, filter 220ms ease;
}

.visor {
  position: absolute;
  left: 25%;
  top: 27%;
  width: 50%;
  height: 17%;
  border: 1px solid rgba(127, 215, 217, 0.72);
  border-radius: 32px 32px 22px 22px;
  background:
    linear-gradient(90deg, rgba(240, 139, 111, 0.42), transparent 18% 82%, rgba(240, 139, 111, 0.42)),
    linear-gradient(180deg, rgba(127, 215, 217, 0.82), rgba(3, 6, 8, 0.92) 48%, rgba(127, 215, 217, 0.24));
  clip-path: polygon(5% 16%, 94% 0, 100% 72%, 72% 100%, 24% 92%, 0 64%);
  box-shadow:
    inset 0 0 24px rgba(127, 215, 217, 0.5),
    0 0 30px rgba(127, 215, 217, 0.28);
}

.jaw-plate {
  position: absolute;
  left: 33%;
  top: 43%;
  width: 34%;
  height: 13%;
  border-radius: 0 0 38px 38px;
  background:
    linear-gradient(135deg, rgba(240, 139, 111, 0.92), rgba(126, 47, 34, 0.86)),
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.62) 49% 51%, transparent 53%);
  clip-path: polygon(8% 0, 92% 0, 82% 74%, 52% 100%, 18% 74%);
  box-shadow: inset 0 -16px 22px rgba(0, 0, 0, 0.22);
}

.temple {
  position: absolute;
  top: 32%;
  width: 19%;
  height: 7%;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(15, 107, 110, 0.8), rgba(240, 139, 111, 0.86));
}

.temple.left {
  left: 14%;
  transform: rotate(7deg);
}

.temple.right {
  right: 14%;
  transform: rotate(-7deg);
}

.circuit {
  position: absolute;
  width: 2px;
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(127, 215, 217, 0.8);
  transform-origin: top;
}

.circuit::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  transform: translateX(-50%);
}

.circuit.one {
  left: 28%;
  top: 18%;
  height: 88px;
  transform: rotate(-32deg);
}

.circuit.two {
  right: 24%;
  top: 19%;
  height: 112px;
  transform: rotate(28deg);
}

.circuit.three {
  left: 52%;
  top: 14%;
  height: 82px;
  transform: rotate(6deg);
}

.scan-beam {
  position: absolute;
  left: -20%;
  right: -20%;
  top: -18%;
  height: 12%;
  z-index: 7;
  background: linear-gradient(180deg, transparent, rgba(127, 215, 217, 0.38), transparent);
  mix-blend-mode: screen;
  transform: rotate(-8deg);
  animation: scanBeam var(--scan-speed) ease-in-out infinite;
  pointer-events: none;
}

.reveal-ring {
  position: absolute;
  left: var(--rx);
  top: var(--ry);
  z-index: 8;
  width: 164px;
  height: 122px;
  border: 1px solid rgba(127, 215, 217, 0.8);
  border-radius: 61% 39% 56% 44% / 43% 58% 42% 57%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, width 180ms ease, height 180ms ease;
  box-shadow:
    inset 0 0 24px rgba(127, 215, 217, 0.22),
    0 0 28px rgba(127, 215, 217, 0.22);
  animation: liquidCursor 2.8s ease-in-out infinite;
}

.reveal-ring::before,
.reveal-ring::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(240, 139, 111, 0.5);
  border-radius: inherit;
  pointer-events: none;
}

.reveal-ring::before {
  inset: 12px -8px -3px 16px;
  transform: rotate(22deg);
}

.reveal-ring::after {
  inset: -7px 22px 14px -10px;
  border-color: rgba(127, 215, 217, 0.42);
  transform: rotate(-28deg);
}

.portrait-stage:hover .reveal-ring,
.portrait-stage:focus-within .reveal-ring,
.portrait-stage.revealing .reveal-ring {
  opacity: 1;
}

.neural-card {
  z-index: 9;
  right: 18px;
  bottom: 32px;
  width: min(330px, 78%);
}

.neuro-readout {
  position: absolute;
  left: 20px;
  bottom: 24px;
  z-index: 9;
  width: min(230px, 45%);
  padding: 12px;
  border: 1px solid rgba(127, 215, 217, 0.26);
  border-radius: 18px;
  background: rgba(17, 17, 15, 0.66);
  color: #f4f0e8;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.mode-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin: 0 4px 8px 0;
  padding: 0 9px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.readout-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 0;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  font-size: 12px;
}

.readout-row span {
  color: rgba(244, 240, 232, 0.7);
}

.readout-row strong {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

.consciousness-panel.mode-human {
  --machine-alpha: 0.24;
  --scan-speed: 6.2s;
}

.consciousness-panel.mode-hybrid {
  --machine-alpha: 0.68;
  --scan-speed: 4.2s;
}

.consciousness-panel.mode-machine {
  --machine-alpha: 0.92;
  --scan-speed: 2.8s;
}

.consciousness-panel.mode-machine .portrait-stage img {
  filter: saturate(0.9) contrast(1.15) hue-rotate(8deg);
}

@keyframes scanBeam {
  0% { transform: translateY(-80%) rotate(-8deg); opacity: 0; }
  20%, 74% { opacity: 1; }
  100% { transform: translateY(980%) rotate(-8deg); opacity: 0; }
}

@keyframes neuralDash {
  to { stroke-dashoffset: -46; }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

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

@keyframes liquidCursor {
  0%, 100% {
    border-radius: 61% 39% 56% 44% / 43% 58% 42% 57%;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  28% {
    border-radius: 46% 54% 37% 63% / 64% 39% 61% 36%;
    transform: translate(-50%, -50%) rotate(10deg) scale(1.08, 0.9);
  }
  58% {
    border-radius: 68% 32% 62% 38% / 35% 66% 34% 65%;
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.9, 1.08);
  }
  82% {
    border-radius: 39% 61% 48% 52% / 58% 44% 56% 42%;
    transform: translate(-50%, -50%) rotate(4deg) scale(1.02, 0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .consciousness-panel::after,
  .scan-beam,
  .reveal-ring,
  .neural-mesh path,
  .neural-mesh circle {
    animation: none;
  }

  .portrait-stage {
    transform: none;
  }
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
}

.stats-strip a {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.stats-strip a:hover {
  transform: translateY(-4px) scale(1.01);
  background:
    linear-gradient(135deg, rgba(126, 47, 34, 0.14), rgba(15, 107, 110, 0.15)),
    rgba(255, 255, 255, 0.84);
  box-shadow: var(--block-hover-shadow);
}

:root[data-theme="dark"] .stats-strip a:hover,
:root[data-theme="dark"] .pub-filter-bar button:hover,
:root[data-theme="dark"] .pub-filter-bar button.active {
  background:
    linear-gradient(135deg, rgba(240, 139, 111, 0.24), rgba(127, 215, 217, 0.22)),
    rgba(44, 42, 38, 0.96);
  color: var(--ink);
}

.stats-strip a,
.publication,
.project,
.case-grid,
.project-card,
.news-card,
.youtube-card,
.pub-filter-bar,
.pub-graphic,
.timeline-item,
.contact-panel,
.video-feature,
.credited-video,
.product-media-grid img,
.product-media-grid video {
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.publication:hover,
.project:hover,
.case-grid:hover,
.project-card:hover,
.news-card:hover,
.youtube-card:hover,
.pub-filter-bar:hover,
.pub-graphic:hover,
.timeline-item:hover,
.contact-panel:hover,
.video-feature:hover,
.credited-video:hover,
.product-media-grid img:hover,
.product-media-grid video:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-2), transparent 55%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 88%), color-mix(in srgb, var(--accent-2), transparent 86%)),
    var(--panel);
  box-shadow: var(--block-hover-shadow);
}

.stats-strip strong {
  display: block;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stats-strip span {
  color: color-mix(in srgb, var(--muted), var(--ink) 22%);
  font-size: 14px;
  font-weight: 850;
}

.section-head {
  max-width: 780px;
  padding: 100px 0 30px;
}

.section-head.compact {
  padding-top: 0;
}

.section-head h2,
.contact-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section-head p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.project-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(23, 23, 23, 0.08);
}

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

.card-image {
  height: 205px;
  overflow: hidden;
}

.project-card.feature .card-image {
  height: 250px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.card-body {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin: 8px 0 0;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.card-body p:not(.tag) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.card-body a {
  width: fit-content;
  margin-top: auto;
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
}

.scroll-showcase {
  margin-top: 100px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 12px);
  background: #161616;
  color: #fff;
  box-shadow: var(--shadow);
}

.scroll-showcase .section-head p:not(.eyebrow),
.scroll-showcase .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.device-stage {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.device-copy {
  display: grid;
  gap: 12px;
}

.step {
  width: 100%;
  color: inherit;
  text-align: left;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.step:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.step.active {
  border-color: rgba(201, 151, 63, 0.7);
  background: rgba(201, 151, 63, 0.12);
}

.step strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.step p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
}

.device-shell {
  --device-tilt-x: 10deg;
  --device-tilt-y: 0deg;
  --device-lift: 0px;
  padding: 13px;
  border: 5px solid #5f5f5f;
  border-radius: 34px;
  background: #242424;
  transform: perspective(1000px) rotateX(var(--device-tilt-x)) rotateY(var(--device-tilt-y)) translateY(var(--device-lift));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  transform-origin: center;
  will-change: transform;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.device-shell:hover {
  border-color: color-mix(in srgb, var(--accent-2), #5f5f5f 55%);
  box-shadow: var(--block-hover-shadow), 0 40px 120px rgba(0, 0, 0, 0.36);
}

.device-screen {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 24px;
  background: #eee;
}

.device-screen img,
.device-screen video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.device-screen video {
  display: none;
  background: #111;
}

.device-screen.show-video img {
  display: none;
}

.device-screen.show-video video {
  display: block;
}

.screen-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.screen-overlay span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-overlay strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  line-height: 1;
}

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

.news-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.news-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 60px rgba(23, 23, 23, 0.1);
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78));
}

.news-card div {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.news-card span,
.life-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card strong,
.life-card strong {
  display: block;
  margin-top: 5px;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.news-card:hover img {
  transform: scale(1.07);
}

.tilted-static-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  perspective: 1000px;
}

.tilted-static-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(23, 23, 23, 0.14);
  transition: transform 220ms ease, filter 220ms ease;
}

.tilted-static-grid img:nth-child(odd) {
  transform: rotate(-3deg) translateY(18px);
}

.tilted-static-grid img:nth-child(even) {
  transform: rotate(3deg);
}

.tilted-static-grid img:hover {
  filter: saturate(1.12) contrast(1.04);
  transform: rotate(0deg) translateY(-6px) scale(1.04);
}

.page-hero {
  max-width: 900px;
  padding: 92px 0 42px;
}

.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(52px, 9vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.timeline {
  display: grid;
  gap: 18px;
  padding-bottom: 80px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.timeline-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.timeline-item h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.timeline-item p:not(.tag) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.life-grid,
.product-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 80px;
}

.life-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  box-shadow: 0 18px 60px rgba(23, 23, 23, 0.1);
  transform: translateZ(0);
  transition: transform 190ms ease, box-shadow 190ms ease, filter 190ms ease;
}

.life-card:hover,
.life-card:focus-within {
  transform: translateY(-7px) scale(1.018);
  box-shadow: var(--block-hover-shadow);
  filter: saturate(1.08);
}

.life-card.wide {
  grid-column: span 2;
}

.life-card img,
.life-card video,
.product-media-grid img,
.product-media-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.life-card div {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 1;
}

.life-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.76));
  pointer-events: none;
}

.life-card video {
  min-height: 360px;
}

.life-card video[controls] {
  cursor: pointer;
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 640px);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 255, 255, 0.7);
}

.pop-card {
  transform: translateZ(0);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease, background 190ms ease;
}

.pop-card:hover,
.pop-card:focus-within {
  transform: translateY(-6px) scale(1.01);
  border-color: color-mix(in srgb, var(--accent-2), transparent 45%);
  box-shadow: 0 24px 80px rgba(23, 23, 23, 0.16);
}

.video-feature h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.video-feature p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.video-embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 20px;
  background: #111;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-fallback {
  display: grid;
  place-items: stretch;
  background: #171717;
}

.youtube-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.8);
}

.youtube-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82));
}

.youtube-fallback > div {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 22px;
  color: #fff;
}

.youtube-fallback span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.youtube-fallback strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.youtube-fallback p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px 0 88px;
}

.youtube-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 60px rgba(23, 23, 23, 0.08);
}

.youtube-card > div:not(.video-embed) {
  padding: 18px;
}

.youtube-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.youtube-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.youtube-card p {
  color: var(--muted);
  line-height: 1.5;
}

.portrait-video {
  aspect-ratio: 9 / 16;
  width: min(100%, 420px);
  justify-self: center;
}

.link-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-media-grid {
  padding-top: 18px;
}

.product-media-grid img,
.product-media-grid video,
.credited-video {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 18px 60px rgba(23, 23, 23, 0.12);
}

.credited-video {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.credited-video video {
  border-radius: 0;
  box-shadow: none;
}

.credited-video figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.58);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  backdrop-filter: blur(12px);
}

.credited-video a,
.step a,
.prose a {
  color: var(--accent-2);
  font-weight: 850;
}

.publication-list,
.project-list {
  display: grid;
  gap: 14px;
  padding-bottom: 80px;
}

.publication-showcase {
  display: grid;
  grid-template-columns: minmax(0, max-content) 320px;
  gap: 18px;
  align-items: start;
  padding-bottom: 24px;
}

.pub-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  width: fit-content;
  max-width: 100%;
}

.pub-filter-bar button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

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

.pub-graphic {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--accent-2), transparent 55%), transparent 7rem),
    radial-gradient(circle at 68% 62%, color-mix(in srgb, var(--accent), transparent 58%), transparent 8rem),
    var(--panel);
}

.pub-graphic::before,
.pub-graphic::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: orbit 8s linear infinite;
}

.pub-graphic::after {
  inset: 84px;
  animation-duration: 12s;
  animation-direction: reverse;
}

.pub-node {
  position: absolute;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-weight: 950;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  animation: pubFloat 7s ease-in-out infinite;
}

.pub-node:hover,
.pub-node:focus-visible {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  transform: translateY(-5px) scale(1.08);
  box-shadow: var(--block-hover-shadow);
  outline: none;
}

.pub-node:nth-child(1) { left: 24px; top: 36px; }
.pub-node:nth-child(2) { right: 34px; top: 58px; animation-delay: -1.8s; }
.pub-node:nth-child(3) { left: 82px; bottom: 42px; animation-delay: -3.2s; }
.pub-node:nth-child(4) { right: 74px; bottom: 28px; animation-delay: -4.9s; }

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

@keyframes pubFloat {
  0%, 100% { translate: 0 0; }
  25% { translate: 8px -10px; }
  50% { translate: -6px 6px; }
  75% { translate: 5px 12px; }
}

.publication,
.project,
.case-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 60px rgba(23, 23, 23, 0.08);
}

.publication {
  padding: 24px;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 110px;
}

.publication::before {
  content: attr(data-year);
  position: absolute;
  right: 22px;
  top: 18px;
  color: color-mix(in srgb, var(--accent-2), transparent 45%);
  font-size: clamp(42px, 9vw, 88px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
  opacity: 0.22;
  pointer-events: none;
}

.publication h2,
.project h2,
.case-grid h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.publication p,
.project p,
.case-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.publication .authors {
  color: var(--ink);
}

.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.links a,
.outcomes a {
  color: var(--accent);
  font-weight: 850;
}

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

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

.project-body {
  padding: 10px 8px;
}

.role {
  font-weight: 800;
}

.case-study {
  padding-bottom: 24px;
}

.case-hero {
  margin: 0 0 18px;
}

.case-hero img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.case-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  padding: 28px;
}

.case-meta {
  color: var(--muted);
  font-size: 15px;
}

.prose p {
  font-size: 18px;
}

.pub-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 60px rgba(23, 23, 23, 0.12);
}

.pub-card strong {
  display: block;
  margin-top: 22px;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

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

.bento-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #ddd;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.bento-item.tall {
  grid-row: span 2;
}

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

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.bento-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78));
}

.bento-item span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.bento-item:hover img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.contact-panel {
  margin-top: 110px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 255, 255, 0.72);
}

.contact-panel .contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.66);
  backdrop-filter: blur(18px);
}

.modal.open {
  display: grid;
}

.modal figure {
  width: min(980px, 100%);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.modal img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
}

.modal figcaption {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.modal figcaption span {
  color: rgba(255, 255, 255, 0.66);
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 28px;
  cursor: pointer;
}

.footer {
  padding: 36px 0 52px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .device-stage,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .contact-panel .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: center;
    flex-wrap: wrap;
    border-radius: 26px;
    padding: 9px;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    order: 2;
  }

  .theme-toggle {
    flex: 0 0 auto;
    order: 3;
  }

  .nav {
    width: 100%;
    max-height: 0;
    order: 4;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    justify-content: flex-start;
    transition: max-height 220ms ease, opacity 180ms ease, padding 180ms ease;
  }

  .topbar.nav-open .nav {
    max-height: 240px;
    padding-top: 4px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 10px 12px;
    font-size: 16px;
  }

  .hero {
    padding-top: 54px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(48px, 17vw, 72px);
  }

  .consciousness-panel {
    min-height: 560px;
    padding: 12px;
    border-radius: 28px;
    transform: none;
  }

  .portrait-stage {
    width: 100%;
    border-radius: 24px;
  }

  .consciousness-panel .portrait-stage img {
    border-radius: 24px;
  }

  .neuro-readout {
    top: 18px;
    bottom: auto;
    left: 18px;
    width: min(220px, calc(100% - 36px));
  }

  .neural-card {
    right: 14px;
    bottom: 18px;
    width: min(320px, calc(100% - 28px));
  }

  .visor {
    left: 20%;
    width: 60%;
  }

  .stats-strip,
  .project-board,
  .pub-grid,
  .publication-showcase,
  .bento,
  .news-preview,
  .life-grid,
  .youtube-grid,
  .product-media-grid,
  .timeline-item,
  .video-feature,
  .project,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.feature {
    grid-column: auto;
  }

  .scroll-showcase,
  .contact-panel {
    padding: 20px;
  }

  .device-screen,
  .device-screen img {
    min-height: 340px;
  }

  .bento {
    grid-auto-rows: 210px;
  }

  .bento-item.tall,
  .bento-item.wide,
  .life-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .tilted-static-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal figcaption,
  .footer {
    flex-direction: column;
  }
}
