/* Homepage-only design system. Other NexT pages keep their existing styles. */
:root {
  color-scheme: light;
  --paper: #fafaf8;
  --ink: #192234;
  --muted: #657084;
  --line: #e0e3e9;
  --accent: #6554dc;
  --night: #080c18;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Avenir Next", "Trebuchet MS", sans-serif;
  --body:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
p,
blockquote {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: #bbb3ef;
  color: #16182d;
}
:focus-visible {
  outline: 3px solid #9787f5;
  outline-offset: 6px;
  border-radius: 3px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.content-width {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
}
.mono,
.eyebrow,
.section-index {
  font-family: var(--mono);
}
.eyebrow,
.section-index {
  font-size: 11px;
  letter-spacing: 2px;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  padding: 10px 20px;
  background: #fff;
  color: #111;
  z-index: 300;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
/* Navigation */
.portal-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  color: #edeefa;
  border-bottom: 1px solid #ffffff12;
  transition:
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}
.portal-header.is-scrolled {
  position: fixed;
  background: rgba(250, 250, 248, 0.97);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 4px 24px #10132606;
}
.nav-shell {
  width: min(1440px, calc(100% - 112px));
  margin: auto;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font: 600 22px var(--display);
  letter-spacing: -0.8px;
}
.brand-glyph {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font:
    italic 34px Georgia,
    serif;
  border: 1px solid #ffffff35;
  border-radius: 9px;
  position: relative;
  padding-bottom: 7px;
}
.brand-glyph img {
  width: 32px;
  height: 32px;
  display: block;
}
.brand-glyph span {
  position: absolute;
  font-size: 24px;
  right: 5px;
  bottom: 1px;
  color: #a799ff;
}
.wordmark-dot {
  color: #aa9bff;
}
.is-scrolled .brand-glyph {
  border-color: #c9c5e5;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-link:hover,
.nav-link:focus-visible,
.blog-disclosure[open] .nav-link {
  opacity: 1;
}
.nav-link.is-current {
  opacity: 1;
}
.nav-link.is-current:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: #a895ff;
  bottom: 2px;
  left: calc(50% - 8px);
}
.nav-github {
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 1px solid #ffffff25;
  padding-left: 30px;
  margin-left: 6px;
  min-height: 24px;
}
.is-scrolled .nav-github {
  border-color: var(--line);
}
.nav-github:hover {
  color: #a395f0;
}
.nav-github .icon {
  width: 17px;
  height: 17px;
}
.blog-disclosure summary {
  list-style: none;
  cursor: pointer;
}
.blog-disclosure summary::-webkit-details-marker {
  display: none;
}
.blog-disclosure summary .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}
.blog-disclosure[open] summary .icon {
  transform: rotate(180deg);
}
.blog-panel {
  position: absolute;
  right: max(56px, calc((100vw - 1440px) / 2));
  top: 76px;
  width: 560px;
  padding: 24px;
  background: #111827;
  color: #f2f3fb;
  border: 1px solid #ffffff20;
  box-shadow: 0 20px 60px #0004;
  border-radius: 12px;
}
.blog-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #ffffff16;
}
.blog-panel-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #a4adbf;
}
.blog-panel-heading > a {
  color: #c7bdff;
  font-size: 13px;
}
.blog-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 18px 0;
}
.blog-panel-grid a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 8px;
  border-radius: 6px;
}
.blog-panel-grid a:hover {
  background: #ffffff08;
}
.blog-panel-grid strong {
  font-weight: 500;
  font-size: 14px;
}
.blog-panel-grid small {
  display: block;
  font-size: 11px;
  color: #a4adbf;
  margin-top: 4px;
}
.series-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  margin-top: 9px;
}
.violet {
  color: #a894f2;
}
.blue {
  color: #789ee7;
}
.amber {
  color: #be914f;
}
.teal {
  color: #54a89e;
}
.blog-panel-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-top: 1px solid #ffffff16;
  padding-top: 15px;
  color: #c0c8d8;
}
.mobile-toggle {
  display: none;
}
/* Opening scene */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: #f7f6ff;
  min-height: 800px;
  height: 100svh;
  max-height: 1300px;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("/images/galaxy-field.svg") center / cover no-repeat,
    radial-gradient(ellipse at 76% 48%, #30306738, transparent 47%),
    radial-gradient(ellipse at 16% 90%, #19203835, transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' opacity='.32' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: 60px;
  padding-bottom: 100px;
  pointer-events: none;
}
.hero-copy {
  position: relative;
  max-width: 580px;
  pointer-events: auto;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b2b2cb;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 25px;
}
.hero-eyebrow > span {
  width: 6px;
  height: 6px;
  background: #b7a6ff;
  border-radius: 50%;
  box-shadow: 0 0 12px #af8fff80;
}
.hero-name {
  font: 500 clamp(64px, 6.6vw, 102px) / 1.16 var(--display);
  letter-spacing: -6px;
  margin-bottom: 28px;
}
.hero-name > span {
  color: #b9a3ff;
}
.hero h1 {
  font-size: clamp(34px, 3.5vw, 54px);
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: 1px;
}
.hero-accent {
  color: #b6a2f4;
}
.hero-description {
  color: #a0a5b9;
  font-size: 15px;
  line-height: 1.95;
  margin-top: 24px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}
.button {
  min-height: 50px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  border-radius: 5px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-3px);
}
.button-primary {
  background: #c0b0f6;
  color: #19132f;
}
.button-primary:hover {
  background: #d2c7fb;
}
.button-text {
  color: #e0deeb;
}
.button-text:hover {
  background: #ffffff08;
}
.hero-interests {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 9px var(--mono);
  letter-spacing: 1.6px;
  color: #81879d;
  margin-top: 40px;
}
.hero-interests i {
  height: 2px;
  width: 2px;
  background: #81879d;
}
.space-stage {
  position: absolute;
  right: -5%;
  top: 8%;
  width: 68%;
  height: 84%;
  transition: opacity 0.7s;
  pointer-events: none;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 13%,
    #000 93%,
    transparent
  );
}
.space-fallback,
.space-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.space-fallback {
  opacity: 0.85;
  transition: opacity 1s;
}
.space-canvas {
  opacity: 0;
  transition: opacity 1.3s;
}
.space-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.space-stage[data-state="ready"] .space-fallback {
  opacity: 0;
}
.space-stage[data-state="ready"] .space-canvas {
  opacity: 1;
}
.hero-coordinate {
  position: absolute;
  right: 56px;
  top: 122px;
  color: #737b98;
  font: 9px var(--mono);
  letter-spacing: 2px;
  display: flex;
  gap: 32px;
}
.hero-coordinate span {
  color: #4f5873;
}
.orbital-caption {
  position: absolute;
  left: 64%;
  bottom: 19%;
  display: flex;
  gap: 14px;
  align-items: center;
  color: #bbb9d1;
  font-size: 11px;
  letter-spacing: 2px;
  pointer-events: none;
}
.orbital-caption small {
  display: block;
  font: 8px var(--mono);
  letter-spacing: 1.9px;
  margin-top: 7px;
  color: #78829e;
}
.orbital-cross {
  font: 300 26px var(--display);
  color: #9e95d2;
}
.hero-bottom {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #c7cad8;
  min-height: 44px;
}
.scroll-line {
  height: 30px;
  width: 1px;
  background: linear-gradient(#978bbb, #978bbb15);
  margin-right: 2px;
}
.scroll-cue .mono {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #6d7690;
  margin-left: 6px;
}
.hero-edition {
  font: 8px var(--mono);
  color: #70778d;
  letter-spacing: 1.8px;
}
.motion-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca4ba;
  font-size: 10px;
  min-height: 44px;
  padding: 8px;
  background: transparent;
  border: 0;
  margin-left: auto;
}
.motion-toggle:hover {
  color: #e9e5ff;
}
.motion-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9b8ac7;
}
.motion-toggle[aria-pressed="true"] .motion-indicator {
  background: #626a7d;
}
/* Editorial rhythm */
.section-space {
  padding-top: 96px;
  padding-bottom: 100px;
}
.section-rail {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}
.section-index {
  color: #737b8b;
  font-size: 10px;
  letter-spacing: 1.8px;
  white-space: nowrap;
}
.rail-line {
  height: 1px;
  flex: 1;
  background: var(--line);
}
h2 {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.5;
  letter-spacing: -1px;
  font-weight: 550;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  min-height: 44px;
}
.text-link .icon {
  width: 18px;
  transition: transform 0.2s;
}
.text-link:hover {
  color: var(--accent);
}
.text-link:hover .icon {
  transform: translateX(4px);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 100px;
}
.avatar-frame {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
}
.avatar-frame img {
  border-radius: 50%;
  filter: saturate(0.7);
}
.avatar-frame > span {
  position: absolute;
  bottom: -6px;
  right: -8px;
  color: #7b68ae;
  background: var(--paper);
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  font-size: 26px;
}
.about-heading .text-link {
  margin-top: 24px;
}
.about-body {
  padding-top: 6px;
}
.about-lead {
  font-size: 28px;
  line-height: 1.6;
  font-weight: 450;
  letter-spacing: -0.5px;
}
.body-copy {
  font-size: 14px;
  color: var(--muted);
  line-height: 2.1;
  margin-top: 20px;
  max-width: 560px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.principles .mono {
  font-size: 10px;
  color: #8f82b1;
}
.principles h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 7px 0;
}
.principles p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
/* Projects: conceptual illustrations, not product screenshots. */
.projects-section {
  background: #f0f1f4;
  border-block: 1px solid #e9eaf0;
}
.project-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 24px;
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px #20243c0c;
}
.project-feature {
  background: #111c30;
  color: #e9edf5;
  min-height: 610px;
  display: flex;
  flex-direction: column;
}
.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  gap: 12px;
}
.project-category {
  font: 9px var(--mono);
  letter-spacing: 1.2px;
  color: #9aacc8;
}
.round-arrow {
  border: 1px solid #ffffff25;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.project-art {
  position: relative;
  min-height: 270px;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.topology-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#92b6ed0a 1px, transparent 1px),
    linear-gradient(90deg, #92b6ed0a 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse, #000, transparent 70%);
}
.topology-ring {
  position: absolute;
  border: 1px solid #6d99de4d;
  border-radius: 50%;
  width: 340px;
  height: 170px;
  transform: rotate(-28deg);
}
.ring-two {
  transform: rotate(28deg);
  border-style: dashed;
  border-color: #a9c6ed30;
}
.topology-core {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  position: relative;
  border: 1px solid #8eb5f066;
  border-radius: 24px;
  transform: rotate(-10deg);
  background: #1c304c;
  box-shadow: 0 0 85px #5a91f330;
}
.topology-core svg {
  width: 51px;
  stroke: #a4c8ff;
  fill: none;
  stroke-width: 1.3;
  transform: rotate(10deg);
}
.topology-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid #85b2f5;
  background: #233e64;
  border-radius: 3px;
  box-shadow: 0 0 20px #609cff40;
}
.node-one {
  left: 20%;
  top: 35%;
}
.node-two {
  right: 20%;
  top: 38%;
}
.node-three {
  left: 29%;
  bottom: 19%;
}
.node-four {
  right: 28%;
  bottom: 18%;
}
.art-label {
  position: absolute;
  font: 8px var(--mono);
  letter-spacing: 2px;
  color: #a1b7d5;
}
.label-one {
  left: 18%;
  top: 24%;
}
.label-two {
  right: 13%;
  top: 24%;
}
.label-three {
  right: 18%;
  bottom: 25%;
}
.art-caption {
  position: absolute;
  bottom: 8px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #7890af;
}
.project-copy {
  padding: 25px 32px 32px;
}
.project-number {
  font: 9px var(--mono);
  letter-spacing: 1.7px;
  opacity: 0.6;
}
.project-copy h3 {
  font: 500 28px/1.4 var(--display);
  letter-spacing: -0.6px;
  margin: 12px 0;
}
.project-copy p {
  font-size: 13px;
  line-height: 1.9;
  color: #a6b4ca;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 23px;
}
.project-tags span {
  font-size: 10px;
  padding: 2px 9px;
  border: 1px solid #c2d0e32b;
  border-radius: 4px;
  color: #afbdd2;
}
.project-side {
  display: grid;
  gap: 24px;
}
.project-secondary {
  background: #e6e4ed;
  border: 1px solid #dcd9e6;
  color: #332e49;
  min-height: 285px;
}
.project-secondary .project-card-top {
  padding: 20px 27px;
}
.project-secondary .project-category {
  color: #7c738e;
}
.project-secondary .round-arrow {
  border-color: #b6adcb;
}
.project-secondary .project-copy {
  padding: 10px 27px 25px;
  position: relative;
  z-index: 1;
}
.project-secondary h3 {
  font-size: 23px;
  margin: 9px 0;
}
.project-secondary p {
  color: #706981;
  font-size: 12px;
}
.project-secondary .project-tags {
  margin-top: 18px;
}
.project-secondary .project-tags span {
  border-color: #c4bcd4;
  color: #776c8d;
}
.code-motif {
  position: absolute;
  right: 6%;
  bottom: 20%;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a99bb7;
  font:
    68px Georgia,
    serif;
  opacity: 0.5;
  transform: rotate(-10deg);
}
.code-motif i {
  height: 5px;
  width: 10px;
  border-radius: 5px;
  background: #b7a5d0;
}
.project-research {
  background: #e5e9e9;
  border-color: #d5dedc;
}
.project-research .project-category,
.project-research .project-copy p {
  color: #697e7a;
}
.project-research .round-arrow {
  border-color: #afc0bc;
}
.project-research h3 {
  font-size: 22px;
  color: #2b4543;
}
.project-research .project-tags span {
  color: #617974;
  border-color: #bbcfc8;
}
.stack-motif {
  position: absolute;
  right: 9%;
  bottom: 18%;
  width: 70px;
  height: 80px;
  opacity: 0.4;
  transform: rotate(-15deg);
}
.stack-motif span {
  display: block;
  position: absolute;
  width: 65px;
  height: 46px;
  border: 1px solid #6f9689;
  background: #d6e1dd;
  border-radius: 6px;
  transform: skewY(-18deg);
}
.stack-motif span:nth-child(2) {
  top: 14px;
}
.stack-motif span:nth-child(3) {
  top: 28px;
}
/* Writing */
.editorial-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 64px;
}
.article-visual {
  height: 290px;
  position: relative;
  background: #e6e3f1;
  border-radius: 8px;
  padding: 25px 30px;
  overflow: hidden;
  color: #574581;
}
.visual-kicker,
.visual-caption {
  position: relative;
  z-index: 1;
  font: 8px var(--mono);
  letter-spacing: 1.5px;
}
.visual-title {
  position: relative;
  z-index: 1;
  font: 600 51px/0.99 var(--display);
  letter-spacing: -2px;
  margin-top: 21px;
}
.visual-title > span {
  color: #9685b6;
}
.visual-caption {
  display: block;
  margin-top: 25px;
  font-size: 7px;
  color: #807293;
}
.visual-orbit {
  position: absolute;
  border: 1px solid #b6a6d3;
  border-radius: 50%;
  width: 280px;
  height: 280px;
  right: -50px;
  top: 5px;
}
.visual-orbit:before,
.visual-orbit:after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid #b6a6d370;
  border-radius: 50%;
}
.visual-orbit:after {
  inset: 48px;
}
.delivery-steps {
  position: absolute;
  right: 20%;
  top: 35%;
  display: flex;
  gap: 14px;
  flex-direction: column;
  transform: rotate(-23deg);
  z-index: 1;
}
.delivery-steps span {
  display: flex;
  gap: 15px;
  align-items: center;
  font: 10px var(--mono);
  color: #776090;
}
.delivery-steps i {
  width: 80px;
  height: 6px;
  background: #9e8cb933;
  border-radius: 4px;
}
.delivery-steps span:first-child i {
  background: #9e8cb9;
}
.delivery-steps span:nth-child(2) i {
  width: 60px;
}
.delivery-steps span:nth-child(3) i {
  width: 42px;
}
.delivery-steps span:nth-child(4) i {
  width: 27px;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #7c718f;
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.4px;
  margin-top: 24px;
}
.article-meta time {
  color: #7d8491;
  white-space: nowrap;
}
.article-feature h3,
.article-row h3 {
  font-size: 24px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 13px 0;
}
.article-feature h3 > span,
.article-row h3 > span {
  display: inline-block;
  font-size: 20px;
  margin-left: 14px;
  color: #817192;
  transition: transform 0.2s;
}
.article-feature:hover h3 > span,
.article-row:hover h3 > span {
  transform: translate(3px, -3px);
}
.article-feature > p,
.article-row > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.list-eyebrow {
  display: block;
  font: 10px var(--mono);
  letter-spacing: 1.4px;
  color: #7b8390;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.article-row {
  display: block;
  padding: 5px 0 28px;
  border-bottom: 1px solid var(--line);
}
.article-row + .article-row {
  padding-top: 2px;
}
.article-row h3 {
  font-size: 23px;
}
.all-writing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding-block: 25px;
  color: #6b5a8a;
}
.series-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 64px 0 24px;
}
.series-heading h3 {
  font-size: 18px;
  font-weight: 500;
}
.series-heading .mono {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #818792;
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.series-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.series-card:nth-child(odd) {
  margin-right: 32px;
}
.series-card:nth-child(even) {
  margin-left: 32px;
}
.series-card:hover {
  background: #eeedf43d;
}
.series-symbol {
  font-size: 30px;
  width: 40px;
  flex-shrink: 0;
  text-align: center;
}
.series-card h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}
.series-card p {
  font-size: 11px;
  color: var(--muted);
}
.series-count {
  margin-left: auto;
  font-size: 10px;
  color: #81828d;
  white-space: nowrap;
}
.series-count > span {
  font-size: 17px;
  margin-left: 10px;
}
/* Notes and sign-off */
.notes-section {
  background: #f0eeea;
  border-top: 1px solid #e7e4de;
}
.notes-section .rail-line {
  background: #dcd9d3;
}
.notes-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}
.notes-asterisk {
  display: block;
  color: #9c8e74;
  font-size: 45px;
  line-height: 1;
  margin-bottom: 24px;
}
.notes-intro h2 {
  font-size: 34px;
}
.notes-intro p {
  font-size: 13px;
  line-height: 2;
  color: #7b786f;
  margin: 20px 0;
}
.notes-label {
  font-size: 10px;
  color: #837d70;
  border: 1px solid #d8d0c3;
  padding: 5px 10px;
  border-radius: 4px;
}
.note-row {
  display: block;
  padding: 18px 0 30px;
  border-bottom: 1px solid #d9d6cf;
}
.note-row + .note-row {
  padding-top: 30px;
}
.note-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #827b6d;
  gap: 16px;
}
.note-row blockquote {
  font-size: 20px;
  line-height: 1.9;
  letter-spacing: 0.5px;
  color: #4b4944;
  margin: 22px 0;
}
.note-source {
  display: block;
  font-size: 11px;
  color: #827b6d;
}
.note-source > span {
  margin-left: 10px;
}
.note-row:hover blockquote {
  color: #766340;
}
.portal-footer {
  background: var(--night);
  color: #d6d8e5;
  padding-top: 75px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-bottom: 68px;
}
.footer-main .eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #8f8da8;
}
.footer-main h2 {
  font-size: 38px;
  font-weight: 450;
  line-height: 1.6;
  margin-top: 18px;
}
.footer-main h2 span {
  color: #a894dc;
}
.footer-connect {
  padding-right: 65px;
}
.footer-connect p {
  font-size: 13px;
  color: #8b91a7;
  line-height: 2;
  margin-bottom: 25px;
}
.footer-connect > a {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  border-bottom: 1px solid #8f80b8;
  padding-bottom: 12px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-top: 1px solid #ffffff12;
  padding: 25px 0;
}
.footer-signature {
  font: 500 18px var(--display);
  letter-spacing: -0.7px;
}
.footer-bottom > span {
  font-size: 10px;
  color: #858b9d;
}
.footer-bottom > div {
  display: flex;
  gap: 24px;
  font-size: 10px;
  color: #949aac;
}
.footer-bottom a:hover {
  color: #c4b5f6;
}
@media (min-width: 1800px) {
  .hero-copy {
    max-width: 650px;
  }
  .hero h1 {
    font-size: 58px;
  }
  .hero-name {
    font-size: 114px;
  }
  .hero-description {
    font-size: 17px;
  }
  .space-stage {
    right: 0;
    width: 65%;
  }
  .hero-interests {
    font-size: 10px;
  }
  .hero-coordinate {
    right: max(56px, calc((100vw - 1440px) / 2));
  }
  .hero-inner {
    width: min(1440px, calc(100% - 160px));
  }
  .section-space {
    padding-top: 110px;
    padding-bottom: 110px;
  }
}
@media (max-width: 1100px) {
  .content-width,
  .nav-shell {
    width: calc(100% - 64px);
  }
  .primary-nav {
    gap: 23px;
  }
  .nav-github {
    padding-left: 20px;
  }
  .blog-panel {
    right: 32px;
  }
  .hero {
    min-height: 760px;
  }
  .hero-copy {
    max-width: 460px;
  }
  .hero-name {
    font-size: 76px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-coordinate {
    right: 32px;
  }
  .hero-interests {
    letter-spacing: 0.8px;
    font-size: 8px;
  }
  .about-layout {
    gap: 55px;
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-copy h3 {
    font-size: 25px;
  }
  .project-secondary h3 {
    font-size: 21px;
  }
  .project-research h3 {
    font-size: 20px;
  }
  .project-secondary .project-copy p {
    max-width: 80%;
  }
  .code-motif {
    right: 3%;
    font-size: 52px;
  }
  .stack-motif {
    right: 3%;
    transform: scale(0.75) rotate(-15deg);
  }
  .editorial-grid {
    gap: 40px;
  }
  .series-card {
    gap: 10px;
  }
  .series-card:nth-child(odd) {
    margin-right: 15px;
  }
  .series-card:nth-child(even) {
    margin-left: 15px;
  }
  .series-card p {
    font-size: 10px;
  }
  .notes-layout {
    gap: 50px;
  }
  .footer-connect {
    padding-right: 0;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 86px;
  }
  .content-width,
  .nav-shell {
    width: calc(100% - 40px);
  }
  .nav-shell {
    height: 70px;
  }
  .wordmark {
    font-size: 20px;
  }
  .brand-glyph {
    width: 28px;
    height: 28px;
    font-size: 29px;
  }
  .brand-glyph span {
    font-size: 21px;
  }
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    color: inherit;
    background: none;
    border: 1px solid #ffffff25;
    border-radius: 6px;
  }
  .mobile-toggle span {
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s;
  }
  .mobile-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .mobile-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .is-scrolled .mobile-toggle {
    border-color: var(--line);
  }
  .primary-nav {
    display: none;
  }
  .portal-header.menu-visible .primary-nav {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    background: #111827;
    color: #edeefa;
    border-top: 1px solid #ffffff15;
    box-shadow: 0 20px 50px #0003;
  }
  .primary-nav > .nav-link,
  .blog-disclosure > summary {
    padding: 12px 8px;
    min-height: 52px;
    font-size: 16px;
  }
  .nav-link.is-current:after {
    left: 8px;
    bottom: 7px;
  }
  .nav-github {
    margin: 15px 8px 0;
    padding: 22px 0 8px;
    border-left: 0;
    border-top: 1px solid #ffffff15;
  }
  .blog-disclosure summary {
    justify-content: space-between;
  }
  .blog-panel {
    position: static;
    width: 100%;
    border: 0;
    box-shadow: none;
    padding: 12px 8px;
    background: #151f32;
    border-radius: 6px;
  }
  .blog-panel-heading {
    padding: 5px 0 15px;
  }
  .blog-panel-heading .eyebrow {
    font-size: 8px;
  }
  .blog-panel-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0;
  }
  .blog-panel-grid a {
    min-height: 62px;
  }
  .blog-panel-footer {
    padding-bottom: 5px;
  }
  .hero {
    height: auto;
    min-height: 940px;
    max-height: none;
  }
  .hero-inner {
    height: auto;
    min-height: 560px;
    align-items: flex-start;
    padding-top: 123px;
    padding-bottom: 0;
  }
  .hero-copy {
    max-width: 100%;
    width: 100%;
  }
  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 18px;
  }
  .hero-name {
    font-size: 70px;
    letter-spacing: -4px;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: 38px;
    line-height: 1.5;
    letter-spacing: 1px;
  }
  .hero-description {
    font-size: 13px;
    margin-top: 20px;
  }
  .hero-actions {
    margin-top: 24px;
    gap: 10px;
  }
  .button {
    padding: 11px 18px;
    gap: 20px;
    font-size: 13px;
    min-height: 48px;
  }
  .hero-interests {
    font-size: 8px;
    letter-spacing: 1px;
    margin-top: 28px;
    gap: 10px;
  }
  .space-stage {
    width: 114%;
    height: 390px;
    top: auto;
    bottom: 52px;
    right: -7%;
    mask-image: linear-gradient(
      180deg,
      transparent,
      #000 12%,
      #000 90%,
      transparent
    );
  }
  .hero-coordinate {
    top: 90px;
    right: 20px;
    font-size: 7px;
    letter-spacing: 1px;
    gap: 14px;
    opacity: 0.65;
  }
  .orbital-caption {
    left: auto;
    right: 25px;
    bottom: 125px;
    font-size: 9px;
    gap: 8px;
    letter-spacing: 1px;
  }
  .orbital-caption small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .hero-bottom {
    bottom: 14px;
    gap: 12px;
  }
  .hero-edition {
    display: none;
  }
  .scroll-cue {
    font-size: 10px;
    gap: 10px;
  }
  .scroll-cue .mono {
    font-size: 6px;
    letter-spacing: 1px;
    margin-left: 0;
  }
  .motion-toggle {
    font-size: 9px;
  }
  .section-space {
    padding-top: 60px;
    padding-bottom: 64px;
  }
  .section-rail {
    gap: 15px;
    margin-bottom: 32px;
  }
  .section-index {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  h2 {
    font-size: 30px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 20px;
  }
  .avatar-frame {
    grid-column: 2;
    grid-row: 1;
    margin: 5px 0 0;
    width: 62px;
    height: 62px;
  }
  .about-heading h2 {
    grid-column: 1;
    grid-row: 1;
  }
  .about-heading .text-link {
    margin-top: 10px;
    grid-column: 1/-1;
    justify-self: start;
  }
  .about-lead {
    font-size: 24px;
  }
  .body-copy {
    font-size: 13px;
    margin-top: 15px;
  }
  .desktop-break {
    display: none;
  }
  .principles {
    margin-top: 24px;
    padding-top: 18px;
    gap: 12px;
  }
  .principles p {
    font-size: 10px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .text-link {
    font-size: 12px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-feature {
    min-height: 520px;
  }
  .project-card-top {
    padding: 20px 24px;
  }
  .project-art {
    min-height: 240px;
  }
  .project-copy {
    padding: 20px 24px 26px;
  }
  .project-copy h3 {
    font-size: 27px;
  }
  .project-side {
    gap: 16px;
  }
  .project-secondary {
    min-height: 260px;
  }
  .project-secondary h3 {
    font-size: 22px;
  }
  .project-secondary .project-copy p {
    max-width: none;
  }
  .code-motif {
    right: 9%;
    font-size: 64px;
  }
  .stack-motif {
    right: 8%;
    transform: scale(0.9) rotate(-15deg);
  }
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .article-visual {
    height: 275px;
  }
  .article-feature h3,
  .article-row h3 {
    font-size: 22px;
  }
  .article-row {
    padding-bottom: 22px;
  }
  .article-meta {
    margin-top: 20px;
  }
  .article-list {
    margin-top: 5px;
  }
  .series-heading {
    margin-top: 35px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .series-heading h3 {
    font-size: 17px;
  }
  .series-grid {
    grid-template-columns: 1fr;
  }
  .series-card:nth-child(n) {
    margin: 0;
    padding: 22px 0;
    gap: 12px;
  }
  .series-card h4 {
    font-size: 15px;
  }
  .series-card p {
    font-size: 10px;
  }
  .series-symbol {
    font-size: 27px;
  }
  .series-count {
    font-size: 10px;
  }
  .notes-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .notes-asterisk {
    font-size: 35px;
    margin-bottom: 18px;
  }
  .notes-intro h2 {
    font-size: 29px;
  }
  .notes-intro p {
    font-size: 12px;
    margin-block: 15px;
  }
  .note-row blockquote {
    font-size: 18px;
  }
  .note-meta {
    font-size: 9px;
  }
  .portal-footer {
    padding-top: 50px;
  }
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 40px;
  }
  .footer-main h2 {
    font-size: 32px;
  }
  .footer-connect p {
    font-size: 12px;
    margin-bottom: 16px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding-block: 24px;
  }
  .footer-bottom > span {
    font-size: 9px;
    align-self: center;
  }
  .footer-bottom > div {
    width: 100%;
    margin-top: 6px;
    justify-content: space-between;
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .hero-name {
    font-size: 60px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-interests {
    letter-spacing: 0;
    font-size: 7px;
  }
  .hero-coordinate {
    display: none;
  }
  .hero {
    min-height: 940px;
  }
  .series-card p {
    font-size: 9px;
  }
  .series-symbol {
    width: 28px;
  }
  .project-secondary h3 {
    font-size: 20px;
  }
  .note-meta {
    font-size: 8px;
  }
  .footer-bottom > span {
    font-size: 8px;
  }
}
/* Without JavaScript, expose every navigation entry and keep native details usable. */
@media (max-width: 760px) {
  html:not(.portal-enhanced) .nav-shell {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 18px;
  }
  html:not(.portal-enhanced) .mobile-toggle {
    display: none;
  }
  html:not(.portal-enhanced) .primary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    width: 100%;
  }
  html:not(.portal-enhanced) .primary-nav > .nav-link,
  html:not(.portal-enhanced) .blog-disclosure > summary {
    font-size: 13px;
    padding: 0;
    min-height: 44px;
  }
  html:not(.portal-enhanced) .nav-github {
    border: 0;
    margin: 0;
    padding: 0;
  }
  html:not(.portal-enhanced) .blog-panel {
    position: absolute;
    top: 100%;
    left: 20px;
    width: calc(100% - 40px);
    z-index: 2;
  }
  html:not(.portal-enhanced) .hero-inner {
    padding-top: 190px;
  }
  html:not(.portal-enhanced) .hero-coordinate {
    display: none;
  }
  html:not(.portal-enhanced) .hero {
    min-height: 1020px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .project-card:hover,
  .button:hover {
    transform: none;
  }
  .space-stage {
    opacity: 1 !important;
  }
}
