/* =========================================================
   CharismasWork | Homepage styles
   ========================================================= */

/* ---------------------------------------------------------
   DESIGN TOKENS
   --------------------------------------------------------- */
:root {
  /* Palette */
  --plum: #3B214D;
  --plum-deep: #2A1738;
  --violet: #7047A3;
  --violet-dark: #5B3689;
  --lavender: #EEE8F4;
  --lavender-mid: #DDD1EA;
  --white: #FCFAF8;
  --charcoal: #29272D;
  --gray: #F3F2F4;
  --muted: #5C5763;
  --line: rgba(59, 33, 77, 0.12);
  --line-strong: rgba(59, 33, 77, 0.22);

  /* Type */
  --font-head: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.2vw + 0.8rem, 1.3125rem);
  --fs-h3: 1.25rem;
  --fs-h2: clamp(2rem, 3.2vw + 0.9rem, 3.125rem);
  --fs-h1: clamp(2.75rem, 3.6vw + 1.35rem, 4.75rem);
  --lh-body: 1.7;
  --measure: 62ch;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-section: clamp(4.5rem, 8vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1200px;

  /* Shape and depth */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(41, 39, 45, 0.05);
  --shadow: 0 12px 32px -18px rgba(59, 33, 77, 0.35);
  --shadow-lift: 0 22px 44px -22px rgba(59, 33, 77, 0.42);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 240ms;

  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--plum);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }

a { color: var(--violet); }

ul[role="list"],
.primary-nav__list,
.competencies,
.tags,
.site-footer__nav,
.social,
.process,
.projects,
.mock-flow { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.nowrap { white-space: nowrap; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--plum);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------
   SHARED COMPONENTS
   --------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--violet);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}

.section { padding-block: var(--space-section); }
.section--gray { background: var(--gray); }
.section--lavender { background: var(--lavender); }
.section--compact { padding-block: clamp(4rem, 7vw, 6rem); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { max-width: 18ch; }

.section-head--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: end;
}
.section-head__intro {
  color: var(--muted);
  max-width: 56ch;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: flex-end;
}

/* Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--violet);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-head);
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.btn--primary { --btn-bg: var(--violet); --btn-fg: #fff; --btn-bd: var(--violet); box-shadow: 0 8px 18px -10px rgba(112, 71, 163, 0.7); }
.btn--primary:hover { --btn-bg: var(--violet-dark); --btn-bd: var(--violet-dark); }

.btn--outline { --btn-fg: var(--plum); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bd: var(--violet); --btn-fg: var(--violet); --btn-bg: #fff; }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--plum); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: var(--lavender); --btn-bd: var(--lavender); }

.btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { --btn-bd: #fff; --btn-bg: rgba(255, 255, 255, 0.08); }

.btn__icon {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.btn-group--center { justify-content: center; }

/* Text links */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--violet);
  text-decoration: none;
  padding-block: 0.35rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
.text-link:hover { background-size: 100% 1.5px; color: var(--violet-dark); }
.text-link span { transition: transform var(--dur) var(--ease); }
.text-link:hover span { transform: translateX(3px); }
.text-link--quiet { color: var(--muted); font-weight: 600; }
.text-link--quiet:hover { color: var(--plum); }

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tags li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--plum);
  background: var(--lavender);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

/* ---------------------------------------------------------
   HEADER / NAVIGATION
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 250, 248, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(59, 33, 77, 0.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--plum);
}
.brand__tagline {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.primary-nav__list {
  display: flex;
  gap: 0.25rem;
}
.primary-nav__list a {
  display: block;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.25rem;
  height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.primary-nav__list a:hover { color: var(--violet); }
.primary-nav__list a:hover::after,
.primary-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav__list a[aria-current="page"] { color: var(--plum); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle__bar {
  width: 20px; height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4.5rem, 8vw, 7rem);
  overflow: hidden;
}
/* soft lavender wash anchored to the right edge */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 42%;
  background: linear-gradient(180deg, var(--lavender) 0%, rgba(238, 232, 244, 0) 100%);
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas:
    "head  media"
    "body  media";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.hero__head  { grid-area: head; padding-top: clamp(1rem, 3vw, 2.5rem); padding-bottom: var(--space-4); }
.hero__body  { grid-area: body; }
.hero__media { grid-area: media; }

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: var(--space-3);
}
.hero__role {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1vw + 0.85rem, 1.4rem);
  font-weight: 600;
  color: var(--violet);
  margin-bottom: var(--space-5);
}
.hero__title-cred { display: block; }
/* Role shows as two clean lines at every width; the separator stays in the markup for plain text contexts */
.hero__role-item { display: block; white-space: nowrap; }
.hero__role-sep { display: none; }

.hero__body { max-width: 56ch; }
.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--charcoal);
  font-weight: 500;
}
.hero__body > p:not(.hero__lead) { color: var(--muted); }

.hero__body .btn-group { margin-top: var(--space-5); }

.competencies {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.35rem;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--plum);
}
.competencies li:not(:last-child)::after {
  content: "•";
  color: var(--violet);
  margin-inline: 0.6rem;
}

/* Portrait composition */
.hero__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 470px;
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
  isolation: isolate;
}
.hero__portrait {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: var(--lavender);
  box-shadow: var(--shadow-lift);
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.hero__shape { position: absolute; z-index: 1; }
.hero__shape--back {
  width: 118%;
  left: -24%; top: 8%;
  fill: var(--lavender-mid);
  opacity: 0.75;
  animation: drift 18s var(--ease) infinite alternate;
}
.hero__shape--front {
  width: 34%;
  right: -9%; top: -3%;
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.5;
  opacity: 0.55;
  animation: drift 22s var(--ease) infinite alternate-reverse;
}
.hero__dots {
  position: absolute;
  z-index: 1;
  width: 120px; height: 90px;
  right: -26px; bottom: 16%;
  background-image: radial-gradient(var(--plum) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.28;
}
.hero__credential {
  position: absolute;
  z-index: 3;
  left: -2.25rem; bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  max-width: 220px;
  margin: 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__credential-label {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--plum);
}

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(8px, -10px) rotate(4deg); }
}

/* ---------------------------------------------------------
   CAPABILITIES
   --------------------------------------------------------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.capability {
  position: relative;
  padding: var(--space-5) var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.capability::before {
  content: "";
  position: absolute;
  left: var(--space-4); right: var(--space-4); top: -1px;
  height: 3px;
  background: var(--violet);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 360ms var(--ease);
}
.capability:hover {
  transform: translateY(-4px);
  border-color: var(--lavender-mid);
  box-shadow: var(--shadow);
}
.capability:hover::before { transform: scaleX(1); }

.capability__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--space-4);
  border-radius: 14px;
  background: var(--lavender);
  color: var(--violet);
}
.capability__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.capability__title { margin-bottom: var(--space-2); }
.capability p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }

/* ---------------------------------------------------------
   FEATURED WORK
   --------------------------------------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.project {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.project__body > p { color: var(--muted); font-size: 0.975rem; }

.project__meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.project__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--violet);
  padding-right: var(--space-2);
  border-right: 1px solid var(--line-strong);
}
.project__cat {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.project__title {
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.7rem);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}
.project .tags { margin-block: var(--space-4); }
.project__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

/* Media area (placeholders until real screenshots are added) */
.project__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
  text-decoration: none;
}
.project__media > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.project__media--course   { background: var(--lavender); }
.project__media--scenario { background: var(--gray); }
.project__media--flow     { background: linear-gradient(160deg, var(--lavender) 0%, var(--gray) 100%); }

/* shared mock pieces */
.mock-line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--lavender-mid);
  width: 90%;
}
.mock-line--title { height: 14px; width: 60%; background: var(--plum); opacity: 0.85; }
.mock-line--short { width: 55%; }

/* Project 01: course window */
.mock-window {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform 400ms var(--ease);
}
.project:hover .mock-window { transform: rotate(0deg); }
.mock-window__bar {
  display: flex; gap: 5px;
  padding: 9px 12px;
  background: var(--gray);
  border-bottom: 1px solid var(--line);
}
.mock-window__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--lavender-mid); }
.mock-course { display: grid; grid-template-columns: 30% 1fr; min-height: 170px; }
.mock-course__side {
  display: flex; flex-direction: column; gap: 9px;
  padding: 14px 12px;
  background: var(--white);
  border-right: 1px solid var(--line);
}
.mock-course__side b { display: block; height: 7px; border-radius: 4px; background: var(--lavender-mid); }
.mock-course__side b.is-active { background: var(--violet); width: 80%; }
.mock-course__main { display: flex; flex-direction: column; gap: 9px; padding: 16px; }
.mock-cells { display: flex; gap: 10px; margin-top: 10px; }
.mock-cells span {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0 22%, var(--violet) 24% 100%);
  opacity: 0.85;
}
.mock-cells span:nth-child(2) { background: radial-gradient(circle, #fff 0 18%, var(--plum) 20%); }
.mock-cells span:nth-child(3) { background: var(--lavender-mid); }
.mock-cells span:nth-child(4) { background: radial-gradient(circle, var(--lavender) 0 40%, var(--violet) 42%); opacity: 0.6; }


/* Project 03: scenario */
.mock-scenario {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-areas: "avatar bubble" "choices choices";
  gap: 14px 12px;
  width: 100%;
  max-width: 400px;
}
.mock-scenario__avatar {
  grid-area: avatar;
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--lavender-mid) 0 26%, transparent 27%),
              radial-gradient(ellipse at 50% 105%, var(--lavender-mid) 0 44%, transparent 45%),
              #fff;
  border: 1px solid var(--line);
}
.mock-scenario__bubble {
  grid-area: bubble;
  display: flex; flex-direction: column; gap: 9px;
  padding: 16px;
  background: #fff;
  border-radius: 4px 14px 14px 14px;
  box-shadow: var(--shadow);
}
.mock-scenario__choices { grid-area: choices; display: grid; gap: 8px; }
.mock-scenario__choices span {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.mock-scenario__choices i {
  display: grid; place-items: center;
  width: 22px; height: 22px; flex: none;
  font-style: normal; font-size: 0.7rem; font-weight: 700;
  color: var(--violet);
  border: 1.5px solid var(--lavender-mid);
  border-radius: 50%;
}
.mock-scenario__choices b { height: 7px; width: 70%; border-radius: 4px; background: var(--lavender-mid); }
.mock-scenario__choices .is-picked { border-color: var(--violet); box-shadow: 0 0 0 3px var(--lavender); }
.mock-scenario__choices .is-picked i { background: var(--violet); border-color: var(--violet); color: #fff; }

/* Project 04: workflow */
.mock-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  counter-reset: flow;
}
.mock-flow li { position: relative; display: flex; justify-content: center; }
.mock-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%; left: calc(50% + 2.6rem); right: calc(-50% + 2.6rem);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--violet) 0 6px, transparent 6px 10px);
  opacity: 0.6;
}
.mock-flow__node {
  display: grid; place-items: center;
  width: 5.2rem; height: 5.2rem;
  font-family: var(--font-head);
  font-size: 0.72rem; font-weight: 700;
  color: var(--plum);
  background: #fff;
  border: 1.5px solid var(--lavender-mid);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.mock-flow__node--end { background: var(--plum); color: #fff; border-color: var(--plum); }

/* ---------------------------------------------------------
   PROCESS
   --------------------------------------------------------- */
.approach-quote {
  margin: 0;
  padding-left: var(--space-4);
  border-left: 3px solid var(--violet);
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--plum);
  max-width: 26ch;
}

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
  position: relative;
}
/* connecting line through the step markers */
.process::before {
  content: "";
  position: absolute;
  top: 23px;
  right: calc((100% - 4 * var(--space-4)) / 5 - 24px);
  left: 24px;
  height: 2px;
  background: var(--lavender-mid);
}
.process__step { position: relative; }
.process__num {
  position: relative;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: var(--space-4);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--violet);
  background: var(--white);
  border: 2px solid var(--violet);
  border-radius: 50%;
}
.process__step:first-child .process__num { background: var(--violet); color: #fff; }
.process__title { font-size: 1.3rem; margin-bottom: var(--space-1); }
.process__step p { font-size: 0.95rem; color: var(--muted); max-width: 26ch; }

/* ---------------------------------------------------------
   ABOUT
   --------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.about__media { position: relative; max-width: 440px; }
.about__block {
  position: absolute;
  inset: 12% -8% -7% 12%;
  background: var(--plum);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.about__portrait {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
/* tighter, square crop so this reads differently from the hero */
.about__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transform: scale(1.35);
  transform-origin: 50% 30%;
}
.about__text > p { color: var(--muted); max-width: var(--measure); }
.about__text h2 { margin-bottom: var(--space-4); }
.about__text .about__lead { color: var(--charcoal); font-size: 1.1rem; }
.about__text .btn { margin-top: var(--space-4); }

/* ---------------------------------------------------------
   TOOLS
   --------------------------------------------------------- */
.tools__head { margin-bottom: var(--space-5); }
.tools__head h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.5rem); }
.tools__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}
.tools__grid li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tools__grid svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: var(--violet); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--plum);
  color: var(--lavender);
  text-align: center;
}
.cta__shape {
  position: absolute;
  width: min(720px, 90vw);
  right: -12%; top: -30%;
  fill: var(--violet);
  opacity: 0.22;
}
.cta__inner { position: relative; max-width: 820px; }
.cta__title {
  color: #fff;
  font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}
.cta__text {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 auto var(--space-6);
  color: var(--lavender);
}
.cta :focus-visible { outline-color: var(--white); }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.site-footer {
  background: var(--plum-deep);
  color: var(--lavender-mid);
  padding-top: var(--space-6);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}
