/* ============================================================
   Midnight Ink — Design System CSS
   Converted from Next.js / Tailwind CSS
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  --mk-black:    #000000;
  --mk-white:    #ffffff;
  --mk-accent:   #c8ff00;
  --mk-gray-100: #f5f5f5;
  --mk-gray-200: #e5e5e5;
  --mk-gray-400: #e5e5e5;
  --mk-gray-600: #525252;
  --mk-gray-800: #262626;
  --mk-gray-900: #171717;
  --radius: 0;
  --max-w: 1280px;
  --px: clamp(1.5rem, 4vw, 2.5rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--mk-black);
  color: var(--mk-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font-family: inherit;
  border-radius: 0;
}

/* ── Container ── */
.mk-container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

/* ── Typography ── */
.mk-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mk-accent);
}

.mk-h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--mk-white);
}

.mk-h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--mk-white);
}

.mk-accent-text { color: var(--mk-accent); }
.mk-gray-text   { color: var(--mk-gray-200); }

/* ── Buttons ── */
.mk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--mk-accent);
  color: var(--mk-black);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}
.mk-btn-primary:hover { background-color: var(--mk-white); color: var(--mk-black); }

.mk-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--mk-white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: 1px solid var(--mk-gray-800);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.mk-btn-outline:hover { border-color: var(--mk-accent); color: var(--mk-accent); }


/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 72px;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background-color: rgba(0,0,0,0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--mk-gray-800);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mk-white);
  transition: color 0.2s;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--mk-accent); }
.site-logo .dot { color: var(--mk-accent); }

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--mk-white); }

/* SEO Dropdown button */
.seo-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.8);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.seo-dropdown-btn:hover, .seo-dropdown-btn.open { color: var(--mk-accent); }
.seo-dropdown-btn svg { transition: transform 0.2s; }
.seo-dropdown-btn.open svg { transform: rotate(180deg); }

/* Dropdown panel */
.seo-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  background: var(--mk-gray-900);
  border: 1px solid var(--mk-gray-800);
  padding: 8px;
  display: none;
  grid-template-columns: 1fr 1fr;
}
.seo-dropdown-panel.open { display: grid; }

.seo-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  transition: background-color 0.15s;
}
.seo-dropdown-item:hover { background-color: var(--mk-gray-800); }
.seo-dropdown-item .item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--mk-white);
  transition: color 0.15s;
}
.seo-dropdown-item:hover .item-title { color: var(--mk-accent); }
.seo-dropdown-item.highlight .item-title { color: var(--mk-accent); }
.seo-dropdown-item.highlight:hover .item-title { color: var(--mk-white); }
.seo-dropdown-item .item-desc {
  font-size: 11px;
  color: var(--mk-gray-400);
  line-height: 1.5;
}

/* SEO'yu Keşfet footer link in dropdown */
.seo-dropdown-footer {
  grid-column: 1 / -1;
  padding: 10px 16px;
  border-top: 1px solid var(--mk-gray-800);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--mk-gray-400);
  transition: color 0.15s;
}
.seo-dropdown-footer:hover { color: var(--mk-accent); }

/* Header CTA */
.header-cta {
  display: none;
}
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

/* Hamburger */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mk-white);
  padding: 4px;
}
@media (min-width: 1024px) { .hamburger-btn { display: none; } }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--mk-black);
  flex-direction: column;
  padding: 80px 24px 24px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--mk-gray-800);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--mk-accent); }

.mobile-seo-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  background: none;
  border: none;
  border-bottom: 1px solid var(--mk-gray-800);
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-seo-toggle:hover { color: var(--mk-accent); }
.mobile-seo-sub { display: none; padding-left: 16px; }
.mobile-seo-sub.open { display: block; }
.mobile-seo-sub a {
  display: block;
  padding: 0.75rem 0;
  font-size: 14px;
  color: var(--mk-gray-400);
  border-bottom: 1px solid rgba(38,38,38,0.5);
}
.mobile-seo-sub a:hover { color: var(--mk-accent); }


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--mk-black);
  overflow: hidden;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid-lines::before,
.hero-grid-lines::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hero-glow {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(200,255,0,0.015);
  filter: blur(120px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--mk-gray-800);
  padding: 6px 12px;
  margin-bottom: 2rem;
}
.hero-badge .pulse-dot {
  width: 6px; height: 6px;
  background: var(--mk-accent);
  border-radius: 50%;
  animation: pulse-anim 2s cubic-bezier(0.4,0,0.6,1) infinite;
}
.hero-badge span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mk-gray-400);
}

@keyframes pulse-anim {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mk-gray-800);
}
.hero-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--mk-white);
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 11px;
  color: var(--mk-gray-400);
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.hero-stat-divider {
  width: 1px; height: 32px;
  background: var(--mk-gray-800);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; align-items: center; }
  .hero-ctas .mk-btn-primary,
  .hero-ctas .mk-btn-outline { width: auto; }
}
.hero-ctas .mk-btn-primary,
.hero-ctas .mk-btn-outline { width: 100%; justify-content: center; }

/* Chart container with corner accents */
.chart-wrapper {
  position: relative;
}
.chart-box {
  border: 1px solid var(--mk-gray-800);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  padding: 1.25rem;
}
@media (min-width: 1024px) { .chart-box { padding: 1.5rem; } }

.chart-corner {
  position: absolute;
  width: 16px; height: 16px;
}
.chart-corner.tl { top: -1px; left: -1px;   border-top: 1px solid rgba(200,255,0,0.3); border-left: 1px solid rgba(200,255,0,0.3); }
.chart-corner.tr { top: -1px; right: -1px;  border-top: 1px solid rgba(200,255,0,0.3); border-right: 1px solid rgba(200,255,0,0.3); }
.chart-corner.bl { bottom: -1px; left: -1px; border-bottom: 1px solid rgba(200,255,0,0.3); border-left: 1px solid rgba(200,255,0,0.3); }
.chart-corner.br { bottom: -1px; right: -1px; border-bottom: 1px solid rgba(200,255,0,0.3); border-right: 1px solid rgba(200,255,0,0.3); }

/* Traffic Chart canvas */
.traffic-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-inline: 4px;
}
.traffic-counter {
  font-size: 28px;
  font-weight: 700;
  color: var(--mk-white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.traffic-pct { font-size: 13px; font-weight: 600; color: var(--mk-accent); }
.traffic-legend { display: flex; align-items: center; gap: 1rem; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--mk-gray-400); }
.legend-dot { width: 10px; height: 2px; border-radius: 9999px; }

.canvas-ratio-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
}
.canvas-ratio-wrap canvas { width: 100%; height: 100%; display: block; }

