:root {
  color-scheme: light;
  --ink: #121416;
  --muted: #606873;
  --paper: #f5f7f6;
  --paper-strong: #ffffff;
  --paper-alt: #e9eeee;
  --line: rgba(18, 20, 22, 0.14);
  --line-strong: rgba(18, 20, 22, 0.24);
  --accent: #0f8f87;
  --accent-strong: #0b625e;
  --accent-blue: #2f67d8;
  --accent-violet: #7567c8;
  --accent-warm: #9b6a2f;
  --hero-text: #101417;
  --hero-subtitle: rgba(16, 20, 23, 0.86);
  --hero-muted: rgba(16, 20, 23, 0.72);
  --hero-accent: #0f8f87;
  --hero-scrim:
    linear-gradient(90deg, rgba(245, 247, 246, 0.94), rgba(245, 247, 246, 0.72) 52%, rgba(245, 247, 246, 0.3)),
    linear-gradient(180deg, rgba(245, 247, 246, 0.06), rgba(245, 247, 246, 0.94));
  --hero-panel-bg: rgba(255, 255, 255, 0.72);
  --hero-panel-line: rgba(18, 20, 22, 0.16);
  --hero-panel-divider: rgba(18, 20, 22, 0.12);
  --hero-primary-bg: #101417;
  --hero-primary-text: #f5f7f6;
  --hero-primary-hover: #000000;
  --hero-secondary-bg: rgba(255, 255, 255, 0.48);
  --hero-secondary-border: rgba(18, 20, 22, 0.24);
  --hero-secondary-hover-bg: rgba(255, 255, 255, 0.68);
  --hero-secondary-hover-border: rgba(18, 20, 22, 0.38);
  --vibe-bg: #f5f7f6;
  --vibe-text: #121416;
  --vibe-muted: rgba(18, 20, 22, 0.62);
  --vibe-kicker: #0f8f87;
  --vibe-shell-line: rgba(18, 20, 22, 0.14);
  --vibe-shell-bg:
    linear-gradient(180deg, rgba(15, 143, 135, 0.05), rgba(47, 103, 216, 0.03)),
    #ffffff;
  --vibe-panel-line: rgba(18, 20, 22, 0.12);
  --vibe-panel-bg: #ffffff;
  --vibe-tab-line: rgba(18, 20, 22, 0.18);
  --vibe-tab-text: rgba(18, 20, 22, 0.68);
  --vibe-tab-active-bg: rgba(15, 143, 135, 0.12);
  --vibe-tab-active-line: rgba(15, 143, 135, 0.38);
  --vibe-tab-active-text: #0b625e;
  --vibe-track-bg: rgba(18, 20, 22, 0.1);
  --vibe-fill: linear-gradient(90deg, #0f8f87, #2f67d8);
  --vibe-day-bg-1: rgba(15, 143, 135, 0.1);
  --vibe-day-bg-2: rgba(15, 143, 135, 0.18);
  --vibe-day-bg-3: rgba(15, 143, 135, 0.3);
  --shadow: 0 22px 70px rgba(18, 20, 22, 0.12);
  --radius: 8px;
  --max: 1180px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf2ef;
  --muted: #aab3b3;
  --paper: #111416;
  --paper-strong: #171b1d;
  --paper-alt: #1d2324;
  --line: rgba(237, 242, 239, 0.14);
  --line-strong: rgba(237, 242, 239, 0.24);
  --accent: #33bdb3;
  --accent-strong: #8adbd4;
  --accent-blue: #8ab4ff;
  --accent-violet: #b7a8ff;
  --accent-warm: #d0a15d;
  --hero-text: #f0f5f3;
  --hero-subtitle: rgba(240, 245, 243, 0.92);
  --hero-muted: rgba(240, 245, 243, 0.76);
  --hero-accent: #98e7df;
  --hero-scrim:
    linear-gradient(90deg, rgba(5, 8, 10, 0.86), rgba(5, 8, 10, 0.56) 52%, rgba(5, 8, 10, 0.26)),
    linear-gradient(180deg, rgba(5, 8, 10, 0.18), rgba(5, 8, 10, 0.88));
  --hero-panel-bg: rgba(10, 16, 18, 0.62);
  --hero-panel-line: rgba(240, 245, 243, 0.22);
  --hero-panel-divider: rgba(240, 245, 243, 0.14);
  --hero-primary-bg: #eef4f3;
  --hero-primary-text: #101417;
  --hero-primary-hover: #ffffff;
  --hero-secondary-bg: rgba(240, 245, 243, 0.08);
  --hero-secondary-border: rgba(240, 245, 243, 0.34);
  --hero-secondary-hover-bg: rgba(240, 245, 243, 0.14);
  --hero-secondary-hover-border: rgba(240, 245, 243, 0.56);
  --vibe-bg: #0b1014;
  --vibe-text: #edf2ef;
  --vibe-muted: rgba(237, 242, 239, 0.6);
  --vibe-kicker: #91dcd4;
  --vibe-shell-line: rgba(237, 242, 239, 0.14);
  --vibe-shell-bg:
    linear-gradient(180deg, rgba(237, 242, 239, 0.05), rgba(237, 242, 239, 0.02)),
    #0f1518;
  --vibe-panel-line: rgba(237, 242, 239, 0.12);
  --vibe-panel-bg: #12191c;
  --vibe-tab-line: rgba(237, 242, 239, 0.18);
  --vibe-tab-text: rgba(237, 242, 239, 0.72);
  --vibe-tab-active-bg: rgba(145, 220, 212, 0.14);
  --vibe-tab-active-line: rgba(145, 220, 212, 0.46);
  --vibe-tab-active-text: #edf2ef;
  --vibe-track-bg: rgba(237, 242, 239, 0.1);
  --vibe-fill: linear-gradient(90deg, #91dcd4, #8ab4ff);
  --vibe-day-bg-1: rgba(145, 220, 212, 0.1);
  --vibe-day-bg-2: rgba(145, 220, 212, 0.18);
  --vibe-day-bg-3: rgba(145, 220, 212, 0.3);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 120px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(15, 143, 135, 0.24);
}

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

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

#hero-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: #080c0f;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  padding: 16px 24px;
  color: var(--hero-text);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.site-header[data-elevated="true"] {
  background: color-mix(in srgb, var(--paper-strong) 90%, transparent);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 48%, transparent);
  border-radius: 50%;
  line-height: 1;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, currentColor 7%, transparent);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 6px;
  color: currentColor;
  font-size: 0.88rem;
  font-weight: 680;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: currentColor;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.theme-icon::before,
.theme-icon::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.theme-icon {
  background: currentColor;
  box-shadow:
    0 -9px 0 -6px currentColor,
    0 9px 0 -6px currentColor,
    9px 0 0 -6px currentColor,
    -9px 0 0 -6px currentColor,
    6px 6px 0 -6px currentColor,
    -6px 6px 0 -6px currentColor,
    6px -6px 0 -6px currentColor,
    -6px -6px 0 -6px currentColor;
  transform: scale(0.78);
}

[data-theme="dark"] .theme-icon {
  border: 2px solid currentColor;
  background: currentColor;
  box-shadow: none;
  transform: none;
}

[data-theme="dark"] .theme-icon::after {
  top: -2px;
  right: -4px;
  width: 17px;
  height: 17px;
  background: var(--paper-strong);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 46px;
  width: min(100% - 48px, var(--max));
  min-height: 88svh;
  margin: 0 auto;
  padding: 148px 0 62px;
  color: var(--hero-text);
}

.hero::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--hero-scrim);
  content: "";
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0;
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--hero-accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 12px;
  font-size: 7.2rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subtitle {
  margin-bottom: 18px;
  color: var(--hero-subtitle);
  font-size: 1.25rem;
  font-weight: 720;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 34px;
  color: var(--hero-muted);
  font-size: 1.2rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--hero-primary-bg);
  color: var(--hero-primary-text);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--hero-primary-hover);
}