.site-footer__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}
.site-footer__tagline { font-size: 0.875rem; margin: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer__nav a,
.social a {
  color: var(--lavender);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-footer__nav a { font-size: 0.95rem; padding-block: 0.4rem; display: inline-block; }
.site-footer__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; gap: 0.5rem; }
.social li[hidden] { display: none; }
.social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(238, 232, 244, 0.25);
  border-radius: 50%;
}
.social a:hover { color: #fff; border-color: #fff; }
.social svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.site-footer :focus-visible { outline-color: var(--lavender); }
.site-footer__legal { padding-bottom: var(--space-4); font-size: 0.85rem; }
.site-footer__legal p { padding-top: var(--space-4); border-top: 1px solid rgba(238, 232, 244, 0.14); }

/* ---------------------------------------------------------
   REVEAL (applied only when JS is available)
   --------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   ABOUT PAGE
   Page specific components. Shared pieces (header, footer,
   buttons, eyebrows, section backgrounds, capability cards,
   CTA) come from the global styles above.
   ========================================================= */

.section-head--wide h2 { max-width: 24ch; }

/* ---------- ABOUT HERO ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 38%;
  background: linear-gradient(180deg, var(--lavender) 0%, rgba(238, 232, 244, 0) 100%);
  z-index: -1;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.page-hero__title {
  font-size: clamp(2.25rem, 2.4vw + 1.35rem, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 17ch;
  margin-bottom: var(--space-5);
}
.page-hero__text { max-width: 60ch; }
.page-hero__text > p:not(.eyebrow):not(.page-hero__lead) { color: var(--muted); }
.page-hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  font-weight: 500;
}
.page-hero__text .btn-group { margin-top: var(--space-5); }

/* Portrait: circular crop, distinct from the homepage arch and square */
.page-hero__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  isolation: isolate;
}
.page-hero__portrait {
  position: relative;
  z-index: 2;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--lavender);
  border: 10px solid var(--white);
  box-shadow: var(--shadow-lift);
}
.page-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
}
.page-hero__blob {
  position: absolute;
  z-index: 1;
  width: 78%;
  right: -16%;
  bottom: -14%;
  fill: var(--lavender-mid);
  opacity: 0.8;
  animation: drift 20s var(--ease) infinite alternate;
}
.page-hero__ring {
  position: absolute;
  z-index: 3;
  inset: -4%;
  border: 1.5px solid var(--violet);
  border-radius: 50%;
  opacity: 0.35;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.page-hero__dot {
  position: absolute;
  z-index: 3;
  width: 44px;
  height: 44px;
  left: 6%;
  top: 8%;
  border-radius: 50%;
  background: var(--plum);
}
.page-hero__dots {
  position: absolute;
  z-index: 1;
  width: 110px;
  height: 84px;
  left: -8%;
  bottom: 4%;
  background-image: radial-gradient(var(--plum) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.28;
}

/* ---------- MY PATH ---------- */
.path {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.path__intro {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.path__intro h2 {
  font-size: clamp(1.9rem, 1.6vw + 1.2rem, 2.625rem);
  margin-bottom: var(--space-5);
}
.path-trail {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.path-trail::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 2px;
  background: var(--lavender-mid);
}
.path-trail li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.75rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--plum);
}
.path-trail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--gray);
  border: 2px solid var(--violet);
}
.path-trail li:last-child::before { background: var(--violet); }

.path__story { max-width: 64ch; }
.path__story > p { color: var(--muted); }
.path__story > .path__lead {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1vw + 0.95rem, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--plum);
  margin-bottom: var(--space-5);
}
.path__story .path-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: var(--space-5) 0;
}
.path-questions li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm);
}
.path-questions__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: -1px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--violet);
  background: var(--lavender);
  border-radius: 50%;
}

/* ---------- LEARNING PHILOSOPHY ---------- */
.capabilities--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- BEYOND THE COURSE ---------- */
.beyond {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.beyond__text h2 { max-width: 20ch; margin-bottom: var(--space-4); }
.beyond__text > p { color: var(--muted); max-width: 60ch; }
.beyond__text > .beyond__lead { color: var(--charcoal); font-size: 1.1rem; }

.beyond .beyond__map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: var(--space-5);
  background: var(--gray);
  border-radius: var(--radius-lg);
  isolation: isolate;
}
/* dashed loop joining the four areas */
.beyond__map::before {
  content: "";
  position: absolute;
  inset: 26%;
  border: 2px dashed var(--lavender-mid);
  border-radius: 50%;
  z-index: -1;
}
.beyond__node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(41, 39, 45, 0.04);
}
.beyond__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lavender);
  color: var(--violet);
}
.beyond__icon svg,
.degree__school svg,
.interests__bubble svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.beyond__icon svg { width: 22px; height: 22px; }

/* ---------- EDUCATION ---------- */
.degrees {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.degree {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.degree__mark {
  position: absolute;
  right: clamp(1rem, 2.5vw, 1.75rem);
  top: clamp(0.75rem, 2vw, 1.25rem);
  font-family: var(--font-head);
  font-size: clamp(3.25rem, 5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--lavender);
  pointer-events: none;
}
.degree__level,
.degree__field,
.degree__school { position: relative; }
.degree__level {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: var(--space-1);
}
.degree__field {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 1.75rem);
  max-width: 22ch;
  margin-bottom: var(--space-4);
}
.degree__school {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}
.degree__school svg { width: 20px; height: 20px; flex: none; color: var(--violet); }

/* ---------- WHAT I BRING ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6) clamp(1.5rem, 4vw, 3.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.skill {
  position: relative;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-strong);
}
.skill::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 44px;
  height: 3px;
  background: var(--violet);
  transition: width 360ms var(--ease);
}
.skill:hover::before { width: 100%; }
.skill__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #8C6DB6;
  margin-bottom: var(--space-3);
}
.skill__title { margin-bottom: var(--space-1); }
.skill p { color: var(--muted); font-size: 0.975rem; max-width: 36ch; }

/* ---------- BEYOND THE SCREEN ---------- */
.interests-section { padding-top: 0; }
.interests {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--lavender);
  border-radius: var(--radius-lg);
}
.interests__art {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  justify-self: center;
}
.interests__bubble {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.interests__bubble--pen    { width: 52%; height: 52%; left: 0; top: 4%; background: var(--plum); color: var(--lavender); }
.interests__bubble--camera { width: 42%; height: 42%; right: 2%; top: 26%; background: var(--white); color: var(--violet); }
.interests__bubble--book   { width: 44%; height: 44%; left: 30%; bottom: -4%; background: var(--violet); color: #fff; }
.interests__bubble svg { width: 38%; height: 38%; }
.interests__text h2 {
  font-size: clamp(1.6rem, 1.8vw + 1rem, 2.25rem);
  margin-bottom: var(--space-3);
}
.interests__text > p:not(.eyebrow) { color: var(--charcoal); max-width: 62ch; }

/* ---------- CLOSING CTA (longer heading) ---------- */
.cta--page .cta__title {
  font-size: clamp(2rem, 2.6vw + 1.2rem, 3.25rem);
  max-width: 28ch;
  margin-inline: auto;
}

/* =========================================================
   PORTFOLIO PAGE
   Page specific components. Header, footer, buttons, tags,
   eyebrows, section backgrounds, and CTA come from above.
   ========================================================= */

/* ---------- PORTFOLIO HERO (compact) ---------- */
.pf-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 5.5vw, 4.75rem) clamp(3rem, 5vw, 4.25rem);
  background: linear-gradient(180deg, var(--lavender) 0%, var(--white) 100%);
  isolation: isolate;
}
.pf-hero__shape {
  position: absolute;
  z-index: -1;
  width: min(460px, 60vw);
  right: -6%;
  top: -38%;
  fill: var(--lavender-mid);
  opacity: 0.55;
  animation: drift 20s var(--ease) infinite alternate;
}
.pf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.pf-hero__title {
  font-size: clamp(2.25rem, 2.6vw + 1.3rem, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 20ch;
  margin-bottom: var(--space-4);
}
.pf-hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--charcoal);
  max-width: 60ch;
}

.pf-index {
  padding: var(--space-4) var(--space-4) var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pf-index__label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: var(--space-2);
}
.pf-index__list { list-style: none; margin: 0; padding: 0; }
.pf-index__list li + li { border-top: 1px solid var(--line); }
.pf-index__list a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--plum);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.pf-index__list a:hover { color: var(--violet); }
.pf-index__num { flex: none; font-size: 0.8rem; font-weight: 800; color: var(--violet); }

/* ---------- FEATURED CASE STUDIES ---------- */
@media (min-width: 900px) {
  .pf-featured .section-head--split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); }
}
.pf-featured .section-head h2 { max-width: 24ch; }

.pf-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.pf-feature {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pf-feature:hover { box-shadow: var(--shadow-lift); border-color: var(--lavender-mid); }

/* Wide cards: media and text side by side, spanning both columns */
.pf-feature--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.pf-feature--wide .pf-media { aspect-ratio: auto; min-height: 380px; }
.pf-feature--reverse .pf-media { order: 2; }

.pf-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.pf-feature--wide .pf-feature__body { justify-content: center; }
.pf-feature__body > p:not(.pf-cat):not(.pf-feature__subtitle) { color: var(--muted); max-width: 58ch; }
.pf-feature__title {
  font-size: clamp(1.45rem, 1.3vw + 1rem, 2rem);
  line-height: 1.18;
  margin-bottom: var(--space-3);
}
.pf-feature__subtitle {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--violet);
  margin-top: calc(-1 * var(--space-2));
}
.pf-feature .tags { margin-block: var(--space-2) var(--space-5); }
.pf-feature__cta { margin-top: auto; }
.pf-feature--wide .pf-feature__cta { margin-top: 0; }

/* Category label */
.pf-cat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--violet);
  margin-bottom: var(--space-2);
}
.pf-cat__num {
  padding-right: 0.6rem;
  border-right: 1px solid var(--line-strong);
  letter-spacing: 0;
  color: var(--plum);
}

/* Image placeholders: restrained art plus a discreet label */
.pf-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--lavender);
}
.pf-feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.pf-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--plum) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0.08;
}
.pf-media__art {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(96px, 14vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  color: var(--violet);
  box-shadow: 0 0 0 16px rgba(252, 250, 248, 0.45), 0 0 0 34px rgba(252, 250, 248, 0.22);
  transition: transform 500ms var(--ease);
}
.pf-feature:hover .pf-media__art { transform: scale(1.04); }
.pf-media__art svg {
  width: 40%;
  height: 40%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pf-media__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--plum);
  background: rgba(252, 250, 248, 0.88);
  border-radius: var(--radius-pill);
}

/* per project variations */
.pf-media--cells::after {
  content: "";
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  right: -12%;
  top: -18%;
  border-radius: 50%;
  border: 2px solid var(--violet);
  opacity: 0.18;
  box-shadow: inset 0 0 0 28px rgba(112, 71, 163, 0.06);
}
.pf-media--paths { background: var(--gray); }
.pf-media--paths::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 60%;
  left: -18%;
  bottom: -22%;
  border-radius: 50%;
  background: var(--lavender);
}
.pf-media--plum { background: var(--plum); }
.pf-media--plum::before { background-image: radial-gradient(var(--lavender) 1.2px, transparent 1.4px); opacity: 0.12; }
.pf-media--plum::after {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  right: -14%;
  top: -24%;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.45;
}
.pf-media--plum .pf-media__art { z-index: 1; background: var(--white); color: var(--plum); box-shadow: 0 0 0 16px rgba(252, 250, 248, 0.1), 0 0 0 34px rgba(252, 250, 248, 0.05); }
.pf-media--plum .pf-media__label { z-index: 1; }
.pf-media__art,
.pf-media__label { z-index: 1; }

.pf-media--flow { background: linear-gradient(160deg, var(--lavender) 0%, var(--gray) 100%); padding: 2rem; }
.pf-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 520px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pf-flow li {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: clamp(4.25rem, 8vw, 5.5rem);
  aspect-ratio: 1;
  font-family: var(--font-head);
  font-size: clamp(0.62rem, 0.6vw + 0.4rem, 0.78rem);
  font-weight: 700;
  color: var(--plum);
  background: #fff;
  border: 1.5px solid var(--lavender-mid);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.pf-flow li:last-child { background: var(--plum); color: #fff; border-color: var(--plum); }
.pf-flow::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--violet) 0 6px, transparent 6px 10px);
  opacity: 0.55;
}

/* Real project image inside a featured card (square cover shown whole) */
.pf-media--image {
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: #2A0A1E;
}
.pf-media--image::before {
  background-image: radial-gradient(var(--lavender) 1.2px, transparent 1.4px);
  opacity: 0.08;
}
.pf-media__cover {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  max-height: 380px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  transition: transform 500ms var(--ease);
}
.pf-feature:hover .pf-media__cover { transform: scale(1.02); }

/* ---------- AREAS OF PRACTICE ---------- */
.pf-areas {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}
.pf-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  min-height: 64px;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--plum);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pf-area svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pf-area:hover { border-color: var(--violet); background: #fff; color: var(--violet); }

/* ---------- SELECTED WORK ---------- */
.pf-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.pf-sample {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pf-sample__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: var(--violet);
  overflow: hidden;
}
.pf-sample__media::after {
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.5;
}
.pf-sample__media--a { background: var(--lavender); }
.pf-sample__media--a::after { right: -14%; bottom: -30%; background: var(--lavender-mid); }
.pf-sample__media--b { background: var(--gray); }
.pf-sample__media--b::after { left: -16%; top: -30%; background: var(--lavender); opacity: 1; }
.pf-sample__media--c { background: var(--lavender); }
.pf-sample__media--c::after { left: 30%; bottom: -44%; border: 2px solid var(--violet); opacity: 0.2; }
.pf-sample__media svg {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pf-sample__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: var(--space-5) var(--space-4);
}
.pf-sample__text { color: var(--muted); font-size: 0.975rem; margin-bottom: var(--space-4); }
.pf-sample .text-link { margin-top: auto; }

/* ---------- COMPACT APPROACH ---------- */
.pf-approach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.pf-approach__text h2 { font-size: clamp(1.9rem, 1.8vw + 1.2rem, 2.75rem); margin-bottom: var(--space-4); max-width: 18ch; }
.pf-approach__text > p:not(.eyebrow) { color: var(--charcoal); max-width: 52ch; }
.pf-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  counter-reset: step;
}
.pf-steps li {
  position: relative;
  counter-increment: step;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--plum);
}
.pf-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--violet);
  background: var(--white);
  border: 1.5px solid var(--violet);
  border-radius: 50%;
}
.pf-steps li:first-child::before { background: var(--violet); color: #fff; }
.pf-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  left: 44px;
  top: 6px;
  color: var(--violet);
  font-weight: 600;
}
.pf-approach__note {
  padding-left: var(--space-4);
  border-left: 3px solid var(--violet);
  color: var(--plum);
  font-weight: 500;
  max-width: 54ch;
}

/* =========================================================
   CASE STUDY PAGES
   Reusable building blocks (cs-*). Each case study can pick
   the sections it needs; nothing here is Building Blood only
   except the tree and sort visualizations.
   ========================================================= */

.primary-nav__list a[aria-current="true"] { color: var(--plum); }
.primary-nav__list a[aria-current="true"]::after { transform: scaleX(1); }

/* ---------- HERO ---------- */
.cs-hero {
  position: relative;
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, var(--lavender) 0%, var(--white) 78%);
}
.cs-back,
.cs-next__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--violet);
  text-decoration: none;
}
.cs-back:hover { color: var(--violet-dark); text-decoration: underline; text-underline-offset: 4px; }
.cs-back span,
.cs-next__back span { transition: transform var(--dur) var(--ease); }
.cs-back:hover span,
.cs-next__back:hover span { transform: translateX(-3px); }

.cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(1rem, 3vw, 2rem);
}
.cs-hero__title {
  font-size: clamp(2.1rem, 2.2vw + 1.3rem, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: none;
  margin-bottom: var(--space-4);
  text-wrap: pretty;
}
.cs-hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 60ch;
}
.cs-hero__text .btn-group { margin-top: var(--space-5); }

.cs-hero__cover {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 420px;
}
.cs-hero__cover::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  background: var(--plum);
  border-radius: var(--radius-lg);
}
.cs-hero__cover img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-strong);
}
.cs-meta dt {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--violet);
  margin-bottom: 0.3rem;
}
.cs-meta dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.4;
  color: var(--plum);
}

/* ---------- SHARED LAYOUT PIECES ---------- */
.cs-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.cs-split h2 { max-width: 20ch; font-size: clamp(1.9rem, 2vw + 1.1rem, 2.75rem); }
.cs-prose p { color: var(--muted); max-width: var(--measure); }
.cs-prose p:first-child { color: var(--charcoal); font-size: 1.1rem; }

