@import url("https://fonts.googleapis.com/css2?family=Klee+One:wght@400;600&family=Zen+Old+Mincho:wght@400;500;700;900&display=swap");

:root {
  --page-width: 1180px;
  --topbar-height: 72px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-strong: 0 28px 80px rgba(39, 28, 12, 0.16);
  --shadow-soft: 0 18px 42px rgba(39, 28, 12, 0.1);
  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Klee One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-ui: "Klee One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-sans: "Klee One", "Hiragino Sans", "Yu Gothic", sans-serif;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  --bg-a: #f5f0e5;
  --bg-b: #efe4d2;
  --bg-c: #d6e1e8;
  --bg-glow: rgba(255, 255, 255, 0.58);
  --page-ink: #1f2430;
  --muted: #5e6877;
  --line: rgba(31, 36, 48, 0.12);
  --panel: rgba(255, 252, 248, 0.82);
  --panel-strong: rgba(255, 253, 250, 0.94);
  --surface: rgba(255, 255, 255, 0.76);
  --surface-2: rgba(248, 243, 236, 0.92);
  --accent: #b7653d;
  --accent-soft: rgba(183, 101, 61, 0.12);
  --accent-ink: #fffaf5;
  --grid-line: rgba(79, 98, 123, 0.09);
  --chrome-bg: rgba(249, 244, 237, 0.88);
  --chrome-line: rgba(31, 36, 48, 0.08);
  --chrome-ink: #253042;
  --chrome-muted: #687386;
  --chrome-chip: rgba(255, 255, 255, 0.58);
  --chrome-chip-line: rgba(37, 48, 66, 0.1);
  --hero-bg:
    radial-gradient(circle at 14% 18%, rgba(183, 101, 61, 0.14), transparent 23%),
    radial-gradient(circle at 84% 70%, rgba(72, 124, 163, 0.14), transparent 28%),
    linear-gradient(180deg, #f7efe3 0%, #efe1cf 56%, #e0e7ed 100%);
  --hero-ink: #1f2430;
  --hero-muted: #667385;
  --hero-line: rgba(31, 36, 48, 0.12);
  --hero-accent: #b7653d;
  --hero-accent-soft: rgba(183, 101, 61, 0.22);
  --hero-accent-ink: #fffaf5;
  --hero-highlight-ink: #b7653d;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-a: #11161e;
  --bg-b: #24364f;
  --bg-c: #0f1e17;
  --bg-glow: rgba(255, 255, 255, 0.04);
  --page-ink: #eef1f4;
  --muted: #b9c0c7;
  --line: rgba(238, 241, 244, 0.12);
  --panel: rgba(13, 18, 26, 0.74);
  --panel-strong: rgba(15, 21, 30, 0.9);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --accent: #ff9d63;
  --accent-soft: rgba(255, 157, 99, 0.18);
  --accent-ink: #1a130f;
  --grid-line: rgba(255, 255, 255, 0.05);
  --shadow-strong: 0 32px 90px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.28);
  --chrome-bg: #0b0f19;
  --chrome-line: rgba(238, 242, 247, 0.08);
  --chrome-ink: #eef2f7;
  --chrome-muted: #aab6c6;
  --chrome-chip: rgba(255, 255, 255, 0.04);
  --chrome-chip-line: rgba(238, 242, 247, 0.14);
  --hero-bg:
    radial-gradient(circle at 16% 18%, rgba(98, 128, 212, 0.18), transparent 22%),
    radial-gradient(circle at 82% 72%, rgba(255, 157, 99, 0.12), transparent 24%),
    linear-gradient(180deg, #0b0f19 0%, #0d1220 58%, #101729 100%);
  --hero-ink: #eef2f7;
  --hero-muted: #aab6c6;
  --hero-line: rgba(238, 242, 247, 0.16);
  --hero-accent: #ff9d63;
  --hero-accent-soft: rgba(255, 157, 99, 0.18);
  --hero-accent-ink: #0b0f19;
  --hero-highlight-ink: #ffb27f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--page-ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, var(--bg-glow), transparent 26%),
    linear-gradient(145deg, var(--bg-a), var(--bg-b) 42%, var(--bg-c));
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      90deg,
      var(--grid-line) 0,
      var(--grid-line) 1px,
      transparent 1px,
      transparent 96px
    );
  opacity: 0.7;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 0 0;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-line);
  backdrop-filter: blur(18px);
  transition: padding 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 8px 0 12px;
  transition: min-height 180ms ease, padding 180ms ease, gap 180ms ease;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--chrome-ink);
  min-width: 0;
  font: 700 1.08rem/1.08 var(--font-display);
  letter-spacing: -0.02em;
}

