/* ==========================================================================
   Adam Kendall — CV site
   Hand-written HTML/CSS build from the Figma "For review" > Homepage frame.
   No framework, no design-system components — plain, responsive, accessible CSS.
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ink: #000000;
  --ink-contact: #1d1d1f;
  --ink-muted: #55555a;
  --label: #707070;

  --bg: #ffffff;
  --bg-alt: #fafafa;
  --card-bg: #f5f5f7;

  --radius-lg: 20px;
  --radius-pill: 999px;

  --nav-height: 44px;
  --content-max: 800px;
  --masthead-max: 1140px;

  --space-80: 80px;
  --space-60: 60px;
  --space-50: 50px;
  --space-40: 40px;
  --space-30: 30px;

  --focus-ring: 2px solid #145fc0;
}

/* ---------- Reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Focus visibility ---------- */

a:focus-visible,
button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Shared layout helpers ---------- */

.section-inner {
  max-width: var(--content-max);
  margin-inline: auto;
}

/* Section labels and breadcrumbs share one style: small, uppercase, tracked. */
.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 20px;
}

h2 {
  font-size: 40px;
  font-weight: 590;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 24px;
  font-weight: 590;
  line-height: 1.2;
}

.lede {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 40px;
  max-width: 62ch;
}

.lede a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lede a:hover {
  color: #145fc0;
}

/* ---------- Placeholder images ---------- */

.img-placeholder {
  background: var(--card-bg);
  border: 1px dashed #c7c7cc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--label);
  font-size: 13px;
  font-weight: 400;
  padding: 1rem;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.site-nav-inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-40);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 17px;
  font-weight: 590;
}

.site-nav nav {
  display: flex;
  align-items: center;
}

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

.nav-links a {
  font-size: 12px;
  font-weight: 590;
  padding: 12px 2px;
  display: inline-block;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--bg);
  padding: var(--space-60) var(--space-30);
}