/* Hero info box */
.hero-info-box-wrap {
  position: relative;
  margin-top: 0.75rem;
}
.hero-info-box {
  border: 1px solid var(--mk-gray-800);
  background: rgba(0,0,0,0.6);
}
.hero-info-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #e5e5e5;
  gap: 0.5rem;
  transition: color 0.2s;
}
.hero-info-trigger:hover { color: #ffffff; }
.hero-info-trigger-inner { display: flex; align-items: center; gap: 0.625rem; }
.hero-info-arrow { color: #c8ff00; flex-shrink: 0; }
.hero-info-q {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-info-chevron {
  flex-shrink: 0;
  color: #c8ff00;
  transition: transform 0.25s ease;
}
.hero-info-trigger[aria-expanded="true"] .hero-info-chevron {
  transform: rotate(180deg);
}
.hero-info-answer {
  font-size: 13px;
  line-height: 1.75;
  color: #e5e5e5;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid var(--mk-gray-800);
}
.hero-info-corner {
  position: absolute;
  width: 12px; height: 12px;
}
.hero-info-corner--tl { top: -1px; left: -1px; border-top: 1px solid rgba(200,255,0,0.4); border-left: 1px solid rgba(200,255,0,0.4); }
.hero-info-corner--tr { top: -1px; right: -1px; border-top: 1px solid rgba(200,255,0,0.4); border-right: 1px solid rgba(200,255,0,0.4); }
.hero-info-corner--bl { bottom: -1px; left: -1px; border-bottom: 1px solid rgba(200,255,0,0.4); border-left: 1px solid rgba(200,255,0,0.4); }
.hero-info-corner--br { bottom: -1px; right: -1px; border-bottom: 1px solid rgba(200,255,0,0.4); border-right: 1px solid rgba(200,255,0,0.4); }

/* ============================================================
   BRAND MARQUEE
   ============================================================ */
.marquee-section {
  padding-block: 4rem;
  border-top: 1px solid var(--mk-gray-800);
  border-bottom: 1px solid var(--mk-gray-800);
  overflow: hidden;
}

.marquee-section .mk-label { text-align: center; margin-bottom: 2rem; }

.marquee-track {
  display: flex;
  overflow: hidden;
  gap: 0;
  margin-bottom: 0.75rem;
}
.marquee-track-inner {
  display: flex;
  animation: marquee-scroll 35s linear infinite;
  white-space: nowrap;
}
.marquee-track.reverse .marquee-track-inner {
  animation: marquee-scroll-rev 40s linear infinite;
}
.marquee-track:hover .marquee-track-inner { animation-play-state: paused; }

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-scroll-rev {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: 2rem;
  margin-inline: 0.75rem;
  border: 1px solid;
  white-space: nowrap;
  user-select: none;
  transition: background-color 0.3s, border-color 0.3s;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.marquee-item.normal {
  border-color: rgba(38,38,38,0.6);
  background: rgba(23,23,23,0.4);
  color: var(--mk-gray-600);
}
.marquee-item.accent {
  border-color: rgba(200,255,0,0.2);
  background: rgba(200,255,0,0.04);
  color: rgba(200,255,0,0.6);
}


/* ============================================================
   FEATURE SECTION
   ============================================================ */
.features-section {
  padding-block: 6rem;
  border-bottom: 1px solid var(--mk-gray-800);
}

.features-header {
  display: block;
  max-width: 42rem;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--mk-gray-800);
  border: 1px solid var(--mk-gray-800);
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--mk-black);
  padding: 1.5rem;
  position: relative;
  transition: border-color 0.3s, background-color 0.3s;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s, transform 0.5s, background-color 0.3s;
}
@media (min-width: 1024px) { .feature-card { padding: 2rem; } }
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card:hover { background: rgba(23,23,23,0.6); }

.feature-icon-box {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--mk-gray-800);
  color: var(--mk-accent);
  margin-bottom: 1.25rem;
  transition: border-color 0.3s, background-color 0.3s;
}
.feature-card:hover .feature-icon-box {
  border-color: rgba(200,255,0,0.3);
  background: rgba(200,255,0,0.04);
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--mk-white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mk-gray-400);
  margin-bottom: 1.5rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mk-gray-400);
  transition: color 0.2s;
}
.feature-card:hover .feature-link { color: var(--mk-accent); }

/* corner accent on hover */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px; height: 16px;
  background: rgba(200,255,0,0.4);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::after { opacity: 1; }


/* ============================================================
   SUCCESS STORIES
   ============================================================ */
.success-section {
  padding-block: 6rem;
  border-bottom: 1px solid var(--mk-gray-800);
  overflow: hidden;
}

.success-header {
  display: block;
  max-width: 42rem;
  margin-bottom: 3rem;
}

.success-nav-btns {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.success-nav-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--mk-gray-800);
  background: transparent;
  color: var(--mk-gray-400);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.success-nav-btn:hover { border-color: var(--mk-accent); color: var(--mk-accent); }

.success-track-wrap { overflow: hidden; }
.success-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-card {
  min-width: min(100%, 520px);
  border: 1px solid var(--mk-gray-800);
  background: var(--mk-gray-900);
  padding: 2rem;
  flex-shrink: 0;
}

.success-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--mk-gray-800);
}
.success-client-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--mk-white);
}
.success-client-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mk-gray-600);
  border: 1px solid var(--mk-gray-800);
  padding: 2px 8px;
}

.success-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.metric-item { display: flex; flex-direction: column; gap: 2px; }
.metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--mk-accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.metric-label {
  font-size: 11px;
  color: var(--mk-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.metric-divider {
  width: 1px; height: 40px;
  background: var(--mk-gray-800);
}
@media (max-width: 639px) { .metric-divider { display: none; } }

.success-chart-area {
  background: var(--mk-black);
  border: 1px solid var(--mk-gray-800);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.case-canvas-wrap { position: relative; width: 100%; aspect-ratio: 3/1; }
.case-canvas-wrap canvas { width: 100%; height: 100%; display: block; }

.phase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--mk-gray-800);
  padding: 4px 8px;
  color: var(--mk-gray-400);
}
.phase-tag.accent { border-color: rgba(200,255,0,0.3); color: var(--mk-accent); }

.success-result {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mk-gray-400);
}
.success-result strong { color: var(--mk-accent); font-weight: 700; }

.success-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}
.success-dot {
  width: 6px; height: 6px;
  background: var(--mk-gray-800);
  transition: background-color 0.2s, width 0.2s;
  cursor: pointer;
}
.success-dot.active {
  background: var(--mk-accent);
  width: 16px;
}


/* ============================================================
   SEM / SEO / GEO (Channel Comparison)
   ============================================================ */
.channels-section {
  padding-block: 6rem;
  border-bottom: 1px solid var(--mk-gray-800);
}

.channels-intro { max-width: 600px; margin-bottom: 3rem; }
.channels-intro h2 span { font-weight: 800; }

.channels-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--mk-gray-800);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.channels-tabs::-webkit-scrollbar { display: none; }

.channel-tab {
  padding: 0.75rem 1.5rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mk-gray-600);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
  margin-bottom: -1px;
}
.channel-tab:hover { color: var(--mk-gray-400); }
.channel-tab.active { color: var(--mk-white); border-bottom-color: var(--mk-accent); }

.channel-panel { display: none; }
.channel-panel.active { display: grid; }

.channel-panel {
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .channel-panel { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.channel-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mk-gray-600);
  margin-bottom: 0.75rem;
}
.channel-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--mk-gray-200);
  margin-bottom: 1.5rem;
}
.channel-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.trait-item {
  border: 1px solid var(--mk-gray-800);
  padding: 10px 12px;
}
.trait-label { font-size: 10px; color: var(--mk-gray-600); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.trait-value { font-size: 12px; font-weight: 600; color: var(--mk-white); }

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.pros-list, .cons-list { list-style: none; }
.pros-list li, .cons-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mk-gray-200);
  margin-bottom: 8px;
}
.pros-list li::before { content: '↑'; color: var(--mk-accent); font-weight: 700; flex-shrink: 0; }
.cons-list li::before { content: '↓'; color: var(--mk-gray-600); font-weight: 700; flex-shrink: 0; }
.pros-title, .cons-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.pros-title { color: var(--mk-accent); }
.cons-title { color: var(--mk-gray-600); }


/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding-block: 6rem;
  border-bottom: 1px solid var(--mk-gray-800);
}

.faq-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) { .faq-header { grid-template-columns: 1fr 1fr; align-items: end; } }

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.faq-tab {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--mk-gray-800);
  color: var(--mk-gray-600);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.faq-tab:hover { border-color: var(--mk-gray-600); color: var(--mk-gray-400); }
.faq-tab.active { background: var(--mk-accent); border-color: var(--mk-accent); color: var(--mk-black); }

.faq-list { border-top: 1px solid var(--mk-gray-800); }