.cs-callout {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--plum);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cs-callout::after {
  content: "";
  position: absolute;
  width: 260px;
  aspect-ratio: 1;
  right: -80px;
  top: -110px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.35;
  z-index: 0;
}
.cs-callout__label,
.cs-callout__text { z-index: 1; }
.cs-callout__label {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender-mid);
  margin-bottom: var(--space-3);
}
.cs-callout__text {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.3vw + 0.9rem, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  max-width: 44ch;
}

.cs-caption {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--muted);
}
.cs-caption strong { color: var(--plum); font-weight: 600; }

.cs-statement {
  max-width: 46ch;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 1.4vw + 0.9rem, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--plum);
  text-align: center;
}

/* ---------- OBJECTIVES ---------- */
.cs-objectives {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.cs-objectives li {
  padding-top: var(--space-4);
  border-top: 2px solid var(--plum);
}
.cs-objectives__num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 3vw + 1rem, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--violet);
  margin-bottom: var(--space-3);
}
.cs-objectives p {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 0.6vw + 0.95rem, 1.3rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--plum);
}
.cs-objectives strong { color: var(--violet); font-weight: 800; }
.cs-objectives__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-left: var(--space-4);
  border-left: 3px solid var(--violet);
  max-width: 62ch;
  color: var(--charcoal);
}

/* ---------- ROLE CHECKLIST ---------- */
.cs-checklist,
.cs-a11y {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-5);
}
.cs-checklist li,
.cs-a11y li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--charcoal);
}
.cs-checklist li::before,
.cs-a11y li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237047A3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- TREE DIAGRAM ---------- */
.cs-tree { margin: 0; }
.cs-tree__canvas {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cs-tree__root {
  display: inline-block;
  margin: 0;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 0.8vw + 0.85rem, 1.3rem);
  font-weight: 800;
  color: #fff;
  background: var(--plum);
  border-radius: var(--radius-pill);
}
.cs-tree__branches {
  --tree-gap: clamp(1.25rem, 4vw, 3rem);
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tree-gap);
  padding-top: 3rem;
}
/* connectors: stem down from root, then a bar across to each branch */
.cs-tree__branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 1.5rem;
  background: var(--lavender-mid);
}
.cs-tree__branches::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: calc((100% - var(--tree-gap)) / 4);
  right: calc((100% - var(--tree-gap)) / 4);
  height: 2px;
  background: var(--lavender-mid);
}
.cs-tree__branch {
  position: relative;
  padding: var(--space-4);
  background: var(--lavender);
  border-radius: var(--radius);
  text-align: left;
}
.cs-tree__branch::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  left: 50%;
  width: 2px;
  height: 1.5rem;
  background: var(--lavender-mid);
}
.cs-tree__branch--lymphoid { background: var(--gray); border: 1px solid var(--line); }
.cs-tree__lineage {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--violet);
  margin-bottom: 0.25rem;
}
.cs-tree__node {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--plum);
  margin-bottom: var(--space-3);
}
.cs-tree__leaves {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.cs-tree__leaves li {
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-sm);
}
.cs-tree__branch--lymphoid .cs-tree__leaves li { border-left-color: var(--plum); }
.cs-tree__leaves span[aria-hidden] { color: var(--violet); margin-inline: 0.2rem; }

/* ---------- EXPERIENCE JOURNEY ---------- */
.cs-journey {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.cs-journey__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.cs-journey__intro h2 { max-width: 14ch; }
.cs-journey__img { margin-top: var(--space-5); border-radius: var(--radius); }
.cs-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.cs-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--lavender-mid);
}
.cs-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.cs-step:last-child { padding-bottom: 0; }
.cs-step__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--violet);
  background: var(--white);
  border: 2px solid var(--violet);
  border-radius: 50%;
  position: relative;
}
.cs-step:last-child .cs-step__num { background: var(--violet); color: #fff; }
.cs-step__title { align-self: center; margin: 0.65rem 0 0.35rem; font-size: 1.3rem; }
.cs-step p { grid-column: 2; color: var(--muted); max-width: 56ch; }

/* ---------- INTERACTION SPOTLIGHT ---------- */
.cs-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.cs-spotlight__text h2 { margin-bottom: var(--space-4); }
.cs-spotlight__text > p:not(.eyebrow) { color: var(--charcoal); max-width: 52ch; }
.cs-spotlight__key {
  padding-left: var(--space-4);
  border-left: 3px solid var(--violet);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--plum) !important;
}
.cs-sort { margin: 0; }
.cs-sort__board {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cs-sort__label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.cs-sort__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cs-sort__cards li {
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--plum);
  background: #fff;
  border: 1px solid var(--lavender-mid);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 0 var(--lavender-mid);
}
.cs-sort__bins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.cs-sort__bin {
  display: grid;
  place-items: center;
  min-height: 96px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--violet);
  border: 2px dashed var(--violet);
  border-radius: var(--radius);
  background: var(--lavender);
}
.cs-sort__bin--alt { color: var(--plum); border-color: var(--plum); background: var(--gray); }

/* ---------- FEEDBACK FLOW ---------- */
.cs-feedback { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.cs-feedback__flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.25rem, 4vw, 3rem);
}
.cs-feedback__step {
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-5);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--violet);
  border-radius: var(--radius);
}
.cs-feedback__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: calc(-1 * clamp(2.25rem, 4vw, 3rem) / 2 - 0.45em);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--violet);
}
.cs-feedback__step--result { background: var(--plum); border-color: var(--plum); border-top-color: var(--lavender-mid); }
.cs-feedback__step--result .cs-feedback__kicker { color: var(--lavender-mid); }
.cs-feedback__step--result .cs-feedback__main { color: #fff; }
.cs-feedback__kicker {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--space-2);
}
.cs-feedback__main {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 0.7vw + 0.9rem, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--plum);
  margin-bottom: var(--space-1);
}
.cs-feedback__detail { font-size: 0.925rem; color: var(--muted); }

/* ---------- VISUAL LEARNING (editorial, no imagery) ---------- */
.cs-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  isolation: isolate;
}
/* faint concentric rings as a quiet nod to cells, purely decorative */
.cs-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  aspect-ratio: 1;
  left: -150px;
  bottom: -170px;
  border-radius: 50%;
  border: 1.5px solid var(--lavender-mid);
  box-shadow: 0 0 0 36px rgba(238, 232, 244, 0.6), 0 0 0 37.5px var(--lavender-mid);
  opacity: 0.55;
}
.cs-visual__intro h2 { max-width: 16ch; margin-bottom: var(--space-4); }
.cs-visual-section { overflow: hidden; }
.cs-visual__intro > p:not(.eyebrow):not(.cs-visual__lead) { color: var(--muted); max-width: 50ch; }
.cs-visual__intro > .cs-visual__lead {
  max-width: 50ch;
  font-size: 1.1rem;
  color: var(--charcoal);
}

.cs-visual__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.cs-visual__item {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: var(--space-3);
  padding-bottom: var(--space-4);
}
.cs-visual__item:last-child { padding-bottom: 0; }
/* connecting line between marks */
.cs-visual__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--lavender-mid);
}
.cs-visual__mark {
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--plum);
  box-shadow: 0 0 0 4px var(--lavender);
}
.cs-visual__item--branch .cs-visual__mark {
  background: var(--white);
  border: 2px solid var(--violet);
}
.cs-visual__item--end .cs-visual__mark { background: var(--violet); }
.cs-visual__title {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.2rem);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.cs-visual__item p { font-size: 0.95rem; color: var(--muted); max-width: 48ch; }

/* ---------- ACCESSIBILITY ---------- */
.cs-udl {
  margin-top: var(--space-4);
  padding-left: var(--space-4);
  border-left: 3px solid var(--violet);
  color: var(--charcoal);
  max-width: 46ch;
}

/* ---------- SOLUTION ---------- */
.cs-solution {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.cs-solution__cover { margin: 0; max-width: 400px; }
.cs-solution__cover img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.cs-solution__text h2 { margin-bottom: var(--space-4); }
.cs-solution__text > p:not(.eyebrow):not(.cs-solution__built) { color: var(--charcoal); max-width: 54ch; margin-bottom: var(--space-5); }
.cs-solution__built {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- REFLECTION ---------- */
.cs-reflection { max-width: 780px; }
.cs-reflection h2 { margin-bottom: var(--space-5); }
.cs-reflection > p:not(.eyebrow):not(.cs-reflection__close) { color: var(--muted); font-size: 1.075rem; }
.cs-reflection__close {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1vw + 0.95rem, 1.55rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--plum);
}

/* ---------- NEXT PROJECT ---------- */
.cs-next {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--plum);
  color: var(--lavender);
}
.cs-next__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
}
.cs-next__back { color: var(--lavender); }
.cs-next__back:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.cs-next__project { text-align: right; }
.cs-next__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--lavender-mid);
  margin-bottom: var(--space-2);
}
.cs-next__title {
  color: #fff;
  font-size: clamp(1.75rem, 2vw + 1.1rem, 2.75rem);
  margin-bottom: 0.25rem;
}
.cs-next__cat { color: var(--lavender-mid); margin-bottom: var(--space-4); }
.cs-next :focus-visible { outline-color: var(--white); }

/* =========================================================
   CASE STUDY: RESPONDING TO CLIENT FEEDBACK (cc-*)
   Conversational motifs: message bubbles, threads, loops.
   Shares cs-* building blocks with other case studies.
   ========================================================= */

/* ---------- HERO ---------- */
.cc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  margin-top: clamp(1rem, 3vw, 2rem);
}
.cc-meta {
  margin: 0;
  display: grid;
  gap: var(--space-3);
  padding-left: var(--space-4);
  border-left: 2px solid var(--lavender-mid);
}
.cc-head--xwide h2 { max-width: 30ch; }
.cc-meta dt {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--violet);
  margin-bottom: 0.15rem;
}
.cc-meta dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.4;
  color: var(--plum);
}
.cc-hero__image {
  position: relative;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}
/* offset outline echoes a message bubble */
.cc-hero__image::before {
  content: "";
  position: absolute;
  inset: 18px -14px -14px 18px;
  border: 1.5px solid var(--violet);
  border-radius: 30px 30px 30px 8px;
  opacity: 0.35;
}
.cc-hero__image img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 28px 28px 28px 6px;
  box-shadow: var(--shadow-lift);
}

/* ---------- SHARED BUBBLE ---------- */
.cc-bubble {
  position: relative;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 1px 2px rgba(41, 39, 45, 0.04);
}
.cc-bubble p { color: var(--charcoal); line-height: 1.55; }
.cc-bubble__from {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 0.3rem;
}
.cc-bubble blockquote { margin: 0; }
.cc-bubble--large {
  max-width: 640px;
  padding: 1.4rem 1.6rem;
  border-radius: 24px 24px 24px 6px;
  box-shadow: var(--shadow);
}
.cc-bubble--large p {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1vw + 0.95rem, 1.55rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--plum);
}
.cc-note { font-size: 0.875rem; color: var(--muted) !important; margin-top: var(--space-4); }

/* ---------- SCENARIO SETUP / THREAD ---------- */
.cc-setup {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.cc-setup__text h2 { margin-bottom: var(--space-4); }
.cc-setup__text > p:not(.eyebrow) { color: var(--charcoal); max-width: 48ch; }
.cc-setup__text > .cc-setup__lead { font-size: 1.15rem; font-weight: 500; }

.cc-thread { margin: 0; }
.cc-thread__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cc-thread__list::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 50%;
  border-left: 2px dashed var(--lavender-mid);
}
.cc-thread__item {
  position: relative;
  max-width: 78%;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.cc-thread__item p { font-size: 0.925rem; line-height: 1.5; color: var(--charcoal); margin: 0; }
.cc-thread__stage {
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.25rem;
}
.cc-thread__item--system {
  align-self: center;
  text-align: center;
  background: var(--gray);
  border-radius: var(--radius-pill);
  padding-inline: 1.4rem;
}
.cc-thread__item--client { align-self: flex-start; border-radius: 16px 16px 16px 4px; }
.cc-thread__item--options,
.cc-thread__item--learner { align-self: flex-end; border-radius: 16px 16px 4px 16px; }
.cc-thread__item--options { background: var(--lavender); border-color: var(--lavender-mid); }
.cc-thread__pills { display: flex; gap: 6px; margin-top: 0.6rem; }
.cc-thread__pills i {
  display: block;
  height: 8px;
  flex: 1;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--lavender-mid);
}
.cc-thread__item--learner { background: var(--violet); border-color: var(--violet); }
.cc-thread__item--learner p,
.cc-thread__item--learner .cc-thread__stage { color: #fff; }
.cc-thread__item--feedback { background: var(--plum); border-color: var(--plum); border-radius: var(--radius); }
.cc-thread__item--feedback p { color: #fff; }
.cc-thread__item--feedback .cc-thread__stage { color: var(--lavender-mid); }

/* ---------- DECISION POINTS ---------- */
.cc-messages { list-style: none; margin: 0; padding: 0; }
.cc-message {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-strong);
}
.cc-message:last-child { border-bottom: 1px solid var(--line-strong); }
.cc-message__num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--violet);
  margin-bottom: 0.25rem;
}
.cc-message__topic {
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem);
  margin-bottom: var(--space-4);
}
.cc-message__head .cc-bubble { background: var(--lavender); border-color: var(--lavender-mid); max-width: 440px; }
.cc-message__label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.cc-message .cc-options { display: grid; gap: 0.5rem; margin-bottom: var(--space-5); }
.cc-options li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px;
}
/* neutral choice marker: no option is marked as correct */
.cc-options li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--lavender-mid);
}
.cc-message__issue {
  padding-left: var(--space-4);
  border-left: 3px solid var(--violet);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--plum);
}
.cc-message__issue span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.25rem;
}

/* ---------- INTERACTION LOOP ---------- */
.cc-loop { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.cc-loop__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem;
}
.cc-loop__steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.1rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
}
.cc-loop__steps li:nth-child(3) { background: var(--violet); border-color: var(--violet); color: #fff; }
.cc-loop__steps li:nth-child(3) .cc-loop__num { color: var(--lavender-mid); }
.cc-loop__steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -1.45rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--violet);
  font-weight: 700;
}
.cc-loop__num { font-size: 0.8rem; font-weight: 800; color: var(--violet); }
.cc-loop__return {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.7rem 1rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--violet);
  border: 2px dashed var(--lavender-mid);
  border-top: 0;
  border-radius: 0 0 18px 18px;
}
.cc-loop__return span { font-size: 1.15rem; }

/* ---------- DESIGN DECISIONS ---------- */
.cc-decisions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}
.cc-decision {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  column-gap: var(--space-4);
}
.cc-decision__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3rem;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--violet);
  background: var(--lavender);
  border-radius: 14px 14px 14px 4px;
}
.cc-decision__title { font-size: 1.25rem; margin: 0.55rem 0 var(--space-2); }
.cc-decision p { grid-column: 2; color: var(--muted); max-width: 52ch; }

/* ---------- SPOTLIGHT ---------- */
.cc-spot { margin: 0; }
.cc-spot__label {
  margin: clamp(2rem, 4vw, 2.75rem) 0 var(--space-3);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}