.button-secondary {
  border-color: var(--hero-secondary-border);
  background: var(--hero-secondary-bg);
  color: var(--hero-text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--hero-secondary-hover-border);
  background: var(--hero-secondary-hover-bg);
}

.button-icon {
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.05rem;
}

.hero-panel {
  padding: 22px;
  border: 1px solid var(--hero-panel-line);
  border-radius: var(--radius);
  background: var(--hero-panel-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel .panel-label {
  color: var(--hero-accent);
}

.arc-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.arc-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hero-panel-divider);
}

.arc-list li:last-child {
  border-bottom: 0;
}

.arc-list span {
  grid-row: span 2;
  color: var(--hero-accent);
  font-size: 0.78rem;
  font-weight: 820;
  opacity: 0.82;
}

.arc-list strong {
  font-size: 1rem;
  line-height: 1.2;
}

.arc-list em {
  color: var(--hero-muted);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.35;
}

.section,
.contact-section,
.site-footer {
  background: var(--paper);
}

.section {
  padding: 88px 24px;
}

.intro {
  border-top: 1px solid var(--line);
}

.section-grid,
.section-heading,
.split-section,
.contact-section,
.site-footer {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 0.78fr);
  gap: 80px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 0;
  font-size: 3.05rem;
  line-height: 1.07;
  letter-spacing: 0;
}

