  :root {
    --bg: #0a0b0d;
    --bg-rise: #0e1013;
    --panel: #14161a;
    --panel-hi: #191c21;
    --line: #262a31;
    --line-soft: #1c1f24;
    --steel: #aab2bd;
    --steel-dim: #6b7280;
    --ink: #e8ebef;
    --ink-dim: #9aa1ab;
    --blue: #3d95ff;
    --blue-bright: #6fb4ff;
    --blue-dim: #1c4d8a;
    --glow: rgba(61, 149, 255, 0.28);
    --font-display: "Chakra Petch", "Segoe UI", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  }

  * { box-sizing: border-box; }

  html { color-scheme: dark; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: var(--blue-dim); color: #fff; }

  a { color: var(--blue-bright); }

  img { max-width: 100%; display: block; }

  .wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
  }

  @media (max-width: 640px) {
    .wrap { padding: 0 20px; }
  }

  /* background chevron field, echoing the badge's angular ridges */
  .chevron-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
  }
  .chevron-field svg { position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 1400px; max-width: none; opacity: 0.5; }

  /* ---------- nav ---------- */
  header.site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 11, 13, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
  }
  .brand img { height: 30px; width: 30px; border-radius: 50%; }
  .brand .brand-name { word-spacing: -0.3em; }
  .brand .brand-sub { color: var(--blue-bright); }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 8px 16px;
    background: var(--panel);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }
  .nav-cta:hover { border-color: var(--blue-dim); color: var(--blue-bright); background: var(--panel-hi); }

  /* ---------- hero ---------- */
  .hero {
    position: relative;
    padding: 96px 0 88px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
  }
  .hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
  }
  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-badge-col { order: -1; display: flex; justify-content: center; }
  }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-bright);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
  }
  .eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--blue-dim);
  }

  h1.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 5.4vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.01em;
    margin: 0 0 22px;
    text-wrap: balance;
    color: var(--ink);
  }
  h1.hero-title .accent { color: var(--blue-bright); }

  .hero-lede {
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-dim);
    max-width: 46ch;
    margin: 0 0 36px;
  }

  .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

  .btn {
    font-family: var(--font-mono);
    font-size: 13.5px;
    letter-spacing: 0.03em;
    text-decoration: none;
    padding: 13px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, #2a6fd4 100%);
    color: #04101f;
    font-weight: 600;
  }
  .btn-primary:hover { box-shadow: 0 0 0 1px var(--blue-bright), 0 10px 28px -8px var(--glow); transform: translateY(-1px); }
  .btn-ghost {
    background: var(--panel);
    color: var(--steel);
    border-color: var(--line);
  }
  .btn-ghost:hover { border-color: var(--blue-dim); color: var(--blue-bright); }
  .btn svg { width: 15px; height: 15px; flex: none; }

  .hero-badge-col { position: relative; display: flex; justify-content: center; }
  .badge-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, rgba(61,149,255,0) 68%);
    filter: blur(4px);
    animation: pulse 6s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce) { .badge-glow { animation: none; } }
  @keyframes pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.06); }
  }
  .hero-badge-col img { position: relative; width: 320px; height: 320px; z-index: 1; }
  @media (max-width: 860px) { .hero-badge-col img { width: 240px; height: 240px; } .badge-glow { width: 280px; height: 280px; } }

  /* ---------- pillars ---------- */
  .pillars {
    padding: 72px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  @media (max-width: 720px) { .pillars-grid { grid-template-columns: 1fr; } }
  .pillar {
    background: var(--panel);
    padding: 32px 30px 34px;
  }
  .pillar-index {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--blue-dim);
    letter-spacing: 0.1em;
  }
  .pillar h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 10px;
    color: var(--ink);
    letter-spacing: 0.01em;
  }
  .pillar p { margin: 0; color: var(--ink-dim); font-size: 14.5px; line-height: 1.65; }

  /* ---------- philosophy ---------- */
  .philosophy {
    padding: 96px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .philosophy-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
  @media (max-width: 800px) { .philosophy-grid { grid-template-columns: 1fr; gap: 32px; } }
  .pull-quote {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.28;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
    border-left: 2px solid var(--blue-dim);
    padding-left: 24px;
  }
  .pull-quote .accent { color: var(--blue-bright); }
  .philosophy-body p {
    color: var(--ink-dim);
    font-size: 16px;
    line-height: 1.75;
    max-width: 60ch;
    margin: 0 0 18px;
  }
  .philosophy-body p:last-child { margin-bottom: 0; }
  .philosophy-body strong { color: var(--steel); font-weight: 600; }

  /* ---------- featured project ---------- */
  .featured {
    padding: 96px 0 108px;
  }
  .featured-head { margin-bottom: 40px; }
  .featured-head h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 40px);
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--ink);
  }
  .featured-head p {
    color: var(--ink-dim);
    font-size: 16.5px;
    max-width: 62ch;
    margin: 0;
    line-height: 1.7;
  }

  .project-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel-hi) 0%, var(--panel) 100%);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
    display: grid;
    grid-template-columns: 1.2fr 1fr;
  }
  @media (max-width: 760px) { .project-panel { grid-template-columns: 1fr; } }

  .project-main { padding: 44px 44px 44px 48px; border-right: 1px solid var(--line-soft); }
  @media (max-width: 760px) { .project-main { border-right: none; border-bottom: 1px solid var(--line-soft); padding: 36px 28px; } }

  .project-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-bright);
    background: rgba(61, 149, 255, 0.1);
    border: 1px solid var(--blue-dim);
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 18px;
  }

  .project-main h3 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--ink);
  }
  .project-main > p {
    color: var(--ink-dim);
    font-size: 15.5px;
    line-height: 1.7;
    margin: 0 0 30px;
    max-width: 52ch;
  }

  .project-cta { display: flex; gap: 14px; flex-wrap: wrap; }

  .spec-sheet { padding: 44px 40px; }
  .spec-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-mono);
    font-size: 13px;
  }
  .spec-row:first-child { padding-top: 0; }
  .spec-row:last-child { border-bottom: none; padding-bottom: 0; }
  .spec-label { color: var(--steel-dim); letter-spacing: 0.06em; flex: none; }
  .spec-value { color: var(--ink); text-align: right; }
  .spec-value.status { color: var(--blue-bright); }
  .spec-value .dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--blue-bright);
    margin-right: 7px;
    box-shadow: 0 0 8px var(--blue-bright);
    vertical-align: middle;
  }

  /* ---------- footer ---------- */
  footer {
    border-top: 1px solid var(--line-soft);
    padding: 40px 0;
  }
  .footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-brand { display: flex; align-items: center; gap: 12px; }
  .footer-brand img { height: 26px; width: 26px; border-radius: 50%; }
  .footer-brand span { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--steel); word-spacing: -0.3em; }
  .footer-tagline { font-family: var(--font-mono); font-size: 12px; color: var(--steel-dim); letter-spacing: 0.04em; }
  .footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--steel-dim); }

  a:focus-visible, button:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