.faq-item { border-bottom: 1px solid var(--mk-gray-800); }

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  user-select: none;
}
.faq-question-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-white);
  line-height: 1.5;
  transition: color 0.2s;
}
.faq-question:hover .faq-question-text { color: var(--mk-accent); }
.faq-item.open .faq-question-text { color: var(--mk-accent); }

.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
  color: var(--mk-gray-600);
  margin-top: 2px;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--mk-accent); }

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mk-gray-200);
}
.faq-item.open .faq-answer { display: block; }


/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  position: relative;
  background: var(--mk-black);
  padding-top: 5rem;
  padding-bottom: 2rem;
  overflow: hidden;
}

.footer-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--mk-gray-800), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--mk-gray-800);
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 5fr 3fr 4fr; gap: 4rem; }
}

.footer-logo {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mk-white);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.footer-logo:hover { color: var(--mk-accent); }
.footer-logo .dot { color: var(--mk-accent); }

.footer-bio {
  font-size: 13px;
  line-height: 1.8;
  color: var(--mk-gray-200);
  max-width: 360px;
  margin-bottom: 2rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
@media (min-width: 1024px) { .footer-socials { justify-content: flex-start; } }

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--mk-gray-800);
  color: var(--mk-gray-600);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.social-icon-btn:hover {
  color: var(--mk-accent);
  border-color: rgba(200,255,0,0.3);
  background: rgba(200,255,0,0.04);
}

.footer-nav-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mk-gray-600);
  margin-bottom: 1.25rem;
}

.footer-nav a {
  display: block;
  padding-block: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mk-gray-200);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--mk-accent); }

.footer-cta-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mk-gray-200);
  margin-bottom: 1.5rem;
}

.footer-email-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mk-gray-800);
}
.footer-email-block a {
  font-size: 13px;
  font-weight: 500;
  color: var(--mk-gray-200);
  transition: color 0.2s;
}
.footer-email-block a:hover { color: var(--mk-accent); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mk-gray-800);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-bottom-col {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 640px) {
  .footer-bottom-col { flex: 1; }
  .footer-bottom-left  { justify-content: flex-start; }
  .footer-bottom-center { justify-content: center; }
  .footer-bottom-right  { justify-content: flex-end; }
}
.footer-copy { font-size: 11px; color: var(--mk-gray-600); }
.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--mk-gray-600);
}
.footer-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mk-accent);
  animation: pulse-anim 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

/* Footer meta: version + Made with Claude */
.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 640px) {
  .footer-meta { justify-content: flex-end; }
}
.footer-version {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mk-gray-600);
  border: 1px solid var(--mk-gray-800);
  padding: 2px 8px;
  font-family: 'Montserrat', system-ui, sans-serif;
}
.footer-claude-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  color: var(--mk-gray-600);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
  letter-spacing: 0.04em;
  font-family: 'Montserrat', system-ui, sans-serif;
}
.footer-claude-link:hover { color: #DA7756; opacity: 1; }
.footer-claude-link .claude-icon { flex-shrink: 0; }


/* ============================================================
   PAGE CONTENT (single, page, archive)
   ============================================================ */
.page-hero {
  padding-top: calc(72px + 4rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--mk-gray-800);
}

.entry-content {
  padding-block: 4rem;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mk-gray-400);
}
.entry-content h1,.entry-content h2,.entry-content h3 {
  color: var(--mk-white);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content a { color: var(--mk-accent); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
  border-left: 2px solid var(--mk-accent);
  padding-left: 1.5rem;
  margin-block: 1.5rem;
  color: var(--mk-gray-400);
  font-style: italic;
}
.entry-content code {
  background: var(--mk-gray-900);
  border: 1px solid var(--mk-gray-800);
  padding: 2px 6px;
  font-size: 0.875em;
  color: var(--mk-accent);
}
.entry-content pre {
  background: var(--mk-gray-900);
  border: 1px solid var(--mk-gray-800);
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.entry-content pre code { background: none; border: none; padding: 0; }
.entry-content img { width: 100%; margin-block: 2rem; border: 1px solid var(--mk-gray-800); }

/* Archive / Blog */
.archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--mk-gray-800);
  border: 1px solid var(--mk-gray-800);
  margin-bottom: 3rem;
}
@media (min-width: 640px)  { .archive-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .archive-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  background: var(--mk-black);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background-color 0.2s;
}
.post-card:hover { background: var(--mk-gray-900); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 11px;
  color: var(--mk-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.post-category { color: var(--mk-accent); font-weight: 600; }
.post-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--mk-white);
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.post-card:hover .post-title { color: var(--mk-accent); }
.post-excerpt { font-size: 13px; line-height: 1.7; color: var(--mk-gray-400); }
.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mk-gray-600);
  margin-top: auto;
  transition: color 0.2s;
}
.post-card:hover .post-read-more { color: var(--mk-accent); }

/* Pagination */
.mk-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 2rem;
}
.mk-pagination a, .mk-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--mk-gray-800);
  color: var(--mk-gray-400);
  transition: border-color 0.2s, color 0.2s;
}
.mk-pagination a:hover { border-color: var(--mk-accent); color: var(--mk-accent); }
.mk-pagination .current { border-color: var(--mk-accent); color: var(--mk-accent); background: rgba(200,255,0,0.05); }


/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
}
.error-404-inner {
  text-align: center;
  padding: 2rem;
}
.error-404-code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 800;
  color: var(--mk-gray-800);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}
.error-404-code span { color: var(--mk-accent); }
.error-404-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mk-white);
  margin-bottom: 1rem;
}
.error-404-desc {
  font-size: 15px;
  color: var(--mk-gray-400);
  max-width: 400px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}


/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.main-content { flex: 1; padding-top: 72px; }
.section-padding { padding-block: 5rem; }
@media (min-width: 1024px) { .section-padding { padding-block: 6rem; } }

/* WP-injected alignment classes */
.alignleft  { float: left; margin-right: 2rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 2rem; margin-bottom: 1rem; }


/* ============================================================
   SHARED: badge line + section dividers
   ============================================================ */
.mk-badge-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--mk-gray-800);
  padding: 6px 12px;
  margin-bottom: 1.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mk-gray-400);
}
.mk-badge-dot { width: 4px; height: 4px; background: var(--mk-accent); flex-shrink: 0; }

.features-cta-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mk-gray-800);
}
@media (min-width: 640px) {
  .features-cta-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* feature-icon alias (maps to existing icon box style) */
.feature-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--mk-gray-800);
  color: var(--mk-accent);
  margin-bottom: 1.25rem;
  transition: border-color 0.3s, background-color 0.3s;
}
.feature-card:hover .feature-icon {
  border-color: rgba(200,255,0,0.3);
  background: rgba(200,255,0,0.04);
}
.feature-corner { position: absolute; top: 0; right: 0; width: 32px; height: 32px; overflow: hidden; opacity: 0; transition: opacity 0.3s; }
.feature-card:hover .feature-corner { opacity: 1; }
.feature-corner-v { position: absolute; top: 0; right: 0; width: 1px; height: 16px; background: rgba(200,255,0,0.4); }
.feature-corner-h { position: absolute; top: 0; right: 0; height: 1px; width: 16px; background: rgba(200,255,0,0.4); }

.features-grid-lines { position: absolute; inset: 0; pointer-events: none; }
/* .features-section position:relative added here overrides the block-level rule above */
.features-section { position: relative; padding-block: 6rem; border-bottom: 1px solid var(--mk-gray-800); background-color: var(--mk-black); }
.semseo-section { position: relative; padding-block: 6rem; border-bottom: 1px solid var(--mk-gray-800); overflow: hidden; background-color: var(--mk-black); }
.success-section { background-color: var(--mk-black); }
.faq-section { background-color: var(--mk-black); }
@media (min-width: 1024px) {
  .features-section,
  .semseo-section,
  .success-section,
  .faq-section { padding-block: 8rem; }
}
.marquee-section { background-color: var(--mk-black); }
.semseo-top-line { height: 1px; background: linear-gradient(to right, transparent, var(--mk-gray-800), transparent); }
.success-top-line { height: 1px; background: linear-gradient(to right, transparent, var(--mk-gray-800), transparent); }
.faq-top-line     { height: 1px; background: linear-gradient(to right, transparent, var(--mk-gray-800), transparent); }

