:root,
:root[data-theme="light"] {
  --ice: #edf5f7;
  --paper: #fbfdfe;
  --ink: #071b2b;
  --navy: #0b3049;
  --cyan: #22a8cb;
  --focus: var(--navy);
  --line: #cadbe2;
  --n9-sans: "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", sans-serif;
  --n9-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

/* Dark palette: forced choice and system-follow default stay adjacent by design. */
:root[data-theme="dark"] {
  --ice: #142534;
  --paper: #0d1723;
  --ink: #eef2f3;
  --navy: #9abed2;
  --cyan: #35b8d8;
  --focus: var(--cyan);
  --line: #293d4b;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --ice: #142534;
    --paper: #0d1723;
    --ink: #eef2f3;
    --navy: #9abed2;
    --cyan: #35b8d8;
    --focus: var(--cyan);
    --line: #293d4b;
    color-scheme: dark;
  }
}

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

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--n9-sans);
  font-size: 16px;
  font-variant-east-asian: proportional-width;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

.n9-svg-sprite,
.n9-avatar-preload {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.n9-skip-link {
  position: fixed;
  z-index: 400;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  border: 2px solid var(--cyan);
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.n9-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px);
}

.n9-header-row {
  display: grid;
  min-height: 68px;
  align-items: center;
  gap: 24px;
  grid-template-columns: auto 1fr;
}

.n9-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.n9-brand-name {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.n9-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  padding: 3px;
  background: var(--navy);
  gap: 2px;
  grid-template-columns: repeat(3, 1fr);
}

.n9-mark > i {
  display: block;
  background: var(--paper);
}

.n9-mark > i:nth-child(5) {
  background: var(--cyan);
}

.n9-nav {
  display: flex;
  min-width: 0;
  align-self: stretch;
  align-items: stretch;
  justify-content: flex-end;
  gap: 28px;
}

.n9-nav a,
.n9-nav-button {
  position: relative;
  display: inline-grid;
  min-width: 58px;
  min-height: 44px;
  place-items: center;
  padding: 0 4px;
  color: color-mix(in srgb, var(--ink) 72%, var(--paper));
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.n9-nav-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--n9-mono);
  letter-spacing: 0.04em;
}

.n9-nav-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.n9-language-toggle {
  font-size: 12px;
  font-weight: 650;
}

.n9-nav a::after,
.n9-nav-button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--focus);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 160ms ease, transform 160ms ease;
}

.n9-nav a:hover,
.n9-nav a:focus-visible,
.n9-nav-button:hover,
.n9-nav-button:focus-visible {
  color: var(--navy);
}

