/* ==================================================================
   Vanaheim — Microsoft-style enterprise design system
   ================================================================== */

:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --bg-tint: #f3f7fc;
  --bg-deep: #0e1726;
  --bg-deeper: #0a111c;
  --surface: #ffffff;
  --border: #e1e1e1;
  --border-strong: #c7c7c7;

  /* text */
  --text: #1a1a1a;
  --text-2: #424242;
  --text-muted: #616161;
  --text-soft: #898989;

  /* brand */
  --primary: #0067c0;
  --primary-hover: #004f9b;
  --primary-bright: #0d8af7;
  --primary-soft: #e0eef9;
  --primary-soft-2: #b8d8ef;

  --link: #0067c0;
  --link-hover: #004f9b;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.10);

  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --container: 1320px;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

[aria-current="page"] { color: var(--primary) !important; }

html, body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==================================================================
   ICON BASE
   ================================================================== */
.ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-lg { width: 32px; height: 32px; }
.ico-sm { width: 18px; height: 18px; }

/* ==================================================================
   UTILITY BAR
   ================================================================== */
.util-bar {
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.util-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.util-links { display: flex; align-items: center; gap: 24px; }
.util-links a {
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.util-links a:hover { color: var(--primary); }
.util-region {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==================================================================
   MAIN NAV
   ================================================================== */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 600;
}
.site-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.site-logo:hover { color: var(--text); }
.logo-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  margin-left: 24px;
}
.site-nav-links a {
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.site-nav-links a:hover { background: var(--bg-soft); color: var(--text); }
.site-nav-links a.active { color: var(--primary); }

.site-nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================================================================
   BUTTONS
   ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn .arrow,
.btn .ico { transition: transform 0.2s; }
.btn:hover .arrow,
.btn:hover .ico { transform: translateX(2px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--text); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { color: var(--primary); background: var(--bg-soft); }

.btn-on-dark {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.20);
}
.btn-on-dark:hover { background: rgba(255,255,255,0.18); color: #fff; }

.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }

/* link-style with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.link-arrow .ico { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--primary-hover); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ==================================================================
   HERO
   ================================================================== */
.hero {
  position: relative;
  background: var(--bg);
  padding: 64px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 30%, rgba(13,138,247,0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0,103,192,0.10), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,103,192,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,103,192,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  z-index: -1;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 .accent { color: var(--primary); }
.hero-sub {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 36px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* hero visual — animated neural-network brain */
.hero-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(13,138,247,0.18), transparent 65%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(0,79,155,0.14), transparent 70%),
    linear-gradient(135deg, #eef5fc 0%, #f7fafd 100%);
  border: 1px solid rgba(13,138,247,0.18);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,103,192,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,103,192,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 0%, transparent 80%);
  z-index: 0;
}
.hero-brain {
  position: relative;
  width: 92%;
  height: 92%;
  z-index: 1;
}

.hb-node {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(13,138,247,0.7));
}
.hb-node-1 { animation: hb-pulse 2.6s ease-in-out 0s infinite; }
.hb-node-2 { animation: hb-pulse 2.6s ease-in-out 0.7s infinite; }
.hb-node-3 { animation: hb-pulse 2.6s ease-in-out 1.4s infinite; }
.hb-node-core {
  filter: drop-shadow(0 0 12px rgba(13,138,247,0.9));
  animation: hb-pulse-core 2.4s ease-in-out infinite;
}
@keyframes hb-pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.65; }
  50%      { transform: scale(1.6); opacity: 1; }
}
@keyframes hb-pulse-core {
  0%, 100% { transform: scale(1);   opacity: 0.85; }
  50%      { transform: scale(1.25); opacity: 1; }
}

.hb-flow-path {
  stroke-dasharray: 6 14;
  animation: hb-flow 1.8s linear infinite;
}
.hb-flow-2 { animation-delay: -0.4s; }
.hb-flow-3 { animation-delay: -0.8s; }
.hb-flow-4 { animation-delay: -1.2s; }
.hb-flow-5 { animation-delay: -1.6s; }
@keyframes hb-flow {
  to { stroke-dashoffset: -40; }
}