.topbar-nav {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  min-width: 0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--chrome-chip-line);
  background: color-mix(in srgb, var(--chrome-chip) 84%, transparent 16%);
}

.topbar-nav a {
  color: var(--chrome-muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  font: 500 0.8rem/1 var(--font-ui);
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  color: var(--chrome-ink);
  background: color-mix(in srgb, var(--chrome-chip) 70%, white 30%);
}

.topbar-sitemap {
  position: relative;
  justify-self: start;
}

.topbar-sitemap[open] {
  z-index: 35;
}

.topbar-sitemap-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--chrome-chip-line);
  background: var(--chrome-chip);
  color: var(--chrome-ink);
  font: 500 0.76rem/1 var(--font-ui);
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}

.topbar-sitemap-trigger::-webkit-details-marker {
  display: none;
}

.topbar-sitemap-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: min(420px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--chrome-chip-line);
  background: color-mix(in srgb, var(--chrome-bg) 92%, white 8%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.topbar-sitemap-panel section {
  display: grid;
  gap: 8px;
}

.topbar-sitemap-title {
  margin: 0 0 2px;
  color: var(--chrome-muted);
  font: 600 0.68rem/1.2 var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-sitemap-panel a {
  text-decoration: none;
  color: var(--chrome-ink);
  font: 500 0.82rem/1.35 var(--font-ui);
}

.topbar-sitemap-panel a:hover,
.topbar-sitemap-panel a:focus-visible {
  color: var(--accent);
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--chrome-chip-line);
  background: var(--chrome-chip);
  backdrop-filter: blur(18px);
  box-shadow: none;
}

.theme-switcher-label {
  display: none;
  padding: 0 8px 0 6px;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--chrome-muted);
}

.theme-choice {
  min-width: 56px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--chrome-ink);
  font: 500 0.74rem/1 var(--font-ui);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.theme-choice:hover,
.theme-choice:focus-visible {
  border-color: var(--chrome-chip-line);
  background: color-mix(in srgb, var(--chrome-chip) 86%, white 14%);
  transform: translateY(-1px);
}

.theme-choice.is-active {
  background: var(--chrome-ink);
  color: var(--chrome-bg);
}

[id] {
  scroll-margin-top: calc(var(--topbar-height) + 16px);
}

.hero-stage {
  position: relative;
  min-height: calc(100svh - var(--topbar-height));
  isolation: isolate;
  color: var(--hero-ink);
  --page-ink: var(--hero-ink);
  --muted: var(--hero-muted);
  --line: var(--hero-line);
  --accent: var(--hero-accent);
  --accent-soft: var(--hero-accent-soft);
  --accent-ink: var(--hero-accent-ink);
  background: var(--hero-bg);
}

.hero-stage > .shell {
  min-height: inherit;
}

.hero-stage-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100svh - var(--topbar-height));
  width: 100%;
  grid-template-areas:
    "top"
    "middle"
    "bottom";
  grid-template-rows: min-content minmax(0, 1fr) min-content;
  justify-items: center;
  align-items: stretch;
  gap: clamp(8px, 1.4vw, 18px);
  padding: clamp(20px, 4.5vw, 44px) 0 clamp(16px, 3.2vw, 30px);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-logo-shell-main {
  grid-area: middle;
  width: min(100%, 1180px);
  max-width: none;
  align-self: center;
  justify-self: center;
}

.hero-principles {
  margin: 0;
  text-wrap: balance;
  font-family: var(--font-display);
  grid-area: top;
}