.n9-nav a:hover::after,
.n9-nav a:focus-visible::after,
.n9-nav-button:hover::after,
.n9-nav-button:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.n9-hero {
  display: grid;
  min-height: calc(100svh - 68px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(48px, 7vw, 108px);
  padding-block: clamp(64px, 9vw, 108px);
  grid-template-columns: minmax(0, 1fr) clamp(180px, 22vw, 260px);
}

.n9-hero-copy {
  min-width: 0;
}

.n9-section-code,
.n9-identity,
.n9-footer-code {
  font-family: var(--n9-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.n9-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(50px, 4.8vw, 68px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.n9-hero h1 small {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-family: var(--n9-mono);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.4;
}

.n9-identity {
  margin: 28px 0 0;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.025em;
}

.n9-statement {
  margin: 15px 0 0;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-wrap: balance;
}

.n9-intro {
  max-width: 330px;
  margin: 22px 0 0;
  color: color-mix(in srgb, var(--ink) 72%, var(--paper));
  font-size: 15px;
}

.n9-social-arrow,
.n9-contact-arrow,
.n9-venture-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.n9-hero-visual {
  width: 100%;
}

.n9-calibration {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1px;
}

.n9-grid-cell {
  display: grid;
  min-width: 0;
  place-items: center;
  border: 0;
  background-color: var(--paper);
  background-repeat: no-repeat;
}

.n9-grid-cell:nth-child(5) {
  background: var(--navy);
  color: var(--paper);
}

.n9-grid-cell b {
  max-width: 90%;
  overflow: hidden;
  font-family: var(--n9-mono);
  font-size: clamp(14px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.n9-calibration.has-avatar .n9-grid-cell {
  position: relative;
  overflow: hidden;
  background-color: var(--paper);
}

.n9-avatar-tile {
  position: absolute;
  width: 300%;
  max-width: none;
  height: 300%;
}

.n9-grid-cell:nth-child(1) .n9-avatar-tile { top: 0; left: 0; }
.n9-grid-cell:nth-child(2) .n9-avatar-tile { top: 0; left: -100%; }
.n9-grid-cell:nth-child(3) .n9-avatar-tile { top: 0; left: -200%; }
.n9-grid-cell:nth-child(4) .n9-avatar-tile { top: -100%; left: 0; }
.n9-grid-cell:nth-child(5) .n9-avatar-tile { top: -100%; left: -100%; }
.n9-grid-cell:nth-child(6) .n9-avatar-tile { top: -100%; left: -200%; }
.n9-grid-cell:nth-child(7) .n9-avatar-tile { top: -200%; left: 0; }
.n9-grid-cell:nth-child(8) .n9-avatar-tile { top: -200%; left: -100%; }
.n9-grid-cell:nth-child(9) .n9-avatar-tile { top: -200%; left: -200%; }

.n9-calibration.has-avatar .n9-grid-cell b {
  visibility: hidden;
}

.n9-section {
  display: grid;
  gap: clamp(36px, 7vw, 82px);
  padding-block: clamp(62px, 9vw, 104px);
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1.62fr);
}

.n9-section-label {
  align-self: start;
}

.n9-section-code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.n9-section-code::before {
  width: 18px;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.n9-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.n9-section h2 span {
  display: block;
  margin-top: 7px;
  color: color-mix(in srgb, var(--ink) 64%, var(--paper));
  font-family: var(--n9-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.n9-section-body {
  min-width: 0;
}

.n9-section-body > p {
  max-width: 720px;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 72%, var(--paper));
}

.n9-section-body .n9-section-lead,
.n9-section-body .n9-about-lead {
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.35;
  text-wrap: balance;
}

.n9-venture-list,
.n9-social-list,
.n9-contact-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.n9-venture-list {
  gap: 1px;
  background: var(--line);
  grid-template-columns: 1fr;
}

.n9-venture-entry {
  display: grid;
  min-width: 0;
  gap: 1px;
  background: var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.n9-venture-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
}

.n9-venture-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--line);
}

.n9-venture-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n9-venture-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.n9-venture-heading h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.n9-venture-heading h3 small {
  display: block;
  margin-top: 7px;
  color: color-mix(in srgb, var(--ink) 62%, var(--paper));
  font-family: var(--n9-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.n9-venture-status {
  flex: none;
  padding: 4px 8px;
  border: 1px solid var(--cyan);
  color: var(--navy);
  font-family: var(--n9-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.n9-venture-card > p {
  margin: 26px 0 0;
  color: color-mix(in srgb, var(--ink) 72%, var(--paper));
  font-size: 14px;
}

.n9-venture-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--navy);
  font-family: var(--n9-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-underline-offset: 4px;
}

.n9-social-list,
.n9-contact-list {
  gap: 1px;
  background: var(--line);
}

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

.n9-hero-copy .n9-social-list {
  gap: 8px;
  margin-top: 30px;
  background: transparent;
}

.n9-hero-copy .n9-social-primary {
  grid-column: auto;
}

.n9-hero-copy .n9-social-link,
.n9-hero-copy .n9-social-handle {
  min-height: 82px;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
}

.n9-hero-copy .n9-social-primary .n9-social-link,
.n9-hero-copy .n9-social-primary .n9-social-handle {
  border-color: var(--cyan);
  background: var(--ice);
}

.n9-hero-copy .n9-social-icon {
  width: 32px;
}

.n9-hero-copy .n9-social-name {
  font-size: 14px;
}

.n9-hero-copy .n9-social-arrow {
  width: 14px;
  height: 14px;
}

.n9-social-primary {
  grid-column: 1 / -1;
}

.n9-social-list > li,
.n9-contact-list > li {
  min-width: 0;
}

.n9-social-link,
.n9-social-handle,
.n9-contact-link,
.n9-contact-value-only {
  display: grid;
  min-height: 116px;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--paper);
  color: var(--ink);
  grid-template-columns: auto minmax(0, 1fr) auto;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.n9-social-link:hover,
.n9-contact-link:hover {
  background: var(--ice);
  color: var(--navy);
}

.n9-social-icon,
.n9-contact-icon {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  background: var(--navy);
  color: var(--paper);
}

.n9-social-icon svg,
.n9-contact-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.n9-social-name,
.n9-contact-name,
.n9-social-value,
.n9-contact-value {
  display: block;
}

.n9-social-name,
.n9-contact-name {
  font-size: 16px;
  font-weight: 750;
}

.n9-social-value,
.n9-contact-value {
  overflow: hidden;
  color: color-mix(in srgb, var(--ink) 72%, var(--paper));
  font-family: var(--n9-mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.n9-social-handle,
.n9-contact-value-only {
  grid-template-columns: auto minmax(0, 1fr);
}

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

.n9-empty-note {
  padding: 18px 20px;
  border-left: 3px solid var(--cyan);
  background: var(--ice);
  color: var(--navy) !important;
  font-family: var(--n9-mono);
  font-size: 12px;
}

.n9-about-copy {
  display: grid;
  max-width: 780px;
  gap: 0;
}

.n9-about-copy #about-detail {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.n9-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
}

.n9-footer-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.n9-footer-inner p {
  margin: 0;
}

.n9-footer-code {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.n9-noscript {
  position: fixed;
  z-index: 350;
  right: 16px;
  bottom: 16px;
  left: 16px;
  margin: 0;
  padding: 14px 16px;
  border: 2px solid var(--cyan);
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 980px) {
  .n9-hero {
    gap: 36px;
    padding-block: 56px;
    grid-template-columns: minmax(0, 1fr) clamp(180px, 22vw, 220px);
  }

  .n9-hero-copy {
    max-width: none;
  }

  .n9-intro {
    max-width: 520px;
    margin-top: 18px;
  }

  .n9-hero-visual {
    justify-self: end;
  }

  .n9-hero-copy .n9-social-list {
    max-width: 420px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .n9-shell {
    width: min(100% - 30px, 1180px);
  }

  .n9-header-row {
    grid-template-columns: 1fr;
    min-height: 64px;
    gap: 0;
    padding-block: 9px 5px;
  }

  .n9-brand-name {
    font-size: 15px;
  }

  .n9-nav {
    min-height: 42px;
    justify-content: flex-start;
    gap: clamp(14px, 5vw, 28px);
    overflow-x: auto;
  }

  .n9-nav a,
  .n9-nav-button {
    min-width: auto;
    font-size: 13px;
    white-space: nowrap;
  }

  .n9-nav-button {
    width: 40px;
  }

  .n9-hero {
    display: block;
    min-height: 0;
    padding-block: 48px 64px;
  }

  .n9-hero h1 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .n9-hero-visual {
    width: min(220px, 64vw);
    margin: 34px auto 0;
  }

  .n9-section {
    display: block;
    padding-block: 58px;
  }

  .n9-section-label {
    margin-bottom: 30px;
  }

  .n9-social-list,
  .n9-contact-list {
    grid-template-columns: 1fr;
  }

  .n9-social-primary {
    grid-column: auto;
  }

  .n9-social-link,
  .n9-social-handle,
  .n9-contact-link,
  .n9-contact-value-only {
    min-height: 92px;
  }
}

@media (max-width: 500px) {
  .n9-shell {
    width: calc(100% - 24px);
  }

  html {
    scroll-padding-top: 112px;
  }

  .n9-mark {
    width: 26px;
    height: 26px;
  }

  .n9-hero-visual {
    margin-top: 30px;
  }

  .n9-grid-cell b {
    font-size: clamp(14px, 6vw, 26px);
  }

  .n9-venture-entry {
    grid-template-columns: 1fr;
  }

  .n9-venture-media {
    aspect-ratio: 1440 / 660;
  }

  .n9-venture-heading {
    display: grid;
    gap: 14px;
  }

  .n9-venture-status {
    justify-self: start;
  }

  .n9-footer-inner {
    min-height: 86px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    font-size: 13px;
  }
}

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

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