.cc-strategies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.cc-strategy {
  padding: var(--space-4) var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--violet);
  border-radius: 18px 18px 4px 18px;
}
.cc-strategy__title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--space-2);
}
.cc-strategy p { color: var(--charcoal); }

/* ---------- PROFESSIONAL JUDGMENT ---------- */
.cc-judgment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.cc-judgment__text h2 { margin-bottom: var(--space-4); max-width: 18ch; }
.cc-judgment__text > p:not(.eyebrow):not(.cc-judgment__lead) { color: var(--muted); max-width: 54ch; }
.cc-judgment__text > .cc-judgment__lead { color: var(--charcoal); font-size: 1.075rem; max-width: 54ch; }
.cc-ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  counter-reset: ladder;
}
.cc-ladder li {
  counter-increment: ladder;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.2rem;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 0.7vw + 0.9rem, 1.3rem);
  font-weight: 700;
  color: var(--plum);
  background: var(--lavender);
  border-radius: 16px 16px 16px 4px;
}
.cc-ladder li::before {
  content: counter(ladder, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--violet);
}
.cc-ladder li:nth-child(2) { margin-left: 1.25rem; }
.cc-ladder li:nth-child(3) { margin-left: 2.5rem; }
.cc-ladder li:nth-child(4) { margin-left: 3.75rem; }
.cc-ladder li:nth-child(5) { margin-left: 5rem; background: var(--plum); color: #fff; }
.cc-ladder li:nth-child(5)::before { color: var(--lavender-mid); }

/* ---------- TELLING VS DOING ---------- */
.cc-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.cc-compare__side {
  height: 100%;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}
.cc-compare__side--tell {
  background: var(--white);
  border: 1px solid var(--line);
}
.cc-compare__side--do {
  background: var(--violet);
  border-radius: 24px 24px 24px 6px;
  box-shadow: var(--shadow);
}
.cc-compare__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--violet);
  margin-bottom: var(--space-2);
}
.cc-compare__side--do .cc-compare__label { color: var(--lavender-mid); }
.cc-compare__example {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 0.9vw + 0.95rem, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}
.cc-compare__side--do .cc-compare__example { color: #fff; }
.cc-compare__vs {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

/* ---------- SOLUTION ---------- */
.cc-solution {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cc-solution__image { margin: 0; }
.cc-solution__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px 24px 24px 6px;
  box-shadow: var(--shadow-lift);
}
.cc-solution__text h2 { margin-bottom: var(--space-4); }
.cc-solution__text > p:not(.eyebrow):not(.cs-solution__built) { color: var(--charcoal); max-width: 54ch; }

/* ---------- PORTFOLIO CARD: wide photo cover ---------- */
.pf-media--photo { padding: 0; background: var(--plum-deep); }
.pf-media--photo::before { display: none; }
.pf-media__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 50%;
  transition: transform 600ms var(--ease);
}
.pf-feature:hover .pf-media__photo { transform: scale(1.02); }

/* =========================================================
   CASE STUDY: WORKFLOW & REPORTING FRAMEWORK (wf-*)
   Architecture motifs: nodes, connectors, system lines,
   structured fields, status indicators.
   ========================================================= */

/* ---------- HERO ---------- */
.wf-hero {
  position: relative;
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3.5rem, 6vw, 5rem);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--white);
}
.wf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(252, 250, 248, 0) 0%, var(--white) 92%);
  pointer-events: none;
}
.wf-hero > .container { position: relative; z-index: 1; }
.wf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  margin-top: clamp(1rem, 3vw, 2rem);
}
.wf-hero__grid .cs-hero__title { margin-bottom: 0; }
.wf-hero__grid .btn-group { margin-top: var(--space-4); }

.wf-arch { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.wf-arch__panel {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  background:
    linear-gradient(rgba(238, 232, 244, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(238, 232, 244, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--plum);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.wf-arch__label {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  top: 1.1rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender-mid);
}

/* ---------- REUSABLE FLOW (nodes + connectors) ---------- */
.wf-flow {
  --wf-gap: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--wf-gap);
}
.wf-flow__node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  color: var(--plum);
  background: #fff;
  border: 1.5px solid var(--lavender-mid);
  border-radius: var(--radius);
}
/* connector with arrowhead to the next node */
.wf-flow__node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--wf-gap);
  height: 2px;
  background: var(--violet);
  opacity: 0.6;
}
.wf-flow__node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  left: calc(100% + var(--wf-gap) - 7px);
  border-left: 7px solid var(--violet);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: 0.8;
}
.wf-flow__num { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: var(--violet); }
.wf-flow__label { font-size: 0.975rem; }
.wf-flow__node--end { background: var(--violet); border-color: var(--violet); color: #fff; }
.wf-flow__node--end .wf-flow__num { color: var(--lavender-mid); }

/* dark variant (hero) */
.wf-flow--dark .wf-flow__node {
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  color: #fff;
  background: rgba(252, 250, 248, 0.06);
  border-color: rgba(238, 232, 244, 0.35);
}
.wf-flow--dark .wf-flow__num { color: var(--lavender-mid); }
.wf-flow--dark .wf-flow__label { font-size: clamp(0.95rem, 0.6vw + 0.8rem, 1.1rem); }
.wf-flow--dark .wf-flow__node:not(:last-child)::after { background: var(--lavender-mid); }
.wf-flow--dark .wf-flow__node:not(:last-child)::before { border-left-color: var(--lavender-mid); }
.wf-flow--dark .wf-flow__node--human { border-style: dashed; border-color: var(--lavender-mid); }
.wf-flow--dark .wf-flow__node--end { background: var(--white); border-color: var(--white); color: var(--plum); }
.wf-flow--dark .wf-flow__node--end .wf-flow__num { color: var(--violet); }

/* lifecycle and reporting rows */
.wf-flow--lifecycle,
.wf-flow--reporting,
.wf-flow--sla { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.wf-flow--lifecycle { --wf-gap: 1.1rem; }
.wf-flow--lifecycle .wf-flow__label,
.wf-flow--reporting .wf-flow__label { font-size: 0.925rem; }
.wf-flow--reporting { --wf-gap: 1.25rem; }
.wf-flow__node--future { border-style: dashed; background: transparent; }
.wf-flow__node--future.wf-flow__node--end { background: var(--plum); border-color: var(--plum); border-style: dashed; }

/* SLA */
.wf-flow--sla .wf-flow__node { justify-content: center; min-height: 92px; }
.wf-flow__node--highlight { align-items: center; background: var(--lavender); border-color: var(--violet); }
.wf-flow__big {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--violet);
}

/* stacked (always vertical) */
.wf-flow--stack,
.wf-stack {
  grid-auto-flow: row;
  grid-auto-rows: auto;
  --wf-gap: 1.75rem;
}
.wf-flow--stack .wf-flow__node { flex-direction: row; align-items: baseline; gap: 0.75rem; }
.wf-flow--stack .wf-flow__node:not(:last-child)::after {
  top: 100%;
  left: 2rem;
  width: 2px;
  height: var(--wf-gap);
}
.wf-flow--stack .wf-flow__node:not(:last-child)::before {
  top: calc(100% + var(--wf-gap) - 7px);
  left: calc(2rem - 4px);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--violet);
  border-bottom: 0;
}

/* ---------- SHARED TWO COLUMN ---------- */
.wf-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.wf-two__text h2 { margin-bottom: var(--space-4); max-width: 18ch; font-size: clamp(1.9rem, 2vw + 1.1rem, 2.75rem); }
.wf-two__text > p:not(.eyebrow):not(.wf-note) { color: var(--muted); max-width: 54ch; }
.wf-two__text > p:not(.eyebrow):not(.wf-note):first-of-type { color: var(--charcoal); }

/* ---------- CHALLENGE ---------- */
.wf-consider { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.wf-consider__label,
.wf-schema__label,
.wf-test__label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.wf-consider__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.wf-consider__list li {
  position: relative;
  padding: 1rem 1rem 1rem 2.25rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.wf-consider__list li:last-child { grid-column: span 2; }
.wf-consider__list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.35rem;
  width: 8px;
  height: 8px;
  background: var(--violet);
  border-radius: 2px;
}

/* ---------- LAYERS ---------- */
.wf-layers { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1rem; }
.wf-layers::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--violet);
  opacity: 0.35;
}
.wf-layer {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  align-items: center;
}
.wf-layer > div {
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.wf-layer:nth-child(2) > div { background: var(--lavender); }
.wf-layer:nth-child(3) > div { background: var(--lavender-mid); border-color: var(--lavender-mid); }
.wf-layer:nth-child(4) > div { background: var(--plum); border-color: var(--plum); }
.wf-layer:nth-child(4) .wf-layer__title { color: #fff; }
.wf-layer:nth-child(4) p { color: var(--lavender); }
.wf-layer__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--violet);
  background: var(--white);
  border: 2px solid var(--violet);
  border-radius: 50%;
}
.wf-layer__title { font-size: 1.15rem; margin-bottom: 0.2rem; }
.wf-layer p { font-size: 0.95rem; color: var(--muted); }

/* ---------- EARLY CONCEPT ---------- */
.wf-concept { margin: 0; }
.wf-tag {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 0.3rem 0.8rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--lavender);
  border-radius: var(--radius-pill);
}
.wf-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.wf-stack li {
  position: relative;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--plum);
  background: var(--white);
  border: 1.5px dashed var(--lavender-mid);
  border-radius: var(--radius);
}
.wf-stack li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  height: 1.5rem;
  border-left: 2px dashed var(--violet);
  opacity: 0.5;
}

/* ---------- CONSTRAINTS EVOLUTION ---------- */
.wf-evolve {
  --wf-gap: 2rem;
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--wf-gap);
}
.wf-evolve__stage {
  position: relative;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.wf-evolve__stage:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--wf-gap) / 2 - 0.4em);
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--violet);
}
.wf-evolve__kicker {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--space-2);
}
.wf-evolve__main {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.4;
  color: var(--plum);
}
.wf-evolve__main span { color: var(--violet); }
.wf-evolve__stage:first-child .wf-evolve__main { color: var(--muted); font-weight: 600; }
.wf-evolve__stage--constraint { border-style: dashed; border-color: var(--violet); }
.wf-evolve__list { margin-top: var(--space-2); display: grid; gap: 0.3rem; }
.wf-evolve__list li { position: relative; padding-left: 1rem; font-size: 0.875rem; color: var(--muted); }
.wf-evolve__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 2px; background: var(--violet); }
.wf-evolve__stage--result { background: var(--plum); border-color: var(--plum); }
.wf-evolve__stage--result .wf-evolve__kicker { color: var(--lavender-mid); }
.wf-evolve__stage--result .wf-evolve__main { color: #fff; }

/* ---------- PROTOTYPE ---------- */
.wf-note {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-5);
  padding: 1rem 1.1rem;
  font-size: 0.925rem;
  color: var(--plum);
  background: var(--lavender);
  border-radius: var(--radius);
  max-width: 54ch;
}
.wf-note__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  border-radius: 50%;
  border: 2px solid var(--violet);
  background: radial-gradient(var(--violet) 0 2.5px, transparent 3px);
}
.wf-parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  padding: var(--space-4);
  background: var(--gray);
  border-radius: var(--radius-lg);
}
.wf-parts li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.wf-parts li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--violet);
}

/* ---------- AUTOMATION ---------- */
.wf-moves { display: grid; gap: 0.6rem; margin-top: var(--space-5); }
.wf-move {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-sm);
}
.wf-move--reverse { border-left-color: var(--plum); }
.wf-move__type {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}
.wf-move__path { font-family: var(--font-head); font-weight: 700; color: var(--plum); }
.wf-move__path span[aria-hidden] { color: var(--violet); }

/* ---------- STRUCTURED DATA ---------- */
.wf-data {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.wf-schema__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.wf-schema__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
}
.wf-schema__list li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 10px;
  border: 1.5px solid var(--violet);
  border-radius: 2px;
}
.wf-record { margin: 0; }
.wf-record__card {
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--violet);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.wf-record__badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--lavender);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}
.wf-record__title { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--plum); margin-bottom: var(--space-3); }
.wf-record__fields { margin: 0; }
.wf-record__fields div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.wf-record__fields dt {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}
.wf-record__fields dd { margin: 0; font-weight: 600; color: var(--charcoal); }
.wf-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.875rem;
  color: var(--plum);
  background: var(--lavender);
  border-radius: var(--radius-pill);
}
.wf-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }

/* ---------- HUMAN VS AUTOMATION ---------- */
.wf-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: stretch;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.wf-split__side {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}
.wf-split__side--auto {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--white);
  border: 1px solid var(--line);
}
.wf-split__side--human { background: var(--plum); }
.wf-split__label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--space-3);
}
.wf-split__side--human .wf-split__label { color: var(--lavender-mid); }
.wf-split__side ul { display: grid; gap: 0.5rem; }
.wf-split__side li {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 0.8vw + 0.95rem, 1.45rem);
  font-weight: 700;
  color: var(--plum);
}
.wf-split__side--human li { color: #fff; }
.wf-split__vs {
  align-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

/* ---------- TESTING ---------- */
.wf-test {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.wf-requests { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.wf-requests li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--plum);
  background: var(--white);
  border: 1.5px dashed var(--lavender-mid);
  border-radius: var(--radius);
}
.wf-requests__id {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
  background: var(--violet);
  border-radius: 8px;
}
.wf-test__checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wf-result {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 0.7vw + 0.95rem, 1.35rem);
  font-weight: 700;
  color: var(--plum);
  background: var(--lavender);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm);
}

/* ---------- REPORTING LEGEND ---------- */
.wf-legend { display: flex; align-items: center; gap: 0.6rem; margin-top: var(--space-4); }
.wf-legend__swatch { width: 28px; height: 16px; border: 1.5px dashed var(--violet); border-radius: 4px; }

/* ---------- SKILLS ---------- */
.wf-skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.container > .wf-skills { margin-top: clamp(2rem, 4vw, 3rem); }
.wf-skills li {
  position: relative;
  padding: 1rem 1.1rem 1rem 2.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.wf-skills li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: var(--violet);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--lavender);
}

/* ---------- NEXT (solo variant) ---------- */
.cs-next__inner--solo { justify-content: flex-start; }
.cs-next__inner--solo .cs-next__project { text-align: left; }

/* ---------- BUILDING BLOOD: wide project artwork ---------- */
.cs-hero__grid--wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
a.pf-media { text-decoration: none; }
.cs-hero__cover--wide { max-width: none; }
.cs-hero__cover--wide img { aspect-ratio: 16 / 9; object-position: 0% 50%; }
.cs-solution--wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.cs-solution__cover--wide { max-width: none; }
.cs-solution__cover--wide img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Home: real project image in a featured card */
.project__media--photo { padding: 0; background: var(--plum-deep); }
.project__media--photo > img { object-position: 0% 50%; transition: transform 600ms var(--ease); }
.project:hover .project__media--photo > img { transform: scale(1.02); }
.pf-media--bb .pf-media__photo { object-position: 0% 50%; }


/* =========================================================
   CASE STUDY: HIFI HOPS (hh-*)
   Audio motifs (waveform, tracklist, channels). Project
   accent colors are scoped to these components only.
   ========================================================= */