.masthead-inner {
  max-width: var(--masthead-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.masthead-content {
  flex: 1 1 480px;
  max-width: 609px;
}

.masthead h1 {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 590;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.masthead-deck {
  font-size: 21px;
  font-weight: 400;
  margin-top: 20px;
}

.masthead-image {
  width: 203px;
  height: 300px;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}

/* ---------- About ---------- */

.about {
  background: var(--bg-alt);
  padding: var(--space-80) var(--space-50);
}

.about h3 {
  margin-top: var(--space-40);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--tag-bg, var(--card-bg));
  color: var(--tag-fg, var(--ink));
  font-size: 16px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.tag-outline {
  background: #fff;
  border: 1px solid var(--tag-border, #d8d8dc);
  font-size: 12px;
  font-weight: 400;
  padding: 5px 11px;
}

/* ---------- Case studies ---------- */

.case-studies {
  background: var(--bg);
  padding: var(--space-80) var(--space-50);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: var(--space-40);
}

.work-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .work-card {
    transition: none;
  }

  .work-card:hover,
  .work-card:focus-within {
    transform: none;
  }
}

.work-card a {
  display: block;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.work-card a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -3px;
}

.work-image {
  width: 100%;
  aspect-ratio: 290 / 180;
  border-radius: var(--radius-lg);
  object-fit: cover;
  display: block;
}

.work-body {
  padding-top: 24px;
}

.work-body h3 {
  font-size: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* ---------- Experience ---------- */

.experience {
  background: var(--bg-alt);
  padding: var(--space-80) var(--space-40);
}

.experience .lede {
  margin-top: 24px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.experience-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.experience-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  overflow: visible;
  margin-top: 2px;
}

.experience-card-head h3 {
  font-size: 20px;
}

.role-context {
  font-size: 14px;
  font-weight: 400;
  margin-top: 3px;
}

.role-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
}

.experience > .section-inner > .lede:last-child {
  margin-top: var(--space-40);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--bg);
  padding: var(--space-80) var(--space-30);
}

.contact h2 {
  font-size: 40px;
  color: var(--ink-contact);
  margin-top: 16px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  margin-top: 48px;
}

.contact-label {
  font-size: 14px;
  color: var(--label);
}

.contact-value {
  font-size: 20px;
  font-weight: 590;
  color: var(--ink-contact);
  margin-top: 8px;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .work-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-nav-inner {
    padding-inline: var(--space-30);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav nav {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--nav-height) - 15px);
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 12px 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: none;
    min-width: 180px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    font-size: 15px;
    padding: 10px 0;
  }

  .masthead,
  .about,
  .case-studies,
  .experience,
  .contact {
    padding-left: var(--space-30);
    padding-right: var(--space-30);
  }

  .masthead {
    padding-top: var(--space-40);
    padding-bottom: var(--space-40);
  }

  .about,
  .case-studies,
  .experience,
  .contact {
    padding-top: var(--space-60);
    padding-bottom: var(--space-60);
  }

  .masthead-inner {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .masthead-content {
    flex: 1 1 auto;
    text-align: center;
    max-width: 100%;
  }

  h2 {
    font-size: 32px;
  }

  .lede {
    font-size: 18px;
    margin-top: 24px;
  }

  .contact h2 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .masthead-image {
    width: 160px;
    height: 236px;
  }

  h2 {
    font-size: 28px;
  }

  .work-body h3 {
    font-size: 20px;
  }

  .tag {
    font-size: 14px;
    padding: 6px 12px;
  }

  .contact-grid {
    gap: 32px;
  }
}

/* ---------- Articles (homepage list) ---------- */

.articles {
  background: var(--bg);
  padding: var(--space-80) var(--space-50);
}

.article-list-home {
  margin-top: var(--space-40);
}

.article-row {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr 160px;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid #d2d2d7;
  border-bottom: 1px solid #d2d2d7;
}

.article-row + .article-row {
  border-top: 0;
}

.article-row-meta {
  font-size: 14px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-row-meta time {
  font-weight: 510;
}

.article-row-meta span {
  color: var(--label);
}

.article-row-body h3 {
  font-size: 28px;
  line-height: 1.2;
}

/* The title link covers the whole row so the image and text are clickable too. */
.article-row-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.article-row-body h3 a:focus-visible {
  outline: none;
}

.article-row:focus-within {
  outline: var(--focus-ring);
  outline-offset: 4px;
  border-radius: 4px;
}

.article-row-deck {
  font-size: 17px;
  line-height: 1.4;
  color: var(--label);
  margin-top: 10px;
}

.article-row-link {
  display: inline-block;
  font-size: 17px;
  color: #0066cc;
  margin-top: 12px;
}

.article-row:hover .article-row-link {
  text-decoration: underline;
}

.article-row-image {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 780px) {
  .articles {
    padding: var(--space-60) var(--space-30);
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-row-meta {
    flex-direction: row;
    gap: 12px;
  }

  .article-row-image {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .article-row-body h3 {
    font-size: 24px;
  }
}

/* ==========================================================================
   Case study pages (Enterprise AI Tools, etc.)
   Scoped under body.case-study so the homepage is unaffected.
   ========================================================================== */

.case-study .cs-lede {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  margin-top: 40px;
  max-width: 62ch;
}

.case-study .cs-lede a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.case-study .cs-lede a:hover {
  color: #145fc0;
}

/* ---------- Case study hero ---------- */

.cs-hero {
  background: var(--bg);
  padding: var(--space-60) var(--space-30);
}

.cs-hero-inner {
  max-width: var(--masthead-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.cs-hero-content {
  flex: 1 1 480px;
  max-width: 609px;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}

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

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

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 6px;
  color: var(--label);
}

.cs-hero-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 590;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 32px;
}

.cs-hero-deck {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 20px;
}

.cs-hero-content .tag-row {
  margin-top: 24px;
}

.cs-hero-image {
  width: 330px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 330 / 282;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
}

/* ---------- Shared case-study section rhythm ---------- */

.cs-role,
.cs-impact,
.cs-tools,
.cs-approach,
.cs-how,
.cs-retro,
.cs-result {
  padding: var(--space-80) var(--space-50);
}

.cs-role,
.cs-how {
  background: var(--bg-alt);
}

.cs-impact,
.cs-approach,
.cs-retro {
  background: var(--bg);
}

.cs-tools {
  background: var(--bg-alt);
}

/* Elevate Design System: Approach and Retrospective are fafafa in Figma,
   opposite of Enterprise AI Tools' equivalent sections, so scope by page. */
.cs-eds .cs-approach,
.cs-eds .cs-retro,
.cs-team .cs-approach,
.cs-team .cs-retro,
.cs-qb .cs-approach,
.cs-qb .cs-retro {
  background: var(--bg-alt);
}

/* Enterprise AI Tools: Contact/footer is fafafa in Figma. */
.cs-eat .contact {
  background: var(--bg-alt);
}

.case-study h2 {
  font-size: 32px;
  font-weight: 590;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cs-content-image {
  width: 100%;
  max-width: var(--content-max);
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-top: 40px;
}

/* ---------- Impact stats ---------- */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.impact-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.impact-eyebrow {
  font-size: 11px;
  font-weight: 510;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}

.impact-figure {
  font-size: 44px;
  font-weight: 590;
  color: #157a3e;
  line-height: 1.2;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}

.impact-note {
  font-size: 16px;
  font-weight: 510;
  color: #1d1d1f;
  line-height: 1.44;
  margin-top: 4px;
}

.impact-body {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.53;
  margin-top: 16px;
}

/* ---------- 5 key AI tools ---------- */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.tool-card {
  grid-column: span 1;
  background: #fff;
  border: 1px solid var(--tool-border, #d8d8dc);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.tool-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tool-card-wide .tool-head {
  flex: 0 0 auto;
  min-width: 260px;
}

.tool-name h3 {
  font-size: 20px;
  font-weight: 590;
}

.tool-theme {
  font-size: 14px;
  font-weight: 510;
  margin-top: 3px;
}

.tool-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
}

.tool-wide-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 300px;
}

.chip-row {
  margin-top: auto;
}

.tool-card .chip {
  --tag-border: var(--chip-border, #d8d8dc);
}

/* ---------- Approach ---------- */

.approach-rows {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  max-width: var(--content-max);
}

.approach-row {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #e2e2e4;
}

.approach-row:first-child {
  border-top: 1px solid #e2e2e4;
}

.approach-num {
  font-size: 22px;
  font-weight: 590;
  color: #c3231d;
  flex-shrink: 0;
  width: 44px;
}

.approach-body h3 {
  font-size: 24px;
  font-weight: 590;
}

.approach-body p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.53;
  margin-top: 6px;
  color: var(--ink);
}

.approach-label {
  display: block;
  font-size: 15px;
  font-weight: 510;
  color: #7c2d0a;
  margin-top: 6px;
}

.approach-label + p {
  margin-top: 10px;
}

/* ---------- How I did it: cashflow card ---------- */

.cashflow-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: var(--content-max);
  margin-top: 40px;
}

.cashflow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.cashflow-title {
  font-size: 16px;
  font-weight: 590;
}

.cashflow-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: var(--label);
  margin-top: 4px;
}

.cashflow-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--label);
  margin-top: 12px;
  max-width: var(--content-max);
}

.cashflow-menu {
  display: flex;
  gap: 4px;
  padding-top: 4px;
}

.cashflow-menu span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1d1d1f;
  display: block;
}

