/* ============================================================
   RYAN BEN HASSINE — SENIOR DEVOPS & INFRASTRUCTURE ARCHITECT
   MINIMAL, CLEAN & AIRY DESIGN SYSTEM (2026 EDITION)
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #090a0f;
  --bg-soft: #101218;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --ink: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --accent-2: #38bdf8;
  --danger: #f43f5e;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fafbfc;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --surface: rgba(15, 23, 42, 0.03);
  --surface-strong: rgba(15, 23, 42, 0.06);
  --ink: #0f172a;
  --muted: #475569;
  --faint: #94a3b8;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);
  --accent: #059669;
  --accent-glow: rgba(5, 150, 105, 0.1);
  --accent-2: #0284c7;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 10%, var(--accent-glow), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.06), transparent 30%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Geist", "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.topbar,
main,
.footer,
.admin-layout,
.admin-lock {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

main {
  padding: 40px 0 80px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.82);
}

.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  padding: 2px;
  transition: transform 0.2s ease;
}

.mark:hover {
  transform: scale(1.05);
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

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

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-button:hover {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

[data-icon] svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.command:hover {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.command.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.command.primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, #ffffff);
  border-color: color-mix(in srgb, var(--accent) 88%, #ffffff);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.command-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 340px);
  gap: 48px;
  align-items: center;
  padding: 48px 0 64px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
}

.hero .role {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 550;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.hero .summary {
  margin: 0;
  max-width: 580px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.identity-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.identity-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius-lg) - 8px);
  object-fit: cover;
  border: 1px solid var(--line);
}

.identity-panel div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.identity-panel p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.identity-panel small {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 54px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.system-strip div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.system-strip span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--faint);
}

.system-strip strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.proof-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.proof-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.proof-card .metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.proof-card strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}

.proof-card span {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.proof-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  margin-bottom: 72px;
}

.section-head {
  margin-bottom: 32px;
}

.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.system-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.outline-text {
  color: var(--muted);
  font-weight: 600;
}

.page-banner {
  padding: 32px 0 44px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.page-banner h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-lead {
  max-width: 680px;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   HORIZONTAL SLIDE CARDS FOR CONSULTING SERVICES
   ============================================================ */
.services-slides-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.services-slides-track::-webkit-scrollbar {
  height: 6px;
}

.services-slides-track::-webkit-scrollbar-track {
  background: transparent;
}

