/* ─── Design tokens ─── */
:root {
  --bg:        #0e0e0f;
  --surface:   #141416;
  --card:      #18181b;
  --border:    rgba(255,255,255,0.09);
  --accent:    #2ee8a5;
  --accent-dim:#1aaf7a;
  --text:      #e8e8e8;
  --muted:     #9a9a9a;
  --tag-border:rgba(255,255,255,0.12);
  --radius:    12px;
  --radius-sm: 6px;
  --nav-h:     72px;
  --max-w:     1100px;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --quote:     'Cormorant Garamond', Georgia, serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(46,232,165,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,232,165,0.045) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Utilities ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.tag {
  display: inline-flex; align-items: center;
  border: 1px solid var(--tag-border);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
.tag--muted { color: var(--muted); border-color: rgba(138,173,153,0.3); }
.pill-label {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: linear-gradient(135deg, #0a1429 0%, #0f1b3c 50%, #0d1835 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(96,165,250,0.1);
  box-shadow: 0 1px 40px rgba(96,165,250,0.04);
  display: flex; align-items: center;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav__logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo-mark { display: none; }
.nav__logo-mark span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}
/* accent the middle initial */
.nav__logo-mark span:nth-child(2) { color: var(--accent); }
.nav__links {
  display: flex; gap: 40px; list-style: none;
}
.nav__links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}

/* ─── Hero / About ─── */
.hero {
  /* top/bottom only — keep .container's horizontal padding */
  padding-top: 100px;
  padding-bottom: 80px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__left { }
.hero__badge { margin-bottom: 32px; }
.hero__headline {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero__headline em {
  font-style: italic;
  color: var(--accent);
}
.hero__bio {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 480px;
}
.hero__story-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
}
.hero__photo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -80px;
  position: relative;
}
.hero__photo-img {
  width: 460px;
  height: 560px;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  border: none;
  box-shadow: none;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%),
              linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%),
                      linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-composite: destination-in;
}

/* ─── Section common ─── */
.section { padding: 80px 0; }
#projects.section { padding: 120px 0; }

/* ─── Section divider ─── */
.divider {
  padding: 0;
  margin: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(46,232,165,0.3) 30%,
    rgba(46,232,165,0.3) 70%,
    transparent 100%
  );
}
.divider span { display: none; }
.section__header { margin-bottom: 56px; }
.section__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section__subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Projects grid ─── */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  min-height: 300px;
}
.project-card:not(:has(.project-card__visual)) {
  grid-template-columns: 1fr;
  min-height: unset;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}