.hero-bottom-line {
  grid-area: bottom;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(100%, 760px);
  align-self: end;
}

.hero-goal-label {
  color: var(--hero-muted);
  font: 600 0.8rem / 1.2 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-goal-value {
  color: var(--hero-ink);
  font: 700 clamp(1.22rem, 2.5vw, 1.92rem) / 1.18 var(--font-display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-goal-highlight {
  display: inline-block;
  color: var(--hero-ink);
  text-shadow: 0 0 0 transparent;
  animation: hero-goal-highlight 4.6s ease forwards;
  animation-delay: 1.25s;
  animation-fill-mode: forwards;
}

.hero-goal-highlight-delay {
  animation-delay: 1.95s;
}

.hero-principles {
  color: var(--hero-muted);
  font-size: clamp(0.98rem, 1.45vw, 1.16rem);
  line-height: 1.55;
  align-self: start;
}

.hero-text-enter {
  opacity: 0;
  transform: translateY(10px);
  animation: hero-text-enter 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--hero-enter-delay, 0ms);
}

.home-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 24px;
  position: relative;
  min-height: 100svh;
  align-items: stretch;
  padding: clamp(32px, 4vw, 56px) 0 clamp(28px, 4vw, 42px);
}

.home-hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -8% 8% auto;
  width: min(44vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.home-hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(98, 128, 212, 0.14), transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(255, 157, 99, 0.03) 100%);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-lead {
  margin: 30px 0 0;
  max-width: 44rem;
  font-size: clamp(1.24rem, 2vw, 1.6rem);
  line-height: 1.6;
  font-family: var(--font-body);
  text-wrap: pretty;
}

.home-sublead {
  margin: 14px 0 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.8;
  font-family: var(--font-body);
  text-wrap: pretty;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: end;
  padding: 0 0 2vh;
}

.hero-side-card {
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
  backdrop-filter: none;
}

.hero-side-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.hero-side-label {
  display: block;
  color: var(--muted);
  font: 600 0.8rem/1.2 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-side-card-metrics {
  padding-bottom: 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.hero-metrics div {
  padding-top: 14px;
}

.hero-metrics strong {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font: 500 0.9rem/1.5 var(--font-ui);
}

.hero-panel,
.section-panel,
.project-panel,
.footer-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-strong);
}

.hero-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
  gap: 24px;
  padding: 30px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font: 600 0.78rem/1.2 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.project-heading h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 700;
  font-family: var(--font-display);
}

.hero-copy,
.hero-copy p,
.section-copy,
.card p,
.meta-copy,
.placeholder,
.project-summary,
.footer-panel p,
.status-note {
  font-family: var(--font-body);
}

.hero-copy p {
  margin: 16px 0 0;
  max-width: 46rem;
  line-height: 1.7;
}

.hero-logo-shell {
  max-width: min(1380px, 100%);
}

.hero-logo,
.hero-logo-svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-logo {
  min-height: clamp(170px, 24vw, 310px);
}

.hero-logo-svg {
  filter: drop-shadow(0 18px 28px rgba(22, 28, 39, 0.14));
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  animation: hero-logo-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

html[data-theme="dark"] .hero-logo-svg {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.2));
}

.hero-logo-svg path {
  fill: transparent;
  stroke: var(--page-ink);
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--path-length);
  stroke-dashoffset: var(--path-length);
  animation:
    hero-draw-all 1.55s ease forwards,
    hero-fill-all 0.45s ease forwards;
  animation-delay: 120ms, 900ms;
}

.section-tight {
  padding-top: 0;
}

.section-overlap {
  position: relative;
  margin-top: 30px;
  z-index: 2;
}

.intro-panel {
  display: grid;
  gap: 10px;
}

.manifesto-panel {
  display: grid;
  gap: 24px;
}

.manifesto-intro {
  display: grid;
  gap: 10px;
}

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

.manifesto-card {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02)),
    var(--surface);
}

.manifesto-card h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
}

.manifesto-card p:last-child {
  margin: 12px 0 0;
  line-height: 1.8;
  color: var(--muted);
}

