/* =========================================================
   Croseek · Coming Soon
   Restrained Apple / editorial enterprise design system
   ========================================================= */
:root {
  --ink: #1d1d1f;
  --ink-2: #525866;
  --muted: #868e96;
  --line: #e8eaee;
  --line-strong: #dcdfe6;
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --blue: #0071e3;
  --blue-hover: #0062c4;
  --blue-soft: rgba(0, 113, 227, 0.08);
  --navy: #112d54;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 20px rgba(16, 24, 40, 0.04);
  --shadow-float: 0 16px 44px rgba(16, 24, 40, 0.065), 0 2px 6px rgba(16, 24, 40, 0.03);
  --shadow-nav: 0 8px 28px rgba(16, 24, 40, 0.055), 0 1px 2px rgba(16, 24, 40, 0.03);

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}

p {
  text-wrap: pretty;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.22);
  border-radius: 8px;
}

::selection {
  background: rgba(0, 113, 227, 0.14);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 840px;
}

[data-i18n] {
  transition: opacity 0.16s var(--ease);
}

html.is-switching [data-i18n] {
  opacity: 0;
}

/* ---------- Dormant status dot ---------- */
.dot-dormant {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b2b9c5;
  flex: none;
  animation: dormantBreathe 3.8s var(--ease) infinite;
}