.project-card:hover {
  border-color: color-mix(in srgb, var(--card-color, #2ee8a5) 40%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.project-card--wide {
  grid-column: 1 / -1;
}
.project-card--soon {
  position: relative;
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
}
.project-card--soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.project-card__soon-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-color, #fb923c);
  background: color-mix(in srgb, var(--card-color, #fb923c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color, #fb923c) 40%, transparent);
}
.project-card__status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.project-card__status-row .project-card__status {
  margin-bottom: 0;
}
.project-card__soon-badge--locked {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-color, #fb923c);
  background: color-mix(in srgb, var(--card-color, #fb923c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color, #fb923c) 40%, transparent);
}
.project-card__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-card__status {
  display: flex; align-items: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.project-card__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--accent);
}
.project-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 8px;
}
.project-card__role {
  font-size: 12px;
  color: rgba(138,173,153,0.7);
  margin-bottom: 24px;
}
.project-card__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.project-card__arrow {
  align-self: flex-end;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-color, #2ee8a5) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color, #2ee8a5) 35%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--card-color, var(--accent));
  transition: background 0.2s, transform 0.2s;
  margin-top: auto;
}
.project-card:hover .project-card__arrow {
  background: color-mix(in srgb, var(--card-color, #2ee8a5) 22%, transparent);
  transform: translateX(3px);
}
.project-card__visual {
  background: linear-gradient(135deg, rgba(46,232,165,0.06), rgba(13,43,30,0.8));
  border-left: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}
.project-card__visual img {
  border-radius: 6px;
  opacity: 0.85;
}
.visual-mockup {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.visual-mockup__bar {
  height: 8px; border-radius: 4px;
  background: rgba(46,232,165,0.15);
}
.visual-mockup__bar--short { width: 55%; }
.visual-mockup__bar--med { width: 75%; }
.visual-mockup__bar--long { width: 90%; }
/* PAIS iframe viz */
.pais-iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: none;
  background: transparent;
  display: block;
  pointer-events: none;
}
.project-card:hover .pais-iframe { pointer-events: none; }

.visual-mockup__card {
  background: rgba(46,232,165,0.07);
  border: 1px solid rgba(46,232,165,0.15);
  border-radius: 6px;
  height: 60px;
  margin-top: 8px;
}

/* ─── Horizontal Timeline Strip ─── */
.htl-strip {
  position: relative;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

/* fade edges — only shown when there is actually content scrolled off that side,
   so the active "Now" node at the start is never buried under the left shadow */
.htl-strip::before,
.htl-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.htl-strip::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.htl-strip::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.htl-strip--can-left::before  { opacity: 1; }
.htl-strip--can-right::after  { opacity: 1; }

.htl-scroll {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  /* align the start with the .container gutter (heading), bleeding off-screen on overflow */
  padding: 0 max(32px, calc((100% - var(--max-w)) / 2 + 32px));
  display: flex;
  justify-content: flex-start;
  cursor: grab;
}
.htl-scroll::-webkit-scrollbar { display: none; }
.htl-scroll--dragging { cursor: grabbing; user-select: none; }

.htl-track {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  min-width: max-content;
  margin: 0;
  gap: 0;
}

/* horizontal line through dots */
.htl-track::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255,255,255,0.12) 5%,
    rgba(255,255,255,0.12) 95%,
    transparent 100%
  );
}

/* ── Node ── */
.htl-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  width: 220px;
  flex-shrink: 0;
  padding-top: 28px;
  padding-right: 20px;
  cursor: pointer;
  outline: none;
}
.htl-node:focus-visible {
  outline: 2px solid var(--dc, #2ee8a5);
  outline-offset: 4px;
  border-radius: 4px;
}

.htl-dot {
  position: absolute;
  top: 0; left: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--dc, rgba(255,255,255,0.2));
  background: var(--bg);
  z-index: 1;
  transition: box-shadow 0.3s, background 0.3s, transform 0.3s;
}
.htl-node--active .htl-dot {
  background: var(--dc, #2ee8a5);
  box-shadow: 0 0 14px color-mix(in srgb, var(--dc, #2ee8a5) 80%, transparent);
  animation: htl-pulse 2s ease-in-out infinite;
}
.htl-node:hover .htl-dot,
.htl-node--expanded .htl-dot {
  transform: scale(1.3);
  box-shadow: 0 0 12px color-mix(in srgb, var(--dc, #2ee8a5) 60%, transparent);
}
@keyframes htl-pulse {
  0%, 100% { box-shadow: 0 0 6px color-mix(in srgb, var(--dc, #2ee8a5) 60%, transparent); }
  50%       { box-shadow: 0 0 18px color-mix(in srgb, var(--dc, #2ee8a5) 100%, transparent); }
}


/* Work label above active node */
.htl-work-label {
  position: absolute;
  top: -28px;
  left: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.htl-work-label::before {
  content: '← ';
  color: rgba(46,232,165,0.5);
}

/* NOW badge — sits next to the dot so card text stays aligned */
.htl-now-badge {
  position: absolute;
  top: 0;
  left: 24px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2ee8a5;
}
@keyframes htl-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.htl-content { padding-right: 8px; }

.htl-date {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 5px;
}
.htl-company {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3px;
  color: rgba(255,255,255,0.75);
  transition: color 0.25s;
}
.htl-node--active .htl-company { color: #fff; font-size: 15px; }
.htl-node:hover .htl-company,
.htl-node--expanded .htl-company { color: #fff; }

.htl-role {
  font-size: 11px;
  font-weight: 500;
  color: var(--dc, rgba(46,232,165,0.7));
  margin-bottom: 0;
  opacity: 0.85;
}

.htl-desc {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 196px;
  margin-top: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.3s ease;
}
.htl-node--expanded .htl-desc {
  max-height: 320px;
  opacity: 1;
}

/* ─── Old vertical Timeline (kept for project detail page) ─── */
.timeline {
  position: relative;
}
.timeline__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline__item {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.timeline__dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 5px;
}
.timeline__dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--dot-color, var(--muted));
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline__dot--active {
  background: var(--dot-color, var(--accent));
  box-shadow: 0 0 8px color-mix(in srgb, var(--dot-color, var(--accent)) 60%, transparent);
}
.timeline__connector {
  flex: 1;
  width: 2px;
  background: rgba(46,232,165,0.35);
  margin-top: 6px;
  min-height: 32px;
  box-shadow: 0 0 6px rgba(46,232,165,0.2);
}
.timeline__item:last-child .timeline__connector {
  display: none;
}
.timeline__body {
  padding-bottom: 52px;
  flex: 1;
}
.timeline__item:last-child .timeline__body {
  padding-bottom: 0;
}
.timeline__company {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}
.timeline__role {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  opacity: 0.75;
}
.timeline__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}

/* ─── Recommendations ─── */
.recs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.rec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s;
}
.rec-card:hover { border-color: rgba(46,232,165,0.2); }
.rec-card__quote {
  font-family: var(--quote);
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.88;
  flex: 1;
}
.rec-card__quote::before { content: '\201C'; color: var(--accent); font-size: 22px; line-height: 0.5; display: block; margin-bottom: 10px; }
/* clamp the quote to a fixed number of lines for uniform card height */
.rec-card__quote-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
.rec-card.expanded .rec-card__quote-text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
.rec-card__more {
  align-self: flex-start;
  margin-top: -6px;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  cursor: pointer;
}
.rec-card__more:hover { text-decoration: underline; }
.rec-card__author {
  display: flex; gap: 10px; align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.rec-card__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(46,232,165,0.12);
  border: 1px solid rgba(46,232,165,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--accent);
  flex-shrink: 0;
}
.rec-card__name { font-weight: 600; font-size: 13px; }
.rec-card__title-text { font-size: 11px; color: var(--muted); }

/* ─── Story link on timeline ─── */
.story-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.story-link:hover { opacity: 1; }

/* ─── Story Page ─── */
.story-page {
  padding-top: 72px;
  padding-bottom: 120px;
  max-width: 860px;
}

.story-hero {
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.story-hero__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 20px;
}
.story-hero__title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}
.story-hero__sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 28px;
}
.story-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.story-hero__meta a { color: var(--accent); opacity: 0.8; transition: opacity 0.2s; }
.story-hero__meta a:hover { opacity: 1; }

/* Chapter layout */
.story-chapter {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.story-chapter--earlier { border-bottom: none; }

.story-chapter__aside {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
}
.story-chapter__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.story-chapter__date {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 8px;
}
.story-chapter__co {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.story-chapter__role {
  font-size: 12px;
  color: var(--muted);
}

/* Chapter body */
.story-chapter__body h2.story-chapter__title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--text);
}
.story-chapter__body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 580px;
}
.story-subhead {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin: 28px 0 14px;
  max-width: 580px;
}
.story-subhead:first-child { margin-top: 0; }
.story-period-label {
  display: inline-block;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Deliverables list */
.story-deliverables {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.story-deliverable {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Pull quote */
.story-pull {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 2px solid rgba(46,232,165,0.3);
}
.story-pull__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(46,232,165,0.5);
  margin-bottom: 10px;
}
.story-pull__text {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}

/* Marker highlight — a highlighter sweep that draws across the bold text as it
   scrolls into view (triggered, staggered one-by-one, by .is-marked in JS).
   The text starts dimmed and reveals to bright white as the marker sweeps. */
.marker-hl {
  --mark-color: rgba(96, 165, 250, 0.5); /* project blue */
  color: rgba(255, 255, 255, 0.42);
  background-image: linear-gradient(120deg, var(--mark-color), var(--mark-color));
  background-repeat: no-repeat;
  background-position: 0 72%;
  background-size: 0% 78%;
  padding: 0 3px;
  transition: background-size 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.marker-hl.is-marked {
  background-size: 100% 78%;
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .marker-hl { transition: none; }
}

/* Release / GA callout — green dotted box */
.release-note {
  margin-top: 18px;
  padding: 15px 18px;
  border: 2px dotted rgba(46, 232, 165, 0.55);
  border-radius: 10px;
  background: rgba(46, 232, 165, 0.06);
}
.release-note__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2ee8a5;
  margin-bottom: 8px;
}
.release-note__label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ee8a5;
  box-shadow: 0 0 8px rgba(46, 232, 165, 0.8);
}
.release-note p { margin: 0; }

/* PAIS — Process / How I Worked (compact phased list) */
.pais-process {
  margin-top: 24px;
}
.pais-process__item {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.pais-process__item:last-child {
  border-bottom: 1px solid var(--border);
}
.pais-process__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.pais-process__num {
  flex: none;
  font-family: var(--sans, inherit);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.pais-process__body {
  margin: 0;
  max-width: 760px;
}

/* Highlights */
.story-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.story-highlight {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.story-highlight__stat {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.story-highlight__label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Inline link */
.story-link-inline {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.75;
  margin-top: 8px;
  transition: opacity 0.2s;
}
.story-link-inline:hover { opacity: 1; }
.story-inline-link { color: var(--accent); opacity: 0.8; }
.story-inline-link:hover { opacity: 1; }

/* Earlier grid */
.story-earlier-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.story-earlier-item__co {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.story-earlier-item__role {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.story-edu {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
}
.story-edu strong, .story-edu b { color: rgba(255,255,255,0.7); }

/* Footer CTA */
.story-footer {
  padding-top: 72px;
  font-size: 22px;
  font-family: var(--serif);
  color: var(--text);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer__left { color: var(--muted); font-size: 14px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }

/* ─── Project detail page ─── */
.project-hero {
  padding: 80px 0 60px;
  background: #000;
}
.project-hero__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 40px;
  transition: color 0.2s;
  cursor: pointer;
}
.project-hero__back:hover { color: var(--accent); }
.project-hero__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.project-hero__label::before {
  content: ''; display: block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.project-hero__title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.project-hero__tagline {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 32px;
}
.project-hero__meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 48px;
}
.project-hero__cover {
  width: 100%;
  background: #000;
  border: none;
  border-radius: 0;
  padding: 40px;
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* detail page viz cover */
.project-hero__cover--viz {
  padding: 0;
  background: #000;
  min-height: 280px;
}
.cover-viz-iframe {
  width: 100%; height: 520px;
  border: none; display: block;
}

/* detail page photo cover — laptop frame */
.project-hero__cover--img {
  padding: 32px 40px 0;
  background: #000;
  min-height: unset;
  align-items: flex-end;
}
.laptop-frame {
  width: 100%;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
  background: #000;
}
.laptop-frame__chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.laptop-frame__dot {
  width: 9px; height: 9px; border-radius: 50%;
}
.laptop-frame__dot:nth-child(1) { background: #ff5f57; }
.laptop-frame__dot:nth-child(2) { background: #febc2e; }
.laptop-frame__dot:nth-child(3) { background: #28c840; }
.laptop-frame__url {
  flex: 1; margin: 0 12px;
  height: 20px; border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center;
  padding: 0 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-family: var(--sans);
  letter-spacing: 0.01em;
  user-select: none;
}
.laptop-frame__screen {
  height: 600px;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.laptop-frame__screen::-webkit-scrollbar { width: 4px; }
.laptop-frame__screen::-webkit-scrollbar-track { background: transparent; }
.laptop-frame__screen::-webkit-scrollbar-thumb { background: rgba(46,232,165,0.2); border-radius: 2px; }
.cover-photo {
  width: 100%; display: block;
  object-fit: cover;
}

/* ─── Case study sections ─── */
.project-case-sections {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.case-sections-heading {
  margin-bottom: 40px;
  text-align: center;
}
.case-sections-heading h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}
.case-sections-heading p:not(.case-sections-heading__body):not(.case-sections-heading__eyebrow):not(.case-sections-heading__subtitle) {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 46px);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.2;
}
.case-sections-heading__subtitle {
  font-family: var(--serif);
  font-size: clamp(18px, 3.5vw, 36px);
  font-style: italic;
  font-weight: 400;
  color: #A78BFA;
  line-height: 1.2;
}
.case-sections-heading__eyebrow {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--accent) !important;
  opacity: 1;
  margin: 20px auto 8px !important;
  max-width: 580px;
  font-style: italic !important;
}
.case-sections-heading__body {
  font-family: var(--sans);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 24px auto 0;
  letter-spacing: 0;
}
.case-sections {
  display: flex; flex-direction: column; gap: 40px;
  margin-bottom: 48px;
}
.case-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.case-section__img {
  width: 100%; display: block;
  border-bottom: 1px solid var(--border);
  object-fit: cover; object-position: top left;
  padding: 20px;
  box-sizing: border-box;
  background: var(--card);
}
.case-section__paired-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 36px 36px;
  background: var(--card);
}
.case-section__paired-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.case-section__paired-col .case-section__img--half {
  border-radius: 8px;
  width: 100%;
}
.case-section__paired-col .case-subsection {
  padding: 4px 0;
  margin-top: 0;
}

.case-section__imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 20px;
  gap: 16px;
  background: var(--card);
}
.case-section__img--half {
  width: 100%; display: block;
  border-bottom: none;
  border-radius: 8px;
  object-fit: cover; object-position: top left;
}
.case-section__imgs .case-section__img--half:first-child {
  border-right: none;
}

/* ─── Live dashboard embeds (observability case study) ─── */
.case-section__embed-wrap {
  padding: 12px 20px 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
iframe.dash-embed {
  width: 100%;
  min-height: 100px;
  display: block;
  border: none;
  border-radius: 8px;
  background: #0f2136;
}
iframe.dash-embed--cover {
  width: 100%;
  min-height: 600px;
  display: block;
  border: none;
  background: #0f2136;
}
.case-section__subs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 36px;
  padding: 16px 36px 16px;
  background: var(--card);
}
@media (max-width: 720px) {
  .case-section__subs-grid { grid-template-columns: 1fr; gap: 16px; }
}
.case-section__body {
  display: flex; flex-direction: column;
  padding: 8px 32px 12px;
}
.case-section__header {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 12px;
  padding-top: 24px;
  padding-left: 24px;
}
.case-section__num {
  font-family: var(--serif);
  font-size: 12px; font-weight: 700;
  opacity: 0.5; flex-shrink: 0;
}
.case-section__title {
  font-family: var(--serif);
  font-size: 17px; font-weight: 700;
  line-height: 1.25;
}
.case-section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  opacity: 0.7;
}
.case-section__intro {
  font-size: 13px; color: var(--muted);
  line-height: 1.75; margin-bottom: 12px;
  padding-left: 4px;
}
.case-section__bullets {
  padding-left: 20px;
  display: flex; flex-direction: column; gap: 5px;
  margin-bottom: 12px;
}
.case-section__bullets li {
  font-size: 13px; color: var(--muted);
  line-height: 1.6;
}
.case-subsection {
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: 12px;
  padding-left: 4px;
}
.case-subsection__title {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; margin-bottom: 6px;
}
.case-subsection__desc {
  font-size: 13px; color: var(--muted);
  line-height: 1.7; margin-bottom: 8px;
}
/* "How this helps" — pushed to bottom, accessible contrast */
.case-section__impact {
  margin-top: auto;
  padding-top: 12px;
  padding-left: 4px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
  line-height: 1.65;
}
.case-section__impact span {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}

/* services grid */
.services-grid {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; margin-top: 8px;
}
.charts-embed {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.charts-embed iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: none;
}
.project-body__content ul + h2 {
  margin-top: 64px;
}
.arch-diagram-wrap {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.arch-diagram-iframe {
  width: 100%; height: 600px;
  display: block; border: none;
}
.service-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s;
}
.service-block:hover { border-color: rgba(46,232,165,0.2); }
.service-block__img {
  width: 100%; display: block;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.service-block__body {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
}
.service-block__dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0;
}
.service-block__name { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 4px; }
.service-block__desc { font-size: 13px; color: var(--muted); line-height: 1.65; }
.service-block__screen {
  margin: 0 16px 16px;
  border-radius: 6px;
  border: 1px dashed rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-block__screen-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.service-block__screen-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.4;
}

.project-cover-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 700px;
}
.project-cover-art__panel {
  background: rgba(46,232,165,0.06);
  border: 1px solid rgba(46,232,165,0.12);
  border-radius: 8px;
  height: 120px;
}
.project-cover-art__panel--tall { height: 260px; grid-row: span 2; }

.project-body { padding: 80px 0; }
.project-body__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
}
.project-body__content--closing {
  max-width: 680px;
  padding: 0 0 40px;
}
.project-body__content--closing h2 {
  margin-top: 72px;
}
.project-body__content--closing h2:first-child {
  margin-top: 72px;
}
.project-body__content h2 {
  font-family: var(--serif);
  font-size: 28px; font-weight: 700;
  line-height: 1.2;
  margin: 72px 0 20px;
}
.project-body__content h2:first-child { margin-top: 0; }
.project-body__content p {
  font-size: 16px; color: var(--muted); line-height: 1.8;
  margin-bottom: 16px;
}
.project-body__content ul {
  padding-left: 20px;
  color: var(--muted);
  font-size: 16px; line-height: 1.8;
  margin-bottom: 16px;
}
.project-body__content li { margin-bottom: 6px; }

.project-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  align-self: start;
}
.sidebar-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.sidebar-block__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.sidebar-block__value {
  font-size: 15px; font-weight: 600;
  line-height: 1.5;
}
.sidebar-block__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-block--outcomes { border-color: rgba(46,232,165,0.2); background: rgba(46,232,165,0.04); }
.sidebar-block--outcomes .sidebar-block__label { color: var(--accent); }
.sidebar-outcomes__grid { display: flex; flex-direction: column; gap: 16px; }
.sidebar-outcomes__item .outcome-stat__number { font-size: 28px; }
.sidebar-outcomes__item .outcome-stat__label { font-size: 12px; }

/* Process + Outcomes inline row */
.process-outcomes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}
.process-outcomes-row__process h2,
.process-outcomes-row__outcomes .outcome-block__label {
  margin-top: 0;
}
.process-outcomes-row__outcomes {
  background: rgba(46,232,165,0.05);
  border-left: 3px solid rgba(46,232,165,0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
}
.outcome-block__grid--stacked {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

/* Full-width platform section */
.platform-full {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}
.platform-full__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.platform-full__inner h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.platform-full__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outcome-block {
  background: rgba(46,232,165,0.05);
  border: 1px solid rgba(46,232,165,0.15);
  border-radius: var(--radius);
  padding: 32px;
  margin: 48px 0;
}
.outcome-block__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.outcome-block__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.outcome-stat__number {
  font-family: var(--serif);
  font-size: 36px; font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.outcome-stat__label { font-size: 13px; color: var(--muted); }

/* ─── Pull quote ─── */
.pull-quote {
  background: rgba(167,139,250,0.06);
  border-left: 3px solid rgba(167,139,250,0.5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.pull-quote__label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(167,139,250,0.7);
  margin-bottom: 10px;
}
.pull-quote blockquote {
  font-family: var(--quote);
  font-size: 21px; font-style: italic;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--text);
  opacity: 0.9;
}

/* ─── Personas ─── */
.personas-grid,
.case-personas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 32px;
}
.persona-card,
.case-persona {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px;
}
.persona-card__name,
.case-persona__name {
  font-size: 14px; font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.persona-card__desc,
.case-persona__desc {
  font-size: 13px; color: var(--muted);
  line-height: 1.7;
}
.case-personas {
  margin: 32px 0;
}
.case-sections-heading__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  opacity: 0.7;
}

/* ─── Workflow strip ─── */
.case-workflow {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 48px 32px;
}
.case-workflow .case-workflow__step {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 30px;
  padding: 10px 22px;
}
.case-workflow .case-workflow__arrow {
  color: rgba(46,232,165,0.4);
  font-size: 16px;
}

.workflow-strip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(46,232,165,0.04);
  border: 1px solid rgba(46,232,165,0.1);
  border-radius: 30px;
  padding: 12px 24px;
  margin: 24px 0 36px;
  width: fit-content;
}
.workflow-step {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.workflow-arrow {
  color: rgba(46,232,165,0.4);
  font-size: 14px;
}

/* ─── Outcome detail ─── */
.outcome-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: -24px 0 48px;
}
.outcome-detail-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.outcome-detail-card__label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); opacity: 0.7;
  margin-bottom: 8px;
}
.outcome-detail-card__text {
  font-size: 13px; color: var(--muted);
  line-height: 1.65;
}

/* ─── What's Next ─── */
.next-steps {
  display: flex; flex-direction: column; gap: 0;
  margin: 16px 0 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.next-step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.next-step:last-child { border-bottom: none; }
.next-step__num {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700;
  color: rgba(167,139,250,0.4);
  flex-shrink: 0;
  width: 28px;
  line-height: 1.4;
}
.next-step__title {
  font-size: 14px; font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.next-step__desc {
  font-size: 13px; color: var(--muted);
  line-height: 1.65;
}

.project-nav {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.project-nav__link {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
  cursor: pointer;
}
.project-nav__link:hover { color: var(--accent); }
.project-nav__link-title { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 2px; }

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  /* On stacked layout, drop the negative pull so the photo can't overlap the bio text */
  .hero__photo-wrap { margin-top: 0; justify-content: flex-start; }
  .hero__photo-img { width: 220px; height: 220px; }
  .projects__grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-card--wide { grid-column: 1; }
  .project-card__visual { display: none; }
  .recs__grid { grid-template-columns: 1fr; }
  .timeline__inner { grid-template-columns: 1fr; }
  .timeline__left { text-align: left; padding: 0 0 4px 48px; }
  .timeline__line { left: 16px; }
  .timeline__dot { left: 10px; }
  .project-body__layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .htl-scroll { padding: 0 20px; }
  .htl-strip::before, .htl-strip::after { width: 56px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 11px; letter-spacing: 0.06em; }
  .hero { padding-top: 60px; padding-bottom: 48px; }
  .section { padding: 64px 0; }
  .project-cover-art { grid-template-columns: 1fr; }
}
/* Swap full name → PKS monogram once the name would crowd the links */
@media (max-width: 680px) {
  .nav__logo-full { display: none; }
  .nav__logo-mark { display: inline-flex; align-items: baseline; gap: 2px; }
}

/* ─── Loading screen (PKS monogram) ─── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(46,232,165,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,232,165,0.045) 1px, transparent 1px);
  background-size: 20px 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__mark {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-bottom: 18px;
}
.loader__letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(64px, 18vw, 120px);
  line-height: 1;
  color: var(--text);
  opacity: 0;
  transform: translateY(28px);
  animation: loaderLetter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.loader__letter:nth-child(1) { animation-delay: 0.05s; }
.loader__letter:nth-child(2) {
  color: var(--accent);
  animation-delay: 0.2s;
  text-shadow: 0 0 32px rgba(46,232,165,0.35);
}
.loader__letter:nth-child(3) { animation-delay: 0.35s; }
.loader__line {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  box-shadow: 0 0 16px rgba(46,232,165,0.5);
  animation: loaderLine 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}
.loader__name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: loaderName 0.6s ease 0.75s forwards;
}
@keyframes loaderLetter {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loaderLine {
  to { width: 100%; }
}
@keyframes loaderName {
  from { opacity: 0; letter-spacing: 0.2em; }
  to   { opacity: 1; letter-spacing: 0.4em; }
}
@media (prefers-reduced-motion: reduce) {
  .loader__letter, .loader__line, .loader__name { animation-duration: 0.01s; animation-delay: 0s; }
}

/* ─── Page transitions ─── */
.page { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hidden { display: none; }

/* ─── Scroll animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger siblings */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* timeline item reveal — slides up + fades in */
.tl-left {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tl-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.1s;
}
.tl-left.visible,
.tl-right.visible {
  opacity: 1;
  transform: translateY(0);
}

/* timeline dot grows in — triggered via JS inline style */
.timeline__dot-col .timeline__dot {
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.2s;
}


/* User journey break strip */
.journey-break {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #0d0d0d;
}
.journey-break__inner-wrap {
  position: relative;
  width: 100%;
}
.journey-break__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem 1rem;
}
.journey-break__label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.journey-break__arrows {
  display: flex;
  gap: 0.5rem;
}
.journey-break__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  user-select: none;
  backdrop-filter: blur(6px);
}
.journey-break__arrow:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.journey-break__track {
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
}
.journey-break__track::-webkit-scrollbar {
  display: none;
}
.journey-break__reel {
  display: block;
  width: max-content;
}
.journey-break__img {
  display: block;
  height: 600px;
  width: auto;
  max-width: none;
}

/* ═══════════════════════════════════════════════
   PAIS DEDICATED PAGE
═══════════════════════════════════════════════ */
.pais-page {
  color: #e8e8e8;
  min-height: 100vh;
}
.pais-nav { background: rgba(12,31,25,0.95) !important; border-bottom: 1px solid rgba(78,205,160,0.12) !important; }
.pais-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.pais-back {
  display: inline-block;
  font-size: 13px;
  color: #4ecda0;
  text-decoration: none;
  margin-bottom: 2rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.pais-back:hover { opacity: 1; }

/* 1. HERO */
.pais-hero {
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, #4ecda0 18%, #050a06) 0%,
      color-mix(in srgb, #4ecda0 10%, #07100a) 45%,
      #070d08 100%
    );
  padding: 5rem 0 3rem;
}
.pais-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.34rem, 5.4vw, 4.05rem);
  font-weight: 700; line-height: 1.08;
  color: #fff; margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.pais-hero__subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.064rem, 2.28vw, 1.672rem);
  font-weight: 400; font-style: italic;
  line-height: 1.3;
  color: rgba(232,232,232,0.4);
  margin: 0 0 1.75rem;
  max-width: 780px;
}
.pais-hero__desc {
  font-size: 1rem; line-height: 1.8;
  color: rgba(232,232,232,0.6);
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.pais-hero__rule {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 2rem 0;
}
.pais-hero__meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0.5rem 0;
}
.pais-hero__meta-col {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 24px 28px;
}
.pais-hero__meta-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(78,205,160,0.6);
  margin-bottom: 0.5rem;
}
.pais-hero__meta-val {
  font-size: 15px; font-weight: 600;
  color: rgba(232,232,232,0.9);
  line-height: 1.5;
}

/* PAIS hero viz — full width below hero */
.pais-hero-viz {
  width: 100%;
  height: 676px; /* +30% — scales the whole architecture diagram up */
  overflow: hidden;
  border-bottom: none;
  background: transparent;
}
.pais-hero-viz__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* 2. SHORT OVERVIEW */
.pais-section--overview-short {
  border-bottom: 1px solid rgba(78,205,160,0.08);
}
.pais-intro-text {
  font-size: 1.05rem; line-height: 1.85;
  color: rgba(232,232,232,0.75);
  max-width: 780px;
  margin: 0 0 1rem;
}

/* SECTION SHARED */
.pais-section {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pais-section-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #4ecda0; margin-bottom: 0.75rem;
}
.pais-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700; line-height: 1.25;
  color: #fff; margin: 0 0 1.25rem;
}
.pais-h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem; font-weight: 700;
  color: #fff; margin: 0 0 0.75rem;
}
.pais-body {
  font-family: var(--sans) !important;
  font-style: normal !important;
  font-size: 16px !important; line-height: 1.85 !important;
  color: rgba(232,232,232,0.7);
  margin-bottom: 1rem;
}
.pais-body--intro { max-width: 700px; margin-bottom: 2.5rem; }
.pais-list {
  padding-left: 1.25rem;
  color: rgba(232,232,232,0.7);
  font-size: 15px; line-height: 1.85;
}
.pais-list li { margin-bottom: 0.6rem; }
.pais-note {
  font-size: 13px; color: rgba(232,232,232,0.4);
  font-style: italic; margin-top: 1.5rem;
  border-left: 2px solid rgba(78,205,160,0.25);
  padding-left: 1rem;
}

/* 3. JOURNEY HERO */
.pais-journey-hero {
  position: relative;
  padding: 2rem 0;
  border-top: 1px solid rgba(78,205,160,0.1);
  border-bottom: 1px solid rgba(78,205,160,0.1);
}
.pais-journey-section {
  padding: 2rem 0;
  border-top: 1px solid rgba(78,205,160,0.1);
  border-bottom: 1px solid rgba(78,205,160,0.1);
}
.pais-journey-hero__label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(78,205,160,0.5);
  padding: 0 2.5rem 1rem;
}
.pais-journey-hero__track {
  overflow-x: hidden;
  overflow-y: hidden;
  height: 600px;
  width: 100%;
}
.pais-journey-hero__track > div {
  display: inline-flex;
  height: 100%;
}
.pais-journey-hero__img {
  display: block;
  height: 600px;
  width: auto;
  max-width: none;
}
.pais-journey-hero__arrows {
  display: flex; gap: 0.5rem;
  padding: 1rem 2.5rem 0;
}

/* ── Developer Workflow diagram (recreated journey map) ── */
.pais-journey-hero__track:has(.devflow) {
  height: auto;
  overflow-x: auto;
}
.pais-journey-hero__track:has(.devflow) > div {
  display: flex;
  flex-direction: column;
  height: auto;
  gap: 22px;
  padding: 0 2.5rem 0.5rem;
}
.devflow {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.devflow__col {
  flex: 0 0 308px;
  display: flex;
  flex-direction: column;
}
.devflow__phase {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--phase);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
  background: color-mix(in srgb, var(--phase) 14%, #0b0f0d);
  border: 1px solid color-mix(in srgb, var(--phase) 40%, transparent);
}
.devflow__cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.devflow__card {
  width: 100%;
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid color-mix(in srgb, var(--phase) 28%, transparent);
  border-left: 3px solid var(--phase);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.devflow__card:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--phase) 8%, rgba(255,255,255,0.03));
  border-color: var(--phase);
}
.devflow__card-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.devflow__card-desc {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(232,232,232,0.65);
}
.devflow__card--start {
  background: color-mix(in srgb, var(--phase) 16%, #0b0f0d);
  border: 1px dashed color-mix(in srgb, var(--phase) 55%, transparent);
  border-left: 3px solid var(--phase);
}
.devflow__card--ref {
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--phase) 35%, transparent);
  border-left: 3px dashed var(--phase);
}
.devflow__card--ref .devflow__card-title::before {
  content: 'Reference / Solution';
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phase);
  opacity: 0.8;
  margin-bottom: 3px;
}
.devflow__card--sub {
  width: 88%;
  background: rgba(255,255,255,0.02);
  border: 1px solid color-mix(in srgb, var(--phase) 18%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--phase) 50%, transparent);
}
.devflow__connector {
  color: rgba(232,232,232,0.3);
  font-size: 14px;
  line-height: 1;
  padding: 1px 0;
}
.devflow__phase-arrow {
  flex: 0 0 36px;
  align-self: center;
  margin-top: 40px;
  text-align: center;
  font-size: 22px;
  color: rgba(232,232,232,0.4);
}
.devflow__bands {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.devflow__band {
  border-radius: 10px;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--phase) 10%, #0b0f0d);
  border: 1px solid color-mix(in srgb, var(--phase) 30%, transparent);
}
.devflow__band-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--phase);
  margin-bottom: 4px;
}
.devflow__band-desc {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(232,232,232,0.7);
}

/* 4. 70/30 SPLIT */
.pais-split {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 4rem;
  align-items: start;
}
.pais-split--learnings {
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.pais-pull-quote {
  background: rgba(78,205,160,0.06);
  border-left: 3px solid rgba(78,205,160,0.4);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 0 0 1.5rem;
}
.pais-pull-quote__label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(78,205,160,0.7); margin-bottom: 10px;
}
.pais-pull-quote blockquote {
  font-family: var(--quote);
  font-size: 21px; font-style: italic;
  line-height: 1.55; letter-spacing: 0.01em;
  color: rgba(232,232,232,0.9);
}
.pais-meta-card {
  background: rgba(78,205,160,0.05);
  border: 1px solid rgba(78,205,160,0.18);
  border-radius: 12px;
  padding: 28px;
}
.pais-split__aside {
  align-self: start;
}
.pais-meta-card__row { margin-bottom: 18px; }
.pais-meta-card__label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #4ecda0; margin-bottom: 4px;
}
.pais-meta-card__value {
  font-size: 14px; color: rgba(232,232,232,0.8); line-height: 1.5;
}
.pais-meta-card__divider {
  height: 1px;
  background: rgba(78,205,160,0.15);
  margin: 20px 0;
}
.pais-meta-card__stat { margin-top: 14px; }
.pais-meta-card__stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px; font-weight: 700;
  color: #4ecda0; line-height: 1;
}
.pais-meta-card__stat-label {
  font-size: 12px; color: rgba(232,232,232,0.5); margin-top: 2px;
}

