/* FANDRAL — 影像控制台：墨青海军蓝为主色，琥珀为信号色 */

:root {
  color-scheme: light dark;

  --bg: #f3f1ea;
  --surface: #fbfaf6;
  --surface-2: #eae8df;
  --ink: #0b2230;
  --ink-2: #3b4d59;
  --muted: #52626d;
  --line: #d6d3c7;
  --primary: #0d5a73;
  --primary-ink: #ffffff;
  --primary-soft: #dcebee;
  --accent: #a84d00;
  --accent-soft: #f6e5d2;
  --focus: #a84d00;
  --glass: rgb(243 241 234 / 84%);
  --shadow: 0 1px 0 rgb(11 34 48 / 4%), 0 18px 40px -24px rgb(11 34 48 / 28%);

  --hero-bg: #071820;
  --hero-ink: #eef6f7;
  --hero-muted: #a9c0c8;
  --hero-line: #6fc6d8;
  --hero-accent: #f2a65a;

  --dot-live: #1b8a5a;
  --dot-patent: #c4730f;
  --dot-private: #6b7b86;
  --dot-open: #0d6f8e;
  --dot-research: #7a5cc7;

  --content: 1440px;
  --gutter: clamp(20px, 4vw, 72px);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: Inter, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071820;
    --surface: #0d2530;
    --surface-2: #11303d;
    --ink: #e7f1f3;
    --ink-2: #bdd0d6;
    --muted: #98aeb7;
    --line: #1f3d4b;
    --primary: #6cc9dc;
    --primary-ink: #04202a;
    --primary-soft: #123644;
    --accent: #f2a65a;
    --accent-soft: #3a2a1a;
    --focus: #f2a65a;
    --glass: rgb(7 24 32 / 82%);
    --shadow: 0 1px 0 rgb(255 255 255 / 3%), 0 18px 40px -24px rgb(0 0 0 / 70%);

    --dot-live: #4cc58c;
    --dot-patent: #f2a65a;
    --dot-private: #8ea3ad;
    --dot-open: #6cc9dc;
    --dot-research: #a58df0;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.num,
.project-index,
.method-list .num,
#project-count,
.patent-no {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: var(--r-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  height: 64px;
  padding-inline: var(--gutter);
  color: var(--hero-ink);
  transition: background 240ms var(--ease-out), color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.site-header.is-scrolled {
  background: var(--glass);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.brand {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 36px);
}

.site-header nav a {
  position: relative;
  padding-block: 6px;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 160ms;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--hero-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}

.is-scrolled nav a::after {
  background: var(--accent);
}

.site-header nav a:hover {
  opacity: 1;
}

.site-header nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 220ms var(--ease-out), background 160ms, border-color 160ms, color 160ms;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--hero-accent);
  color: #1d1205;
}

.button-primary:hover {
  background: #ffb870;
}

.button-ghost {
  border-color: rgb(238 246 247 / 40%);
  color: var(--hero-ink);
}

.button-ghost:hover {
  border-color: var(--hero-ink);
}

.button-outline {
  min-height: 40px;
  padding: 0 18px;
  border-color: var(--primary);
  color: var(--primary);
  font-size: 14px;
}

.button-outline:hover {
  background: var(--primary);
  color: var(--primary-ink);
}

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

.contact .button-primary:hover {
  background: var(--ink);
  color: var(--bg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 160ms;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- hero ---------- */

main,
.site-footer {
  width: 100%;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 900px);
  overflow: hidden;
  background: radial-gradient(120% 90% at 78% 40%, #0d3342 0%, var(--hero-bg) 62%);
  color: var(--hero-ink);
  isolation: isolate;
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.04);
  transition: transform 420ms var(--ease-out);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 52%);
}

.hero-field svg {
  width: 100%;
  height: 100%;
}

.contours {
  stroke: var(--hero-line);
  stroke-width: 1.1;
  opacity: 0.4;
}

.contours path:nth-child(3n) {
  stroke-dasharray: 3 7;
}

.reticle {
  stroke: var(--hero-accent);
  stroke-width: 1.6;
}

.reticle .dot {
  fill: var(--hero-accent);
}

.hero-copy {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding: 128px var(--gutter) 112px;
}

.hero-kicker {
  color: var(--hero-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin-top: var(--s3);
  font-size: clamp(64px, 12vw, 176px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 30%, #9fd4e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 22em;
  margin-top: var(--s4);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.35;
}

.hero-identity {
  max-width: 24em;
  margin-top: var(--s2);
  color: var(--hero-line);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.45;
}

.hero-summary {
  max-width: 34em;
  margin-top: var(--s2);
  color: var(--hero-muted);
  font-size: clamp(16px, 1.3vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s5);
}

.hero-note {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s4);
  color: var(--hero-muted);
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* ---------- facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100% - 2 * var(--gutter), var(--content));
  margin: calc(var(--s6) * -1) auto 0;
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.facts > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 148px;
  padding: var(--s4);
}

.facts > div + div {
  border-left: 1px solid var(--line);
}

.facts strong {
  color: var(--primary);
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.facts .num {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1;
}

.facts span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- sections ---------- */

.section,
.contact {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
  padding-block: var(--s7) 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: var(--s4);
  align-items: start;
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-intro > .eyebrow {
  padding-top: 1.6em;
}

.section-intro p:not(.eyebrow) {
  max-width: 36em;
  margin-top: var(--s2);
  color: var(--muted);
  font-size: 17px;
}

/* ---------- filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  padding-block: var(--s4);
}

.filter {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 160ms, color 160ms, border-color 160ms;
}

.filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

#project-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

/* ---------- shared project bits ---------- */

.project-index {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.project-type {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.case-lead {
  margin-top: var(--s1);
  color: var(--accent);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
}

.project-boundary {
  color: var(--muted);
  font-size: 13.5px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.project-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--dot-private));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--dot-private)) 24%, transparent);
}