.hh-hero,
.hh-equation,
.hh-tracks,
.hh-channels,
.hh-loop,
.hh-progress {
  --hh-green: #8CC63F;
  --hh-green-deep: #3F6B12;
  --hh-ink: #1E1A22;
}

/* ---------- HERO (dark) ---------- */
.hh-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(circle at 85% 10%, rgba(112, 71, 163, 0.45), transparent 45%),
    radial-gradient(circle at 5% 95%, rgba(140, 198, 63, 0.14), transparent 40%),
    var(--hh-ink);
  color: var(--lavender);
}
.hh-hero .eyebrow { color: var(--hh-green); }
.hh-hero .cs-hero__title { color: #fff; }
.hh-hero .cs-hero__lead { color: var(--lavender); }
.hh-back { color: var(--lavender-mid); }
.hh-back:hover { color: #fff; }
.hh-hero :focus-visible { outline-color: var(--white); }
.hh-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(1rem, 3vw, 2rem);
}
.hh-hero__text .btn-group { margin-top: var(--space-5); }
.hh-hero__image { margin: 0; }
.hh-hero__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
/* waveform divider */
.hh-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  height: 44px;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hh-wave i {
  flex: none;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--hh-green), var(--violet));
  height: 30%;
  opacity: 0.85;
}
.hh-wave i:nth-child(3n) { height: 70%; }
.hh-wave i:nth-child(4n) { height: 50%; }
.hh-wave i:nth-child(5n) { height: 95%; }
.hh-wave i:nth-child(7n) { height: 40%; }
.hh-meta { border-top-color: rgba(238, 232, 244, 0.2); margin-top: var(--space-4); }
.hh-meta dt { color: var(--hh-green); }
.hh-meta dd { color: #fff; }

/* callout accent */
.hh-callout::after { background: var(--violet); }

/* ---------- COLLABORATION EQUATION ---------- */
.hh-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: stretch;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.hh-eq__part {
  padding: var(--space-5) var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.hh-eq__part:nth-child(3) { border-color: var(--violet); box-shadow: var(--shadow); }
.hh-eq__label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--space-3);
}
.hh-eq__part ul { display: grid; gap: 0.45rem; }
.hh-eq__part li {
  position: relative;
  padding-left: 1rem;
  font-weight: 500;
  color: var(--charcoal);
}
.hh-eq__part li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 3px;
  height: 0.8em;
  border-radius: 2px;
  background: var(--violet);
}
.hh-eq__op {
  align-self: center;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: var(--plum);
  border-radius: 50%;
}
.hh-eq__part--result { background: var(--hh-ink); border-color: var(--hh-ink); }
.hh-eq__part--result .hh-eq__label { color: var(--hh-green); }
.hh-eq__result {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 0.8vw + 0.95rem, 1.4rem);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

/* ---------- TWO COLUMN ---------- */
.hh-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hh-two--top { align-items: start; }
.hh-two__text h2 { margin-bottom: var(--space-4); max-width: 18ch; font-size: clamp(1.9rem, 2vw + 1.1rem, 2.75rem); }
.hh-two__text > p:not(.eyebrow) { color: var(--muted); max-width: 54ch; }
.hh-two__text > p:not(.eyebrow):first-of-type { color: var(--charcoal); }

/* ---------- TRACKLIST ---------- */
.hh-tracks {
  list-style: none;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--hh-ink);
  border-radius: var(--radius-lg);
}
.hh-tracks li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.25rem;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(238, 232, 244, 0.12);
}
.hh-tracks li:last-child { border-bottom: 0; }
.hh-tracks__num { font-size: 0.8rem; font-weight: 800; color: var(--hh-green); min-width: 1.75rem; }
.hh-tracks__end { color: var(--hh-green) !important; }

/* ---------- SKILL CHIPS ---------- */
.hh-skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.container > .hh-skills { margin-top: clamp(2rem, 4vw, 3rem); }
.hh-skills li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hh-skills li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 14px;
  background:
    linear-gradient(var(--violet), var(--violet)) 0 100% / 3px 45% no-repeat,
    linear-gradient(var(--violet), var(--violet)) 5px 100% / 3px 100% no-repeat,
    linear-gradient(var(--violet), var(--violet)) 10px 100% / 3px 65% no-repeat,
    linear-gradient(var(--violet), var(--violet)) 15px 100% / 3px 85% no-repeat;
}

/* ---------- CHANNELS (input > interpretation > experience) ---------- */
.hh-channels {
  --hh-gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hh-gap);
}
.hh-channel {
  position: relative;
  padding: var(--space-5) var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--lavender-mid);
  border-radius: var(--radius);
}
.hh-channel:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--hh-gap) / 2 - 0.45em);
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--violet);
}
.hh-channel--mid { border-top-color: var(--violet); box-shadow: var(--shadow); }
.hh-channel--out { background: var(--plum); border-color: var(--plum); border-top-color: var(--hh-green); }
.hh-channel__label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--space-3);
}
.hh-channel--out .hh-channel__label { color: var(--lavender-mid); }
.hh-channel ul { display: grid; gap: 0.5rem; }
.hh-channel li { font-weight: 600; color: var(--charcoal); }
.hh-channel--out li { color: #fff; }

/* ---------- STORYBOARD NOTE ---------- */
.hh-note {
  margin: 0 0 var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1.5px dashed var(--violet);
  border-radius: var(--radius);
}
.hh-note__label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--space-2);
}
.hh-note blockquote { margin: 0 0 var(--space-3); }
.hh-note blockquote p {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 0.9vw + 1rem, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--plum);
}
.hh-note figcaption { font-size: 0.95rem; color: var(--muted); }
.hh-decisions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hh-decisions li {
  padding: 0.5rem 0.9rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--lavender-mid);
  border-radius: var(--radius-pill);
}

/* ---------- BRAND TRANSLATION ---------- */
.hh-brand {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hh-brand__image { margin: 0; }
.hh-brand__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.hh-brand__text h2 { margin-bottom: var(--space-4); font-size: clamp(1.9rem, 2vw + 1.1rem, 2.6rem); }
.hh-brand__text > p:not(.eyebrow):not(.hh-brand__label) { color: var(--muted); max-width: 54ch; }
.hh-brand__label {
  margin-top: var(--space-4);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--plum);
}
.hh-brand__list { display: grid; gap: 0.35rem; margin-top: var(--space-2); }
.hh-brand__list li { position: relative; padding-left: 1.2rem; font-size: 0.95rem; color: var(--charcoal); }
.hh-brand__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }

/* ---------- INTERACTIONS ---------- */
.hh-interactions {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
}
.hh-interaction { grid-column: span 2; padding: var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.hh-interaction:nth-child(4) { grid-column: 2 / span 2; }
.hh-interaction__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-3);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--plum);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px var(--plum), inset 0 0 0 7px rgba(238, 232, 244, 0.4);
}
.hh-interaction__title { font-size: 1.15rem; margin-bottom: var(--space-2); }
.hh-interaction p { font-size: 0.95rem; color: var(--muted); }

/* ---------- PRACTICE LOOP ---------- */
.hh-loop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}
.hh-loop li {
  position: relative;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--plum);
  background: var(--lavender);
  border-radius: var(--radius-pill);
}
.hh-loop li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 1.6rem;
  top: 100%;
  margin-top: 0.1rem;
  color: var(--violet);
  font-weight: 700;
}
.hh-loop li:nth-child(3) { background: var(--violet); color: #fff; }
.hh-loop__end { background: var(--hh-ink) !important; color: #fff !important; }

/* ---------- PROGRESSION ---------- */
.hh-progress { margin-top: clamp(2rem, 4vw, 3rem); }
.hh-progress__bar {
  display: block;
  height: 8px;
  margin-bottom: var(--space-4);
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}
.hh-progress__bar i { display: block; width: 62%; height: 100%; background: linear-gradient(90deg, var(--violet), var(--plum)); border-radius: 4px; }
.hh-progress__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.hh-progress__list li {
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-4) 3rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hh-progress__list li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  width: 14px;
  height: 11px;
  border: 2px solid var(--violet);
  border-radius: 3px;
}
.hh-progress__list li::after {
  content: "";
  position: absolute;
  left: calc(1.1rem + 3px);
  top: calc(1.35rem - 7px);
  width: 8px;
  height: 8px;
  border: 2px solid var(--violet);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

/* ---------- SPOTLIGHT EXAMPLES ---------- */
.hh-examples { display: grid; gap: var(--space-5); }
.hh-example {
  --hh-gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hh-gap);
}
.hh-example__step {
  position: relative;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hh-example__step p:not(.hh-example__kicker) { color: var(--charcoal); }
.hh-example__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--hh-gap) / 2 - 0.45em);
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--violet);
}
.hh-example__step--source { border-style: dashed; border-color: var(--violet); background: var(--lavender); }
.hh-example__step--build { background: var(--plum); border-color: var(--plum); }
.hh-example__step--build p:not(.hh-example__kicker) { color: #fff; }
.hh-example__kicker {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--space-2);
}
.hh-example__step--build .hh-example__kicker { color: var(--lavender-mid); }
.hh-example__quote { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; line-height: 1.4; color: var(--plum) !important; }

/* ---------- SOLUTION ---------- */
.hh-solution { max-width: 860px; }
.hh-solution h2 { max-width: 26ch; font-size: clamp(1.9rem, 2vw + 1.1rem, 2.6rem); }
.hh-labels { margin-top: var(--space-5); }
.hh-labels li { font-size: 0.9rem; padding: 0.45rem 0.9rem; background: var(--white); border: 1px solid var(--lavender-mid); }

/* Portfolio areas: six items */
.pf-areas--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* =========================================================
   CASE STUDY: WORKFLOW & REPORTING FRAMEWORK (wff-*)
   Extends the wf-* architecture components. Accent colors
   echo the source diagrams and stay inside wff-* elements.
   ========================================================= */
.wff-lifecycle,
.wff-paths,
.wff-artifacts {
  --wf-teal: #1F6F78;
  --wf-green: #2E7D4F;
  --wf-blue: #2B5C9E;
  --wf-orange: #A8541A;
}

.wff-thesis {
  margin-top: var(--space-4);
  padding-left: var(--space-4);
  border-left: 3px solid var(--violet);
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 0.9vw + 0.95rem, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--violet-dark);
  max-width: 28ch;
}
.wf-hero__grid { align-items: end; }

/* subtle moving signal on hero connectors (disabled by reduced motion) */
.wff-live .wf-flow__node:not(:last-child)::after {
  background: linear-gradient(90deg, rgba(238, 232, 244, 0.25) 0 40%, var(--lavender) 50%, rgba(238, 232, 244, 0.25) 60% 100%) 0 0 / 300% 100%;
  animation: wff-signal 3.2s linear infinite;
  opacity: 1;
}
@keyframes wff-signal { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* ---------- REFRAME ---------- */
.wff-reframe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: stretch;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.wff-reframe p {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 0.8vw + 0.95rem, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  border-radius: var(--radius);
}
.wff-reframe p span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wff-reframe__from { color: var(--muted); background: var(--gray); border: 1px dashed var(--line-strong); }
.wff-reframe__from span { color: var(--muted); }
.wff-reframe__to { color: #fff; background: var(--plum); }
.wff-reframe__to span { color: var(--lavender-mid); }
.wff-reframe__arrow { align-self: center; font-size: 1.5rem; font-weight: 700; color: var(--violet); }
.wff-reframe--light .wff-reframe__from { background: var(--white); }

/* ---------- DISCONNECTED > CONNECTED ---------- */
.wff-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: stretch;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}
.wff-connect > .cs-caption { grid-column: 1 / -1; }
.wff-connect__side {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.wff-connect__side--before { background: var(--gray); }
.wff-connect__side--after { background: var(--lavender); }
.wff-connect__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.wff-connect__side--after .wff-connect__label { color: var(--violet); }
.wff-connect__arrow { align-self: center; font-size: 1.6rem; font-weight: 700; color: var(--violet); }
.wff-scatter { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.wff-scatter li {
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}
.wff-scatter li:nth-child(odd) { transform: translateY(6px) rotate(-2deg); }
.wff-scatter li:nth-child(3n) { transform: translateY(-4px) rotate(2deg); }
.wff-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.6rem; }
.wff-chain li { display: inline-flex; align-items: center; }
.wff-chain span {
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--plum);
  background: var(--white);
  border: 1.5px solid var(--violet);
  border-radius: var(--radius-sm);
}
.wff-chain li:not(:last-child)::after {
  content: "→";
  margin: 0 0.4rem;
  font-weight: 700;
  color: var(--violet);
}
.wff-connect__note {
  margin-top: var(--space-4);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--plum);
}

/* ---------- DIAGNOSTIC QUESTIONS ---------- */
.wff-questions {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.wff-questions li {
  padding: var(--space-4);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--violet);
  border-radius: var(--radius);
}
.wff-questions__num { display: block; margin-bottom: 0.5rem; font-size: 0.8rem; font-weight: 800; color: var(--violet); }

/* ---------- EIGHT-STAGE LIFECYCLE ---------- */
.wff-lifecycle {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.75rem;
}
/* track running through the stage numbers */
.wff-lifecycle::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 1.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--wf-teal), var(--wf-blue), var(--violet), var(--wf-orange), var(--wf-green));
  opacity: 0.5;
}
.wff-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0.1rem;
}
.wff-stage__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-3);
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
  background: var(--stage, var(--violet));
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--stage, var(--violet));
}
.wff-stage--intake { --stage: var(--wf-teal); }
.wff-stage--auto { --stage: var(--wf-blue); }
.wff-stage--work { --stage: var(--violet); }
.wff-stage--human { --stage: var(--wf-orange); }
.wff-stage--report { --stage: var(--wf-green); }
.wff-stage__title {
  font-size: 0.975rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  padding-top: 0.6rem;
  border-top: 3px solid var(--stage, var(--violet));
}
.wff-stage p { font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

/* ---------- SYSTEMS LAYERS + CYCLE ---------- */
.wff-systems { align-items: start; }
.wff-layers { margin-top: var(--space-5); }
.wff-cycle { position: relative; margin: 0; padding-right: 3.5rem; }
.wff-cycle::before {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1.5rem;
  bottom: 5.5rem;
  width: 1.75rem;
  border: 2px dashed var(--violet);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  opacity: 0.6;
}
.wff-cycle::after {
  content: "";
  position: absolute;
  right: 2.6rem;
  top: calc(1.5rem - 5px);
  border-right: 8px solid var(--violet);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 0.8;
}
.wff-cycle__return {
  margin-top: var(--space-4);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--violet-dark);
}