/* 5. DIVIDER */
.pais-divider {
  display: flex; align-items: center; gap: 0;
  padding: 0;
}
.pais-divider__line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78,205,160,0.3), transparent);
}
.pais-divider__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ecda0; margin: 0 16px; flex-shrink: 0;
}

/* 6. SERVICES GRID */
.pais-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.pais-service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.25s, background 0.25s;
}
.pais-service-card:hover {
  background: rgba(78,205,160,0.04);
  border-color: rgba(78,205,160,0.2);
}
.pais-service-card__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.pais-service-card__num {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; opacity: 0.7;
}
.pais-service-card__icon { font-size: 1rem; }
.pais-service-card__name {
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
}
.pais-service-card__desc {
  font-size: 13px; color: rgba(232,232,232,0.6); line-height: 1.7;
  margin-bottom: 1rem;
}

/* 7. PERSONAS */
.pais-section--personas { }
.pais-section--tight { padding: 1.75rem 0; }
.pais-personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 1.5rem;
}
.pais-persona-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 24px;
  transition: border-color 0.25s;
}
.pais-persona-card__icon { font-size: 1.5rem; margin-bottom: 10px; }
.pais-persona-card__name {
  font-size: 14px; font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.pais-persona-card__desc {
  font-size: 13px; color: var(--muted); line-height: 1.7;
}

/* 8. DEEP DIVES */
.pais-deepdives { display: flex; flex-direction: column; gap: 4rem; margin-top: 2rem; }
.pais-deepdive { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 3rem; }
.pais-deepdive__header {
  display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem;
}
.pais-deepdive__num {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.7;
}
.pais-deepdive__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem; font-weight: 700; margin: 0;
}
.pais-deepdive__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.pais-deepdive__content { display: flex; flex-direction: column; gap: 1.5rem; }
.pais-deepdive__block-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(78,205,160,0.6); margin-bottom: 6px;
}
.pais-deepdive__block-label--white {
  color: #fff;
}
.pais-deepdive__block p {
  font-size: 14px; color: rgba(232,232,232,0.7); line-height: 1.8; margin: 0;
}
.pais-deepdive__journey {
  font-style: italic; color: rgba(232,232,232,0.6) !important;
  border-left: 2px solid rgba(78,205,160,0.25);
  padding-left: 1rem;
}