/* Force black background on main and body to override WP global styles */
body, #site-main { background-color: var(--mk-black) !important; }
.wp-site-blocks, .entry-content { background-color: var(--mk-black); }

/* WordPress admin bar offset */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }


/* ============================================================
   MARQUEE — new class names matching marquee.php
   ============================================================ */
.marquee-section { padding-block: 4rem; overflow: hidden; position: relative; }
.marquee-top-line,
.marquee-bottom-line { height: 1px; background: linear-gradient(to right, transparent, var(--mk-gray-800), transparent); }
.marquee-label-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2.5rem;
  padding-inline: 0;
}
/* lang="en" items: already pre-capitalized in PHP, skip CSS uppercase */
.skill-item[lang="en"] .skill-name { text-transform: none; letter-spacing: 0.05em; }
.marquee-rows { display: flex; flex-direction: column; gap: 0.75rem; }
.marquee-row-wrap { position: relative; overflow: hidden; width: 100%; }
.marquee-fade-left  { pointer-events: none; position: absolute; left: 0; top: 0; bottom: 0; width: 6rem; z-index: 1; background: linear-gradient(to right, var(--mk-black), transparent); }
.marquee-fade-right { pointer-events: none; position: absolute; right: 0; top: 0; bottom: 0; width: 6rem; z-index: 1; background: linear-gradient(to left, var(--mk-black), transparent); }

.marquee-track {
  display: flex;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused !important; }

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.skill-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 48px;
  padding-inline: 2rem;
  margin-inline: 0.75rem;
  border: 1px solid rgba(38,38,38,0.6);
  background: rgba(23,23,23,0.4);
  user-select: none;
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s;
}
.skill-item--accent {
  border-color: rgba(200,255,0,0.2);
  background: rgba(200,255,0,0.04);
}
.skill-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mk-gray-600);
}
.skill-item--accent .skill-name { color: rgba(200,255,0,0.6); }


/* ============================================================
   SUCCESS STORIES — case study card (new class names)
   ============================================================ */
.case-card { border: 1px solid var(--mk-gray-800); background: var(--mk-black); }

.case-topbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--mk-gray-800);
}
@media (min-width: 1024px) {
  .case-topbar { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.5rem; }
}

.case-client { display: flex; align-items: center; gap: 12px; }
.case-client-badge {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mk-gray-900);
  border: 1px solid var(--mk-gray-800);
  font-size: 12px;
  font-weight: 700;
  color: var(--mk-white);
  flex-shrink: 0;
}
.case-client-name { font-size: 14px; font-weight: 700; color: var(--mk-white); }
.case-client-meta { font-size: 11px; color: var(--mk-gray-400); }

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
@media (min-width: 640px) { .case-metrics { gap: 12px 24px; } }

.case-metric { display: flex; align-items: center; gap: 8px; }
.case-metric--sm { display: none; }
@media (min-width: 640px) { .case-metric--sm { display: flex; } }

.case-metric-label {
  font-size: 11px;
  color: var(--mk-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.case-metric-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--mk-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.case-metric-value--white { color: var(--mk-white); }

.case-metric-divider { width: 1px; height: 20px; background: var(--mk-gray-800); }
.case-metric-divider--sm { display: none; }
@media (min-width: 640px) { .case-metric-divider--sm { display: block; } }

.case-chart-area { padding: 1.25rem; }
@media (min-width: 1024px) { .case-chart-area { padding: 1.5rem; } }

.case-chart-ratio { position: relative; width: 100%; aspect-ratio: 16/6; }
.case-chart-ratio canvas { width: 100%; height: 100%; display: block; }

.case-phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(38,38,38,0.3);
  border-top: 1px solid var(--mk-gray-800);
}
@media (min-width: 1024px) { .case-phases { grid-template-columns: 1fr 1fr; } }

.case-phase { background: var(--mk-black); padding: 1.25rem; }
@media (min-width: 1024px) { .case-phase { padding: 1.5rem; } }

.case-phase-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.case-phase-dot {
  width: 8px; height: 8px;
  background: rgba(200,255,0,0.4);
  border: 1px solid rgba(200,255,0,0.6);
  flex-shrink: 0;
}
.case-phase-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200,255,0,0.7);
}
.case-phase-title { font-size: 15px; font-weight: 700; color: var(--mk-white); margin-bottom: 0.75rem; }
.case-phase-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.case-phase-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mk-gray-400);
}
.case-phase-list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--mk-gray-600);
  border-radius: 0;
  flex-shrink: 0;
  margin-top: 7px;
}
.case-phase-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1rem;
  font-size: 12px;
  color: var(--mk-gray-600);
}
.case-phase-num { font-weight: 600; color: var(--mk-white); }
.case-phase-num--accent { color: var(--mk-accent); }
.case-phase-sep { color: var(--mk-gray-800); }

.case-result-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-top: 1px solid rgba(200,255,0,0.15);
  background: rgba(200,255,0,0.03);
}
@media (min-width: 640px) {
  .case-result-bar { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.5rem; }
}
.case-result-label { font-size: 12px; font-weight: 600; color: var(--mk-accent); margin-bottom: 4px; }
.case-result-text  { font-size: 13px; line-height: 1.65; color: var(--mk-gray-400); }
.case-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(200,255,0,0.2);
  background: rgba(200,255,0,0.04);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mk-accent);
  flex-shrink: 0;
}


/* ============================================================
   SEM / SEO / GEO — new class names matching sem-seo-geo.php
   ============================================================ */

/* Section header: single-column, max-w-2xl, matches Next.js max-w-2xl mb-14 */
.semseo-header {
  max-width: 42rem;
  margin-bottom: 3.5rem;
}
.semseo-header .mk-h2 { margin-bottom: 0; }

.channel-panel {
  display: block !important; /* override legacy display:none defined above */
  border: 1px solid var(--mk-gray-800);
  background: var(--mk-black);
}
.channel-tabs {
  display: flex;
  border-bottom: 1px solid var(--mk-gray-800);
  overflow-x: auto;
  scrollbar-width: none;
}
.channel-tabs::-webkit-scrollbar { display: none; }

.channel-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--mk-gray-600);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
  margin-bottom: -1px;
  white-space: nowrap;
}
.channel-tab:hover { color: var(--mk-gray-400); background: rgba(23,23,23,0.2); }
.channel-tab.active { border-bottom-color: currentColor; background: rgba(23,23,23,0.5); }

.channel-content { display: none; }
.channel-content.active { display: block; transition: opacity 0.4s, transform 0.4s; }

.channel-body { padding: 1.5rem; }
@media (min-width: 1024px) { .channel-body { padding: 2rem; } }

.channel-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.channel-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--mk-gray-400);
  max-width: 640px;
  margin-bottom: 2rem;
}
.channel-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(38,38,38,0.3);
}
@media (min-width: 1024px) { .channel-traits { grid-template-columns: repeat(4, 1fr); } }

.channel-trait { background: var(--mk-black); padding: 1rem; }
.channel-trait-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.channel-trait-icon { font-size: 13px; line-height: 1; }
.channel-trait-label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mk-gray-400); }
.channel-trait-value { font-size: 14px; font-weight: 700; color: var(--mk-white); }

.channel-pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(38,38,38,0.3);
  border-top: 1px solid var(--mk-gray-800);
}
@media (min-width: 1024px) { .channel-pros-cons { grid-template-columns: 1fr 1fr; } }

.channel-pros,
.channel-cons { background: var(--mk-black); padding: 1.5rem; }
@media (min-width: 1024px) { .channel-pros, .channel-cons { padding: 2rem; } }