/* ---------- EVOLUTION (three stages) ---------- */
.wf-evolve--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wf-evolve__text { color: var(--charcoal); line-height: 1.55; }
.wf-evolve__stage--result .wf-evolve__text { color: #fff; }
.wf-evolve__stage:first-child .wf-evolve__text { color: var(--muted); }

/* ---------- PROTOTYPE ---------- */
.wff-top { align-items: start; }
.wff-parts { margin-top: var(--space-4); }
.wff-stack { margin: 0; }
.wff-stack .wf-flow--stack { --wf-gap: 1.25rem; }
.wf-flow__label small { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.wf-flow__node--end .wf-flow__label small { color: var(--lavender-mid); }
.wff-node--human { border-color: var(--wf-orange-a, #A8541A); border-left-width: 4px; }

/* ---------- BACKWARD MOVEMENT ---------- */
.wff-strip { margin: 0; }
.wff-back {
  position: relative;
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem 0.9rem 1.1rem;
  background: var(--lavender);
  border-radius: var(--radius);
}
.wff-back p { font-size: 0.95rem; color: var(--plum); }
.wff-back p > span:first-child { font-weight: 800; color: var(--violet); margin-right: 0.35rem; }
.wff-back__line {
  position: absolute;
  left: 7%;
  right: 7%;
  top: -0.75rem;
  height: 0.75rem;
  border: 2px dashed var(--violet);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  opacity: 0.45;
}

/* ---------- SPLIT LISTS ---------- */
.wff-split__list li { font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.3rem); }

/* ---------- SLA ---------- */
.wff-sla { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.wff-sla .wf-flow--sla { margin-top: var(--space-3); max-width: 900px; }

/* ---------- TESTING ---------- */
.wff-test { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- DATA DESIGN ---------- */
.wff-supports { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-3); }
.wff-supports li {
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--lavender);
  border-radius: var(--radius-pill);
}
.wff-backward { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.wff-backward__dir {
  margin-bottom: var(--space-3);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--violet-dark);
}
.wff-backward__flow { --wf-gap: 1.25rem; }
.wff-backward__flow .wf-flow__label { font-size: 0.925rem; }

/* ---------- QUALITY ---------- */
.wff-quality { margin-top: clamp(2rem, 4vw, 3rem); max-width: 1000px; }
.wff-quality .wf-flow__node { align-items: center; text-align: center; }

/* ---------- REPORTING PATHS ---------- */
.wff-paths { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 1.25rem; justify-items: center; }
.wff-paths__trunk { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.wff-paths__down { font-weight: 700; color: var(--violet); }
.wff-pnode {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--plum);
  background: var(--white);
  border: 1.5px solid var(--lavender-mid);
  border-radius: var(--radius);
  text-align: center;
}
.wff-pnode small { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.wff-pnode--data { background: var(--plum); border-color: var(--plum); color: #fff; }
.wff-paths__branches {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  padding-top: 1.5rem;
}
.wff-paths__branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1.5rem;
  border: 2px solid var(--violet);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  opacity: 0.5;
}
.wff-path {
  padding: var(--space-5) var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--wf-green);
  border-radius: var(--radius);
}
.wff-path--advanced { border-top: 4px dashed var(--wf-blue); }
.wff-path__kicker {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wf-green);
  margin-bottom: var(--space-3);
}
.wff-path--advanced .wff-path__kicker { color: var(--wf-blue); }
.wff-path .wff-pnode { margin-bottom: var(--space-3); }
.wff-path ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.wff-path li { padding: 0.3rem 0.7rem; font-size: 0.875rem; font-weight: 500; color: var(--charcoal); background: var(--gray); border-radius: var(--radius-pill); }
.wff-path__text { color: var(--muted); font-size: 0.95rem; }

/* ---------- MY ROLE ---------- */
.container > .wff-contrib { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2rem, 4vw, 3rem); }
.container > .wff-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-5); }
.wff-chips li {
  padding: 0.5rem 1rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--plum);
  border-radius: var(--radius-pill);
}

/* ---------- PRINCIPLES ---------- */
.wff-principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6) var(--space-4);
}
.wff-principles li {
  position: relative;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.wff-principles__num {
  position: absolute;
  top: -0.9rem;
  left: var(--space-4);
  padding: 0.2rem 0.6rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--violet);
  border-radius: var(--radius-pill);
}
.wff-principles h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.wff-principles p { font-size: 0.95rem; color: var(--muted); }

/* ---------- ARTIFACTS (progressive disclosure) ---------- */
.wff-artifacts { display: grid; gap: var(--space-3); margin-top: clamp(2rem, 4vw, 3rem); }
.wff-artifact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.wff-artifact[open] { border-color: var(--lavender-mid); box-shadow: var(--shadow); }
.wff-artifact summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  cursor: pointer;
  list-style: none;
}
.wff-artifact summary::-webkit-details-marker { display: none; }
.wff-artifact summary:hover { background: var(--gray); }
.wff-artifact summary:focus-visible { outline-offset: -3px; }
.wff-artifact__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
  background: var(--plum);
  border-radius: 10px;
}
.wff-artifact__title {
  flex: 1;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--plum);
}
.wff-artifact__title small { display: block; font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.wff-artifact__toggle {
  flex: none;
  position: relative;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--violet);
  border-radius: 50%;
}
.wff-artifact__toggle::before,
.wff-artifact__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--violet);
  transition: transform var(--dur) var(--ease);
}
.wff-artifact__toggle::after { transform: rotate(90deg); }
.wff-artifact[open] .wff-artifact__toggle::after { transform: rotate(0deg); }
.wff-artifact__body { padding: 0 var(--space-4) var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-4); }

.wff-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}
.wff-mini li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--plum);
  background: var(--lavender);
  border-radius: var(--radius-sm);
}
.wff-mini b,
.wff-lanes b {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: #fff;
  background: var(--violet);
  border-radius: 50%;
}

.wff-lanes { display: grid; gap: 0; }
.wff-lane {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: var(--space-4);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.wff-lane:first-child { border-top: 1px solid var(--line); }
.wff-lane__role {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--plum);
  padding-left: 0.75rem;
  border-left: 4px solid var(--violet);
}
.wff-lane:nth-child(1) .wff-lane__role { border-left-color: var(--wf-teal); }
.wff-lane:nth-child(4) .wff-lane__role { border-left-color: var(--wf-orange); }
.wff-lane:nth-child(5) .wff-lane__role { border-left-color: var(--wf-blue); }
.wff-lane:nth-child(6) .wff-lane__role { border-left-color: var(--wf-green); }
.wff-lane ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wff-lane ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  font-size: 0.875rem;
  color: var(--charcoal);
  background: var(--gray);
  border-radius: var(--radius-sm);
}
.wff-lane__decision { border: 1.5px dashed var(--wf-orange); background: var(--white) !important; }

.wff-tech {
  --wf-gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--wf-gap);
}
.wff-tech__col {
  position: relative;
  padding: var(--space-3);
  background: var(--gray);
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--violet);
}
.wff-tech__col:nth-child(1),
.wff-tech__col:nth-child(2) { border-top-color: var(--wf-teal); }
.wff-tech__col:nth-child(4) { border-top-color: var(--wf-blue); }
.wff-tech__col:nth-child(6) { border-top-color: var(--wf-green); }
.wff-tech__col:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: calc(-1 * var(--wf-gap) / 2 - 0.4em);
  top: 1rem;
  font-weight: 700;
  color: var(--violet);
}
.wff-tech__head { font-family: var(--font-head); font-size: 0.85rem; font-weight: 800; color: var(--plum); margin-bottom: 0.5rem; line-height: 1.25; }
.wff-tech__col ul { display: grid; gap: 0.3rem; }
.wff-tech__col li { font-size: 0.8rem; line-height: 1.4; color: var(--charcoal); }
.wff-tech__side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.wff-tech__side p { padding: var(--space-3); font-size: 0.9rem; color: var(--charcoal); background: var(--lavender); border-radius: var(--radius-sm); }
.wff-tech__side p:last-child { border: 1.5px dashed var(--wf-blue); background: var(--white); }
.wff-tech__side b { display: block; font-family: var(--font-head); color: var(--plum); }

.wff-solution h2 { max-width: 26ch; font-size: clamp(1.9rem, 2vw + 1.1rem, 2.6rem); }
.wff-backward__flow .wf-flow__node--highlight { align-items: flex-start; }
.wff-sla .wf-flow__node--highlight .wf-flow__label { text-align: center; }

/* =========================================================
   RESUME PAGE (rs-*)
   ========================================================= */
.rs-h2-sm { font-size: clamp(1.75rem, 1.6vw + 1.15rem, 2.4rem); }

/* ---------- HERO ---------- */
.rs-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 5.5vw, 4.75rem) clamp(3rem, 5vw, 4.25rem);
  background: linear-gradient(180deg, var(--lavender) 0%, var(--white) 100%);
}
.rs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.rs-hero__title {
  font-size: clamp(2.2rem, 2.6vw + 1.3rem, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: var(--space-4);
}
.rs-hero__text > p:not(.eyebrow):not(.rs-hero__lead) { max-width: 62ch; color: var(--muted); }
.rs-hero__text > .rs-hero__lead { max-width: 62ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--charcoal); }
.rs-hero__text .btn-group { margin-top: var(--space-5); }
.rs-glance {
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--violet);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rs-glance dl { margin: 0; }
.rs-glance div { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.rs-glance div:last-child { border-bottom: 0; }
.rs-glance dt {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.2rem;
}
.rs-glance dd { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.35; color: var(--plum); }
.rs-glance dd span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; color: var(--muted); }

/* ---------- SNAPSHOT ---------- */
.rs-snap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.rs-snap__card {
  padding: var(--space-4) var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rs-snap__card h3 {
  font-size: 1.05rem;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
  border-bottom: 2px solid var(--violet);
}
.rs-snap__card ul { display: grid; gap: 0.4rem; }
.rs-snap__card li { font-size: 0.95rem; color: var(--charcoal); }

/* ---------- TIMELINE ---------- */
.rs-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.rs-timeline::before {
  content: "";
  position: absolute;
  left: calc(13rem + 9px);
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: var(--lavender-mid);
}
.rs-job {
  position: relative;
  display: grid;
  grid-template-columns: 13rem 1fr;
  column-gap: 3rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.rs-job:last-child { padding-bottom: 0; }
.rs-job::before {
  content: "";
  position: absolute;
  left: 13rem;
  top: 0.35rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--violet);
}
.rs-job:first-child::before { background: var(--violet); }
.rs-job__dates {
  padding-top: 0.2rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--violet-dark);
  text-align: right;
  padding-right: 1.25rem;
}
.rs-job__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rs-job__title { font-size: clamp(1.2rem, 0.8vw + 1rem, 1.45rem); margin-bottom: 0.3rem; }
.rs-job__unit { display: block; font-size: 0.95rem; font-weight: 600; color: var(--violet); margin-top: 0.2rem; }
.rs-job__org { font-weight: 600; color: var(--charcoal); margin-bottom: var(--space-3); }
.rs-job__loc { font-weight: 400; color: var(--muted); }
.rs-job__loc::before { content: "· "; }
.rs-job__list { display: grid; gap: 0.45rem; }
.rs-job__list li { position: relative; padding-left: 1.2rem; color: var(--muted); line-height: 1.55; }
.rs-job__list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 2px; background: var(--violet); }
.rs-job__list .rs-job__highlight { color: var(--plum); font-weight: 600; }
.rs-job__related { margin-top: var(--space-3); font-size: 0.925rem; color: var(--muted); }
.rs-job__related a { font-weight: 600; }

/* ---------- EARLIER ---------- */
.rs-earlier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-5); }
.rs-earlier li { padding: var(--space-3) 0 var(--space-4); border-top: 1px solid var(--line-strong); }
.rs-earlier__year { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; color: var(--violet); margin-bottom: 0.2rem; }
.rs-earlier h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.rs-earlier__org { font-size: 0.9rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.3rem; }
.rs-earlier li > p:last-child { font-size: 0.925rem; color: var(--muted); }

/* ---------- THROUGHLINE ---------- */
.rs-path {
  --rs-gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--rs-gap);
}
.rs-path li {
  position: relative;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rs-path li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 1.35rem;
  right: calc(-1 * var(--rs-gap) / 2 - 0.45em);
  font-weight: 700;
  color: var(--violet);
}
.rs-path__num { display: block; font-family: var(--font-head); font-size: 0.8rem; font-weight: 800; color: var(--violet); margin-bottom: 0.4rem; }
.rs-path h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.rs-path p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.rs-path__end { background: var(--plum) !important; border-color: var(--plum) !important; }
.rs-path__end h3 { color: #fff; }
.rs-path__end p { color: var(--lavender); }
.rs-path__end .rs-path__num { color: var(--lavender-mid); }

/* ---------- EDUCATION ---------- */
.rs-degree__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-3); }
.rs-degree__meta span {
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--lavender);
  border-radius: var(--radius-pill);
}

/* ---------- CERTIFICATIONS ---------- */
.rs-certs { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-4); }
.rs-cert {
  padding: var(--space-5) var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.rs-cert h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.rs-cert p:last-child { font-size: 0.925rem; color: var(--muted); }
.rs-cert__badge {
  display: inline-grid;
  place-items: center;
  min-width: 3.25rem;
  height: 3.25rem;
  padding: 0 0.6rem;
  margin-bottom: var(--space-3);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--violet);
  background: var(--lavender);
  border-radius: 12px;
}
.rs-cert--lead { background: var(--plum); border-color: var(--plum); }
.rs-cert--lead h3 { color: #fff; font-size: 1.35rem; }
.rs-cert--lead p:last-child { color: var(--lavender); }
.rs-cert--lead .rs-cert__badge { color: var(--plum); background: var(--white); }
.rs-pd {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-strong);
}
.rs-pd__title { font-size: 1rem; margin-bottom: var(--space-3); color: var(--charcoal); }
.rs-pd ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem var(--space-5); }
.rs-pd li { font-size: 0.925rem; color: var(--muted); }
.rs-pd b { display: block; font-weight: 600; color: var(--charcoal); }

/* ---------- TOOLS ---------- */
.rs-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.rs-tools > li {
  padding: var(--space-4);
  background: var(--gray);
  border-radius: var(--radius);
}
.rs-tools h3 { font-size: 1rem; margin-bottom: var(--space-3); }
.rs-tools ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rs-tools ul li {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.rs-tools__portfolio { background: var(--white) !important; border: 1.5px dashed var(--violet); }
.rs-tools__portfolio ul li { background: var(--lavender); border-color: transparent; }

/* ---------- CAPABILITY CHIPS ---------- */
.rs-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rs-chips li {
  padding: 0.6rem 1.1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--lavender-mid);
  border-radius: var(--radius-pill);
}

/* ---------- FACILITATION ---------- */
.rs-talks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.rs-talks li {
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--violet);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 1px 2px rgba(41, 39, 45, 0.05);
}
.rs-talks__meta { font-size: 0.85rem; font-weight: 600; color: var(--violet-dark); margin-bottom: 0.25rem; }
.rs-talks h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.rs-talks li > p:last-child { color: var(--muted); font-size: 0.95rem; }

/* ---------- PORTFOLIO CONNECTION ---------- */
.rs-work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.rs-work__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rs-work__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rs-work__card img,
.rs-work__art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 0% 50%; }
.rs-work__art {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  background: var(--plum);
}
.rs-work__art i {
  font-style: normal;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--plum);
  background: var(--white);
  width: 3rem;
  height: 3rem;
  font-size: 0.56rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.rs-work__art i:last-child { background: var(--violet); color: #fff; }
.rs-work__cat { padding: var(--space-3) var(--space-4) 0; font-size: 0.8rem; font-weight: 600; color: var(--violet-dark); }
.rs-work__title { padding: 0.2rem var(--space-4) var(--space-4); font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--plum); line-height: 1.3; }

