/* ── VARIABLES ── */
:root {
  --bg:      #f4f6f9;
  --bg2:     #ebeef4;
  --bg3:     #ffffff;
  --line:    rgba(0,0,0,0.09);
  --accent:  #0a9e6e;
  --accent-bright: #2ee8a5;
  --text:    #0d1117;
  --muted:   #374151;
  --subtle:  #6b7280;
  --white:   #ffffff;
  --card:    #ffffff;
  --nav-bg:  #0d1117;
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-logo span { color: var(--accent-bright); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent-bright); }

.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--accent-bright);
  color: var(--nav-bg);
}

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── HERO — keeps dark for impact ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  background: var(--nav-bg);
  border-bottom: 3px solid var(--accent);
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 48px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-inner h1 { max-width: 680px; }
.hero-inner .hero-sub { max-width: 560px; }

.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent-bright);
  display: inline-block;
}

h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 28px;
  padding-bottom: 0.15em;
}

h1 .highlight { color: var(--accent-bright); }

.hero-sub {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-bottom: 48px;
  font-weight: 400;
}

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

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--accent-bright);
  color: var(--nav-bg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
  display: inline-block;
}

.btn-primary:hover { background: #ffffff; color: var(--nav-bg); }

.btn-secondary {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* ── HERO PANEL ── */
.hero-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 32px;
  position: relative;
}

.panel-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.panel-row:last-child { border-bottom: none; }

.panel-key {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.panel-val {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  word-break: break-word;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── SHARED SECTION STYLES ── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 0.15em;
}

/* ── ABOUT ── */
#about {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 20px;
}

.about-text p strong {
  color: var(--text);
  font-weight: 700;
}



/* ── PRODUCTS ── */
#products {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(10,158,110,0.1);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.product-card:hover::before { transform: scaleX(1); }

.product-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.product-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.product-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.product-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  flex-grow: 1;
}

.product-link {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  transition: color 0.2s;
}

.product-card:hover .product-link { color: var(--accent); }

.product-link::after {
  content: '→';
  transition: transform 0.2s;
}

.product-card:hover .product-link::after { transform: translateX(4px); }

/* ── BLOG PREVIEW ── */
#blog-preview {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(10,158,110,0.08);
}

.blog-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid rgba(10,158,110,0.3);
  width: fit-content;
  background: rgba(10,158,110,0.05);
}

.blog-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text);
}

.blog-excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  flex-grow: 1;
}

.blog-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.08em;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ── CONTACT ── */
#contact {
  padding: 120px 0;
  background: var(--bg2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 56px;
}

.legal-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.legal-panel::before {
  content: 'LEGAL_ENTITY';
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--accent);
  position: absolute;
  top: -1px;
  left: 20px;
  background: var(--white);
  padding: 0 8px;
  transform: translateY(-50%);
}

.legal-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.legal-row:last-child { border-bottom: none; }

.legal-key {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subtle);
}

.legal-val {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.legal-val a {
  color: var(--accent);
  text-decoration: none;
}

/* ── CONTACT FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

input, textarea, select {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--text);
  padding: 13px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input::placeholder, textarea::placeholder { color: #aab0bc; }

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10,158,110,0.1);
}

select option { background: var(--white); color: var(--text); }
textarea { min-height: 130px; resize: vertical; }

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  border-left: 3px solid;
}

.form-status.sending { border-color: var(--accent); color: var(--subtle); background: rgba(10,158,110,0.04); }
.form-status.success { border-color: var(--accent); color: var(--accent); background: rgba(10,158,110,0.06); }
.form-status.error   { border-color: #dc2626; color: #dc2626; background: rgba(220,38,38,0.05); }

.form-privacy {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-top: 4px;
}

/* ── FOOTER ── */
footer {
  background: var(--nav-bg);
  border-top: 3px solid var(--accent);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.footer-brand span { color: var(--accent-bright); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent-bright); }

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 0;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}

.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent-bright); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .container { padding: 0 20px; }

  /* Hero */
  .hero-inner { padding: 60px 20px 80px; max-width: 100%; }

  h1 { font-size: clamp(28px, 7vw, 48px); }
  h2 { font-size: clamp(22px, 5.5vw, 34px); }

  .hero-sub { font-size: 16px; max-width: 100%; }

  /* About */
  #about { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Triangle */
  .triangle { grid-template-columns: 1fr; }
  .tri-node.full { grid-column: auto; }

  /* Products */
  #products { padding: 80px 0; }
  .products-grid { grid-template-columns: 1fr; }

  /* Blog */
  #blog-preview { padding: 80px 0; }
  .blog-grid { grid-template-columns: 1fr; }

  /* Contact */
  #contact { padding: 80px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 32px 20px;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta a { text-align: center; width: 100%; }
  .legal-panel { padding: 24px 16px; }
  .product-card { padding: 24px 16px; }
  .blog-card { padding: 20px 16px; }
  .contact-form { gap: 12px; }

  /* Prevent any child from overflowing the viewport */
  * { max-width: 100%; }
  img, table, pre, code { overflow-x: auto; }
}


