/* Premium editorial surfaces for blog, case studies, and careers. */
body { font-family: var(--f-sans); background: var(--bg); color: var(--ink); }
body .page-header { background: var(--bg); padding: 170px 0 80px; }
body .page-title {
  font: 500 clamp(42px, 6vw, 76px)/1.12 var(--f-sans);
  letter-spacing: -0.04em;
  max-width: 850px;
}
.page-sub, body .page-subtitle {
  font-size: 18px;
  max-width: 650px;
  color: var(--muted);
  margin-top: 22px;
}
.page-label, .section-eyebrow, .hero-eyebrow { display: none !important; }
.section-title { display: none; }
.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  z-index: 110;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.blog-section { padding: 72px 0 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  border: 0;
}
.blog-card, .blog-card.linked {
  padding: 0;
  border: 0;
  background: transparent !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.blog-img {
  height: 240px;
  margin: 0 0 24px;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface) !important;
}
.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms var(--ease-out);
}
.blog-img::before { display: none; }
.blog-body { padding: 0; display: flex; flex: 1; flex-direction: column; }
.blog-pill, .blog-tag {
  font-family: var(--f-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-text);
  font-size: 12px;
  border: 0;
  padding: 0;
  margin-bottom: 12px;
  background: transparent;
}
.blog-title {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.blog-desc { color: var(--muted); margin-bottom: 20px; }
.blog-meta {
  margin-top: auto;
  font-family: var(--f-sans);
  font-size: 12px;
  color: var(--muted);
}
.blog-card.coming { border-top: 1px solid var(--line); padding-top: 24px; }
.newsletter {
  margin-top: 88px;
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  align-items: center;
  gap: 48px;
  border-radius: 28px 28px 0 0;
  background: var(--surface-inverse);
  color: var(--bg);
}
.newsletter h2, .newsletter h3 { color: var(--bg); }
.newsletter p { color: #C0CADE; }
.newsletter a.btn { background: var(--accent); color: var(--ink); }
.newsletter .small { color: #98B4D5; }

.root, .root h1, .root h2, .root h3, .root h4, .root p, .root li, .root a, .root em {
  font-family: var(--f-sans);
  font-style: normal;
}
.root { max-width: 1100px; color: var(--ink); }
.root .hero-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.04em;
}
.root .hero-title em { color: var(--ink); font-style: normal; }
.root .hero-sub { font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 760px; }
.root h2 { font-size: 30px; line-height: 1.25; font-weight: 500; letter-spacing: -0.03em; }
.root h3 { font-size: 19px; letter-spacing: -0.02em; }
.root p, .root li { font-size: 15px; line-height: 1.85; color: var(--muted); font-weight: 400; }
.root .brand { display: none; }
.root .topbar { border: 0; }
.root .ttag, .root .ttag-accent {
  color: var(--muted);
  border-color: var(--line);
  background: var(--surface);
  font-family: var(--f-sans);
}
.root .metric-strip, .root .result-card, .root .phase-card, .root .agent-card, .root .arch-card, .root .diagram, .root .rel-card {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 16px;
}
.root .mstrip-val, .root .rel-metric { color: var(--accent-text); }
.root .mstrip-label, .root .result-card p, .root .phase-card p, .root .agent-card p, .root .arch-card p { color: var(--muted); }
.root .cta-section {
  background: var(--surface-inverse);
  border: 0;
  border-radius: 28px;
  color: var(--bg);
}
.root .cta-section h2 { color: var(--bg); }
.root .cta-section p, .root .cta-secondary { color: #C0CADE; }
.root .cta-btn {
  background: var(--accent);
  color: var(--ink);
  border-radius: 100px;
  font-family: var(--f-sans);
  font-weight: 600;
}
.root a:not(.cta-btn):not(.rel-card):hover { color: var(--accent-text); }
.root .cta-section a:not(.cta-btn) { color: #F7F8FC; }
.root .section { margin-top: 50px; }
.root .section-label { font-family: var(--f-sans); color: var(--muted); letter-spacing: 0; }
.root .hero { border-radius: 0; background: transparent; }
.root .hero::before, .root .hero::after { display: none; }

.careers-section { background: var(--bg); padding: 72px 0 80px; }
.careers-intro { max-width: 760px; margin: 0 auto 48px; }
.careers-intro p { margin-bottom: 16px; }
.careers-intro ul { margin: 16px 0 0 22px; line-height: 1.8; }
.careers-section h2 { font-size: 28px; margin-bottom: 16px; }
.careers-section p, .careers-section li { color: var(--muted); }
.career-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: none;
}
.career-icon { background: var(--surface) !important; color: var(--ink); border-radius: 12px; }
.career-info h3 { font-family: var(--f-sans); font-size: 22px; }
.career-info p { color: var(--muted); }
.spec-banner {
  background: var(--surface-inverse);
  color: var(--bg);
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0 0;
}
.spec-banner h2 { color: var(--bg); font-size: 32px; margin-bottom: 12px; }
.spec-banner p { color: #C0CADE; max-width: 560px; margin: 0 auto 28px; }
.spec-banner .btn { background: var(--accent); color: var(--ink); }
footer .footer-brand .logo > span { color: var(--bg); }
footer .footer-brand .logo > span > span { color: var(--accent); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 800px) {
  body .page-header { padding: 130px 0 55px; }
  .root { padding-inline: 24px; }
  .root .hero-title { font-size: 40px; }
  .root h2 { font-size: 26px; }
  .blog-img { height: 210px; }
  .article-wrap { padding: 108px 24px 0; }
  .root .metric-strip { flex-wrap: wrap; }
  .root .mstrip-item { min-width: 40%; }
  .root { overflow-wrap: anywhere; }
  .spec-banner { padding: 35px 25px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

@media (hover: hover) and (pointer: fine) {
  .blog-card.linked:hover .blog-img img { transform: scale(1.025); }
  .blog-card.linked:hover .read-link { transform: translateX(4px); }
  .root .cta-btn:hover { background: var(--accent-hover); }
}

@media (prefers-reduced-motion: no-preference) {
  .page-header h1, .root .hero-title {
    animation: editorial-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes editorial-in {
    from { opacity: 0.5; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .blog-card, .spec-banner {
      animation: editorial-in 1s linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* Premium editorial system shared by the blog, case studies, and careers. */
:root {
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-surface-elevated: #FFFFFF;
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
  --color-border: var(--line);
  --color-border-tertiary: var(--line-soft);
  --color-accent: var(--accent);
  --color-accent-soft: var(--accent-soft);
}
body .page-header {
  padding: 180px 0 96px;
  border: 0;
  overflow: hidden;
}
body .page-title {
  max-width: 980px;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}
body .page-subtitle,
.page-sub {
  max-width: 680px;
  margin-top: 32px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
}

.blog-section { padding: 30px 0 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px 22px;
}
.blog-card,
.blog-card.linked {
  grid-column: span 4;
  padding: 14px;
  border-radius: 28px;
  background: #FFFFFF !important;
  overflow: hidden;
}
.blog-card:nth-child(1) { grid-column: span 7; }
.blog-card:nth-child(2) { grid-column: span 5; margin-top: 90px; }
.blog-card:nth-child(3) { grid-column: span 5; }
.blog-card:nth-child(4) { grid-column: span 7; margin-top: -40px; }
.blog-card:nth-child(5) { grid-column: span 6; }
.blog-card:nth-child(6) { grid-column: span 6; margin-top: 70px; }
.blog-img {
  height: 300px;
  margin-bottom: 22px;
  border-radius: 18px;
}
.blog-card:nth-child(1) .blog-img,
.blog-card:nth-child(4) .blog-img { height: 430px; }
.blog-card:nth-child(2) .blog-img,
.blog-card:nth-child(6) .blog-img { height: 360px; }
.blog-body { padding: 0 10px 12px; }
.blog-title { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.06; }
.blog-desc { max-width: 56ch; }
.blog-card.coming {
  border: 0;
  opacity: 0.88;
}
.blog-card.coming .blog-img { filter: saturate(0.78); }
.newsletter {
  margin-top: 112px;
  padding: clamp(44px, 6vw, 78px);
  border-radius: 36px 36px 0 0;
  background: var(--midnight);
}
.newsletter h2 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1; }

.careers-visual {
  position: relative;
  width: min(1120px, 94%);
  margin: 72px 0 -190px auto;
  overflow: hidden;
  border-radius: 36px;
  background: var(--midnight);
  box-shadow: 0 34px 80px rgba(17, 24, 45, 0.18);
}
.careers-visual img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.02);
}
.careers-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 100px;
  background: rgba(17, 24, 45, 0.82);
  color: #F7F8FC;
  font-size: 10px;
}
.careers-section { padding: 250px 0 110px; background: var(--pale); }
.careers-intro {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  column-gap: 72px;
  max-width: 980px;
  margin: 0 auto 68px;
}
.careers-intro h2 { grid-row: 1 / 5; font-size: clamp(34px, 4vw, 52px); }
.careers-intro p,
.careers-intro ul { grid-column: 2; }
.spec-banner {
  max-width: 980px;
  margin-inline: auto;
  padding: 68px 48px;
  border-radius: 36px;
}
.spec-banner h2 { font-size: clamp(38px, 5vw, 60px); }

.article-wrap { padding-top: 122px; }
.article-inner,
.footer-inner {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--gutter));
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.root {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--gutter));
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.root .topbar {
  padding-block: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.root .topbar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.root .ttag,
.root .ttag-accent {
  padding: 8px 12px;
  border-radius: 100px;
  background: var(--surface);
}
.root .hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 0 clamp(42px, 6vw, 88px);
  align-items: start;
  padding: 58px 0 84px;
}
.root .hero-eyebrow { display: none !important; }
.root .hero-title {
  grid-column: 1;
  grid-row: 1;
  max-width: 12ch;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 0.98;
}
.root .hero-sub {
  grid-column: 1;
  grid-row: 2;
  margin-top: 30px;
  font-size: 17px;
  line-height: 1.72;
}
.article-hero-media {
  grid-column: 2;
  grid-row: 1 / 4;
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  background: var(--midnight);
}
.article-hero-media img {
  width: 100%;
  min-height: 560px;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
}
.article-hero-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 100px;
  background: rgba(17, 24, 45, 0.82);
  color: #F7F8FC;
  font-size: 10px;
}
.root .metric-strip {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border-block: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
}
.root .mstrip-cell,
.root .mstrip-item {
  padding: 26px 24px 26px 0;
  border-right: 1px solid var(--line);
}
.root .mstrip-cell + .mstrip-cell,
.root .mstrip-item + .mstrip-item { padding-left: 24px; }
.root .mstrip-cell:last-child,
.root .mstrip-item:last-child { border-right: 0; }
.root .mstrip-val { font-size: clamp(38px, 4vw, 58px); color: var(--ink); }
.root .section {
  max-width: 1040px;
  margin: 92px auto 0;
}
.root .section-label {
  margin-bottom: 18px;
  color: var(--accent-text);
  font-size: 12px;
}
.root h2 {
  max-width: 24ch;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}
.root p,
.root li {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.85;
}
.root .problem-block,
.root .quote-block {
  margin-top: 30px;
  padding: 32px;
  border: 0;
  border-radius: 20px;
  background: var(--pale);
}
.root .result-card,
.root .phase-card,
.root .agent-card,
.root .arch-card,
.root .diagram,
.root .rel-card,
.root .hitl-card,
.root .cond-card,
.root .itype {
  border: 0;
  border-radius: 16px;
  background: var(--surface);
}
.root .results-grid,
.root .phase-grid,
.root .related-grid { gap: 16px; }
.root .cta-section {
  margin-top: 104px;
  padding: clamp(44px, 6vw, 76px);
  border-radius: 36px;
}
.root .cta-section h2 { font-size: clamp(36px, 4.5vw, 56px); }

@media (max-width: 900px) {
  body .page-header { padding-top: 146px; }
  body .page-title { font-size: clamp(54px, 11vw, 82px); }
  .blog-card,
  .blog-card.linked,
  .blog-card:nth-child(n) {
    grid-column: span 6;
    margin-top: 0;
  }
  .blog-card:nth-child(1) { grid-column: 1 / -1; }
  .careers-intro { grid-template-columns: 1fr; gap: 24px; }
  .careers-intro h2 { grid-row: auto; }
  .careers-intro p,
  .careers-intro ul { grid-column: 1; }
  .root .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .root .hero-title,
  .root .hero-sub,
  .article-hero-media,
  .root .metric-strip {
    grid-column: 1;
    grid-row: auto;
  }
  .article-hero-media { margin-top: 42px; }
  .article-hero-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .root .metric-strip { margin-top: 36px; }
}

@media (max-width: 600px) {
  body .page-header { padding: 126px 0 62px; }
  body .page-title { font-size: 52px; }
  .page-sub { font-size: 17px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card,
  .blog-card.linked,
  .blog-card:nth-child(n) {
    grid-column: 1;
    margin: 0;
    border-radius: 22px;
  }
  .blog-img,
  .blog-card:nth-child(n) .blog-img { height: 280px; }
  .newsletter { margin-top: 70px; border-radius: 28px 28px 0 0; }
  .careers-visual { width: 100%; margin-top: 46px; margin-bottom: -130px; border-radius: 24px; }
  .careers-visual img { aspect-ratio: 4 / 3; }
  .careers-section { padding-top: 190px; }
  .spec-banner { padding: 42px 24px; border-radius: 28px; }
  .article-wrap { padding-top: 96px; }
  .root { padding-inline: 24px; }
  .root .hero { padding-top: 40px; }
  .root .hero-title { font-size: 44px; }
  .article-hero-media { border-radius: 22px; }
  .root .metric-strip { grid-template-columns: 1fr; }
  .root .mstrip-cell,
  .root .mstrip-item,
  .root .mstrip-cell + .mstrip-cell,
  .root .mstrip-item + .mstrip-item {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .root .mstrip-cell:last-child,
  .root .mstrip-item:last-child { border-bottom: 0; }
  .root .section { margin-top: 68px; }
  .root .cta-section { border-radius: 28px; }
}