.channel-pc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 1.25rem; }
.channel-pc-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.channel-pc-icon--gray {
  background: var(--mk-gray-900);
  border: 1px solid var(--mk-gray-800);
  color: var(--mk-gray-400);
}
.channel-pc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mk-white); }

.channel-pc-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.channel-pc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mk-gray-200);
}
.channel-pc-list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--dot-color, var(--mk-accent));
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 6px;
}
.channel-pc-list--gray li::before {
  background: var(--mk-gray-600);
  opacity: 1;
}

.channel-insight {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(200,255,0,0.15);
  background: rgba(200,255,0,0.03);
  padding: 1.25rem;
}
@media (min-width: 1024px) { .channel-insight { padding: 1.5rem; } }
.channel-insight svg { flex-shrink: 0; }


/* ============================================================
   FAQ — new class names matching faq.php
   ============================================================ */
.faq-section { padding-block: 6rem; overflow: hidden; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 4fr 8fr; gap: 4rem; }
}

.faq-left {}
.faq-sticky {
  position: static;
}
@media (min-width: 1024px) {
  .faq-sticky { position: sticky; top: 96px; }
}

.faq-tabs { display: flex; flex-direction: column; gap: 6px; }

.faq-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--mk-gray-800);
  color: var(--mk-gray-400);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.faq-tab-btn:hover { color: var(--mk-white); border-color: var(--mk-gray-600); }
.faq-tab-btn.active {
  background: rgba(200,255,0,0.06);
  border-color: rgba(200,255,0,0.2);
  color: var(--mk-accent);
}

.faq-right { min-width: 0; }
.faq-panel { display: none; }
.faq-panel.active {
  display: block;
  border: 1px solid var(--mk-gray-800);
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) { .faq-panel.active { padding-inline: 2rem; } }

.faq-item { border-bottom: 1px solid var(--mk-gray-800); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-block: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--mk-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s;
}
.faq-question:hover { color: rgba(200,255,0,0.8); }
.faq-item.open .faq-question { color: var(--mk-accent); }

.faq-chevron {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--mk-gray-600);
  transition: transform 0.2s, color 0.2s;
}
.faq-question:hover .faq-chevron { color: var(--mk-gray-400); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--mk-accent); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}
.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--mk-gray-400);
  padding-bottom: 1.25rem;
  padding-right: 2rem;
}

/* FAQ heading structure (H3 panel label, H4 question wrapper) */
.faq-panel-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mk-gray-600);
  padding: 1.25rem 0 1rem;
  margin: 0;
  border-bottom: 1px solid var(--mk-gray-800);
}
.faq-question-heading {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.aligncenter { display: block; margin-inline: auto; text-align: center; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--mk-gray-600); text-align: center; margin-top: 8px; }


/* ============================================================
   CV PAGE
   ============================================================ */
.cv-page { background: var(--mk-black); min-height: 100vh; }

/* Hero */
.cv-hero {
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--mk-gray-800);
}
.cv-grid-lines { position: absolute; inset: 0; pointer-events: none; }

.cv-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .cv-hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; }
}

.cv-hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.cv-name {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--mk-white);
  margin-bottom: 1.5rem;
}

.cv-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mk-gray-400);
  margin-bottom: 2.5rem;
}

.cv-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .cv-hero-ctas { flex-direction: row; }
  .cv-hero-ctas .mk-btn-primary,
  .cv-hero-ctas .mk-btn-outline { width: auto; }
}
.cv-hero-ctas .mk-btn-primary,
.cv-hero-ctas .mk-btn-outline { width: 100%; justify-content: center; }

/* Stat cards */
.cv-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(38,38,38,0.4);
  margin-bottom: 1rem;
}
.cv-stat-card {
  background: var(--mk-black);
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--mk-gray-800);
  transition: border-color 0.3s, background 0.3s;
}
.cv-stat-card:hover {
  border-color: rgba(200,255,0,0.2);
  background: rgba(23,23,23,0.4);
}
.cv-stat-icon {
  color: rgba(200,255,0,0.5);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.cv-stat-card:hover .cv-stat-icon { color: var(--mk-accent); }
.cv-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--mk-accent);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.cv-stat-label {
  font-size: 11px;
  color: var(--mk-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cv-hero-socials { display: flex; gap: 8px; margin-top: 1rem; }

/* Body layout */
.cv-body {
  padding-block: 5rem;
}
@media (min-width: 1024px) { .cv-body { padding-block: 7rem; } }

.cv-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .cv-body-grid { grid-template-columns: 8fr 4fr; gap: 4rem; align-items: start; }
}

/* Section heading */
.cv-section { margin-bottom: 5rem; }
.cv-section:last-child { margin-bottom: 0; }

.cv-section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.cv-section-heading svg { color: var(--mk-accent); flex-shrink: 0; }
.cv-section-heading h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mk-gray-400);
  margin: 0;
}
.cv-icon-diamond {
  width: 12px; height: 12px;
  border: 1px solid rgba(200,255,0,0.6);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.cv-icon-square {
  width: 12px; height: 12px;
  border: 1px solid rgba(200,255,0,0.6);
  flex-shrink: 0;
}
.cv-icon-music {
  color: var(--mk-accent);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

/* Timeline */
.cv-timeline { display: flex; flex-direction: column; }
.cv-timeline-item {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 3rem;
}
.cv-timeline-item--last { padding-bottom: 0; }
.cv-timeline-dot {
  position: absolute;
  left: -3px;
  top: 7px;
  width: 7px; height: 7px;
  border: 1px solid var(--mk-accent);
  background: var(--mk-black);
}
.cv-timeline-line {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--mk-gray-800);
}

/* Experience card */
.cv-exp-card {
  border: 1px solid var(--mk-gray-800);
  background: var(--mk-black);
  padding: 1.25rem;
  transition: border-color 0.2s;
}
@media (min-width: 1024px) { .cv-exp-card { padding: 1.5rem; } }
.cv-exp-card:hover { border-color: rgba(200,255,0,0.2); }

.cv-exp-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .cv-exp-header { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.cv-exp-role { font-size: 15px; font-weight: 700; color: var(--mk-white); margin: 0 0 2px; }
.cv-exp-company { font-size: 13px; font-weight: 600; color: var(--mk-accent); margin: 0; }
.cv-exp-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex-shrink: 0; }
@media (min-width: 640px) { .cv-exp-meta { align-items: flex-end; } }
.cv-exp-period { font-size: 11px; color: var(--mk-gray-400); font-variant-numeric: tabular-nums; }
.cv-exp-type {
  font-size: 10px;
  border: 1px solid var(--mk-gray-800);
  padding: 2px 8px;
  color: var(--mk-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cv-bullet-list { display: flex; flex-direction: column; gap: 8px; }
.cv-bullet { display: flex; align-items: flex-start; gap: 10px; }
.cv-bullet-dot {
  width: 4px; height: 4px;
  background: rgba(200,255,0,0.5);
  flex-shrink: 0;
  margin-top: 7px;
}
.cv-bullet span { font-size: 13px; line-height: 1.7; color: var(--mk-gray-400); }

/* Awards */
.cv-awards { display: flex; flex-direction: column; gap: 1px; background: rgba(38,38,38,0.3); }
.cv-award-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--mk-black);
  border: 1px solid var(--mk-gray-800);
  padding: 1.125rem 1.5rem;
}
.cv-award-title { font-size: 14px; font-weight: 600; color: var(--mk-white); }
.cv-award-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--mk-accent);
  border: 1px solid rgba(200,255,0,0.25);
  padding: 3px 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* Education */