.section-body {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-note {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.signal-row,
.contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.signal-row span,
.contact-topics span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 11px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--accent-strong);
  font-weight: 780;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.systems-section {
  background: var(--paper-strong);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.system-card,
.project-card,
.leadership-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 1px 0 rgba(18, 20, 22, 0.04);
}

.system-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 22px;
}

.system-index {
  margin-bottom: 26px;
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 840;
}

.system-card:nth-child(2) .system-index {
  color: var(--accent);
}

.system-card:nth-child(3) .system-index {
  color: var(--accent-violet);
}

.system-card:nth-child(4) .system-index {
  color: var(--accent-warm);
}

.system-card h3,
.project-card h3,
.leadership-grid h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.system-card p,
.project-card p,
.leadership-grid p,
.split-copy p {
  color: var(--muted);
}

.system-card p {
  flex: 1;
}

.system-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.system-card li {
  display: flex;
  align-items: center;
  min-height: 28px;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 720;
}

.system-card li::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.34;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.project-card {
  display: flex;
  grid-column: span 2;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
}

.project-card-wide {
  grid-column: span 3;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  text-transform: uppercase;
}

.project-card p {
  flex: 1;
}

.project-card a,
.project-status {
  color: var(--accent-strong);
  font-weight: 800;
}

.project-card a:hover,
.project-card a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-status {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(320px, 1fr);
  gap: 72px;
  align-items: start;
}

.split-copy {
  max-width: 420px;
}

.split-copy p {
  margin-top: 22px;
}

.note-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.note-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  cursor: default;
}

.note-item:hover .note-title {
  color: var(--accent-strong);
}

.note-date {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.note-title {
  overflow-wrap: anywhere;
  font-size: 1.06rem;
  font-weight: 760;
}

.note-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-strong);
}

.thinking-section {
  background: var(--paper-strong);
}

.thinking-grid,
.vibe-shell {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

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

.thinking-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 1px 0 rgba(18, 20, 22, 0.04);
}

.thinking-label {
  margin-bottom: 34px;
  color: var(--accent-violet);
  font-size: 0.78rem;
  font-weight: 840;
  text-transform: uppercase;
}

.thinking-card:nth-child(2) .thinking-label {
  color: var(--accent-blue);
}

.thinking-card:nth-child(3) .thinking-label {
  color: var(--accent-warm);
}

.thinking-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.thinking-card p {
  flex: 1;
  color: var(--muted);
}

.thinking-card-link {
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.thinking-card-link:hover,
.thinking-card-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent-violet) 46%, var(--line));
  transform: translateY(-1px);
}

.vibe-section {
  background: var(--vibe-bg);
  color: var(--vibe-text);
}

.vibe-section .section-kicker {
  color: var(--vibe-kicker);
}

.vibe-section .section-note {
  color: var(--vibe-muted);
}

.vibe-shell {
  border: 1px solid var(--vibe-shell-line);
  border-radius: var(--radius);
  background: var(--vibe-shell-bg);
  box-shadow: var(--shadow);
}

.vibe-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--vibe-panel-line);
}

.vibe-tab {
  min-height: 34px;
  border: 1px solid var(--vibe-tab-line);
  border-radius: 6px;
  background: transparent;
  color: var(--vibe-tab-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 780;
  padding: 0 12px;
}

.vibe-tab[aria-pressed="true"] {
  background: var(--vibe-tab-active-bg);
  border-color: var(--vibe-tab-active-line);
  color: var(--vibe-tab-active-text);
}

.vibe-timezone {
  margin-left: auto;
  color: var(--vibe-muted);
  font-size: 0.88rem;
  font-weight: 720;
}

.vibe-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--vibe-panel-line);
}

.vibe-metrics div {
  min-height: 116px;
  padding: 22px;
  border-right: 1px solid var(--vibe-panel-line);
}