/* SCREEN PLACEHOLDER */
.pais-screen-placeholder {
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px; background: rgba(255,255,255,0.02);
  height: 160px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.2);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 1.25rem;
}
.pais-screen-placeholder--large { height: 340px; margin-top: 0; }
.pais-screen-placeholder__dot {
  width: 6px; height: 6px; border-radius: 50%; opacity: 0.4;
}

/* ── Per-service high-level flow chart (placeholder) ── */
.pais-flow-mini {
  margin: 0 32px 32px;
  padding: 28px 24px;
  border-radius: 12px;
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--flow-color, #2ee8a5) 10%, #0b0f0d) 0%,
      color-mix(in srgb, var(--flow-color, #2ee8a5) 4%, #0a0d0b) 100%);
  border: 1px solid color-mix(in srgb, var(--flow-color, #2ee8a5) 25%, transparent);
}
.pais-flow-mini__label {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 22px;
  text-align: center;
}
.pais-flow-mini__label-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, currentColor, transparent);
  opacity: 0.35;
}
.pais-flow-mini__row {
  display: flex; align-items: stretch; justify-content: center;
  gap: 0;
  width: 100%;
}
.pais-flow-mini__step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(232,232,232,0.88);
  background: rgba(255,255,255,0.03);
  border: 1px solid color-mix(in srgb, var(--flow-color, #2ee8a5) 30%, transparent);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  line-height: 1.45;
  min-width: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.pais-flow-mini__step:hover {
  border-color: var(--flow-color, #2ee8a5);
  background: color-mix(in srgb, var(--flow-color, #2ee8a5) 8%, rgba(255,255,255,0.03));
  transform: translateY(-2px);
}
.pais-flow-mini__num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #07100a;
  flex-shrink: 0;
}
.pais-flow-mini__text { word-break: break-word; }
.pais-flow-mini__arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  opacity: 0.5;
  flex-shrink: 0;
  width: 36px;
}
@media (max-width: 900px) {
  .pais-flow-mini__row { flex-direction: column; gap: 10px; }
  .pais-flow-mini__step { width: 100%; }
  .pais-flow-mini__arrow { transform: rotate(90deg); height: 20px; width: auto; }
}

/* ── Agent Builder — full-width layout ── */
.pais-deepdive--full {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  padding: 48px 0 0;
}
.ab-carousel--full {
  width: 100%;
  position: relative;
}
.ab-carousel--full .ab-carousel__frame {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}
.ab-carousel--full .ab-carousel__img {
  max-height: 720px;
  object-fit: contain;
  object-position: top center;
}
.ab-carousel--full .ab-carousel__video {
  max-height: 720px;
}
.ab-carousel--full .ab-carousel__nav {
  padding: 16px 0 8px;
}
.ab-carousel--full .ab-carousel__label {
  padding-bottom: 4px;
}
.ab-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.ab-detail-block {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
}
.ab-detail-block:last-child { border-right: none; }
.ab-detail-block p {
  font-size: 14px;
  color: rgba(232,232,232,0.7);
  line-height: 1.8;
  margin: 0;
}

/* ── Agent Builder Carousel ── */
.ab-carousel {
  display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: 88px;
}
.ab-carousel__frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0d0d0f;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.ab-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.ab-carousel__arrow:hover {
  background: var(--dot-color, rgba(0,0,0,0.7));
  border-color: var(--dot-color, rgba(255,255,255,0.4));
}
.ab-carousel__arrow--prev { left: 16px; }
.ab-carousel__arrow--next { right: 16px; }
.ab-carousel__track { position: relative; }
.ab-carousel__slide {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.ab-carousel__slide--active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.ab-carousel__img {
  width: 100%; display: block;
  max-height: 380px; object-fit: cover; object-position: top;
}
/* video slide */
.ab-carousel__video-wrap { position: relative; width: 100%; line-height: 0; }
.ab-carousel__video {
  width: 100%; display: block;
  max-height: 380px; object-fit: contain; background: #000;
}
.ab-carousel__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; padding: 0;
  background: transparent;
  transition: opacity 0.3s ease;
}
.ab-carousel__play-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; padding-left: 3px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}
.ab-carousel__play:hover .ab-carousel__play-icon {
  transform: scale(1.08);
  background: rgba(0,0,0,0.8);
}
.ab-carousel__video-wrap--playing .ab-carousel__play {
  opacity: 0; pointer-events: none;
}
.ab-carousel__nav {
  display: flex; gap: 8px; justify-content: center;
  padding: 4px 0;
}
.ab-carousel__dot {
  width: 28px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.15);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, width 0.2s;
}
.ab-carousel__dot--active {
  background: var(--dot-color, #fb7185);
  width: 40px;
}
.ab-carousel__label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  min-height: 16px;
  opacity: 0.8;
}

/* 9. JOURNEY FLOW */
.pais-journey-flow { padding-top: 1.5rem; }
.pais-flow-steps {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.pais-flow-step {
  display: flex; align-items: center; gap: 6px;
}
.pais-flow-step__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ecda0; flex-shrink: 0;
}
.pais-flow-step__label {
  font-size: 12px; font-weight: 600;
  color: rgba(232,232,232,0.7); white-space: nowrap;
}
.pais-flow-step__arrow {
  font-size: 12px; color: rgba(78,205,160,0.4);
}

/* 10. LEARNINGS */
.pais-section--learnings { }
.pais-placeholder-note {
  font-size: 12px; font-style: italic;
  color: rgba(78,205,160,0.4) !important;
  border: 1px dashed rgba(78,205,160,0.2);
  border-radius: 4px; padding: 8px 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .pais-split, .pais-split--learnings { grid-template-columns: 1fr; gap: 2rem; }
  .pais-personas-grid { grid-template-columns: 1fr; }
  .pais-deepdive__body { grid-template-columns: 1fr; }
  .pais-services-grid { grid-template-columns: 1fr; }
}

/* PAIS hero viz */
.pais-hero-viz__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Platform screens big placeholder */
.pais-platform-screens {
  margin-top: 2.5rem;
}
.pais-platform-screens__heading {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.15);
  margin-bottom: 1rem;
}
.pais-platform-screens__placeholder {
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.pais-platform-screens__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 560px;
  text-align: center;
}
.pais-platform-screens__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(78,205,160,0.3);
}
.pais-platform-screens__text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.18);
  font-style: italic;
}