.cashflow-summary {
  margin-top: 24px;
}

.cashflow-total-label {
  font-size: 12px;
  color: var(--label);
}

.cashflow-total-value {
  font-size: 26px;
  font-weight: 700;
  margin-top: 8px;
}

.cashflow-delta {
  color: #35a853;
  font-size: 11px;
  font-weight: 590;
}

.cashflow-delta-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(53, 168, 83, 0.2);
  color: #35a853;
  font-size: 10px;
  font-weight: 590;
}

.cashflow-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 90px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e8e8ea;
}

.cashflow-bar-group {
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 100%;
  position: relative;
}

.cashflow-bar-group em {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  text-align: center;
  font-style: normal;
  font-size: 10px;
  color: var(--label);
}

.cashflow-bar-group.is-current em {
  color: var(--ink);
}

.bar {
  display: block;
  width: 16px;
  border-radius: 2px 2px 0 0;
  height: var(--h, 40%);
}

.bar-in {
  background: #a99ad5;
}

.bar-out {
  background: #f4aeae;
}

.is-current .bar-in {
  background: #2e0a8c;
}

.is-current .bar-out {
  background: #c93e44;
}

.cashflow-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #e8e8ea;
  font-size: 12px;
}

.cashflow-period {
  font-size: 12px;
  font-weight: 590;
  padding-right: 16px;
  border-right: 1px solid #e8e8ea;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 590;
}