.hb-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: hb-ring 3.6s ease-out infinite;
}
.hb-ring-2 { animation-delay: 1.2s; }
.hb-ring-3 { animation-delay: 2.4s; }
@keyframes hb-ring {
  0%   { opacity: 0.5; transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(2.4); }
}

@media (prefers-reduced-motion: reduce) {
  .hb-node, .hb-node-core, .hb-flow-path, .hb-ring { animation: none !important; }
}

/* ==================================================================
   SECTION
   ================================================================== */
section.block {
  padding: 96px 0;
  background: var(--bg);
  position: relative;
}
section.block.alt { background: var(--bg-soft); }
section.block.tint { background: var(--bg-tint); }
section.block.dark { background: var(--bg-deep); color: #fff; }

.block-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.block-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}
.block-head-left { max-width: 720px; }
.block-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}
section.block.dark .block-eyebrow { color: var(--primary-bright); }
.block-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}
section.block.dark .block-title { color: #fff; }
.block-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 680px;
}
section.block.dark .block-lede { color: rgba(255,255,255,0.78); }

/* ==================================================================
   LAMBDA PRODUCT SECTION
   ================================================================== */
.lambda-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-deep);
  color: #fff;
  min-height: 420px;
}
.lambda-card-visual {
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(13,138,247,0.20), transparent 60%),
    linear-gradient(135deg, #0e2a4f 0%, #0a1c34 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.lambda-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.lambda-dashboard-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0,12,28,0.45), 0 0 0 1px rgba(255,255,255,0.08);
}
.lambda-card-copy {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.lambda-card-copy h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lambda-card-copy > p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 50ch;
}
.lambda-stats {
  display: flex;
  gap: 32px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.lambda-stat { display: flex; flex-direction: column; gap: 2px; }
.lambda-stat-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}
.lambda-stat-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.lambda-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ==================================================================
   SPOTLIGHT TILE  (large featured offering)
   ================================================================== */
.spotlight {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-deep);
  color: #fff;
  min-height: 420px;
  isolation: isolate;
}
.spotlight-copy {
  padding: 56px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.spotlight .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}
.spotlight h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.spotlight p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 50ch;
}
.spotlight-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.spotlight-visual {
  background:
    radial-gradient(ellipse 90% 70% at 70% 30%, rgba(13,138,247,0.50), transparent 60%),
    radial-gradient(ellipse 80% 60% at 30% 80%, rgba(0,103,192,0.50), transparent 60%),
    linear-gradient(135deg, #0e2a4f 0%, #0a1c34 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.spotlight-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* AI pipeline mock-up card */
.ai-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: rgba(8, 22, 38, 0.62);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 12, 28, 0.45), 0 0 0 1px rgba(13,138,247,0.10) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.ai-card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.ai-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.ai-dot:nth-child(1) { background: rgba(255,95,87,0.85); }
.ai-dot:nth-child(2) { background: rgba(255,189,46,0.85); }
.ai-dot:nth-child(3) { background: rgba(40,200,64,0.85); }
.ai-card-title {
  margin-left: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ai-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6dd58c;
}
.ai-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6dd58c;
  box-shadow: 0 0 0 3px rgba(109,213,140,0.18);
  animation: ai-live-pulse 1.8s ease-in-out infinite;
}
@keyframes ai-live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(109,213,140,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(109,213,140,0.05); }
}

.ai-card-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 10px;
}

.ai-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(6px);
  animation: ai-step-in 0.5s ease-out forwards;
}
.ai-step-1 { animation-delay: 0.1s; }
.ai-step-2 { animation-delay: 0.5s; }
.ai-step-3 { animation-delay: 0.9s; }
.ai-step-4 { animation-delay: 1.3s; }
@keyframes ai-step-in {
  to { opacity: 1; transform: translateY(0); }
}
.ai-step.active {
  background: rgba(13,138,247,0.10);
  border-color: rgba(13,138,247,0.30);
}

.ai-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.ai-icon .ico { width: 14px; height: 14px; stroke-width: 2; }
.ai-icon-blue { background: rgba(13,138,247,0.18); color: #7cc4ff; }
.ai-icon-ok { background: rgba(40,200,120,0.16); color: #6dd58c; }
.ai-icon-pulse {
  background: rgba(13,138,247,0.16);
  position: relative;
}
.ai-icon-pulse::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #0d8af7;
  box-shadow: 0 0 0 0 rgba(13,138,247,0.5);
  animation: ai-icon-pulse 1.6s ease-out infinite;
}
@keyframes ai-icon-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(13,138,247,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(13,138,247,0); }
  100% { box-shadow: 0 0 0 0 rgba(13,138,247,0); }
}