/* ═══════════════════════════════════════
   CONSISTENT PROJECT HERO (all projects)
═══════════════════════════════════════ */
.proj-hero {
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--proj-color, #2ee8a5) 18%, #050a06) 0%,
      color-mix(in srgb, var(--proj-color, #2ee8a5) 10%, #07100a) 45%,
      #070d08 100%
    );
  padding-bottom: 0;
}
.proj-hero .container { padding-top: 4rem; padding-bottom: 3rem; }
.proj-hero__back {
  display: inline-block;
  font-size: 13px; color: var(--accent);
  opacity: 0.7; margin-bottom: 2rem;
  transition: opacity 0.2s;
}
.proj-hero__back:hover { opacity: 1; }
.proj-hero__eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 1rem; opacity: 0.8;
}
.proj-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.34rem, 5.4vw, 4.05rem);
  font-weight: 700; line-height: 1.08;
  color: #fff; margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}
.proj-hero__subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.064rem, 2.28vw, 1.672rem);
  font-weight: 400; font-style: italic;
  line-height: 1.35;
  color: #A78BFA;
  margin: 0 0 1.5rem; max-width: 780px;
}
.proj-hero__desc {
  font-size: 1rem; line-height: 1.8;
  color: rgba(232,232,232,0.6);
  max-width: 640px; margin-bottom: 0;
}
.proj-hero__rule {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 2rem 0;
}
.proj-hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.proj-hero__meta-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px 24px;
}
.proj-hero__meta-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--proj-color, var(--accent));
  opacity: 0.7; margin-bottom: 0.4rem;
}
.proj-hero__meta-val {
  font-size: 14px; font-weight: 600;
  color: rgba(232,232,232,0.9); line-height: 1.5;
}