/* ============ LANHub project page ============ */

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--steel-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--steel); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-bright); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--blue-bright); }

.project-hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.project-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}
.project-hero-copy { max-width: 56ch; }
.project-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.project-hero .hero-lede { margin-bottom: 28px; }

.project-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

.hero-shot-frame {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(61,149,255,0.06);
  overflow: hidden;
}
.hero-shot-frame img { width: 100%; display: block; }

/* alternating feature showcase rows */
.showcase { padding: 8px 0; }
.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding: 76px 0;
  border-bottom: 1px solid var(--line-soft);
}
.showcase .feature-row:last-child { border-bottom: none; }
.feature-row.reverse { grid-template-columns: 1.15fr 0.85fr; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-shot { order: 1; }
@media (max-width: 860px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-copy, .feature-row.reverse .feature-shot { order: initial; }
}

.feature-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue-dim);
  display: block;
  margin-bottom: 14px;
}
.feature-copy h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}
.feature-copy p {
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 12px;
  max-width: 48ch;
}
.feature-copy p:last-child { margin-bottom: 0; }
.feature-copy ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-copy li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steel);
  padding-left: 18px;
  position: relative;
}
.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1px;
  background: var(--blue-bright);
}

.feature-shot {
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  overflow: hidden;
}
.feature-shot img { width: 100%; display: block; }

.project-page-footer-cta {
  padding: 88px 0 100px;
  text-align: left;
  border-top: 1px solid var(--line-soft);
}
.project-page-footer-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 20ch;
  text-wrap: balance;
}
.project-page-footer-cta p {
  color: var(--ink-dim);
  font-size: 16px;
  max-width: 52ch;
  margin: 0 0 32px;
  line-height: 1.7;
}