.cv-edu-card {
  border: 1px solid var(--mk-gray-800);
  background: var(--mk-black);
  padding: 1.25rem;
}
.cv-edu-degree { font-size: 14px; font-weight: 700; color: var(--mk-white); margin: 0 0 4px; }
.cv-edu-school { font-size: 13px; font-weight: 600; color: var(--mk-accent); margin: 0 0 0.75rem; }
.cv-edu-year { font-size: 11px; color: var(--mk-gray-400); margin: 0 0 1rem; }
.cv-edu-desc { font-size: 12px; line-height: 1.7; color: var(--mk-gray-400); margin: 0; }

/* Tags */
.cv-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--mk-gray-400);
  border: 1px solid var(--mk-gray-800);
  padding: 4px 10px;
  transition: border-color 0.2s, color 0.2s;
}
.cv-tag:hover { border-color: rgba(200,255,0,0.3); color: var(--mk-accent); }

/* Tools */
.cv-tools { display: flex; flex-direction: column; gap: 1.5rem; }
.cv-tool-group {}
.cv-tool-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--mk-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

/* Sidebar sticky */
@media (min-width: 1024px) {
  .cv-sidebar { position: sticky; top: 96px; }
}

/* ============================================================
   Contact Page
   ============================================================ */
.contact-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-bg-line {
  position: absolute;
  pointer-events: none;
}
.contact-bg-line--v { width: 1px; top: 0; bottom: 0; background: rgba(200,255,0,0.04); }
.contact-bg-line--h { height: 1px; left: 0; right: 0; background: rgba(200,255,0,0.03); }

.contact-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: rgba(200,255,0,0.025);
  filter: blur(120px);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: center; }
}

.contact-info-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--mk-gray-200);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-link:hover { color: var(--mk-accent); }

.contact-info-icon {
  width: 2rem; height: 2rem;
  border: 1px solid var(--mk-gray-800);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.contact-info-link:hover .contact-info-icon,
.contact-info-static:hover .contact-info-icon {
  border-color: rgba(200,255,0,0.3);
  background: rgba(200,255,0,0.04);
}
.contact-info-static {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--mk-gray-200);
}

.contact-social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--mk-gray-800);
  color: var(--mk-gray-600);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.contact-social-btn:hover {
  color: var(--mk-accent);
  border-color: rgba(200,255,0,0.3);
  background: rgba(200,255,0,0.04);
}

/* Form box */
.contact-form-box {
  border: 1px solid var(--mk-gray-800);
  background: rgba(10,10,10,0.6);
  padding: 2rem;
  position: relative;
}
@media (min-width: 1024px) { .contact-form-box { padding: 2.5rem; } }

.contact-corner {
  position: absolute;
  width: 1.25rem; height: 1.25rem;
  border-color: rgba(200,255,0,0.3);
  border-style: solid;
}
.contact-corner--tl { top: -1px; left: -1px;  border-width: 1px 0 0 1px; }
.contact-corner--tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.contact-corner--bl { bottom: -1px; left: -1px;  border-width: 0 0 1px 1px; }
.contact-corner--br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* Animated floating-label inputs */
.mk-field { position: relative; }

.mk-field label {
  position: absolute;
  left: 0;
  pointer-events: none;
  color: var(--mk-gray-600);
  top: 20px;
  font-size: 13px;
  letter-spacing: 0;
  transition: top 0.2s ease, font-size 0.2s ease, letter-spacing 0.2s ease, color 0.2s ease;
}
.mk-field.floated label {
  top: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mk-field.focused label { color: var(--mk-accent); }

.mk-field input,
.mk-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--mk-gray-800);
  color: var(--mk-white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  padding-top: 20px;
  padding-bottom: 8px;
  transition: border-color 0.2s;
  resize: none;
}
.mk-field.focused input,
.mk-field.focused textarea { border-bottom-color: var(--mk-accent); }

.mk-field-underline {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  background: var(--mk-accent);
  width: 0;
  transition: width 0.3s ease;
  pointer-events: none;
}
.mk-field.focused .mk-field-underline { width: 100%; }

/* Required asterisk */
.mk-field-required { color: var(--mk-accent); margin-left: 1px; }

/* Success box */
.contact-success-box {
  border: 1px solid rgba(200,255,0,0.2);
  background: rgba(200,255,0,0.03);
  padding: 2.5rem;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.contact-success-icon {
  width: 3rem; height: 3rem;
  border: 1px solid rgba(200,255,0,0.3);
  background: rgba(200,255,0,0.06);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--mk-accent);
}

/* Fade-in animations */
.mk-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.mk-fade-in.visible { opacity: 1; transform: translateY(0); }

/* Word cycler */
#word-cycler {
  display: inline-block;
  color: var(--mk-accent);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#word-cycler.wc-hidden { opacity: 0; transform: translateY(8px); }

/* Contact error */
.contact-error {
  background: rgba(255,60,60,0.08);
  border: 1px solid rgba(255,60,60,0.25);
  color: #ff6b6b;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 1.5rem;
}

/* ============================================================
   Algorithm Page — alg-*
   ============================================================ */

/* Shared section spacing */
.alg-page { overflow-x: hidden; }
.alg-section { padding: 5rem 0; border-bottom: 1px solid var(--mk-gray-800); }
.alg-section__head { margin-bottom: 2.5rem; }
.alg-section__sub { font-size: 14px; color: var(--mk-gray-200); margin-top: .5rem; max-width: 560px; }
.alg-section__sub-hint { color: var(--mk-gray-600); }

/* Type badge */
.alg-badge {
  display: inline-flex; align-items: center;
  font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 1px 6px; border: 1px solid; line-height: 1.6; flex-shrink: 0;
}