/* Cover image / placeholder */
.proj-hero__cover {
  width: 100%;
  border-top: none;
  background: transparent;
}
.proj-hero__laptop {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
}
.proj-hero__laptop-chrome {
  background: #1a1a1a;
  padding: 10px 16px;
  display: flex; gap: 6px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.proj-hero__laptop-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.proj-hero__cover-img {
  width: 100%; display: block;
}
.proj-hero__placeholder {
  height: 360px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  margin: 0 2.5rem;
  border-radius: 12px 12px 0 0;
  color: rgba(255,255,255,0.2);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.proj-hero__placeholder-dot {
  width: 8px; height: 8px;
  border-radius: 50%; opacity: 0.4;
}

/* ─── Project content area (below hero) — black + green grid ─── */
.proj-content-area {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(46,232,165,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,232,165,0.045) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ─── Project quick-stats strip ─── */
.proj-stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.proj-stats-strip__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 2fr;
  gap: 0;
}
.proj-stats-strip__block {
  padding: 0 2rem;
  border-right: 1px solid var(--border);
}
.proj-stats-strip__block:first-child { padding-left: 0; }
.proj-stats-strip__block:last-child { border-right: none; }
.proj-stats-strip__label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.proj-stats-strip__val {
  font-size: 15px; font-weight: 600;
  color: var(--text); line-height: 1.4;
}
.proj-stats-strip__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.proj-stats-strip__outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}
.proj-stats-strip__stat-num {
  font-family: var(--serif);
  font-size: 28px; font-weight: 700;
  line-height: 1;
}
.proj-stats-strip__stat-label {
  font-size: 12px; color: var(--muted); margin-top: 3px;
}


/* ── K8s Current Workflow Diagram ── */
.k8s-workflow-diagram {
  margin: 32px 0 40px;
  background: rgba(96,165,250,0.04);
  border: 1px solid rgba(96,165,250,0.12);
  border-radius: 16px;
  padding: 28px 28px 24px;
}
.k8s-workflow-diagram__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(96,165,250,0.6);
  margin-bottom: 8px;
}
.k8s-workflow-diagram__sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 560px;
}
.k8s-workflow-diagram__flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}
.k8s-wf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 90px;
  text-align: center;
  flex-shrink: 0;
}
.k8s-wf-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.k8s-wf-node__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.k8s-wf-node__desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 90px;
}
.k8s-wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 80px;
}
.k8s-wf-step__arrow {
  font-size: 18px;
  color: rgba(96,165,250,0.4);
  line-height: 1;
}
.k8s-wf-step__label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(232,232,232,0.6);
  text-align: center;
  line-height: 1.4;
}
.k8s-wf-step__label span {
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
}