@keyframes dormantBreathe {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

/* =========================================================
   Floating Executive Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 0;
  pointer-events: none;
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(36px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  pointer-events: none;
  z-index: -1;
}

.nav.is-scrolled::before {
  opacity: 1;
}

.nav-shell {
  pointer-events: auto;
  max-width: 1120px;
  height: 52px;
  margin: 0 auto;
  padding: 0 12px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0);
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease), backdrop-filter 0.28s var(--ease);
}

.nav.is-scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(16, 24, 40, 0.08);
  box-shadow: var(--shadow-nav);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

@media (hover: hover) {
  .nav-link:hover {
    color: var(--ink);
    background: rgba(16, 24, 40, 0.045);
  }
}

.nav-link.is-active {
  color: var(--ink);
  font-weight: 600;
  background: rgba(16, 24, 40, 0.055);
}

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #e6e8ec;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 500;
  color: #8c94a0;
  user-select: none;
  cursor: default;
}

.lang-switch {
  display: inline-flex;
  height: 30px;
  padding: 2.5px;
  border-radius: 999px;
  background: #eff0f3;
}

.lang-switch button {
  min-width: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.lang-switch button[aria-pressed='true'] {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

@media (hover: hover) {
  .lang-switch button:hover:not([aria-pressed='true']) {
    color: var(--ink);
  }
}

/* =========================================================
   Section 1: Hero (Pure White Restraint)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 104px;
  background: var(--surface);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform, opacity;
}

.hero-logo {
  width: clamp(108px, 13.5vw, 160px);
  height: auto;
  margin-bottom: 34px;
  overflow: visible;
}

.hero-title {
  font-size: clamp(52px, 8.6vw, 100px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.038em;
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  color: #2d3138;
  letter-spacing: 0.01em;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #e6e8ec;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 500;
  color: #8c94a0;
  user-select: none;
  cursor: default;
}

.hero-pill .sep {
  width: 1px;
  height: 11px;
  background: #d8dce3;
}

.hero-tagline {
  margin-top: 26px;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.015em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b4bcc8;
  transition: color 0.18s var(--ease), opacity 0.25s var(--ease), transform 0.22s var(--ease);
}

@media (hover: hover) {
  .scroll-cue:hover {
    color: var(--ink);
    transform: translate(-50%, 3px);
  }
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero intro animation */
.js .lg {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.js .lg-navy {
  transform: translate(-36px, -28px);
}

.js .lg-blue {
  transform: translate(36px, 28px);
}

.js .lg-ov1,
.js .lg-ov2 {
  transform: scale(0.7);
}

.js.is-loaded .lg {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.95s var(--ease-out);
}

.js.is-loaded .lg-navy {
  transition-delay: 0.06s;
}

.js.is-loaded .lg-blue {
  transition-delay: 0.16s;
}

.js.is-loaded .lg-ov1 {
  transition-delay: 0.52s;
}

.js.is-loaded .lg-ov2 {
  transition-delay: 0.62s;
}

.js .intro {
  opacity: 0;
  transform: translateY(14px);
}

.js .scroll-cue.intro {
  transform: translate(-50%, 10px);
}

.js.is-loaded .intro {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease-out) var(--d, 0s), transform 0.85s var(--ease-out) var(--d, 0s);
}

.js.is-loaded .scroll-cue.intro {
  transform: translateX(-50%);
}

/* =========================================================
   Shared Section Layout
   ========================================================= */
.section {
  padding: clamp(80px, 10.5vw, 140px) 0;
  scroll-margin-top: 64px;
}

.section-tinted {
  background: var(--canvas);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.section-head-left {
  text-align: left;
}

.section-head h2 {
  font-size: clamp(25px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section-head p {
  margin-top: 12px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--muted);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s var(--ease-out) var(--d, 0s), transform 0.82s var(--ease-out) var(--d, 0s);
}

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

/* =========================================================
   Section 2: Centered Search Showcase
   ========================================================= */
.search-stage {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.composer {
  border: 1px solid #e4e6eb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.composer-input {
  min-height: 116px;
  padding: 24px 26px 10px;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.08em;
  margin-left: 2px;
  vertical-align: -0.16em;
  background: var(--blue);
  border-radius: 1px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid #f1f2f5;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #f0f1f4;
}

.seg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.seg-item em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
}

.seg-item.is-active {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.composer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e4e6eb;
  border-radius: 9px;
  background: #ffffff;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

.ghost-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  transition: transform 0.2s var(--ease-out), background-color 0.18s var(--ease);
}

.round-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.round-btn.is-pressed {
  transform: scale(0.88);
  background: var(--blue-hover);
}

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

.mode-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 4px 4px;
  border: 0;
  border-top: 1.5px solid #e1e4ea;
  background: transparent;
  text-align: left;
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.mode-note:active {
  opacity: 0.72;
}

.mode-note.is-active {
  border-top-color: var(--blue);
}

.mode-note-title {
  font-size: 15.5px;
  font-weight: 650;
  color: #7c8491;
  transition: color 0.18s var(--ease);
}

.mode-note.is-active .mode-note-title {
  color: var(--ink);
}

@media (hover: hover) {
  .mode-note:hover .mode-note-title {
    color: var(--ink);
  }
}

.mode-note-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #939aa6;
  transition: color 0.18s var(--ease);
}

.mode-note.is-active .mode-note-desc {
  color: var(--ink-2);
}

/* =========================================================
   Section 3: Flat Interactive Capabilities Showcase
   (Zero nested cards — direct hairline architectural canvas)
   ========================================================= */
.cap-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 52px;
  align-items: stretch;
}

.cap-tabs-mobile,
.cap-desc-mobile {
  display: none;
}

.cap-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.cap-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 25px 12px 25px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: background-color 0.2s var(--ease);
}

@media (hover: hover) {
  .cap-item:hover {
    background: rgba(245, 245, 247, 0.55);
  }
}

.cap-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  overflow: hidden;
}

.cap-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform-origin: top center;
  transform: scaleY(0);
}

.cap-item.is-active .cap-progress {
  background: rgba(0, 113, 227, 0.14);
}

.cap-item.is-active .cap-progress i {
  transform: scaleY(1);
  transition: transform 0.35s var(--ease-out);
}

.cap-item.is-active.is-auto .cap-progress i {
  animation: capFill 6.2s linear forwards;
}