.status-live { --dot: var(--dot-live); }
.status-patent { --dot: var(--dot-patent); }
.status-private { --dot: var(--dot-private); }
.status-open { --dot: var(--dot-open); }
.status-research { --dot: var(--dot-research); }

/* ---------- case cards ---------- */

.case-list {
  display: grid;
  gap: var(--s3);
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 24vw, 320px);
  grid-template-areas:
    "head art"
    "body art"
    "status art";
  column-gap: var(--s6);
  row-gap: var(--s3);
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 320ms var(--ease-out), border-color 200ms;
}

.case:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.case-head {
  grid-area: head;
  display: grid;
  gap: var(--s1);
}

.case-body {
  grid-area: body;
  display: grid;
  gap: var(--s3);
  align-content: start;
}

.case .project-status {
  grid-area: status;
  justify-self: start;
}

.case-steps {
  display: grid;
  gap: var(--s2);
}

.case-steps > div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}

.case-steps dt {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.case-steps dd {
  color: var(--ink-2);
}

.case-points {
  display: grid;
  gap: var(--s1);
  margin: var(--s1) 0 0;
  padding: 0;
  list-style: none;
}

.case-points li {
  position: relative;
  padding-left: 18px;
}

.case-points li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.case-points strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.case-art {
  grid-area: art;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: auto;
  min-height: 200px;
  padding: var(--s3);
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
    var(--surface-2);
  color: var(--primary);
}

.case-art .art-grid rect,
.case-art .art-box rect,
.case-art .art-ticks circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  opacity: 0.55;
}

.case-art .art-grid rect.on {
  fill: currentColor;
  opacity: 0.85;
}

.case-art .art-line,
.case-art .art-lines path,
.case-art .art-masked path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.case-art .art-lines path {
  opacity: 0.5;
}

.case-art .art-masked path {
  stroke-width: 7;
  opacity: 0.8;
}

.case-art .art-shield {
  fill: color-mix(in srgb, var(--primary) 16%, transparent);
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.case-art .art-dot {
  fill: var(--accent);
}

.case-art .art-gate rect {
  fill: var(--accent);
}

.case-art .art-ring circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
  opacity: 0.6;
}

.case-art .art-core {
  fill: color-mix(in srgb, var(--primary) 22%, transparent);
  stroke: currentColor;
  stroke-width: 2;
}

.case-art .art-beam {
  fill: color-mix(in srgb, var(--accent) 22%, transparent);
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
}

.case-art .art-bone {
  fill: none;
  stroke: currentColor;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}

.case-art .art-bars rect {
  fill: currentColor;
}

.case-art .art-bars .lo { opacity: 0.3; }
.case-art .art-bars .mid { opacity: 0.6; }
.case-art .art-bars .hi { fill: var(--accent); }

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--s3);
  margin-top: var(--s3);
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  grid-column: span 4;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 320ms var(--ease-out), border-color 200ms, box-shadow 200ms;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.tile-wide {
  grid-column: span 8;
}

.tile-w2 {
  grid-column: span 8;
}

.tile-tall {
  grid-row: span 2;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    var(--surface);
}

.tile h3 {
  font-size: clamp(20px, 1.8vw, 24px);
}