.vibe-metrics div:last-child {
  border-right: 0;
}

.vibe-metrics span {
  display: block;
  margin-bottom: 8px;
  color: var(--vibe-text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.vibe-metrics p,
.vibe-caption {
  margin: 0;
  color: var(--vibe-muted);
  font-size: 0.88rem;
}

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

.vibe-panel {
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--vibe-panel-line);
  border-radius: var(--radius);
  background: var(--vibe-panel-bg);
}

.vibe-terminal {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.vibe-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.vibe-panel-heading span {
  color: var(--vibe-muted);
  font-size: 0.8rem;
  font-weight: 820;
  text-transform: uppercase;
}

.vibe-panel-heading strong {
  color: var(--vibe-kicker);
  font-size: 0.94rem;
}

.vibe-bars {
  display: grid;
  gap: 12px;
}

.vibe-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  color: var(--vibe-text);
  font-size: 0.9rem;
}

.vibe-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--vibe-track-bg);
}

.vibe-fill {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--vibe-fill);
}

.vibe-percent {
  color: var(--vibe-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-align: right;
}

.vibe-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.vibe-day {
  display: grid;
  min-height: 62px;
  place-items: center;
  border: 1px solid var(--vibe-panel-line);
  border-radius: 6px;
  color: var(--vibe-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.vibe-day[data-level="1"] {
  background: var(--vibe-day-bg-1);
  color: var(--vibe-text);
}

.vibe-day[data-level="2"] {
  background: var(--vibe-day-bg-2);
  color: var(--vibe-text);
}

.vibe-day[data-level="3"] {
  background: var(--vibe-day-bg-3);
  border-color: var(--vibe-tab-active-line);
  color: var(--vibe-text);
}

.vibe-token-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  color: var(--vibe-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.vibe-token-grid strong {
  color: var(--vibe-text);
}

@media (max-width: 1040px) {
  .vibe-row {
    grid-template-columns: 96px minmax(0, 1fr) 52px;
  }
}

@media (max-width: 900px) {
  .thinking-grid,
  .vibe-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .thinking-grid,
  .vibe-shell {
    width: min(100% - 32px, var(--max));
  }

  .vibe-toolbar {
    flex-wrap: wrap;
  }

  .vibe-timezone {
    width: 100%;
    margin-left: 0;
  }

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

  .vibe-metrics div:nth-child(2n) {
    border-right: 0;
  }

  .vibe-metrics div {
    min-height: 104px;
  }

  .vibe-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .vibe-percent {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .thinking-card,
  .vibe-panel {
    padding: 20px;
  }
}

.leadership-section {
  background: var(--paper-alt);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.leadership-grid article {
  min-height: 240px;
  padding: 24px;
  background: color-mix(in srgb, var(--paper-strong) 86%, var(--paper));
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: center;
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.contact-copy {
  max-width: 790px;
}

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

.contact-section .button-secondary {
  border-color: var(--line);
  background: var(--paper-strong);
  color: var(--ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 46%, transparent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 1040px) {
  .site-nav a {
    padding: 0 9px;
    font-size: 0.84rem;
  }

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

  .system-card {
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 90svh;
    padding-top: 136px;
  }

  h1 {
    font-size: 5.2rem;
  }

  h2 {
    font-size: 2.42rem;
  }

  .hero-panel {
    max-width: 470px;
  }

  .section-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .project-card,
  .project-card-wide {
    grid-column: auto;
    min-height: 250px;
  }

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

@media (max-width: 720px) {
  section {
    scroll-margin-top: 145px;
  }

  .site-header {
    padding: 12px 14px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    overflow-x: auto;
  }

  .site-nav a {
    flex: 1 0 auto;
    justify-content: center;
    padding: 0 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .hero,
  .section-grid,
  .section-heading,
  .split-section,
  .contact-section,
  .site-footer,
  .system-grid,
  .project-grid,
  .leadership-grid {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    gap: 28px;
    padding-bottom: 46px;
  }

  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.04rem;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .section {
    padding: 66px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .note-item {
    grid-template-columns: 1fr 34px;
    gap: 8px 14px;
    padding: 18px 0;
  }

  .note-date {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 3.15rem;
  }

  .brand-text {
    max-width: 150px;
  }

  .project-card,
  .system-card,
  .leadership-grid article {
    padding: 20px;
  }
}