@keyframes capFill {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.cap-name {
  font-size: 18.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #828995;
  transition: color 0.18s var(--ease);
}

.cap-item.is-active .cap-name {
  color: var(--ink);
}

@media (hover: hover) {
  .cap-item:hover .cap-name {
    color: var(--ink);
  }
}

.cap-desc {
  font-size: 14.5px;
  line-height: 1.68;
  color: #9ba2ae;
  transition: color 0.18s var(--ease);
}

.cap-item.is-active .cap-desc {
  color: var(--ink-2);
}

/* Right: ONE flat hairline canvas (no nested white cards) */
.cap-stage {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafbfc;
  padding: 32px 34px;
  overflow: hidden;
}

.cap-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.32s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s linear 0.32s;
}

.cap-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.36s var(--ease-out), transform 0.44s var(--ease-out), visibility 0s;
}

/* ---- Panel 0: Flat Interactive Profile Inspector ---- */
.flat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.flat-title {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.flat-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.flat-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  white-space: nowrap;
}

.flat-table {
  display: flex;
  flex-direction: column;
}

.flat-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 15px 12px;
  border: 0;
  border-bottom: 1px solid #eef0f4;
  background: transparent;
  text-align: left;
  transition: background-color 0.16s var(--ease);
}

.flat-row:last-child {
  border-bottom: 0;
}

.flat-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.16s var(--ease);
}

.flat-row.is-selected {
  background: rgba(0, 113, 227, 0.045);
}

.flat-row.is-selected::before {
  opacity: 1;
}

@media (hover: hover) {
  .flat-row:hover:not(.is-selected) {
    background: rgba(16, 24, 40, 0.025);
  }
}

.f-key {
  width: 48px;
  flex: none;
  font-size: 12.5px;
  color: var(--muted);
}

.f-val {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.f-arrow {
  font-size: 13px;
  color: #c2c8d2;
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.flat-row.is-selected .f-arrow {
  color: var(--blue);
  transform: translateX(2px);
}

.flat-foot {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.foot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}

/* ---- Panel 1: Flat Interactive Evidence Tracer ---- */
.ev-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.ev-pick {
  height: 32px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

@media (hover: hover) {
  .ev-pick:hover:not(.is-selected) {
    color: var(--ink);
    background: rgba(16, 24, 40, 0.035);
  }
}

.ev-pick.is-selected {
  background: var(--blue-soft);
  border-color: rgba(0, 113, 227, 0.18);
  color: var(--blue);
  font-weight: 600;
}

.ev-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 22px;
  gap: 20px;
}

.ev-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ev-src {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.ev-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.ev-quote {
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--blue);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  transition: opacity 0.18s var(--ease);
}

.ev-quote.is-fading {
  opacity: 0;
}

.ev-field-bar {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ev-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
}

.ev-hint {
  font-size: 12px;
  color: var(--muted);
}

/* ---- Panel 2: Flat Interactive Company Network ---- */
.net-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.net-info {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.net-filters {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: #eff0f3;
}

.net-f {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}

.net-f.is-active {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.net-svg {
  width: 100%;
  height: auto;
  margin: 8px 0;
}

.net-edge {
  stroke-linecap: round;
  transition: opacity 0.22s var(--ease), stroke-width 0.18s var(--ease);
}

.net-edge.is-solid {
  stroke: var(--blue);
  stroke-width: 1.75;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 0.8s var(--ease-out) 0.08s, opacity 0.22s var(--ease),
    stroke-width 0.18s var(--ease);
}

.cap-panel.is-active .net-edge.is-solid {
  stroke-dashoffset: 0;
}

.net-edge.is-dashed {
  stroke: #bfc6d2;
  stroke-width: 1.35;
  stroke-dasharray: 4 5;
}

.net-edge.is-dimmed {
  opacity: 0.14;
}

.net-edge.is-emph {
  stroke-width: 2.5;
}

.net-node {
  cursor: pointer;
  outline: none;
  transition: opacity 0.22s var(--ease);
}

.net-node.is-dimmed {
  opacity: 0.2;
}

.net-node .ring {
  transition: stroke-width 0.16s var(--ease), filter 0.16s var(--ease);
}

.net-node.is-active .ring {
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(0, 113, 227, 0.28));
}

.net-legend {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--ink-2);
}

.net-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.net-legend em {
  font-style: normal;
}

.leg-solid {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.leg-dashed {
  width: 18px;
  height: 0;
  border-top: 1.5px dashed #adb5c2;
}

/* ---- Panel 3: Flat Interactive Search & Shortlist ---- */
.list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.lf-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease);
}

.lf-btn.is-active {
  border-color: rgba(0, 113, 227, 0.25);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.flat-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 8px;
  border: 0;
  border-bottom: 1px solid #eef0f4;
  background: transparent;
  text-align: left;
  transition: background-color 0.16s var(--ease);
}

.fl-row:last-child {
  border-bottom: 0;
}

.fl-row[hidden] {
  display: none;
}

@media (hover: hover) {
  .fl-row:hover {
    background: rgba(16, 24, 40, 0.025);
  }
}

.l-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #cbd2dc;
  background: #ffffff;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.fl-row.is-checked .l-check {
  border-color: var(--blue);
  background: var(--blue);
}