.ai-step-body { display: grid; gap: 6px; }
.ai-label {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ai-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.ai-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ai-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.10);
}
.ai-classify { display: inline-flex; align-items: center; gap: 6px; }
.ai-classify-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(13,138,247,0.18);
  color: #7cc4ff;
  border: 1px solid rgba(13,138,247,0.30);
}
.ai-confidence {
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: rgba(255,255,255,0.55);
}

.ai-dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.ai-dots span {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  animation: ai-typing 1.2s ease-in-out infinite;
}
.ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-typing {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-step, .ai-icon-pulse::after, .ai-live-dot, .ai-dots span { animation: none !important; }
  .ai-step { opacity: 1; transform: none; }
}

/* ==================================================================
   SOLUTIONS GRID (large cards)
   ================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.solution {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.solution:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-soft-2);
  color: var(--text);
  transform: translateY(-2px);
}
.solution-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.solution-icon .ico { width: 28px; height: 28px; stroke-width: 1.6; }
.solution h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.solution p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.solution ul {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.solution ul li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
}
.solution ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1.5px;
  background: var(--primary);
}

/* ==================================================================
   INDUSTRIES GRID (image-style cards via gradient)
   ================================================================== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.industry {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  isolation: isolate;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s;
}
.industry:hover { transform: translateY(-2px); color: #fff; }
.industry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ind-grad, linear-gradient(135deg, #0067c0 0%, #003c7a 100%));
}
.industry::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%);
  z-index: -1;
}
.industry-grad-1 { --ind-grad: linear-gradient(135deg, #0067c0 0%, #002a55 100%); }
.industry-grad-2 { --ind-grad: linear-gradient(135deg, #0d8af7 0%, #003e87 100%); }
.industry-grad-3 { --ind-grad: linear-gradient(135deg, #2a9d8f 0%, #144142 100%); }
.industry-grad-4 { --ind-grad: linear-gradient(135deg, #6a4ed6 0%, #2a1d65 100%); }
.industry-grad-5 { --ind-grad: linear-gradient(135deg, #d65a3c 0%, #6f1d10 100%); }
.industry-grad-6 { --ind-grad: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%); }

.industry-body {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.industry-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  backdrop-filter: blur(8px);
}
.industry h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 4px;
}
.industry p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

/* ==================================================================
   INDUSTRY CARDS  (clean white cards with badge + tags)
   ================================================================== */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ind-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
  position: relative;
}
.ind-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-soft-2);
  transform: translateY(-2px);
  color: var(--text);
}
.ind-card::after {
  content: "→";
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--text-soft);
  font-size: 18px;
  transition: color 0.18s, transform 0.18s;
}
.ind-card:hover::after { color: var(--primary); transform: translateX(3px); }

