:root {
  --bg: #0f1318;
  --bg-alt: #161c24;
  --panel: rgba(255,255,255,0.06);
  --text: #f5f7fa;
  --muted: #bcc4cd;
  --accent: #dce1e7;
  --line: rgba(255,255,255,0.14);
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.07), transparent 28%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
a { color: inherit; }
.topbar, .hero, .section, .footer { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
  transition: background 200ms ease, padding 200ms ease, border-color 200ms ease;
}
.topbar.scrolled { padding: 14px 0; background: rgba(15,19,24,0.72); border-bottom: 1px solid rgba(255,255,255,0.08); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 58px; height: 58px; object-fit: contain; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); padding: 8px; }
.brand strong { display: block; font-size: 1rem; letter-spacing: 0.02em; }
.brand span { display: block; font-size: 0.82rem; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.95rem; color: var(--muted); }
.nav a { text-decoration: none; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; min-height: calc(100vh - 96px); padding: 24px 0 40px; }
.hero-copy h1, .section h2 { margin: 0; letter-spacing: -0.04em; }
.hero-copy h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 0.96; max-width: 10ch; }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.24em; color: var(--muted); font-size: 0.78rem; margin: 0 0 14px; }
.lead { font-size: 1.1rem; line-height: 1.75; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.button { border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font-size: 0.95rem; text-decoration: none; cursor: pointer; transition: 160ms ease; background: rgba(255,255,255,0.03); color: var(--text); }
.button:hover { transform: translateY(-1px); background: rgba(255,255,255,0.08); }
.button.primary { background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08)); }
.quick-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.quick-stats div, .glass-card, .work-card, .panel, .contact-section, .flow-step { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.quick-stats div { padding: 16px; }
.quick-stats strong { display: block; margin-bottom: 6px; }
.quick-stats span { color: var(--muted); font-size: 0.92rem; }
.hero-visual { display: grid; gap: 16px; }
.logo-card, .accent-card, .note-card { padding: 22px; }
.logo-card img { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
.section { padding: 48px 0; }
.section-head { margin-bottom: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tab { border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--text); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.tab.active { background: rgba(255,255,255,0.12); }
.tab-panels { display: grid; gap: 14px; }
.panel { padding: 22px; display: none; }
.panel.active { display: block; }
.panel h3, .work-card h3, .accent-card h3, .note-card h3, .flow-step h3 { margin-top: 0; }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: start; }
.timeline { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.timeline li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.03); }
.timeline strong { display: block; margin-bottom: 6px; }
.timeline span { color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-card { padding: 22px; }
.work-card p, .panel p, .accent-card p, .note-card p, .contact-section p, .flow-step p { color: var(--muted); line-height: 1.7; }
.contact-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; }
.footer { display: flex; align-items: center; gap: 12px; padding: 24px 0 36px; color: var(--muted); }
.footer-mark { width: 42px; height: 42px; object-fit: contain; }
.reveal { opacity: 0; transform: translateY(24px) scale(0.99); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.flow-step { padding: 20px; position: relative; overflow: hidden; }
.flow-step::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 55%); pointer-events: none; }
.flow-step span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,0.12); margin-bottom: 14px; font-weight: 700; }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 18px; color: var(--muted); font-size: 0.92rem; }
.gantt-legend-item { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--muted); border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.gantt-legend-item.is-active { color: var(--text); background: rgba(255,255,255,0.10); }
.gantt-swatch { width: 14px; height: 14px; border-radius: 999px; display: inline-block; }
.gantt-swatch.planned { background: linear-gradient(90deg, #7f93aa, #dce1e7); }
.gantt-swatch.actual { background: linear-gradient(90deg, #dce1e7, #ffffff); }
.gantt-swatch.milestone { background: #8df0b6; }
.gantt-board { display: grid; gap: 12px; }
.gantt-row { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.gantt-row.done { background: linear-gradient(180deg, rgba(141,240,182,0.08), rgba(255,255,255,0.03)); }
.gantt-row.active { background: linear-gradient(180deg, rgba(220,225,231,0.08), rgba(255,255,255,0.03)); }
.gantt-row.locked { opacity: 0.8; }
.gantt-row.is-muted { opacity: 0.28; filter: grayscale(0.25); }
.gantt-row.is-highlighted { box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 18px 60px rgba(0,0,0,0.45); }
.gantt-row-label { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gantt-row-label strong, .gantt-row-label small { display: block; }
.gantt-row-label small { color: var(--muted); margin-top: 4px; }
.gantt-step-no { width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,0.12); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; }
.gantt-track { position: relative; height: 22px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.gantt-track-grid { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0 19%, rgba(255,255,255,0.06) 19% 20%, transparent 20% 39%, rgba(255,255,255,0.06) 39% 40%, transparent 40% 59%, rgba(255,255,255,0.06) 59% 60%, transparent 60% 79%, rgba(255,255,255,0.06) 79% 80%, transparent 80% 100%); opacity: 0.35; }
.gantt-bar { position: absolute; top: 3px; height: 16px; border-radius: 999px; background: linear-gradient(90deg, #7f93aa 0%, #dce1e7 100%); box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 8px 18px rgba(0,0,0,0.18); }
.gantt-row.done .gantt-bar { background: linear-gradient(90deg, #7af0b2 0%, #e4fff0 100%); }
.gantt-row.active .gantt-bar { background: linear-gradient(90deg, #9fb1c7 0%, #ffffff 100%); }
.gantt-link-arrow { position: absolute; top: 50%; transform: translate(-50%, -50%); color: var(--muted); font-weight: 700; font-size: 1.1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.45); pointer-events: none; }
.gantt-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.12); }
.project-shell { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.project-layout { width: min(100%, 100vw); max-width: none; padding-left: 16px; padding-right: 16px; }
.project-layout > .eyebrow,
.project-layout > h1,
.project-layout > .work-grid { margin-left: 320px; width: calc(100% - 320px); }
.project-layout > .panel, .project-layout > .work-grid, .project-layout > .project-shell, .project-layout > .gantt-board, .project-layout > .gantt-legend, .project-layout > .project-shell { width: min(1180px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.project-layout > .project-shell { width: min(1180px, calc(100% - 32px)); max-width: none; margin-left: auto; margin-right: auto; }
.project-layout > .project-shell.panel.active { display: grid !important; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; background: transparent; border: 0; box-shadow: none; padding: 0; }
.project-sidebar { position: sticky; top: 24px; width: 280px; max-height: calc(100vh - 40px); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,0.03); box-shadow: var(--shadow); z-index: 15; }
.project-detail-pane { margin-left: 0; width: auto; }
.project-step-list { display: grid; gap: 10px; margin-top: 14px; }
.project-step-link { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.project-step-link span { width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); font-weight: 700; flex: 0 0 auto; }
.project-step-link strong { display: block; }
.project-step-link small { color: var(--muted); }
.project-step-link.active { background: rgba(255,255,255,0.10); }
.project-step-cards { display: grid; gap: 14px; }
.project-detail-pane { align-content: start; }
.project-step-card { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,0.03); }
.project-step-card.active { box-shadow: 0 0 0 1px rgba(255,255,255,0.12), var(--shadow); }
.project-step-card.is-hidden { display: none; }
.project-step-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.project-step-meta { display: grid; gap: 6px; min-width: 170px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 920px) {
  .hero, .split, .work-grid, .flow-grid { grid-template-columns: 1fr; }
  .project-shell { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
  .gantt-row { grid-template-columns: 1fr; }
  .quick-stats { grid-template-columns: 1fr; }
  .contact-section { flex-direction: column; align-items: flex-start; }
  .topbar { position: static; flex-direction: column; align-items: flex-start; }
  .hero { min-height: auto; }
}