.l-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.14s var(--ease), transform 0.16s var(--ease-out);
}

.fl-row.is-checked .l-check svg {
  opacity: 1;
  transform: none;
}

.l-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.l-loc {
  flex: none;
  font-size: 12.5px;
  color: var(--muted);
}

.flat-list-foot {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-count {
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.list-cta {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color 0.16s var(--ease), opacity 0.16s var(--ease),
    transform 0.16s var(--ease);
}

.list-cta:active {
  transform: scale(0.97);
}

.list-cta:disabled {
  opacity: 0.42;
  cursor: default;
}

.list-cta.is-saved {
  background: #1d1d1f;
}

/* =========================================================
   Section 4: Architectural Typographic Pipeline
   (Zero hover-out delay: entrance uses keyframes, hover uses 0s-delay transition)
   ========================================================= */
.pipeline {
  position: relative;
  padding-top: 2px;
}

.pipe-track {
  position: relative;
  height: 1px;
  background: #dfe2e8;
  overflow: hidden;
}

.pipe-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.25s var(--ease-out) 0.06s;
}

.pipeline.is-active .pipe-track i {
  transform: scaleX(1);
}

.pipe-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
}

.pipe-step {
  position: relative;
  padding-top: 34px;
}

/* Instant 0s-delay hover transitions; entrance uses one-shot keyframe */
.pipe-dot {
  position: absolute;
  left: 0;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #cbd2dc;
  background: var(--canvas);
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}

.pipeline.is-active .pipe-dot {
  border-color: var(--blue);
  background: #ffffff;
  animation: pipeDotIn 0.4s var(--ease-out) calc(var(--i, 0) * 0.22s + 0.08s) backwards;
}

@keyframes pipeDotIn {
  from {
    border-color: #cbd2dc;
    background: var(--canvas);
    transform: scale(0.75);
  }
  to {
    border-color: var(--blue);
    background: #ffffff;
    transform: none;
  }
}

.pipe-num {
  display: block;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #b4bcc8;
  transition: color 0.16s var(--ease);
}

@media (hover: hover) {
  .pipe-step:hover .pipe-dot {
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.14);
  }

  .pipe-step:hover .pipe-num {
    color: var(--blue);
  }
}

.pipe-step h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.pipe-step p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.js .pipe-step .pipe-num,
.js .pipe-step h3,
.js .pipe-step p {
  opacity: 0;
}

.js .pipeline.is-active .pipe-step .pipe-num,
.js .pipeline.is-active .pipe-step h3,
.js .pipeline.is-active .pipe-step p {
  opacity: 1;
  animation: pipeTextIn 0.65s var(--ease-out) calc(var(--i, 0) * 0.22s + 0.1s) backwards;
}

