:root {
  --bg: #080809;
  --panel: linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .015));
  --panel-2: #19191b;
  --panel-3: #101011;
  --text: #f2f2f0;
  --muted: #aaa9a4;
  --faint: #75746f;
  --line: rgba(255, 255, 255, .078);
  --line-strong: rgba(255, 255, 255, .12);
  --content-bg: linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .006) 18%, rgba(255, 255, 255, 0) 100%);
  --sidebar-bg: linear-gradient(180deg, #05070afa, #030406fa);
  --active-bg: linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028));
  --card: linear-gradient(180deg, rgba(255, 255, 255, .046), rgba(255, 255, 255, .017));
  --card-hover: linear-gradient(180deg, rgba(255, 255, 255, .068), rgba(255, 255, 255, .026));
  --accent: #8a94ff;
  --accent-2: #b7c0cc;
  --accent-soft: rgba(138, 148, 255, .12);
  --accent-line: rgba(169, 181, 197, .24);
  --radius: 14px;
  --panel-radius: 22px;
  --soft-corner: 18px;
  --sidebar: 282px;
  --ease: cubic-bezier(.2, .9, .2, 1);
  --shadow: 0 18px 55px rgba(0, 0, 0, .26);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 47% -18%, rgba(138, 142, 148, .16), rgba(118, 122, 126, .055) 28%, transparent 52%),
    radial-gradient(circle at 16% 22%, rgba(86, 88, 92, .16), rgba(68, 70, 73, .055) 30%, transparent 54%),
    radial-gradient(circle at 88% 18%, rgba(64, 66, 70, .13), rgba(48, 50, 53, .047) 31%, transparent 52%),
    radial-gradient(circle at 50% 108%, rgba(56, 57, 60, .15), rgba(42, 43, 45, .055) 34%, transparent 58%),
    linear-gradient(180deg, #111214 0%, #090a0b 50%, #060606 100%);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: inherit;
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.mobile-bar,
.mobile-nav { display: none; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
}

.sidebar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  box-shadow: 18px 0 60px #00000040;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
}

.brand-mark,
.nav-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff09;
  color: #dce5ef;
  cursor: pointer;
  font-size: 0;
}

.brand-mark {
  box-shadow: none;
}

.brand-mark svg,
.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #c6cfda;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease), border .22s var(--ease);
}

.nav svg {
  width: 23px;
  height: 23px;
  color: #d8dfeb;
  stroke-width: 1.9;
}

.nav a:hover {
  color: #fff;
  background: #ffffff0b;
  transform: translate(3px);
}

.nav a.active {
  border-color: var(--accent-line);
  background: var(--active-bg);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav a.active svg { color: var(--accent-2); }

.main {
  position: relative;
  min-width: 0;
  height: 100vh;
  padding: 14px 16px 18px;
  overflow: auto;
}

.main:before {
  display: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - var(--sidebar) - 160px));
  margin: 0 auto;
  padding: 72px 0 42px;
  animation: page-in .34s ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 660;
  letter-spacing: 0;
}

.summary-panel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background:
    radial-gradient(circle at 9% 15%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 30%),
    var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.summary-panel.flush { grid-template-columns: minmax(0, 1fr); }
.summary-panel.office-panel { min-height: calc(100vh - 180px); }

.metric-badge {
  display: grid;
  place-items: center;
  align-self: start;
  width: 52px;
  height: 52px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  border-radius: 14px;
  background: var(--accent-soft);
  text-align: center;
}

.metric-badge strong {
  display: block;
  font-family: ui-serif, Georgia, serif;
  font-size: 24px;
  line-height: .85;
}

.metric-badge span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-head strong,
.section-card h2,
.mini-card h3,
.project-card h2 {
  color: color-mix(in srgb, var(--accent) 44%, #f1f2f3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.lead {
  margin: 0 0 14px;
  color: #ecedf0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}

.subtle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

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

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

.section-card,
.mini-card,
.content-card,
.project-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.section-card { min-height: 112px; padding: 14px 15px; transition: transform .25s var(--ease), background .25s var(--ease), border .25s var(--ease); }
.mini-card, .content-card { padding: 16px; }

.section-card:hover,
.mini-card:hover,
.project-card:hover {
  border-color: var(--accent-line);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.section-card h2,
.mini-card h3,
.project-card h2 {
  margin: 0 0 12px;
  text-transform: uppercase;
}

.section-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #d8dde6;
  font-size: 13px;
  line-height: 1.42;
}

.content-card {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.content-card p,
.mini-card p {
  margin: 0;
  color: #cfd5df;
  font-size: 14px;
  line-height: 1.55;
}

.stat strong {
  display: block;
  font-size: 23px;
  font-weight: 650;
}

.stat span { color: var(--muted); font-size: 12px; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 650;
  font-size: 12px;
}

.button.primary {
  color: #f3f3f1;
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(135deg, #3a3a3d, #55565a);
}

.project-card {
  display: grid;
  overflow: hidden;
}

.project-card img,
.project-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(255, 255, 255, .035);
}

.project-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.project-body p {
  margin: 0;
  color: #cfd5df;
  font-size: 15px;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  color: #d9def8;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, .035);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.search {
  flex: 1;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
}

.article {
  display: grid;
  gap: 14px;
  color: #d8dde6;
  font-size: 15px;
  line-height: 1.68;
}

.article p { margin: 0; }

.office-frame {
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #050607;
  overflow: hidden;
}

.office-frame iframe {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  body { overflow: hidden; }

  .app { display: block; }
  .sidebar { display: none; }

  .mobile-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 14, .94);
    backdrop-filter: blur(16px);
  }

  .mobile-bar strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border-top: 1px solid var(--line);
    background: rgba(8, 10, 14, .94);
    backdrop-filter: blur(16px);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 50px;
    border-radius: var(--radius);
    color: #aeb5c0;
    font-size: 10px;
    font-weight: 760;
    line-height: 1.05;
  }

  .mobile-nav a.active { background: rgba(255, 255, 255, .07); color: var(--text); }

  .mobile-nav svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.9;
  }

  .mobile-nav span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main {
    height: 100dvh;
    overflow: hidden;
    padding: 74px 8px 78px;
  }

  .main:before { display: none; }

  .page {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--soft-corner);
    background: linear-gradient(rgba(14, 17, 23, .9), rgba(7, 9, 12, .92));
    overflow: auto;
  }

  .hero-title { display: none; }

  .summary-panel {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
    border-radius: 18px;
  }

  .summary-panel.flush { grid-template-columns: minmax(0, 1fr); }

  .summary-panel.office-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-panel.office-panel .metric-badge {
    display: none;
  }

  .metric-badge { width: 44px; height: 44px; }
  .metric-badge strong { font-size: 20px; }
  .metric-badge span { font-size: 8px; }
  .lead { font-size: 14px; }

  .grid,
  .mini-grid,
  .project-grid,
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-card { min-height: 0; padding: 12px; }
  .section-card ul,
  .content-card p,
  .mini-card p,
  .project-body p { font-size: 13px; }

  .toolbar { display: grid; }
  .office-frame,
  .office-frame iframe { min-height: 520px; height: 520px; }
}