.ind-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.ind-badge .ico { width: 24px; height: 24px; stroke-width: 1.6; }
.ind-badge-1 { background: linear-gradient(135deg, #0d8af7 0%, #003c7a 100%); }
.ind-badge-2 { background: linear-gradient(135deg, #2a9d8f 0%, #144142 100%); }
.ind-badge-3 { background: linear-gradient(135deg, #d97706 0%, #6b3a04 100%); }
.ind-badge-4 { background: linear-gradient(135deg, #6a4ed6 0%, #2a1d65 100%); }
.ind-badge-5 { background: linear-gradient(135deg, #d65a3c 0%, #6f1d10 100%); }
.ind-badge-6 { background: linear-gradient(135deg, #424242 0%, #1a1a1a 100%); }

.ind-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}
.ind-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}
.ind-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.ind-tags li {
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-soft);
  color: var(--text-2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ==================================================================
   APPROACH STEPS
   ================================================================== */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.approach {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.approach-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.approach-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.approach h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}
.approach p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ==================================================================
   SOLUTION NARRATIVE BLOCKS (deep services page)
   ================================================================== */
.svc-detail-stack { display: grid; gap: 14px; }
.svc-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.svc-detail:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.svc-detail-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--border);
  padding-right: 24px;
}
.svc-detail-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-detail-icon .ico { width: 28px; height: 28px; stroke-width: 1.6; }
.svc-detail-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.svc-detail-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.2;
}
.svc-detail-body { display: flex; flex-direction: column; gap: 16px; }
.svc-detail-body > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}
.svc-detail-examples {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 16px 20px;
}
.svc-detail-examples h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.svc-detail-examples ul { list-style: none; display: grid; gap: 8px; }
.svc-detail-examples li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}
.svc-detail-examples li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1.5px;
  background: var(--primary);
}
.svc-detail-note {
  font-size: 13px;
  color: var(--text-soft);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-style: italic;
}
.svc-detail-note strong { color: var(--text-2); font-weight: 600; font-style: normal; }

@media (max-width: 1100px) {
  .svc-detail { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .svc-detail-side {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 16px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .svc-detail-side .svc-detail-icon { flex-shrink: 0; }
}

/* ==================================================================
   GANTT TIMELINE + PHASE NARRATIVE
   ================================================================== */
.timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.timeline-axis {
  display: grid;
  grid-template-columns: 130px repeat(8, 1fr);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 14px;
}
.timeline-axis .spacer {}
.timeline-axis span:not(.spacer) {
  border-left: 1px dashed var(--border);
  padding-left: 8px;
}
.timeline-axis span:nth-child(2) { border-left: 0; padding-left: 0; }

.timeline-rows { display: grid; gap: 6px; }
.timeline-row {
  display: grid;
  grid-template-columns: 130px repeat(8, 1fr);
  align-items: center;
  min-height: 36px;
}
.timeline-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding-right: 16px;
}
.timeline-bar {
  height: 32px;
  border-radius: 6px;
  border: 1px solid;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.005em;
}
.timeline-bar.tb-1 { background: rgba(13,138,247,0.10); border-color: rgba(13,138,247,0.40); color: #0067c0; }
.timeline-bar.tb-2 { background: rgba(42,157,143,0.10); border-color: rgba(42,157,143,0.40); color: #1d6f64; }
.timeline-bar.tb-3 { background: rgba(106,78,214,0.10); border-color: rgba(106,78,214,0.40); color: #4d33b5; }
.timeline-bar.tb-4 { background: rgba(217,119,6,0.12);  border-color: rgba(217,119,6,0.40);  color: #b86404; }

.phase-stack { display: grid; gap: 12px; }
.phase {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.phase:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}
.phase-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border);
  padding-right: 24px;
}
.phase-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
  line-height: 1;
}
.phase-time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.phase-body h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 10px;
}
.phase-body > p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}
.phase-output {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.phase-output strong { color: var(--text); font-weight: 600; }

.phase-postscript {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 24px;
  font-style: italic;
}

/* ==================================================================
   FEATURED PROJECT (2-col block with mockup)
   ================================================================== */
.feature-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}
.feature-project .copy h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.feature-project .copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 56ch;
}
.feature-project .copy .stats-line {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-project .copy .stats-line div { display: flex; flex-direction: column; gap: 2px; }
.feature-project .copy .stats-line .num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.feature-project .copy .stats-line .label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
}

/* mockup card (CSS-illustrated dashboard) */
.mockup {
  background: linear-gradient(135deg, #f3f7fc 0%, #e1edf8 100%);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,103,192,0.10);
}
.mockup-inner {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px;
  display: grid;
  gap: 14px;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mockup-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.mockup-bar .dot:nth-child(1) { background: #ff5f57; }
.mockup-bar .dot:nth-child(2) { background: #ffbd2e; }
.mockup-bar .dot:nth-child(3) { background: #28c840; }
.mockup-bar .url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-soft);
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 4px;
  flex: 1;
  font-family: ui-monospace, monospace;
}
.mockup-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mockup-card {
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-card .lbl {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}
.mockup-card .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mockup-card .delta {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}
.mockup-chart {
  height: 110px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, transparent 80%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.mockup-chart svg { width: 100%; height: 100%; }
.mockup-list { display: grid; gap: 6px; }
.mockup-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-soft);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-2);
}
.mockup-list-item .pill {
  font-size: 10px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  margin-left: auto;
}

/* ==================================================================
   PERSPECTIVE / INSIGHTS CARDS
   ================================================================== */
.perspective-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--primary-soft-2);
  color: var(--text);
}
.article-cover {
  aspect-ratio: 16 / 9;
  background: var(--art-grad, linear-gradient(135deg, #0067c0 0%, #003c7a 100%));
  position: relative;
  overflow: hidden;
}
.art-grad-1 { --art-grad: linear-gradient(135deg, #0067c0 0%, #002a55 100%); }
.art-grad-2 { --art-grad: linear-gradient(135deg, #2a9d8f 0%, #144142 100%); }
.art-grad-3 { --art-grad: linear-gradient(135deg, #6a4ed6 0%, #2a1d65 100%); }

/* cover palette — frontmatter cover: <name> on a post */
.article-cover.cover-blue,   .post-cover.cover-blue   { --art-grad: linear-gradient(135deg, #0067c0 0%, #002a55 100%); background: var(--art-grad); }
.article-cover.cover-teal,   .post-cover.cover-teal   { --art-grad: linear-gradient(135deg, #2a9d8f 0%, #144142 100%); background: var(--art-grad); }
.article-cover.cover-purple, .post-cover.cover-purple { --art-grad: linear-gradient(135deg, #6a4ed6 0%, #2a1d65 100%); background: var(--art-grad); }
.article-cover.cover-amber,  .post-cover.cover-amber  { --art-grad: linear-gradient(135deg, #d97706 0%, #6b3a04 100%); background: var(--art-grad); }
.article-cover.cover-rose,   .post-cover.cover-rose   { --art-grad: linear-gradient(135deg, #d65a3c 0%, #6f1d10 100%); background: var(--art-grad); }
.article-cover.cover-slate,  .post-cover.cover-slate  { --art-grad: linear-gradient(135deg, #424242 0%, #1a1a1a 100%); background: var(--art-grad); }
.article-cover.cover-forest, .post-cover.cover-forest { --art-grad: linear-gradient(135deg, #1f8a4f 0%, #0d3b21 100%); background: var(--art-grad); }
.article-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(135deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 70%);
}
.article-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
  display: flex;
  gap: 12px;
}
.article-meta .cat { color: var(--primary); }
.article-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}
.article-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
}
.article-card .read {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
}

/* ==================================================================
   ABOUT PREVIEW (2-col image + bullets)
   ================================================================== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-preview .visual {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 70% 60% at 30% 30%, rgba(13,138,247,0.30), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(106,78,214,0.22), transparent 60%),
    linear-gradient(135deg, #0e2a4f 0%, #0a1c34 100%);
  border: 1px solid rgba(255,255,255,0.10);
  position: relative;
  overflow: hidden;
}
.about-preview .visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.about-preview .visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  isolation: isolate;
}
.about-preview .visual > * { position: relative; z-index: 1; }

/* Studio identity / registry card */
.studio-card {
  width: 100%;
  max-width: 380px;
  background: rgba(8, 22, 38, 0.65);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,12,28,0.45), 0 0 0 1px rgba(13,138,247,0.10) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.studio-card-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.studio-card-mark { width: 28px; height: 28px; display: inline-flex; }
.studio-card-mark svg { width: 100%; height: 100%; border-radius: 4px; }
.studio-card-id { display: flex; flex-direction: column; gap: 2px; }
.studio-card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.studio-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.005em;
}
.studio-card-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6dd58c;
}
.studio-card-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6dd58c;
  box-shadow: 0 0 0 3px rgba(109,213,140,0.18);
  animation: ai-live-pulse 1.8s ease-in-out infinite;
}

.studio-card-body {
  padding: 14px 16px;
  display: grid;
  gap: 0;
}
.studio-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.studio-row:last-child { border-bottom: 0; }
.studio-row .k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.studio-row .v {
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0;
}
.studio-row-hi .v { color: #7cc4ff; font-weight: 600; }

.studio-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.studio-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(13,138,247,0.14);
  color: #7cc4ff;
  border: 1px solid rgba(13,138,247,0.22);
  letter-spacing: 0.02em;
}
.about-bullets {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.about-bullet {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.about-bullet .ck {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-bullet .ck .ico { width: 14px; height: 14px; stroke-width: 2.5; }
.about-bullet h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.about-bullet p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==================================================================
   ABOUT PAGE  (narrative + principles + teaser)
   ================================================================== */
.about-narrative {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-narrative-copy h2 { margin-bottom: 18px; }
.about-narrative-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 16px;
  max-width: 60ch;
}
.about-narrative-card {
  position: sticky;
  top: 100px;
  display: flex;
  justify-content: center;
}

.principle-stack { display: grid; gap: 12px; }
.principle-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.principle-row:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.principle-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
  line-height: 1;
}
.principle-row h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
}
.principle-row p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 64ch;
}

.about-teaser {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0;
}
.about-teaser .block-title { margin: 0 auto 16px; }
.about-teaser .block-lede { margin: 0 auto 20px; }

@media (max-width: 1100px) {
  .about-narrative { grid-template-columns: 1fr; gap: 32px; }
  .about-narrative-card { position: static; }
  .principle-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 24px; }
  .principle-num { font-size: 32px; }
}

/* ==================================================================
   CTA STRIP
   ================================================================== */
.cta-strip {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(13,138,247,0.35), transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 100%, rgba(0,103,192,0.30), transparent 70%),
    linear-gradient(135deg, #0e2a4f 0%, #0a1c34 100%);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.cta-strip h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 24ch;
}
.cta-strip p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin-top: 10px;
  max-width: 56ch;
}
.cta-strip-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ==================================================================
   FOOTER (multi-column site map)
   ================================================================== */
footer {
  background: var(--bg-deeper);
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  padding: 64px var(--gutter) 32px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
}
.footer-brand-col { max-width: 320px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 16px;
}
.footer-blurb {
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  margin-bottom: 24px;
}
.footer-region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}
.footer-region:hover { background: rgba(255,255,255,0.10); color: #fff; }
.footer-region .ico { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0;
  text-transform: none;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.62); font-size: 13px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--container);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.48);
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.62); }
.footer-bottom a:hover { color: #fff; }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.72);
}
.footer-social a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.footer-social .ico { width: 16px; height: 16px; }

/* ==================================================================
   COOKIE BANNER
   ================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 22px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  z-index: 700;
  font-size: 13px;
}
.cookie-banner.hidden { display: none; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btn {
  padding: 0 16px;
  height: 34px;
  background: #fff;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}
.cookie-btn:hover { border-color: var(--text); }
.cookie-btn.accept { background: var(--primary); color: #fff; border-color: var(--primary); }
.cookie-btn.accept:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

/* ==================================================================
   SUB-HERO (inner pages)
   ================================================================== */
.sub-hero {
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(13,138,247,0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  padding: 56px 0 56px;
  border-bottom: 1px solid var(--border);
}
.sub-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.crumb {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.crumb a { color: var(--text-soft); }
.crumb a:hover { color: var(--primary); }
.crumb .sep { margin: 0 6px; color: var(--border-strong); }

.sub-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 22ch;
}
.sub-hero .lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
}

/* ==================================================================
   FORM
   ================================================================== */
.form { display: grid; gap: 16px; }
.form-field { display: grid; gap: 6px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-submit {
  align-self: start;
  padding: 0 22px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  transition: background 0.15s;
}
.form-submit:hover { background: var(--primary-hover); }

/* contact methods card list */
.method-list { display: grid; gap: 12px; }
.method {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.method:hover { border-color: var(--primary); color: var(--text); box-shadow: var(--shadow-sm); }
.method-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.method h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.method .v { font-size: 14px; color: var(--text-muted); }

/* office card */
.office {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.office-map {
  aspect-ratio: 16 / 7;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-soft);
}
.office-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(1.05);
}
.office-map-attribution {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.office-map-attribution:hover { color: var(--primary); border-color: var(--primary); }
.office-map-attribution .ico { width: 12px; height: 12px; stroke-width: 2; }
.office-body { padding: 22px 26px; }
.office-body h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.office-body p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ==================================================================
   LEGAL CONTENT
   ================================================================== */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 14px;
  color: var(--text);
}
.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 14px;
}
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content a { color: var(--link); }
.legal-content a:hover { text-decoration: underline; }

/* ==================================================================
   ARTICLE / POST PAGE
   ================================================================== */
.post { display: block; }

/* Magazine-style cover (SVG carries title + branding) */
.post-magazine {
  background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%);
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--border);
}
.post-magazine-crumb {
  max-width: var(--container);
  margin: 0 auto 22px;
  padding: 0 var(--gutter);
}
.post-magazine-image {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.post-magazine-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 50px rgba(15,32,47,0.18);
  display: block;
  border: 1px solid rgba(0,103,192,0.15);
  background: var(--bg-soft);
}
.post-magazine-meta {
  max-width: 1100px;
  margin: 22px auto 0;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.post-magazine-meta .post-byline-item { display: inline-flex; align-items: center; gap: 6px; }
.post-magazine-meta .post-byline-item .ico { width: 16px; height: 16px; opacity: 0.8; }
.post-magazine-meta .post-byline-sep { color: var(--border-strong); }

/* Figures inside post body — break out to a wider width than body text */
.post-figure {
  margin: 40px auto;
  display: block;
  width: 100%;
  max-width: 1080px;
  padding: 0;
}
.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: 0 6px 24px rgba(15,32,47,0.08), 0 1px 2px rgba(15,32,47,0.04);
  margin: 0;
}
.post-figure figcaption {
  margin: 14px auto 0;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  text-align: center;
  font-style: italic;
  padding: 0 16px;
}

.post-cover {
  position: relative;
  padding: 96px 0 80px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.post-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 60%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 60%, #000 0%, transparent 80%);
  z-index: 0;
}
.post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.30) 100%);
  z-index: 0;
  pointer-events: none;
}
.post-cover-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.post-crumb {
  color: rgba(255,255,255,0.62);
  margin-bottom: 24px;
}
.post-crumb a { color: rgba(255,255,255,0.78); }
.post-crumb a:hover { color: #fff; }
.post-crumb .sep { color: rgba(255,255,255,0.32); }

.post-category {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}
.post-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 18px;
  max-width: 28ch;
}
.post-excerpt {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin-bottom: 28px;
}
.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}
.post-byline-item { display: inline-flex; align-items: center; gap: 6px; }
.post-byline-item .ico { width: 16px; height: 16px; opacity: 0.85; }
.post-byline-sep { color: rgba(255,255,255,0.30); }

.post-body {
  display: grid;
  grid-template-columns:
    [full-start] minmax(0, 1fr)
    [content-start] min(720px, 100%) [content-end]
    minmax(0, 1fr) [full-end];
  margin: 0;
  max-width: none;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
}
.post-body > * { grid-column: content; min-width: 0; }
.post-body > .post-figure { grid-column: full; }
.post-body > p {
  margin-bottom: 22px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
}
.post-body > p:first-of-type::first-letter {
  /* keep simple — no drop cap, just slight emphasis */
}
.post-body h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 48px 0 18px;
  color: var(--text);
  line-height: 1.2;
  scroll-margin-top: 80px;
}
.post-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  color: var(--text);
}
.post-body ul, .post-body ol {
  margin: 0 0 22px 24px;
  padding-left: 4px;
}
.post-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.post-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 24px;
  margin: 32px 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 500;
  font-style: italic;
}
.post-body blockquote p { margin: 0; }
.post-body code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.92em;
  color: var(--text);
}
.post-body pre {
  background: var(--text);
  color: #f5f5f5;
  padding: 18px 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.55;
}
.post-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}
.post-body a {
  color: var(--primary);
  border-bottom: 1px solid currentColor;
}
.post-body a:hover { color: var(--primary-hover); }
.post-body img {
  border-radius: var(--radius);
  margin: 28px auto;
  border: 1px solid var(--border);
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-tags-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-right: 4px;
}
.post-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-soft);
  color: var(--text-2);
  border-radius: var(--radius-pill);
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}
.post-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-right: 4px;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.post-share-btn .ico { width: 14px; height: 14px; }
.post-share-btn:hover { border-color: var(--primary); color: var(--primary); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.post-nav-link:hover {
  border-color: var(--primary-soft-2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: var(--text);
}
.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; }
.post-nav-dir {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}
.post-nav-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* article-card additions: footer with date */
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-soft);
}
.article-footer time { font-weight: 500; }