.manifesto-card-wide {
  grid-column: 1 / -1;
}

.top-project-head,
.lineage-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.timeline-head-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.featured-projects {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.featured-card {
  padding: 24px;
  min-height: 250px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--panel-strong), var(--surface-2));
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(18px);
  animation: rise-soft 0.75s ease forwards;
}

.featured-card-hero {
  min-height: 330px;
  padding: 32px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 82%, var(--accent-soft) 18%), var(--surface-2));
  box-shadow: var(--shadow-strong);
}

.featured-card-head h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  letter-spacing: -0.05em;
}

.featured-card-hero .featured-card-head h3 {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
}

.featured-card p {
  margin: 14px 0 0;
  line-height: 1.75;
  font-family: var(--font-sans);
}

.featured-card-hero p {
  font-size: 1.04rem;
}

.timeline-board {
  margin-top: 24px;
  margin-inline: auto;
  padding: 22px;
  width: min(100%, 920px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    var(--surface);
  max-height: 340px;
  overflow: hidden;
}

.timeline-board-scroller {
  overflow: auto;
  width: 100%;
  height: 100%;
  padding-bottom: 4px;
  max-height: 296px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

.timeline-board-grid {
  display: grid;
  --timeline-year-header: 46px;
  --timeline-track-size: 28px;
  min-width: max-content;
  position: relative;
}

.timeline-corner,
.timeline-group,
.timeline-lane,
.timeline-year-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline-corner {
  color: var(--muted);
  font: 600 0.8rem/1.4 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 6;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    var(--surface);
}

.timeline-group {
  background: rgba(255, 255, 255, 0.05);
  font: 700 0.96rem/1.2 var(--font-display);
  position: sticky;
  left: 0;
  z-index: 5;
  backdrop-filter: blur(6px);
}

.timeline-lane {
  color: var(--muted);
  font: 600 0.78rem/1.35 var(--font-ui);
  position: sticky;
  left: 132px;
  z-index: 4;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    var(--surface);
  backdrop-filter: blur(6px);
}

.timeline-year-label {
  justify-content: center;
  color: var(--page-ink);
  font: 700 1.02rem/1 var(--font-display);
  background: rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 0;
  z-index: 3;
}

.timeline-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 38%);
}

.timeline-project {
  position: relative;
  z-index: 3;
  margin: 1px 2px;
  padding: 5px 7px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--panel-strong), var(--surface-2));
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
}