.services-slides-track::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.service-slide-card {
  flex: 0 0 320px;
  max-width: 360px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-slide-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.service-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card-icon svg,
.service-card-icon [data-icon] {
  width: 20px;
  height: 20px;
}

.service-slide-card h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.service-price-sub {
  font-size: 0.76rem;
  color: var(--faint);
  margin-bottom: 12px;
}

.service-slide-card .service-summary {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.service-slide-card .service-deliverables {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.service-slide-card .service-deliverables li {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-slide-card .service-deliverables li [data-icon],
.service-slide-card .service-deliverables li svg {
  color: var(--accent);
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.service-slide-card .service-card-footer {
  margin-top: auto;
}

.service-slide-card .service-card-footer .command {
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-head h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.3;
}

.service-price {
  font-size: 1.6rem;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 4px;
}

.service-price-sub {
  font-size: 0.78rem;
  color: var(--faint);
  margin-bottom: 16px;
}

.service-summary {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.service-deliverables {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-deliverables li {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-deliverables li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.service-card .command {
  margin-top: auto;
  width: 100%;
}

/* ============================================================
   HORIZONTAL SLIDE CARDS FOR PACKAGES & RETAINERS
   ============================================================ */
.slides-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-nav-btn:hover {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  transform: scale(1.06);
}

.slide-nav-btn:active {
  transform: scale(0.96);
}

.slide-nav-btn svg {
  width: 18px;
  height: 18px;
}

.pricing-slides-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.pricing-slides-track::-webkit-scrollbar {
  height: 6px;
}

.pricing-slides-track::-webkit-scrollbar-track {
  background: transparent;
}

.pricing-slides-track::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.pricing-slide-card {
  flex: 0 0 320px;
  max-width: 360px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-slide-card.featured {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--bg-card) 94%, var(--accent));
  box-shadow: 0 10px 30px var(--accent-glow);
}

.pricing-slide-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.pricing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.pricing-timeline {
  font-size: 0.74rem;
  color: var(--faint);
}

.pricing-slide-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.currency-symbol {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.amount-val {
  font-size: 2.1rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.billing-cycle {
  font-size: 0.78rem;
  color: var(--faint);
}

.euro-equiv {
  font-size: 0.74rem;
  color: var(--faint);
  margin-bottom: 12px;
}

.pkg-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 18px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pricing-features li {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li [data-icon],
.pricing-features li svg {
  color: var(--accent);
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing-card-footer {
  margin-top: auto;
}

.pricing-card-footer .command {
  width: 100%;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ============================================================
   PILLS LAYOUT FOR PRODUCTION SYSTEMS & ARCHITECTURES
   ============================================================ */
.work-pills-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-pill-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-pill-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.work-pill-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.work-pill-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  padding: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-pill-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.work-pill-content {
  flex: 1;
  min-width: 0;
}

.work-pill-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.work-pill-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  white-space: nowrap;
}

.pill-badge.accent {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.pill-badge.faint {
  color: var(--faint);
  font-family: monospace;
  font-size: 0.7rem;
}

.work-pill-summary {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.work-pill-action {
  flex-shrink: 0;
}

.pill-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pill-action-btn:hover {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.pill-action-btn.primary {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.pill-action-btn.primary:hover {
  background: var(--accent);
  color: #ffffff;
}

@media (max-width: 768px) {
  .work-pill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .work-pill-action {
    width: 100%;
  }
  .pill-action-btn {
    width: 100%;
    justify-content: center;
  }
  .pricing-slide-card {
    flex: 0 0 280px;
  }
}

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

.post-row {
  display: grid;
  grid-template-columns: 110px 140px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.post-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.post-row-date {
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--faint);
}

.post-row-category {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  text-align: center;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-row strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-row em {
  display: none;
}

.post-row-arrow {
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

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

.blog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.blog-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.blog-search-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  outline: none;
  font-size: 0.88rem;
  transition: border-color 0.2s ease;
}

.blog-search-wrap input:focus {
  border-color: var(--accent);
}

.blog-search-wrap [data-icon] {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}

.category-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-pill:hover,
.category-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.post-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 64px;
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.post-back-link:hover {
  color: var(--accent);
  transform: translateX(-3px);
}

.post-page p.system-label {
  margin-bottom: 8px;
}

.post-page h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.post-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
}

.post-page-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--ink) 90%, var(--muted));
}

.post-page-body h2,
.post-h2 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 40px 0 16px;
}

.post-page-body h3,
.post-h3 {
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--ink);
  margin: 32px 0 12px;
}

.post-p {
  margin: 0 0 20px;
}

.post-list {
  padding-left: 24px;
  margin: 0 0 24px;
}

.post-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.post-blockquote {
  margin: 28px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-style: italic;
}

.post-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 36px 0;
}

.post-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.code-block {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: #0d1117;
  border: 1px solid var(--line);
  color: #e6edf3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-x: auto;
}

.code-inline {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  color: var(--accent);
}

.entity-trust-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.entity-info h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--ink);
}

.entity-info p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact {
  padding: 48px 0;
}

.contact-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 16px;
}

.contact-copy p {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 32px;
}

.contact-form-panel form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-form-panel input,
.contact-form-panel textarea,
.contact-form-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  outline: none;
  font-size: 0.9rem;
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus,
.contact-form-panel select:focus {
  border-color: var(--accent);
}

.roi-calculator-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 32px;
  margin: 32px 0;
}

.roi-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.roi-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

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

.capability-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 24px;
  transition: all 0.2s ease;
}

.capability-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.capability-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink);
}

.capability-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 20px 24px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 650;
  color: var(--ink);
}

.faq-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer .foot-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
}

.footer .foot-role {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer .foot-legal {
  display: block;
  font-size: 0.74rem;
  color: var(--faint);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer nav a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer nav a:hover {
  color: var(--ink);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--faint);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.item-reveal {
  opacity: 1;
  transform: none;
}

.admin-lock {
  min-height: calc(100vh - 108px);
  display: grid;
  place-items: center;
  padding: 72px 0;
}

.lock-card {
  width: min(460px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.lock-card h1 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.lock-card label {
  display: grid;
  gap: 8px;
  margin: 24px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.lock-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-main {
  padding-top: 42px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 52px;
}

.admin-side {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.admin-side button {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.admin-side button.active,
.admin-side button:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.admin-panel {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  padding: 28px;
}

.admin-panel.active {
  display: block;
}

.admin-panel h1 {
  margin: 0 0 24px;
  font-size: 1.8rem;
}

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

.admin-form label,
.data-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.wide {
  grid-column: 1 / -1;
}

.admin-form input,
.admin-form textarea,
.data-box textarea,
.api-doc pre,
.api-result code,
.lock-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  outline: 0;
  padding: 10px 13px;
  font-size: 0.88rem;
}

.admin-form input:focus,
.admin-form textarea:focus,
.data-box textarea:focus,
.lock-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.editor-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.danger {
  border-color: rgba(244, 63, 94, 0.45);
  color: var(--danger);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .identity-panel {
    max-width: 380px;
  }
  .system-strip,
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid,
  .pricing-grid,
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 6px 10px;
  }
  .nav {
    gap: 10px;
  }
  .nav a {
    font-size: 0.8rem;
    padding: 4px 0;
  }
  .topbar-actions .header-cta {
    display: none;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .system-strip,
  .proof-grid,
  .services-grid,
  .pricing-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }
  .post-row {
    grid-template-columns: 85px 1fr;
    gap: 10px;
  }
  .post-row-category {
    display: none;
  }
  .post-row-arrow {
    display: none;
  }
  .contact-form-panel form {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-form {
    grid-template-columns: 1fr;
  }
}