.tile > p:not([class]) {
  color: var(--ink-2);
  font-size: 15.5px;
}

.tile .project-status {
  margin-top: auto;
}

/* ---------- method ---------- */

.method-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
  padding-top: var(--s4);
}

.method-list li {
  display: grid;
  align-content: start;
  gap: var(--s2);
  padding-top: var(--s3);
  border-top: 2px solid var(--primary);
}

.method-list .num {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.method-list h3 {
  font-size: 22px;
  line-height: 1.3;
}

.method-list p {
  color: var(--ink-2);
  font-size: 15.5px;
}

.method-list .text-link {
  margin-left: 4px;
}

/* ---------- patents ---------- */

.patent-feature {
  position: relative;
  display: grid;
  gap: var(--s2);
  margin-top: var(--s4);
  padding: var(--s5) var(--s4);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  background:
    linear-gradient(100deg, var(--accent-soft), transparent 60%),
    var(--surface);
  overflow: hidden;
}

.patent-feature::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 0 0 28px color-mix(in srgb, var(--accent) 7%, transparent), 0 0 0 56px color-mix(in srgb, var(--accent) 4%, transparent);
  pointer-events: none;
}

.patent-feature-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}

.patent-feature h3 {
  max-width: 24em;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.patent-badge {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-self: start;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.patent-badge.is-granted {
  background: var(--accent);
  color: var(--bg);
}

.patent-no {
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.patent-role {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
}

.patent-table {
  margin-top: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.patent-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 112px 190px;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3) var(--s4);
  transition: background 200ms;
}

.patent-item + .patent-item {
  border-top: 1px solid var(--line);
}

.patent-item:hover {
  background: var(--primary-soft);
}

.patent-item h3 {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.45;
  font-weight: 600;
}

/* ---------- papers ---------- */

.paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--s5);
  margin-top: var(--s4);
  padding: var(--s5) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 60%),
    var(--surface);
}

.paper-main {
  display: grid;
  align-content: start;
  gap: var(--s3);
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s2);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.paper h3 {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.paper-abstract {
  max-width: 40em;
  color: var(--ink-2);
  font-size: 16.5px;
}

.paper-figures {
  display: grid;
  align-content: center;
  gap: var(--s3);
  padding-left: var(--s4);
  border-left: 1px solid var(--line);
}

.paper-figures strong {
  display: block;
  color: var(--primary);
  font-size: clamp(44px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1;
}

.paper-figures span {
  color: var(--muted);
  font-size: 14px;
}

.paper-figures svg {
  width: 100%;
  max-width: 180px;
  height: auto;
}

.paper-dots circle {
  fill: var(--primary);
  opacity: 0.3;
}

.paper-dots .hit {
  fill: var(--accent);
  opacity: 1;
}

/* ---------- profile ---------- */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
  padding-top: var(--s4);
}

.profile-grid article {
  display: grid;
  align-content: start;
  gap: var(--s2);
  min-height: 260px;
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.profile-grid span {
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.profile-grid h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
}

.profile-grid p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- contact & footer ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s5);
  align-items: center;
  padding-bottom: var(--s7);
}

.contact-copy {
  display: grid;
  justify-items: start;
  gap: var(--s2);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 28em;
  margin-bottom: var(--s2);
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 20px);
}

.contact-qr {
  display: grid;
  gap: var(--s1);
  justify-items: center;
  margin: 0;
}

.qr-frame {
  position: relative;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #ffffff;
}

.qr-frame img {
  position: absolute;
  left: -18.3%;
  top: -60.8%;
  width: 136.7%;
  height: auto;
  max-width: none;
}

.contact-qr figcaption {
  color: var(--muted);
  font-size: 14px;
}

.qr-mobile {
  display: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s5) var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .brand {
  color: var(--ink);
}

/* ---------- services ---------- */

.domains {
  margin-top: var(--s7, 96px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--s3);
  margin-top: var(--s4);
}

.service {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 320ms var(--ease-out), border-color 200ms, box-shadow 200ms;
}

.service:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.has-motion .service.reveal.is-visible:hover {
  transform: translateY(-3px);
}

.service-no {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.service h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.service-rows {
  display: grid;
  gap: var(--s1);
}

.service-rows > div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: var(--s2);
  padding-top: var(--s1);
  border-top: 1px solid var(--line);
}

.service-rows dt {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.service-rows dd {
  color: var(--ink-2);
  font-size: 15.5px;
}

.service-rows > .is-start {
  margin-top: var(--s1);
  padding: 12px var(--s2);
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--accent-soft);
}