.timeline-project-owner-neknaj {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 78%, #f0b85d 22%), color-mix(in srgb, var(--surface-2) 82%, #355b88 18%));
  border-color: color-mix(in srgb, var(--line) 68%, #d69a2f 32%);
}

.timeline-project-owner-bem130 {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 76%, #86c7ff 24%), color-mix(in srgb, var(--surface-2) 78%, #2c7be5 22%));
  border-color: color-mix(in srgb, var(--line) 62%, #4c9dff 38%);
}

.timeline-project-owner-bem130 .timeline-project-title,
.timeline-project-owner-bem130 .timeline-project-years {
  color: color-mix(in srgb, var(--page-ink) 92%, #f4fbff 8%);
}

.timeline-project-years {
  color: var(--muted);
  font: 600 0.62rem/1.1 var(--font-ui);
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.timeline-project-title {
  color: var(--page-ink);
  font: 700 0.82rem/1.08 var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.timeline-project:hover,
.timeline-project:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.timeline-overlay-open {
  overflow: hidden;
}

.timeline-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.timeline-overlay[hidden] {
  display: none;
}

.timeline-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 18, 0.68);
  backdrop-filter: blur(10px);
}

.timeline-overlay-panel {
  position: relative;
  z-index: 1;
  width: calc(100vw - 48px);
  height: calc(100svh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: 0 28px 80px rgba(5, 9, 18, 0.32);
}

.timeline-overlay-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.timeline-overlay-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-overlay-size {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-overlay-size .pill.is-active {
  background: var(--page-ink);
  color: var(--bg);
  border-color: var(--page-ink);
}

.timeline-overlay-body {
  min-height: 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
  overflow: hidden;
}

.timeline-overlay-body[data-scale="standard"] .timeline-board-grid-overlay {
  --timeline-year-header: 52px;
  --timeline-track-size: 32px;
}

.timeline-overlay-body[data-scale="standard"] .timeline-corner,
.timeline-overlay-body[data-scale="standard"] .timeline-group,
.timeline-overlay-body[data-scale="standard"] .timeline-lane,
.timeline-overlay-body[data-scale="standard"] .timeline-year-label {
  padding: 10px 12px;
}

.timeline-overlay-body[data-scale="standard"] .timeline-lane {
  font-size: 0.84rem;
  left: 132px;
}

.timeline-overlay-body[data-scale="standard"] .timeline-year-label {
  font-size: 1.08rem;
}

.timeline-overlay-body[data-scale="standard"] .timeline-project {
  margin: 3px;
  padding: 7px 9px;
  border-radius: 12px;
  gap: 10px;
}

.timeline-overlay-body[data-scale="standard"] .timeline-project-years {
  font-size: 0.66rem;
}

.timeline-overlay-body[data-scale="standard"] .timeline-project-title {
  font-size: 0.9rem;
}

.timeline-overlay-body[data-scale="large"] .timeline-board-grid-overlay {
  --timeline-year-header: 46px;
  --timeline-track-size: 28px;
}

.timeline-overlay-body[data-scale="max"] .timeline-board-grid-overlay {
  --timeline-year-header: 40px;
  --timeline-track-size: 24px;
}

.timeline-overlay-body[data-scale="max"] .timeline-corner,
.timeline-overlay-body[data-scale="max"] .timeline-group,
.timeline-overlay-body[data-scale="max"] .timeline-lane,
.timeline-overlay-body[data-scale="max"] .timeline-year-label {
  padding: 6px 8px;
}

.timeline-overlay-body[data-scale="max"] .timeline-lane {
  font-size: 0.72rem;
}

.timeline-overlay-body[data-scale="max"] .timeline-year-label {
  font-size: 0.94rem;
}

.timeline-overlay-body[data-scale="max"] .timeline-project {
  margin: 1px;
  padding: 4px 6px;
  border-radius: 8px;
  gap: 6px;
}

.timeline-overlay-body[data-scale="max"] .timeline-project-years {
  font-size: 0.56rem;
}

.timeline-overlay-body[data-scale="max"] .timeline-project-title {
  font-size: 0.76rem;
}

.timeline-board-scroller-overlay {
  width: 100%;
  height: 100%;
  max-height: none;
  padding-bottom: 8px;
}

.timeline-board-grid-overlay {
  --timeline-year-header: 46px;
  --timeline-track-size: 28px;
}

.hero-aside {
  position: relative;
  min-height: 296px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.52), transparent 24%),
    radial-gradient(circle at 76% 24%, rgba(255, 231, 190, 0.58), transparent 18%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(240, 182, 86, 0.5) 36%, rgba(68, 116, 146, 0.8));
}

html[data-theme="dark"] .hero-aside {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 76% 24%, rgba(255, 196, 116, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(25, 31, 42, 0.98), rgba(72, 94, 141, 0.72) 44%, rgba(22, 76, 62, 0.84));
}

.hero-aside::before,
.hero-aside::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-aside::before {
  width: 220px;
  height: 220px;
  left: 16px;
  top: 24px;
  transform: rotate(-12deg);
}

.hero-aside::after {
  width: 164px;
  height: 164px;
  right: 24px;
  bottom: 22px;
}

.hero-markers {
  position: absolute;
  inset: 0;
  padding: 18px;
}

.marker {
  position: absolute;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
  font: 500 0.88rem/1.2 var(--font-ui);
}

.marker.a {
  top: 22px;
  right: 18px;
}

.marker.b {
  bottom: 84px;
  left: 18px;
}

.marker.c {
  right: 34px;
  bottom: 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.stat {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.stat strong {
  display: block;
  font-size: 1.56rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 500 0.88rem/1.5 var(--font-ui);
}

.section {
  padding: 18px 0 28px;
}

.section-panel {
  border-radius: 28px;
  padding: 24px;
}

.reveal-panel {
  opacity: 0;
  transform: translateY(24px);
  animation: rise-soft 0.82s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  font-weight: 700;
}

.section-copy {
  margin: 10px 0 0;
  max-width: 58rem;
  color: var(--muted);
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 332px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), var(--surface-2));
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(18px);
  animation: rise-soft 0.75s ease forwards;
}

.card::before {
  content: "";
  position: absolute;
  inset: auto -20px -36px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(10px);
}

.card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
}

.card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  line-height: 1.7;
}

.meta-row,
.tag-row,
.link-row,
.project-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row,
.tag-row {
  margin-top: 16px;
}

.link-row,
.project-link-row {
  margin-top: 22px;
}

.tag,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 500 0.8rem/1 var(--font-ui);
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  text-decoration: none;
  font: 500 0.92rem/1 var(--font-ui);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-2px);
  background: var(--surface);
}