/* =========================================================
   CONTACT PAGE (ct-*)
   ========================================================= */
.ct-h2 { font-size: clamp(1.75rem, 1.6vw + 1.15rem, 2.4rem); margin-bottom: var(--space-3); }

/* ---------- HERO ---------- */
.ct-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--lavender) 0%, var(--white) 100%);
  isolation: isolate;
}
.ct-hero__art {
  position: absolute;
  z-index: -1;
  right: 0;
  top: 0;
  width: min(46%, 560px);
  height: 100%;
}
.ct-hero__art svg { width: 100%; height: 100%; fill: none; stroke: var(--violet); stroke-width: 1.5; opacity: 0.28; }
.ct-dot { position: absolute; border-radius: 50%; }
.ct-dot--1 { width: 180px; height: 180px; right: 12%; top: 18%; background: var(--lavender-mid); opacity: 0.7; }
.ct-dot--2 { width: 70px; height: 70px; right: 44%; top: 58%; background: var(--violet); opacity: 0.18; }
.ct-dot--3 { width: 22px; height: 22px; right: 8%; top: 12%; background: var(--plum); }
.ct-dot--4 { width: 120px; height: 120px; right: 30%; top: 6%; border: 1.5px solid var(--violet); opacity: 0.35; }
.ct-hero__inner { max-width: calc(var(--max) + var(--gutter) * 2); }
.ct-hero__title {
  font-size: clamp(2.6rem, 4vw + 1.2rem, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: var(--space-4);
}
.ct-hero__inner > p:not(.eyebrow):not(.ct-hero__lead) { max-width: 60ch; color: var(--muted); }
.ct-hero__inner > .ct-hero__lead { max-width: 60ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--charcoal); }

/* ---------- OPTIONS + FORM ---------- */
.ct-main { padding-top: clamp(2.5rem, 5vw, 4rem); }
.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.ct-options__intro { color: var(--muted); margin-bottom: var(--space-4); }
.ct-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ct-card[hidden] { display: none; }
.ct-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--violet);
  background: var(--lavender);
}
.ct-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ct-card__title { font-size: 1.1rem; margin-bottom: 0.2rem; }
.ct-card__value { color: var(--charcoal); margin-bottom: var(--space-3); overflow-wrap: anywhere; }
.ct-note { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.ct-note__label { font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin-bottom: 0.3rem; }
.ct-note a { font-weight: 600; }

.ct-form-wrap {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--violet);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.ct-form__req { font-size: 0.9rem; color: var(--muted); margin-bottom: var(--space-4); }
.ct-form { display: grid; gap: var(--space-4); }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.ct-field { display: grid; gap: 0.4rem; }
.ct-field label { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--plum); }
.ct-req { color: var(--violet); }
.ct-optional { font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.ct-field input,
.ct-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ct-field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.ct-field input:hover,
.ct-field textarea:hover { border-color: var(--violet); }
.ct-field input:focus-visible,
.ct-field textarea:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 1px;
  border-color: var(--violet);
}
.ct-field.has-error input,
.ct-field.has-error textarea { border-color: #A3243B; border-width: 2px; }
.ct-error { min-height: 0; font-size: 0.875rem; font-weight: 600; color: #A3243B; }
.ct-error:empty { display: none; }
.ct-error:not(:empty)::before { content: "! "; font-weight: 800; }
.ct-submit { justify-self: start; min-width: 180px; }
.ct-submit:disabled { opacity: 0.6; cursor: wait; }
.ct-status { font-size: 0.95rem; font-weight: 600; }
.ct-status:empty { display: none; }
.ct-status.is-info,
.ct-status.is-error,
.ct-status.is-success { padding: 0.9rem 1rem; border-radius: var(--radius-sm); border-left: 4px solid; }
.ct-status.is-info { color: var(--plum); background: var(--lavender); border-color: var(--violet); }
.ct-status.is-error { color: #7E1C2E; background: #FBEEF0; border-color: #A3243B; }
.ct-status.is-success { color: #1F5C3A; background: #EAF5EE; border-color: #2E7D4F; }

/* ---------- INTERESTS ---------- */
.ct-interests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.ct-interests li {
  padding: var(--space-4) var(--space-4) var(--space-5);
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--violet);
}
.ct-interests h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.ct-interests p { font-size: 0.95rem; color: var(--muted); }

/* ---------- WORK + RESUME ---------- */
.ct-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.ct-work > div > p:not(.eyebrow) { color: var(--muted); max-width: 52ch; margin-bottom: var(--space-4); }
.ct-projects { border-top: 1px solid var(--line-strong); }
.ct-projects li { border-bottom: 1px solid var(--line-strong); }
.ct-projects a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0.25rem;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 0.8vw + 0.95rem, 1.35rem);
  font-weight: 700;
  color: var(--plum);
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.ct-projects a::after { content: "→"; color: var(--violet); }
.ct-projects a:hover { color: var(--violet); padding-left: 0.6rem; }
.ct-resume {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.ct-resume p { color: var(--muted); max-width: 56ch; }
.ct-resume .ct-h2 { margin-bottom: var(--space-2); }

/* ---------- CLOSING ---------- */
.ct-closing {
  padding-block: clamp(4rem, 8vw, 6rem);
  background: var(--plum);
  text-align: center;
}
.ct-closing__statement {
  max-width: 30ch;
  margin: 0 auto var(--space-5);
  font-size: clamp(1.6rem, 2vw + 1rem, 2.5rem);
  line-height: 1.25;
  color: #fff;
}
.ct-closing__name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 0.2rem; }
.ct-closing__role { color: var(--lavender-mid); }

/* =========================================================
   RESPONSIVE STYLES
   ========================================================= */

/* Large tablet and small laptop */
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
}


@media (max-width: 1080px) {
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__credential { left: -1rem; }
}

/* Tablet: collapse navigation, rebalance hero */
@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-4) var(--gutter) var(--space-5);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(59, 33, 77, 0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .primary-nav__list { flex-direction: column; gap: 0; }
  .primary-nav__list a {
    padding: 0.85rem 0.25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .primary-nav__list a::after { display: none; }
  .primary-nav__list a[aria-current="page"] { color: var(--violet); }
  .primary-nav .btn { width: 100%; min-height: 52px; }

  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    column-gap: 2.5rem;
  }

  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-6); }
  .process::before { display: none; }

  .about { grid-template-columns: 1fr 1.3fr; }
  .tools__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Small tablet and mobile: stacked layout */
@media (max-width: 760px) {
  .hero::before { width: 100%; height: 55%; top: auto; bottom: 0; background: linear-gradient(0deg, var(--lavender) 0%, rgba(238, 232, 244, 0) 100%); }

  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "media" "body";
    grid-template-rows: auto;
  }
  .hero__head { padding-top: var(--space-2); }
  .hero__title { font-size: clamp(2.125rem, 10vw, 2.75rem); }
  .hero__role { margin-bottom: var(--space-5); }
  .hero__media {
    justify-self: center;
    max-width: min(78vw, 330px);
    margin: 0 0 var(--space-6);
  }
  .hero__portrait { border-radius: 180px 180px var(--radius-lg) var(--radius-lg); }
  .hero__credential { left: -0.75rem; bottom: 1.25rem; padding: 0.7rem 0.9rem; max-width: 190px; font-size: 0.8rem; }
  .hero__dots { right: -12px; }
  .hero__body .btn-group .btn { flex: 1 1 200px; }

  .projects { grid-template-columns: 1fr; }
  .project__media { aspect-ratio: 4 / 3; }

  /* Vertical process timeline */
  .process { grid-template-columns: 1fr; row-gap: 0; }
  .process::before { display: none; }
  .process__step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 23px; top: 48px; bottom: 0;
    width: 2px;
    background: var(--lavender-mid);
  }
  .process__step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: var(--space-4);
    padding-bottom: var(--space-5);
  }
  .process__step:last-child { padding-bottom: 0; }
  .process__num { grid-row: span 2; margin-bottom: 0; }
  .process__title { align-self: center; margin: 0.6rem 0 0.25rem; }
  .process__step p { grid-column: 2; max-width: none; }

  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 300px; margin-inline: auto 3rem; }
  .about__block { inset: 14% -10% -8% 16%; }

  .cta { text-align: left; }
  .cta .btn-group { flex-direction: column; }
  .cta .btn { width: 100%; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; }
  .capabilities { grid-template-columns: 1fr; }
  .tools__grid { grid-template-columns: 1fr 1fr; }
  .tools__grid li { padding: 0.7rem 0.8rem; font-size: 0.85rem; gap: 0.5rem; }
  .brand__tagline { font-size: 0.7rem; }
  .competencies { font-size: 0.82rem; }
  .competencies li:not(:last-child)::after { margin-inline: 0.45rem; }
  .mock-flow__node { width: 4.2rem; height: 4.2rem; font-size: 0.62rem; }
  .mock-flow li:not(:last-child)::after { left: calc(50% + 2.1rem); right: calc(-50% + 2.1rem); }
}

/* ---------------------------------------------------------
   RESPONSIVE STYLES: ABOUT PAGE
   Same breakpoints as the homepage
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .capabilities--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path__story .path-questions { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 2.5rem; }
  .capabilities--three { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; }
  .path__intro { position: static; }
  .path-trail { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .path-trail::before { display: none; }
  .path-trail li {
    padding: 0.35rem 0.8rem 0.35rem 1.9rem;
    font-size: 0.85rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
  }
  .path-trail li::before { left: 0.65rem; width: 10px; height: 10px; margin-top: -5px; }
  .path__story .path-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beyond { grid-template-columns: 1fr; }
  .beyond .beyond__map { max-width: 560px; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page-hero::before { width: 100%; height: 45%; top: 0; bottom: auto; }
  .page-hero__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .page-hero__media {
    order: -1;
    justify-self: start;
    max-width: 200px;
    margin-left: 0.5rem;
  }
  .page-hero__portrait { border-width: 6px; }
  .page-hero__dot { width: 28px; height: 28px; }
  .page-hero__dots { display: none; }
  .page-hero__title { font-size: clamp(1.9rem, 7.4vw, 2.5rem); margin-bottom: var(--space-4); }
  .page-hero__text .btn { flex: 1 1 200px; }

  .path__story .path-questions { grid-template-columns: 1fr; }
  .degrees { grid-template-columns: 1fr; }
  .interests { grid-template-columns: 1fr; text-align: left; }
  .interests__art { max-width: 150px; justify-self: start; }
}

@media (max-width: 480px) {
  .beyond .beyond__map { grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: var(--space-4); }
  .beyond__node { padding: 1rem; font-size: 0.95rem; }
  .skills { grid-template-columns: 1fr; row-gap: var(--space-5); }
  .skill {
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    column-gap: var(--space-3);
  }
  .skill__num { grid-row: span 2; font-size: 1.75rem; margin: 0.1rem 0 0; }
  .skill p { grid-column: 2; }
}

/* ---------------------------------------------------------
   RESPONSIVE STYLES: PORTFOLIO PAGE
   Same breakpoints as Home and About
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .pf-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-feature--wide .pf-media { min-height: 320px; }
}

@media (max-width: 960px) {
  .pf-hero__grid { grid-template-columns: 1fr; align-items: start; }
  .pf-index { max-width: 560px; }
  .pf-features { grid-template-columns: 1fr; }
  .pf-feature--wide { display: flex; }
  .pf-feature--wide .pf-media { min-height: 0; aspect-ratio: 16 / 9; }
  .pf-feature--reverse .pf-media { order: 0; }
  .pf-feature .pf-media { aspect-ratio: 16 / 9; }
  .pf-feature--wide .pf-feature__cta,
  .pf-feature__cta { margin-top: 0; }
  .pf-feature .pf-media.pf-media--image { aspect-ratio: auto; }
  .pf-media__cover { width: 100%; max-width: 360px; height: auto; max-height: none; }
  .pf-samples { grid-template-columns: 1fr; }
  .pf-sample { flex-direction: row; }
  .pf-sample__media { aspect-ratio: auto; width: 34%; flex: none; }
  .pf-approach { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .pf-hero__title { font-size: clamp(1.9rem, 7.4vw, 2.5rem); }
  .pf-hero__lead { font-size: 1.05rem; }
  .pf-hero__shape { top: -18%; right: -30%; width: 80vw; }
  .pf-feature .pf-media { aspect-ratio: 4 / 3; }
  .pf-feature__cta { width: 100%; }
  .pf-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-areas li:last-child { grid-column: 1 / -1; }
  .pf-area { border-radius: var(--radius); }
  .pf-sample { flex-direction: column; }
  .pf-sample__media { width: 100%; aspect-ratio: 16 / 7; }
  .pf-steps { grid-template-columns: 1fr; gap: 0.5rem; }
  .pf-steps li { flex-direction: row; align-items: center; gap: 0.75rem; }
  .pf-steps li:not(:last-child)::after { content: none; }
}

@media (max-width: 480px) {
  .pf-areas { grid-template-columns: 1fr; }
  .pf-area { min-height: 56px; }
  .pf-cat { letter-spacing: 0.08em; font-size: 0.72rem; }
  .pf-media__label { font-size: 0.72rem; left: 0.75rem; bottom: 0.75rem; }
}

/* ---------------------------------------------------------
   RESPONSIVE STYLES: CASE STUDY PAGES
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .cs-hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 2rem; }
  .cs-split,
  .cs-journey,
  .cs-spotlight,
  .cs-visual { grid-template-columns: 1fr; }
  .cs-visual__intro h2 { max-width: 22ch; }
  .cs-split h2,
  .cs-journey__intro h2 { max-width: 22ch; }
  .cs-journey__intro { position: static; }
  .cs-objectives { grid-template-columns: 1fr; gap: var(--space-4); }
  .cs-objectives li {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    align-items: start;
  }
  .cs-objectives__num { margin: 0; }
  .cs-feedback__flow { grid-template-columns: 1fr; gap: 2.5rem; }
  .cs-feedback__step:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -2.1rem;
    transform: translateX(-50%);
  }
  .cs-solution { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
}

@media (max-width: 760px) {
  .cs-hero__grid { grid-template-columns: 1fr; }
  .cs-hero__cover { order: -1; justify-self: start; max-width: 240px; }
  .cs-hero__cover::before { inset: 10% -7% -7% 10%; }
  .cs-hero__title { font-size: clamp(1.75rem, 6.6vw, 2.25rem); }
  .cs-hero__lead { font-size: 1.05rem; }
  .cs-hero__text .btn { flex: 1 1 220px; }
  .cs-checklist,
  .cs-a11y { grid-template-columns: 1fr; }
  .cs-solution { grid-template-columns: 1fr; }
  .cs-solution__cover { max-width: 260px; }
  .cs-solution .btn { width: 100%; }
  .cs-next__inner { flex-direction: column-reverse; align-items: stretch; }
  .cs-next__project { text-align: left; }
  .cs-next .btn { width: 100%; }
}

@media (max-width: 560px) {
  .cs-tree__branches { grid-template-columns: 1fr; padding-top: 1.5rem; gap: 1.5rem; }
  .cs-tree__branches::after { display: none; }
  .cs-tree__branch::before { top: -1.5rem; }
  .cs-tree__branches::before { display: none; }
  .cs-meta { gap: var(--space-3); }
  .cs-sort__bins { grid-template-columns: 1fr 1fr; }
  .cs-visual__list { padding: var(--space-4); }
  .cs-visual::before { display: none; }
}

/* ---------------------------------------------------------
   RESPONSIVE STYLES: CLIENT FEEDBACK CASE STUDY
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .cc-loop__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1rem; }
  .cc-loop__steps li:nth-child(3)::after { content: none; }
}

@media (max-width: 960px) {
  .cc-hero__grid,
  .cc-setup,
  .cc-judgment,
  .cc-solution { grid-template-columns: 1fr; }
  .cc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; padding-top: var(--space-4); border-left: 0; border-top: 2px solid var(--lavender-mid); }
  .cc-message { grid-template-columns: 1fr; gap: var(--space-4); }
  .cc-strategies { grid-template-columns: 1fr; }
  .cc-spot__label { text-align: left; }
  .cc-solution__image { max-width: 640px; }
  .cc-multimedia .cs-visual::before { display: none; }
}

@media (max-width: 760px) {
  .cc-hero__image::before { inset: 10px -8px -8px 10px; }
  .pf-media__photo { object-position: 2% 50%; }
  .cc-hero__image img { border-radius: 18px 18px 18px 4px; }
  .cc-thread__item { max-width: 88%; }
  .cc-loop__steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .cc-loop__steps li { flex-direction: row; align-items: baseline; }
  .cc-loop__steps li:not(:last-child)::after,
  .cc-loop__steps li:nth-child(3)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.45rem;
    transform: translateX(-50%);
  }
  .cc-loop__return { border-top: 2px dashed var(--lavender-mid); border-radius: 18px; }
  .cc-decisions { grid-template-columns: 1fr; }
  .cc-ladder li:nth-child(n) { margin-left: 0; }
  .cc-compare { grid-template-columns: 1fr; justify-items: stretch; }
  .cc-compare__vs { justify-self: center; }
}

@media (max-width: 480px) {
  .cc-meta { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .cc-thread__list::before { display: none; }
  .cc-thread__item { max-width: 100%; }
}

/* ---------------------------------------------------------
   RESPONSIVE STYLES: WORKFLOW CASE STUDY + SHARED UPDATES
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .wf-consider__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-flow--lifecycle { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.25rem; }
  .wf-flow--lifecycle .wf-flow__node:nth-child(4)::after,
  .wf-flow--lifecycle .wf-flow__node:nth-child(4)::before { display: none; }
  .wf-evolve { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-evolve__stage:nth-child(2)::after { content: none; }
}

@media (max-width: 960px) {
  .wf-hero__grid,
  .wf-two,
  .wf-data,
  .wf-test { grid-template-columns: 1fr; }
  .wf-two__text h2 { max-width: 22ch; }
  .wf-flow--reporting { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.25rem; }
  .wf-flow--reporting .wf-flow__node:nth-child(3)::after,
  .wf-flow--reporting .wf-flow__node:nth-child(3)::before { display: none; }
  .wf-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-hero__grid--wide { grid-template-columns: 1fr; }
  .cs-hero__cover--wide { justify-self: stretch; max-width: 680px; }
  .cs-solution--wide { grid-template-columns: 1fr; }
  .cs-solution__cover--wide { max-width: 640px; }
}

/* All horizontal flows become vertical on small screens */
@media (max-width: 760px) {
  .wf-flow,
  .wf-flow--lifecycle,
  .wf-flow--reporting {
    --wf-gap: 1.6rem;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    row-gap: var(--wf-gap);
  }
  .wf-flow .wf-flow__node { flex-direction: row; align-items: baseline; gap: 0.75rem; text-align: left; }
  .wf-flow--dark .wf-flow__node { align-items: baseline; padding: 0.9rem 1rem; }
  .wf-flow .wf-flow__node:not(:last-child)::after,
  .wf-flow--lifecycle .wf-flow__node:nth-child(4)::after,
  .wf-flow--reporting .wf-flow__node:nth-child(3)::after {
    display: block;
    top: 100%;
    left: 2rem;
    width: 2px;
    height: var(--wf-gap);
  }
  .wf-flow .wf-flow__node:not(:last-child)::before,
  .wf-flow--lifecycle .wf-flow__node:nth-child(4)::before,
  .wf-flow--reporting .wf-flow__node:nth-child(3)::before {
    display: block;
    top: calc(100% + var(--wf-gap) - 7px);
    left: calc(2rem - 4px);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--violet);
    border-bottom: 0;
  }
  .wf-flow--dark .wf-flow__node:not(:last-child)::before { border-top-color: var(--lavender-mid); }
  .wf-flow--sla .wf-flow__node { min-height: 0; }
  .wf-flow__node--highlight { align-items: center; }
  .wf-flow__big { font-size: 1.75rem; }
  .wf-arch__label { position: static; margin-bottom: var(--space-3); }
  .wf-evolve { grid-template-columns: 1fr; gap: 2.25rem; }
  .wf-evolve__stage:not(:last-child)::after,
  .wf-evolve__stage:nth-child(2)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.9rem;
    transform: translateX(-50%);
  }
  .wf-split { grid-template-columns: 1fr; }
  .wf-split__vs { justify-self: center; }
  .wf-parts,
  .wf-schema__list,
  .wf-test__checks { grid-template-columns: 1fr; }
  .wf-layer { padding-right: 0; grid-template-columns: 44px 1fr; gap: var(--space-3); }
  .wf-layer__num { width: 44px; height: 44px; font-size: 0.85rem; }
  .wf-layers::before { left: 21px; }
  .cs-hero__cover--wide { max-width: 100%; }
}