/* Timeline bar */
.k8s-workflow-diagram__timeline { margin-top: 28px; }
.k8s-wf-timeline__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.k8s-wf-timeline__bar {
  display: flex;
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
}
.k8s-wf-timeline__segment {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
  border-radius: 4px;
  position: relative;
}
.k8s-wf-timeline__segment span {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  white-space: nowrap;
  font-weight: 600;
}
.k8s-wf-timeline__segment--fast {
  flex: 1;
  background: rgba(96,165,250,0.45);
}
.k8s-wf-timeline__segment--fast span { color: rgba(96,165,250,0.7); }
.k8s-wf-timeline__segment--slow {
  flex: 4;
  background: linear-gradient(90deg, rgba(251,113,133,0.6), rgba(251,146,60,0.5));
}
.k8s-wf-timeline__segment--slow span { color: rgba(251,113,133,0.9); }
.k8s-wf-timeline__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* K8s namespace screen fade-in animation */
@keyframes k8sFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.k8s-fade-img {
  opacity: 0;
  animation: k8sFadeUp 0.6s ease-out forwards;
}

/* K8s namespace hover image swap */
.k8s-hover-swap:hover .k8s-hover-swap__hover { opacity: 1 !important; }
.k8s-hover-swap:hover .k8s-hover-swap__base { opacity: 0 !important; }
.k8s-hover-swap__base, .k8s-hover-swap__hover {
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: opacity;
}