/* ============================================================ */
/* PAGE: BLOG */
/* ============================================================ */

/* ── BLOG HERO WITH IMAGE ── */
  .blog-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 3px solid var(--accent);
  }

  .blog-hero-img {
    position: absolute;
    inset: 0;
    background-image: url('assets/blog-hero.jpg');
    background-size: cover;
    background-position: center;
    /* Fallback gradient if no image */
    background-color: var(--nav-bg);
  }

  /* Dark overlay so text is always readable */
  .blog-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(13,17,23,0.35) 0%,
      rgba(13,17,23,0.75) 60%,
      rgba(13,17,23,0.95) 100%
    );
  }

  .blog-hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 48px 64px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-top: 120px;
  }

  .blog-hero-content .section-label { color: var(--accent-bright); }

  .blog-hero-content h1 {
    color: #ffffff;
    font-size: clamp(32px, 4.5vw, 64px);
    max-width: 700px;
    margin-bottom: 20px;
  }

  .blog-hero-content p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255,255,255,0.78);
    max-width: 540px;
    margin-bottom: 0;
  }

  /* ── CONTROLS BAR ── */
  .blog-controls-bar {
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    position: sticky;
    top: 64px;
    z-index: 10;
  }

  .blog-controls-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
  }

  .search-box {
    position: relative;
    width: 240px;
  }

  .search-box input {
    padding-left: 36px;
    font-size: 13px;
    height: 38px;
    background: var(--white);
    border: 1px solid var(--line);
  }

  .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--subtle);
    pointer-events: none;
  }

  .tag-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
  }

  .tag-filter {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--subtle);
    cursor: pointer;
    transition: all 0.2s;
  }

  .tag-filter:hover, .tag-filter.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(10,158,110,0.06);
  }

  /* ── POSTS LIST ── */
  .posts-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 48px 100px;
  }

  .post-count {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--subtle);
    letter-spacing: 0.08em;
    margin-bottom: 24px;
  }

  .posts-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .post-card {
    display: grid;
    grid-template-columns: 130px 1fr 32px;
    gap: 32px;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 28px 32px;
    text-decoration: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }

  .post-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
  }

  .post-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(10,158,110,0.08); }
  .post-card:hover::before { transform: scaleY(1); }

  .post-date-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
  }

  .post-date {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.06em;
  }

  .post-reading-time {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--subtle);
    letter-spacing: 0.05em;
  }

  .post-author-mini {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--subtle);
    margin-top: 6px;
  }

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

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

  .post-tag {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 3px 8px;
    border: 1px solid rgba(10,158,110,0.25);
    background: rgba(10,158,110,0.05);
  }

  .post-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    color: var(--text);
    padding-bottom: 0.15em;
  }

  .post-excerpt {
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
  }

  .post-arrow {
    font-size: 18px;
    color: var(--subtle);
    transition: all 0.2s;
    padding-top: 2px;
    align-self: center;
  }

  .post-card:hover .post-arrow { color: var(--accent); transform: translateX(4px); }

  .no-results {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--subtle);
    padding: 48px 0;
  }

  @media (max-width: 900px) {
    .blog-hero-content { padding: 100px 20px 48px; }
    .blog-controls-inner { padding: 0 20px; }
    .posts-section { padding: 32px 20px 60px; }
    .search-box { width: 100%; }
    .post-card { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
    .post-date-col { flex-direction: row; gap: 16px; }
    .post-arrow { display: none; }
  }

/* ============================================================ */
/* PAGE: BLOG-POST */
/* ============================================================ */

.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 64px;
    padding: 120px 0 100px;
    align-items: start;
  }

  /* ── Article header ── */
  .article-header {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
  }

  .article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .article-tag {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 4px 10px;
    border: 1px solid var(--accent2);
  }

  .article-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 28px;
    padding-bottom: 4px;
  }

  .article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  .author-block {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
    flex-shrink: 0;
    overflow: hidden;
  }

  .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .author-info { display: flex; flex-direction: column; gap: 2px; }

  .author-name {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--text);
    letter-spacing: 0.06em;
  }

  .author-role {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--subtle);
    letter-spacing: 0.06em;
  }

  .meta-divider {
    width: 1px;
    height: 28px;
    background: var(--line);
  }

  .meta-item {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--subtle);
    letter-spacing: 0.08em;
  }

  .meta-item span { color: var(--muted); }

  /* ── Article body (markdown rendered) ── */
  .article-body {
    font-size: 17px;
    line-height: 1.9;
    color: #374151;
  }

  .article-body h1,
  .article-body h2,
  .article-body h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #0d1117;
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
    line-height: 1.2;
    padding-bottom: 2px;
  }

  .article-body h1 { font-size: 32px; }
  .article-body h2 { font-size: 24px; border-bottom: 1px solid rgba(0,0,0,0.09); padding-bottom: 12px; }
  .article-body h3 { font-size: 19px; }

  .article-body p { margin-bottom: 20px; }

  .article-body strong { color: #0d1117; font-weight: 700; }

  .article-body a {
    color: #0a9e6e;
    text-decoration: none;
    border-bottom: 1px solid rgba(10,158,110,0.3);
    transition: border-color 0.2s;
  }
  .article-body a:hover { border-color: #0a9e6e; }

  .article-body ul,
  .article-body ol {
    margin: 0 0 20px 24px;
  }

  .article-body li { margin-bottom: 8px; }

  .article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 24px;
    margin: 28px 0;
    color: var(--muted);
    font-style: italic;
  }

  .article-body code {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    background: var(--bg3);
    border: 1px solid var(--line);
    padding: 2px 6px;
    color: var(--accent);
  }

  .article-body pre {
    background: var(--bg3);
    border: 1px solid var(--line);
    padding: 20px 24px;
    overflow-x: auto;
    margin-bottom: 24px;
  }

  .article-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
  }

  .article-body hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 40px 0;
  }

  .article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
  }

  .article-body th {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .article-body td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
  }

  /* ── Sidebar ── */
  .post-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .sidebar-panel {
    background: var(--bg3);
    border: 1px solid var(--line);
    padding: 24px;
  }

  .sidebar-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
  }

  .author-card-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .author-card-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
  }

  .author-card-role {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.08em;
  }

  .author-card-bio {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
  }

  .toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .toc-item a {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    line-height: 1.5;
    display: block;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s;
  }

  .toc-item a:hover { color: var(--accent); }

  /* ── Post navigation ── */
  .post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
  }

  .post-nav-item {
    background: var(--bg3);
    border: 1px solid var(--line);
    padding: 24px;
    text-decoration: none;
    transition: border-color 0.3s;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .post-nav-item:hover { border-color: var(--accent); }
  .post-nav-item.next { text-align: right; }

  .post-nav-dir {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--subtle);
  }

  .post-nav-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    line-height: 1.3;
  }

  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 40px;
    margin-top: 88px;
    transition: color 0.2s;
  }

  .back-link:hover { color: var(--accent); }

  @media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; gap: 48px; padding: 100px 0 60px; }
    .post-sidebar { position: static; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-item.next { text-align: left; }
  }