.legend-item small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--label);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

.swatch-in {
  background: #2e0a8c;
}

.swatch-out {
  background: #c93e44;
}

.legend-pill {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 590;
}

.pill-in {
  background: #e7f4fd;
  color: #2a31d8;
}

.pill-out {
  background: #fce0e2;
  color: #d0343f;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .impact-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-wide {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-card-wide .tool-head {
    min-width: 0;
  }

  .tool-wide-body {
    flex: 1 1 auto;
  }
}

@media (max-width: 780px) {
  .cs-hero {
    padding-left: var(--space-30);
    padding-right: var(--space-30);
    padding-top: var(--space-40);
    padding-bottom: var(--space-40);
  }

  .cs-hero-inner {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .cs-hero-content {
    flex: 1 1 auto;
    text-align: left;
    max-width: 100%;
  }

  .case-study h2 {
    font-size: 28px;
  }

  .cs-role,
  .cs-impact,
  .cs-tools,
  .cs-approach,
  .cs-how,
  .cs-retro {
    padding: var(--space-60) var(--space-30);
  }

  .cashflow-legend {
    gap: 12px;
  }

  .cashflow-period {
    border-right: none;
    padding-right: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .impact-figure {
    font-size: 36px;
  }

  .approach-row {
    gap: 16px;
  }

  .approach-num {
    width: 32px;
  }

  .cashflow-chart {
    gap: 8px;
  }

  .bar {
    width: 10px;
  }
}

/* ==========================================================================
   Elevate Design System case study — additions on top of the shared
   case-study rules already in this file.
   ========================================================================== */

.cs-result {
  background: var(--bg);
}

.cs-praise-intro {
  margin-top: 40px;
}

/* ---------- Impact: leadership scale + NAB impact ---------- */

.impact-second-heading {
  margin-top: 80px;
}

.scale-card {
  background: var(--scale-bg);
  border: 1px solid #d8d8dc;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.scale-tag {
  align-self: flex-end;
  font-size: 11px;
  font-weight: 700;
  color: var(--scale-fg);
}

.scale-figure {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--scale-fg);
  margin-top: auto;
}

.scale-figure-sm {
  font-size: 34px;
}

.scale-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--scale-fg);
  margin-top: 4px;
}

.scale-card-tall .scale-label,
.scale-card-wide .scale-label {
  font-size: 16px;
}

.scale-right .scale-label {
  font-size: 15px;
}