@keyframes pipeTextIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Minimal Footer
   ========================================================= */
.footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   Tablet & Mobile (Thumb-first polish)
   ========================================================= */
@media (max-width: 860px) {
  .container {
    padding: 0 20px;
  }

  .nav {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 0;
  }

  .nav-shell {
    height: 48px;
    padding: 0 8px 0 14px;
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  /* Section 3: Thumb-friendly tabs + auto-height flat canvas */
  .cap-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cap-index {
    display: none;
  }

  .cap-tabs-mobile {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: var(--canvas);
  }

  .cap-tab {
    height: 38px;
    padding: 0 6px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
      box-shadow 0.18s var(--ease);
  }

  .cap-tab.is-active {
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
  }

  .cap-desc-mobile {
    display: block;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-2);
  }

  .cap-stage {
    padding: 20px;
    border-radius: 16px;
  }

  /* On mobile, collapse inactive panels so stage fits exact content height cleanly */
  .cap-panel {
    display: none;
    grid-area: auto;
    transform: none;
  }

  .cap-panel.is-active {
    display: flex;
    animation: mobileFadeIn 0.28s var(--ease-out);
  }

  @keyframes mobileFadeIn {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  /* Section 4: Crisp left-rail vertical timeline */
  .pipe-track {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 4px;
    width: 1px;
    height: auto;
  }

  .pipe-track i {
    background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 100%);
    transform-origin: center top;
    transform: scaleY(0);
  }

  .pipeline.is-active .pipe-track i {
    transform: scaleY(1);
  }

  .pipe-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 26px;
  }

  .pipe-step {
    padding-top: 0;
  }

  .pipe-dot {
    left: -26px;
    top: 8px;
  }

  .pipe-num {
    font-size: 24px;
  }

  .pipe-step h3 {
    margin-top: 6px;
    font-size: 16.5px;
  }

  .pipe-step p {
    margin-top: 8px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .status-pill {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 80px 20px 84px;
  }

  .hero-logo {
    width: 102px;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: 50px;
  }

  .hero-sub {
    margin-top: 14px;
    font-size: 16.5px;
  }

  .hero-pill {
    margin-top: 22px;
    height: 32px;
    font-size: 12.5px;
  }

  .hero-tagline {
    margin-top: 20px;
    font-size: 14px;
  }

  .composer {
    border-radius: 16px;
  }

  .composer-input {
    min-height: 98px;
    padding: 18px 16px 8px;
    font-size: 15px;
  }

  .composer-bar {
    padding: 10px 12px 12px;
  }

  .seg-item {
    height: 34px;
    padding: 0 12px;
  }

  .ghost-btn {
    display: none;
  }

  .mode-notes {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mode-note {
    padding-top: 12px;
  }

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

  .cap-tab {
    height: 40px;
  }

  .cap-stage {
    padding: 18px 16px;
  }

  .flat-title {
    font-size: 16px;
  }

  .flat-row {
    padding: 13px 8px;
    gap: 12px;
  }

  .f-val {
    font-size: 13.5px;
  }

  .ev-pick {
    height: 34px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .ev-quote {
    font-size: 14.5px;
    padding-left: 14px;
  }

  .ev-hint {
    display: none;
  }

  .net-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .fl-row {
    padding: 13px 4px;
  }

  .l-name {
    font-size: 13.5px;
  }
}

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

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

  .js .lg,
  .js .intro,
  .js .reveal,
  .js .pipe-step .pipe-num,
  .js .pipe-step h3,
  .js .pipe-step p {
    opacity: 1 !important;
    transform: none !important;
  }

  .js .scroll-cue.intro {
    transform: translateX(-50%) !important;
  }

  .pipe-track i {
    transform: none !important;
  }

  .net-edge.is-solid {
    stroke-dashoffset: 0 !important;
  }
}