/* ============================================================ */
/* PAGE: PRIVACY */
/* ============================================================ */

.privacy-layout {
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 48px 100px;
  }

  .privacy-header {
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
  }

  .privacy-updated {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--subtle);
    margin-top: 12px;
  }

  .privacy-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
  }

  .privacy-section:last-child {
    border-bottom: none;
  }

  .privacy-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .privacy-section h2::before {
    content: attr(data-num);
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: rgba(10,158,110,0.08);
    border: 1px solid rgba(10,158,110,0.2);
    padding: 3px 8px;
    flex-shrink: 0;
  }

  .privacy-section p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 12px;
  }

  .privacy-section ul {
    margin: 8px 0 12px 0;
    padding: 0;
    list-style: none;
  }

  .privacy-section ul li {
    font-size: 15px;
    line-height: 1.75;
    color: var(--muted);
    padding: 6px 0 6px 20px;
    border-bottom: 1px solid var(--line);
    position: relative;
  }

  .privacy-section ul li:last-child { border-bottom: none; }

  .privacy-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 12px;
  }

  .privacy-section strong { color: var(--text); font-weight: 700; }

  .entity-box {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 24px;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    line-height: 2;
    color: var(--text);
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

  .entity-box span { color: var(--subtle); margin-right: 12px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }

  .cookie-notice {
    background: rgba(10,158,110,0.06);
    border: 1px solid rgba(10,158,110,0.2);
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
  }

  @media (max-width: 900px) {
    .privacy-layout { padding: 100px 20px 60px; }
  }
/* ── FACTS PANEL ── */
.facts-panel {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.facts-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.facts-row:last-child { border-bottom: none; }

.facts-key {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  padding-top: 2px;
}

.facts-val {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
}