/* Impact dots */
.alg-dots { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.alg-dot  { width: 6px; height: 6px; border-radius: 50%; background: var(--mk-gray-800); }
.alg-dot--on { background: var(--mk-accent); }

/* HERO */
.alg-hero { padding: 5rem 0 4rem; border-bottom: 1px solid var(--mk-gray-800); }
.alg-hero__inner { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width:1024px) { .alg-hero__inner { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.alg-hero__sub { font-size: 15px; line-height: 1.8; color: var(--mk-gray-200); margin-bottom: 2rem; max-width: 480px; }

/* HERO INFO BOX */
.alg-hero__infobox { display: none; }
@media (min-width:1024px) { .alg-hero__infobox { display: block; margin-top: 2rem; max-width: 480px; } }
.alg-hero__infobox-title { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.alg-hero__infobox-title span { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--mk-accent); }
.alg-hero__infobox-text { font-size: 12px; color: var(--mk-gray-200); line-height: 1.7; }
.alg-hero__infobox-why { display: flex; align-items: center; gap: .5rem; padding-top: .75rem; margin-top: .75rem; border-top: 1px solid var(--mk-gray-800); }
.alg-hero__infobox-why span { font-size: 11px; font-weight: 700; color: var(--mk-accent); }

/* SERP animation */
.alg-hero__right { display: none; }
@media (min-width:1024px) { .alg-hero__right { display: block; } }
.alg-serp { display: flex; flex-direction: column; gap: 1rem; }
.alg-serp__step { display: flex; align-items: center; gap: .5rem; }
.alg-serp__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mk-accent); animation: algpulse 2s infinite; }
@keyframes algpulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.alg-serp__step-lbl { font-size: 11px; color: var(--mk-gray-200); font-weight: 500; letter-spacing: .05em; }
.alg-serp__box { border: 1px solid var(--mk-gray-800); background: var(--mk-gray-900); padding: 1rem; }
.alg-serp__bar { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--mk-gray-800); }
.alg-serp__input { flex: 1; height: 24px; background: var(--mk-gray-800); display: flex; align-items: center; padding: 0 .5rem; font-size: 10px; color: var(--mk-gray-400); }
.alg-serp__gbtn { width: 24px; height: 24px; background: rgba(200,255,0,.15); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--mk-accent); }
.alg-serp__cards { position: relative; height: 228px; }
.alg-serp__card { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: .75rem; padding: .625rem; border: 1px solid var(--mk-gray-800); background: var(--mk-black); height: 68px; transition: transform .7s ease-in-out; }
.alg-serp__card--hl { border-color: rgba(200,255,0,.4); background: rgba(200,255,0,.04); }
.alg-serp__rank { font-size: 11px; font-weight: 700; width: 14px; text-align: center; flex-shrink: 0; color: var(--mk-gray-600); }
.alg-serp__card--hl .alg-serp__rank { color: var(--mk-accent); }
.alg-serp__fav { width: 20px; height: 20px; background: var(--mk-gray-800); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--mk-gray-600); flex-shrink: 0; }
.alg-serp__fav--hl { background: rgba(200,255,0,.15); color: var(--mk-accent); }
.alg-serp__info { flex: 1; min-width: 0; }
.alg-serp__title { font-size: 10px; font-weight: 600; color: var(--mk-gray-200); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alg-serp__title--hl { color: var(--mk-accent); }
.alg-serp__url { font-size: 9px; color: var(--mk-gray-600); margin-top: 2px; }
.alg-serp__arrow { font-size: 10px; font-weight: 700; width: 14px; text-align: right; flex-shrink: 0; transition: color .3s; }
.alg-serp__stepdots { display: flex; align-items: center; justify-content: center; gap: .375rem; margin-top: .5rem; }
.alg-stepdot { display: inline-block; height: 6px; width: 6px; border-radius: 3px; background: var(--mk-gray-700); transition: all .3s; }
.alg-stepdot--on { background: var(--mk-accent); width: 16px; }

/* HISTORICAL TIMELINE */
.alg-hist__box { display: none; border: 1px solid rgba(200,255,0,0.45); box-shadow: 0 0 16px rgba(200,255,0,0.08), inset 0 0 60px rgba(200,255,0,0.03); margin-bottom: 1.5rem; }
@media (min-width:1024px) { .alg-hist__box { display: block; } }
.alg-hist__scroll-wrap { overflow-x: auto; overflow-y: visible; cursor: grab; user-select: none; padding: 0 1rem 1rem; scrollbar-width: thin; scrollbar-color: var(--mk-gray-800) transparent; }
@media (min-width:1024px) { .alg-hist__scroll-wrap { display: block; } }
.alg-hist__scroll-wrap:active { cursor: grabbing; }
.alg-hist__scroll-wrap::-webkit-scrollbar { height: 4px; }
.alg-hist__scroll-wrap::-webkit-scrollbar-thumb { background: var(--mk-gray-800); }
.alg-hist__track { display: flex; align-items: stretch; min-width: max-content; position: relative; min-height: 460px; }
.alg-hist__track::before { content:''; position:absolute; top:50%; left:0; right:0; height:2px; background: linear-gradient(90deg, transparent, #3f3f3f 4%, #3f3f3f 96%, transparent); transform:translateY(-50%); z-index:0; }

/* Year marker */
.alg-year-marker { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 72px; position: relative; z-index: 1; }
.alg-year-marker__inner { padding: 5px 12px; border: 1px solid var(--mk-gray-600); background: var(--mk-black); font-size: 12px; font-weight: 700; color: var(--mk-white); letter-spacing: .1em; }

.alg-hcard { display: flex; flex-direction: column; align-items: center; width: 204px; flex-shrink: 0; position: relative; z-index: 1; }
.alg-hcard__half { display: flex; flex-direction: column; align-items: center; width: 100%; height: 224px; }
.alg-hcard__half--upper { justify-content: flex-end; }
.alg-hcard__half--lower { justify-content: flex-start; }
.alg-hcard__connector { width: 1px; height: 24px; background: #3f3f3f; flex-shrink: 0; }
.alg-hcard__dot { width: 12px; height: 12px; border: 2px solid; flex-shrink: 0; background: var(--mk-black); }
.alg-hcard__spacer { flex: 1; }
.alg-hcard__content { border: 1px solid; padding: .625rem; width: 100%; transition: box-shadow .2s; }
.alg-hcard:hover .alg-hcard__content,
.alg-hcard--active .alg-hcard__content { box-shadow: 0 0 0 1px rgba(200,255,0,.2); }
.alg-hcard__top { display: flex; align-items: center; justify-content: space-between; gap: .375rem; margin-bottom: .375rem; }
.alg-hcard__name { font-size: 11px; font-weight: 700; margin-bottom: .375rem; line-height: 1.3; }
.alg-hcard__date { font-size: 9px; color: var(--mk-gray-400); }
.alg-hcard__desc { font-size: 10px; color: var(--mk-gray-200); line-height: 1.6; margin-top: .25rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.alg-hcard__live { display: inline-block; font-size: 9px; font-weight: 700; color: var(--mk-accent); letter-spacing: .08em; text-transform: uppercase; margin-top: .25rem; }
.alg-hcard__chevron { display: flex; justify-content: flex-end; margin-top: .375rem; color: var(--mk-gray-600); }
.alg-hcard:hover .alg-hcard__chevron { color: var(--mk-gray-200); }
.alg-hcard__mobile-expand { display: none; }
.alg-hist__panel { margin-top: 1rem; }
.alg-panel__inner { border: 1px solid; padding: 1.25rem; animation: algfade .2s ease; }
@keyframes algfade { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }
.alg-panel__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.alg-panel__name { font-size: 15px; font-weight: 700; margin-bottom: .375rem; }
.alg-panel__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: 12px; color: var(--mk-gray-400); }
.alg-panel__close { background: none; border: 1px solid var(--mk-gray-800); color: var(--mk-gray-600); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: color .2s,border-color .2s; }
.alg-panel__close:hover { color: var(--mk-white); border-color: var(--mk-gray-600); }
.alg-panel__desc { font-size: 13px; line-height: 1.7; color: var(--mk-gray-200); margin-bottom: .75rem; }
.alg-panel__notes-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--mk-gray-600); margin-bottom: .5rem; }
.alg-panel__notes { list-style: none; display: flex; flex-direction: column; gap: .375rem; }
.alg-panel__notes li { display: flex; align-items: flex-start; gap: .5rem; font-size: 12px; color: var(--mk-gray-200); line-height: 1.6; }
.alg-panel__ndot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.alg-hist__mobile { display: flex; flex-direction: column; }
@media (min-width:1024px) { .alg-hist__mobile { display: none; } }
.alg-hm { display: flex; gap: .625rem; align-items: flex-start; position: relative; padding-bottom: 1rem; }
.alg-hm::before { content:''; position:absolute; left:5px; top:16px; bottom:0; width:1px; background:var(--mk-gray-800); }
.alg-hm:last-child::before { display:none; }
.alg-hm__sq { width:12px; height:12px; border:2px solid; flex-shrink:0; margin-top:3px; z-index:1; }
.alg-hm__card { flex:1; min-width:0; border:1px solid; }
.alg-hm__inner { padding:.75rem; }
.alg-hm__top { display:flex; align-items:flex-start; justify-content:space-between; gap:.5rem; margin-bottom:.25rem; }
.alg-hm__name { font-size:12px; font-weight:700; line-height:1.3; }
.alg-hm__meta { display:flex; align-items:center; justify-content:space-between; margin-bottom:.5rem; }
.alg-hm__date { font-size:10px; color:var(--mk-gray-600); }
.alg-hm__desc { font-size:11px; color:var(--mk-gray-200); line-height:1.7; }
.alg-hm__ongoing { display:flex; align-items:center; gap:.375rem; margin-top:.5rem; }
.alg-hm__ongoing-dot { width:6px; height:6px; border-radius:50%; background:var(--mk-accent); animation:mkpulse 1.5s infinite; flex-shrink:0; }
.alg-hm__ongoing span { font-size:9px; font-weight:700; color:var(--mk-accent); text-transform:uppercase; letter-spacing:.08em; }
.alg-hm__toggle { display:flex; align-items:center; gap:.25rem; margin-top:.5rem; padding-top:.5rem; border-top:1px solid; cursor:pointer; }
.alg-hm__toggle > span { font-size:9px; color:var(--mk-gray-600); }
.alg-hm__toggle svg { transition:transform .2s; }
.alg-hm--open .alg-hm__toggle svg { transform:rotate(180deg); }
.alg-hm__notes-wrap { display:none; border-top:1px solid; padding:.75rem; }
.alg-hm--open .alg-hm__notes-wrap { display:block; }
.alg-hm__notes { list-style:none; display:flex; flex-direction:column; gap:.375rem; }
.alg-hm__notes li { display:flex; align-items:flex-start; gap:.375rem; font-size:11px; color:var(--mk-gray-200); line-height:1.6; }
.alg-hm__ndot { width:5px; height:5px; border-radius:50%; flex-shrink:0; margin-top:5px; }

/* Historical legend */
.alg-hist__legend { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: 1rem; margin-top: 1.5rem; border-top: 1px solid var(--mk-gray-800); }
.alg-hist__legend-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--mk-gray-600); }
.alg-hist__legend-item { display: flex; align-items: center; gap: .375rem; }
.alg-hist__legend-sq { display: inline-block; width: 8px; height: 8px; border: 1px solid; }
.alg-hist__legend-name { font-size: 11px; color: var(--mk-gray-400); }
.alg-hist__legend-dots { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

/* Impact badge in card header */
.alg-impact-badge { display: inline-flex; align-items: center; padding: 0 .5rem; height: 18px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1px solid; flex-shrink: 0; }

/* GOOGLE STATUS */
.alg-status__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1rem; }
.alg-status__card { display: flex; flex-direction: column; border: 1px solid var(--mk-gray-800); padding: 1.5rem; background: var(--mk-gray-900); gap: .25rem; }
.alg-status__card--skel { min-height: 80px; }
.alg-skel { background: var(--mk-gray-800); border-radius: 2px; animation: algskel 1.5s infinite; }
.alg-skel--sm  { height: 10px; width: 40%; }
.alg-skel--md  { height: 10px; width: 60%; }
.alg-skel--lg  { height: 14px; width: 80%; }
@keyframes algskel { 0%,100%{opacity:.4} 50%{opacity:1} }
.alg-status__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .375rem; }
.alg-status__icon { display: flex; align-items: center; flex-shrink: 0; }
.alg-status__name { font-size: 13px; font-weight: 600; color: var(--mk-white); }
.alg-status__label { font-size: 13px; font-weight: 700; margin-bottom: .25rem; }
.alg-status__desc { font-size: 12px; color: var(--mk-gray-200); line-height: 1.5; }
.alg-status__checked { font-size: 11px; color: var(--mk-gray-600); margin-top: auto; padding-top: .5rem; }
.alg-status__updated { font-size: 11px; color: var(--mk-gray-600); margin-top: 1rem; }