.service-rows > .is-start dt {
  color: var(--accent);
}

.service-rows > .is-start dd {
  color: var(--ink);
  font-weight: 600;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s3);
  margin-top: auto;
  padding-top: var(--s1);
  font-size: 14.5px;
}

.related {
  color: var(--muted);
  font-size: 14px;
}

.related .text-link {
  font-size: 14px;
}

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

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

/* ---------- stuck / stages ---------- */

.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}

.stage {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 320ms var(--ease-out), border-color 200ms, box-shadow 200ms;
}

.stage:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.stage-no {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.stage h3 {
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.stage-situation {
  color: var(--muted);
  font-size: 15.5px;
  font-style: normal;
}

.stage-rows {
  display: grid;
  gap: var(--s1);
}

.stage-rows > div {
  display: grid;
  gap: 2px;
  padding-top: var(--s1);
  border-top: 1px solid var(--line);
}

.stage-rows dt {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.stage-rows dd {
  color: var(--ink-2);
  font-size: 15.5px;
}

.stage-rows > .is-out {
  padding: 12px var(--s2);
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--accent-soft);
}

.stage-rows > .is-out dt {
  color: var(--accent);
}

.stage-rows > .is-out dd {
  color: var(--ink);
  font-weight: 600;
}

.stage .button {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- domain cards: pains, details ---------- */

.service-for {
  color: var(--ink-2);
  font-size: 15.5px;
}

.service-for span {
  margin-right: 0.6em;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.pain-head {
  margin-top: var(--s1);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pain-list {
  display: grid;
  gap: var(--s1);
}

.pain-list li {
  display: grid;
  gap: 2px;
  padding-top: var(--s1);
  border-top: 1px solid var(--line);
}

.pain-list strong {
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.4;
}

.pain-list span {
  color: var(--ink-2);
  font-size: 15px;
}

.more {
  display: grid;
  gap: var(--s2);
}

.more > summary {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 8px;
  min-height: 44px;
  padding: 0 var(--s2);
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.more > summary::-webkit-details-marker {
  display: none;
}

.more > summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.more[open] > summary::after {
  content: "\2212";
}

.more > summary:hover {
  background: var(--primary-soft);
}

.more > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.more .when-open,
.more[open] .when-closed {
  display: none;
}

.more[open] .when-open {
  display: inline;
}

.more[open] > summary {
  margin-top: var(--s1);
}

.more-body {
  display: grid;
  gap: var(--s2);
}

.surprise {
  display: grid;
  gap: var(--s1);
  padding: 12px var(--s2);
  border-radius: var(--r-sm);
  background: var(--primary-soft);
  color: var(--ink);
  font-size: 15px;
}

.surprise strong {
  display: block;
  margin-bottom: 2px;
  color: var(--primary);
  font-size: 13.5px;
}

.surprise-list {
  display: grid;
  gap: var(--s1);
  padding-left: 1.1em;
  list-style: disc;
}

.boundary {
  color: var(--muted);
  font-size: 13.5px;
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
  padding: 0;
}

.promises li {
  padding: 12px var(--s2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
}

/* ---------- research flow ---------- */

.flow {
  display: grid;
  gap: var(--s5, 48px);
  margin-top: var(--s4);
}

.flow-stage {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: var(--s4);
  padding-top: var(--s3);
  border-top: 2px solid var(--primary);
}

.flow-stage > h3 {
  display: grid;
  gap: 4px;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
}

.flow-stage > h3 .num {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.flow-items {
  display: grid;
  gap: var(--s3);
}

.flow-item {
  display: grid;
  gap: 4px;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.flow-item h4 {
  font-size: 17px;
  line-height: 1.4;
}

.flow-item p {
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ---------- open ---------- */

.open-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}

.open-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 320ms var(--ease-out), border-color 200ms, box-shadow 200ms;
}

.open-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.open-card h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.25;
}

.open-card > p:not([class]) {
  color: var(--ink-2);
  font-size: 15.5px;
}

.open-card .project-status {
  margin-top: auto;
}

/* ---------- sub page ---------- */

.sub-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 78% 40%, #0d3342 0%, var(--hero-bg) 62%);
  color: var(--hero-ink);
}

.sub-hero-copy {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding: 136px var(--gutter) var(--s7);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hero-muted);
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--hero-ink);
}

.site-header[data-solid] {
  background: var(--bg);
}

.sub-hero .hero-kicker {
  margin-top: 0;
}

.sub-hero h1 {
  max-width: 20em;
  margin-top: var(--s2);
  text-wrap: balance;
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.sub-hero .hero-summary {
  max-width: 38em;
}

.sub-hero .hero-actions {
  margin-top: var(--s4);
}

.sub-grid {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
}

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

.sub-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sub-card {
  display: grid;
  align-content: start;
  gap: var(--s2);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.sub-card h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
}

.sub-card p,
.sub-card li {
  color: var(--ink-2);
  font-size: 15.5px;
}

.sub-card .case-points {
  margin-top: 0;
}

.sub-lead {
  max-width: 44em;
  margin-top: var(--s4);
  color: var(--ink-2);
  font-size: clamp(17px, 1.5vw, 19px);
}

.tick-list {
  display: grid;
  gap: var(--s1);
}

.tick-list li {
  position: relative;
  padding-left: 22px;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.callout {
  margin-top: var(--s4);
  padding: var(--s3) var(--s4);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.faq {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
}

.faq > div {
  padding-top: var(--s2);
  border-top: 2px solid var(--primary);
}

.faq dt {
  font-size: 19px;
  font-weight: 700;
}

.faq dd {
  margin-top: var(--s1);
  max-width: 44em;
  color: var(--ink-2);
}

/* ---------- motion ---------- */

.has-motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out) var(--reveal-delay, 0ms), transform 700ms var(--ease-out) var(--reveal-delay, 0ms);
}

.has-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.has-motion .case.reveal.is-visible:hover,
.has-motion .tile.reveal.is-visible:hover {
  transform: translateY(-3px);
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts > div:nth-child(3) {
    border-left: 0;
  }

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

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

  .steps,
  .open-grid,
  .sub-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .tile {
    grid-column: span 1;
  }

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

  .tile-w2 {
    grid-column: span 1;
  }

  .tile-tall {
    grid-row: auto;
  }

  .patent-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: var(--s1) var(--s3);
  }

  .patent-item h3 {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .patent-item .patent-role,
  .patent-item .patent-no {
    grid-column: 1;
  }

  .paper {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .paper-figures {
    grid-template-columns: repeat(2, auto) 1fr;
    align-items: end;
    padding: var(--s3) 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .case {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "art"
      "head"
      "body"
      "status";
    padding: var(--s4) var(--s3);
    row-gap: var(--s2);
  }

  .case-art {
    min-height: 0;
    max-height: 180px;
    padding: var(--s2);
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  .section-intro > .eyebrow {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header nav a:nth-child(n + 2):not(:last-child) {
    display: none;
  }

  .service-grid,
  .stage-grid,
  .modes,
  .steps,
  .open-grid,
  .sub-grid.cols-2,
  .sub-grid.cols-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .service,
  .stage {
    padding: var(--s3);
  }

  .service-rows > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .open-card,
  .sub-card {
    padding: var(--s3);
  }

  .sub-hero-copy {
    padding: 112px var(--gutter) var(--s6);
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
  }

  .qr-desktop {
    display: none;
  }

  .qr-mobile {
    display: inline;
  }

  .hero {
    min-height: min(100svh, 820px);
    align-items: flex-end;
  }

  .hero-field {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  }

  .hero-copy {
    padding: 112px var(--gutter) 96px;
  }

  .hero-note {
    left: var(--gutter);
    right: auto;
    bottom: var(--s3);
    font-size: 11px;
  }

  .facts {
    margin-top: calc(var(--s5) * -1);
  }

  .facts > div {
    min-height: 120px;
    padding: var(--s3) var(--s2);
  }

  .section,
  .contact {
    padding-top: var(--s6);
  }

  .bento,
  .method-list,
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile-wide {
    grid-column: span 1;
  }

  .tile {
    padding: var(--s3);
  }

  .case-steps > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .patent-feature,
  .paper {
    padding: var(--s4) var(--s3);
  }

  .patent-feature::after {
    right: -90px;
    top: -90px;
    width: 160px;
    height: 160px;
    box-shadow: 0 0 0 20px color-mix(in srgb, var(--accent) 6%, transparent);
  }

  .patent-item {
    grid-template-columns: 1fr;
    padding: var(--s3);
  }

  .patent-item h3,
  .patent-item .patent-role,
  .patent-item .patent-no {
    grid-column: 1;
    grid-row: auto;
  }

  .paper-figures {
    grid-template-columns: 1fr 1fr;
  }

  .paper-figures svg {
    grid-column: 1 / -1;
  }

  .profile-grid article {
    min-height: 0;
  }

  #project-count {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: var(--s1);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .flow-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s2);
  }

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