.scale-grid {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.scale-card-tall {
  flex: 1 1 0;
}

.scale-right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scale-right-top {
  display: flex;
  gap: 16px;
}

.scale-right-top .scale-card {
  flex: 1 1 0;
}

.scale-card-wide {
  width: 100%;
}

.nab-impact-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.nab-impact-row {
  display: flex;
  gap: 16px;
}

.nab-impact-row .scale-card {
  flex: 1 1 0;
}

/* ---------- Approach: rows with a side image ---------- */

.approach-rows-media {
  margin-top: 40px;
}

.approach-row-media {
  align-items: flex-start;
}

.approach-row-media .approach-body {
  flex: 1 1 auto;
}

.approach-thumb {
  width: 332px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 332 / 166;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
}

.approach-thumb-square {
  aspect-ratio: 332 / 256;
  border-radius: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .scale-grid {
    flex-direction: column;
  }

  .scale-right-top,
  .nab-impact-row {
    flex-direction: column;
  }

  .approach-row-media {
    flex-wrap: wrap;
  }

  .approach-thumb {
    width: 100%;
    order: 3;
    margin-left: 72px;
  }
}

@media (max-width: 780px) {
  .impact-second-heading {
    margin-top: 60px;
  }
}

@media (max-width: 480px) {
  .scale-figure {
    font-size: 40px;
  }

  .scale-figure-sm {
    font-size: 28px;
  }

  .approach-thumb {
    margin-left: 0;
  }
}


/* ==========================================================================
   Elevate Team case study — additions
   ========================================================================== */

.cs-hero-image.w-423 {
  width: 423px;
  aspect-ratio: 423 / 282;
}

/* ---------- Impact: two-tier stats ---------- */

.tier-headline-row {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.tier-headline {
  flex: 1 1 300px;
  background: var(--tier-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-eyebrow {
  font-size: 12px;
  font-weight: 590;
  color: var(--tier-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-figure {
  font-size: 52px;
  font-weight: 700;
  color: var(--tier-fg);
  line-height: 1.1;
}

.tier-sublabel {
  font-size: 15px;
  font-weight: 510;
  color: var(--tier-fg);
}

.tier-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--tier-fg);
  line-height: 1.4;
  max-width: 34ch;
}

.tier-support-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tier-support {
  flex: 1 1 140px;
  background: var(--tier-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tier-figure-sm {
  font-size: 20px;
  font-weight: 700;
  color: var(--tier-fg);
}

.tier-label-sm {
  font-size: 15px;
  font-weight: 510;
  color: var(--tier-fg);
}

/* ---------- Result: From / To comparison card ---------- */

.compare-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: var(--content-max);
  margin-top: 40px;
}

.compare-headers {
  display: flex;
  gap: 24px;
  padding-bottom: 10px;
}

.compare-headers .compare-col-from {
  width: 230px;
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 590;
}

.compare-headers .compare-col-to {
  flex: 1 1 auto;
  font-size: 26px;
  font-weight: 590;
}

.compare-row {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid #d8d8dc;
}

.compare-row:first-of-type {
  border-top: none;
}

.compare-left {
  width: 230px;
  flex-shrink: 0;
}

.compare-from {
  display: block;
  font-size: 21px;
  font-weight: 400;
  color: var(--label);
}

.compare-sublabel {
  display: block;
  font-size: 11px;
  font-weight: 590;
  color: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.compare-right {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.compare-to {
  font-size: 26px;
  font-weight: 590;
  color: var(--compare-fg);
}

@media (max-width: 700px) {
  .compare-row {
    flex-direction: column;
    gap: 6px;
  }

  .compare-left,
  .compare-headers .compare-col-from {
    width: 100%;
  }

  .compare-headers {
    display: none;
  }
}

/* ==========================================================================
   Quickbiz 2.0 case study — additions
   ========================================================================== */

.cs-hero-image.w-346 {
  width: 346px;
  aspect-ratio: 1 / 1;
}

/* ---------- Role: org chart ---------- */

.org-chart {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--content-max);
}

.org-node {
  background: #fff;
  border: 1px solid #e2e2e4;
  border-radius: var(--radius-lg);
  padding: 16px 16px 20px;
  width: 200px;
  text-align: center;
}

.org-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--org-fg, #000);
}

.org-icon svg {
  width: 100%;
  height: 100%;
}

.org-count {
  font-size: 26px;
  font-weight: 590;
  display: block;
}

.org-label {
  font-size: 14px;
  font-weight: 510;
  margin-top: 8px;
  display: block;
}

.org-connector {
  width: 2px;
  height: 30px;
  background: #d8d8dc;
}

.org-children {
  display: flex;
  gap: 24px;
  position: relative;
  padding-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.org-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15.5%;
  right: 15.5%;
  height: 2px;
  background: #d8d8dc;
}

.org-children .org-node {
  width: 220px;
  position: relative;
}

.org-children .org-node::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  width: 2px;
  height: 30px;
  background: #d8d8dc;
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .org-children {
    flex-direction: column;
    align-items: center;
    padding-top: 0;
  }

  .org-children::before,
  .org-children .org-node::before {
    display: none;
  }

  .org-children .org-node {
    margin-top: 16px;
  }
}

/* ---------- Impact: three-column band ---------- */

.qb-band {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.qb-band-col {
  flex: 1 1 220px;
  background: var(--band-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.qb-band-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--band-fg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.qb-band-figure {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--band-fg);
  margin-top: 24px;
  line-height: 1.2;
}

.qb-band-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--band-fg);
  margin-top: 8px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .tier-figure {
    font-size: 40px;
  }
}

/* ==========================================================================
   Article page (design-systems-ai.html)
   Built from the Figma "For review" > "Article C - Bolder" frame.
   Headings use the site font. Long-form body copy uses Inter.
   Scoped under body.article-page.
   ========================================================================== */

.article-page {
  --ar-text: #1a1a1a;
  --ar-muted: #666666;
  --ar-accent: #c2241c;
  --ar-column: 680px;
  --ar-gutter: 24px;
  --font-reading: "Inter", var(--font-sans);
  --font-mono: "Andale Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Masthead ---------- */

.ar-masthead {
  max-width: 1000px;
  margin: 72px auto 0;
  padding-inline: var(--ar-gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ar-breadcrumb ol {
  justify-content: center;
}


.ar-masthead h1 {
  margin-top: 32px;
  max-width: 820px;
  font-size: 84px;
  font-weight: 590;
  line-height: 88px;
  letter-spacing: -0.03em;
}

.ar-deck {
  margin-top: 28px;
  max-width: 720px;
  font-size: 26px;
  line-height: 34px;
  color: #333333;
}

.ar-accent {
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 36px;
  background: var(--ar-accent);
}

.ar-byline {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 590;
}

.ar-credit {
  margin-top: 6px;
  font-family: var(--font-reading);
  font-size: 14px;
  color: var(--ar-muted);
}

/* ---------- Figures ---------- */

.ar-figure {
  margin: 0;
}

.ar-figure img {
  width: 100%;
  height: auto;
}

.ar-figure-bleed {
  max-width: 1200px;
  margin-inline: auto;
}

.ar-figure-hero {
  margin-top: 64px;
}

.ar-figure-buttons {
  margin-top: 72px;
}

/* Wider than the reading column, centred on it. */
.ar-figure-wide {
  --w: min(1000px, calc(100vw - 2 * var(--ar-gutter)));
  width: var(--w);
  margin: 72px 0 48px calc((100% - var(--w)) / 2);
}

.ar-figure-wide img {
  border-radius: 20px;
}

/* ---------- Reading column ---------- */

.ar-body {
  max-width: calc(var(--ar-column) + 2 * var(--ar-gutter));
  margin-inline: auto;
  padding-inline: var(--ar-gutter);
  font-family: var(--font-reading);
  font-size: 19px;
  line-height: 31px;
  color: var(--ar-text);
}

.ar-body p + p,
.ar-body .ar-list + p {
  margin-top: 24px;
}

.ar-body h2 {
  margin-top: 88px;
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 590;
  line-height: 46px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ar-body h2 + p {
  margin-top: 20px;
}

.ar-body .ar-figure-wide + h2 {
  margin-top: 88px;
}

.ar-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.ar-body a:hover {
  color: #0066cc;
}

.ar-body code {
  font-family: var(--font-mono);
  font-size: 17px;
}

.ar-lede {
  margin-top: 72px;
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 36px;
  color: var(--ink);
}

.ar-body .ar-tldr {
  margin-top: 24px;
}

.ar-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ar-list li {
  position: relative;
  padding-left: 25px;
}

.ar-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--ar-accent);
}

.ar-body .ar-aside {
  font-style: italic;
  color: var(--ar-muted);
}

/* ---------- Pull quote ---------- */

.ar-pullquote {
  --w: min(900px, calc(100vw - 2 * var(--ar-gutter)));
  width: var(--w);
  margin: 56px 0 0 calc((100% - var(--w)) / 2);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.ar-pullquote::before,
.ar-pullquote::after {
  content: "";
  width: 48px;
  height: 3px;
  background: var(--ar-accent);
}

.ar-pullquote p {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 590;
  line-height: 50px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- 8 tips ---------- */

#tips {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.ar-tips {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ar-tip {
  margin-top: 72px;
}

.ar-tip:first-child {
  margin-top: 56px;
}

.ar-tip-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 72px;
  font-weight: 590;
  line-height: 72px;
  letter-spacing: -0.03em;
  color: var(--ar-accent);
}

.ar-tip h3 {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 590;
  line-height: 36px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ar-tip h3 + p {
  margin-top: 16px;
}

.ar-tip p + p {
  margin-top: 20px;
}

/* ---------- Closing ---------- */

.ar-body-end > h2:first-child {
  margin-top: 88px;
}

.ar-rule {
  margin: 88px 0 0;
  border: 0;
  border-top: 1px solid #e5e5e5;
}

.ar-body .ar-h2-after-rule {
  margin-top: 40px;
}

.ar-cta {
  margin-top: 48px;
  margin-bottom: 120px;
  text-align: center;
}

.ar-body .ar-cta h2 {
  margin-top: 0;
  font-size: 44px;
  line-height: 52px;
}

.ar-cta p {
  margin-top: 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .ar-masthead h1 {
    font-size: 64px;
    line-height: 68px;
  }
}

@media (max-width: 780px) {
  .article-page {
    --ar-gutter: var(--space-30);
  }

  .ar-masthead {
    margin-top: 48px;
  }

  .ar-masthead h1 {
    margin-top: 24px;
    font-size: 48px;
    line-height: 52px;
  }

  .ar-deck {
    margin-top: 20px;
    font-size: 20px;
    line-height: 28px;
  }

  .ar-figure-hero {
    margin-top: 48px;
  }

  .ar-body {
    font-size: 18px;
    line-height: 29px;
  }

  .ar-lede {
    margin-top: 48px;
    font-size: 21px;
    line-height: 32px;
  }

  .ar-body h2,
  .ar-body-end > h2:first-child {
    margin-top: 64px;
    font-size: 30px;
    line-height: 36px;
  }

  .ar-figure-wide {
    margin-top: 48px;
    margin-bottom: 32px;
  }

  .ar-figure-wide img {
    border-radius: 14px;
  }

  .ar-pullquote p {
    font-size: 28px;
    line-height: 36px;
  }

  .ar-tip-num {
    font-size: 56px;
    line-height: 56px;
  }

  .ar-tip h3 {
    font-size: 24px;
    line-height: 30px;
  }

  .ar-rule {
    margin-top: 64px;
  }

  .ar-body .ar-cta h2 {
    font-size: 34px;
    line-height: 40px;
  }

  .ar-cta {
    margin-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .article-page {
    --ar-gutter: 20px;
  }

  .ar-masthead h1 {
    font-size: 40px;
    line-height: 44px;
  }

  .ar-body h2,
  .ar-body-end > h2:first-child {
    font-size: 27px;
    line-height: 33px;
  }

  .ar-pullquote p {
    font-size: 24px;
    line-height: 32px;
  }
}

.article-page main {
  overflow-x: clip;
}