/* DETAIL TIMELINE */
/* Year separator in detail timeline */
.alg-dcard__year-sep { display: flex; align-items: center; gap: .75rem; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--mk-gray-600); padding: 1.5rem 0 .625rem; }
.alg-dcard__year-sep::after { content:''; flex:1; height:1px; background:var(--mk-gray-800); }

.alg-filters { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.alg-filter { background: none; border: 1px solid var(--mk-gray-800); color: var(--mk-gray-600); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .375rem .875rem; cursor: pointer; transition: all .2s; font-family: inherit; }
.alg-filter:hover { border-color: var(--mk-gray-600); color: var(--mk-gray-200); }
.alg-filter--active { border-color: var(--mk-accent); color: var(--mk-accent); background: rgba(200,255,0,.06); }
.alg-detail__list { display: flex; flex-direction: column; }
.alg-dcard { border: 1px solid var(--mk-gray-800); margin-bottom: .5rem; }
.alg-dcard--open { border-color: rgba(200,255,0,.2); }
.alg-dcard__header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; cursor: pointer; transition: background .15s; }
.alg-dcard__header:hover { background: rgba(255,255,255,.02); }
.alg-dcard__tl-dot { width: 8px; height: 8px; flex-shrink: 0; margin-top: 6px; }
.alg-dcard__hinfo { flex: 1; min-width: 0; }
.alg-dcard__htop { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.alg-dcard__date-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .375rem; }
.alg-dcard__impact { font-size: 10px; font-weight: 700; }
.alg-dcard__live { font-size: 9px; font-weight: 700; color: var(--mk-accent); text-transform: uppercase; letter-spacing: .08em; }
.alg-dcard__name { font-size: 14px; font-weight: 700; margin: 0; }
.alg-dcard__meta { display: flex; align-items: flex-end; gap: .5rem; flex-shrink: 0; text-align: right; flex-direction: column; }
.alg-dcard__date { font-size: 12px; color: var(--mk-gray-500); display: block; }
.alg-dcard__dur { font-size: 10px; font-weight: 600; color: var(--mk-gray-600); }
.alg-dcard__ongoing-lbl { font-size: 10px; font-weight: 700; color: var(--mk-accent); text-transform: uppercase; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 4px; }
.alg-dcard__ongoing-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mk-accent); animation: algpulse 2s infinite; }
.alg-dcard__chev { color: var(--mk-gray-700); transition: transform .2s; flex-shrink: 0; }
.alg-dcard__chev--open { transform: rotate(180deg); color: var(--mk-accent); }
.alg-dcard__panel { display: none; padding: 0 1.25rem 1.25rem; }
.alg-dcard__panel--open { display: block; animation: algfade .2s ease; }
.alg-dcard__panel-inner { border: 1px solid; background: rgba(0,0,0,0.4); padding: 1rem; }
.alg-dcard__panel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .875rem; }
.alg-dcard__panel-dur { display: flex; align-items: center; gap: .375rem; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--mk-gray-500); }
.alg-dcard__panel-dur-dot { width: 6px; height: 6px; border-radius: 50%; border: 1px solid; flex-shrink: 0; }
.alg-dcard__panel-impact-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 2px 8px; border: 1px solid; }
.alg-dcard__desc { font-size: 13px; line-height: 1.75; color: var(--mk-gray-200); border: none; border-left: 2px solid; padding-left: .75rem; margin-bottom: .75rem; }
.alg-dcard__notes-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--mk-gray-600); margin-bottom: .5rem; }
.alg-dcard__notes { list-style: none; display: flex; flex-direction: column; gap: .375rem; }
.alg-dcard__notes li { display: flex; align-items: flex-start; gap: .5rem; font-size: 11px; color: var(--mk-gray-200); line-height: 1.6; }
.alg-dcard__ndot { width: 6px; height: 6px; border-radius: 50%; border: 1px solid; flex-shrink: 0; margin-top: 4px; }

/* FAQ */
.alg-faq__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width:1024px) { .alg-faq__grid { grid-template-columns: repeat(3,1fr); } }
.alg-faq__cat { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--mk-gray-600); margin: 0 0 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--mk-gray-800); }
.alg-fitem__q { margin: 0; }
.alg-fitem { border-bottom: 1px solid var(--mk-gray-800); }
.alg-fitem__btn { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .875rem 0; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--mk-gray-200); text-align: left; transition: color .2s; }
.alg-fitem__btn:hover, .alg-fitem__btn--open { color: var(--mk-white); }
.alg-fitem__chev { flex-shrink: 0; margin-top: 2px; transition: transform .2s; color: var(--mk-gray-600); }
.alg-fitem__btn--open .alg-fitem__chev { transform: rotate(180deg); color: var(--mk-accent); }
.alg-fitem__panel { display: none; padding-bottom: .875rem; font-size: 13px; line-height: 1.75; color: var(--mk-gray-400); }
.alg-fitem__panel--open { display: block; animation: algfade .2s ease; }