@media (max-width: 480px) {
  .wf-consider__list,
  .wf-skills { grid-template-columns: 1fr; }
  .wf-consider__list li:last-child { grid-column: auto; }
  .wf-record__fields div { grid-template-columns: 1fr; gap: 0.2rem; }
  .wf-record__card { padding: var(--space-4); }
}

/* ---------------------------------------------------------
   RESPONSIVE STYLES: HIFI HOPS CASE STUDY
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .hh-equation { grid-template-columns: 1fr; }
  .hh-eq__op { justify-self: center; }
  .hh-progress__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-interactions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-interaction,
  .hh-interaction:nth-child(4) { grid-column: auto; }
  .hh-interaction:last-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hh-hero__grid,
  .hh-two,
  .hh-brand { grid-template-columns: 1fr; }
  .hh-two__text h2 { max-width: 22ch; }
  .hh-hero__image { max-width: 720px; }
  .hh-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-channels,
  .hh-example { grid-template-columns: 1fr; }
  .hh-channel:not(:last-child)::after,
  .hh-example__step:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: calc(-1 * var(--hh-gap) / 2 - 0.75em);
    transform: translateX(-50%);
  }
  .hh-brand__image { max-width: 680px; }
}

@media (max-width: 760px) {
  .hh-hero__image { order: -1; }
  .hh-hero__text .btn { width: 100%; }
  .hh-wave { height: 32px; gap: 4px; }
  .hh-interactions,
  .hh-progress__list { grid-template-columns: 1fr; }
  .hh-interaction:last-child { grid-column: auto; }
  .pf-areas--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-areas--six li:last-child { grid-column: auto; }
}

@media (max-width: 480px) {
  .hh-skills { grid-template-columns: 1fr; }
  .pf-areas--six { grid-template-columns: 1fr; }
  .hh-wave i:nth-child(n+25) { display: none; }
}

/* ---------------------------------------------------------
   RESPONSIVE STYLES: WORKFLOW & REPORTING FRAMEWORK
   --------------------------------------------------------- */
@media (max-width: 1180px) {
  .wff-lifecycle { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--space-5); }
  .wff-lifecycle::before { display: none; }
  .wff-tech { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wff-tech__col:nth-child(3)::after { content: none; }
}

@media (max-width: 1080px) {
  .wff-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .container > .wff-contrib { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wff-backward__flow { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.25rem; }
  .wff-backward__flow .wf-flow__node:nth-child(3)::after,
  .wff-backward__flow .wf-flow__node:nth-child(3)::before { display: none; }
}

@media (max-width: 960px) {
  .wf-evolve--three { grid-template-columns: 1fr; gap: 2.25rem; }
  .wf-evolve--three .wf-evolve__stage:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.9rem;
    transform: translateX(-50%);
  }
  .wff-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-5); }
  .wff-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wff-lane { grid-template-columns: 1fr; gap: var(--space-2); }
}

@media (max-width: 760px) {
  .wff-reframe,
  .wff-connect { grid-template-columns: 1fr; }
  .wff-reframe__arrow,
  .wff-connect__arrow { justify-self: center; transform: rotate(90deg); }
  .wff-backward__flow { grid-template-columns: 1fr; }
  .wff-backward__flow .wf-flow__node:nth-child(3)::after,
  .wff-backward__flow .wf-flow__node:nth-child(3)::before { display: block; }
  .wff-lifecycle { grid-template-columns: 1fr; row-gap: var(--space-3); }
  .wff-stage { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: var(--space-3); }
  .wff-stage__num { grid-row: span 2; margin-bottom: 0; }
  .wff-stage__title { border-top: 0; padding-top: 0.4rem; }
  .wff-stage p { grid-column: 2; font-size: 0.925rem; }
  .wff-cycle { padding-right: 3rem; }
  .wff-back__line { display: none; }
  .wff-paths__branches { grid-template-columns: 1fr; padding-top: 0; }
  .wff-paths__branches::before { display: none; }
  .wff-principles,
  .container > .wff-contrib,
  .wff-questions { grid-template-columns: 1fr; }
  .wff-tech { grid-template-columns: 1fr; gap: 1.75rem; }
  .wff-tech__col:not(:last-child)::after,
  .wff-tech__col:nth-child(3)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.5rem;
  }
  .wff-tech__side { grid-template-columns: 1fr; }
  .wff-mini { grid-template-columns: 1fr; }
  .wff-artifact summary { padding: var(--space-3); }
}

/* ---------------------------------------------------------
   RESPONSIVE STYLES: RESUME PAGE
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .rs-snap,
  .rs-tools,
  .rs-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-4); }
  .rs-path li:nth-child(3)::after { content: none; }
}

@media (max-width: 960px) {
  .rs-hero__grid { grid-template-columns: 1fr; }
  .rs-glance { max-width: 560px; }
  .rs-timeline::before { left: 9px; }
  .rs-job { grid-template-columns: 1fr; padding-left: 2.5rem; }
  .rs-job::before { left: 0; }
  .rs-job__dates { text-align: left; padding-right: 0; margin-bottom: var(--space-2); }
  .rs-certs { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .rs-hero__title { font-size: clamp(1.9rem, 7.4vw, 2.5rem); }
  .rs-hero__text .btn { flex: 1 1 200px; }
  .rs-snap,
  .rs-earlier,
  .rs-talks,
  .rs-pd ul,
  .rs-tools { grid-template-columns: 1fr; }
  .rs-path { grid-template-columns: 1fr; gap: 2rem; }
  .rs-path li:not(:last-child)::after,
  .rs-path li:nth-child(3)::after {
    content: "↓";
    top: auto;
    right: auto;
    left: 50%;
    bottom: -1.65rem;
    transform: translateX(-50%);
  }
  .rs-job__body { padding: var(--space-4); }
}

@media (max-width: 480px) {
  .rs-work { grid-template-columns: 1fr; }
  .rs-job { padding-left: 2rem; }
}

/* ---------------------------------------------------------
   RESPONSIVE STYLES: CONTACT PAGE
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .ct-interests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .ct-grid,
  .ct-work { grid-template-columns: 1fr; }
  .ct-form-wrap { max-width: 720px; }
  .ct-hero__art { width: 60%; opacity: 0.6; }
}

@media (max-width: 760px) {
  .ct-row,
  .ct-interests { grid-template-columns: 1fr; }
  .ct-submit { justify-self: stretch; width: 100%; }
  .ct-resume .btn-group { width: 100%; }
  .ct-resume .btn { flex: 1 1 200px; }
  .ct-hero__art { width: 80%; opacity: 0.45; }
  .ct-dot--1 { width: 120px; height: 120px; }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover,
  .capability:hover,
  .project:hover { transform: none; }
  .skill:hover::before { width: 44px; }
  .pf-feature:hover .pf-media__art,
  .pf-feature:hover .pf-media__cover,
  .rs-work__card:hover,
  .pf-feature:hover .pf-media__photo,
  .project:hover .project__media--photo > img { transform: none; }
}

/* 2026 portfolio refinement: real-work Selected Work cards */
.pf-samples--visual { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; align-items:stretch; }
.pf-sample--visual { display:flex; flex-direction:column; overflow:hidden; padding:0; background:var(--warm-white,#fcfaf8); border:1px solid rgba(59,33,77,.14); border-radius:20px; }
.pf-sample--visual .pf-sample__photo { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.pf-sample--visual .pf-sample__body { padding:1.35rem 1.35rem 1.5rem; display:flex; flex-direction:column; flex:1; }
.pf-sample--visual .text-link { margin-top:auto; padding-top:.75rem; }
@media (max-width:900px){.pf-samples--visual{grid-template-columns:1fr}.pf-sample--visual{max-width:720px}}

/* 2026 QA correction batch */
.pf-sample__image-link{display:block;overflow:hidden;text-decoration:none}
.pf-sample__image-link:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.pf-sample__image-link .pf-sample__photo{transition:transform var(--dur) var(--ease)}
.pf-sample__image-link:hover .pf-sample__photo{transform:scale(1.02)}
@media (min-width:900px){.pf-features{grid-template-columns:repeat(2,minmax(0,1fr))}.pf-feature{grid-column:auto;display:flex;flex-direction:column}.pf-feature .pf-media{aspect-ratio:16/9;min-height:0;order:initial}.pf-feature .pf-feature__body{justify-content:flex-start}.pf-feature .pf-feature__cta{margin-top:auto}}

/* Workflow case-study refinement */
.wff-hero-art{margin:2rem 0 0}.wff-hero-art img{display:block;width:100%;height:auto;border-radius:24px;box-shadow:0 22px 55px rgba(42,23,56,.18)}
#wff-placeholder{display:none}
@media (max-width:700px){.wff-hero-art img{border-radius:16px}}

/* Homepage About portrait: dedicated square crop, no artificial zoom. */
.about__portrait img {
  object-position: 50% 50%;
  transform: none;
}

/* Homepage About portrait: transparent cutout integrated into the existing composition. */
.about__portrait {
  background: transparent;
}
.about__portrait img {
  object-fit: contain;
  object-position: 50% 100%;
  transform: none;
}

/* Homepage About portrait: white photo card layered over the plum accent square. */
.about__media {
  padding: 0 1.25rem 1.25rem 0;
}
.about__block {
  inset: 2.25rem 0 0 2.25rem;
  background: var(--plum);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 38px rgba(42, 23, 56, 0.16);
}
.about__portrait {
  background: #fff;
  padding: 0.65rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
  border-radius: calc(var(--radius-lg) - 0.4rem);
}
@media (max-width: 700px) {
  .about__media { padding: 0 0.9rem 0.9rem 0; }
  .about__block { inset: 1.5rem 0 0 1.5rem; }
}