/* ─── Password gate ─── */
.pw-gate {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.pw-gate__card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}
.pw-gate__lock { font-size: 32px; margin-bottom: 20px; }
.pw-gate__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.pw-gate__title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.pw-gate__desc { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.pw-gate__form { display: flex; gap: 10px; }
.pw-gate__input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.pw-gate__input:focus { border-color: var(--accent); }
.pw-gate__btn {
  padding: 12px 20px;
  background: var(--accent);
  color: #0e0e0f;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s;
}
.pw-gate__btn:hover { background: var(--accent-dim); }
.pw-gate__error { color: #fb7185; font-size: 13px; margin-top: 16px; min-height: 18px; }

/* Prevent horizontal overflow causing white gap on right edge */
html, body { overflow-x: hidden; max-width: 100%; }

/* ═══════════════════════════════════════════════
   PAIS JOURNEY MAP (swim-lane lifecycle)
═══════════════════════════════════════════════ */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.jmap-section {
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: #0f2620;
}
.jmap { margin-top: 1.5rem; }

/* Persona key (chips) */
.jmap__key {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 24px;
}
.jmap__key-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(232,232,232,0.45);
}
.jmap__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jmap__chip {
  background: var(--c);
  color: #0f2620;
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  padding: 5px 13px;
  border-radius: 20px;
}

/* Journey-stage columns */
.jmap__stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.jmap__stage { position: relative; padding: 0 22px; }
.jmap__stage:first-child { padding-left: 0; }
.jmap__stage:last-child { padding-right: 0; }
.jmap__stage:not(:last-child) { border-right: 1px dashed rgba(120,150,140,0.32); }
.jmap__stage-head {
  background: var(--c);
  color: #0f2620;
  font-family: var(--sans);
  font-size: 14px; font-weight: 700;
  text-align: center;
  padding: 10px 14px;
  border-radius: 7px;
  margin-bottom: 20px;
}
.jmap__stage-arrow {
  position: absolute;
  top: 9px; right: -8px;
  font-size: 22px; line-height: 1;
  color: rgba(255,255,255,0.32);
  z-index: 2; pointer-events: none;
}

.jmap__tasks {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 14px;
}
.jmap__task { display: flex; align-items: flex-start; gap: 9px; }
.jmap__task-dot {
  flex-shrink: 0;
  width: 11px; height: 11px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--dc);
}
.jmap__task-dot--hollow { background: transparent; border: 2px solid var(--dc); }
.jmap__task-label {
  font-family: var(--sans);
  font-size: 13.5px; line-height: 1.4;
  color: #e6ece8;
}

/* Cross-cutting observability band */
.jmap__obs {
  margin-top: 30px;
  background: linear-gradient(90deg, rgba(138,147,168,0.16), rgba(138,147,168,0.07));
  border: 1px solid #3a4253;
  border-left: 3px solid #8a93a8;
  border-radius: 9px;
  padding: 13px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}
.jmap__obs-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #cdd3df;
}
.jmap__obs-sub { font-size: 12.5px; color: #b9c8be; line-height: 1.45; }
.jmap__obs-platform { color: #8a93a8; display: inline-flex; align-items: baseline; gap: 4px; margin-left: 4px; }
.jmap__gear { font-size: 10px; opacity: 0.85; flex-shrink: 0; }
.jmap__obs-platform .jmap__gear { color: #8a93a8; }

/* Legend (dot color = system each task touches) */
.jmap__legend {
  display: flex; flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #244c40;
}
.jmap__legend-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 12px; color: #b9c8be;
}
.jmap__legend-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--dc); flex-shrink: 0; }

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .jmap__stages { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
  .jmap__stage { padding: 0; }
  .jmap__stage:not(:last-child) { border-right: none; }
  .jmap__stage-arrow { display: none; }
}

/* Mobile: single column */
@media (max-width: 600px) {
  .jmap-section { padding: 3rem 0; }
  .jmap__stages { grid-template-columns: 1fr; gap: 24px; }
  .jmap__obs { flex-direction: column; }
}