.pill.primary {
  background: var(--page-ink);
  color: var(--accent-ink);
}

.pill.ghost {
  background: transparent;
}

.placeholder {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px dashed var(--line);
  background: var(--surface);
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding: 0 0 30px;
}

.footer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border-radius: 24px;
}

.footer-panel p {
  margin: 0;
  color: var(--muted);
}

.project-page {
  padding: 10px 0 32px;
}

.project-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
}

.project-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--muted);
  font: 500 0.94rem/1 var(--font-ui);
}

.project-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.project-summary {
  margin-top: 18px;
  max-width: 48rem;
  line-height: 1.75;
  font-size: 1.05rem;
}

.project-side {
  position: relative;
  min-height: 230px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.62), transparent 24%),
    linear-gradient(150deg, rgba(255, 248, 235, 0.94), rgba(220, 172, 99, 0.48) 42%, rgba(93, 121, 139, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .project-side {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(150deg, rgba(31, 37, 49, 0.96), rgba(88, 79, 128, 0.58) 42%, rgba(24, 76, 72, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin-top: 22px;
}

.meta-box,
.notes-box {
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.showcase-poster {
  margin-top: 22px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}

.showcase-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.meta-box h2,
.notes-box h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.meta-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.notes-box ul {
  margin: 0;
  padding-left: 18px;
  font: 400 0.98rem/1.7 var(--font-body);
}

.notes-box li + li {
  margin-top: 10px;
}

.theme-amber {
  --accent: #b45f2b;
  --accent-soft: rgba(180, 95, 43, 0.18);
}

.theme-sky {
  --accent: #356da8;
  --accent-soft: rgba(53, 109, 168, 0.18);
}

.theme-red {
  --accent: #a64335;
  --accent-soft: rgba(166, 67, 53, 0.18);
}

.theme-green {
  --accent: #4d7a43;
  --accent-soft: rgba(77, 122, 67, 0.18);
}

.theme-violet {
  --accent: #6656a4;
  --accent-soft: rgba(102, 86, 164, 0.18);
}

.theme-mint {
  --accent: #3d7a68;
  --accent-soft: rgba(61, 122, 104, 0.18);
}

.theme-gold {
  --accent: #9b6a21;
  --accent-soft: rgba(155, 106, 33, 0.18);
}

.theme-blue {
  --accent: #2d63a3;
  --accent-soft: rgba(45, 99, 163, 0.18);
}

.theme-steel {
  --accent: #4a6774;
  --accent-soft: rgba(74, 103, 116, 0.18);
}

.theme-peach {
  --accent: #b6674e;
  --accent-soft: rgba(182, 103, 78, 0.18);
}

@keyframes rise {
  from {
    transform: translateY(18px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes rise-soft {
  from {
    transform: translateY(24px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes hero-logo-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    filter: blur(8px) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.06));
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.08));
  }
}

@keyframes hero-text-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-goal-highlight {
  0% {
    color: var(--hero-ink);
    text-shadow: 0 0 0 transparent;
  }

  18%,
  82% {
    color: var(--hero-highlight-ink);
    text-shadow: 0 0 14px var(--hero-accent-soft);
  }

  100% {
    color: var(--hero-ink);
    text-shadow: 0 0 0 transparent;
  }
}

@keyframes hero-draw-all {
  from {
    stroke-dashoffset: var(--path-length);
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-fill-all {
  from {
    fill: transparent;
    stroke-width: 1.05;
  }

  to {
    fill: var(--page-ink);
    stroke-width: 0.32;
  }
}

@media (max-width: 900px) {
  .hero-stage-inner {
    min-height: calc(100svh - var(--topbar-height));
    padding: 30px 0 34px;
  }

  .home-hero-panel,
  .top-project-head,
  .lineage-head,
  .hero-grid,
  .project-heading,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-panel {
    min-height: auto;
  }

  .section-overlap {
    margin-top: 0;
  }

  .featured-projects-grid,
  .manifesto-grid {
    grid-template-columns: 1fr;
  }

  .timeline-head-actions {
    justify-items: stretch;
  }

  .hero h1,
  .project-heading h1 {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
  }

}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 18px), var(--page-width));
  }

  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: unset;
    padding: 4px 0 10px;
  }

  .topbar-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar-sitemap-panel {
    left: 0;
    grid-template-columns: 1fr;
    width: min(320px, calc(100vw - 24px));
  }

  .theme-choice {
    min-width: 50px;
  }

  .topbar-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-grid,
  .home-hero-panel,
  .section-panel,
  .project-panel,
  .footer-panel {
    padding: 18px;
  }

  .topbar {
    padding-top: 12px;
  }

  .hero-stage-inner {
    min-height: calc(100svh - var(--topbar-height));
    padding: 18px 0 22px;
  }

  .hero-logo-shell-main {
    width: 100%;
  }

  .hero-logo {
    min-height: clamp(92px, 24vw, 134px);
  }

  .hero-bottom-line {
    width: 100%;
    margin-top: 6px;
  }

  .hero-goal-value {
    font-size: 1.14rem;
  }

  .hero-principles {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .timeline-board {
    padding: 16px;
    width: 100%;
    max-height: 300px;
  }

  .timeline-board-grid {
    min-width: max-content;
  }

  .timeline-board-scroller {
    max-height: 268px;
  }

  .timeline-overlay {
    padding: 12px;
  }

  .timeline-overlay-panel {
    width: calc(100vw - 24px);
    height: calc(100svh - 24px);
    padding: 18px;
    border-radius: 22px;
  }

  .timeline-overlay-head {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-overlay-actions {
    justify-content: space-between;
  }

  .timeline-overlay-body {
    padding: 12px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 901px) and (max-width: 1180px) {
  .hero-stage-inner {
    min-height: calc(100svh - var(--topbar-height));
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .hero-stage-inner {
    min-height: calc(100svh - var(--topbar-height));
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero-logo-shell-main {
    width: min(100%, 980px);
  }

  .hero-goal-value {
    font-size: 1.24rem;
  }

  .hero-principles {
    font-size: 0.96rem;
    line-height: 1.45;
  }
}

@media (max-aspect-ratio: 4 / 5) {
  .hero-stage-inner {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .hero-logo-shell-main {
    width: min(100%, 920px);
  }

  .hero-principles {
    font-size: clamp(0.9rem, 1.15vw + 0.6rem, 1.04rem);
    line-height: 1.48;
  }

  .hero-goal-value {
    font-size: clamp(1.08rem, 1.3vw + 0.78rem, 1.42rem);
  }
}

@media (max-height: 700px) {
  .hero-stage-inner {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .hero-logo-shell-main {
    width: min(100%, 860px);
  }

  .hero-principles {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .hero-goal-label {
    font-size: 0.72rem;
  }

  .hero-goal-value {
    font-size: 1.04rem;
  }
}

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

  .hero-logo-svg,
  .hero-logo-svg path,
  .hero-text-enter,
  .reveal-panel,
  .featured-card,
  .card,
  .pill,
  .theme-choice {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