/* RSS link in insights hero */
.rss-link { margin-top: 18px; }
.rss-link .link-arrow { font-size: 13px; }

/* legacy compat — old class kept for any older content */
.article-body-content { max-width: 720px; margin: 0 auto; }
.article-body-content h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 16px; color: var(--text); }
.article-body-content p { font-size: 17px; line-height: 1.7; color: var(--text-2); margin-bottom: 20px; }
.article-body-content blockquote { border-left: 3px solid var(--primary); padding: 8px 24px; margin: 32px 0; color: var(--text); font-size: 18px; line-height: 1.55; font-weight: 500; }

@media (max-width: 720px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-cover { padding: 64px 0 56px; }
  .post-body { font-size: 16px; }
  .post-body > p { font-size: 16px; }
}

/* ==================================================================
   HAMBURGER + MOBILE MENU
   ================================================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 810;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 599;
  padding: 24px var(--gutter) 32px;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu-links a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-menu-links a:hover,
.mobile-menu-links a[aria-current="page"] { color: var(--primary); }
.mobile-menu-cta { margin-top: auto; padding-top: 16px; }

body.menu-open { overflow: hidden; }

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 1100px) {
  .timeline-axis,
  .timeline-row { grid-template-columns: 100px repeat(8, 1fr); }
  .timeline-bar { font-size: 10px; padding: 0 8px; }
  .timeline-label { font-size: 12px; padding-right: 8px; }
  .phase { grid-template-columns: 1fr; gap: 16px; padding: 20px 22px; }
  .phase-side {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 12px;
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
  }
  .phase-num { font-size: 28px; }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 600px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .perspective-grid { grid-template-columns: 1fr; }
  .feature-project { grid-template-columns: 1fr; gap: 32px; }
  .about-preview { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-visual { min-height: 220px; }
  .lambda-card { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  /* body / sections */
  section.block { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .sub-hero { padding: 36px 0; }

  /* hide desktop nav, show hamburger */
  .util-bar { display: none; }
  .site-nav-links { display: none; }
  .site-nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }

  /* block-head stacking */
  .block-head { grid-template-columns: 1fr; gap: 16px; }
  .block-head .link-arrow { justify-self: start; }

  /* hero */
  .hero h1 { font-size: 2rem; max-width: none; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-visual { max-width: 320px; margin: 0 auto; }

  /* spotlight */
  .spotlight-copy { padding: 36px 28px; }
  .spotlight-copy h2 { font-size: 1.5rem; }
  .spotlight-actions { flex-direction: column; }
  .spotlight-actions .btn { width: 100%; justify-content: center; }

  /* lambda */
  .lambda-card-visual { min-height: 260px; padding: 24px; }
  .lambda-card-copy { padding: 32px 24px; }
  .lambda-card-copy h3 { font-size: 1.35rem; }
  .lambda-stats { gap: 20px; }
  .lambda-stat-num { font-size: 18px; }
  .lambda-actions { flex-direction: column; }
  .lambda-actions .btn { width: 100%; justify-content: center; }

  /* cards / grids */
  .industries-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .timeline { display: none; }

  /* cta strip */
  .cta-strip { padding: 36px 24px; }
  .cta-strip h2 { font-size: 1.4rem; }
  .cta-strip-actions { flex-direction: column; width: 100%; }
  .cta-strip-actions .btn { width: 100%; justify-content: center; }

  /* footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand-col { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* cookie banner */
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; }

  /* sub-hero */
  .sub-hero h1 { font-size: 1.75rem; }

  /* about page */
  .about-narrative { grid-template-columns: 1fr; gap: 32px; }
  .about-narrative-card { position: static; }
  .principle-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .principle-num { font-size: 32px; }

  /* about teaser */
  .about-teaser { padding: 16px 0; }
  .block-title { font-size: 1.5rem; }

  /* contact page — handled via responsive-contact class */
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .contact-form-row { grid-template-columns: 1fr !important; }

  /* services matrix table */
  .matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .matrix-wrap table { min-width: 640px; }

  /* office card */
  .office-map { aspect-ratio: 16 / 9; }
}

/* ==================================================================
   REVEAL  (kept for compat)
   ================================================================== */
.reveal { opacity: 1; transform: none; }
html.js-reveals .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
html.js-reveals .reveal.visible { opacity: 1; transform: none; }
